Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet/udp_usrreq.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.138 retrieving revision 1.139 diff -u -p -r1.138 -r1.139 --- src/sys/netinet/udp_usrreq.c 2005/04/29 13:06:23 1.138 +++ src/sys/netinet/udp_usrreq.c 2005/08/05 09:21:26 1.139 @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.138 2005/04/29 13:06:23 manu Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.139 2005/08/05 09:21:26 elad Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.138 2005/04/29 13:06:23 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.139 2005/08/05 09:21:26 elad Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -1333,6 +1333,13 @@ SYSCTL_SETUP(sysctl_net_inet_udp_setup, sysctl_inpcblist, 0, &udbtable, 0, CTL_NET, PF_INET, IPPROTO_UDP, CTL_CREATE, CTL_EOL); + sysctl_createv(clog, 0, NULL, NULL, + CTLFLAG_PERMANENT, + CTLTYPE_STRUCT, "stats", + SYSCTL_DESCR("UDP statistics"), + NULL, 0, &udpstat, sizeof(udpstat), + CTL_NET, PF_INET, IPPROTO_UDP, UDPCTL_STATS, + CTL_EOL); } #endif