fib_frontend.c (39fe5434cb9de5da40510028b17b96bc4eb312b3) fib_frontend.c (e9dc86534051b78e41e5b746cccc291b57a3a311)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * IPv4 Forwarding Information Base: FIB frontend.
7 *
8 * Version: $Id: fib_frontend.c,v 1.26 2001/10/31 21:55:54 davem Exp $

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

855 return NOTIFY_DONE;
856}
857
858static int fib_netdev_event(struct notifier_block *this, unsigned long event, void *ptr)
859{
860 struct net_device *dev = ptr;
861 struct in_device *in_dev = __in_dev_get_rtnl(dev);
862
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * IPv4 Forwarding Information Base: FIB frontend.
7 *
8 * Version: $Id: fib_frontend.c,v 1.26 2001/10/31 21:55:54 davem Exp $

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

855 return NOTIFY_DONE;
856}
857
858static int fib_netdev_event(struct notifier_block *this, unsigned long event, void *ptr)
859{
860 struct net_device *dev = ptr;
861 struct in_device *in_dev = __in_dev_get_rtnl(dev);
862
863 if (dev->nd_net != &init_net)
864 return NOTIFY_DONE;
865
863 if (event == NETDEV_UNREGISTER) {
864 fib_disable_ip(dev, 2);
865 return NOTIFY_DONE;
866 }
867
868 if (!in_dev)
869 return NOTIFY_DONE;
870

--- 55 unchanged lines hidden ---
866 if (event == NETDEV_UNREGISTER) {
867 fib_disable_ip(dev, 2);
868 return NOTIFY_DONE;
869 }
870
871 if (!in_dev)
872 return NOTIFY_DONE;
873

--- 55 unchanged lines hidden ---