rpcapd use pcap-int.h and than directly pcap_t structure.<div>size of pcap_t and position of individual fields is not independent</div><div>and depends on config.h generated by configure.</div><div>The result is rewritten memory and bugs like: socket error, invalid socket, SIGSEGV and similar.</div>
<div><br></div><div>I tried to remove usage of internal pcap_t structure and use rpcapd owns.</div><div><br></div><div>Patch is attached, and i have two notes.</div><div><br></div><div>1. timezone is set to zero (but no code in libpcap/winpcap use it)</div>
<div>2. bufsize is set to snaplen instead of internal pcap_t->bufsize.</div><div><br></div><div>MOJE</div><div><br></div><div>P.S. another way would by use config.h from libpcap, but i don't prefer it.</div><div> </div>
<div><br>-- <br>Tomas Konir<br>Prague<br>Czech Republic<br>ICQ: 25849167<br>Jabber: <a href="mailto:Tomas.Konir@gmail.com">Tomas.Konir@gmail.com</a><br>
</div>