aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-edonkey.c
AgeCommit message (Collapse)AuthorFilesLines
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-5/+5
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) svn path=/trunk/; revision=35224
2010-04-03Remove unneeded #include <stdio.h>Bill Meier1-1/+0
svn path=/trunk/; revision=32367
2009-11-25From Andrew Jean:Jaap Keuter1-7/+14
When dissecting an eDonkey "Request Parts" message, Wireshark incorrectly reads 3 offset start/end pairs when the actual number can be 1-3 pairs. svn path=/trunk/; revision=31071
2009-10-26From Jakub Zawadzki:Anders Broman1-48/+21
Fix memleaks while creating kademlia hash. svn path=/trunk/; revision=30702
2009-09-17From zeemon via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3848 :Jeff Morriss1-10/+10
epan\dissectors\packet-edonkey.c In the fuction dissect_emule_sourceOBFU(): the line ti = proto_tree_add_item(tree, hf_emule_sourceOBFU, tvb, offset, 7 + ((settings & 0x08) ? 16 : 0), FALSE); should be ti = proto_tree_add_item(tree, hf_emule_sourceOBFU, tvb, offset, 7 + ((settings & 0x80) ? 16 : 0), FALSE); and, the line: if (settings & 0x08) should be: if (settings & 0x80) That is, 0x08 should be revised to 0x80. reference: the eMule0.49c source code, file PartFile.cpp, line 2730, in the function CPartFile::AddSources(). svn path=/trunk/; revision=29957
2009-08-09Don't guard col_clear with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29344
2009-08-09Don't guard col_set_str (COL_INFO) with col_checkKovarththanan Rajaratnam1-4/+2
svn path=/trunk/; revision=29342
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-4/+2
svn path=/trunk/; revision=29340
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-34/+34
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
2009-06-04From Jakub Zawadzki:Jaap Keuter1-1/+1
Fix edonkey dissector a little, by using gint type for tvb_length_remaining() result. svn path=/trunk/; revision=28640
2009-05-13Apply some of the patches from:Anders Broman1-19/+18
http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=28356
2008-12-17Fix some typos and spelling (mostly in text strings)Bill Meier1-1/+1
svn path=/trunk/; revision=27037
2008-12-17Fix typos and spelling (mostly in text strings) Bill Meier1-1/+1
svn path=/trunk/; revision=27028
2008-10-31Fix some "format not a string literal and no format arguments" warnings.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=26647
2008-08-24From Stefan Monhof:Anders Broman1-1/+1
Fix a bug in the previous patch. svn path=/trunk/; revision=26065
2008-08-24From: Stefan Monhof:Anders Broman1-75/+416
changes: - fixed: display of kademlia hash (bug #2348) - added: information on the meaning of the values of kad version, parameter of message types KADEMLIA_REQ and KADEMLIA2_REQ, metatag sourcetype and metatag encryption - added: peer id, target id, recipients id, file id, keyword hash as variants of kademlia hash (searchable as string now) - added: xor between target id and recipients id - fixed: ip adresses in taglist now displayed in dotted-decimal (instead of int) - fixed: some values in taglist were displayed in octal, it's hex now - fixed: message type KADEMLIA2_BOOTSTRAP_REQ was wrongly marked as malformed - added: differences in dissecting peer list 1.0 and peer list 2.0 - fixed: dissection of KADEMLIA2_SEARCH_KEY_REQ and KADEMLIA2_SEARCH_RES - added: source-publishing and keyword-publishing in KADEMLIA_PUBLISH_REQ - fixed: decompressed data are not displayed in a subtree anymore svn path=/trunk/; revision=26063
2008-06-27Fix some warnings reported by gcc -Wshadow ... Bill Meier1-4/+4
Fix some spacing in packet-dcom.c svn path=/trunk/; revision=25618
2008-06-25Fix some warnings - declare some arguments, variables, and structureGuy Harris1-1/+1
members to be const pointers when that's possible, and throw in some casts when the GLib API fails to have properly consted arguments. Use ep_strdup_printf() in some cases. svn path=/trunk/; revision=25596
2008-05-15Fix some of the Errors/warnings detected by checkapi.Bill Meier1-6/+15
svn path=/trunk/; revision=25305
2008-04-09Remove:Anders Broman1-4/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif svn path=/trunk/; revision=24859
2008-02-11Fix one add'tl warning as reported by David KirkbyBill Meier1-1/+0
svn path=/trunk/; revision=24298
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaGuy Harris1-1/+5
est. Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our own versions if they're missing from GLib (as is the case with GLib 1.x). In the code to build the list of named fields for Diameter, don't use g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping in the hash function and use g_ascii_strcasecmp() in the compare function. We do this because there is no guarantee that toupper(), tolower(), and functions that use them will, for example, map between "I" and "i" in all locales; in Turkish locales, for example, there are, in both upper case and lower case, versions of "i" with and without a dot, and the upper-case version of "i" is "I"-with-a-dot and the lower-case version of "I" is "i"-without-a-dot. This causes strings that should match not to match. This finishes fixing bug 2010 - an earlier checkin prevented the crash (as there are other ways to produce the same crash, e.g. a bogus dictionary.xml file), but didn't fix the case-insensitive string matching. svn path=/trunk/; revision=23623
2007-10-31From Stefano Picerno:Anders Broman1-151/+353
Makes more fields searchable Also fixes some typos and indentation errors Fixes bug http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1802 for edonkey dissector: every field defined by the dissector is now contained under the PROTOABBREV=edonkey "root" key svn path=/trunk/; revision=23315
2007-10-27From Stefano Picerno:Anders Broman1-504/+1324
I made some updates to the edonkey dissector. Most kademlia1 and some kademlia2 messages are now completely decoded. svn path=/trunk/; revision=23288
2007-10-23Apply the small performance enhancment patches for:Anders Broman1-1/+1
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster. Replace - col_append_fstr() with faster col_append_str() - col_add_str() with col_set_str() when it's safe svn path=/trunk/; revision=23252
2007-06-25From Lukazs M.:Jaap Keuter1-1/+1
Small patch for packet-edonkey.c (stupid mistakes are the easiest to made :-)) svn path=/trunk/; revision=22192
2007-06-20From Lukasz M.:Jaap Keuter1-4/+4
Sometimes edonkey packets comes joined, and wireshark display only last one on column Info. Now everyone is displayed. svn path=/trunk/; revision=22143
2007-06-18From Lukasz "M.":Jaap Keuter1-27/+149
I added 5 new packets to packet-edonkey.c and improve 2. Diffs in attachment. This part of wireshark (decoding emule packets) it's not finish as I see :) I try to do it, meybe... :) svn path=/trunk/; revision=22128
2007-05-29Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLibGuy Harris1-3/+3
routines and routines using those routines. GLib might use different modifiers for 64-bit quantities than the platform's C library does. svn path=/trunk/; revision=21990
2007-04-17Fix warnings of the form "long long unsigned int format, guint64 arg": useJeff Morriss1-117/+117
the PRI macros instead of %llu, etc. svn path=/trunk/; revision=21454
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher1-1/+1
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-27Fix about 100 simple to fix warnings from gcc 4.0 in epan/dissectors Stephen Fisher1-1/+1
svn path=/trunk/; revision=21233
2006-10-31change the signature for the get_pdu_len() function pointer passed to ↵Ronnie Sahlberg1-1/+1
tcp_dissect_pdus() to also include a packet_info pointer. there are many reasons why some protocols actually need to be able to access the pinfo structure while determining the pdu size svn path=/trunk/; revision=19751
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2006-03-20waste a couple of bytes per tcp conversation and make the tree for ↵Ronnie Sahlberg1-0/+1
acked_packets (i.e. packets that have interesting tcp properties such as being retransmissions etc) hang off the per conversation tcpd struct instead of being global. while this should improve performance by unmeasurably little it does have the sideeffect that once we finish the rewrite tcp analysis might actually work and work well even for tcp over tcp tunnelling. this also means that if you include packet-tcp.h you also need to include emem.h . svn path=/trunk/; revision=17681
2006-03-06From Jhon Sullivan:Anders Broman1-22/+168
Version 0.47a of eMule extends the eDonkey protocol to support files up to 256GB in length. This patch adds support for the new packet types, and changes to existing packets, used to support this. In addition, it seems to be getting more common to use compression on the index server connection. The packets used are just like the uncompressed versions, except transmitted as a zlib compressed stream, so I've added dissection for the contents of those too. Plus a couple of bugfixes to the UDP packet dissection. svn path=/trunk/; revision=17475
2005-12-19From John Sullivan:Anders Broman1-19/+272
Three patches here: eth-ed-2.diff ------------- 1) The handling of HashSet Answer messages was wrong 2) Add dissection of some more eMule extension packets to do with error recovery eth-bt-1.diff ------------- New versions of the Azureus BitTorrent client implement a new extension to the protocol, which is effectively a text based encapsulation of the binary BitTorrent protocol, embedded within the BitTorrent protocol. Who knows why they thought that was a good idea, but this patch can pick apart their new headers. eth-bt-2.diff ------------- By registering a normal dissector as well as the heuristic one, BitTorrent shows up on the Decode As... list so you can manually override its mistake. svn path=/trunk/; revision=16856
2005-10-04Fix a typo.Guy Harris1-1/+1
svn path=/trunk/; revision=16115
2005-10-04Get rid of // comments - not all C compilers like them.Guy Harris1-2/+6
svn path=/trunk/; revision=16114
2005-10-04From John Sullivan:Anders Broman1-27/+135
The current ethereal eDonkey dissector fails to handle a number of valid packet types - in particular the normal server<->client communication between current eserver and eMule versions (from both sides) produces packets which ethereal incorrectly claims to be malformed. This patch fills in these holes. svn path=/trunk/; revision=16107
2005-08-10rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the ↵Ronnie Sahlberg1-1/+1
documentation in README.developer svn path=/trunk/; revision=15270
2005-07-30Make some funtions static. More char -> const char warning fixesJörg Mayer1-2/+2
svn path=/trunk/; revision=15146
2005-07-28some more memification of tvb_get_string() no obvious memleaks fixed this ↵Ronnie Sahlberg1-2/+1
time :-( svn path=/trunk/; revision=15131
2005-06-26Get rid of the private "my_match_strval()" routine in many dissectors;Guy Harris1-5/+4
add a "match_strval_idx()" routine that does the same thing, and have "match_strval()" call it. Make those routines, and "val_to_str()", return a "const" pointer. Update dissectors as necessary to squelch compiler warnings produced by that. Use "val_to_str()" rather than using "match_strval()" and then, if the result is null, substituting a specific string. Clean up some other "match_strval()"/"val_to_str()" usages. Add a null pointer check in the NDPS dissector's "attribute_value()" routine, as it's not clear that "global_attribute_name" won't be null at that point. Make some global variables in the AFS4INT dissector local. Make some routines not used outside the module they're in static. Make some tables "static const". Clean up white space. Fix Gerald's address in some files. svn path=/trunk/; revision=14786
2004-12-31There are no guarantees that "strncasecmp()" works withGuy Harris1-3/+5
non-null-terminated strings, so be safe and fetch the metatag string with "tvb_get_string()". svn path=/trunk/; revision=12896
2004-11-03Use the #define for the eDonkey-over-TCP header length.Guy Harris1-2/+3
svn path=/trunk/; revision=12477
2004-11-03Add support for desegmentation of eDonkey-over-TCP.Guy Harris1-105/+132
Clean up indentation. Give edonkey.protocol a value_string table. svn path=/trunk/; revision=12476
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+1435
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410