• Nicolas Dichtel's avatar
    dev: always advertise rx_flags changes via netlink · 991fb3f7
    Nicolas Dichtel authored
    When flags IFF_PROMISC and IFF_ALLMULTI are changed, netlink messages are not
    consistent. For example, if a multicast daemon is running (flag IFF_ALLMULTI
    set in dev->flags but not dev->gflags, ie not exported to userspace) and then a
    user sets it via netlink (flag IFF_ALLMULTI set in dev->flags and dev->gflags, ie
    exported to userspace), no netlink message is sent.
    Same for IFF_PROMISC and because dev->promiscuity is exported via
    IFLA_PROMISCUITY, we may send a netlink message after each change of this
    counter.
    Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    991fb3f7
dev.c 171 KB