Mark the prefix and default router list sysctl handlers MPSAFE.
MFC after: 2 weeks
This commit is contained in:
parent
86c15ee95b
commit
9cb221bdb0
@ -2548,13 +2548,16 @@ clear_llinfo_pqueue(struct llentry *ln)
|
||||
|
||||
static int nd6_sysctl_drlist(SYSCTL_HANDLER_ARGS);
|
||||
static int nd6_sysctl_prlist(SYSCTL_HANDLER_ARGS);
|
||||
#ifdef SYSCTL_DECL
|
||||
|
||||
SYSCTL_DECL(_net_inet6_icmp6);
|
||||
#endif
|
||||
SYSCTL_NODE(_net_inet6_icmp6, ICMPV6CTL_ND6_DRLIST, nd6_drlist,
|
||||
CTLFLAG_RD, nd6_sysctl_drlist, "");
|
||||
SYSCTL_NODE(_net_inet6_icmp6, ICMPV6CTL_ND6_PRLIST, nd6_prlist,
|
||||
CTLFLAG_RD, nd6_sysctl_prlist, "");
|
||||
SYSCTL_PROC(_net_inet6_icmp6, ICMPV6CTL_ND6_DRLIST, nd6_drlist,
|
||||
CTLTYPE_OPAQUE | CTLFLAG_RD | CTLFLAG_MPSAFE,
|
||||
NULL, 0, nd6_sysctl_drlist, "S,in6_defrouter",
|
||||
"NDP default router list");
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user