Skip to content

Commit

Permalink
[NETNS][IPV6]: Add ipv6 structure for netns.
Browse files Browse the repository at this point in the history
Like the ipv4 part, this patch adds an ipv6 structure in the net
structure to aggregate the different resources to make ipv6 per
namespace.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Daniel Lezcano authored and David S. Miller committed Jan 28, 2008
1 parent 81c1c17 commit b0f159d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/net/net_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <net/netns/unix.h>
#include <net/netns/packet.h>
#include <net/netns/ipv4.h>
#include <net/netns/ipv6.h>

struct proc_dir_entry;
struct net_device;
Expand Down Expand Up @@ -48,6 +49,9 @@ struct net {
struct netns_packet packet;
struct netns_unix unx;
struct netns_ipv4 ipv4;
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
struct netns_ipv6 ipv6;
#endif
};

#ifdef CONFIG_NET
Expand Down
10 changes: 10 additions & 0 deletions include/net/netns/ipv6.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* ipv6 in net namespaces
*/

#ifndef __NETNS_IPV6_H__
#define __NETNS_IPV6_H__

struct netns_ipv6 {
};
#endif

0 comments on commit b0f159d

Please sign in to comment.