This is the part from the larger patch that deals with network namespace
support only.
The debug instrumentation is there to better diagnose cross namespace
device setup.
The netlink attribute IFLA_NET_NS_FD can be used to specifiy the namespace
for the newly create gtp netdevice.
In the libgtnl API the netspace filedescriptor is optional.
Andreas
--
Andreas Schultz (3):
gtp: add some debug instrumentation
gtp: select netns based on NL attribute
gtp-rtnl: and netns support
gtp.c | 41 ++++++++++++++++++++++++++++++++++++----
gtp_nl.h | 1 +
libgtnl/include/libgtpnl/gtp.h | 2 ++
libgtnl/include/libgtpnl/gtpnl.h | 2 +-
libgtnl/include/linux/gtp_nl.h | 1 +
libgtnl/src/gtp-genl.c | 2 ++
libgtnl/src/gtp-rtnl.c | 4 +++-
libgtnl/src/gtp.c | 12 ++++++++++++
libgtnl/src/internal.h | 1 +
libgtnl/src/libgtpnl.map | 2 ++
10 files changed, 62 insertions(+), 6 deletions(-)
--
2.5.0