rtnetlink.c (645359930231d5e78fd3296a38b98c1a658a7ade) | rtnetlink.c (3e805ad288c524bb65aad3f1e004402223d3d504) |
---|---|
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 * Routing netlink socket interface: protocol independent part. 7 * 8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 2370 unchanged lines hidden (view full) --- 2379 struct net *net = sock_net(skb->sk); 2380 struct net_device *dev; 2381 int idx = 0; 2382 u32 portid = NETLINK_CB(cb->skb).portid; 2383 u32 seq = cb->nlh->nlmsg_seq; 2384 struct nlattr *extfilt; 2385 u32 filter_mask = 0; 2386 | 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 * Routing netlink socket interface: protocol independent part. 7 * 8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 2370 unchanged lines hidden (view full) --- 2379 struct net *net = sock_net(skb->sk); 2380 struct net_device *dev; 2381 int idx = 0; 2382 u32 portid = NETLINK_CB(cb->skb).portid; 2383 u32 seq = cb->nlh->nlmsg_seq; 2384 struct nlattr *extfilt; 2385 u32 filter_mask = 0; 2386 |
2387 extfilt = nlmsg_find_attr(cb->nlh, sizeof(struct rtgenmsg), | 2387 extfilt = nlmsg_find_attr(cb->nlh, sizeof(struct ifinfomsg), |
2388 IFLA_EXT_MASK); 2389 if (extfilt) 2390 filter_mask = nla_get_u32(extfilt); 2391 2392 rcu_read_lock(); 2393 for_each_netdev_rcu(net, dev) { 2394 const struct net_device_ops *ops = dev->netdev_ops; 2395 struct net_device *br_dev = netdev_master_upper_dev_get(dev); --- 365 unchanged lines hidden --- | 2388 IFLA_EXT_MASK); 2389 if (extfilt) 2390 filter_mask = nla_get_u32(extfilt); 2391 2392 rcu_read_lock(); 2393 for_each_netdev_rcu(net, dev) { 2394 const struct net_device_ops *ops = dev->netdev_ops; 2395 struct net_device *br_dev = netdev_master_upper_dev_get(dev); --- 365 unchanged lines hidden --- |