summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_gif.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-05-10 15:58:48 +0000
committerrwatson <rwatson@FreeBSD.org>2007-05-10 15:58:48 +0000
commita25f94b5ae47af3cd364faa45ba35b34610eb8e9 (patch)
tree2075644406447dff1b0f6bb1567b5058f2fa628c /sys/netinet/in_gif.c
parenta55a86971407200964b1955b343fe4aee3ae676f (diff)
downloadFreeBSD-src-a25f94b5ae47af3cd364faa45ba35b34610eb8e9.zip
FreeBSD-src-a25f94b5ae47af3cd364faa45ba35b34610eb8e9.tar.gz
Move universally to ANSI C function declarations, with relatively
consistent style(9)-ish layout.
Diffstat (limited to 'sys/netinet/in_gif.c')
-rw-r--r--sys/netinet/in_gif.c26
1 files changed, 6 insertions, 20 deletions
diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c
index aac8208..e70a6f8 100644
--- a/sys/netinet/in_gif.c
+++ b/sys/netinet/in_gif.c
@@ -88,10 +88,7 @@ SYSCTL_INT(_net_inet_ip, IPCTL_GIF_TTL, gifttl, CTLFLAG_RW,
&ip_gif_ttl, 0, "");
int
-in_gif_output(ifp, family, m)
- struct ifnet *ifp;
- int family;
- struct mbuf *m;
+in_gif_output(struct ifnet *ifp, int family, struct mbuf *m)
{
struct gif_softc *sc = ifp->if_softc;
struct sockaddr_in *dst = (struct sockaddr_in *)&sc->gif_ro.ro_dst;
@@ -238,9 +235,7 @@ in_gif_output(ifp, family, m)
}
void
-in_gif_input(m, off)
- struct mbuf *m;
- int off;
+in_gif_input(struct mbuf *m, int off)
{
struct ifnet *gifp = NULL;
struct gif_softc *sc;
@@ -334,10 +329,7 @@ in_gif_input(m, off)
* validate outer address.
*/
static int
-gif_validate4(ip, sc, ifp)
- const struct ip *ip;
- struct gif_softc *sc;
- struct ifnet *ifp;
+gif_validate4(const struct ip *ip, struct gif_softc *sc, struct ifnet *ifp)
{
struct sockaddr_in *src, *dst;
struct in_ifaddr *ia4;
@@ -396,11 +388,7 @@ gif_validate4(ip, sc, ifp)
* matched the physical addr family. see gif_encapcheck().
*/
int
-gif_encapcheck4(m, off, proto, arg)
- const struct mbuf *m;
- int off;
- int proto;
- void *arg;
+gif_encapcheck4(const struct mbuf *m, int off, int proto, void *arg)
{
struct ip ip;
struct gif_softc *sc;
@@ -417,8 +405,7 @@ gif_encapcheck4(m, off, proto, arg)
}
int
-in_gif_attach(sc)
- struct gif_softc *sc;
+in_gif_attach(struct gif_softc *sc)
{
sc->encap_cookie4 = encap_attach_func(AF_INET, -1, gif_encapcheck,
&in_gif_protosw, sc);
@@ -428,8 +415,7 @@ in_gif_attach(sc)
}
int
-in_gif_detach(sc)
- struct gif_softc *sc;
+in_gif_detach(struct gif_softc *sc)
{
int error;
OpenPOWER on IntegriCloud