diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2012-03-29 13:43:24 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-03-29 13:43:24 -0700 |
commit | 5721f9862674e7c647908d9070f9a280c66d92c8 (patch) | |
tree | 5b08aef9232a4e46d4077f50710bc4aca0fedd92 | |
parent | eb2cf3cc42452d709eba89ad478a0d6e71e135bf (diff) | |
download | libnet-5721f9862674e7c647908d9070f9a280c66d92c8.tar.gz |
Generate a valid IGMP message in test.
-rw-r--r-- | lua/test-igmp.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/test-igmp.lua b/lua/test-igmp.lua index cb8e810..5c45075 100644 --- a/lua/test-igmp.lua +++ b/lua/test-igmp.lua @@ -2,12 +2,12 @@ dofile"setup.lua" test("+igmp", function() local n = net.init() - local igmpt = {type=3, code=5, ip="1.2.3.4"} + local igmpt = {type=0x11, code=0, ip="1.2.3.4"} local ipt = {src="1.2.3.4", dst="5.6.7.8", protocol=2} local etht = {src="01:02:03:01:02:03", dst="04:05:06:04:05:06"} local pkt = "0405060405060102030102030800".. -- eth "4500001c0000000040026acd0102030405060708".. -- ip - "0305f6f604030201" -- igmp + "1100eaf901020304" -- igmp print" w/no-payload" |