• N
    dev: always advertise rx_flags changes via netlink · 991fb3f7
    Nicolas Dichtel 提交于
    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: NNicolas Dichtel <nicolas.dichtel@6wind.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    991fb3f7
dev.c 170.7 KB