cvs commit: src/sys/netinet ip_carp.c
Gleb Smirnoff
glebius at FreeBSD.org
Mon Feb 28 11:54:37 GMT 2005
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
More information about the cvs-src
mailing list