fib_frontend.c (7a9bc9b81a5bc6e44ebc80ef781332e4385083f2) | fib_frontend.c (a31f2d17b331db970259e875b7223d3aba7e3821) |
---|---|
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 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 962 unchanged lines hidden (view full) --- 971 NETLINK_CB(skb).pid = 0; /* from kernel */ 972 NETLINK_CB(skb).dst_group = 0; /* unicast */ 973 netlink_unicast(net->ipv4.fibnl, skb, pid, MSG_DONTWAIT); 974} 975 976static int __net_init nl_fib_lookup_init(struct net *net) 977{ 978 struct sock *sk; | 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 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 962 unchanged lines hidden (view full) --- 971 NETLINK_CB(skb).pid = 0; /* from kernel */ 972 NETLINK_CB(skb).dst_group = 0; /* unicast */ 973 netlink_unicast(net->ipv4.fibnl, skb, pid, MSG_DONTWAIT); 974} 975 976static int __net_init nl_fib_lookup_init(struct net *net) 977{ 978 struct sock *sk; |
979 sk = netlink_kernel_create(net, NETLINK_FIB_LOOKUP, 0, 980 nl_fib_input, NULL, THIS_MODULE); | 979 struct netlink_kernel_cfg cfg = { 980 .input = nl_fib_input, 981 }; 982 983 sk = netlink_kernel_create(net, NETLINK_FIB_LOOKUP, THIS_MODULE, &cfg); |
981 if (sk == NULL) 982 return -EAFNOSUPPORT; 983 net->ipv4.fibnl = sk; 984 return 0; 985} 986 987static void nl_fib_lookup_exit(struct net *net) 988{ --- 188 unchanged lines hidden --- | 984 if (sk == NULL) 985 return -EAFNOSUPPORT; 986 net->ipv4.fibnl = sk; 987 return 0; 988} 989 990static void nl_fib_lookup_exit(struct net *net) 991{ --- 188 unchanged lines hidden --- |