aboutsummaryrefslogtreecommitdiff
path: root/contrib/conf/wireshark/wireshark.lua
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/conf/wireshark/wireshark.lua')
-rw-r--r--contrib/conf/wireshark/wireshark.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/conf/wireshark/wireshark.lua b/contrib/conf/wireshark/wireshark.lua
index ac77029f6..3571a693f 100644
--- a/contrib/conf/wireshark/wireshark.lua
+++ b/contrib/conf/wireshark/wireshark.lua
@@ -6,7 +6,7 @@ local f = gwlan_proto.fields
6f.len = ProtoField.uint16 ("gnunet.len", "Gnunet Message Len") 6f.len = ProtoField.uint16 ("gnunet.len", "Gnunet Message Len")
7f.type = ProtoField.uint16 ("gnunet.type", "Gnunet Message Type") 7f.type = ProtoField.uint16 ("gnunet.type", "Gnunet Message Type")
8-- rhs_proto.fields.sequence = ProtoField.uint16("rhs.sequence","Sequence number") 8-- rhs_proto.fields.sequence = ProtoField.uint16("rhs.sequence","Sequence number")
9f_proto = DissectorTable.new("gnunet.proto", "Gnunet Protocoll", FT_UINT16, BASE_DEC) 9f_proto = DissectorTable.new("gnunet.proto", "GNUnet Protocol", FT_UINT16, BASE_DEC)
10--gwlan_proto.fields = {f_len, f_type} 10--gwlan_proto.fields = {f_len, f_type}
11 11
12function gwlan_proto.dissector(buffer,pinfo,tree) 12function gwlan_proto.dissector(buffer,pinfo,tree)
@@ -80,8 +80,8 @@ function fragment.dissector(buffer,pinfo,tree)
80 if buffer(10,2):uint() == 0 then 80 if buffer(10,2):uint() == 0 then
81 if (buffer(8,2):uint() <= buffer:len() - 12) then 81 if (buffer(8,2):uint() <= buffer:len() - 12) then
82 gnunet_packet_disector(buffer(12):tvb(),pinfo,tree) 82 gnunet_packet_disector(buffer(12):tvb(),pinfo,tree)
83 end 83 end
84 else 84 else
85 subtree:add(buffer(12), "Data: " .. buffer(12)) 85 subtree:add(buffer(12), "Data: " .. buffer(12))
86 end 86 end
87 end 87 end
@@ -92,7 +92,7 @@ hello = Proto("gnunet.hello","Gnunet Hello Message")
92function hello.dissector(buffer,pinfo,tree) 92function hello.dissector(buffer,pinfo,tree)
93 pinfo.cols.protocol = "Gnunet Hello Message" 93 pinfo.cols.protocol = "Gnunet Hello Message"
94 local subtree = tree:add(hello, buffer(),"Gnunet Hello Message (" .. buffer:len() .. ")") 94 local subtree = tree:add(hello, buffer(),"Gnunet Hello Message (" .. buffer:len() .. ")")
95 gnunet_message_header(buffer, pinfo, subtree) 95 gnunet_message_header(buffer, pinfo, subtree)
96 if buffer:len() > (264 + 8) then 96 if buffer:len() > (264 + 8) then
97 subtree:add(buffer(4,4),"Reserved: " .. buffer(4,4):uint()) 97 subtree:add(buffer(4,4),"Reserved: " .. buffer(4,4):uint())
98 RsaPublicKeyBinaryEncoded(buffer(8 , 264):tvb(),pinfo, subtree) 98 RsaPublicKeyBinaryEncoded(buffer(8 , 264):tvb(),pinfo, subtree)
@@ -110,7 +110,7 @@ function wlan.dissector(buffer,pinfo,tree)
110 if buffer:len() > (4 + 4 + 2*64) then 110 if buffer:len() > (4 + 4 + 2*64) then
111 subtree:add(buffer(4,4),"CRC: " .. buffer(4,4):uint()) 111 subtree:add(buffer(4,4),"CRC: " .. buffer(4,4):uint())
112 local peer = GNUNET_PeerIdentity(buffer(8,64), pinfo, subtree) 112 local peer = GNUNET_PeerIdentity(buffer(8,64), pinfo, subtree)
113 peer:append_text(" Traget") 113 peer:append_text(" Target")
114 peer = GNUNET_PeerIdentity(buffer(8 + 64,64), pinfo, subtree) 114 peer = GNUNET_PeerIdentity(buffer(8 + 64,64), pinfo, subtree)
115 peer:append_text(" Source") 115 peer:append_text(" Source")
116 else 116 else
@@ -118,7 +118,7 @@ function wlan.dissector(buffer,pinfo,tree)
118 end 118 end
119 if (buffer:len() - (4 + 4 + 2*64) > 0) then 119 if (buffer:len() - (4 + 4 + 2*64) > 0) then
120 gnunet_packet_disector(buffer(4 + 4 + 2*64):tvb(),pinfo,tree) 120 gnunet_packet_disector(buffer(4 + 4 + 2*64):tvb(),pinfo,tree)
121 end 121 end
122end 122end
123 123
124function RsaPublicKeyBinaryEncoded(buffer,pinfo,tree) 124function RsaPublicKeyBinaryEncoded(buffer,pinfo,tree)