Re: [tcpdump-workers] [Libpcap] Endianess and memory alignment questions
Cyril wrote: 2) Are pcap_next() network layer data aligned in memory ? IE -- Alignment Link layer data -- Gap -- Alignment Network layer data No, they are not. What you get is what's on the network, and if you have a 14
[tcpdump-workers] [Libpcap] Endianess and memory alignment questions
Hello, I'm writing a tiny utility named YAT (Yet Another Traceroute). I have a few questions. 1) Libnet functions return big endian local (src_ip) and destination (dst_ip) IPv4 addresses used in UDP probes. void set_ip(const char *host) { src_ip = libnet_get_ipaddr4