rtnetlink.c (ff6ccad361df4dfda42b60897cb7e55b3ba13439) rtnetlink.c (db833d40ad3263b2ee3b59a1ba168bb3cfed8137)
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>

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

926 + nla_total_size(4) /* IFLA_NUM_TX_QUEUES */
927 + nla_total_size(4) /* IFLA_NUM_RX_QUEUES */
928 + nla_total_size(4) /* IFLA_GSO_MAX_SEGS */
929 + nla_total_size(4) /* IFLA_GSO_MAX_SIZE */
930 + nla_total_size(1) /* IFLA_OPERSTATE */
931 + nla_total_size(1) /* IFLA_LINKMODE */
932 + nla_total_size(4) /* IFLA_CARRIER_CHANGES */
933 + nla_total_size(4) /* IFLA_LINK_NETNSID */
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>

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

926 + nla_total_size(4) /* IFLA_NUM_TX_QUEUES */
927 + nla_total_size(4) /* IFLA_NUM_RX_QUEUES */
928 + nla_total_size(4) /* IFLA_GSO_MAX_SEGS */
929 + nla_total_size(4) /* IFLA_GSO_MAX_SIZE */
930 + nla_total_size(1) /* IFLA_OPERSTATE */
931 + nla_total_size(1) /* IFLA_LINKMODE */
932 + nla_total_size(4) /* IFLA_CARRIER_CHANGES */
933 + nla_total_size(4) /* IFLA_LINK_NETNSID */
934 + nla_total_size(4) /* IFLA_GROUP */
934 + nla_total_size(ext_filter_mask
935 & RTEXT_FILTER_VF ? 4 : 0) /* IFLA_NUM_VF */
936 + rtnl_vfinfo_size(dev, ext_filter_mask) /* IFLA_VFINFO_LIST */
937 + rtnl_port_size(dev, ext_filter_mask) /* IFLA_VF_PORTS + IFLA_PORT_SELF */
938 + rtnl_link_get_size(dev) /* IFLA_LINKINFO */
939 + rtnl_link_get_af_size(dev, ext_filter_mask) /* IFLA_AF_SPEC */
940 + nla_total_size(MAX_PHYS_ITEM_ID_LEN) /* IFLA_PHYS_PORT_ID */
941 + nla_total_size(MAX_PHYS_ITEM_ID_LEN) /* IFLA_PHYS_SWITCH_ID */

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

1463 [IFLA_NUM_TX_QUEUES] = { .type = NLA_U32 },
1464 [IFLA_NUM_RX_QUEUES] = { .type = NLA_U32 },
1465 [IFLA_PHYS_PORT_ID] = { .type = NLA_BINARY, .len = MAX_PHYS_ITEM_ID_LEN },
1466 [IFLA_CARRIER_CHANGES] = { .type = NLA_U32 }, /* ignored */
1467 [IFLA_PHYS_SWITCH_ID] = { .type = NLA_BINARY, .len = MAX_PHYS_ITEM_ID_LEN },
1468 [IFLA_LINK_NETNSID] = { .type = NLA_S32 },
1469 [IFLA_PROTO_DOWN] = { .type = NLA_U8 },
1470 [IFLA_XDP] = { .type = NLA_NESTED },
935 + nla_total_size(ext_filter_mask
936 & RTEXT_FILTER_VF ? 4 : 0) /* IFLA_NUM_VF */
937 + rtnl_vfinfo_size(dev, ext_filter_mask) /* IFLA_VFINFO_LIST */
938 + rtnl_port_size(dev, ext_filter_mask) /* IFLA_VF_PORTS + IFLA_PORT_SELF */
939 + rtnl_link_get_size(dev) /* IFLA_LINKINFO */
940 + rtnl_link_get_af_size(dev, ext_filter_mask) /* IFLA_AF_SPEC */
941 + nla_total_size(MAX_PHYS_ITEM_ID_LEN) /* IFLA_PHYS_PORT_ID */
942 + nla_total_size(MAX_PHYS_ITEM_ID_LEN) /* IFLA_PHYS_SWITCH_ID */

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

1464 [IFLA_NUM_TX_QUEUES] = { .type = NLA_U32 },
1465 [IFLA_NUM_RX_QUEUES] = { .type = NLA_U32 },
1466 [IFLA_PHYS_PORT_ID] = { .type = NLA_BINARY, .len = MAX_PHYS_ITEM_ID_LEN },
1467 [IFLA_CARRIER_CHANGES] = { .type = NLA_U32 }, /* ignored */
1468 [IFLA_PHYS_SWITCH_ID] = { .type = NLA_BINARY, .len = MAX_PHYS_ITEM_ID_LEN },
1469 [IFLA_LINK_NETNSID] = { .type = NLA_S32 },
1470 [IFLA_PROTO_DOWN] = { .type = NLA_U8 },
1471 [IFLA_XDP] = { .type = NLA_NESTED },
1472 [IFLA_GROUP] = { .type = NLA_U32 },
1471};
1472
1473static const struct nla_policy ifla_info_policy[IFLA_INFO_MAX+1] = {
1474 [IFLA_INFO_KIND] = { .type = NLA_STRING },
1475 [IFLA_INFO_DATA] = { .type = NLA_NESTED },
1476 [IFLA_INFO_SLAVE_KIND] = { .type = NLA_STRING },
1477 [IFLA_INFO_SLAVE_DATA] = { .type = NLA_NESTED },
1478};

--- 2762 unchanged lines hidden ---
1473};
1474
1475static const struct nla_policy ifla_info_policy[IFLA_INFO_MAX+1] = {
1476 [IFLA_INFO_KIND] = { .type = NLA_STRING },
1477 [IFLA_INFO_DATA] = { .type = NLA_NESTED },
1478 [IFLA_INFO_SLAVE_KIND] = { .type = NLA_STRING },
1479 [IFLA_INFO_SLAVE_DATA] = { .type = NLA_NESTED },
1480};

--- 2762 unchanged lines hidden ---