Merge branch 'master' of git.bro.org:bro

This commit is contained in:
Robin Sommer 2015-04-16 08:13:58 -07:00
commit a7b7397f02
5 changed files with 17 additions and 3 deletions

View file

@ -7,3 +7,4 @@
18446744073709551611
0
123
9223372036854775808 and 9223372036854775808 are the same

View file

@ -24,4 +24,12 @@ event bro_init()
local e: port = 123/tcp;
print port_to_count(e);
local origString = "9223372036854775808";
local directCount: count = 9223372036854775808;
local fromStringCount: count = to_count(origString);
if ( directCount == fromStringCount )
print fmt("%s and %s are the same", directCount, fromStringCount);
else
print fmt("%s and %s are not the same", directCount, fromStringCount);
}