aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bitcoin.c
AgeCommit message (Collapse)AuthorFilesLines
2015-04-15Replcae deprecated API tvb_length with tvb_reported_length or tvb_capturedAndersBroman1-5/+5
length. Change-Id: Id42f3409a32e202528d350f7afde7376e411fc51 Reviewed-on: https://code.wireshark.org/review/8076 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-04-03Fix:Joerg Mayer1-0/+2
packet-bitcoin.c:1735:6: error: 'hfi_msg_getheaders_version' undeclared (first use in this function) &hfi_msg_getheaders_version, caused by previous commit. Weird that the compiler on my system didn't catch that. Change-Id: I73cb06553bdf3a37f7c3d61d85f425d7c92d5b99 Reviewed-on: https://code.wireshark.org/review/7888 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2015-04-02Fix:Joerg Mayer1-0/+2
git/epan/dissectors/packet-bitcoin.c:270:26: error: ‘hfi_msg_getheaders_version’ defined but not used [-Werror=unused-variable] Change-Id: Ifcbc8be775e5f435497f5391755356caee48a7d9 Reviewed-on: https://code.wireshark.org/review/7887 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2015-03-28bitcoin: Updated dissector to support the latest protocol version (70002).Laurenz Kamp1-14/+634
Changes made: Updated dissectors: -> ping: ping packets now have a nonce. -> version: If version >= 70002, version messages have a relay flag. -> Messages with no payload: Added mempool and filterclear messages. Added dissectors: -> pong message -> notfound message -> reject message -> filterload message -> filteradd message -> merkleblock message -> headers message Change-Id: I9eb0dba971b2f612f95211847a7f283a037341e6 Reviewed-on: https://code.wireshark.org/review/7831 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-01-27Lua: Expose tcp_dissect_pdus() to LuaHadriel Kaplan1-1/+2
Provide a way for Lua-based dissectors to invoke tcp_dissect_pdus() to make TCP-based dissection easier. Bug: 9851 Change-Id: I91630ebf1f1fc1964118b6750cc34238e18a8ad3 Reviewed-on: https://code.wireshark.org/review/6778 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Tested-by: Hadriel Kaplan <hadrielk@yahoo.com>
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-2/+0
Specifically: - Set packet.h to be the first wireshark #include after config.h and "system" #includes. packet.h added as an #include in some cases when missing. - Remove some #includes included (directly/indirectly) in packet.h. E.g., glib.h. (Done only for those files including packet.h). - As needed, move "system" #includes to be after config.h and before wireshark #includes. - Rework various #include file specifications for consistency. - Misc. Change-Id: Ifaa1a14b50b69fbad38ea4838a49dfe595c54c95 Reviewed-on: https://code.wireshark.org/review/5923 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-11-26Fix a number of dup hf[] filter-names probably resulting from cut/paste errs.Bill Meier1-1/+1
Change-Id: I9242300b2ace3155c1506b584a90f073100a305e Reviewed-on: https://code.wireshark.org/review/5512 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-08-03Eliminate proto_tree_add_text from some dissectors.Michael Mann1-2/+1
Change-Id: I398e9cf4f6882e76644aa758e12c39a39159e95f Reviewed-on: https://code.wireshark.org/review/3319 Petri-Dish: Michael Mann <mmann78@netscape.net> Petri-Dish: Evan Huus <eapache@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-22convert to proto_tree_add_subtree[_format]Michael Mann1-2/+1
Change-Id: Ib60ca75b7da8cfa21cfe2999c9b9448a02c332df Reviewed-on: https://code.wireshark.org/review/2560 Tested-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-20Rename dissector_add_handle() to dissector_add_for_decode_as().Guy Harris1-1/+1
Hopefully that name makes it clear what the routiner's purpose is, and will encourage people to use it rather than using dissector_add_uint() with a bogus integer value. Change-Id: Ic5be456d0ad40b176aab01712ab7b13aed5de2a8 Reviewed-on: https://code.wireshark.org/review/2483 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-3/+3
https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html This reverts commit 246fe2ca4c67d8c98caa84e2f57694f6322e2f96. Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f Reviewed-on: https://code.wireshark.org/review/2430 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-18Fixup: tvb_* -> tvb_capturedDario Lombardo1-3/+3
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-13Remove _U_Chris Maynard1-1/+1
svn path=/trunk/; revision=54054
2013-11-10Add missing includes in order to remove exceptions.h from proto.h (next commit).Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=53230
2013-11-09Add data parameter to tcp_dissect_pdus() as well as convert it to using ↵Michael Mann1-4/+5
"new" style dissectors. Now that "bytes consumed" can be determined, should tcp_dissect_pdus() take advantage of that? Should tcp_dissect_pdus return length (bytes consumed)? There are many dissectors that just call tcp_dissect_pdus() then return tvb_length(tvb). Seems like that could all be rolled into one. svn path=/trunk/; revision=53198
2013-11-07Add infrastructure for section-initializing protocol hfis (without array).Jakub Zawadzki1-0/+2
configure implementation later. svn path=/trunk/; revision=53146
2013-10-16Remove trailing blanks; Fix some indentation;Bill Meier1-3/+3
Add editor modelines. svn path=/trunk/; revision=52653
2013-10-15Fix the bitcoin dissector to be able to dissect recent version of the ↵Michael Mann1-30/+68
protocol. Bug 8844 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8844) Changes: - All messages now have a checksum (and not only version and verack). - In the version message: user agent added as a string preceded by a varint length. - Port in an address is in little endian and not big endian. - In the version message the receiving and emitting address where inverted. From Eric Masson svn path=/trunk/; revision=52609
2013-08-30bitcoin, gif: pass header_field_info to proto_tree_*.Jakub Zawadzki1-465/+459
svn path=/trunk/; revision=51606
2013-07-03Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-1/+0
svn path=/trunk/; revision=50346
2013-05-25Batch of filterable expert_infos.Michael Mann1-1/+12
svn path=/trunk/; revision=49581
2013-03-14[-Wmissing-prototypes]Anders Broman1-0/+3
explicit casts. svn path=/trunk/; revision=48293
2013-02-13Cleanup:Bill Meier1-185/+285
- Fix various message handler message dissection bugs; - Change all loops with a potentially large loop count to be done only when 'tree' is non-null; - Simplify code somewhat; - Do some whitespace and formatting style changes. svn path=/trunk/; revision=47647
2013-02-11Fixes/Updates:Bill Meier1-117/+122
- Call conversation_set_dissector(); - Fix encoding args related to use of FT_ABSOLUTE_TIME; - Remove unneeded #include; - Cleanup some whitespace. svn path=/trunk/; revision=47631
2013-02-11Add an if (tree) check to prevent a very-long-but-not-infinite loop,Evan Huus1-8/+19
since without a tree the proto_tree_add_item calls won't throw an exception when we run past the end of our TVB which means we could end up doing MAX_INT64 iterations. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8312 svn path=/trunk/; revision=47629
2013-02-10Add svn properties and modelines.Evan Huus1-1144/+1156
svn path=/trunk/; revision=47608
2013-02-10Add Bitcoin dissectorMichael Mann1-0/+1144
From Christian Svensson, bug 6000 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6000) Cleaned up from the original patch svn path=/trunk/; revision=47606