CVSROOT: /cvs Module name: src Changes by: mi...@cvs.openbsd.org 2014/12/09 10:03:19
Modified files: usr.sbin/tcpdump: print-ip.c print-ip6.c Log message: Catch up with the BPF_ALIGNMENT switch to the uint32_t. bpf aligns data following the datalink header (e.g. ethernet) on the BPF_ALIGNMENT boundary. Since rev1.41 of bpf.h it's uint32_t instead of a long. And also since then almost all packets become "unaligned" from the tcpdump perspective and require costly copies into the internal buffer. Neither IP header (struct ip) nor IPv6 (struct ip6_hdr) have fields larger than 32 bits and therefore alignment requirements for them are at most 32 bit. ok millert, jsg, deraadt