aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rtsold/rtsol.c
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-08-14 15:21:55 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-08-14 15:21:55 +0000
commit7bc56ec444ca6f67691560db59972055eac7bd85 (patch)
tree193e9f7decc7bce6e58850ff1536d57ecc6b505b /usr.sbin/rtsold/rtsol.c
parent0d210565dfb21f6b99260ddf11db203315e29e2c (diff)
downloadsrc-7bc56ec444ca6f67691560db59972055eac7bd85.tar.gz
src-7bc56ec444ca6f67691560db59972055eac7bd85.zip
decreased too-strong log levels.
Obtained from: KAME MFC after: 1 week
Notes
Notes: svn path=/head/; revision=118906
Diffstat (limited to 'usr.sbin/rtsold/rtsol.c')
-rw-r--r--usr.sbin/rtsold/rtsol.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.sbin/rtsold/rtsol.c b/usr.sbin/rtsold/rtsol.c
index 021eeff2b26d..cbcad8a24d91 100644
--- a/usr.sbin/rtsold/rtsol.c
+++ b/usr.sbin/rtsold/rtsol.c
@@ -271,7 +271,7 @@ rtsol_input(int s)
}
if (i < sizeof(struct nd_router_advert)) {
- warnmsg(LOG_ERR, __func__,
+ warnmsg(LOG_INFO, __func__,
"packet size(%d) is too short", i);
return;
}
@@ -279,6 +279,10 @@ rtsol_input(int s)
icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base;
if (icp->icmp6_type != ND_ROUTER_ADVERT) {
+ /*
+ * this should not happen because we configured a filter
+ * that only passes RAs on the receiving socket.
+ */
warnmsg(LOG_ERR, __func__,
"invalid icmp type(%d) from %s on %s", icp->icmp6_type,
inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf,
@@ -288,7 +292,7 @@ rtsol_input(int s)
}
if (icp->icmp6_code != 0) {
- warnmsg(LOG_ERR, __func__,
+ warnmsg(LOG_INFO, __func__,
"invalid icmp code(%d) from %s on %s", icp->icmp6_code,
inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf,
INET6_ADDRSTRLEN),
@@ -297,7 +301,7 @@ rtsol_input(int s)
}
if (*hlimp != 255) {
- warnmsg(LOG_NOTICE, __func__,
+ warnmsg(LOG_INFO, __func__,
"invalid RA with hop limit(%d) from %s on %s",
*hlimp,
inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf,
@@ -307,7 +311,7 @@ rtsol_input(int s)
}
if (pi && !IN6_IS_ADDR_LINKLOCAL(&from.sin6_addr)) {
- warnmsg(LOG_NOTICE, __func__,
+ warnmsg(LOG_INFO, __func__,
"invalid RA with non link-local source from %s on %s",
inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf,
INET6_ADDRSTRLEN),
@@ -318,7 +322,7 @@ rtsol_input(int s)
/* xxx: more validation? */
if ((ifi = find_ifinfo(pi->ipi6_ifindex)) == NULL) {
- warnmsg(LOG_NOTICE, __func__,
+ warnmsg(LOG_INFO, __func__,
"received RA from %s on an unexpected IF(%s)",
inet_ntop(AF_INET6, &from.sin6_addr, ntopbuf,
INET6_ADDRSTRLEN),