Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route.c
Show All 12 Lines | |||||
int fibnum; | int fibnum; | ||||
int error; | int error; | ||||
fibnum = curthread->td_proc->p_fibnum; | fibnum = curthread->td_proc->p_fibnum; | ||||
error = sysctl_handle_int(oidp, &fibnum, 0, req); | error = sysctl_handle_int(oidp, &fibnum, 0, req); | ||||
return (error); | return (error); | ||||
} | } | ||||
SYSCTL_PROC(_net, OID_AUTO, my_fibnum, CTLTYPE_INT|CTLFLAG_RD, | SYSCTL_PROC(_net, OID_AUTO, my_fibnum, | ||||
NULL, 0, &sysctl_my_fibnum, "I", "default FIB of caller"); | CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_NEEDGIANT, | ||||
NULL, 0, &sysctl_my_fibnum, "I", | |||||
"default FIB of caller"); | |||||
static __inline struct rib_head ** | static __inline struct rib_head ** | ||||
rt_tables_get_rnh_ptr(int table, int fam) | rt_tables_get_rnh_ptr(int table, int fam) | ||||
{ | { | ||||
struct rib_head **rnh; | struct rib_head **rnh; | ||||
KASSERT(table >= 0 && table < rt_numfibs, ("%s: table out of bounds.", | KASSERT(table >= 0 && table < rt_numfibs, ("%s: table out of bounds.", | ||||
__func__)); | __func__)); | ||||
Show All 12 Lines |