Print this page
dccp: starting module template

@@ -79,11 +79,12 @@
 #define NS_SPDSOCK      14
 #define NS_IPSECAH      15
 #define NS_IPSECESP     16
 #define NS_IPNET        17
 #define NS_ILB          18
-#define NS_MAX          (NS_ILB+1)
+#define NS_DCCP         19
+#define NS_MAX          (NS_DCCP+1)
 
 /*
  * State maintained for each module which tracks the state of
  * the create, shutdown and destroy callbacks.
  *

@@ -155,10 +156,11 @@
                         struct spd_stack        *nu_spdsock;
                         struct ipsecah_stack    *nu_ipsecah;
                         struct ipsecesp_stack   *nu_ipsecesp;
                         struct ipnet_stack      *nu_ipnet;
                         struct ilb_stack        *nu_ilb;
+                        struct dccp_stack       *nu_dccp;
                 } nu_s;
         } netstack_u;
 #define netstack_modules        netstack_u.nu_modules
 #define netstack_dls            netstack_u.nu_s.nu_dls
 #define netstack_iptun          netstack_u.nu_s.nu_iptun

@@ -177,10 +179,11 @@
 #define netstack_spdsock        netstack_u.nu_s.nu_spdsock
 #define netstack_ipsecah        netstack_u.nu_s.nu_ipsecah
 #define netstack_ipsecesp       netstack_u.nu_s.nu_ipsecesp
 #define netstack_ipnet          netstack_u.nu_s.nu_ipnet
 #define netstack_ilb            netstack_u.nu_s.nu_ilb
+#define netstack_dccp           netstack_u.nu_s.nu_dccp
 
         nm_state_t      netstack_m_state[NS_MAX]; /* module state */
 
         kmutex_t        netstack_lock;
         struct netstack *netstack_next;