diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2002-04-01 16:17:13 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2002-04-01 16:17:13 +0000 |
commit | c61cd599eca6f9fb04ac02982240231c45eb1c72 (patch) | |
tree | 8100c6a6272726c05b8efe32369ea4461112a41b /sys/net/if.c | |
parent | 0b6b585a31f76dca698e2a5d7ebd16abaa9a64b1 (diff) | |
download | src-c61cd599eca6f9fb04ac02982240231c45eb1c72.tar.gz src-c61cd599eca6f9fb04ac02982240231c45eb1c72.zip |
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
Notes
Notes:
svn path=/head/; revision=93546
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index ec4b8c8166b6..5ec27bfd3603 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 |