summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-04-01 16:17:13 +0000
committerume <ume@FreeBSD.org>2002-04-01 16:17:13 +0000
commit06385fadbc0eca3d1842532c34625b7864ad265e (patch)
tree8100c6a6272726c05b8efe32369ea4461112a41b /sys/net
parentdd3efa66360607e45136634c2e05b1a28b30667c (diff)
downloadFreeBSD-src-06385fadbc0eca3d1842532c34625b7864ad265e.zip
FreeBSD-src-06385fadbc0eca3d1842532c34625b7864ad265e.tar.gz
Make `route add -inet6 default ::1 -ifp gif0' work actually.
The change between 1.13 and 1.14 is specific to AF_INET. MFC after: 1 week
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index ec4b8c8..5ec27bf 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -887,11 +887,7 @@ ifa_ifwithnet(addr)
if (ifa->ifa_addr->sa_family != af)
next: continue;
- if (
-#ifdef INET6 /* XXX: for maching gif tunnel dst as routing entry gateway */
- addr->sa_family != AF_INET6 &&
-#endif
- ifp->if_flags & IFF_POINTOPOINT) {
+ if (af == AF_INET && ifp->if_flags & IFF_POINTOPOINT) {
/*
* This is a bit broken as it doesn't
* take into account that the remote end may
OpenPOWER on IntegriCloud