rtnetlink.c (d4e4fdf9e4a27c87edb79b1478955075be141f67) | rtnetlink.c (8b73018fe44521c1cf59d7bac53624c87d3f10e2) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 5 * interface as the means of communication with the user level. 6 * 7 * Routing netlink socket interface: protocol independent part. 8 * --- 3903 unchanged lines hidden (view full) --- 3912 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ndm))) { 3913 NL_SET_ERR_MSG(extack, "Invalid header for fdb dump request"); 3914 return -EINVAL; 3915 } 3916 3917 ndm = nlmsg_data(nlh); 3918 if (ndm->ndm_pad1 || ndm->ndm_pad2 || ndm->ndm_state || 3919 ndm->ndm_flags || ndm->ndm_type) { | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * INET An implementation of the TCP/IP protocol suite for the LINUX 4 * operating system. INET is implemented using the BSD Socket 5 * interface as the means of communication with the user level. 6 * 7 * Routing netlink socket interface: protocol independent part. 8 * --- 3903 unchanged lines hidden (view full) --- 3912 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ndm))) { 3913 NL_SET_ERR_MSG(extack, "Invalid header for fdb dump request"); 3914 return -EINVAL; 3915 } 3916 3917 ndm = nlmsg_data(nlh); 3918 if (ndm->ndm_pad1 || ndm->ndm_pad2 || ndm->ndm_state || 3919 ndm->ndm_flags || ndm->ndm_type) { |
3920 NL_SET_ERR_MSG(extack, "Invalid values in header for fbd dump request"); | 3920 NL_SET_ERR_MSG(extack, "Invalid values in header for fdb dump request"); |
3921 return -EINVAL; 3922 } 3923 3924 err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct ndmsg), tb, 3925 NDA_MAX, NULL, extack); 3926 if (err < 0) 3927 return err; 3928 --- 1417 unchanged lines hidden --- | 3921 return -EINVAL; 3922 } 3923 3924 err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct ndmsg), tb, 3925 NDA_MAX, NULL, extack); 3926 if (err < 0) 3927 return err; 3928 --- 1417 unchanged lines hidden --- |