diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-11 20:41:29 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-11 20:41:29 +0000 |
commit | 90d262005f5356a4e199d899d047afcc04daeb0a (patch) | |
tree | 2dd30872b2e3ba3951cdcd4ea59821f0b3b0668d | |
parent | 13854b6abbb2e8b8063228469888ef2105782890 (diff) |
OSPFv3 runs on links not on networks so there is no need for a mask in the
hello protocol. Kill no longer needed code.
-rw-r--r-- | usr.sbin/ospf6d/hello.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/usr.sbin/ospf6d/hello.c b/usr.sbin/ospf6d/hello.c index 56b99813595..4a135c145f8 100644 --- a/usr.sbin/ospf6d/hello.c +++ b/usr.sbin/ospf6d/hello.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hello.c,v 1.6 2007/10/11 19:21:25 claudio Exp $ */ +/* $OpenBSD: hello.c,v 1.7 2007/10/11 20:41:28 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -136,17 +136,6 @@ recv_hello(struct iface *iface, struct in6_addr *src, u_int32_t rtr_id, buf += sizeof(hello); len -= sizeof(hello); -#if 0 -XXX - if (iface->type != IF_TYPE_POINTOPOINT && - iface->type != IF_TYPE_VIRTUALLINK) - if (hello.mask != iface->mask.s_addr) { - log_warnx("recv_hello: invalid netmask, interface %s", - iface->name); - return; - } -#endif - if (ntohs(hello.hello_interval) != iface->hello_interval) { log_warnx("recv_hello: invalid hello-interval %d, " "interface %s", ntohs(hello.hello_interval), |