Print this page
dccp: starting module template

@@ -32,10 +32,12 @@
 #include <inet/ip_stack.h>
 #include <inet/rawip_impl.h>
 #include <inet/tcp_stack.h>
 #include <inet/tcp_impl.h>
 #include <inet/udp_impl.h>
+#include <inet/dccp_stack.h>
+#include <inet/dccp_impl.h>
 #include <inet/sctp/sctp_stack.h>
 #include <inet/sctp/sctp_impl.h>
 #include <inet/tunables.h>
 
 static int

@@ -203,10 +205,11 @@
         char            *pval = val;
         mod_prop_info_t *ptbl, *prop;
         ip_stack_t      *ipst;
         tcp_stack_t     *tcps;
         sctp_stack_t    *sctps;
+        dccp_stack_t    *dccps;
         udp_stack_t     *us;
         icmp_stack_t    *is;
         uint_t          size;
         size_t          nbytes = 0, tbytes = 0;
 

@@ -234,10 +237,14 @@
                 break;
         case MOD_PROTO_SCTP:
                 sctps = (sctp_stack_t *)cbarg;
                 ptbl = sctps->sctps_propinfo_tbl;
                 break;
+        case MOD_PROTO_DCCP:
+                dccps = (dccp_stack_t *)cbarg;
+                ptbl = dccps->dccps_propinfo_tbl;
+                break;
         default:
                 return (EINVAL);
         }
 
         for (prop = ptbl; prop->mpi_name != NULL; prop++) {