diff options
Diffstat (limited to 'sys/netinet6/in6_gif.c')
-rw-r--r-- | sys/netinet6/in6_gif.c | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/sys/netinet6/in6_gif.c b/sys/netinet6/in6_gif.c index d3236dc..d2f1ecf 100644 --- a/sys/netinet6/in6_gif.c +++ b/sys/netinet6/in6_gif.c @@ -81,10 +81,9 @@ struct ip6protosw in6_gif_protosw = }; int -in6_gif_output(ifp, family, m) - struct ifnet *ifp; - int family; /* family of the packet to be encapsulate. */ - struct mbuf *m; +in6_gif_output(struct ifnet *ifp, + int family, /* family of the packet to be encapsulate */ + struct mbuf *m) { struct gif_softc *sc = ifp->if_softc; struct sockaddr_in6 *dst = (struct sockaddr_in6 *)&sc->gif_ro6.ro_dst; @@ -243,9 +242,7 @@ in6_gif_output(ifp, family, m) } int -in6_gif_input(mp, offp, proto) - struct mbuf **mp; - int *offp, proto; +in6_gif_input(struct mbuf **mp, int *offp, int proto) { struct mbuf *m = *mp; struct ifnet *gifp = NULL; @@ -334,10 +331,8 @@ in6_gif_input(mp, offp, proto) * validate outer address. */ static int -gif_validate6(ip6, sc, ifp) - const struct ip6_hdr *ip6; - struct gif_softc *sc; - struct ifnet *ifp; +gif_validate6(const struct ip6_hdr *ip6, struct gif_softc *sc, + struct ifnet *ifp) { struct sockaddr_in6 *src, *dst; @@ -390,11 +385,7 @@ gif_validate6(ip6, sc, ifp) * sanity check for arg should have been done in the caller. */ int -gif_encapcheck6(m, off, proto, arg) - const struct mbuf *m; - int off; - int proto; - void *arg; +gif_encapcheck6(const struct mbuf *m, int off, int proto, void *arg) { struct ip6_hdr ip6; struct gif_softc *sc; @@ -411,8 +402,7 @@ gif_encapcheck6(m, off, proto, arg) } int -in6_gif_attach(sc) - struct gif_softc *sc; +in6_gif_attach(struct gif_softc *sc) { sc->encap_cookie6 = encap_attach_func(AF_INET6, -1, gif_encapcheck, (void *)&in6_gif_protosw, sc); @@ -422,8 +412,7 @@ in6_gif_attach(sc) } int -in6_gif_detach(sc) - struct gif_softc *sc; +in6_gif_detach(struct gif_softc *sc) { int error; |