diff options
author | 2008-06-11 19:00:50 +0000 | |
---|---|---|
committer | 2008-06-11 19:00:50 +0000 | |
commit | ee37ea65a9079016f3c9a8d9ad03acbf094e0344 (patch) | |
tree | 208df196c2e77cc3bc019ae4b45fa336630a73ae /sys/netinet6/raw_ip6.c | |
parent | Fix GART enabling by using segment end address instead of total (diff) | |
download | wireguard-openbsd-ee37ea65a9079016f3c9a8d9ad03acbf094e0344.tar.xz wireguard-openbsd-ee37ea65a9079016f3c9a8d9ad03acbf094e0344.zip |
ANSIfy to sync with KAME. From Karl Sjodahl <dunceor@gmail.com>.
ok todd deraadt naddy bluhm
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r-- | sys/netinet6/raw_ip6.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index 5bbb3baaf14..e6c8c64e44d 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_ip6.c,v 1.35 2007/12/14 18:33:41 deraadt Exp $ */ +/* $OpenBSD: raw_ip6.c,v 1.36 2008/06/11 19:00:50 mcbride Exp $ */ /* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */ /* @@ -142,9 +142,7 @@ rip6_init() * mbuf chain. */ int -rip6_input(mp, offp, proto) - struct mbuf **mp; - int *offp, proto; +rip6_input(struct mbuf **mp, int *offp, int proto) { struct mbuf *m = *mp; struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); @@ -252,10 +250,7 @@ rip6_input(mp, offp, proto) } void -rip6_ctlinput(cmd, sa, d) - int cmd; - struct sockaddr *sa; - void *d; +rip6_ctlinput(int cmd, struct sockaddr *sa, void *d) { struct ip6_hdr *ip6; struct mbuf *m; @@ -522,11 +517,8 @@ rip6_output(struct mbuf *m, ...) * Raw IPv6 socket option processing. */ int -rip6_ctloutput(op, so, level, optname, mp) - int op; - struct socket *so; - int level, optname; - struct mbuf **mp; +rip6_ctloutput(int op, struct socket *so, int level, int optname, + struct mbuf **mp) { #ifdef MROUTING int error = 0; @@ -577,11 +569,8 @@ extern u_long rip6_sendspace; extern u_long rip6_recvspace; int -rip6_usrreq(so, req, m, nam, control, p) - struct socket *so; - int req; - struct mbuf *m, *nam, *control; - struct proc *p; +rip6_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, + struct mbuf *control, struct proc *p) { struct in6pcb *in6p = sotoin6pcb(so); int s; |