Print this page
dccp: starting module template

@@ -109,10 +109,12 @@
 #include <ipp/ipp.h>
 #include <ipp/ipp_impl.h>
 #include <ipp/ipgpc/ipgpc.h>
 
 #include <sys/pattr.h>
+#include <inet/dccp/dccp_ip.h>
+#include <inet/dccp/dccp_impl.h>
 #include <inet/ipclassifier.h>
 #include <inet/sctp_ip.h>
 #include <inet/sctp/sctp_impl.h>
 #include <inet/udp_impl.h>
 #include <inet/rawip_impl.h>

@@ -4309,10 +4311,11 @@
         tnet_fini();
 
         icmp_ddi_g_destroy();
         rts_ddi_g_destroy();
         udp_ddi_g_destroy();
+        dccp_ddi_g_destroy();
         sctp_ddi_g_destroy();
         tcp_ddi_g_destroy();
         ilb_ddi_g_destroy();
         dce_g_destroy();
         ipsec_policy_g_destroy();

@@ -4545,10 +4548,11 @@
             offsetof(th_hash_t, thh_link));
 #endif
         ipsec_policy_g_init();
         tcp_ddi_g_init();
         sctp_ddi_g_init();
+        dccp_ddi_g_init();
         dce_g_init();
 
         /*
          * We want to be informed each time a stack is created or
          * destroyed in the kernel, so we can maintain the

@@ -9682,13 +9686,19 @@
                 return (1);
 
         if ((mpctl = sctp_snmp_get_mib2(q, mpctl, sctps)) == NULL) {
                 return (1);
         }
+
         if ((mpctl = ip_snmp_get_mib2_ip_dce(q, mpctl, ipst)) == NULL) {
                 return (1);
         }
+
+        if ((mpctl = dccp_snmp_get(q, mpctl, legacy_req)) == NULL) {
+                return (1);
+        }
+
         freemsg(mpctl);
         return (1);
 }
 
 /* Get global (legacy) IPv4 statistics */

@@ -15235,10 +15245,11 @@
         case CPU_INIT:
         case CPU_CPUPART_IN:
                 cpu_seqid = cpu[id]->cpu_seqid;
                 netstack_next_init(&nh);
                 while ((ns = netstack_next(&nh)) != NULL) {
+                        dccp_stack_cpu_add(ns->netstack_dccp, cpu_seqid);
                         tcp_stack_cpu_add(ns->netstack_tcp, cpu_seqid);
                         sctp_stack_cpu_add(ns->netstack_sctp, cpu_seqid);
                         udp_stack_cpu_add(ns->netstack_udp, cpu_seqid);
                         netstack_rele(ns);
                 }