rtable
int rtable, ifa_rtable = -1;
rtable = getrtable();
if (ifa_rtable != rtable)
if (ifa_rtable != rtable)
quad_t p, rtable;
rtable = login_getcapnum(lc, "rtable", -1, -1);
if (rtable >= 0 && setrtable((int)rtable) == -1)
extern struct rtable *rtable_get(unsigned int, sa_family_t);
struct rtable *tbl;
static int rtable = -1;
if (rtable == -1)
rtable = getrtable();
if (ifa_rtable != rtable)
if (ifa_rtable != rtable)
int rtable;
rtable = iface_o.i_rtable;
rtable = sc->sc_udp_rtable;
if (port != sc->sc_udp_port || rtable != sc->sc_udp_rtable) {
if ((ret = wg_bind(sc, &port, &rtable)) != 0)
sc->sc_udp_rtable = rtable;
int *rtable, void *upcall_arg)
*mtod(&mrtable, u_int *) = *rtable;
*rtable = sotoinpcb(*so)->inp_rtableid;
int ret = 0, rtable = *rtablep;
if ((ret = wg_socket_open(&so4, AF_INET, &port, &rtable, sc)) != 0)
if ((ret = wg_socket_open(&so6, AF_INET6, &port, &rtable, sc)) != 0) {
*rtablep = rtable;
struct rtable *tbl;
struct rtable *
struct rtable *tbl = NULL;
struct rtable *tbl;
static inline const uint8_t *satoaddr(struct rtable *,
struct rtable *
struct rtable *tbl;
struct rtable *tbl;
struct rtable *tbl;
struct rtable *tbl;
struct rtable *tbl;
struct rtable *tbl;
struct rtable *tbl;
struct rtable *tbl;
struct rtable *tbl;
struct rtable *tbl;
struct rtable *rtable_alloc(unsigned int, unsigned int, unsigned int);
struct rtable *rtable_get(unsigned int, sa_family_t);
satoaddr(struct rtable *tbl, const struct sockaddr *sa)
u_int fport, struct in_addr laddr, u_int lport, u_int rtable, int lock)
rdomain = rtable_l2(rtable);
u_int fport, struct in_addr laddr, u_int lport, u_int rtable)
return in_pcblookup_lock(table, faddr, fport, laddr, lport, rtable,
u_int lport_arg, struct mbuf *m, u_int rtable)
rdomain = rtable_l2(rtable);
u_int rtable, int errno, void (*notify)(struct inpcb *, int))
rdomain = rtable_l2(rtable);
u_int lport_arg, int flags, u_int rtable, int lock)
rdomain = rtable_l2(rtable);
u_int rtable, int cmd, void *cmdarg, void (*notify)(struct inpcb *, int))
rdomain = rtable_l2(rtable);
u_int fport, const struct in6_addr *laddr, u_int lport, u_int rtable,
rdomain = rtable_l2(rtable);
u_int fport, const struct in6_addr *laddr, u_int lport, u_int rtable)
return in6_pcblookup_lock(table, faddr, fport, laddr, lport, rtable,
u_int lport, struct mbuf *m, u_int rtable)
rdomain = rtable_l2(rtable);
struct rtable tbl;
struct rtable **tbl;
struct rtable **tblmap;
int rtable;
socklen_t len = sizeof(rtable);
if (getsockopt(fd, SOL_SOCKET, SO_RTABLE, &rtable, &len) == -1) {
xasprintf(&ret, "%d", rtable);
int rtable;
rtable = (int)strtonum(name, 0, 255, &errstr);
&rtable, sizeof(rtable)) == -1) {
rtable, fd, strerror(errno));
int rtable, ortable = getrtable();
rtable = (int)strtonum(name, 0, 255, &errstr);
if (rtable != ortable && setrtable(rtable) != 0)
rtable, strerror(errno));
debug_f("set routing domain %d (was %d)", rtable, ortable);
unsigned int secs, rtable;
rtable = (unsigned int)strtonum(optarg, 0,
if (setrtable(rtable) == -1)
int rtable, pid_t *pid)
if (rtable)
int rtable; /* show routing tables */
ps.rtable = !ps.rtable;
ps.rtable ? "D" : "Not d");
ps.rtable = true;
ps.rtable = false;
ps.rtable ? rtable_field : wait_field);
ps.threads ? NULL : get_userid, ps.rtable,
int rtable;
la->rtable = $4.rtable;
listen_opt : rtable
rtable : RTABLE NUMBER {
opts.rtable = $2;
int rtable;
%type <v.opts> rtable
print_rtable(la->rtable));
if (la->rtable != -1 &&
setsockopt(la->fd, SOL_SOCKET, SO_RTABLE, &la->rtable,
sizeof(la->rtable)) == -1)
if (lap->rtable != -1 && rdomain != lap->rtable)
la->rtable = rdomain;
if (rt->rt_conf.rtable)
printf("\t%8s\trtable: %d\n", "", rt->rt_conf.rtable);
agentx_varbind_integer(sav, router->rt_conf.rtable);
if (router->rt_conf.rtable) {
router->rt_conf.rtable = $2;
hdr.rtm_tableid = crt->rt.rtable;
int rtable;
int iface = 0, rtable = 0;
rtable++;
rtable++; /*just to be sure*/
if (rtable) {