Updating documentation for some utils/ policy scripts

This commit is contained in:
Jon Siwek 2011-07-18 20:14:06 -05:00
parent 9b27a98e93
commit c5e98a8116
5 changed files with 66 additions and 14 deletions

View file

@ -30,3 +30,14 @@ T
F
F
F
============ test find_ip_addresses()
{
[0] = 1.1.1.1,
[2] = 3.3.3.3,
[1] = 2.2.2.2
}
{
[0] = 1.1.1.1,
[2] = 3.3.3.3,
[1] = 0:0:0:0:0:0:0:0
}

View file

@ -96,4 +96,9 @@ event bro_init()
# hybrid format's ipv4 part should test that all octet's are 0-255
ip = "2001:db8:0:0:0:FFFF:192.168.0.256";
print is_valid_ip(ip);
print "============ test find_ip_addresses()";
print find_ip_addresses("this is 1.1.1.1 a test 2.2.2.2 string with ip addresses 3.3.3.3");
print find_ip_addresses("this is 1.1.1.1 a test 0:0:0:0:0:0:0:0 string with ip addresses 3.3.3.3");
}