Commit Graph

51796 Commits

Author SHA1 Message Date
Gerald Combs 4c5bb90167 Migrate more SVN content to Git+Gerrit.
svn path=/trunk/; revision=54954
2014-01-25 01:01:04 +00:00
Gerald Combs 0555a544f4 Migrate some of the SVN-specific content to Git.
svn path=/trunk/; revision=54953
2014-01-25 00:17:46 +00:00
Gerald Combs c57ac03e65 Try to get CMake to build the Developer Guide again. I don't have
dblatex installed so the release notes fail to build but the WSDG
targets appear to work.

svn path=/trunk/; revision=54952
2014-01-25 00:17:19 +00:00
Evan Huus a7ea59488d The wimax plugin primarily uses tvb_get_ptr buffer accesses instead of the
safe accessor functions, and it's all done via scary bit-twiddling macros to
boot.

Create the macros TVB_NIB_WORD and TVB_NIB_NIBBLE that (should) behave just
like the raw-pointer NIB_WORD and NIB_NIBBLE macros, except using the safe tvb
functions instead.

Replace two instances with the safe versions, which fixes an out-of-bounds
access caught by my valgrind fuzzer. If this doesn't break anything then we
should probably do a wholesale replacement at some point, but I'm not feeling
that adventurous at the moment.

svn path=/trunk/; revision=54951
2014-01-24 20:48:55 +00:00
Bill Meier 5be35448f6 Mark a few function parameters as unused....
svn path=/trunk/; revision=54950
2014-01-24 20:24:02 +00:00
Bill Meier 1bd982a492 Rework and simplify the code to follow the principle of "dissect as
much as possible" rather than dissecting nothing if the length of a
 set of fields (e.g., a "command") seems wrong or if an exception
 occurs fetching data before previous fields have been displayed.
In general: just fetch/dissect from start to end: If there is missing
   data, a Wireshark exception will eventually occur;

