xfrm_policy.c (ab5f5e8b144e4c804ef3aa1ce08a9ca9f01187ce) xfrm_policy.c (e9dc86534051b78e41e5b746cccc291b57a3a311)
1/*
2 * xfrm_policy.c
3 *
4 * Changes:
5 * Mitsuru KANDA @USAGI
6 * Kazunori MIYAZAWA @USAGI
7 * Kunihiro Ishiguro <kunihiro@ipinfusion.com>
8 * IPv6 support

--- 2222 unchanged lines hidden (view full) ---

2231
2232static void xfrm_policy_unlock_afinfo(struct xfrm_policy_afinfo *afinfo)
2233{
2234 write_unlock_bh(&xfrm_policy_afinfo_lock);
2235}
2236
2237static int xfrm_dev_event(struct notifier_block *this, unsigned long event, void *ptr)
2238{
1/*
2 * xfrm_policy.c
3 *
4 * Changes:
5 * Mitsuru KANDA @USAGI
6 * Kazunori MIYAZAWA @USAGI
7 * Kunihiro Ishiguro <kunihiro@ipinfusion.com>
8 * IPv6 support

--- 2222 unchanged lines hidden (view full) ---

2231
2232static void xfrm_policy_unlock_afinfo(struct xfrm_policy_afinfo *afinfo)
2233{
2234 write_unlock_bh(&xfrm_policy_afinfo_lock);
2235}
2236
2237static int xfrm_dev_event(struct notifier_block *this, unsigned long event, void *ptr)
2238{
2239 struct net_device *dev = ptr;
2240
2241 if (dev->nd_net != &init_net)
2242 return NOTIFY_DONE;
2243
2239 switch (event) {
2240 case NETDEV_DOWN:
2241 xfrm_flush_bundles();
2242 }
2243 return NOTIFY_DONE;
2244}
2245
2246static struct notifier_block xfrm_dev_notifier = {

--- 342 unchanged lines hidden ---
2244 switch (event) {
2245 case NETDEV_DOWN:
2246 xfrm_flush_bundles();
2247 }
2248 return NOTIFY_DONE;
2249}
2250
2251static struct notifier_block xfrm_dev_notifier = {

--- 342 unchanged lines hidden ---