Commit Graph

18000 Commits

Author SHA1 Message Date
Martin Mathieson 4d256e6628 Getting closer to deleting old ROHC from PDCP dissector.
Don't register ROHC fields there (so its easier to find real fields with
auto-completion).

svn path=/trunk/; revision=42076
2012-04-15 01:37:08 +00:00
Anders Broman 514092549c Cosmetic changes
svn path=/trunk/; revision=42066
2012-04-14 12:17:06 +00:00
pascal 7ded30acc1 Set direction according to destination address field also (and not only originating address).
svn path=/trunk/; revision=42065
2012-04-14 11:59:14 +00:00
pascal a01bf60abf Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6202 :
Stop applying a specific treatment when receiving a SMS-DELIVER packet with an unknown direction (no such treatment is done for SMS-SUBMIT).
Store SMS fragment length in hash table to avoid mangling the output when displaying the reassembled SMS.

svn path=/trunk/; revision=42064
2012-04-14 11:56:12 +00:00
Anders Broman 7d1cef1a06 From Tyson Key: Support for PN532 InDeselect, Release, and InSelect Command and Response Packets. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7083
svn path=/trunk/; revision=42063
2012-04-14 07:58:59 +00:00
Guy Harris 3fc6c21130 "OUI", not "OID", for IEEE OUIs.
svn path=/trunk/; revision=42056
2012-04-13 22:29:11 +00:00
Guy Harris 2d2d5f47f4 Patch from Alex Lindberg to update the LLDP dissector to display
registered OUIs from manuf and allow custom dissectors for
Organizationally Specific TLVs.  Fixes bug 7080.

Use uint_get_manuf_name() and uint_get_manuf_name_if_known(), rather
than tvb_get_manuf_name() and tvb_get_manuf_name_if_known(), in cases
where we've fetched the OUI.

Have the ECP/VDP dissector also display registered OUIs from manuf.

Get rid of the OUI_CISCO_2 OUI from tlv_oui_subtype_vals, as that can
come from the manuf file.  Leave in comments explaining why, for now, we
aren't using the manuf file for *all* the OUIs.

svn path=/trunk/; revision=42055
2012-04-13 22:26:35 +00:00
Guy Harris 7f8d3e24e3 Add uint_get_manuf_name() and uint_get_manuf_name_if_known() routines,
which take an OUI, presumably fetched with a routine such as
tvb_get_ntoh24(), as an argument and attempt to look it up in the manuf
file.

Fix up the comments for all the get_manuf_name routines.

Get rid of "extern"s in definitions of functions (definitions, not
declarations).

svn path=/trunk/; revision=42054
2012-04-13 22:23:04 +00:00
Jakub Zawadzki 8a1dc57c03 Remove doubled semicolons and semicolons outside function.
svn path=/trunk/; revision=42053
2012-04-13 20:22:31 +00:00
pascal 8fd3fcfd78 From Tyson Key:
Additional PN532 dissector opcode descriptions
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7078

svn path=/trunk/; revision=42052
2012-04-13 20:01:16 +00:00
Guy Harris f2f11f4a2b GUINT_TO_POINTER() causes warnings when passed something *shorter* than
a guint; cast the argument to guint.

svn path=/trunk/; revision=42051
2012-04-13 19:40:57 +00:00
Guy Harris 01b2867f4e Clean up white space.
svn path=/trunk/; revision=42050
2012-04-13 19:36:44 +00:00
Jakub Zawadzki 25178510bd Try to fix OSX builds.
svn path=/trunk/; revision=42049
2012-04-13 18:27:51 +00:00
Guy Harris 1ebd7c819c Emphasize that TAG_DELIMITER must be a null-terminated string.
svn path=/trunk/; revision=42048
2012-04-13 16:54:24 +00:00
Alexis La Goutte b40cea4d5b Update ICMPv6 to last IANA Parameters (2012-03-28)
* RFC-ietf-roll-rpl-19 => RFC6550
* draft-ietf-csi-proxy-send-05 => RFC 6496
* Add RFC6495 : Subject Key Identifier (SKI) SEND Name Type fields
* Add RFC6554 : An IPv6 Routing Header for Source Routes with RPL

svn path=/trunk/; revision=42047
2012-04-13 14:05:52 +00:00
Anders Broman 84e8250146 From Pascal Quantin:
Ignore Content-Length if Transfer-Encoding is present

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

svn path=/trunk/; revision=42046
2012-04-13 13:10:38 +00:00
Anders Broman b2f9b5614a From Cristian Constantin:
There was something really wrong in conversation_lookup_hashtable().


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

svn path=/trunk/; revision=42044
2012-04-13 12:53:47 +00:00
Anders Broman bba21ab84f gunzip gzip:ed SIP bodies.
svn path=/trunk/; revision=42043
2012-04-13 12:04:25 +00:00
Jakub Zawadzki 12ea608604 Needle for guint8_pbrk() must be NULL terminated. Fix bug #7070
svn path=/trunk/; revision=42042
2012-04-13 10:38:41 +00:00
pascal 6f91bcc65a Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6477:
Use T-User-Data-Length to define the string size decoded with the 7 bits alphabet

svn path=/trunk/; revision=42041
2012-04-13 10:01:38 +00:00
Guy Harris bdda4a4498 When skipping white space, don't skip past the end of the line.
This *might* fix bug 7070, but I can't reproduce that bug on my machine
- I'm guessing from the "out of CPU time" that there's an infinite loop
somewhere, but I'm not seeing it.  In any case, these tests *are*
necessary.

svn path=/trunk/; revision=42040
2012-04-13 03:34:18 +00:00
Guy Harris ee13854e77 Give some URLs for descriptions of RTMP.
svn path=/trunk/; revision=42039
2012-04-12 22:13:59 +00:00
Anders Broman 6968651735 Refactor to use dissect_gsm_map_msisdn().
svn path=/trunk/; revision=42036
2012-04-12 14:34:52 +00:00
Anders Broman 9551f33d95 Bugfix and enhancement of MM Context dissection.
svn path=/trunk/; revision=42035
2012-04-12 14:07:31 +00:00
pascal 9f70eb0ca6 From Nick Lowe:
Use correct return type for tvb_get_ephemeral_string
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1450

svn path=/trunk/; revision=42034
2012-04-12 10:08:38 +00:00
Anders Broman 7f6a40b810 From Michael Mann: improved the IRC dissector to be able to pick out the CTCP protocol. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1450
svn path=/trunk/; revision=42033
2012-04-12 05:46:42 +00:00
Anders Broman 5d101caa89 From Martin Kaiser: CID 525 is about tvb_new_octet_aligned(). datalen can be negative or 0 when ep_alloc0(datalen) is called. If this happens, it's because of a dissector not checking the bit_offset, I think a DISSECTOR_ASSERT() is ok for fixing this. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7068
svn path=/trunk/; revision=42032
2012-04-12 05:36:26 +00:00
Anders Broman 8cdb90bd44 From Martin Kaiser: CID 476: add missing break. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7067
svn path=/trunk/; revision=42031
2012-04-12 05:32:22 +00:00
pascal bcd7b23435 From Nitinkumar Yemul:
Binary Floor Control Protocol (BFCP) dissector
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7061

svn path=/trunk/; revision=42028
2012-04-11 20:45:59 +00:00
Alexis La Goutte 1d10278073 Clean up indentation (use 2 spaces)
Add Modelines info

svn path=/trunk/; revision=42027
2012-04-11 19:37:56 +00:00
Alexis La Goutte a14b4f57a9 Update Extensible Authentication Protocol (EAP) Registry (2011-02-22)
svn path=/trunk/; revision=42026
2012-04-11 19:36:09 +00:00
Jörg Mayer 40f379ea49 Fix:
trunk/epan/dissectors/packet-sctp.c: In function ‘dissect_add_outgoing_streams_parameter’:
trunk/epan/dissectors/packet-sctp.c:1175:9: error: variable ‘length’ set but not used [-Werror=unused-but-set-variable]
trunk/epan/dissectors/packet-sctp.c: In function ‘dissect_add_incoming_streams_parameter’:
trunk/epan/dissectors/packet-sctp.c:1195:9: error: variable ‘length’ set but not used [-Werror=unused-but-set-variable]


