diff options
author | 2005-05-26 19:54:49 +0000 | |
---|---|---|
committer | 2005-05-26 19:54:49 +0000 | |
commit | 40f0e1dd7680b46985cacf47b834dff5eec210a9 (patch) | |
tree | 1583af48f9036f9c84b3485aad4fccb090a02be2 /usr.sbin/ospfd/lsupdate.c | |
parent | typo jfb@ didn't want to fix (diff) | |
download | wireguard-openbsd-40f0e1dd7680b46985cacf47b834dff5eec210a9.tar.xz wireguard-openbsd-40f0e1dd7680b46985cacf47b834dff5eec210a9.zip |
Simplify and cleanup passive interface handling.
ok claudio@
Diffstat (limited to 'usr.sbin/ospfd/lsupdate.c')
-rw-r--r-- | usr.sbin/ospfd/lsupdate.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/ospfd/lsupdate.c b/usr.sbin/ospfd/lsupdate.c index cc3691258dd..b5feac12568 100644 --- a/usr.sbin/ospfd/lsupdate.c +++ b/usr.sbin/ospfd/lsupdate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsupdate.c,v 1.9 2005/04/05 13:01:22 claudio Exp $ */ +/* $OpenBSD: lsupdate.c,v 1.10 2005/05/26 19:54:49 norby Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -45,9 +45,6 @@ lsa_flood(struct iface *iface, struct nbr *originator, struct lsa_hdr *lsa_hdr, int queued = 0, dont_ack = 0; int r; - if (iface->passive) - return (0); - LIST_FOREACH(nbr, &iface->nbr_list, entry) { if (nbr == iface->self) continue; @@ -155,9 +152,6 @@ send_ls_update(struct iface *iface, struct in_addr addr, void *data, int len) log_debug("send_ls_update: interface %s addr %s", iface->name, inet_ntoa(addr)); - if (iface->passive) - return (0); - /* XXX READ_BUF_SIZE */ if ((buf = buf_dynamic(PKG_DEF_SIZE, READ_BUF_SIZE)) == NULL) fatal("send_ls_update"); |