aboutsummaryrefslogtreecommitdiffstats
path: root/doc/README.developer
AgeCommit message (Collapse)AuthorFilesLines
2006-05-22ethereal->wireshark updatesRonnie Sahlberg1-10/+10
svn path=/trunk/; revision=18206
2006-05-21name changeRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=18197
2006-05-15update with FT_GUID, FT_OID, BASE_DEC_HEX, BASE_HEX_DECTomas Kukosa1-4/+56
svn path=/trunk/; revision=18163
2006-05-02Add infrastructure for display filter functions.Gilbert Ramirez1-0/+64
Add upper() and lower() display filter functions for string fields. svn path=/trunk/; revision=18071
2006-02-25Remove references to README.tvbuff. The Makefile.am should fix theJörg Mayer1-3/+0
buildbot failure. svn path=/trunk/; revision=17405
2006-02-24Remove obsolete document README.tvbuffJaap Keuter1-2/+4
svn path=/trunk/; revision=17401
2006-02-16Document the proto_tree_add_XXX_format_value() routines.Guy Harris1-0/+81
svn path=/trunk/; revision=17318
2005-10-25Document ptvcursors.Gilbert Ramirez1-0/+60
svn path=/trunk/; revision=16308
2005-10-15 add some text to discourage using strcpy and friends and how to do string ↵Ronnie Sahlberg1-3/+65
buffer allocation less rpone to memory leaks and buffer overflows. svn path=/trunk/; revision=16232
2005-09-10Add "tvb_get_ipv4()" and "tvb_get_ipv6()" addresses, to fetch IPv4 andGuy Harris1-1/+6
IPv6 addresses. Use "tvb_get_ipv4()" in the WINS Replication dissector, so that it gets the right answer on little-endian *AND* big-endian machines. svn path=/trunk/; revision=15753
2005-08-10add new function tvb_get_ephemeral_stringz()Ronnie Sahlberg1-0/+9
svn path=/trunk/; revision=15273
2005-08-10rename ep_tvb_fake_unicode() to tvb_get_ephemeral_faked_unicode() and update ↵Ronnie Sahlberg1-5/+24
the README file. svn path=/trunk/; revision=15271
2005-08-10rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the ↵Ronnie Sahlberg1-6/+15
documentation in README.developer svn path=/trunk/; revision=15270
2005-08-04Don't initialize variables in their declaration with non-constantJörg Mayer1-0/+8
values. svn path=/trunk/; revision=15211
2005-06-17Add a note about fuzz testing.Gerald Combs1-3/+11
svn path=/trunk/; revision=14679
2005-06-09From Mike DuigouAnders Broman1-2/+5
Minor corrections to README.developer and README.tapping svn path=/trunk/; revision=14593
2005-06-03From Mike Duigou:Anders Broman1-21/+93
A few doxygen updates and an improved section on writing dissectors that don't use tcp_dissect_pdus(). svn path=/trunk/; revision=14538
2005-05-11Some applications do very naughty things like reusing a port for a different ↵Ronnie Sahlberg1-9/+56
protocol during different stages of an application cycle. This is very naughty and will cause problems when we have assigned a dissector to a dynamic port using conversation_set_dissector(). To make ethereal handle this case I have changed the try_conversation_dissector() to allow it to fail and return 0, meaning yes there is indeed a protocol registered for this conversation but that protocol rejected this packet. (which only happens for "new" style dissectors, "old" style dissectors will never reject a packet that way) When this happens the decode_udp_port() helper will still allow other dissectors to be tried, in the hope that the conversation is now used for some other protocol and thus someone else might be able to decode the packet. Update SNMP and TFTP dissectors to check that even if there already is a conversation but that conversation does NOT have snmp/tftp registered as the dissector for it, then create a new conversation anyway and attach the proper dissector. Since ethereal keeps track of which frame number a conversation started in, this actually works really well. svn path=/trunk/; revision=14345
2005-04-19From Jon RRonnie Sahlberg1-19/+62
Update to README.developer for the conversation changes svn path=/trunk/; revision=14135
2005-04-11Add a note about testing to the "Robustness" section.Gerald Combs1-0/+15
svn path=/trunk/; revision=14050
2005-03-26Add a note about doing checks before subtracting, for example, theGuy Harris1-0/+12
length of a fixed-length header from the length of the item with that fixed-length header. svn path=/trunk/; revision=13926
2005-03-23Thou shalt not g_assert() in a dissector.Guy Harris1-0/+7
svn path=/trunk/; revision=13875
2005-03-23Remind people not to use "g_ntoh[ls]()" or "g_hton[ls]()" to convertGuy Harris1-0/+8
big-endian to little-endian - that doesn't work on big-endian machines. svn path=/trunk/; revision=13874
2005-03-14fix a bug and add a forward declaration in the example skeleton codeUlf Lamping1-1/+4
svn path=/trunk/; revision=13745
2005-03-11from Micheal Duigou: add some doxygen tags and some changes to README.developerUlf Lamping1-29/+96
svn path=/trunk/; revision=13725
2005-03-11Add one more reason to use "tvb_get_string()", as we've had a recentGuy Harris1-0/+11
vulnerability due to somebody fetching a string into a fixed-length buffer. svn path=/trunk/; revision=13708
2005-02-01Add boolean to the list of non-portable typesJörg Mayer1-8/+9
svn path=/trunk/; revision=13227
2005-01-07Grammar and typo fix from Mike Duigou.Guy Harris1-2/+2
svn path=/trunk/; revision=12979
2004-12-28add a more detailed description, how to add a new dissector fileUlf Lamping1-0/+6
svn path=/trunk/; revision=12847
2004-10-14From Jeff Morriss: PREF_RANGE preference type, for ranges of integers.Guy Harris1-0/+8
svn path=/trunk/; revision=12300
2004-10-06Note that variadic macros shouldn't be used.Guy Harris1-0/+17
svn path=/trunk/; revision=12224
2004-09-17Note that declarations in the middle of a block aren't supported by allGuy Harris1-0/+10
compilers, and thus shouldn't be used. svn path=/trunk/; revision=12029
2004-09-11Note that _WIN32, not WIN32, should be used in #ifdefs and #ifs testingGuy Harris1-0/+7
the platform for which we're building (and that both should be avoided if possible, i.e. write your code so that it works on all platforms). svn path=/trunk/; revision=11973
2004-09-07Note that developers should avoid GTK+ 2.x/GLib 2.x-only stuff (and, inGuy Harris1-0/+14
particularly, should disregard all the renaming they did of some routines, as the old names work Just Fine in 2.x but the new names don't work in 1.2[.x]). svn path=/trunk/; revision=11936
2004-08-31add HFILL to the skeleton example and documentation of the field registrationUlf Lamping1-5/+8
svn path=/trunk/; revision=11864
2004-08-31corrected paths, where the dissectors and the corresponding Makefile.common ↵Ulf Lamping1-3/+3
can be found, to epan/dissectors svn path=/trunk/; revision=11858
2004-08-22Add "tvb_get_ntoh64()" and "tvb_get_letoh64()" routines to fetch 64-bitGuy Harris1-2/+26
integers. Make FT_INT64 and FT_UINT64 add numerical values, rather than byte-array values, to the protocol tree, and add routines to add specified 64-bit integer values to the protocol tree. Use those routines in the RSVP dissector. svn path=/trunk/; revision=11796
2004-08-19Note that "G_GINT64_CONSTANT()" should be used for constant values thatGuy Harris1-6/+19
don't fit in 32 bits, rather than using "LL" at the end. Clean up some other 64-bit-integer items. svn path=/trunk/; revision=11779
2004-07-23Note that you *MUST* make sure "match_strval()" doesn't return nullGuy Harris1-1/+13
before using its value, or must check for a null return value and handle it specially, otherwise you put Ethereal at risk of crashing with bad packet data. svn path=/trunk/; revision=11475
2004-07-18SNPRINTF isn't used any more - remove from sample dissectorJörg Mayer1-6/+3
and coding guidelines. svn path=/trunk/; revision=11418
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-4/+4
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-07-08Give more details on the "don't build the protocol tree if you don'tGuy Harris1-7/+22
have to", indicating that if it's too much work to explicitly test for a null protocol tree, you might want to avoid those tests and rely on the protocol tree routines not to do much work if passed a null protocol tree pointer. svn path=/trunk/; revision=11346
2004-06-25tmpnam() really should not be used for security reasons.Jörg Mayer1-4/+9
Replace it where used and update README.developer accordingly. svn path=/trunk/; revision=11235
2004-06-19Pick up the stuff I did for tcpdump to figure out the right strings toGuy Harris1-12/+17
use to format 64-bit integers. Fix the RSVP dissector to use that rather than hardcoding "%ll" in. Remove the "only if G_HAVE_GINT64 is defined" bit from the discussion of 64-bit integers - we're too dependent on having them to support compilers that don't have a 64-bit integral data type. Do, however, note that neither "long" nor "long long" are acceptable, and also note that you shouldn't assume "%ll" does the trick for printing them. svn path=/trunk/; revision=11182
2004-05-24Have two strings in an enum_val_t - one that's a short string that isGuy Harris1-16/+31
convenient to put into a command line (no capital letters, no spaces to require quotes), and one that's a detailed description for use in the UI. Allow either of them in the preferences file or "-o" option; use the detailed description in the UI, and also use it when writing the preferences out, so that the preference will be readable by older versions of Ethereal (assuming the preference existed in that version). Update "README.developer" to give more detail about an enum_val_t (and to put the _t in), and to give a more detailed description of the "radio_buttons" argument to "prefs_register_enum_preference()". svn path=/trunk/; revision=10982
2004-03-25added hint to use g_snprintf instead of snprintf and sprintfUlf Lamping1-4/+15
svn path=/trunk/; revision=10481
2004-03-19Update to reflect current reality.Guy Harris1-18/+13
svn path=/trunk/; revision=10408
2004-02-25Describe some problems with processing data pointed to by the result ofGuy Harris1-17/+133
"tvb_get_ptr()". Add a section on roubustness, giving a number of potential problems that aren't just portability problems. Document "tvb_get_string()" and "tvb_get_stringz()", better document "tvb_memcpy()" and "tvb_memdup()". Fix a typo. svn path=/trunk/; revision=10239
2004-02-19Remove a comment on ancient EtherealJörg Mayer1-9/+4
svn path=/trunk/; revision=10115
2004-02-14Add a note on white space conventions (tab expansion different from 8 spaces isOlivier Biot1-4/+24
a Bad Idea). Add a note on the new col_append_sep_str() and col_append_sep_fstr() methods. svn path=/trunk/; revision=10061