Are you converting the addresses from network byte order to host byte
order. On Intel machines, the first is the inverse of the second.

Loris


> For our students project in my college I have to
> develop a tool to find the number of broadcast packets
> from each node in a VLAN. We are using WinPcap for
> capturing packets from NIC. We are using the
> "pcap_loop"()
> The problem we are getting is that
> (1) All the from and to IP addresses of packets seem
> to be Class A IP addresses, whereas at least packets
> which go from the system should be class C
> (2) The IP address seem to reverse itself. For eg.
> 0.255.255.255 instead of 255.255.255.0
>
> What could be the reason for these.
>
> Pradeep
>
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>


Reply via email to