aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bt-dht.c
AgeCommit message (Collapse)AuthorFilesLines
2013-12-15Fix [-Wmissing-prototypes]Jakub Zawadzki1-2/+3
svn path=/trunk/; revision=54135
2013-12-03When including <epan/prefs.h> don't force inclusion of <epan/uat.h>Jakub Zawadzki1-0/+2
svn path=/trunk/; revision=53769
2013-09-22emem -> wmem conversion:Pascal Quantin1-3/+3
- ep_tvb_get_bits() -> wmem_packet_tvb_get_bits() - tvb_g_memdup()/ep_tvb_memdup() -> tvb_memdup() - tvb_fake_unicode()/tvb_get_ephemeral_faked_unicode() -> tvb_get_faked_unicode() - tvb_get_g_string()/tvb_get_ephemeral_string()/tvb_get_seasonal_string() -> tvb_get_string() - tvb_get_g_unicode_string()/tvb_get_ephemeral_unicode_string() -> tvb_get_unicode_string() - tvb_get_ephemeral_string_enc() -> tvb_get_string_enc() - update docs accordingly svn path=/trunk/; revision=52172
2013-09-12Convert a few more dissectors to wmemPascal Quantin1-3/+4
svn path=/trunk/; revision=51991
2013-07-26From Chen Li via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8949 :Jeff Morriss1-4/+3
Fix the dissection of the port number in announce_peers request in BTDHT. svn path=/trunk/; revision=50899
2013-06-03From chen liMartin Kaiser1-0/+4
handle list ending delimiter in bt-dth peer list https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8759 svn path=/trunk/; revision=49729
2013-04-20Enhance BT-DHT Dissector * Use proto_tree_add_item * Enhance display list ↵Alexis La Goutte1-45/+39
(nodes, peers...) * Remove ununeed space * ... svn path=/trunk/; revision=48941
2013-04-15Fix Modelines (No CR in the end of file)Alexis La Goutte1-1/+0
svn path=/trunk/; revision=48851
2013-04-15From report of chen li via ↵Alexis La Goutte1-3/+3
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8572 Endian error and IP:Port error when decoding BT-DHT response message When the remote client sended a node set, it contains nodes info The node info it shows like (1 3cad1f360cc51870d3e68d61ed604078bc608ee2 60.173.31.54:43365), but this node's true ip and port is 99.192.73.131:26025. When we expand these items, the ips and ports in detailed information are right. From me : It is a problem of encoding (LITTLE ENDIAN => BIG ENDIAN) and wrong offset Some issue with Peers info svn path=/trunk/; revision=48850
2012-12-26Fix a bunch of warnings.Guy Harris1-3/+3
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-12-05From Patrik Lundquist:Anders Broman1-44/+86
Improvements to BitTorrent DHT dissector Fixed filtering on protocol "bt-dht". Improved heuristics. Can probably be enabled by default now (but I'll let someone else make that decision). Unexpected IP address (first packet in capture file) and binary "tokens" (packet 17) were incorrectly printed as UTF-8 strings. Moved duplicate code into bencoded_string_length(). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8044 svn path=/trunk/; revision=46396
2012-12-02Introduce, and start using, TVB_SET_ADDRESS() and TVB_SET_ADDRESS_HF(). TheyJeff Morriss1-2/+2
are like the non-TVB versions except that they take a TVB and an offset instead of (frequently) a pointer into the TVB. Calling tvb_get_ptr() before modifying the rest of the fields should help fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7960 (though I can't reproduce that problem). Replace a bunch of calls like: SET_ADDRESS(..., AT_XXX, length, tvb_get_ptr(tvb, offset, length)); with: TVB_SET_ADDRESS(..., AT_XXX, tvb, offset, length); svn path=/trunk/; revision=46324
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45017
2012-09-10Initial commit to support yet another method of passing data between dissectors.Jakub Zawadzki1-3/+3
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860
2012-08-10Use val_to_str_const() where appropriate;Bill Meier1-2/+2
Also (for a few files): - create/use some extended value strings; - remove unneeded #include files; - remove unneeded variable initialization; - re-order fcns slightly so prefs_reg_handoff...() at end, etc svn path=/trunk/; revision=44438
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-04Get rid of a couple of warnings.Anders Broman1-5/+5
svn path=/trunk/; revision=43065
2012-01-20Fix Fix "bt-dht [..] NOT registered properly" as reported in Bug #6571.Bill Meier1-61/+119
"bt-dht [...] should also be common dissectors while not only heuristic ones. So we can use them with 'Decode As...' command." Essentially: -Register dissector handle so the dissector can be accessed via "decode-as". From me: 1. Given that the current heuristic is much too weak and causes 'false positives': Add a preference to allow enabling/disabling of heuristic dissection. The default is 'disabled' since the current heuristic is quite weak. (For example: The heuristic incorrectly dissects about 40 files in menagerie/public as being the BT-DHT protocol). Note: only heuristic dissection is disabled; 'decode-as' remains enabled. Also: 1. Fix some bugs wherein bytes in the hex pane were not highlighted when a field was selected in the details pane. 2. Do some minor re-formatting of the source code. svn path=/trunk/; revision=40603
2011-12-28Fix memory leaks involving tvb_get_string[z]().Chris Maynard1-5/+5
svn path=/trunk/; revision=40312
2011-11-15Remove unneeded #includes;Bill Meier1-12/+10
Move proto_reg_handoff...() to the end of the file as per convention. svn path=/trunk/; revision=39860
2011-10-28From Xiao Xiangquan via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5767Alexis La Goutte1-0/+527
BitTorrent DHT dissector for wireshark From me : * Fix encoding attribut for proto_tree_add_item (with fix-encodings-args script) svn path=/trunk/; revision=39653