Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
output lines
#4
Function Function4
Code:
Copy      Help
out
str s="icmp 1 29 src=192.168.1.1 dst=10.10.12.134 type=8 code=0 id=3 src=10.10.12.134 dst=192.168.1.1 type=0 code=0 id=3 use=1"
ARRAY(str) a; str ip
if(findrx(s "dst=(\d.*.\d.*.\d.*.\d.*) type=8" 0 0 a) < 0)  out "does not match"; ret
int i
for i 1 a.len
,;out a[i]
,ip = a[i]
out F"IP address = {ip}"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)