summaryrefslogtreecommitdiffstats
path: root/sys/netinet/igmp.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-11-14 20:34:56 +0000
committerphk <phk@FreeBSD.org>1995-11-14 20:34:56 +0000
commitdb2c71245d8bd7171d58bbd567c7a24804e752e5 (patch)
treea91ff9513241da82a53d78f1c48939ef8d27e64e /sys/netinet/igmp.c
parent23272197e79604fbed29e23e977678742f10c46c (diff)
downloadFreeBSD-src-db2c71245d8bd7171d58bbd567c7a24804e752e5.zip
FreeBSD-src-db2c71245d8bd7171d58bbd567c7a24804e752e5.tar.gz
New style sysctl & staticize alot of stuff.
Diffstat (limited to 'sys/netinet/igmp.c')
-rw-r--r--sys/netinet/igmp.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index cd0a35e..85b41ee 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)igmp.c 8.1 (Berkeley) 7/19/93
- * $Id: igmp.c,v 1.10 1995/05/16 01:28:29 davidg Exp $
+ * $Id: igmp.c,v 1.12 1995/06/13 17:51:05 wollman Exp $
*/
/*
@@ -53,8 +53,7 @@
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/protosw.h>
-#include <sys/proc.h> /* XXX needed for sysctl.h */
-#include <vm/vm.h> /* XXX needed for sysctl.h */
+#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <net/if.h>
@@ -70,6 +69,9 @@
struct igmpstat igmpstat;
+SYSCTL_STRUCT(_net_inet_igmp, IGMPCTL_STATS, stats, CTLFLAG_RD,
+ &igmpstat, igmpstat, "");
+
static int igmp_timers_are_running;
static u_long igmp_all_hosts_group;
static u_long igmp_local_group;
@@ -608,20 +610,3 @@ igmp_sendleave(inm)
{
igmp_sendpkt(inm, IGMP_HOST_LEAVE_MESSAGE);
}
-
-int
-igmp_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp,
- void *newp, size_t newlen)
-{
- /* All sysctl names at this level are terminal. */
- if (namelen != 1)
- return ENOTDIR; /* XXX overloaded */
-
- switch(name[0]) {
- case IGMPCTL_STATS:
- return sysctl_rdstruct(oldp, oldlenp, newp, &igmpstat,
- sizeof igmpstat);
- default:
- return ENOPROTOOPT;
- }
-}
OpenPOWER on IntegriCloud