summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2008-09-12 09:54:47 +0000
committerclaudio <claudio@openbsd.org>2008-09-12 09:54:47 +0000
commit21cc3f4389e8e32a131fbdef9272b89012bb7f47 (patch)
tree3174c3be55ef92679dfe7a4a6b43ddb0aa838ee3
parentrevert last unauthorized commit. (diff)
downloadwireguard-openbsd-21cc3f4389e8e32a131fbdef9272b89012bb7f47.tar.xz
wireguard-openbsd-21cc3f4389e8e32a131fbdef9272b89012bb7f47.zip
Don't be to strict in find_iface() about what we accept on point-to-point
links. If a packet arrived on a point-to-point interface we should accept it even if the source address of the packet is different to our iface destination address. OK norby@
-rw-r--r--usr.sbin/ospfd/packet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/packet.c b/usr.sbin/ospfd/packet.c
index 13aef3cdc51..66851b2c941 100644
--- a/usr.sbin/ospfd/packet.c
+++ b/usr.sbin/ospfd/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.25 2008/03/24 16:11:04 deraadt Exp $ */
+/* $OpenBSD: packet.c,v 1.26 2008/09/12 09:54:47 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -333,7 +333,6 @@ find_iface(struct ospfd_conf *xconf, unsigned int ifindex, struct in_addr src)
break;
case IF_TYPE_POINTOPOINT:
if (ifindex == iface->ifindex &&
- iface->dst.s_addr == src.s_addr &&
!iface->passive)
return (iface);
break;