| RTABLE_ADD(9) | Kernel Developer's Manual | RTABLE_ADD(9) |
rtable_add,
rtable_exists,
rtable_loindex, rtable_l2,
rtable_l2set — routing
tables and routing domains interface
#include
<net/rtable.h>
int
rtable_add(unsigned
int id);
int
rtable_exists(unsigned
int id);
unsigned int
rtable_loindex(unsigned
int id);
unsigned int
rtable_l2(unsigned
int id);
void
rtable_l2set(unsigned
int id, unsigned int
rdomain);
Routing tables contain layer 2 and 3 forwarding information. Each address family in use will have its own routing table. Routing domains are a way of logically segmenting a router among multiple networks and may contain more than one routing table.
rtable_add(unsigned
int id)rtable_exists(unsigned
int id)rtable_loindex(unsigned
int id)rtable_l2(unsigned
int id)rtable_l2set(unsigned
int id, unsigned int rdomain)rtable_add(),
rtable_exists(),
rtable_loindex(),
rtable_l2(), and
task_l2set() can be called during autoconf, from
process context, or from interrupt context.
rtable_add() may fail with:
ENOMEM]| March 26, 2021 | openbsd |