diff options
author | 2008-09-12 09:54:47 +0000 | |
---|---|---|
committer | 2008-09-12 09:54:47 +0000 | |
commit | 21cc3f4389e8e32a131fbdef9272b89012bb7f47 (patch) | |
tree | 3174c3be55ef92679dfe7a4a6b43ddb0aa838ee3 | |
parent | revert last unauthorized commit. (diff) | |
download | wireguard-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.c | 3 |
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; |