diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-02-09 20:44:38 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-02-09 20:44:38 +0000 |
commit | 1b7d6854cac7f830fc136d57d3c64cd5f1b173d6 (patch) | |
tree | d9b121522dad71052bfc41e20988b6b6592fd373 | |
parent | fed3ec5b6f8f1a1ee86f9f37352153c0e85c2290 (diff) |
Use log_warnx() in lsa_check() to report bad LSA settings.
-rw-r--r-- | usr.sbin/ospfd/rde_lsdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/rde_lsdb.c b/usr.sbin/ospfd/rde_lsdb.c index 2b5fef75c6a..2b32a76c4bf 100644 --- a/usr.sbin/ospfd/rde_lsdb.c +++ b/usr.sbin/ospfd/rde_lsdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_lsdb.c,v 1.7 2005/02/09 20:40:23 claudio Exp $ */ +/* $OpenBSD: rde_lsdb.c,v 1.8 2005/02/09 20:44:37 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -168,13 +168,13 @@ lsa_check(struct rde_nbr *nbr, struct lsa *lsa, u_int16_t len) /* invalid ages */ if ((ntohs(lsa->hdr.age) < 1 && !nbr->self) || ntohs(lsa->hdr.age) > MAX_AGE) { - log_debug("lsa_check: bad age"); + log_warnx("lsa_check: bad age"); return (0); } /* invalid sequence number */ if (ntohl(lsa->hdr.seq_num) == RESV_SEQ_NUM) { - log_debug("ls_check: bad seq num"); + log_warnx("ls_check: bad seq num"); return (0); } |