rtnetlink.c (51bc860d4a997139a3f12bedb96bbf0edcf22d51) | rtnetlink.c (6300acb2eb560496e3560ba709c4f3ea042dadbc) |
---|---|
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> --- 4914 unchanged lines hidden (view full) --- 4923 if (ifsm->pad1 || ifsm->pad2 || (is_dump && ifsm->ifindex)) { 4924 NL_SET_ERR_MSG(extack, "Invalid values in header for stats dump request"); 4925 return -EINVAL; 4926 } 4927 if (nlmsg_attrlen(nlh, sizeof(*ifsm))) { 4928 NL_SET_ERR_MSG(extack, "Invalid attributes after stats header"); 4929 return -EINVAL; 4930 } | 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> --- 4914 unchanged lines hidden (view full) --- 4923 if (ifsm->pad1 || ifsm->pad2 || (is_dump && ifsm->ifindex)) { 4924 NL_SET_ERR_MSG(extack, "Invalid values in header for stats dump request"); 4925 return -EINVAL; 4926 } 4927 if (nlmsg_attrlen(nlh, sizeof(*ifsm))) { 4928 NL_SET_ERR_MSG(extack, "Invalid attributes after stats header"); 4929 return -EINVAL; 4930 } |
4931 if (ifsm->filter_mask >= IFLA_STATS_FILTER_BIT(IFLA_STATS_MAX + 1)) { 4932 NL_SET_ERR_MSG(extack, "Invalid stats requested through filter mask"); 4933 return -EINVAL; 4934 } |
|
4931 4932 return 0; 4933} 4934 4935static int rtnl_stats_get(struct sk_buff *skb, struct nlmsghdr *nlh, 4936 struct netlink_ext_ack *extack) 4937{ 4938 struct net *net = sock_net(skb->sk); --- 330 unchanged lines hidden --- | 4935 4936 return 0; 4937} 4938 4939static int rtnl_stats_get(struct sk_buff *skb, struct nlmsghdr *nlh, 4940 struct netlink_ext_ack *extack) 4941{ 4942 struct net *net = sock_net(skb->sk); --- 330 unchanged lines hidden --- |