Commit Graph

14675 Commits

Author SHA1 Message Date
Anders Broman 55f45d5266 Add a missing IE found in trace from https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5637
svn path=/trunk/; revision=35842
2011-02-07 17:43:26 +00:00
Guy Harris 4f7ae8bf3a For FT_{ABSOLUTE,RELATIVE}_TIME, make the rest of the encoding
orthogonal to the byte order.

This means that we can't just test for a non-zero encoding to determine
whether the format is big-endian or little-endian when we set the
field's endianness flag; instead, for the types where we accept any
non-zero value as meaning "litle-endian", map it to ENC_LITTLE_ENDIAN.

When we use ENC_TIME_NTP, OR in the byte order flag.  While we're at it,
in the dissectors that used ENC_TIME_NTP, update all the other encoding
items in proto_tree_add_item() calls to use the appropriate ENC_ value.

svn path=/trunk/; revision=35841
2011-02-07 08:18:12 +00:00
Jeff Morriss 8fc6e28b6a Add support for passing NTP times to proto_tree_add_item() by specifying
an encoding of ENC_TIME_NTP.

This increases the number of decimal places shown for NTP times (from 6 to 9),
so round the value to the nearest microsecond.  (I can't tell if NTP times are
ever more precise than a microsecond--this rounding is mainly to be closer to
the old behavior.)

Use proto_tree_add_item() for some NTP times.

svn path=/trunk/; revision=35840
2011-02-07 03:31:40 +00:00
Gerald Combs 4c44a66e43 [Automatic manuf, services and enterprise-numbers update for 2011-02-06]
svn path=/trunk/; revision=35837
2011-02-06 16:03:43 +00:00
Anders Broman e373d9b454 From Alexis La Goutte:
A patch to enhance add_fixed_field dissector 
* Replace proto_tree_add_uint/boolean/... by proto_tree_add_item
* Replace some macro by bitmask (TSI..)
* Other stuff...

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5656

svn path=/trunk/; revision=35836
2011-02-06 14:15:12 +00:00
Anders Broman 01ef9f73ef Remove debug printouts.
svn path=/trunk/; revision=35834
2011-02-05 14:37:52 +00:00
Tomas Kukosa 8b6e2eac3d Fix checkAPIs errors
svn path=/trunk/; revision=35831
2011-02-04 19:10:35 +00:00
Sake Blok 61d592c8ad Fix for bug 5645 : Ethernet packets with both VLAN tag and LLC header no longer displayed correctly
svn path=/trunk/; revision=35830
2011-02-04 17:12:47 +00:00
Anders Broman 80b18d0a15 Get rid of check_col().
svn path=/trunk/; revision=35829
2011-02-04 16:28:26 +00:00
Anders Broman eb9f184991 From Alexis La Goutte:
Cleanup 802.11 Dissector : Start Header Field by hf_80211_*

Part 16(Final)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5647

svn path=/trunk/; revision=35824
2011-02-04 16:21:58 +00:00
Anders Broman d53865f5e3 Get rid of check_col().
svn path=/trunk/; revision=35823
2011-02-04 16:13:44 +00:00
Anders Broman b723ccb30c Introduce preferences to set the strictness of Invoke/response
tracking.

svn path=/trunk/; revision=35822
2011-02-04 16:12:59 +00:00
Jeff Morriss 2195eb44bd Mark a parameter as unused.
svn path=/trunk/; revision=35821
2011-02-04 15:19:46 +00:00
Jeff Morriss edc42ccfdd Mark some parameters as unused.
Add a format string to some proto_tree_add_text()s.

Add a cast.

svn path=/trunk/; revision=35820
2011-02-04 15:19:27 +00:00
Tomas Kukosa e3808393e1 Erlang Port Mapper Daemon protocol updated and Erlang Distribution Protocol implemented
svn path=/trunk/; revision=35819
2011-02-04 14:10:37 +00:00
Anders Broman da9d25c9eb From Samu Varjonen:
Bug fix: Incorrect presentation of Domain Identifier type and length in HIP dissector

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5649

svn path=/trunk/; revision=35818
2011-02-04 12:30:42 +00:00
Anders Broman 758dc5b9a3 Fix Bug 5500 - failed assertion in ISAKMP dissector (proto.c:4002)
By reinseringt the check in proto_tree_move_item() if tree vissible
removed in http://anonsvn.wireshark.org/viewvc?view=rev&revision=32443
Hopefully not breaking tshark again.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5500

svn path=/trunk/; revision=35817
2011-02-04 12:16:26 +00:00
Anders Broman 95e14efafd From Alexis La Goutte:
Patch to fix a typo error....

svn path=/trunk/; revision=35816
2011-02-04 11:52:50 +00:00
Martin Mathieson 7d5ffdb44b Show some top-level info about PDCP frame in protocol root.
Especially useful when PDCP is called from RLC.

svn path=/trunk/; revision=35815
2011-02-04 11:47:38 +00:00
Anders Broman 6d269f2713 From Václav Horčák:
Fix keeps  parser function in scope of current transactions, allowing multiple
transaction in one packet. 

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3420

svn path=/trunk/; revision=35814
2011-02-04 11:45:37 +00:00
Anders Broman 3431f32a38 From Alexis La Goutte:
Cleanup 802.11 Dissector : Start Header Field by hf_80211_*

Part 10 - 15
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5647

svn path=/trunk/; revision=35810
2011-02-04 10:04:50 +00:00
Anders Broman 06e619bf42 If ENBname is text, append the text.
svn path=/trunk/; revision=35808
2011-02-04 09:38:36 +00:00
Jaap Keuter 1048f71f5d From David Carne:
col_set_str simply stores the pointer passed to it, and luaL_checkstring
returns a temporary pointer. Changing col_set_str to col_add_str in
Columns_newindex seems to fix the issue.

svn path=/trunk/; revision=35795
2011-02-03 23:17:31 +00:00
Jeff Morriss 8ee172d021 Store the result of tvb_get_ntohs() in a guint16 instead of a guint8 to avoid a
compiler warning.  (It looks like the only expected values will fit in 8 bits,
but it also appears that the code really is expecting 'of_code' to be stored in
16 bits on the wire.)


