[tcpdump-workers] libpcap 1.1.1 . kernel and libc on a boat . ‘PACKET_RESERVE’ undeclared

2011-04-25 Thread Laurent Debricon
Hello, I am a bit confused and missing some knowledge about the kernel & libc : - I am trying to compile the latest libpcap 1.1.1 from github ( https://github.com/mcr/libpcap/tree/libpcap_1.1 ) (I am trying to build because I need the fix from March 23, 2011 about packet capture size). - My syste

[tcpdump-workers] libpcap , snaplen is set to a value but my packets in .pcap are cut shorter (no cooked device)

2011-02-25 Thread Laurent Debricon
Hello, I wrote a program using libpcap 1.1.1. The problem is that I uses pcap_set_snaplen and if i set it to for exemple 120, pkt_hdr->caplen is set at max to 106 other exemple : 128 -> 122 120 -> 106 68 -> 58 64 -> 58 32 -> 26 Am i missing something ? (i don't use cooked device, it is from eth0