summaryrefslogtreecommitdiff
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-07-27 02:17:55 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-07-27 02:17:55 +0000
commit5b1d95e31fc207d86fdc258c4a01bc50fa006f4c (patch)
treedb523e4a49859dde8dae28f9f7b1753b1a3688a3 /sys/netinet/in.c
parenta951bbdf849ac348652294bb564cc739973d6ffc (diff)
do not check in_dstaddr in rtinitflags() macro, otherwise
linklocal address manipulation codepath will choke. sync with kame
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r--sys/netinet/in.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index b9227c0f1bb..3a364a604e0 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in.c,v 1.21 2001/07/23 14:23:21 itojun Exp $ */
+/* $OpenBSD: in.c,v 1.22 2001/07/27 02:17:54 itojun Exp $ */
/* $NetBSD: in.c,v 1.26 1996/02/13 23:41:39 christos Exp $ */
/*
@@ -702,8 +702,8 @@ in_ifinit(ifp, ia, sin, scrub)
}
#define rtinitflags(x) \
- (((((x)->ia_ifp->if_flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) != 0) && \
- (x)->ia_dstaddr.sin_family == AF_INET) ? RTF_HOST : 0)
+ ((((x)->ia_ifp->if_flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) != 0) \
+ ? RTF_HOST : 0)
/*
* add a route to prefix ("connected route" in cisco terminology).