rtnetlink.c (cc4bdef26ecd56de16a04bc6d99aa10ff9076498) rtnetlink.c (6f37c9f9dfbf9a9645ec5ea2d9370b0fd3e9081e)
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 *

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

3452 * or it's for a group
3453 */
3454 if (link_specified)
3455 return -ENODEV;
3456 if (tb[IFLA_GROUP])
3457 return rtnl_group_changelink(skb, net,
3458 nla_get_u32(tb[IFLA_GROUP]),
3459 ifm, extack, tb);
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 *

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

3452 * or it's for a group
3453 */
3454 if (link_specified)
3455 return -ENODEV;
3456 if (tb[IFLA_GROUP])
3457 return rtnl_group_changelink(skb, net,
3458 nla_get_u32(tb[IFLA_GROUP]),
3459 ifm, extack, tb);
3460 return -EINVAL;
3460 return -ENODEV;
3461 }
3462
3463 if (tb[IFLA_MAP] || tb[IFLA_PROTINFO])
3464 return -EOPNOTSUPP;
3465
3466 if (!ops) {
3467#ifdef CONFIG_MODULES
3468 if (kind[0]) {

--- 2723 unchanged lines hidden ---
3461 }
3462
3463 if (tb[IFLA_MAP] || tb[IFLA_PROTINFO])
3464 return -EOPNOTSUPP;
3465
3466 if (!ops) {
3467#ifdef CONFIG_MODULES
3468 if (kind[0]) {

--- 2723 unchanged lines hidden ---