fib_frontend.c (dbe69e43372212527abf48609aba7fc39a6daa27) fib_frontend.c (01757f536ac825e3614d583fee9acb48c64ed084)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
5 * interface as the means of communication with the user level.
6 *
7 * IPv4 Forwarding Information Base: FIB frontend.
8 *

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

1371 nlh = nlmsg_hdr(skb);
1372
1373 frn = (struct fib_result_nl *) nlmsg_data(nlh);
1374 nl_fib_lookup(net, frn);
1375
1376 portid = NETLINK_CB(skb).portid; /* netlink portid */
1377 NETLINK_CB(skb).portid = 0; /* from kernel */
1378 NETLINK_CB(skb).dst_group = 0; /* unicast */
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
5 * interface as the means of communication with the user level.
6 *
7 * IPv4 Forwarding Information Base: FIB frontend.
8 *

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

1371 nlh = nlmsg_hdr(skb);
1372
1373 frn = (struct fib_result_nl *) nlmsg_data(nlh);
1374 nl_fib_lookup(net, frn);
1375
1376 portid = NETLINK_CB(skb).portid; /* netlink portid */
1377 NETLINK_CB(skb).portid = 0; /* from kernel */
1378 NETLINK_CB(skb).dst_group = 0; /* unicast */
1379 netlink_unicast(net->ipv4.fibnl, skb, portid, MSG_DONTWAIT);
1379 nlmsg_unicast(net->ipv4.fibnl, skb, portid);
1380}
1381
1382static int __net_init nl_fib_lookup_init(struct net *net)
1383{
1384 struct sock *sk;
1385 struct netlink_kernel_cfg cfg = {
1386 .input = nl_fib_input,
1387 };

--- 243 unchanged lines hidden ---
1380}
1381
1382static int __net_init nl_fib_lookup_init(struct net *net)
1383{
1384 struct sock *sk;
1385 struct netlink_kernel_cfg cfg = {
1386 .input = nl_fib_input,
1387 };

--- 243 unchanged lines hidden ---