Hi, Le 24/01/2018 à 15:26, Christian Brauner a écrit : > Hi, > > Based on the previous discussion this enables passing a IFLA_IF_NETNSID > property along with RTM_SETLINK and RTM_DELLINK requests. The patch for > RTM_NEWLINK will be sent out in a separate patch since there are more > corner-cases to think about. I wonder if it would be possible to do something in the netlink framework, like NETLINK_LISTEN_ALL_NSID. Having some ancillary data at the netlink socket level and a function like nlsock_net() (instead of sock_net()) to get the corresponding netns. With that, it would be possible, in a generci way, to support this feature for all netlink family.
Regards, Nicolas