svn path=/trunk/; revision=42025
2012-04-11 19:16:04 +00:00
Anders Broman 869b54e3b5 Dissect IE Type = 106 fully.
svn path=/trunk/; revision=42023
2012-04-11 15:52:14 +00:00
pascal 8152ef94e4 Display Home NodeB name.
svn path=/trunk/; revision=42022
2012-04-11 12:06:15 +00:00
Guy Harris 9f925a618f The trial period is arguably over - no need for packet-ansi_map.c to
have its own #if 0'ed out definition of dgt_set_t.

svn path=/trunk/; revision=42020
2012-04-11 00:35:53 +00:00
Guy Harris dd4cb8424b Get rid of redundant Dgt1_9_bcd digit set - passing NULL as the digit
set uses tvb_bcd_dig_to_ep_str()'s default digit set, which is the same.

Clean up white space (no 4-space tab characters).

svn path=/trunk/; revision=42019
2012-04-11 00:34:13 +00:00
Anders Broman 64242c565b From Martin Kaiser: DVB-CI host control: dissect pmt section by calling mpeg_pmt dissector https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7052
svn path=/trunk/; revision=42015
2012-04-10 21:27:24 +00:00
Martin Mathieson 3f592f10e6 For PDCP status reports, show each lost SN as a bit from the map.
svn path=/trunk/; revision=42014
2012-04-10 21:26:55 +00:00
Jakub Zawadzki 4f3e8427f3 Revert r42001
svn path=/trunk/; revision=42013
2012-04-10 20:58:14 +00:00
pascal e0e5b02bca From Johannes Stezenbach:
Use right value for SET_FEATURE request code
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7058

