On Jan 11, 2013, at 12:38 AM, yashwanth kp wrote:
> I want to know if there is a way to find the network address a particular
> packet belongs to. I don't want to check if it belongs to a particular
> network but want to find out its network address without having any idea
> about its network address.. Is this possible?
If you mean from inside a PacketIn handler, then sure. Assuming you mean the
IP address, try something like this:
ip = event.parsed.find('ipv4')
if ip: print ip.srcip
If that's not what you're looking for, maybe you can elaborate on your question.
-- Murphy