summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvgross <vgross@openbsd.org>2015-12-05 13:21:00 +0000
committervgross <vgross@openbsd.org>2015-12-05 13:21:00 +0000
commit7841b383fa81748805ab00e15d38293e32d802e3 (patch)
tree41df9212cb1bb45b266bd17f6b488071f64f8c1b
parentEAGAIN handling for imsg_read. OK henning@ benno@ (diff)
downloadwireguard-openbsd-7841b383fa81748805ab00e15d38293e32d802e3.tar.xz
wireguard-openbsd-7841b383fa81748805ab00e15d38293e32d802e3.zip
Remove useless "if() else", multicast and unicast v6 route lookups are
actually the same. This has been introduced in r1.7 to prevent RTM_MISS storms, but we don't send this message anymore. ok @mpi
-rw-r--r--sys/netinet6/in6_src.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c
index 3294bf74da9..bc3257f7a37 100644
--- a/sys/netinet6/in6_src.c
+++ b/sys/netinet6/in6_src.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_src.c,v 1.71 2015/12/02 13:29:26 claudio Exp $ */
+/* $OpenBSD: in6_src.c,v 1.72 2015/12/05 13:21:00 vgross Exp $ */
/* $KAME: in6_src.c,v 1.36 2001/02/06 04:08:17 itojun Exp $ */
/*
@@ -240,13 +240,8 @@ in6_selectsrc(struct in6_addr **in6src, struct sockaddr_in6 *dstsock,
sa6->sin6_len = sizeof(struct sockaddr_in6);
sa6->sin6_addr = *dst;
sa6->sin6_scope_id = dstsock->sin6_scope_id;
- if (IN6_IS_ADDR_MULTICAST(dst)) {
- ro->ro_rt = rtalloc(sin6tosa(&ro->ro_dst),
- RT_RESOLVE, ro->ro_tableid);
- } else {
- ro->ro_rt = rtalloc_mpath(sin6tosa(&ro->ro_dst),
- NULL, ro->ro_tableid);
- }
+ ro->ro_rt = rtalloc(sin6tosa(&ro->ro_dst),
+ RT_RESOLVE, ro->ro_tableid);
}
/*