rtnetlink.c (ce55c22ec8b223a90ff3e084d842f73cfba35588) rtnetlink.c (68325c8c1aeb7304eb1db6b39d586875c072734e)
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 *

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

2864 status |= DO_SETLINK_NOTIFY;
2865 }
2866
2867 if (tb[IFLA_BROADCAST]) {
2868 nla_memcpy(dev->broadcast, tb[IFLA_BROADCAST], dev->addr_len);
2869 call_netdevice_notifiers(NETDEV_CHANGEADDR, dev);
2870 }
2871
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 *

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

2864 status |= DO_SETLINK_NOTIFY;
2865 }
2866
2867 if (tb[IFLA_BROADCAST]) {
2868 nla_memcpy(dev->broadcast, tb[IFLA_BROADCAST], dev->addr_len);
2869 call_netdevice_notifiers(NETDEV_CHANGEADDR, dev);
2870 }
2871
2872 if (tb[IFLA_MASTER]) {
2873 err = do_set_master(dev, nla_get_u32(tb[IFLA_MASTER]), extack);
2874 if (err)
2875 goto errout;
2876 status |= DO_SETLINK_MODIFIED;
2877 }
2878
2879 if (ifm->ifi_flags || ifm->ifi_change) {
2880 err = dev_change_flags(dev, rtnl_dev_combine_flags(dev, ifm),
2881 extack);
2882 if (err < 0)
2883 goto errout;
2884 }
2885
2872 if (ifm->ifi_flags || ifm->ifi_change) {
2873 err = dev_change_flags(dev, rtnl_dev_combine_flags(dev, ifm),
2874 extack);
2875 if (err < 0)
2876 goto errout;
2877 }
2878
2879 if (tb[IFLA_MASTER]) {
2880 err = do_set_master(dev, nla_get_u32(tb[IFLA_MASTER]), extack);
2881 if (err)
2882 goto errout;
2883 status |= DO_SETLINK_MODIFIED;
2884 }
2885
2886 if (tb[IFLA_CARRIER]) {
2887 err = dev_change_carrier(dev, nla_get_u8(tb[IFLA_CARRIER]));
2888 if (err)
2889 goto errout;
2890 status |= DO_SETLINK_MODIFIED;
2891 }
2892
2893 if (tb[IFLA_TXQLEN]) {

--- 3679 unchanged lines hidden ---
2886 if (tb[IFLA_CARRIER]) {
2887 err = dev_change_carrier(dev, nla_get_u8(tb[IFLA_CARRIER]));
2888 if (err)
2889 goto errout;
2890 status |= DO_SETLINK_MODIFIED;
2891 }
2892
2893 if (tb[IFLA_TXQLEN]) {

--- 3679 unchanged lines hidden ---