diff options
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/in_gif.c | 7 | ||||
-rw-r--r-- | sys/netinet/in_gif.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c index 187b2a4..3d2ff66 100644 --- a/sys/netinet/in_gif.c +++ b/sys/netinet/in_gif.c @@ -75,8 +75,8 @@ static int gif_validate4(const struct ip *, struct gif_softc *, extern struct domain inetdomain; struct protosw in_gif_protosw = -{ SOCK_RAW, &inetdomain, 0/*IPPROTO_IPV[46]*/, PR_ATOMIC|PR_ADDR, - in_gif_input, (pr_output_t*)rip_output, 0, rip_ctloutput, +{ SOCK_RAW, &inetdomain, 0/* IPPROTO_IPV[46] */, PR_ATOMIC|PR_ADDR, + in_gif_input, (pr_output_t*)rip_output, 0, rip_ctloutput, 0, 0, 0, 0, 0, &rip_usrreqs @@ -316,8 +316,7 @@ gif_validate4(ip, sc, ifp) return 0; } /* reject packets with broadcast on source */ - TAILQ_FOREACH(ia4, &in_ifaddrhead, ia_link) - { + TAILQ_FOREACH(ia4, &in_ifaddrhead, ia_link) { if ((ia4->ia_ifa.ifa_ifp->if_flags & IFF_BROADCAST) == 0) continue; if (ip->ip_src.s_addr == ia4->ia_broadaddr.sin_addr.s_addr) diff --git a/sys/netinet/in_gif.h b/sys/netinet/in_gif.h index f2a1aec..b2e3a68 100644 --- a/sys/netinet/in_gif.h +++ b/sys/netinet/in_gif.h @@ -36,7 +36,7 @@ #define GIF_TTL 30 struct gif_softc; -void in_gif_input(struct mbuf *, int off); +void in_gif_input(struct mbuf *, int); int in_gif_output(struct ifnet *, int, struct mbuf *); int gif_encapcheck4(const struct mbuf *, int, int, void *); int in_gif_attach(struct gif_softc *); |