Skip to content

Commit

Permalink
[NETNS]: Add the netns_ipv4 struct
Browse files Browse the repository at this point in the history
The ipv4 will store its parameters inside this structure.
This one is empty now, but it will be eventually filled.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Jan 28, 2008
1 parent 4bda4f2 commit 8afd351
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/net/net_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <net/netns/unix.h>
#include <net/netns/packet.h>
#include <net/netns/ipv4.h>

struct proc_dir_entry;
struct net_device;
Expand Down Expand Up @@ -46,6 +47,7 @@ struct net {

struct netns_packet packet;
struct netns_unix unx;
struct netns_ipv4 ipv4;
};

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

#ifndef __NETNS_IPV4_H__
#define __NETNS_IPV4_H__
struct netns_ipv4 {
};
#endif

0 comments on commit 8afd351

Please sign in to comment.