Print this page
dccp: starting module template
*** 109,118 ****
--- 109,121 ----
#include <ipp/ipp.h>
#include <ipp/ipp_impl.h>
#include <ipp/ipgpc/ipgpc.h>
#include <sys/pattr.h>
+ #include <inet/dccp.h>
+ #include <inet/dccp_impl.h>
+ #include <inet/dccp_ip.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,4318 ****
--- 4312,4322 ----
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,4554 ****
--- 4549,4559 ----
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,9694 ****
--- 9687,9705 ----
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,15244 ****
--- 15246,15256 ----
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);
}