ROPE Language Reference - "$ip_saddr"

This is the IP (v4) source address from the packet being inspected, formatted as a four-byte binary string. To convert this into the traditional string format (like: "192.168.0.1"), you can use ipv4_ntoa.

Example..

$ip_saddr ipv4_ntoa println

Note that the and, or and xor actions can be used to perform bit-wise boolean arithmetic on strings, and so can be used to provide simple IP address manipulations.

This is a read-only register.

Revision History

See Also

RFC_791, IpAddress, $ip_check, $ip_daddr, $ip_dont_frag, $ip_frag_off, $ip_id, $ip_ihl, $ip_protocol, $ip_tos, $ip_tot_len, $ip_ttl, $ip_version