diff options
author | delphij <delphij@FreeBSD.org> | 2009-07-30 17:40:47 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-07-30 17:40:47 +0000 |
commit | 29c50fdac88245d07cd6cce9174212417d5a6607 (patch) | |
tree | f33e758956545c62b1682b40c17b9d94ff538aa4 /sys/netinet/ip_carp.c | |
parent | 0a7374675b784ad78bc180f06ec5e675acc4eaaa (diff) | |
download | FreeBSD-src-29c50fdac88245d07cd6cce9174212417d5a6607.zip FreeBSD-src-29c50fdac88245d07cd6cce9174212417d5a6607.tar.gz |
Show interface name which received short CARP packet (e.g. a VRRP packet),
in order to match other codepaths nearby. This makes troubleshooting
easier.
Approved by: re (kib)
MFC after: 1 month
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r-- | sys/netinet/ip_carp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index a4cd950..00c1ea8 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -572,8 +572,9 @@ carp_input(struct mbuf *m, int hlen) if (m->m_pkthdr.len < iplen + sizeof(*ch)) { CARPSTATS_INC(carps_badlen); CARP_LOG("carp_input: received len %zd < " - "sizeof(struct carp_header)\n", - m->m_len - sizeof(struct ip)); + "sizeof(struct carp_header) on %s\n", + m->m_len - sizeof(struct ip), + m->m_pkthdr.rcvif->if_xname); m_freem(m); return; } |