devinet.c (db66e32e0d2ae1f5070faa589aa460b75780ab47) | devinet.c (d5566fd72ec1924958fcfd48b65c022c8f7eae64) |
---|---|
1/* 2 * NET3 IP device support routines. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 1640 unchanged lines hidden (view full) --- 1649 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); 1650 1651 if (!in_dev) 1652 return 0; 1653 1654 return nla_total_size(IPV4_DEVCONF_MAX * 4); /* IFLA_INET_CONF */ 1655} 1656 | 1/* 2 * NET3 IP device support routines. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * --- 1640 unchanged lines hidden (view full) --- 1649 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); 1650 1651 if (!in_dev) 1652 return 0; 1653 1654 return nla_total_size(IPV4_DEVCONF_MAX * 4); /* IFLA_INET_CONF */ 1655} 1656 |
1657static int inet_fill_link_af(struct sk_buff *skb, const struct net_device *dev) | 1657static int inet_fill_link_af(struct sk_buff *skb, const struct net_device *dev, 1658 u32 ext_filter_mask) |
1658{ 1659 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); 1660 struct nlattr *nla; 1661 int i; 1662 1663 if (!in_dev) 1664 return -ENODATA; 1665 --- 735 unchanged lines hidden --- | 1659{ 1660 struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr); 1661 struct nlattr *nla; 1662 int i; 1663 1664 if (!in_dev) 1665 return -ENODATA; 1666 --- 735 unchanged lines hidden --- |