diff options
author | Esben Norby <norby@cvs.openbsd.org> | 2006-03-09 09:03:23 +0000 |
---|---|---|
committer | Esben Norby <norby@cvs.openbsd.org> | 2006-03-09 09:03:23 +0000 |
commit | 832f6610a368b89aec164c56bf0648de08eeb879 (patch) | |
tree | 66458a17e214e3829d7cd83f7d9260fa9d293422 | |
parent | 2647ea2c20a9c934a16ba0bf1969f76693bd9699 (diff) |
Log link state changes.
ok claudio@
-rw-r--r-- | usr.sbin/ospfd/ospfe.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfe.c b/usr.sbin/ospfd/ospfe.c index eee0a817cc5..c999ae428cf 100644 --- a/usr.sbin/ospfd/ospfe.c +++ b/usr.sbin/ospfd/ospfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfe.c,v 1.42 2006/03/08 16:03:40 claudio Exp $ */ +/* $OpenBSD: ospfe.c,v 1.43 2006/03/09 09:03:22 norby Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -293,9 +293,14 @@ ospfe_dispatch_main(int fd, short event, void *bula) if (link_ok) { if_fsm(iface, IF_EVT_UP); + log_warnx("interface %s" + " up", iface->name); } else { if_fsm(iface, IF_EVT_DOWN); + log_warnx("interface %s" + " down", + iface->name); } } } |