Weiyang Mo <moweiyang1988 <at> gmail.com> writes: > > > Hi, > > I need NOX to distinguish ARP and UDP packets from a host. Here' the following: > > host- - - - switch - - - NOX > > The host trys sending UDP packets which contain speicial payload to NOX and let NOX does something. The UDP attempt only includes dstip address of NOX and therefore the host will send ARP request to find the MAC of NOX and it causes some problems. I want to distinguish ARP and UDP packets from the host. > > If it is an ARP packet, the NOX controller will reply the mac address to the host (Then the host knows how to send UDP). If it is a UDP packet, NOX controller will get its payload and do something. I cannot use "packet.next.srcip" or "packet.nextdstip", it will show no attributes for ARP packets. And the packet.type or packet.ARP_TYPE returns a number. > > Any code to get the packet type(ARP) or the ARP packet's source and destination address? > > Thanks very much. > > Best > > Weiyang > > >
Hi Weiyang, I am running into the same problem---> unable to get srcip and dstip from the packet.next object as packet.next is None! Please let me know if you found out anything. Rashmi
