09-02-2016, 03:19 PM
Function Function4
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}"