diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-03 14:58:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-03 14:58:24 +0000 |
commit | 44fb9a7e8707e33c715d2281b745640f6b6e3ba8 (patch) | |
tree | 550f93484014fc65201ee49e64ef3b741e72ad0a /usr.sbin/mrouted/igmp.c | |
parent | d64becd498d0922ed40238a8e27d33afde224d8f (diff) |
ansi, from cloder
Diffstat (limited to 'usr.sbin/mrouted/igmp.c')
-rw-r--r-- | usr.sbin/mrouted/igmp.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/usr.sbin/mrouted/igmp.c b/usr.sbin/mrouted/igmp.c index 85a45177789..475be1e250c 100644 --- a/usr.sbin/mrouted/igmp.c +++ b/usr.sbin/mrouted/igmp.c @@ -36,7 +36,7 @@ static int igmp_log_level(u_int type, u_int code); * IP header fields in the output packet buffer. */ void -init_igmp() +init_igmp(void) { struct ip *ip; @@ -74,8 +74,7 @@ init_igmp() #define PIM_GRAFT_ACK 7 static char * -packet_kind(type, code) - u_int type, code; +packet_kind(u_int type, u_int code) { switch (type) { case IGMP_HOST_MEMBERSHIP_QUERY: return "membership query "; @@ -120,8 +119,7 @@ packet_kind(type, code) * packet buffer. */ void -accept_igmp(recvlen) - int recvlen; +accept_igmp(int recvlen) { register u_int32_t src, dst, group; struct ip *ip; @@ -277,8 +275,7 @@ accept_igmp(recvlen) * reachability and someone is trying to, i.e., mrinfo me periodically. */ static int -igmp_log_level(type, code) - u_int type, code; +igmp_log_level(u_int type, u_int code) { switch (type) { case IGMP_MTRACE_REPLY: @@ -300,11 +297,8 @@ igmp_log_level(type, code) * the message from the interface with IP address 'src' to destination 'dst'. */ void -send_igmp(src, dst, type, code, group, datalen) - u_int32_t src, dst; - int type, code; - u_int32_t group; - int datalen; +send_igmp(u_int32_t src, u_int32_t dst, int type, int code, + u_int32_t group, int datalen) { struct sockaddr_in sdst; struct ip *ip; |