Hi Mo,
      Try the following:

# Extract the ip header
ipHeader = packet.find('ipv4')
# Extract the source ip address
srcIpAddr = ip_to_str(ipHeader.srcip)

Cheers!
Syd


----- Original Message -----
From: "Weiyang Mo" <[email protected]>
To: [email protected]
Sent: Friday, May 11, 2012 2:24:36 PM
Subject: [nox-dev] Get IP address or UDP port?


Hi, is there any command to get the packet's IP address or UDP port such as 
packet.src,packet.dst? I guess I can get such commands in extract_flow but I 
don't find where the function is located. 

Any ideas? 

Thanks very much . 

Best 

Weiyang 

Reply via email to