Hi, all,

I have a problem when I use libpcap:

After I call sucessfully  
pcap_lookupnet(dev,&localnet, &netmask, errbuf) 
 
How should I print out the dotted-decimal IP address of the local network
and the netmask. I try inet_ntop but it give me a wrong answer
inet_ntop(AF_INET, &localnet, strl, INET_ADDRSTRLEN)

Anyone has some idea about this? Thanks in advance!

cheers,

wei


============================================================
Wei Qu
Graduate Student, Research Assistant
Faculty of Computer Science, Dalhousie University
E_Mail: [EMAIL PROTECTED]
Home  : http://www.cs.dal.ca/~wei/
************************************************************
May you have warm words on the cold evening, a full moon on
the dark night, and a smooth road all the way to your door.
============================================================

-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to