Add lwm subtrees under the lwm protocol tree (*not* as protocols
 under the top (outermost) tree.

Fix a bug which caused an exception to be reported as:
 "[Packet size limited during capture: LwMesh truncated]"
 rather than as the correct: "[Malformed...]"

col_...() and expert...() functions shouldn't be called under 'if(tree)';

Register the heuristic dissector using "IEEE802154_PROTOABBREV_WPAN"
 (like certain other dissectors) rather than using "wpan";

missmatch --> mismatch

Fix some long lines.


svn path=/trunk/; revision=54949
2014-01-24 20:19:06 +00:00
Pascal Quantin c1a88c0995 Add packet-mbim.h to Makefile.common
svn path=/trunk/; revision=54948
2014-01-24 20:08:22 +00:00
Gerald Combs fae1cf24ec Make "all" the default target again.
svn path=/trunk/; revision=54947
2014-01-24 19:50:43 +00:00
Gerald Combs 5368012328 Fix AsciiDoc WSDG build on Windows.
svn path=/trunk/; revision=54946
2014-01-24 19:12:59 +00:00
Gerald Combs 8997fb0d89 Start migrating the Developer's Guide to AsciiDoc. So far only one
chapter (WSDG_chapter_sources) has been converted.

Conversion was done using the script in
https://code.wireshark.org/review/#/c/9/ along with manual cleanup.
Changes are mostly limited formatting.

It's helpful to have a copy of the pre-conversion guide for comparison.
I've placed a chunked copy online at
http://www.wireshark.org/~gerald/wsdg_html_2014_01/ .

Tested under Autotools. Nmake and CMake will likely break. I'll take a
look shortly. If only we had documention adding a feature branch to
Gerrit and using it to test different platforms...

svn path=/trunk/; revision=54945
2014-01-24 18:55:27 +00:00
Pascal Quantin d8c15b8d91 Add ability to register new UUID and CIDs
svn path=/trunk/; revision=54944
2014-01-24 18:53:06 +00:00
Bill Meier ef935ca1de Remove some old obsolete text in the proto_tree_add_text() description.
svn path=/trunk/; revision=54943
2014-01-24 17:19:25 +00:00
Pascal Quantin 7a44616a1d Fix dissection of 8PSK Power Capability IE
svn path=/trunk/; revision=54942
2014-01-24 16:33:31 +00:00
Evan Huus 3cbe97de5f Give valgrind fuzzing a bit more time. Otherwise we have some large (~80MB)
captures in the menagerie which time out even under normal circumstances.

svn path=/trunk/; revision=54941
2014-01-24 15:52:28 +00:00
Guy Harris 2fa2515f77 Check for a zero offset in the "get status" reply *before* adding the
offset in the tvbuff of the beginning of the packet to it.  Otherwise,
it will never be zero, and the tests will always think the field pointed
to by the offset is present.

svn path=/trunk/; revision=54938
2014-01-24 07:55:03 +00:00
Jörg Mayer c86c9ed709 Looks like the asciidoc stuff is wip and breaks cmake builds.
Comment it out for now.

svn path=/trunk/; revision=54937
2014-01-24 06:42:49 +00:00
Gerald Combs a9ddc06adc Prepare for conversion of Guide chapters to AsciiDoc.
svn path=/trunk/; revision=54936
2014-01-24 01:10:10 +00:00
Martin Kaiser 81f3392d32 country and language are ISO-8859-1
svn path=/trunk/; revision=54935
2014-01-23 22:20:35 +00:00
Martin Kaiser 089cedc784 make the menu string filterable
svn path=/trunk/; revision=54934
2014-01-23 22:19:52 +00:00
Martin Kaiser 055be45abf the menu string is a DVB string
svn path=/trunk/; revision=54933
2014-01-23 22:18:41 +00:00
Alexis La Goutte bc14487ea6 From me for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9519 RSVP dissector does not decode Session Object (1) C-type (13) message
svn path=/trunk/; revision=54932
2014-01-23 20:31:20 +00:00
Alexis La Goutte f07d9ebea3 Remove Update.c (and nio-ie5.[ch])
Never use... and replace by (Win)Sparkle

svn path=/trunk/; revision=54931
2014-01-23 20:01:51 +00:00
Bill Meier 86930ddde2 Given that we allow the 'outfile file' to be stdout, then presumably all
text messages (including informational) should go to stderr.

svn path=/trunk/; revision=54930
2014-01-23 15:11:00 +00:00
Bill Meier 9be9ba5ba1 printf(...) --> fprintf(stderr,...) (in a commented out line of code)
svn path=/trunk/; revision=54929
2014-01-23 14:39:29 +00:00
Evan Huus 893b1aa3cd Remove duplicate #include.
svn path=/trunk/; revision=54928
2014-01-23 13:39:39 +00:00
Pascal Quantin a70ec94269 Please GCC 4.3.2 that complains about a wrong 'variable may be used uninitialized in this function' error
svn path=/trunk/; revision=54927
2014-01-23 07:57:20 +00:00
Guy Harris 8376b41cc0 Use tvb_get_string_enc() rather than tvb_get_string().
svn path=/trunk/; revision=54926
2014-01-23 02:46:56 +00:00
Guy Harris d2815333f5 Use tvb_get_string_enc() rather than tvb_get_string(). RFC 5352 says,
in section 6.1 "Registration.Request Primitive":

	The Pool Handle parameter contains a NULL terminated ASCII
	string of fixed length.

svn path=/trunk/; revision=54925
2014-01-23 02:37:43 +00:00
Guy Harris 8944519bf4 Use tvb_get_string_enc() rather than tvb_get_string().
Update URL of spec.

svn path=/trunk/; revision=54924
2014-01-23 02:30:00 +00:00
Guy Harris 138987aea0 Use tvb_get_string_enc() rather than tvb_get_string(). The version of
the AR.drone Developer Guide I found online mentioned ASCII but not
UTF-8.

svn path=/trunk/; revision=54923
2014-01-23 02:24:34 +00:00
Evan Huus 732db281e9 Use wmem_new0 to ensure that all field values are initialized. Caught by
valgrind fuzzing.

svn path=/trunk/; revision=54922
2014-01-23 01:48:13 +00:00
Guy Harris 6dcce1fb9b Use tvb_get_string_enc() rather than tvb_get_string(). The specs say
ASCII, but there's a proposal to use UTF-8.

svn path=/trunk/; revision=54921
2014-01-23 01:45:55 +00:00
Guy Harris d4b7cc2742 Use tvb_get_string_enc() rather than tvb_get_string().
svn path=/trunk/; revision=54920
2014-01-23 01:37:39 +00:00
Guy Harris aa69618c74 Use tvb_memdup(), not tvb_get_string(), when copying octets (such as
octets within a BCD number).

Use tvb_get_string_enc() rather than tvb_get_string().

svn path=/trunk/; revision=54919
2014-01-23 01:35:28 +00:00
Martin Kaiser 45418273e0 BASE_NONE -> STR_ASCII
svn path=/trunk/; revision=54918
2014-01-22 22:37:10 +00:00
Guy Harris 205a9f9b50 Use tvb_get_string_enc() rather than tvb_get_string(); according to
TIA/EIA-637-A, call-back numbers are either BCD or ASCII.

svn path=/trunk/; revision=54917
2014-01-22 22:37:08 +00:00
Martin Kaiser fc586507ba use tvb_get_string_enc()
svn path=/trunk/; revision=54916
2014-01-22 22:34:46 +00:00
Martin Kaiser a592b6af9f BASE_NONE -> STR_ASCII
svn path=/trunk/; revision=54915
2014-01-22 22:29:54 +00:00
Martin Kaiser 0f44a72088 use tvb_get_string_enc(), the strings are 7-bit ascii
svn path=/trunk/; revision=54914
2014-01-22 22:28:27 +00:00
Martin Kaiser 0c44ca6825 BASE_NONE -> STR_ASCII
svn path=/trunk/; revision=54913
2014-01-22 22:23:22 +00:00
Martin Kaiser 6d85633b15 edonkey seems to use 7-bit ascii for its tags etc
(not sure about one item that could contain arbitrary data...)

svn path=/trunk/; revision=54912
2014-01-22 22:20:16 +00:00
Martin Kaiser 28a5c66d0a no need for if(tree)
svn path=/trunk/; revision=54911
2014-01-22 21:57:42 +00:00
Guy Harris 222296999b Use tvb_get_string_enc() with appropriate encodings rather than
tvb_get_string().  (Some versions of the spec speak of ISO 8859-15
strings as well as UTF-8 strings, but we don't appear to try to handle
those.)

Update spec URL.

svn path=/trunk/; revision=54910
2014-01-22 20:51:56 +00:00
Guy Harris dd8cf3de90 Use tvb_get_string_enc(), and assume ASCII for E.164 addresses. (I must
be misreading Q.2630.3, as it seems to indicate that the addresses are
BCD, not ASCII, speaking as it does of "hexadecimal digit[s] of
address[es]".

svn path=/trunk/; revision=54909
2014-01-22 20:29:47 +00:00
Guy Harris 2019647757 At least according to
http://web.archive.org/web/20080308233204/http://dev.aol.com/aim/oscar/#SNAC

"In general strings are not NULL terminated and are encoded using UTF8."

It also says

	Authentication

	Over the years, the AIM backend has supported several different
	methods for authentication. ...

	When a client collects the loginId and password for the user it
	should not normalize them in any manner.  It also should not
	prevent the user from entering certain characters as the AIM
	name space is constantly changing.  For example, currently the
	AIM name space is ASCII based, but in the future that may
	change.  In general, the client should not perform input
	checking and instead allow the backend to reject bad values.

which also suggests not assuming ASCII.

So use ENC_UTF_8 in most cases.

For actual messages, it says:

	An IM can be encoded in the following different forms:

	Name	Value	Notes
	ASCII	0	ANSI ASCII -- ISO 646
	UNICODE	2	ISO 10646.USC-2 Unicode
	LATIN_1	3	ISO 8859-1

so, if that's the case, the dissector should choose beween
ENC_ASCII|ENC_NA, ENC_UCS_2|ENC_appropriate_ENDIAN, and
ENC_ISO_8859_1|ENC_NA.

Use tvb_get_string_enc() with an encoding rather than tvb_get_string().

svn path=/trunk/; revision=54908
2014-01-22 20:05:17 +00:00
Guy Harris 76131de4ab Update introductory comment to have correct file name.
svn path=/trunk/; revision=54907
2014-01-22 19:46:20 +00:00
Guy Harris 07f22ffd40 Use tvb_get_string_enc() rather than tvb_get_string().
XXX - if we supported various MacXXX character encodings, we could use
those; that might require a preference to specify the encoding.

svn path=/trunk/; revision=54906
2014-01-22 19:31:03 +00:00
Gerald Combs 2b26c1e216 Prepare for Git migration.
Mass-replace "svn" with "git". Add commented code to use git to fetch
the repository version.

svn path=/trunk/; revision=54905
2014-01-22 18:15:44 +00:00
Guy Harris 6b7fc8f0ef Use tvb_get_string_enc() with an explicit encoding, and assume ASCII.
Fix the encoding argument to proto_tree_add_item() calls that add
strings.

svn path=/trunk/; revision=54904
2014-01-22 10:39:59 +00:00
Guy Harris 6e70ecddaa Fetch strings using tvb_get_string_enc() and the appropriate encoding.
svn path=/trunk/; revision=54903
2014-01-22 07:55:06 +00:00