diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2013-05-30 16:19:32 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2013-05-30 16:19:32 +0000 |
commit | a819df68ff71df722e3e71663cc9127700470a03 (patch) | |
tree | dcf19a2a32dc5bce63ce17b85bc7871ea8889d2e | |
parent | 30cf8304b3c3c246d4e7b8cdf08e4260e316dee5 (diff) |
Stop trying to send hello messages if the interface is down.
Diff from Renato Westphal [renatowestphal at gmail.com]
-rw-r--r-- | usr.sbin/ldpd/interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/interface.c b/usr.sbin/ldpd/interface.c index d1e2818ad41..691cb42f388 100644 --- a/usr.sbin/ldpd/interface.c +++ b/usr.sbin/ldpd/interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interface.c,v 1.9 2012/05/14 10:17:21 sthen Exp $ */ +/* $OpenBSD: interface.c,v 1.10 2013/05/30 16:19:31 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -260,6 +260,8 @@ if_act_reset(struct iface *iface) { struct in_addr addr; + if_stop_hello_timer(iface); + inet_aton(AllRouters, &addr); if (if_leave_group(iface, &addr)) { log_warnx("if_act_reset: error leaving group %s, " |