svn path=/trunk/; revision=35790
2011-02-03 22:04:19 +00:00
Jaap Keuter 806bb18a7b From Roberto Morro:
- add PATH-KEY object, PKSv4 and PKSv6 subobjects in ERO (RFC5520)
- new METRIC types, Objective Function (OF) object and TLV (RFC5541)
- new RP object Flags
- restructured PCEP_ERROR object dissection (easier to add new 
  error_types, error_values)

svn path=/trunk/; revision=35789
2011-02-03 20:14:38 +00:00
Jeff Morriss 2832bf5aa1 Include packet-tetra.h in the source distribution.
svn path=/trunk/; revision=35787
2011-02-03 19:01:19 +00:00
Guy Harris 3908493548 Use the right proto_tree * variable.
Clean up indentation.

svn path=/trunk/; revision=35786
2011-02-03 18:15:56 +00:00
Anders Broman 5d6c22fdb8 Dissect Erroneous message.
svn path=/trunk/; revision=35785
2011-02-03 17:45:17 +00:00
Anders Broman f0a410b170 From Alexis La Goutte:
Cleanup 802.11 Dissector : Start Header Field by hf_80211_*

Part 6 - 9
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5647

svn path=/trunk/; revision=35783
2011-02-03 17:35:16 +00:00
Anders Broman 690d412c5a - Use the right tree for IE's
- Dissect MME and VLR name
- Add strings to some IE's

