Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0f159db authored by Daniel Lezcano's avatar Daniel Lezcano Committed by David S. Miller
Browse files

[NETNS][IPV6]: Add ipv6 structure for netns.



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: default avatarDaniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 81c1c178
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
@@ -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
+10 −0
Original line number Diff line number Diff line
/*
 * ipv6 in net namespaces
 */

#ifndef __NETNS_IPV6_H__
#define __NETNS_IPV6_H__

struct netns_ipv6 {
};
#endif