rtnetlink.c (ec84f0056711efe93f034c86dd65e0de8d3531ff) rtnetlink.c (93af205656bed3d8d3f4b85b2a3749c7ed7d996a)
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>

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

2732 * buffer size based upon the filter mask.
2733 */
2734 list_for_each_entry(dev, &net->dev_base_head, dev_list) {
2735 min_ifinfo_dump_size = max_t(u16, min_ifinfo_dump_size,
2736 if_nlmsg_size(dev,
2737 ext_filter_mask));
2738 }
2739
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>

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

2732 * buffer size based upon the filter mask.
2733 */
2734 list_for_each_entry(dev, &net->dev_base_head, dev_list) {
2735 min_ifinfo_dump_size = max_t(u16, min_ifinfo_dump_size,
2736 if_nlmsg_size(dev,
2737 ext_filter_mask));
2738 }
2739
2740 return min_ifinfo_dump_size;
2740 return nlmsg_total_size(min_ifinfo_dump_size);
2741}
2742
2743static int rtnl_dump_all(struct sk_buff *skb, struct netlink_callback *cb)
2744{
2745 int idx;
2746 int s_idx = cb->family;
2747
2748 if (s_idx == 0)

--- 1381 unchanged lines hidden ---
2741}
2742
2743static int rtnl_dump_all(struct sk_buff *skb, struct netlink_callback *cb)
2744{
2745 int idx;
2746 int s_idx = cb->family;
2747
2748 if (s_idx == 0)

--- 1381 unchanged lines hidden ---