Le 03/10/2019 à 18:19, Guillaume Nault a écrit : [snip] > Why not using the existing NLM_F_ECHO mechanism? > > IIUC, if rtnl_net_notifyid() did pass the proper nlmsghdr and portid to > rtnl_notify(), the later would automatically notify the caller with > updated information if the original request had the NLM_F_ECHO flag. > Good point. Note that with library like libnl, the auto sequence number check will fail (seq number is 0 instead of the previous + 1) and thus must be bypassed.
- [PATCH net-next 0/2] Ease nsid allocation Nicolas Dichtel
- [PATCH net-next 2/2] netns/rtnl: return the new nsid ... Nicolas Dichtel
- [PATCH net-next 1/2] netns: move rtnl_net_get_size() ... Nicolas Dichtel
- Re: [PATCH net-next 0/2] Ease nsid allocation David Miller
- Re: [PATCH net-next 0/2] Ease nsid allocation Nicolas Dichtel
- Re: [PATCH net-next 0/2] Ease nsid allocation David Miller
- Re: [PATCH net-next 0/2] Ease nsid allocation Guillaume Nault
- Re: [PATCH net-next 0/2] Ease nsid alloca... Nicolas Dichtel
- Re: [PATCH net-next 0/2] Ease nsid a... Guillaume Nault
- [PATCH net] netns: fix NLM_F_ECHO mechani... Nicolas Dichtel
- Re: [PATCH net] netns: fix NLM_F_ECH... Guillaume Nault
- Re: [PATCH net] netns: fix NLM_F... Nicolas Dichtel
- Re: [PATCH net] netns: fix N... Guillaume Nault
- [PATCH net v2] netns: fix NLM_F_... Nicolas Dichtel
- Re: [PATCH net v2] netns: fi... Guillaume Nault
- Re: [PATCH net v2] netns: fi... Jakub Kicinski