[PATCH 0/3] netns support for gtp-kernel

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Andreas Schultz aschultz at tpip.net
Tue Nov 17 11:06:17 UTC 2015


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




More information about the OpenBSC mailing list