aboutsummaryrefslogtreecommitdiff
path: root/contrib/conf
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-26 17:28:56 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-26 17:28:56 +0200
commit82a5d35360c4c882d9a5f92c4ac27c61bd4a4cc5 (patch)
tree8c50e8d74033214e711929c3244e5aca34f9705f /contrib/conf
parent51c0c5072fa27f4964778512a0040c77cce7cd04 (diff)
downloadgnunet-82a5d35360c4c882d9a5f92c4ac27c61bd4a4cc5.tar.gz
gnunet-82a5d35360c4c882d9a5f92c4ac27c61bd4a4cc5.zip
-fix misc typos
Diffstat (limited to 'contrib/conf')
-rwxr-xr-xcontrib/conf/uncrustify_precommit2
-rw-r--r--contrib/conf/wireshark/wireshark.lua12
2 files changed, 7 insertions, 7 deletions
diff --git a/contrib/conf/uncrustify_precommit b/contrib/conf/uncrustify_precommit
index fd29998c3..24873330f 100755
--- a/contrib/conf/uncrustify_precommit
+++ b/contrib/conf/uncrustify_precommit
@@ -30,6 +30,6 @@ if [ $RET = 1 ];
30then 30then
31 echo "Run" 31 echo "Run"
32 echo "uncrustify --no-backup -c uncrustify.cfg ${crustified}" 32 echo "uncrustify --no-backup -c uncrustify.cfg ${crustified}"
33 echo "before commiting." 33 echo "before committing."
34fi 34fi
35exit $RET 35exit $RET
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)