Author: delphij
Date: Thu Jul 30 17:40:47 2009
New Revision: 195976
URL: http://svn.freebsd.org/changeset/base/195976

Log:
  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

Modified:
  head/sys/netinet/ip_carp.c

Modified: head/sys/netinet/ip_carp.c
==============================================================================
--- head/sys/netinet/ip_carp.c  Thu Jul 30 17:36:13 2009        (r195975)
+++ head/sys/netinet/ip_carp.c  Thu Jul 30 17:40:47 2009        (r195976)
@@ -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;
        }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to