summaryrefslogtreecommitdiffstats
path: root/sys/netinet/igmp.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-11-17 17:04:19 +0000
committerluigi <luigi@FreeBSD.org>2002-11-17 17:04:19 +0000
commit069e56d20877b9b25bf035d768c6aaf16951c3cc (patch)
tree8d78f37d91cb3459e3a37ce4dcae024b4a342383 /sys/netinet/igmp.c
parent6e674c0af0e05c6e705ccf2936c5d69a4b22ff61 (diff)
downloadFreeBSD-src-069e56d20877b9b25bf035d768c6aaf16951c3cc.zip
FreeBSD-src-069e56d20877b9b25bf035d768c6aaf16951c3cc.tar.gz
Fix function headers and remove 'register' variable declarations.
Diffstat (limited to 'sys/netinet/igmp.c')
-rw-r--r--sys/netinet/igmp.c52
1 files changed, 23 insertions, 29 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index 929d456..a109d4e 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -76,8 +76,7 @@
static MALLOC_DEFINE(M_IGMP, "igmp", "igmp state");
-static struct router_info *
- find_rti(struct ifnet *ifp);
+static struct router_info *find_rti(struct ifnet *ifp);
static struct igmpstat igmpstat;
@@ -93,7 +92,7 @@ static struct router_info *Head;
static void igmp_sendpkt(struct in_multi *, int, unsigned long);
void
-igmp_init()
+igmp_init(void)
{
struct ipoption *ra;
@@ -121,10 +120,9 @@ igmp_init()
}
static struct router_info *
-find_rti(ifp)
- struct ifnet *ifp;
+find_rti(struct ifnet *ifp)
{
- register struct router_info *rti = Head;
+ struct router_info *rti = Head;
#ifdef IGMP_DEBUG
printf("[igmp.c, _find_rti] --> entering \n");
@@ -151,18 +149,16 @@ find_rti(ifp)
}
void
-igmp_input(m, off)
- register struct mbuf *m;
- int off;
+igmp_input(struct mbuf *m, int off)
{
- register int iphlen = off;
- register struct igmp *igmp;
- register struct ip *ip;
- register int igmplen;
- register struct ifnet *ifp = m->m_pkthdr.rcvif;
- register int minlen;
- register struct in_multi *inm;
- register struct in_ifaddr *ia;
+ int iphlen = off;
+ struct igmp *igmp;
+ struct ip *ip;
+ int igmplen;
+ struct ifnet *ifp = m->m_pkthdr.rcvif;
+ int minlen;
+ struct in_multi *inm;
+ struct in_ifaddr *ia;
struct in_multistep step;
struct router_info *rti;
@@ -345,8 +341,7 @@ igmp_input(m, off)
}
void
-igmp_joingroup(inm)
- struct in_multi *inm;
+igmp_joingroup(struct in_multi *inm)
{
int s = splnet();
@@ -366,8 +361,7 @@ igmp_joingroup(inm)
}
void
-igmp_leavegroup(inm)
- struct in_multi *inm;
+igmp_leavegroup(struct in_multi *inm)
{
if (inm->inm_state == IGMP_IREPORTEDLAST &&
inm->inm_addr.s_addr != igmp_all_hosts_group &&
@@ -377,9 +371,9 @@ igmp_leavegroup(inm)
}
void
-igmp_fasttimo()
+igmp_fasttimo(void)
{
- register struct in_multi *inm;
+ struct in_multi *inm;
struct in_multistep step;
int s;
@@ -409,10 +403,10 @@ igmp_fasttimo()
}
void
-igmp_slowtimo()
+igmp_slowtimo(void)
{
int s = splnet();
- register struct router_info *rti = Head;
+ struct router_info *rti = Head;
#ifdef IGMP_DEBUG
printf("[igmp.c,_slowtimo] -- > entering \n");
@@ -432,13 +426,13 @@ igmp_slowtimo()
splx(s);
}
+/*
+ * XXX fix this static var when we remove the network code from Giant.
+ */
static struct route igmprt;
static void
-igmp_sendpkt(inm, type, addr)
- struct in_multi *inm;
- int type;
- unsigned long addr;
+igmp_sendpkt(struct in_multi *inm, int type, unsigned long addr)
{
struct mbuf *m;
struct igmp *igmp;
OpenPOWER on IntegriCloud