summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-05-30 04:19:45 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-05-30 04:19:45 +0000
commita8e0f4b7bc04bb2d98282b5d2767492e01e8b2a0 (patch)
treed556d2034eec43a893ecc68103653b259483d947 /sys/netinet6
parenteb64181e40804e908427c279722bb24a4b692ed7 (diff)
minor KNF. nuke obsolete IFF_LINK0 support completely
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6_gif.c25
1 files changed, 4 insertions, 21 deletions
diff --git a/sys/netinet6/in6_gif.c b/sys/netinet6/in6_gif.c
index 126c062ba23..143ed123b9a 100644
--- a/sys/netinet6/in6_gif.c
+++ b/sys/netinet6/in6_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_gif.c,v 1.20 2002/05/29 23:38:58 itojun Exp $ */
+/* $OpenBSD: in6_gif.c,v 1.21 2002/05/30 04:19:44 itojun Exp $ */
/* $KAME: in6_gif.c,v 1.43 2001/01/22 07:27:17 itojun Exp $ */
/*
@@ -92,12 +92,6 @@ in6_gif_output(ifp, family, m, rt)
return EAFNOSUPPORT;
}
- /* multi-destination mode is not supported */
- if (ifp->if_flags & IFF_LINK0) {
- m_freem(m);
- return ENETUNREACH;
- }
-
/* setup dummy tdb. it highly depends on ipip_output() code. */
bzero(&tdb, sizeof(tdb));
bzero(&xfs, sizeof(xfs));
@@ -222,8 +216,7 @@ int in6_gif_input(mp, offp, proto)
#define satoin6(sa) (((struct sockaddr_in6 *)(sa))->sin6_addr)
for (i = 0, sc = gif_softc; i < ngif; i++, sc++) {
- if (sc->gif_psrc == NULL ||
- sc->gif_pdst == NULL ||
+ if (sc->gif_psrc == NULL || sc->gif_pdst == NULL ||
sc->gif_psrc->sa_family != AF_INET6 ||
sc->gif_pdst->sa_family != AF_INET6) {
continue;
@@ -232,18 +225,8 @@ int in6_gif_input(mp, offp, proto)
if ((sc->gif_if.if_flags & IFF_UP) == 0)
continue;
- if ((sc->gif_if.if_flags & IFF_LINK0) &&
- IN6_ARE_ADDR_EQUAL(&satoin6(sc->gif_psrc),
- &ip6->ip6_dst) &&
- IN6_IS_ADDR_UNSPECIFIED(&satoin6(sc->gif_pdst))) {
- gifp = &sc->gif_if;
- continue;
- }
-
- if (IN6_ARE_ADDR_EQUAL(&satoin6(sc->gif_psrc),
- &ip6->ip6_dst) &&
- IN6_ARE_ADDR_EQUAL(&satoin6(sc->gif_pdst),
- &ip6->ip6_src)) {
+ if (IN6_ARE_ADDR_EQUAL(&satoin6(sc->gif_psrc), &ip6->ip6_dst) &&
+ IN6_ARE_ADDR_EQUAL(&satoin6(sc->gif_pdst), &ip6->ip6_src)) {
gifp = &sc->gif_if;
break;
}