Re: newbie: segmentation fault

2004-07-02 Thread Ondra Holecek
On Friday 02 July 2004 11:05, kamal kc wrote: > first of all thanks for solving my previous problem. > my previous problem was about the ip and ethernet header. > this is how i solved it: > > char *sender,*dest; > char *ptr; > struct ether_header eth; > ptr=pcap_next(..); > sender=ether_nt

newbie: segmentation fault

2004-07-02 Thread kamal kc
first of all thanks for solving my previous problem. my previous problem was about the ip and ethernet header. this is how i solved it: char *sender,*dest; char *ptr; struct ether_header eth; ptr=pcap_next(..); sender=ether_ntoa(ether->s_host); printf("%s", sender); dest=ether_ntoa(ether->