Skip to contentSkip to conversation

: Add an empty netns_dccp structure on struct

RFC PATCH Applied Pavel Emelyanov 1 participant 1 message Apr 8, 2008 Networking

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/12 : Add an empty netns_dccp structure on struct

According to the overall struct net design, it will be filled with DCCP-related members.

---
 include/net/net_namespace.h |    4 ++++
 include/net/netns/dccp.h    |    7 +++++++
 2 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 include/net/netns/dccp.h
include/net/net_namespace.h +4 -0
index 0ab62ed..e2aee26 100644
@@ -13,6 +13,7 @@
 #include <net/netns/packet.h>
 #include <net/netns/ipv4.h>
 #include <net/netns/ipv6.h>
+#include <net/netns/dccp.h>
 #include <net/netns/x_tables.h>
 
 struct proc_dir_entry;
@@ -54,6 +55,9 @@ struct net {
 #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
 	struct netns_ipv6	ipv6;
 #endif
+#if defined(CONFIG_IP_DCCP) || defined(CONFIG_IP_DCCP_MODULE)
+	struct netns_dccp	dccp;
+#endif
 #ifdef CONFIG_NETFILTER
 	struct netns_xt		xt;
 #endif
include/net/netns/dccp.h new file +7 -0
new file mode 100644
index 0000000..056e6ad
@@ -0,0 +1,7 @@
+#ifndef __NETNS_DCCP_H__
+#define __NETNS_DCCP_H__
+
+struct netns_dccp {
+};
+
+#endif
Signature · 1 line
1.5.3.4