aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_frontend.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r--net/ipv4/fib_frontend.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index ae528d1b293a..3e11ea225dad 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -976,8 +976,11 @@ static void nl_fib_input(struct sk_buff *skb)
976static int __net_init nl_fib_lookup_init(struct net *net) 976static int __net_init nl_fib_lookup_init(struct net *net)
977{ 977{
978 struct sock *sk; 978 struct sock *sk;
979 sk = netlink_kernel_create(net, NETLINK_FIB_LOOKUP, 0, 979 struct netlink_kernel_cfg cfg = {
980 nl_fib_input, NULL, THIS_MODULE); 980 .input = nl_fib_input,
981 };
982
983 sk = netlink_kernel_create(net, NETLINK_FIB_LOOKUP, THIS_MODULE, &cfg);
981 if (sk == NULL) 984 if (sk == NULL)
982 return -EAFNOSUPPORT; 985 return -EAFNOSUPPORT;
983 net->ipv4.fibnl = sk; 986 net->ipv4.fibnl = sk;