version 1.152, 2016/10/31 04:16:25 |
version 1.153, 2016/11/18 06:50:04 |
Line 66 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 66 __KERNEL_RCSID(0, "$NetBSD$"); |
|
|
|
#ifdef _KERNEL_OPT |
#ifdef _KERNEL_OPT |
#include "opt_ipsec.h" |
#include "opt_ipsec.h" |
|
#include "opt_net_mpsafe.h" |
#endif |
#endif |
|
|
#include <sys/param.h> |
#include <sys/param.h> |
|
|
rip6_purgeif(struct socket *so, struct ifnet *ifp) |
rip6_purgeif(struct socket *so, struct ifnet *ifp) |
{ |
{ |
|
|
|
#ifndef NET_MPSAFE |
mutex_enter(softnet_lock); |
mutex_enter(softnet_lock); |
|
#endif |
in6_pcbpurgeif0(&raw6cbtable, ifp); |
in6_pcbpurgeif0(&raw6cbtable, ifp); |
in6_purgeif(ifp); |
in6_purgeif(ifp); |
in6_pcbpurgeif(&raw6cbtable, ifp); |
in6_pcbpurgeif(&raw6cbtable, ifp); |
|
#ifndef NET_MPSAFE |
mutex_exit(softnet_lock); |
mutex_exit(softnet_lock); |
|
#endif |
|
|
return 0; |
return 0; |
} |
} |