[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
im having a problem with the gethostbyaddr function.
i specify the
the arguments as :-
127.0.0.1 for the constant character
4 as the size (for ipv4 address),
AF_INET for the family.
but i get hptr=NULL which is the pointer to the
i dont know if i am doing anything wrong!!!!!!!
the following code fragment will make things
printf("gethostbyaddress error for host: %s:
printf("gethostbyaddress function return NULL,
printf("official hostaddress: %s\n",ptr);
printf("length of address= %d\n",hptr->h_length);
printf("official hostname: %s\n",hptr->h_name);
i am trying to use libpcap (packet capture library)
a network analyzer(a modest one of course) and i get
following message for pcap_open_live:-
/dev/bpf0 not found
the code fragment is:-
if ( (pd = pcap_open_live(device, snaplen, 0, 500,
errbuf)) == NULL)
do i have to install libpcap although i have pcap
which is already
present in linux?
if yes, then how do i go about doing it???
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
- From: Linac Is Not A Club
- Next by Subject:
- Next by thread: