fib_frontend.c (4f84d82f7a623f8641af2574425c329431ff158f) fib_frontend.c (b7c6ba6eb1234e35a74fb8ba8123232a7b1ba9e4)
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 $

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

876}
877
878static void nl_fib_lookup_exit(struct net *net)
879{
880 /* At the last minute lie and say this is a socket for the
881 * initial network namespace. So the socket will be safe to free.
882 */
883 net->ipv4.fibnl->sk_net = get_net(&init_net);
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 $

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

876}
877
878static void nl_fib_lookup_exit(struct net *net)
879{
880 /* At the last minute lie and say this is a socket for the
881 * initial network namespace. So the socket will be safe to free.
882 */
883 net->ipv4.fibnl->sk_net = get_net(&init_net);
884 sock_release(net->ipv4.fibnl->sk_socket);
884 netlink_kernel_release(net->ipv4.fibnl);
885}
886
887static void fib_disable_ip(struct net_device *dev, int force)
888{
889 if (fib_sync_down(0, dev, force))
890 fib_flush(dev->nd_net);
891 rt_cache_flush(0);
892 arp_ifdown(dev);

--- 160 unchanged lines hidden ---
885}
886
887static void fib_disable_ip(struct net_device *dev, int force)
888{
889 if (fib_sync_down(0, dev, force))
890 fib_flush(dev->nd_net);
891 rt_cache_flush(0);
892 arp_ifdown(dev);

--- 160 unchanged lines hidden ---