nd6: sysctl
Move the SYSCTL_DECL to the top of the file. Move the sysctl function before SYSCTL_PROC so that we don't need an extra function declaration in the middle of the file. No functional changes. MFC after: 3 weeks Sponsored by: Netflix
This commit is contained in:
parent
6db6527385
commit
3c5018ca10
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354863
@ -148,6 +148,8 @@ VNET_DEFINE_STATIC(struct callout, nd6_slowtimo_ch);
|
|||||||
VNET_DEFINE_STATIC(struct callout, nd6_timer_ch);
|
VNET_DEFINE_STATIC(struct callout, nd6_timer_ch);
|
||||||
#define V_nd6_timer_ch VNET(nd6_timer_ch)
|
#define V_nd6_timer_ch VNET(nd6_timer_ch)
|
||||||
|
|
||||||
|
SYSCTL_DECL(_net_inet6_icmp6);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
nd6_lle_event(void *arg __unused, struct llentry *lle, int evt)
|
nd6_lle_event(void *arg __unused, struct llentry *lle, int evt)
|
||||||
{
|
{
|
||||||
@ -2571,18 +2573,6 @@ clear_llinfo_pqueue(struct llentry *ln)
|
|||||||
ln->la_hold = NULL;
|
ln->la_hold = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int nd6_sysctl_prlist(SYSCTL_HANDLER_ARGS);
|
|
||||||
|
|
||||||
SYSCTL_DECL(_net_inet6_icmp6);
|
|
||||||
SYSCTL_PROC(_net_inet6_icmp6, ICMPV6CTL_ND6_PRLIST, nd6_prlist,
|
|
||||||
CTLTYPE_OPAQUE | CTLFLAG_RD | CTLFLAG_MPSAFE,
|
|
||||||
NULL, 0, nd6_sysctl_prlist, "S,in6_prefix",
|
|
||||||
"NDP prefix list");
|
|
||||||
SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_ND6_MAXQLEN, nd6_maxqueuelen,
|
|
||||||
CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(nd6_maxqueuelen), 1, "");
|
|
||||||
SYSCTL_INT(_net_inet6_icmp6, OID_AUTO, nd6_gctimer,
|
|
||||||
CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(nd6_gctimer), (60 * 60 * 24), "");
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
nd6_sysctl_prlist(SYSCTL_HANDLER_ARGS)
|
nd6_sysctl_prlist(SYSCTL_HANDLER_ARGS)
|
||||||
{
|
{
|
||||||
@ -2656,3 +2646,11 @@ nd6_sysctl_prlist(SYSCTL_HANDLER_ARGS)
|
|||||||
ND6_RUNLOCK();
|
ND6_RUNLOCK();
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
SYSCTL_PROC(_net_inet6_icmp6, ICMPV6CTL_ND6_PRLIST, nd6_prlist,
|
||||||
|
CTLTYPE_OPAQUE | CTLFLAG_RD | CTLFLAG_MPSAFE,
|
||||||
|
NULL, 0, nd6_sysctl_prlist, "S,in6_prefix",
|
||||||
|
"NDP prefix list");
|
||||||
|
SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_ND6_MAXQLEN, nd6_maxqueuelen,
|
||||||
|
CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(nd6_maxqueuelen), 1, "");
|
||||||
|
SYSCTL_INT(_net_inet6_icmp6, OID_AUTO, nd6_gctimer,
|
||||||
|
CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(nd6_gctimer), (60 * 60 * 24), "");
|
||||||
|
Loading…
Reference in New Issue
Block a user