svn path=/trunk/; revision=35782
2011-02-03 16:36:22 +00:00
Anders Broman 6b38bce9c6 Hope fully this will be the correct set of files - finally.
svn path=/trunk/; revision=35781
2011-02-03 16:17:10 +00:00
Guy Harris 133e639dab Get rid of extra blank line at the end of the file.
svn path=/trunk/; revision=35779
2011-02-03 08:16:08 +00:00
Jaap Keuter a54400c59f From Samu Varjonen:
This patch fixes four issues with the Host Identity Protocol (HIP dissector:

1. The incorrect parsing of the "type 1" locator of HIP. 
2. Updates the comments to reflect the approval of RFC 5770.
3. Cosmetic change (uppercase SPI)
4. Change in the checksum dissection 
   (when the HIP packet is UDP encapsulated 0 checksum is correct).

svn path=/trunk/; revision=35777
2011-02-03 06:32:35 +00:00
Martin Mathieson 6b4acef729 Allow PDCP dissector to be called for complete SDUs from UM RLC PDUs.
svn path=/trunk/; revision=35775
2011-02-02 23:23:07 +00:00
Martin Mathieson 82cbbca3e5 Add and use accessors to get/set per-packet data for LTE MAC.
This will allow plugins to use the dissector.

svn path=/trunk/; revision=35774
2011-02-02 23:21:16 +00:00
Anders Broman ac057f8445 From Alexis La Goutte:
A series of patch to enhance 802.11 Dissector : Start all Header field by hf_80211_*
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5647

svn path=/trunk/; revision=35772
2011-02-02 23:09:41 +00:00
Jaap Keuter 9e367f5cff From njohnkev:
Add support for LAPD data link type.

svn path=/trunk/; revision=35771
2011-02-02 22:49:40 +00:00
Anders Broman f02c4d6685 Warning: packet-tetra.c does not have an SVN Id tag.
Error: the blurb for field "Carrier Number" ("tetra.carrier") matches the field name in packet-tetra.c
Error: the blurb for field "PDU" ("tetra.pdu") matches the field name in packet-tetra.c
Error: Found deprecated APIs in packet-tetra.c: dissector_add

svn path=/trunk/; revision=35769
2011-02-02 21:06:51 +00:00
Anders Broman 9f45ee9883 From Alexis La Goutte:
Cleanup renaming hf 80211 Part7.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5609

svn path=/trunk/; revision=35768
2011-02-02 20:21:18 +00:00
Anders Broman 3d32921095 From Alexis La Goutte:
Cleanup renaming hf 80211 Part 8 and 9.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5609

svn path=/trunk/; revision=35767
2011-02-02 20:19:02 +00:00
Anders Broman 2395973d17 Integrate and build the tetra dissector.
svn path=/trunk/; revision=35766
2011-02-02 20:11:02 +00:00
Anders Broman 16f1460763 From Alexis La Goutte:
Fix checkhf error (hf_ieee80211_ff_mesh_mgt_ie_id) and enhance dissect Mesh ID 
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5636

svn path=/trunk/; revision=35764
2011-02-02 19:54:14 +00:00
Anders Broman 94d8b44aec Use gprscdr to dissect CDRs.
svn path=/trunk/; revision=35763
2011-02-02 17:51:00 +00:00
Anders Broman a740413286 Move gprscdr to dissectors with warnings.
svn path=/trunk/; revision=35762
2011-02-02 17:50:12 +00:00
Anders Broman 5bb082fde0 Build gsmcdr.
svn path=/trunk/; revision=35761
2011-02-02 17:16:29 +00:00
Anders Broman ba18fd9cc7 Add packet-gprcdr.[ch] to SVN.
svn path=/trunk/; revision=35760
2011-02-02 17:15:27 +00:00
Anders Broman 6d4964bb49 Export more functions.
svn path=/trunk/; revision=35757
2011-02-02 17:09:05 +00:00
Anders Broman 52b465bf10 From Alexis La Goutte:
Fix and enhance WSIE
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5636

svn path=/trunk/; revision=35751
2011-02-02 06:04:19 +00:00
Bill Meier 410284fe15 A bit more indentation cleanup
svn path=/trunk/; revision=35749
2011-02-02 02:44:14 +00:00
Bill Meier d3efa3ed9f A bit of Windows makefiles rework and cleanup:
- Define macros for certain CFLAGS in config.nmake iso of having defs in each makefile;
  a. -DHAVE_CONFIG_H and -D_U_="" are now part of a macro named STANDARD_CFLAGS;
  b. -WX has been replaced by WARNINGS_ARE_ERRORS (defined as -WX in config.nmake)
      (This allows disabling "Warnings as Errors" by just changing config.nmake)
  c. CVARSDLL definitions (not usage) have been removed from the various makefiles.
     XXX: It appears the usage of CVARSDLL can also be removed (not yet done) since:
     -DWIN32 and -DNULL=0 do not appear to be needed (any more);
     -D_MT and _D_DLL  are not needed since /MP causes these definitions.
  d. Define a macro WARNINGS_CFLAGS with additional specific compiler (level4) warnings to be enabled.
     E.G., 4295: array is too small to include a terminating null character
- config.nmake: reformat some long lines for readability;
- plugins\Makefile.nmake: clean-deps does nothing: remove it (and usage in top-level makefile);
- dissectors/Makefile.nmake: test to enable packet-rrc.obj target needs to include MSVC2010 ...

svn path=/trunk/; revision=35747
2011-02-02 01:19:53 +00:00
Guy Harris fa5efc04e3 Get rid of unused variable warnings.
Clean up indentation.

svn path=/trunk/; revision=35746
2011-02-02 00:04:18 +00:00
Anders Broman 3fa9788f21 Dissect a bit more of data records.
svn path=/trunk/; revision=35744
2011-02-01 22:47:12 +00:00
Jaap Keuter e0619af2c8 Further restructure the DECT dissector:
- Refactor capture info, A field, B field dissection.
- Clean up dissection, removing private A field, B field structures.
- Added standard references.

svn path=/trunk/; revision=35743
2011-02-01 22:46:30 +00:00
Stephen Fisher 793eee70d0 From John Thacker via bug #5644: Can't include expert.h in C++ code
svn path=/trunk/; revision=35742
2011-02-01 21:03:29 +00:00
Bill Meier ce2a2e50e6 Use {'0', ...} type initializer for fixed length character arrays.
svn path=/trunk/; revision=35741
2011-02-01 14:30:24 +00:00
Stephen Fisher 1980a286ac Fix compilation error: gsm_a_dir_of_ver_speed_vals is a VALS not a TFS.
svn path=/trunk/; revision=35739
2011-02-01 00:46:59 +00:00
Anders Broman daf631cce8 packet-bssgp.c:10020: warning: 'bssgp_perform_loc_response' defined but not used
svn path=/trunk/; revision=35738
2011-01-31 23:00:11 +00:00
Jaap Keuter efba76d248 From Johan Kristell:
In the standard 802.3at-2009 the PoE+ TLVs are 12 bytes long, but in the
earlier version 802.3bc-2009, they are 7 bytes long (the power type/
source/priority, and the requested and allocated fields are lacking).
Not respecting the length of the TLV leads to wireshark displaying garbage 
data and could lead to reading outside of buffer.

svn path=/trunk/; revision=35737
2011-01-31 22:31:05 +00:00
Anders Broman 882874e91c More IE dissection.
svn path=/trunk/; revision=35736
2011-01-31 22:25:19 +00:00
Bill Meier 51bae2f9f8 Use {'0', ...} type initializer for fixed length character arrays.
svn path=/trunk/; revision=35735
2011-01-31 21:45:16 +00:00
Bill Meier fa8fb80f53 Use tvb_bytes_to_str() iso home-grown hex output fcn.
svn path=/trunk/; revision=35734
2011-01-31 21:35:48 +00:00
Jaap Keuter 60ca36fea7 Clean up dissector code. Pass data block to data dissector.
svn path=/trunk/; revision=35733
2011-01-31 21:23:49 +00:00
Bill Meier af30978c39 Fix minor bug lookups of certain "peer ids" would fail.
The  issue (in essence)
 For:
  char foo[][4] = {"abc", "defg", "hij"};

strlen(foo[1]) will be 7 and not 4 as expected;

Detected via msvc level 4 warning: "array is too small to include a terminating null character"

svn path=/trunk/; revision=35732
2011-01-31 21:23:35 +00:00
Jaap Keuter 70d55366ae Add a Manual entry to the Lua menu.
svn path=/trunk/; revision=35729
2011-01-31 21:13:20 +00:00
Jeff Morriss d8468eb53a Replace some blurbs with NULL
svn path=/trunk/; revision=35728
2011-01-31 21:09:28 +00:00
Anders Broman 5e05ed6632 Change a bunch of value and tfs strings to not be prefixed by hf_ but ieee8021. Based on Alexis La Gouttes patch.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5636

svn path=/trunk/; revision=35727
2011-01-31 20:37:17 +00:00
Bill Meier ed78f0a33e Fix two cases of 'if (x = y)' which should be 'if (x == y)'.
Found by reviewing msvc level 4 warnings "assignment within conditional expression".

(Unfortunately most of the warnings are false positives so this warning can't be enabled)



svn path=/trunk/; revision=35726
2011-01-31 18:58:38 +00:00
Bill Meier 88d53d925f #include <stdio.h>, #include <stdlib.h> not req'd;
Make a global variable static (since it's apparently not used elsewhere);
Whitespace changes (indentation, trailing, etc).

svn path=/trunk/; revision=35725
2011-01-31 17:09:58 +00:00
Anders Broman 0855affbec Add dissection of Evolved Allocation/Retention Priority I IE.
svn path=/trunk/; revision=35723
2011-01-31 16:25:26 +00:00
Bill Meier 767cdc69fd From Roberto Morro: Fix for Bug #5628
This patch (against revision 35716) resolves the following bug:
[introduced in patch attached to Bug #5518]
"Dissector bug, protocol RSVP, in packet 78:
More than 1000000 items in the tree -- possible infinite loop"

Actually the bug is resolved by the "return" statement that was erased by
mistake. The patch fixes another issue: the code didn't take care of the fact
that TLVs must be padded to a length multiple of 4.

See:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5518
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5628

From me:
 Change two bytestring_to_str(tvb_get_ptr(...),...) to tvb_bytes_to_str(tvb,...)

svn path=/trunk/; revision=35722
2011-01-31 15:27:26 +00:00
Anders Broman 7a78a180c7 Dissect more IE's in PERFORM-LOCATION-REQUEST.
svn path=/trunk/; revision=35721
2011-01-31 15:16:45 +00:00
Bill Meier 79e8fdf14f Put back a 'return' statement so GCC doesn't generate a warning...
svn path=/trunk/; revision=35716
2011-01-31 04:23:46 +00:00
Martin Mathieson 7f94b7bc66 Describe in more detail some of the fields that may be filled in for an LTE MAC frame.
svn path=/trunk/; revision=35715
2011-01-31 00:28:22 +00:00
Guy Harris 0e2361fdb8 Clean up white space.
Use the bssgp_perform_loc_request() routine for PERFORM-LOCATION-REQUEST
(fixes a "defined, but not used" warning).

svn path=/trunk/; revision=35714
2011-01-31 00:12:21 +00:00
Bill Meier 7f0107220d Fix various instances of "unreachable code".
svn path=/trunk/; revision=35713
2011-01-30 23:27:57 +00:00
Bill Meier 8a07e469f3 Fix a number of msvc level 4 "Unreachable code" warnings by removing unneeded
return statements.

svn path=/trunk/; revision=35709
2011-01-30 22:32:25 +00:00
Anders Broman f4fad72618 Add more MSG dissection.
svn path=/trunk/; revision=35707
2011-01-30 22:08:22 +00:00
Stig Bjørlykke 84bc28bd6a Introduce "Fragment count" filter element for all protocols doing reassembly.
svn path=/trunk/; revision=35705
2011-01-30 21:01:07 +00:00
Stig Bjørlykke 7a16aeaf05 Moved packet-t38.c to the ASN.1 section.
svn path=/trunk/; revision=35704
2011-01-30 20:59:39 +00:00
Anders Broman d848a90815 From Alexis La Goutte:
Cleanup 802.11 Dissector : Make checkhf Happy
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5636
Pach #1,#2;#3

svn path=/trunk/; revision=35703
2011-01-30 18:44:53 +00:00
Gerald Combs 1817033522 [Automatic manuf, services and enterprise-numbers update for 2011-01-30]
svn path=/trunk/; revision=35700
2011-01-30 16:05:20 +00:00
Anders Broman 830f6f9891 From Grzegorz Szczytowski:
Add Bearer Control Mode selection support in gtpv1 dissector.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5634
Sligtly reworked by me:
- prefix names with gtp
- Use proto_tree_add_item()
- remove ref to specific protocol version, as it's probably a mix.
- Changed the update to the AUTHORS file.

svn path=/trunk/; revision=35699
2011-01-30 11:32:42 +00:00
Anders Broman e4822bb43b From Alexis La Goutte:
Cleanup 802.11 Dissector : Rework Prism Header
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5631

svn path=/trunk/; revision=35698
2011-01-29 23:51:06 +00:00
Bill Meier 1f1563946e I believe 0 was meant instead of sizeof(0)....
svn path=/trunk/; revision=35694
2011-01-28 21:02:40 +00:00
Stephen Fisher 9699cdcf26 Move protocol details from above the copyright notice to below.
svn path=/trunk/; revision=35693
2011-01-28 20:37:28 +00:00
Stephen Fisher fd1e26d285 Remove the remaining tvb_fake_unicode() calls in the dissector source.
svn path=/trunk/; revision=35692
2011-01-28 20:15:41 +00:00
Stephen Fisher 42dbbb9090 Fix r35690: tvb_get_unicode_string() takes length in 8-bit bytes, not
16-bit UTF-16 characters as tvb_fake_unicode() did.


svn path=/trunk/; revision=35691
2011-01-28 20:12:12 +00:00
Stephen Fisher 2040a3421d Change tvb_fake_unicode() to tvb_get_unicode_string() in the DCERPC
DRSUAPI dissector.  Updated the packet-dcerpc-drsuapi.c file manually
because it used to be auto-generated, but appears to have had changes
since then.


svn path=/trunk/; revision=35690
2011-01-28 20:07:18 +00:00
Stephen Fisher d37c33b7e7 Mention that the fake tvb unicode functions have been superceded
svn path=/trunk/; revision=35689
2011-01-28 20:01:01 +00:00
Stephen Fisher 624ebe8464 Fix bug #5627: DHCPv6 dissector formats DUID_LLT time incorrectly
Add 30 years of seconds, not 20 years, since the DHCP_LLT time is seconds
since Jan 1 2000 and epoch is 30 years before that.


svn path=/trunk/; revision=35686
2011-01-28 00:20:37 +00:00
Gerald Combs dc39cf712d Fix chekcAPIs.
svn path=/trunk/; revision=35685
2011-01-27 19:04:14 +00:00
Gerald Combs 8eec5081cd From Johannes Berg via bug 5625:
The radiotap standard just adopted the new MCS field to display MCS
information. The attached patch allows wireshark to parse that field.


From me: 

Terminate value_strings. Move the IEEE80211_RADIOTAP_XCHANNEL definition
to packet-radiotap-defs.h.

svn path=/trunk/; revision=35684
2011-01-27 17:45:45 +00:00
Jeff Morriss 376d57fcd9 Use g_error() (with a hopefully-useful error message) instead of g_assert() to report problems with preference registrations.
svn path=/trunk/; revision=35683
2011-01-27 17:31:41 +00:00
Martin Mathieson b5a32fe8ef Improve/rework the way we look for the original frame when there is a DL. retransmission.
svn path=/trunk/; revision=35682
2011-01-27 16:09:24 +00:00
Bill Meier cca0038358 From Roberto Morro: RSVP dissector enhancements
- add new PROTECTION obj c-type 2 (RFC4872)
- add new TLVs for IF_ID (RFC4920)
- add Path Key subobj in ERO (RFC5520)
- add new ASSOCIATION obj c-type 4 (oif2008.389)
- add new LSP_ATTRIBUTES and LSP_REQUIRED_ATTRIBUTES objects (RFC5420)
- improved ERROR object dissection and new error values added
- ADMIN_STATUS transformed to filter and new flags added
- minor fix to conversation (not applied to ACK, SREFRESH and HELLO messages)
to resolv displaying of "Unknown session type" string in such messages

Moreover, I've deleted some "enum" statements for error values that I thought
they were useless since they were used only once throughout the RSVP dissector
code.

See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5518

From me: fix two typos.


svn path=/trunk/; revision=35681
2011-01-27 16:08:41 +00:00
Anders Broman cab0dc1340 Don't treat the aligned and unaligned bit strings differently
always padd LSBs.
 Hopfully this does not break anything else...

svn path=/trunk/; revision=35680
2011-01-27 15:48:02 +00:00
Anders Broman dd3be98aac The attemt to pretify MSISDN and IMSI breaks the dissection.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5593

svn path=/trunk/; revision=35679
2011-01-27 15:43:55 +00:00
Bill Meier f659179451 From Masatake YAMATO: Updating value_string for dlm3.m.result
... some values are added to value_string table for
dlm3.m.result. It reflects the latest dlm code in linux kernel.

See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5623


svn path=/trunk/; revision=35678
2011-01-27 14:41:38 +00:00
Anders Broman 7e77c162b0 Fix a typo and prettify some printouts.
svn path=/trunk/; revision=35677
2011-01-27 11:23:22 +00:00
Stig Bjørlykke 64dab4f576 Removed duplicate hf_gsm_a_bssmap_lsa_only registry.
svn path=/trunk/; revision=35676
2011-01-27 07:45:31 +00:00
Bill Meier 289bfb0526 From Stéphane Bryant: bug fixes and improvements in RELOAD dissector:
*Bug Fixes
*NodeId length is now configurable
*Added missing messages

See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5620

From me:
-Remove trailing blanks from a few lines;
-Put "editor mode lines" at the end of the source file.

svn path=/trunk/; revision=35674
2011-01-27 03:39:16 +00:00
Stephen Fisher 53fec4ae34 Fix compilation errors
svn path=/trunk/; revision=35673
2011-01-26 23:11:08 +00:00
Michael Tüxen df6d8f49f9 Add expert info related to gap ack blocks.
Based on a patch submitted by Thomas Dreibholz.
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5616

svn path=/trunk/; revision=35672
2011-01-26 21:21:16 +00:00
Stephen Fisher c69fe6a4b9 Add MS-SMB2 to the list of URLs to reference for this protocol.
svn path=/trunk/; revision=35670
2011-01-26 21:00:06 +00:00
Stephen Fisher f0a125624d Improve display of names and descriptions of SMB2 share flags and
share capabilities including adding two new flags with the help of
the MS-SMB2 specification. 


svn path=/trunk/; revision=35669
2011-01-26 20:58:26 +00:00
Stephen Fisher 3dbb4d745b Minor changs to NetBIOS Session Service code:
- Simplify a proto_tree_add_uint() call into proto_tree_add_item()
 - Mention RFC 1002 in comment above message type definitions
 - Expand field descriptions for length field


svn path=/trunk/; revision=35668
2011-01-26 20:29:44 +00:00
Anders Broman 68f4f61017 Dissect PS-HANDOVER-REQUEST.
svn path=/trunk/; revision=35666
2011-01-26 19:44:23 +00:00
Anders Broman 57f8048743 Add 10.5.1.14 NAS container for PS HO.
svn path=/trunk/; revision=35665
2011-01-26 19:37:30 +00:00
Anders Broman c3214a7c54 Add tfs_allowed_not_allowed.
svn path=/trunk/; revision=35664
2011-01-26 19:36:00 +00:00
Stephen Fisher 014de8fefd Minor changes to SMB2 Share Type value string: rename values and change
from 2 bytes to 1 byte (the next byte is reserved) according to MS-SMB2
specification. 


svn path=/trunk/; revision=35663
2011-01-26 19:01:10 +00:00
Stig Bjørlykke 5253a74db4 Corrected entry for packet-lisp-data.c
svn path=/trunk/; revision=35658
2011-01-26 09:37:35 +00:00
Anders Broman ba758b40b0 packet-ocsp-template.c:47: warning: type defaults to 'int' in declaration of 'proto_ocsp'
svn path=/trunk/; revision=35657
2011-01-26 09:07:11 +00:00
Anders Broman c4fe9a28ca From Kaspar Brand:
SSL/TLS dissector: add support for "Certificate Status" messages (aka OCSP stapling)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5503

svn path=/trunk/; revision=35655
2011-01-26 08:49:06 +00:00
Anders Broman cf1bb44105 From Alexis La Goutte:
Cleanup 802.11 Dissector : Header Field begin by hf_...
Patch 4 - 6
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5609

svn path=/trunk/; revision=35654
2011-01-26 07:47:31 +00:00
Jaap Keuter a4f66cd9f6 From Brian Ginsbach:
Patch to add a new dissector for Realm Specific IP (RSIP) as defined by
RFC 3102, RFC 3103, and RFC 3104.
This is a very basic dissector.  It could be extended to do addtional RSIP
protocol violation testing.  The dissector is written such that it should be
easy to add later.

svn path=/trunk/; revision=35653
2011-01-26 07:24:06 +00:00
Jaap Keuter fe8f565a89 Fix fo bug 5616:
Remove the filters on IPv6 Link Local and Multicast addresses, since 
these _can_ be resolved through the hosts file and manual entry.

svn path=/trunk/; revision=35651
2011-01-25 22:11:59 +00:00
Gerald Combs 73a08a9b17 Fix gcc compilation.
svn path=/trunk/; revision=35650
2011-01-25 18:43:43 +00:00
Anders Broman 43ba2ecef7 Switch more messages over to the "gsm dissector style".
svn path=/trunk/; revision=35649
2011-01-25 16:41:59 +00:00
Anders Broman d75443b02c packet-windows-common.c:1492: warning: 'wkwn_sid2_len' may be used uninitialized in this function
svn path=/trunk/; revision=35648
2011-01-25 15:34:52 +00:00
Anders Broman c2202875d1 Fix:
Error: the blurb for field "Well-known SID" ("nt.sid.wkwn") matches the field name in packet-windows-common.c

svn path=/trunk/; revision=35647
2011-01-25 15:33:36 +00:00
Anders Broman 82497afee7 Export de_emm_trac_area_id.
svn path=/trunk/; revision=35646
2011-01-25 13:57:59 +00:00
Anders Broman 12c8ede647 Export Global-ENB-ID.
svn path=/trunk/; revision=35645
2011-01-25 13:56:15 +00:00
Anders Broman 62bf860d4f Add tfs_reliable_not_reliable.
svn path=/trunk/; revision=35644
2011-01-25 13:55:20 +00:00
Anders Broman 3605d892f0 From Cal Turney:
Enhancements to SID dissection.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5613

svn path=/trunk/; revision=35643
2011-01-25 13:53:35 +00:00
Jaap Keuter 7d9f2f9b43 From Jouni Malinen:
Allow TDLS Setup Response/Confirm to not include optional fields

Verifying whether non-zero status code is used and use explicit validation of
the remaining length and an expert info instead of implicit failure by an
exception.

svn path=/trunk/; revision=35642
2011-01-24 22:04:43 +00:00
Bill Meier dd3a1a2280 From Alexis La Goutte:
Some patch to cleanup the 802.11 Dissector.
 Part 3:  https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5609

svn path=/trunk/; revision=35641
2011-01-24 20:54:20 +00:00
Stig Bjørlykke 3d11d9c9d9 Print "0 seconds" when time_val==0 in functions converting seconds to string.
svn path=/trunk/; revision=35640
2011-01-24 19:33:36 +00:00
Anders Broman ec43819592 Export UE-EUTRA-Capability.
svn path=/trunk/; revision=35634
2011-01-23 23:45:36 +00:00
Jaap Keuter f7544b339e From Alexis La Goutte:
Some patch to cleanup the 802.11 Dissector.

svn path=/trunk/; revision=35632
2011-01-23 20:15:31 +00:00
Jaap Keuter e3a0721786 From Alexis La Goutte:
Some patch to cleanup the 802.11 Dissector.

svn path=/trunk/; revision=35631
2011-01-23 20:11:08 +00:00
Gerald Combs 5f1812edf2 [Automatic manuf, services and enterprise-numbers update for 2011-01-23]
svn path=/trunk/; revision=35627
2011-01-23 16:03:54 +00:00
Stig Bjørlykke db82c54bef Ensure we keep the pkg_data pointer for the init routine to cleanup correctly,
because the ep memory is cleared before the init routine is called.

Fixed the variable name for the no_yes true_false_string.
Update reference to protocol description.

svn path=/trunk/; revision=35626
2011-01-22 18:07:28 +00:00
Bill Meier 9bc5fc06ce Remove unneeded #includes: <stdio>,<stdlib>,<string>; Add emacs editor modelines
svn path=/trunk/; revision=35623
2011-01-22 16:48:02 +00:00
Jeff Morriss 867bf1477e Use nstime_set_zero() to initialize nstime_t's.
svn path=/trunk/; revision=35622
2011-01-22 15:35:34 +00:00
Jeff Morriss 262997e2f4 From Johannes Lange via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5606 :
In semcheck.c the display filter string of an expression is checked against the
header_field_info.display value BASE_CUSTOM. But the value of BASE_CUSTOM is
applied as bitmask while the actual type is an enum (BASE_CUSTOM = 6).

With this BASE_DEC, BASE_DEC_HEX and BASE_HEX_DEC are also matching and are not
accepted as filter expression.


Actually: BASE_DEC works but not BASE_HEX.  And the problem only shows up when
trying to match a field in one of these bases against a string (from a
value_string).

svn path=/trunk/; revision=35621
2011-01-22 15:15:51 +00:00
Stig Bjørlykke 44a8913445 Close dir opened by ws_dir_open().
svn path=/trunk/; revision=35619
2011-01-22 13:44:06 +00:00
Jaap Keuter 2f74388448 From Loránd Jakab:
The patch I am attaching here is for dissecting LISP data packets.

From me: 
Minor cleanups.
Showing the reserved field.
Adding to all makefiles and release notes.

svn path=/trunk/; revision=35615
2011-01-22 00:18:03 +00:00
Anders Broman 4374c0b0b7 - Wrong element type used.
- Use match_strval_idx_ext.

svn path=/trunk/; revision=35609
2011-01-21 14:03:42 +00:00
Anders Broman dd1ab4b227 Use EXTRANEOUS_DATA_CHECK_EXPERT
svn path=/trunk/; revision=35608
2011-01-21 09:31:25 +00:00
Anders Broman 83c29e1672 Move sgsap_elem_idx_t to packet-gsm_a_common.h
Dissect Global-CN-Id

svn path=/trunk/; revision=35607
2011-01-21 09:26:29 +00:00
Anders Broman 6956ad46d5 CN-Id is two bytes.
svn path=/trunk/; revision=35606
2011-01-21 09:24:43 +00:00
Anders Broman fe68c6f1d2 From Tobias Klauser:
Fix standard to IEC62439 Part 3
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5599

svn path=/trunk/; revision=35605
2011-01-21 06:30:55 +00:00
Anders Broman 531317a178 Fix typos
svn path=/trunk/; revision=35604
2011-01-21 06:27:08 +00:00
Jeff Morriss 6e0fcb7ab5 Introduce, and start using, tvb_eth_to_str().
Export tvb_*_to_str() and put them in alphabetical order.

svn path=/trunk/; revision=35602
2011-01-21 02:48:55 +00:00
Jeff Morriss 03066d0820 Use tvb_ip_to_str()
svn path=/trunk/; revision=35601
2011-01-21 02:25:30 +00:00
Sake Blok 6e74ad9097 Adress => Address corrections (also in comments).
(see bug 5600)


svn path=/trunk/; revision=35600
2011-01-21 00:19:03 +00:00
Jaap Keuter 9e1d1e0e13 Allow presentation of Gauge32 values larger than 0x7FFFFFFF.
svn path=/trunk/; revision=35599
2011-01-20 20:04:39 +00:00
Stephen Fisher fc7b0c019b Fix the dead initialization warnings found by clang's static analysis
("Value stored to 'xxx' during its initialization is never read")


svn path=/trunk/; revision=35598
2011-01-20 18:56:11 +00:00
Anders Broman 9c04eb9b2c Fix typos
svn path=/trunk/; revision=35597
2011-01-20 14:03:13 +00:00
Anders Broman fbde1c7130 Update a comment.
svn path=/trunk/; revision=35596
2011-01-20 13:19:26 +00:00
Anders Broman 3112035ad2 In MM context the container contains IE:s not a complete
DTAP message.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5598

svn path=/trunk/; revision=35595
2011-01-20 13:05:17 +00:00
Jaap Keuter 3ff6167958 Allow for expert items to be actually attached somewhere.
svn path=/trunk/; revision=35594
2011-01-20 08:58:03 +00:00
Jeff Morriss 705f2ede5d Roll some calls to tvb_get_ptr() into proto_tree_add_bytes_format() (instead
of going through a temporary variable).  This just makes it more obvious which
add_bytes_format() calls are or are not being given pointers into the TVB.

Use tvb_ip_to_str() and tvb_ip6_to_str() in a couple spots.

svn path=/trunk/; revision=35593
2011-01-20 03:49:44 +00:00
Stephen Fisher 573b4d449f Add a note to the top about r35589's change of the ADDCARRY(x) macro.
svn path=/trunk/; revision=35592
2011-01-19 22:57:19 +00:00
Stephen Fisher c732e15d77 Change the ADDCARRY(x) macro to eliminate clang warning about unused
result from the ADDCARRY portion of the REDUCE macro.

-#define ADDCARRY(x)  (x > 65535 ? x -= 65535 : x)
+#define ADDCARRY(x)  {if ((x) > 65535) (x) -= 65535;}

The new code is from in_cksum.c in the Tahoe/CGI port of 4.4BSD-Lite2 (we're
using the "Portable Version" copy otherwise).


svn path=/trunk/; revision=35589
2011-01-19 22:53:38 +00:00
Stephen Fisher 32f6ab2248 Simply this:
#define SIP2_HDR "SIP/2.0"
    #define SIP2_HDR_LEN ((gint)strlen (SIP2_HDR))

To this:

    #define SIP2_HDR "SIP/2.0"
    #define SIP2_HDR_LEN 7


svn path=/trunk/; revision=35588
2011-01-19 21:51:30 +00:00
Stephen Fisher 316cd69642 Fix warning found by clang...
packet-dcerpc.c:4056:19: error: comparison of integers of different signs:
      'guint32' (aka 'unsigned int') and 'int' [-Wsign-compare]
    for (i = 0; i < (int) commands_nb; ++i) {
                ~ ^ ~~~~~~~~~~~~~~~~~

... by removing the "(int)" cast


svn path=/trunk/; revision=35587
2011-01-19 21:45:54 +00:00
Jaap Keuter 5c7ec8729a From Alexis La Goutte:
A patch to enhance the ICMPv6 dissector
- Make ICMP Type (sub)field filterable
- Add Inverse Neighbor Discovery (RFC 3122)
- Remove dependency to packet-ipv6.h
- Cleanup packet-ipv6.h
- Update RFC Draft to draft-ietf-roll-rpl-17 (with make a sub dissector
  for RPL Control and add Secure RPL...)
- Replace tvb_get_ipv6/ip6_to_str by new function tvb_ip6_to_str
- and other enchancements.....

svn path=/trunk/; revision=35586
2011-01-19 20:57:39 +00:00
Anders Broman feea97e6aa packet-bssgp.c:6916: warning: 'bssgp_tree' may be used uninitialized in this function
svn path=/trunk/; revision=35581
2011-01-19 09:49:36 +00:00
Anders Broman 3c491eee6b Cleaned up splitt between old and new dissection style.
A lot of conversion still needed.

svn path=/trunk/; revision=35580
2011-01-19 09:35:34 +00:00
Anders Broman 6b24548858 Add the RAI value to "add_string"
svn path=/trunk/; revision=35579
2011-01-19 06:43:28 +00:00
Anders Broman 4a3eda9862 Updated to OMA-TS-ULP-V2_0-20100806-D
with asn1 files from eyimjia.
Files hand edited to pass as2wrs.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5593
(Does not fix the bug)

svn path=/trunk/; revision=35577
2011-01-19 06:27:50 +00:00
Anders Broman f785ee57ff Introduce EXTRANEOUS_DATA_CHECK_EXPERT
which adds an expert item.

svn path=/trunk/; revision=35576
2011-01-18 20:16:56 +00:00
Anders Broman cbc7cbd1b2 Handle two length octets correctly in TELV.
svn path=/trunk/; revision=35573
2011-01-17 21:12:30 +00:00
Anders Broman 821f91f278 - append TLLI value.
- Whitespace changes.

svn path=/trunk/; revision=35572
2011-01-17 21:10:54 +00:00
Bill Meier 8d272fb165 (Until Anders comletes work): use #if 0 instead of //; init a variable;
svn path=/trunk/; revision=35571
2011-01-17 16:51:31 +00:00
Jeff Morriss fa16c931e1 Actually use proto_tree_add_item() instead of proto_tree_add_ether(). I hope I didn't miss more of these...
svn path=/trunk/; revision=35569
2011-01-17 15:22:11 +00:00
Martin Mathieson 7205313026 - Use correct data pointer during a comparison.
- Add expert info to show when DRX command is received
- Get rid of some tabs


svn path=/trunk/; revision=35568
2011-01-17 15:01:22 +00:00
Anders Broman fe7213590b Restore dissection of Mobile Identity(revert the code).
svn path=/trunk/; revision=35567
2011-01-17 14:18:54 +00:00
Anders Broman 71d02b5455 - Remove debug printout.
- Enhance dissection a bit.
- add new true_false_strings

svn path=/trunk/; revision=35566
2011-01-17 13:09:08 +00:00
Jeff Morriss 884d5491b1 Actually use proto_tree_add_item instead of proto_tree_add_bytes. Fixes bug 5588.
svn path=/trunk/; revision=35562
2011-01-16 22:52:17 +00:00
Anders Broman 672ce3871d Switch to using proto_add_bits_item in a couple of places and fix
missing stepping of bit_offset.

svn path=/trunk/; revision=35561
2011-01-16 22:32:22 +00:00
Jaap Keuter 8356fdd6ac From Vaibhav Katkade:
Add support for newly defined LLDP Four-wire Power-via-MDI and 
CDP Spare Pair PoE TLVs

svn path=/trunk/; revision=35559
2011-01-16 21:32:39 +00:00
Jeff Morriss 8d32d2066a There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string() or
tvb_get_const_stringz().

Use tvb_memeql() & tvb_memcmp().

svn path=/trunk/; revision=35558
2011-01-16 20:51:21 +00:00
Jeff Morriss c04dd5fda9 Use tvb_fc_to_str() and tvb_fcwwm_to_str().
svn path=/trunk/; revision=35557
2011-01-16 18:37:56 +00:00
Anders Broman b80813a45c From Porus Mehta:
Corrections to ANSI MAP ASN.1 specifications.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5584

svn path=/trunk/; revision=35556
2011-01-16 18:36:17 +00:00
Gerald Combs fd9f6c3ea3 [Automatic manuf, services and enterprise-numbers update for 2011-01-16]
svn path=/trunk/; revision=35552
2011-01-16 16:03:51 +00:00
Anders Broman 568605ae13 r35546 Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.
Make the change also in the .cnf file

svn path=/trunk/; revision=35551
2011-01-16 08:24:11 +00:00
Jeff Morriss b2c0cfa9dd Move assignment of 'oct' outside of if(tree)--it is used outside of the if block.
svn path=/trunk/; revision=35550
2011-01-16 04:38:59 +00:00
Jeff Morriss 77b3392e72 Introduce, and start using, tvb_fc_to_str() and tvb_fcwwm_to_str(): these
functions act like their non-tvb counterparts except that they take a tvb and
and offset instead of a pointer to a byte array.

This basically saves the dissectors from having to call tvb_get_ptr()--which in
this case eliminates a couple of typos in the length given to tvb_get_ptr().

svn path=/trunk/; revision=35549
2011-01-16 04:33:42 +00:00
Jeff Morriss 61876001c3 Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.

There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

svn path=/trunk/; revision=35548
2011-01-16 03:57:12 +00:00
Jeff Morriss d553df218e Use tvb_memeql().
Use tvb_ip_to_str().

There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.

svn path=/trunk/; revision=35547
2011-01-16 03:46:16 +00:00
Jeff Morriss f36e2be287 Use tvb_memeql() and tvb_memcpy().
Use tvb_ip_to_str() and tvb_ip6_to_str().

There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.

svn path=/trunk/; revision=35546
2011-01-16 03:35:29 +00:00
Jeff Morriss 067a076179 Use tvb_ip_to_str().
There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.

svn path=/trunk/; revision=35545
2011-01-16 03:29:03 +00:00
Anders Broman 1f19cd8f1b Comitting work in progress to fix the linking problem.
>Linking fails now:
>epan/.libs/libwireshark.so: undefined reference to `hf_bssgp_elem_id'
>epan/.libs/libwireshark.so: undefined reference to `bssgp_elem_fcn'
>epan/.libs/libwireshark.so: undefined reference to `ett_bssgp_elem'
>epan/.libs/libwireshark.so: undefined reference to >`bssgp_elem_strings'
>Did you miss packet-bssgp.c in that commit?

I'll try to clean this up in the next few days.

svn path=/trunk/; revision=35544
2011-01-15 23:13:28 +00:00
Jeff Morriss ed329ca1d4 Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str().

svn path=/trunk/; revision=35543
2011-01-15 19:01:53 +00:00
Jeff Morriss c037bba949 Don't (blindly) pass the result of match_strval() into proto_tree_add_*():
some OS (like Solaris) don't like NULL pointers to strings in (s)printf
formats; use val_to_str() instead.

svn path=/trunk/; revision=35542
2011-01-15 18:58:42 +00:00
Jeff Morriss b589c42fa3 Replace some duplicate blurbs with NULL
svn path=/trunk/; revision=35541
2011-01-15 18:18:13 +00:00
Jeff Morriss e11921d192 Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str().

svn path=/trunk/; revision=35540
2011-01-15 03:25:43 +00:00
Anders Broman 862e2d498c - Add TELV to dissct IE's with an extention bit in the length vallue.
- Add a BSSGP PDU type
- Put IE name in the top tree for ELEM_V

svn path=/trunk/; revision=35539
2011-01-14 21:43:31 +00:00
Chris Maynard 116d67e164 Add tvb_get_[n|le]toh[40|48|56]() accessors. Addresses bug 5082.
svn path=/trunk/; revision=35538
2011-01-14 19:02:38 +00:00
Graham Bloice 8e86e3dbbf Removed redundant comparison that caused compilation failure on OSX
svn path=/trunk/; revision=35536
2011-01-14 14:39:40 +00:00
Martin Mathieson 51170aa0fc When looking for previous frame for UL/DL retx, use harq-id + ndi bit.
svn path=/trunk/; revision=35535
2011-01-14 14:25:24 +00:00
Graham Bloice 1be12860e6 Updated dissector:
Additional function codes: Disable unsolicited messages, Open\Close\Delete file
Additional data objects: Analog output events, File objects and Octet string events.
Improved Info column display for reassembled fragments.
Changed all event timestamps to be UTC as per protocol spec.

svn path=/trunk/; revision=35533
2011-01-14 12:15:10 +00:00
Martin Mathieson b1dd79a122 Rather than repairing out-of-range subframe numbers, make sure error gets reported (and then are not used to access beyond subframe arrays).
svn path=/trunk/; revision=35531
2011-01-14 11:21:28 +00:00
Jaap Keuter cc3952ca4f From Hadar Shoham:
bootp option 123 has 2 chooses - coordinate based location RFC 3825 or
CableLabs DSS_ID. Add better support for having 2 DSS_ID with dynamic
size (up to 32 byte each)

svn path=/trunk/; revision=35530
2011-01-14 07:20:31 +00:00
Jeff Morriss 6cfdeed280 Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str().

There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s.

Replace some memcpy()+tvb_get_ptr() with tvb_memcpy().

svn path=/trunk/; revision=35529
2011-01-14 03:44:58 +00:00
Jeff Morriss 2df5275d87 Don't (blindly) pass the result of match_strval() into proto_tree_add_*():
some OS (like Solaris) don't like NULL pointers to strings in (s)printf
formats; use val_to_str() instead.

svn path=/trunk/; revision=35526
2011-01-13 22:18:30 +00:00
Jaap Keuter 2df51c6860 From Clemens Auer:
This patch adds support for the following fields in Meta protocol:
- Deciphered
- Local Device ID,
- Remote Device ID,
- Tap Group ID,
- TLLI,
- Calling Station ID,
- Called Station ID

svn path=/trunk/; revision=35524
2011-01-13 21:22:57 +00:00
Jeff Morriss a167206685 Introduce, and start using, tvb_ip_to_str() and tvb_ip6_to_str(). These
do the same as the non-tvb equivalents but take a TVB and an offset instead
of a pointer to an array of bytes.

Their purpose is to prevent (many) dissectors from doing:
ip_to_str(tvb_get_ptr(...)).

(About the names and the location: I like the names as they are but the names
imply that they should live in tvbuff.c.  That would make some sense but
I didn't want to pull to_str.h into tvbuff.c...)

svn path=/trunk/; revision=35519
2011-01-13 15:53:30 +00:00