svn path=/trunk/; revision=42009
2012-04-10 16:05:52 +00:00
Jakub Zawadzki 57bde6a54f Fix #7056 + Remove mechanism global, unused variable.
svn path=/trunk/; revision=42008
2012-04-10 15:48:26 +00:00
pascal 6c29b9f936 Squelch a "dereferencing type-punned pointer" warning when compiling with GCC 4.1.3 (h248_pkg_sig_t and h248_pkg_evt_t structures are identical)
svn path=/trunk/; revision=42007
2012-04-10 14:55:34 +00:00
Anders Broman 7135c935cd Propagate http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=42005 to template file.
svn path=/trunk/; revision=42006
2012-04-10 13:21:35 +00:00
Jakub Zawadzki 999326cd34 This should be enough to make buildbot happy (bug #7054)
svn path=/trunk/; revision=42005
2012-04-10 12:21:15 +00:00
Jakub Zawadzki 8fca2eb7e5 Add missing consts.
svn path=/trunk/; revision=42004
2012-04-10 10:20:20 +00:00
Jakub Zawadzki a125dc89b7 Fix bug #7053, change ep_ to se_
** ERROR **: Memory corrupted (not scrubbed) dead0004

svn path=/trunk/; revision=42002
2012-04-10 07:26:23 +00:00
Jakub Zawadzki 743fe89dc7 If scrubbing memory is set, during alloc we can check if memory is still scrubbed.
This should at least show problems with ep_ use in packet-infiband.c

svn path=/trunk/; revision=42001
2012-04-09 22:31:41 +00:00
Jakub Zawadzki ac5c40e6c5 Mark some function static.
svn path=/trunk/; revision=41999
2012-04-09 19:43:19 +00:00
Jakub Zawadzki 9d33f00098 Fix 'overflow in implicit constant conversion', make it const.
svn path=/trunk/; revision=41998
2012-04-09 19:12:17 +00:00
pascal 9861855f26 Fix a few calls to tvb_bcd_dig_to_ep_str and proto_tree_add_item
svn path=/trunk/; revision=41997
2012-04-09 18:48:52 +00:00
Jakub Zawadzki 23494db817 Add missing const attribute to some char *
Fix some "assignment discards qualifiers from pointer target type", etc

svn path=/trunk/; revision=41996
2012-04-09 18:44:10 +00:00
Chris Maynard 1e6301fa8b Set the minimum length of the Internet Timestamp option to 4 bytes instead of 5. RFC 791 only states that the smallest legal value of the pointer is 5, not the smallest size for the option itself. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7043
Since backporting must be manually applied anyway, other changes include fixing the displaying of the EOOL and NOP options, as well as other options without a dissect routine associated with them.

svn path=/trunk/; revision=41994
2012-04-09 18:17:33 +00:00
Jakub Zawadzki 9c48f9ca96 Add missing const attribute to some char *
Fix some "assignment discards qualifiers from pointer target type", etc

svn path=/trunk/; revision=41993
2012-04-09 17:53:04 +00:00
Anders Broman 76604977ef From Nick Lowe: Minor cosmetic name changes for consistency and brevity. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7020
svn path=/trunk/; revision=41992
2012-04-09 15:18:04 +00:00
Anders Broman 54810883fc From Martin Peylo: add string for id-dsa-with-sha1 OID to pkix1explicit https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7044
svn path=/trunk/; revision=41991
2012-04-09 15:00:23 +00:00
Anders Broman d3c804e3fa From Martin Kaiser: DVB-CI: register an application for the SAS resource, new OIPF dissector for application messages https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7039
svn path=/trunk/; revision=41990
2012-04-09 14:53:42 +00:00
Anders Broman c89bdbd150 From Nick Lowe: Fix two check warnings, make consistent. (Rebased.) https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7037
svn path=/trunk/; revision=41989
2012-04-09 14:45:03 +00:00
pascal a1d4d9ca7e From Michael Mann:
use suboption length instead of option length to terminate option 82 dissection in BOOTP

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

svn path=/trunk/; revision=41988
2012-04-09 14:43:13 +00:00
Bill Meier 70fcc43cc8 Read_Buffer, Read_Modified & Read_Modified_All are valid outbound commands.
(Fixes issue reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6854#c8)

Also: Rename 3270 "command" defines to reflect Local vs Remote.

svn path=/trunk/; revision=41987
2012-04-09 14:17:49 +00:00
Martin Mathieson 6407baee32 Obsolete a preference
svn path=/trunk/; revision=41986
2012-04-09 01:50:26 +00:00
pascal afd3998b98 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7045 :
use right bitmask to get the Z reserved bits

svn path=/trunk/; revision=41985
2012-04-08 17:17:07 +00:00
pascal 14d362a018 As suggested by Jakub, always update the digit value when the nibble is outside [0;9] range
svn path=/trunk/; revision=41984
2012-04-08 16:03:21 +00:00
Gerald Combs 4616bca9e1 [Automatic manuf, services and enterprise-numbers update for 2012-04-08]
svn path=/trunk/; revision=41981
2012-04-08 14:03:25 +00:00
pascal e599abd268 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7042 :
Handle properly filler and do not remove last digit

svn path=/trunk/; revision=41979
2012-04-08 13:10:45 +00:00
Graham Bloice eec1e3d498 Fixed checkAPI warnings for blurb matching field name
svn path=/trunk/; revision=41978
2012-04-07 20:13:27 +00:00
Anders Broman 3580063a40 From Nick Lowe:
Review use of proto_tree_add_*() in packet-eapol.c

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

svn path=/trunk/; revision=41977
2012-04-07 13:07:53 +00:00
Gerald Combs e5cd6c087e 1.7.1 → 1.7.2.
svn path=/trunk/; revision=41971
2012-04-06 17:27:20 +00:00
Guy Harris 154c0f37dd Indicate where BACnet MS/TP is specified.
Add a new WTAP_ENCAP_BACNET_MS_TP_WITH_PHDR encapsulation type, for use
by the EyeSDN file reader; unlike the pcap-encapsulated MS/TP, it
includes a direction indicator.  Don't treat WTAP_ENCAP_BACNET_MS_TP as
if it has a direction indicator, as it doesn't; instead, do that for
WTAP_ENCAP_BACNET_MS_TP_WITH_PHDR.

Add some missing entries to encap_table_base for WTAP_ENCAP_ values that
didn't get entries added.

svn path=/trunk/; revision=41969
2012-04-06 03:42:32 +00:00
Gerald Combs 1db28ae469 Clamp a value as suggested by Mike Morrin in bug 6878.
svn path=/trunk/; revision=41968
2012-04-06 00:32:26 +00:00
Guy Harris 65915ab2a4 Clean up indentation (use 8-space tab-based indentation throughout).
svn path=/trunk/; revision=41965
2012-04-05 21:22:09 +00:00
Guy Harris 40f0c13132 Rename v52_handle to reflect that it's a handle for V5DL, not V5.2
payload.

Clean up indentation (use 8-space tab-based indentation throughout).

svn path=/trunk/; revision=41964
2012-04-05 21:20:23 +00:00
Guy Harris f691d04580 Fix the name of the variable with the handle for the V5.2 dissector, to
make it clearer that the payload isn't being dissected as uninterpreted
data.

Whether the checksum is checked should not depend n the presence of
per-frame protocol data; make it depend on the availability of the
checksum, instead.  Then #if 0 out all that code, as, at least in the
V5.2 capture attached to bug 7027, there is no checksum in any of the
packets.

Clean up indentation a bit.

svn path=/trunk/; revision=41963
2012-04-05 21:13:37 +00:00
Guy Harris a98336862a WTAP_ENCAP_MTP2 is for MTP2 *without* a pseudo-header giving direction
or other information; WTAP_ENCAP_MTP2_WITH_PHDR is for MTP2 *with* such
a pseudo-header.  Use WTAP_ENCAP_MTP2_WITH_PHDR for the EyeSDN captures,
and don't assume there's a pseudo-header if you have WTAP_ENCAP_MTP2.

svn path=/trunk/; revision=41962
2012-04-05 20:25:26 +00:00
Jakub Zawadzki cbfa8a5de6 val is unitinialized when fUnsigned32 return false.
svn path=/trunk/; revision=41961
2012-04-05 20:17:39 +00:00
Jakub Zawadzki a7420029a8 Fix invalid use of sizeof, it should be array length.
svn path=/trunk/; revision=41960
2012-04-05 20:03:49 +00:00
Guy Harris 6598c2ca0b Put the right file name into the initial comment.
svn path=/trunk/; revision=41959
2012-04-05 19:31:39 +00:00
Alexis La Goutte f4bf2b9f8f From Nick Lowe via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7020
Put EAP-TLS flags in to a tree to tidy the UI.

svn path=/trunk/; revision=41958
2012-04-05 17:49:20 +00:00
Jakub Zawadzki 5cbba4c17b Some fixes for nflog. Fix bug #7036
svn path=/trunk/; revision=41956
2012-04-05 17:08:21 +00:00
Anders Broman 6184a93a33 From Nick Lowe:
- Update eap header file to include MS-CHAP v2 definitions. 
- Convert EAP-MS-CHAP-V2 to use proto_tree_add_item() and make a few, hopefully final, changes. 

Fixed a couple of typos etc.

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

svn path=/trunk/; revision=41955
2012-04-05 12:33:25 +00:00
Anders Broman d04de670f8 From Michael Mann:
TCP picks wrong sub-dissector if both dissector choices have the same "minimum segment size"

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

svn path=/trunk/; revision=41954
2012-04-05 11:18:49 +00:00
Anders Broman 3f4d248357 Use common code to have the same hf field for DSCP in IPv4 and IPv6.
svn path=/trunk/; revision=41953
2012-04-05 10:35:39 +00:00
Anders Broman 60c4bd3eeb Use common code to add ip version to the tree.
svn path=/trunk/; revision=41952
2012-04-05 08:38:26 +00:00
Anders Broman 3472f44238 Use common value string for DSCP.
svn path=/trunk/; revision=41951
2012-04-05 08:02:32 +00:00
Anders Broman d8bd751b9b From Shima:
Parsing for ALC protocol, FEC header for LDPC (RFC 5170).

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

svn path=/trunk/; revision=41950
2012-04-05 07:44:25 +00:00
Anders Broman 46b7949682 From Nick Lowe:
Convert EAP-LEAP to use proto_tree_add_item() and make a few fixups. 

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

svn path=/trunk/; revision=41949
2012-04-05 07:35:18 +00:00
Chris Maynard d167ca91ee Fix Coverity CID 1469: UNUSED_VALUE.
svn path=/trunk/; revision=41947
2012-04-04 23:25:00 +00:00
Gerald Combs 8b3024e57c Make bit_offset in _tvb_get_bits64 and related functions unsigned. This
removes a potential buffer overflow and should fix a bunch of Coverity
errors mentioned in bug 6878.

We might want to do the same for no_of_bits.

svn path=/trunk/; revision=41945
2012-04-04 21:54:22 +00:00
Jakub Zawadzki c67d24077e Allow loading xml files (file MUST start with <?xml).
I needed it for testing (bug #7028)
if you feel like it's stupid idea give me nfo :)

svn path=/trunk/; revision=41944
2012-04-04 20:52:52 +00:00
Jeff Morriss 75c3c92f19 Add a "-build" argument to checkAPIs.pl. Use that argument when building
from makefiles (and thus from the buildbot).

The intention is to be able to tell when a human is running the tool so we
can provide more code-review guidance.

As a starter, enable the "too many proto_tree_add_text() calls" check when
a human is running the tool.

svn path=/trunk/; revision=41943
2012-04-04 20:46:49 +00:00
Jeff Morriss 02e0b847f1 Replace a:
proto_tree_add_bytes_format*(tree, hf, tvb, offset, length, tvb_get_ptr(tvb, offset, length), [...])
  
with:
   
proto_tree_add_bytes_format*(tree, hf, tvb, offset, length, NULL, [...])

svn path=/trunk/; revision=41942
2012-04-04 20:09:21 +00:00
Jeff Morriss df9a7a0b1c Fix CID 1287: rdp_info can't be NULL here so there's no need to check for it
being NULL.

svn path=/trunk/; revision=41929
2012-04-04 15:54:19 +00:00
Jeff Morriss e41643f34a Avoid false-positive CID 621: if str is non-NULL, idx should be positive
(so idx won't be negative when used in the else statement).  To avoid
this false positive, add a check if idx is negative to the if(str) check.

Also remove some trailing commas.

svn path=/trunk/; revision=41925
2012-04-04 14:42:25 +00:00
Anders Broman e1233a19b0 Try to fix:
packet-eap.c: At top level:
packet-eap.c:150: error: static declaration of ‘eap_sim_subtype_vals’ follows non-static declaration
../../epan/eap.h:62: note: previous declaration of ‘eap_sim_subtype_vals’ was here
packet-eap.c:159: error: static declaration of ‘eap_aka_subtype_vals’ follows non-static declaration
../../epan/eap.h:72: note: previous declaration of ‘eap_aka_subtype_vals’ was here
packet-eap.c: In function ‘dissect_eap’:
packet-eap.c:668: warning: request for implicit conversion from ‘void *’ to ‘struct conv_state_t *’ not permitted in C++
packet-eap.c:673: warning: request for implicit conversion from ‘void *’ to ‘struct conv_state_t *’ not permitted in C++
packet-eap.c:866: warning: request for implicit conversion from ‘void *’ to ‘struct frame_state_t *’ not permitted in C++
packet-eap.c:927: warning: request for implicit conversion from ‘void *’ to ‘struct frame_state_t *’ not permitted in C++
packet-eap.c:1048: warning: request for implicit conversion from ‘void *’ to ‘struct frame_state_t *’ not permitted in C++
packet-eap.c:1067: warning: request for implicit conversion from ‘void *’ to ‘struct frame_state_t *’ not permitted in C++

svn path=/trunk/; revision=41924
2012-04-04 12:49:09 +00:00
Chris Maynard 523cbecd1a Avoid some potential divide by zero errors that Clang reports.
svn path=/trunk/; revision=41923
2012-04-04 12:47:08 +00:00
Anders Broman a42cb82d65 From Nick Lowe:
- Update eap header file to include SIM and AKA definitions.
- Change the SIM and AKA EAP types to use proto_tree_add_item(). 

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

svn path=/trunk/; revision=41922
2012-04-04 12:32:44 +00:00
Anders Broman 68224296e3 Change to use eap. in filter names isof eap_
svn path=/trunk/; revision=41921
2012-04-04 10:35:48 +00:00
Alexis La Goutte ea2990f586 Add Openwire dissector to CMake too...
svn path=/trunk/; revision=41920
2012-04-04 09:41:03 +00:00
Alexis La Goutte 0b276d3f38 From Metatech via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7014
Here is a dissector for ActiveMQ OpenWire protocol.

A few words about the protocol : 
OpenWire has two wire formats :
- "loose" : more verbose, less CPU-intensive, less network-intensive (1-pass)
- "tight" : more compact, more CPU-intensive, more network-intensive (2-pass)
This dissector only supports the "loose" syntax, which is not the default.
This dissector only supports version 6 of the protocol.
It can be changed on the broker in the activemq.xml file by specifying
"tightEncodingEnabled=false" :


svn path=/trunk/; revision=41919
2012-04-04 09:37:19 +00:00
Anders Broman c9a6e6ec59 From Nick Lowe:
Convert EAP-IDENTITY, EAP-NOTIFY and EAP-MD5 to use proto_tree_add_item().

From me consistently use "proto abbr"_"name".

svn path=/trunk/; revision=41918
2012-04-04 08:04:25 +00:00
Anders Broman 654c3e3fc2 From Pascal Quantin:
Upgrade LTE RRC dissector to v10.5.0.

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

svn path=/trunk/; revision=41917
2012-04-04 07:47:54 +00:00
Anders Broman 045b55d881 From Martin Kaiser:
DVB-CI: check APDUs against resource id.

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

svn path=/trunk/; revision=41916
2012-04-04 07:40:20 +00:00
Anders Broman 77b67c7456 From Rolf Fiedler:
Patch to add V5.2 tracing capability on E1 links using EyeSDN probes.

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

Removed preference related stufff as it's not needed.

svn path=/trunk/; revision=41915
2012-04-04 07:33:39 +00:00
Jeff Morriss 65a42ddd9a From Nick Lowe via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7020 :
First patch to start the conversion of the EAP dissector from its use of
proto_tree_add_text() to proto_tree_add_item().

svn path=/trunk/; revision=41913
2012-04-03 21:52:03 +00:00
Jeff Morriss db64559972 From Martin Kaiser (on -dev): initialize an uninitialized variable. From me: also clean up some indentation.
svn path=/trunk/; revision=41912
2012-04-03 21:38:59 +00:00
Graham Bloice 1894786916 Implement spoolss function GetPrinterDriverDirectory (opnum 12).
Also renamed "Architecture" field to "Environment" as per MS docs.

Fix bug #2279

svn path=/trunk/; revision=41911
2012-04-03 20:05:36 +00:00
Jeff Morriss 5adc2792e4 Fix CID 620: since we're checking if the given hf index is positive (since
r15662), move the proto_tree_add_boolean() call (which uses the hf index)
inside the check.

svn path=/trunk/; revision=41910
2012-04-03 17:37:27 +00:00
Bill Meier 900c2412cd Improve the text of some value_strings.
svn path=/trunk/; revision=41906
2012-04-03 15:38:27 +00:00
Anders Broman 759607c7cc Comment out unused define.
svn path=/trunk/; revision=41905
2012-04-03 14:46:02 +00:00
Anders Broman e8e5d6aa26 Update to V11.1.0 (2012-03)
svn path=/trunk/; revision=41904
2012-04-03 14:12:07 +00:00
Jakub Zawadzki 83adc2d745 Fix off by one shift error introduced in r39531.
In tvb_get_ephemeral_unicode_string() length is number of bytes (not characters).

svn path=/trunk/; revision=41903
2012-04-03 09:28:58 +00:00
Jakub Zawadzki 189b255ddf Fix dependent_frames memleak.
Reviewed-By: Jeff Morriss (http://www.wireshark.org/lists/wireshark-dev/201204/msg00013.html)

svn path=/trunk/; revision=41902
2012-04-03 09:18:16 +00:00
Jeff Morriss cf58e2bd83 From Martin Kaiser via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7023 :
For each message, the DVB-CI dissector checks the message size against the
buffer size negotiated at startup. If the buffer size negotation was not
captured, a warning is flagged up for each packet saying its size is too big. 

Obviously, the check only makes sense if we know the negotiated buffer size...

svn path=/trunk/; revision=41901
2012-04-03 01:52:44 +00:00
Jeff Morriss b4f42921bb Fix a couple of CIDs related to missing breaks: both are intentional[1] so add
comments to that effect.

[1] Based on comment from Lars Roff via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6844

svn path=/trunk/; revision=41899
2012-04-03 01:25:24 +00:00
Anders Broman a52545a4c1 From Nick Lowe:
Negate version bits in flags for PEAP, TTLS, FAST.

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

svn path=/trunk/; revision=41892
2012-04-02 08:00:43 +00:00
Bill Meier 02b9c6460c Use correct values for "alt screen size" for 327x-3 and 327x-4 terminals.
Slightly improve code which tries to keep track of "screen size".
Add a comment as to what is really required to properly keep track
 of the screen size "state".


svn path=/trunk/; revision=41891
2012-04-01 23:06:21 +00:00
Bill Meier 3052f47326 Remove a bad (unterminated) comment; Fixes Buildbot compile error.
svn path=/trunk/; revision=41890
2012-04-01 21:48:17 +00:00
Bill Meier b27ca5bf7e Fix some bugs related to the use of proto_tree_add_bits_item();
Improve details pane display of a few TN3270 fields.

svn path=/trunk/; revision=41889
2012-04-01 21:31:51 +00:00
Anders Broman c0a018ec2d From Nick Lowe: Show the reserved bits if set for EAP-TLS, unify/clean up the display output. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7017
svn path=/trunk/; revision=41886
2012-04-01 16:12:56 +00:00
Bill Meier c782bbd1e4 Define numerous arrays as static rather than dynamic
so they are initialized only once rather than each time a
 function using the array is executed.
Re-arrange the code slightly so much of the dissection can be
 put under 'if (tree)'.

svn path=/trunk/; revision=41885
2012-04-01 16:06:39 +00:00
Martin Mathieson 2b13fcbb2c Set the extent of IR, IR-DYN and feedback packet types.
Make some fields display and HEX and DEC.

svn path=/trunk/; revision=41881
2012-04-01 14:55:40 +00:00
Martin Mathieson d101fb251b Clear info column before calling ROHC dissector.
svn path=/trunk/; revision=41880
2012-04-01 14:52:48 +00:00
Gerald Combs 5c2416a283 [Automatic manuf, services and enterprise-numbers update for 2012-04-01]
svn path=/trunk/; revision=41878
2012-04-01 14:03:31 +00:00
Jakub Zawadzki 612f2b0e4d Remove return statement (part of r41314), fix bug #7015
svn path=/trunk/; revision=41877
2012-04-01 09:31:02 +00:00
Anders Broman 6151ed8dac At least 4 bytes is required to check PSC, fixes bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6996
svn path=/trunk/; revision=41876
2012-04-01 09:20:35 +00:00
Anders Broman 2c4128c609 Use proto_tree_add_item() in a couple of places, show bit fields
svn path=/trunk/; revision=41875
2012-04-01 09:19:02 +00:00
Michael Tüxen 8421176e01 Add support for RFC 6525.
svn path=/trunk/; revision=41874
2012-03-31 22:01:36 +00:00
Jakub Zawadzki 80445e5a99 Fix off by one shift errors introduced in r39530 where it seemed proper[1]
[1] I'm unsure of packet-dtpt, so I haven't patch it.

svn path=/trunk/; revision=41873
2012-03-31 20:57:15 +00:00
Jakub Zawadzki bb8afe3f68 Add initial support for dissecting packets encapsulated in Netfilter LOG (DLT_NFLOG=239).
svn path=/trunk/; revision=41872
2012-03-31 17:29:41 +00:00
Jakub Zawadzki 35eae45497 These buffers in tvb_uncompress() can't ovelaps, so use optimized memcpy().
svn path=/trunk/; revision=41870
2012-03-31 12:35:07 +00:00
Jakub Zawadzki 60f47ed05b Fix for bug #6480 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6480)
Yay, first commit since r37883 (almost 9months).

svn path=/trunk/; revision=41869
2012-03-31 12:33:10 +00:00
Ronnie Sahlberg ce6237d4a0 SCSI SBC: Start decoding LogicalBlockProvisioning VPD page
svn path=/trunk/; revision=41867
2012-03-31 04:45:33 +00:00
Ronnie Sahlberg 19a13c2111 SCSI SBC: Add the new fields that have been added to READ_CAPACITY16
svn path=/trunk/; revision=41864
2012-03-30 23:48:23 +00:00
Jeff Morriss 05113c3737 From Svetoslav Duhovnikov via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6995 :
The following patch adds decoding capabilities for RFC 5886 for PCEP protocol:

9.1. New PCEP Message


   Each PCEP message has a message type value.

   Two new PCEP (specified in [RFC5440]) messages are defined in this
   document:

   Value  Description                                      Reference
     8    Path Computation Monitoring Request (PCMonReq)   This document
     9    Path Computation Monitoring Reply (PCMonRep)     This document

9.2. New PCEP Objects


   Each PCEP object has an Object-Class and an Object-Type.  The
   following new PCEP objects are defined in this document:

   Object-Class Value Name        Object-Type             Reference

          19          MONITORING  1                       This document

          20          PCC-REQ-ID  1: IPv4 addresses       This document
                                  2: IPv6 addresses

          25          PCE-ID      1: IPv4 addresses       This document
                                  2: IPv6 addresses       This document

          26          PROC-TIME   1                       This document

          27          OVERLOAD    1: overload             This document

svn path=/trunk/; revision=41862
2012-03-30 22:36:02 +00:00
Anders Broman d8a60f8a0a From Claude LeFrancois: Support 2 new GTP Information Elements. The Fully Qualified Domain Name (FQDN) GTP IE and the Evolved Allocation/Retention Priority II GTP IE.
svn path=/trunk/; revision=41861
2012-03-30 21:45:42 +00:00
Jeff Morriss 17ce01b48d From Weston Andros Adamson via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7010 :
While developing SP4_MACH_CRED support for the linux nfs client, I noticed that
wireshark was displaying these bitmasks incorrectly (as fattrs instead of NFS
operations).

I also noticed that BACKCHANNEL_CTL (a required value in the mask for
SP4_MACH_CRED) wasn't in names_nfsv4_operation[], so I added it and verified
that we're not missing any other ops.

svn path=/trunk/; revision=41851
2012-03-30 17:50:08 +00:00
Jeff Morriss d22d574d6c From Liangfeng via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7012 :
According to 3GPP R7//R8/R9/R10/R11, AVP 'MBMS-Session-Duration' has 3 octets.
First 17 bits indicate seconds, the rest of bits(7 bits) represents days. 

However, in the source file packet-gtp.c, it parse the AVP reversely -- taking
first 7 bits as days, the rest of 17 bits as seconds.  This patch fixes that.

svn path=/trunk/; revision=41849
2012-03-30 17:40:01 +00:00
Chris Maynard ccfcaa067b Allow unknown extension values to be filterable.
svn path=/trunk/; revision=41848
2012-03-30 17:38:10 +00:00
Jörg Mayer adc575f065 gcc.47 would complain that rsoffset might be used uninitialized
when passed by reference. Init to 0 to silence this warning.

Some whitespace fixes.

svn path=/trunk/; revision=41846
2012-03-30 14:48:37 +00:00
Jörg Mayer 5b9cc23569 Fix compiler warnings (set but not used).
Remove whitespace at end of line.

svn path=/trunk/; revision=41845
2012-03-30 13:18:13 +00:00
Stig Bjørlykke 602883402d Adjusted UAT name.
svn path=/trunk/; revision=41844
2012-03-30 12:45:43 +00:00
Stig Bjørlykke b651bbac35 Call uat->post_update_cb also when not having the uat file.
This is because some uat's do cleanup in the init routine, which is needed
when changing profile.

svn path=/trunk/; revision=41842
2012-03-30 11:12:03 +00:00
Stig Bjørlykke adabb3d63e Added support for configuring custom LDAP AttributeValue types.
svn path=/trunk/; revision=41841
2012-03-30 09:08:55 +00:00
Stig Bjørlykke 019008548b Recreate the packet list when changing UAT for header fields.
This fixes a crash when changing settings for fields used as a custom column.

svn path=/trunk/; revision=41840
2012-03-30 08:57:57 +00:00
Martin Mathieson 5282c1b9c5 When a capture starts with a non-zero SN, don't report 0-(SN-1) as
missing.

svn path=/trunk/; revision=41837
2012-03-30 01:18:12 +00:00
Jeff Morriss 786c604ad0 From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7007 :
This patch adds support for the DVB Bouquet Association Table (BAT) from ETSI
EN 300 468.

With this last patch, the support for the DVB SI table is quite complete.

svn path=/trunk/; revision=41836
2012-03-30 01:17:46 +00:00
Ronnie Sahlberg 461b2021b2 ONC-RPC: After we have dissected the decrypted PDU, update offset to reflect that we have eaten all these bytes or rpc will think there was un-dissected data remaining and will show it as an extra "data" field.
svn path=/trunk/; revision=41833
2012-03-29 21:13:24 +00:00
Alexis La Goutte a256cb0c9d Remove unused hf variable
svn path=/trunk/; revision=41828
2012-03-29 18:08:16 +00:00
Alexis La Goutte f0fcfd92a7 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41827
2012-03-29 17:41:51 +00:00
Alexis La Goutte df14b18fdf From Sven Eckelmann via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7009
Add support for 4addr unicast packets 

Add support for 4addr unicast packets packets that will be supported in
linux 3.5.

svn path=/trunk/; revision=41826
2012-03-29 17:40:49 +00:00
Alexis La Goutte 1acb420248 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41825
2012-03-29 17:34:21 +00:00
Alexis La Goutte 508cb1aa2f From Roland Knall via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7003
openSAFETY - Cleanup SSDO dissection, add additional information, remove logic bug

- rename isRequest to isResponse, which is the right name for it
- clean-up elseif to a better readable stand-alone if-clause
- add sender for response package without valid scm

svn path=/trunk/; revision=41824
2012-03-29 17:26:56 +00:00
Stig Bjørlykke 91f2f97f28 Don't try to convert AttributeValue to string if having a ldap_name dissector.
Prefix the converted printable string correctly with 'AttributeValue: '.

svn path=/trunk/; revision=41823
2012-03-29 12:03:49 +00:00
Ronnie Sahlberg 378d039009 ONC-RPC: Add decryption of GSSAPI protected NFS and other ONC based protocols
svn path=/trunk/; revision=41822
2012-03-29 07:42:47 +00:00
Martin Mathieson 92cd70bd61 Improve support for primitives that carry NAS-EPS.
Also parse beginning of "Monitor" lines.

svn path=/trunk/; revision=41821
2012-03-29 01:24:49 +00:00
Ronnie Sahlberg 3d81f3612b ONC-RPC: When a GSS context is destroyed, that NULL procedure call does not carry neither a verifier nor a payload.
Stop decoding the packed immediately after the credentials so that we dont incorrectly flag these packets as malformed.


svn path=/trunk/; revision=41817
2012-03-28 09:42:05 +00:00
Michael Tüxen 7e112bec91 From Robin Seggelmann:
Support DTLS 1.2
Fix a bug in option handling.


svn path=/trunk/; revision=41816
2012-03-28 09:31:04 +00:00
Ronnie Sahlberg 5a2b1ea380 remove a header include that was used when debugging and forgotten to be removed from previous commit
svn path=/trunk/; revision=41814
2012-03-28 09:16:09 +00:00
Ronnie Sahlberg fcd7ed4e62 ONC-RPC: add tracking of GSSAPI authentication contexts
Add traking of when GSS authentication contexts are created and when they are destroyed
so that it is easy to "click on created in link" in a SecNFS packet to get to where the kerberos blob for authentication is


Add context created in/destroyed in to the decode so you can quickly jump to where the authantiation happened to check the decrypted krb5 credentials



svn path=/trunk/; revision=41813
2012-03-28 09:10:41 +00:00
Alexis La Goutte 064024c58a From Ryan Doyle via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6874
Attached is the patch to allow PM_TYPE_AGGREGATE to fall through to PM_TYPE_AGGREGATE_STATIC.

svn path=/trunk/; revision=41812
2012-03-28 08:48:46 +00:00
Alexis La Goutte d4c9e52320 From Jason Damori via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7002
Add MAC Address Acquisition Protocol Dissector

Add the dissector for MAAP - the MAC address acquisition protocol for 802.3
Ethernet defined in IEEE1722.

svn path=/trunk/; revision=41811
2012-03-28 08:46:07 +00:00
Alexis La Goutte c77146cc0d Fix indent (use space) and add Modelines info.
svn path=/trunk/; revision=41798
2012-03-27 13:53:29 +00:00
Alexis La Goutte 2ddb826f55 Add IPv6 Option : RPL Option RFC-ietf-6man-rpl-option-06
svn path=/trunk/; revision=41797
2012-03-27 13:50:50 +00:00
Alexis La Goutte 22e69ad398 Add IPv6 Option :
* Tunnel Encapsulation Limit (RFC 2473)
* CALIPSO (RFC 5570)
* Experimental Option (RFC 4727)

svn path=/trunk/; revision=41796
2012-03-27 13:42:54 +00:00
Ronnie Sahlberg 22e4281355 SCSI SBC : Add decode for UNMAP command
svn path=/trunk/; revision=41795
2012-03-27 09:22:29 +00:00
Stig Bjørlykke f45d2dcd17 Check the user-provided custom header string for invalid characters before
trying to register it in an hf; registering invalid characters in an hf will
lead to an assertion.

This was fixed for the http dissector in revision 41787.

svn path=/trunk/; revision=41791
2012-03-27 06:50:09 +00:00
Martin Mathieson 2570bef0c2 When storing sequence analysis results, add (raw) sequence number and
ack number to the lookup key (which was previously just the frame number).

This helps with situations where multiple segments of the same TCP
conversation can be found in the same frame in a capture (e.g. with LTE
user-plane traffic carried in logged MAC or RLC frames).

svn path=/trunk/; revision=41788
2012-03-27 02:08:48 +00:00
Jeff Morriss c13c14429b Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6982 :
Check the user-provided custom header string for invalid characters before
trying to register it in an hf; registering invalid characters in an hf will
lead to an assertion.

svn path=/trunk/; revision=41787
2012-03-27 01:43:20 +00:00
Jeff Morriss ad5af7cf85 From Nick Lowe via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7001 :
Show EAPOL versions textually.

svn path=/trunk/; revision=41786
2012-03-27 01:17:38 +00:00
Guy Harris 74f042558d There is no "dBm transmit attenuation" field in radiotap; there is,
however, a dBm transmit *power* field.

Fix up the capitalization of "dB" and "dBm", and improve the blurb for
attenuation fields, while we're at it.

Should fix bug 7000:

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

svn path=/trunk/; revision=41781
2012-03-26 22:12:03 +00:00
Jeff Morriss fdb0862c6f Fix CID 1336 (new with r40139): infinite loop if length is equal to 1.
svn path=/trunk/; revision=41780
2012-03-26 22:11:15 +00:00
Jeff Morriss b800903ca2 Fix CID 1458 (new with r41751): infinite loop if length is equal to 1.
svn path=/trunk/; revision=41778
2012-03-26 21:30:16 +00:00
Chris Maynard 49c7005ab5 In dissect_invokeData(), fixup the default case of the switch statement. Fixes 2 instances of Coverity CID 813: UNREACHABLE.
svn path=/trunk/; revision=41775
2012-03-26 19:41:23 +00:00
Chris Maynard 9231cb51a9 Fix Coverity CID 1456: UNUSED_VALUE.
svn path=/trunk/; revision=41771
2012-03-26 17:35:13 +00:00
Chris Maynard 2551c6122e Wrap a couple of very long lines.
svn path=/trunk/; revision=41770
2012-03-26 17:33:09 +00:00
Jeff Morriss 730ae93ce8 Line wrap a few very long lines.
svn path=/trunk/; revision=41767
2012-03-26 14:16:58 +00:00
Jeff Morriss c4acc5cecc From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6999 :
This patch adds support for the DVB Time Offset Table and the related
descriptor.
It also contains the Stuffing Descriptor as an added bonus.

svn path=/trunk/; revision=41766
2012-03-26 14:08:39 +00:00
Jeff Morriss 4204d39e76 From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6998 :
This add support for the very simple DVB Time and Date Table (TDT) as
defined in ESTI EN 300 468.

svn path=/trunk/; revision=41765
2012-03-26 13:56:23 +00:00
Martin Mathieson 65ddfa9e3a Add a field for the number of SRs indicated in one frame.
svn path=/trunk/; revision=41764
2012-03-25 23:46:01 +00:00
Bill Meier eb24f600d7 Extensive rework to clean up code and to fix a number of issues with tn3270 dissection;
Also: do reformatting and symbol renaming for readability.

See Bug #6854 for several examples typical of the issues fixed:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6854

svn path=/trunk/; revision=41763
2012-03-25 23:14:23 +00:00
Jeff Morriss 921b0f140d From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6992 :
Use a couple of hf_ entries that were supposed to be used (reported in
comment 3).

I've also fixed two other small bugs I've found :
 - Invalid checking of mpeg1_only_flag in the video stream descriptor
 - Avoid processing descriptor data if reported length is 0

svn path=/trunk/; revision=41758
2012-03-25 14:03:39 +00:00
Gerald Combs 2ef1e8d9c1 [Automatic manuf, services and enterprise-numbers update for 2012-03-25]
svn path=/trunk/; revision=41757
2012-03-25 14:03:31 +00:00
Jeff Morriss 254bf21caf From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6993 :
This patch adds support for DVB Service Description Table as documented in
ETSI EN 300 468.

svn path=/trunk/; revision=41756
2012-03-25 01:49:23 +00:00
Jeff Morriss 5eab81456d Fix some hf encodings (courtesy of fix-encoding-args.pl).
svn path=/trunk/; revision=41755
2012-03-25 01:41:18 +00:00
Jeff Morriss 55e03ca50a From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6992 :
This patch adds support for DVB Network Information Table as documented in
ETSI EN 300 468.

The patch also contains additional mpeg descriptors usually found in NIT plus
a few minor bugfix for other descriptors.

svn path=/trunk/; revision=41754
2012-03-25 01:33:35 +00:00
Jeff Morriss 19f951917e From Nikitha Malgi via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6958 :
The Group Address (GADDR) TLV, IS-IS TLV type 142, is carried only in an LSP
PDU and carries sub-TLVs that in turn advertise multicast group listeners.  It
also contains the Group MAC address Sub TLV. The Group MAC Address (GMAC-ADDR)
sub-TLV is sub-TLV type number 1 within the GADDR TLV.  In TRILL, it is used to
advertise multicast listeners.

Reference --- http://tools.ietf.org/html/rfc6326#section-2.1

svn path=/trunk/; revision=41751
2012-03-24 00:07:49 +00:00
Jeff Morriss 751930fccb From Guy Martin via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6989 :
Add support for DVB EIT packets from ETSI EN 300 468.

svn path=/trunk/; revision=41750
2012-03-23 23:49:14 +00:00
Jeff Morriss 323dd08b61 Add a couple casts to fix the Windows builds.
svn path=/trunk/; revision=41745
2012-03-23 01:58:46 +00:00
Jeff Morriss 4efb92a274 Replace some duplicate blurbs with NULL.
svn path=/trunk/; revision=41743
2012-03-23 01:41:24 +00:00
Jeff Morriss a7f0f54612 From Tom Bottom via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6887 :
Address comments in the bug: fix up some hf issues and use
proto_item_set_len() when necessary.

Added status field dissection to AEM packets.

From me: hf_aem_frequency is an FT_FLOAT and appears to have a length of 4 so
use that length (instead of 5).

svn path=/trunk/; revision=41742
2012-03-23 01:18:06 +00:00
Jeff Morriss 659d9535aa From Elliot Parsons via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6983 :
In the packet-slowprotocols dissector, there is a bug in the event notification
dissector. The code uses the incorrect value to skip past the data of a vendor
specific notification.

The attached patch file sets the offset to increment by raw_octet, which
corrects the issue.

svn path=/trunk/; revision=41741
2012-03-23 00:53:58 +00:00
Anders Broman efa9387886 From Krishna:
Enhancement to add more trace record fields in Citrix NetScaler capture file format.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?

svn path=/trunk/; revision=41740
2012-03-22 15:36:37 +00:00
Anders Broman f7b39033d4 Unescape NAL units
Bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6975

svn path=/trunk/; revision=41739
2012-03-22 15:10:14 +00:00
Stig Bjørlykke 7d6fcb871b Renamed dmp_class to sec_class, as this is a more correct variable name.
svn path=/trunk/; revision=41738
2012-03-22 12:38:18 +00:00
Stig Bjørlykke 2a9559e200 Removed unused 'msg_type_val' argument to some functions.
svn path=/trunk/; revision=41737
2012-03-22 12:37:03 +00:00
Anders Broman afa29e0070 From Yaniv Kaul:
Enhance the SSL dissector to dissect some Hello extensions.

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

svn path=/trunk/; revision=41736
2012-03-22 08:58:19 +00:00
Anders Broman dba2c07cba From Weston Schmidt:
Add support for ETV Data processing & simple MPEG DSM-CC handling.
Witha a change of the name of dissect() in packet-etv.c to dissect-etv_common().

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

svn path=/trunk/; revision=41735
2012-03-22 08:49:00 +00:00
Chris Maynard 6d09f686dd If the checksum is 0, then only report "no checksum" for UDP/IPv4. This patch is from Jaap Keuter via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6232
svn path=/trunk/; revision=41734
2012-03-22 03:41:58 +00:00
Jeff Morriss 1731fc958e From Martin Kaiser via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6977 :
The attached (trivial) patch adds some missing breaks in switch-case blocks.

This fixes coverity defects #445, #446, #1316 and #1380.

svn path=/trunk/; revision=41727
2012-03-21 22:18:15 +00:00
Jeff Morriss 5629a3fa00 Fix fuzz failure reported in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6976 :

Don't assume that all responses have conversations to find.

svn path=/trunk/; revision=41726
2012-03-21 21:21:58 +00:00
Bill Meier 34e788eb11 'tab-width/tabstop/tabSize' in editor modelines should really always be 8.
svn path=/trunk/; revision=41725
2012-03-21 18:27:10 +00:00
Bill Meier ca3e8b5d8b 'tab-width/tabstop/tabSize' in editor modelines should really always be 8;
Also: In some cases do some whitespace cleanup and some minor reformatting.

svn path=/trunk/; revision=41724
2012-03-21 18:20:44 +00:00
Martin Mathieson 2fc3322e82 Trivial formatting: Show segment offsets/length closer to associated sequence number
in partial NACK.

svn path=/trunk/; revision=41723
2012-03-21 13:53:18 +00:00
Anders Broman f85baa9dfa From Guy Martin:
Fix
Coverity has 3 complaints about this dissector, reported in CID's 1450-1451
CONSTANT_EXPRESSION_RESULT:

Event result_independent_of_operands: (crid & 3) >> 2 is 0 regardless of the
values of its operands [non-specific operand of assignment].
1385             crid_type = (crid &
MPEG_DESCR_CONTENT_IDENTIFIER_CRID_LOCATION_MASK) >> 2;


Event result_independent_of_operands: flags & 0x1000 is always 0 regardless of
the values of its operands (logical operand of if).
1512             if (flags & MPEG_DESCR_LOGON_INITIALIZE_CONNECTIVITY_MASK) {


Event result_independent_of_operands: flags & 0x1000 is always 0 regardless of
the values of its operands (logical second operand of '&&').
1544         if (offset < end && (flags &
MPEG_DESCR_LOGON_INITIALIZE_CONNECTIVITY_MASK)) {

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

svn path=/trunk/; revision=41722
2012-03-21 13:07:23 +00:00
Martin Mathieson 611dcb0d68 When a TCP graph is summoned, work out how many unique TCP conversations
are present. However, still only create the graph for the first/only
one.

LTE MAC or RLC frames often contain multiple SDUs that are segments of
the same TCP conversation - this avoids the need to find a frame with
only one SDU.

svn path=/trunk/; revision=41721
2012-03-21 12:58:50 +00:00
Alexis La Goutte 914a9df522 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41720
2012-03-21 11:27:10 +00:00
Alexis La Goutte f5822cdd9e From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6972
ISAKMP : VendorID CheckPoint : Malformed Packet

Wrong minimum length when there is not CheckPoint "Data" after VendorID

svn path=/trunk/; revision=41718
2012-03-21 09:49:35 +00:00
Alexis La Goutte 98cd9c9ebb From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6206
IKE: Life-Duration wrong displayed in LTV format

The Fix commit in Revision 38387 is wrong 
Get the following error message : ISAKMP dissector bug: failed assertion proto.c:2957

use a HF by type (uint32, uint64, bytes...) for life duration

svn path=/trunk/; revision=41717
2012-03-21 09:28:31 +00:00
Anders Broman b971f1b1a0 From Steve Magnani:
USB: incorrect generated bInterfaceClass for composite device CONTROL transactions.

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

svn path=/trunk/; revision=41715
2012-03-21 08:40:19 +00:00
Anders Broman 254e208558 packet-ieee1722.c:127: warning: 'ieee1722_tree' may be used uninitialized in this function
svn path=/trunk/; revision=41714
2012-03-21 06:55:58 +00:00
Anders Broman 6090a6c659 From Jason Damori: packet-ieee1722.c calls subdissectors too late in dissection https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6974
svn path=/trunk/; revision=41711
2012-03-21 06:23:33 +00:00
Guy Harris f5e58ac3ec If you're not going to use a subtree, don't create it.
svn path=/trunk/; revision=41707
2012-03-21 05:40:22 +00:00
Chris Maynard 87d0ec956e Fix Coverity CID 1337: UNUSED_VALUE.
svn path=/trunk/; revision=41706
2012-03-21 03:47:48 +00:00
Chris Maynard e64474fba4 Fix Coverity CID 1449: DEADCODE.
svn path=/trunk/; revision=41705
2012-03-21 03:22:24 +00:00
Chris Maynard 6c1875f2ea Fix Coverity CID's 1452-1453: UNUSED_VALUE.
svn path=/trunk/; revision=41704
2012-03-21 03:19:31 +00:00
Chris Maynard 56b75184bb Fix Coverity CID 1379: UNUSED_VALUE.
svn path=/trunk/; revision=41703
2012-03-21 03:14:26 +00:00
Chris Maynard 1574813764 Fix Coverity CID's 1439-1448 OVERRUN_STATIC introduced with r41468. Also fix one additional dead store.
svn path=/trunk/; revision=41702
2012-03-21 03:04:15 +00:00
Chris Maynard 66aa2c5b93 Add missing break between AECP_COMMAND_SET_NAME and AECP_COMMAND_GET_NAME cases. Fixes Coverity CID 1430: MISSING BREAK.
svn path=/trunk/; revision=41699
2012-03-21 01:27:22 +00:00
Anders Broman dc9a5254f4 From Yaniv Kaul:
Enhance the Spice dissector to deal with VM name and UUID messages.

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

svn path=/trunk/; revision=41686
2012-03-20 16:03:30 +00:00
Anders Broman b959e9cd74 On behalf of Ericsson a dissector for output from a log tool.
svn path=/trunk/; revision=41685
2012-03-20 12:32:20 +00:00
Alexis La Goutte fa68273f40 Add Quick Start IPv6 Option ( And shared Quick Start option between IPv4/IPv6/TCP )
svn path=/trunk/; revision=41681
2012-03-20 08:51:05 +00:00
Bill Meier c68988797d Use consistent indentation & whitespace;
Reformat some lines.

svn path=/trunk/; revision=41679
2012-03-19 21:12:45 +00:00
Jeff Morriss c07876603f Fix crash (caused by a corrupted Diameter dictionary) reported in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6664 :

Add some sanity checks before adding types, vendors, commands, and AVPs.

svn path=/trunk/; revision=41675
2012-03-19 17:12:04 +00:00
Anders Broman 81bc7b28aa From Roland Knall:
Guards the calledOnce boolean, against malformed traps, using register_frame_end_routine.
Fixes openSAFETY - Malformed packets disable the dissector for the WS session

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

svn path=/trunk/; revision=41674
2012-03-19 14:33:37 +00:00
Anders Broman 012c9d729d From Martin Kaiser:
dvb-ci dissector: dissect descriptor loops by using mpeg-descriptor.

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

svn path=/trunk/; revision=41673
2012-03-19 14:12:07 +00:00
Anders Broman 5252d989d6 Update cause values and export the extended value string.
svn path=/trunk/; revision=41672
2012-03-19 12:57:21 +00:00
Alexis La Goutte 911e82514a From Smyle6 via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6953
Dissector for Kismet drone/server protocol

From me :
* Fix Clang Warning
* Remove if(tree)

svn path=/trunk/; revision=41670
2012-03-19 09:53:20 +00:00
Jeff Morriss a94c84d34f Add a new environment variable (WIRESHARK_ABORT_ON_OUT_OF_MEMORY) that
prevents OutOfMemory exceptions from being thrown.  This makes it easier
to debug such conditions.

Set this variable in test-fuzzed-cap.sh but not in fuzz-test.sh; it's nice
to see the friendly out-of-memory error message in the bug reports the
latter script generates.

svn path=/trunk/; revision=41656
2012-03-19 02:00:42 +00:00
Jeff Morriss 90df1a9d94 Set eol-style to native (just to make these files readable on *NIX).
svn path=/trunk/; revision=41654
2012-03-19 01:46:24 +00:00
Bill Meier cb122a30ce From Harald Welte: patch adding the missing hf[] entries ...
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6355#c11

svn path=/trunk/; revision=41651
2012-03-18 23:57:20 +00:00
Bill Meier f79a5f32b7 Fix a checkAPIs error: Blurb matches field name.
svn path=/trunk/; revision=41646
2012-03-18 22:52:28 +00:00
Bill Meier 2df5dc3d53 From Reinhard Speyerer: Fix several misspellings/typos in Wireshark
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6967

svn path=/trunk/; revision=41645
2012-03-18 22:24:24 +00:00
Bill Meier a7041cacb0 From Bill Schiller: New dissector for the HART/IP protocol
I'm contributing a new dissector for the HART/IP protocol.  This
protocol is specified by the HART Conformance Foundation (HCF).  It is
a standard protocol used in the process control industry.  It
essential wraps the multip-drop serial HART packets in TCP or UDP
packets.  The standard has been approved by the HCF and has been
assigned UDP/TCP port 5094 by IANA.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6961
--This line, and those below,
will be ignored--

M    AUTHORS
M    epan/CMakeLists.txt
M    epan/dissectors/Makefile.common
AM   epan/dissectors/packet-hartip.c
M    ui/gtk/main_menubar.c

svn path=/trunk/; revision=41644
2012-03-18 19:51:39 +00:00
Gerald Combs 86daf87e18 [Automatic manuf, services and enterprise-numbers update for 2012-03-18]
svn path=/trunk/; revision=41641
2012-03-18 19:10:29 +00:00
Bill Meier ddecd24d5b Use a value_string_ext to reference a value_string array;
Use consistent indentation;
Reformat some lines.

svn path=/trunk/; revision=41640
2012-03-18 14:58:38 +00:00
Jeff Morriss 4906ffcdfe Fix the infinite-loop fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6962 :
Repeat r41359 in another location:

Don't try to display tone entries if there are none (but there is length for
them).  Could/should be an expert_info.

Also fix a typo: Nomber->Number.

svn path=/trunk/; revision=41639
2012-03-18 14:05:45 +00:00
Jeff Morriss c49205ed0f Fix one of the dissector assertions in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6962 :
Don't use a proto_item as the tree in proto_tree_add_text().  (There's code
here to hang a subtree off the item but it's commented out.)

svn path=/trunk/; revision=41638
2012-03-18 14:00:02 +00:00
Jeff Morriss 9ce0b54c8f Fix one of the dissector assertions in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6962 :
tidlist is registered as a FT_UINT16 so don't add an array of 16-bit entities
(tids) using it.  Instead add each TID individually.

svn path=/trunk/; revision=41637
2012-03-18 13:57:30 +00:00
Alexis La Goutte d033740bc7 Fix typo (wrong proto_item is used... when there is PAD1 Option)
svn path=/trunk/; revision=41636
2012-03-18 11:54:23 +00:00
Alexis La Goutte 52594e8d9b From Francesco Fondelli via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6966
MPLS-TP Protection State Coordination (PSC) Protocol, RFC 6378

svn path=/trunk/; revision=41635
2012-03-18 11:41:18 +00:00
Jeff Morriss 7bc574b776 From Steve Magnani via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6963 :
Conversation address generation during processing of endpoint descriptors
is not being done in a manner consistent with that of general USB
packet dissection. I am not aware of any observable manifestation of this
bug.

svn path=/trunk/; revision=41634
2012-03-17 23:46:39 +00:00
Guy Harris 1222542112 Mark the computed-from-the-MCS-field data rate as generated, and make it
cover the entire MCS field, in the hopes of avoiding the need to ask
questions such as

	http://ask.wireshark.org/questions/9461

svn path=/trunk/; revision=41633
2012-03-17 21:46:43 +00:00
Jeff Morriss f9dc23f352 Clean up from what appears to have been 4-space tabs.
Clean up indentation.

Leave only one statement on each line.

svn path=/trunk/; revision=41626
2012-03-17 03:47:16 +00:00
Jeff Morriss 5f555e2821 Fix the infinite-loop fuzz failure reported in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6949 :

Don't use a guint8 for() loop index when the end of the loop value is stored
in a guint: the loop index may never reach the end-of-loop value.

Also remove a shadow'd variable.

svn path=/trunk/; revision=41625
2012-03-17 02:41:02 +00:00
Alexis La Goutte c604cb5fa9 Remove dissect_ipv6_options function (unused from Revision 16302...)
svn path=/trunk/; revision=41624
2012-03-16 21:01:32 +00:00
Alexis La Goutte 54192cbe7d Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41618
2012-03-16 16:36:23 +00:00
Alexis La Goutte 68852899b0 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41617
2012-03-16 16:35:55 +00:00
Bill Meier d18d7413f9 Update comments about tvbuff.
svn path=/trunk/; revision=41615
2012-03-16 15:43:56 +00:00
Bill Meier 744e6efd2f Use NULL instead of essentially duplicate text for one hf[] blurb;
Do some reformatting and do indentation & whitespace cleanup.

svn path=/trunk/; revision=41614
2012-03-16 15:33:12 +00:00
Bill Meier abf79b900b Fix some of the incorrect hf[] FT_BOOLEAN 'display' and 'bitmask' fields;
(Additional instances requiring feedback from the dissector author have
 been marked with XXX).
For 'hf_om2k_aop' use a bitmask in the hf[] entry rather than shifting & etc
 in the proto_tree_add_uint() call.
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6792  Comment #8.

svn path=/trunk/; revision=41612
2012-03-16 14:16:20 +00:00
Anders Broman 96e944c8ef Show instance_id.
svn path=/trunk/; revision=41609
2012-03-16 14:03:47 +00:00