Date: Mon, 28 Feb 2005 11:54:37 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_carp.c Message-ID: <200502281154.j1SBsbGd011467@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
glebius 2005-02-28 11:54:36 UTC
FreeBSD src repository
Modified files:
sys/netinet ip_carp.c
Log:
Fix tcpdump(8) on carp(4) interface:
- Use our loop DLT type, not OpenBSD. [1]
- The fields that are converted to network byte order are not 32-bit
fields but 16-bit fields, so htons should be used in htonl. [1]
- Secondly, ip_input changes ip->ip_len into its value without
the ip-header length. So, restore the length to make bpf happy. [1]
- Use bpf_mtap2(), use temporary af1, since bpf_mtap2 doesn't
understand uint8_t af identifier.
Submitted by: Frank Volf [1]
Revision Changes Path
1.12 +5 -16 src/sys/netinet/ip_carp.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502281154.j1SBsbGd011467>
