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
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