Re: [tcpdump-workers] Segmentatio Fault while retrieving source and

2009-04-01 Thread Aaron Turner
Use a debugger like gdb. On Wed, Apr 1, 2009 at 9:32 AM, Shameem Ahamed wrote: > > Hi All, > > > I am getting segmentation fault error, while retrieving the source and destn > ip from ip headers. > > > Code snippet is given below. > > packet is the last argument to the Callback function used in

[tcpdump-workers] Segmentatio Fault while retrieving source and destination IP from Ip header

2009-04-01 Thread Shameem Ahamed
Hi All, I am getting segmentation fault error, while retrieving the source and destn ip from ip headers. Code snippet is given below. packet is the last argument to the Callback function used in pcap_loop === struct ip *ipHeader;//IP Header ethH