Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

if_addr: add IFA_TARGET_NETNSID

This adds a new IFA_TARGET_NETNSID property to be used by address
families such as PF_INET and PF_INET6.
The IFA_TARGET_NETNSID property can be used to send a network namespace
identifier as part of a request. If a IFA_TARGET_NETNSID property is
identified it will be used to retrieve the target network namespace in
which the request is to be made.

Signed-off-by: Christian Brauner <christian@brauner.io>
Cc: Jiri Benc <jbenc@redhat.com>
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Christian Brauner and committed by
David S. Miller
9f3c057c c383edc4

+1
+1
include/uapi/linux/if_addr.h
··· 34 34 IFA_MULTICAST, 35 35 IFA_FLAGS, 36 36 IFA_RT_PRIORITY, /* u32, priority/metric for prefix route */ 37 + IFA_TARGET_NETNSID, 37 38 __IFA_MAX, 38 39 }; 39 40