Commit Graph

27192 Commits

Author SHA1 Message Date
Stig Bjørlykke 15e78de432 Lua: Register dissectors only once.
Change-Id: I883e8560e9d101d34760d09715255e4fccc9eb98
Reviewed-on: https://code.wireshark.org/review/5022
Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
2014-11-04 07:52:21 +00:00
Guy Harris 61676733b4 Regenerate DCE RPC dissectors with the current pidl.
Change-Id: I3cfb9399a9e5ed783083fa5b26a39646fb53875f
Reviewed-on: https://code.wireshark.org/review/5101
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-11-03 23:03:45 +00:00
AndersBroman bba77c3fc0 tvb_length -> tvb_reported_length
Change-Id: I48b618008c8c8accd6f161bdc42e02906a4765b7
Reviewed-on: https://code.wireshark.org/review/5085
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-11-03 15:21:43 +00:00
Alexis La Goutte f3cc900714 MIPv6: Mobility Header Link Layer Address is parsed incorrectly
Looking at RFC 5568 (http://tools.ietf.org/html/rfc5568#section-6.4.3)
It says that the Link-Layer Address (LLA) Option, should have an address right after the option code

Bug:10006
Bug:10627
Change-Id: I6fcd98a7c9896862e4c9547b945cf3848daaf474
Reviewed-on: https://code.wireshark.org/review/5075
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-11-03 07:37:37 +00:00
Alexis La Goutte 9b37e1e207 HPSW: fix neighbor MAC Address
Use the wrong length for display mac address (6 and no the length of option)
Also fix update of item (don't update the root item)

Change-Id: I38cd1a6a045e797b01cd1a8de5add0949eaa0f01
Reviewed-on: https://code.wireshark.org/review/4950
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-11-03 07:34:15 +00:00
Martin Kaiser bea8299802 remove parent parameter from try_dissect_next_protocol()
Change-Id: Ib05b67c8741f90444e773e7c9e1378f00f41dad7
Reviewed-on: https://code.wireshark.org/review/5083
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-11-02 21:17:41 +00:00
Martin Kaiser 179a9b5106 new function proto_tree_get_parent_tree()
it returns the parent tree of a given tree object

Change-Id: I191e0221651ffb5b26df761e9a25075aa0eb2ad3
Reviewed-on: https://code.wireshark.org/review/4954
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-11-02 21:17:15 +00:00
Alexis La Goutte f9680171b7 RTPS: fix warning: no previous prototype for function ... [-Wmissing-prototypes]
Change-Id: I1943c1446a7bc3381d869514d7802bc0fbb1f6e3
Reviewed-on: https://code.wireshark.org/review/5072
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-11-02 16:46:53 +00:00
Alexis La Goutte 232879a151 gsm a dtap: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: Ifbe59a51e5fa6158f9073402f1a1ab63df2dfa42
Reviewed-on: https://code.wireshark.org/review/5071
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-11-02 16:45:41 +00:00
Alexis La Goutte 3f38631fd9 fcels: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I1c351348399caea313abb94680a610073b3e5af7
Reviewed-on: https://code.wireshark.org/review/5070
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-11-02 16:44:51 +00:00
Alexis La Goutte f1bdcd9ea7 lzxpress: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I028d8877a845af5830b17abfe7eb10d8528b334a
Reviewed-on: https://code.wireshark.org/review/5069
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-11-02 16:43:58 +00:00
Gerald Combs 2899a6e583 [Automatic manuf, services and enterprise-numbers update for 2014-11-02]
Change-Id: Idc5360a39ab2f2f0b0827bc6c71f95e2f175d792
Reviewed-on: https://code.wireshark.org/review/5073
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-11-02 16:06:59 +00:00
Michael Mann ba008bf746 Eliminate proto_tree_add_text from several dissectors.
Change-Id: I6d3125f15d268edd47ef74dd655eb86cb25ee52d
Reviewed-on: https://code.wireshark.org/review/5047
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-11-02 15:42:28 +00:00
Pascal Quantin f19c70c952 DNS: fix Coverity CID 281285 and CID 1238867
Change-Id: Ia5747a5d0c8c63b7471de624c96e546c7bbfbf57
Reviewed-on: https://code.wireshark.org/review/5064
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-11-02 13:33:56 +00:00
Pascal Quantin 2d8d217953 DNS: fix dissection of ISDN RR Sub Address field
Bug: 10650
Change-Id: I3411d4e5ef534a663940974d98c351976005ee8e
Reviewed-on: https://code.wireshark.org/review/5057
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-11-01 21:47:33 +00:00
Pascal Quantin 5e40aa45ca print: do not try to add an empty hex stream to PDML output for a text only hf
Bug: 10651
Change-Id: If38af2879b9a20f4755a7843f20c7327d66c95b1
Reviewed-on: https://code.wireshark.org/review/5054
Reviewed-by: Evan Huus <eapache@gmail.com>
Tested-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-11-01 21:32:53 +00:00
Michael Mann 0af4395e8d Announce messages should only have a TLV if the message length is > 64.
Also, cleaned up a unnecessary global variable.

Bug: 10611
Change-Id: I8ef5658eeb1f7a240b508833baac64719af144d8
Reviewed-on: https://code.wireshark.org/review/5029
Reviewed-by: Evan Huus <eapache@gmail.com>
Petri-Dish: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-11-01 21:04:10 +00:00
Pascal Quantin 070165ca10 Ethernet: fix a trivial typo
Change-Id: Ibf623aa9e7153e7d54dda1000face1bac42a0088
Reviewed-on: https://code.wireshark.org/review/5045
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-11-01 20:11:12 +00:00
Pascal Quantin a162f5b208 DNS: fix display of A6 address suffix field
Bug: 10652
Change-Id: Ibd119177feecd27d0c6baba255e7e3da37b131bd
Reviewed-on: https://code.wireshark.org/review/5043
Tested-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-11-01 19:45:03 +00:00
Robert Grange 20bac9d163 packet-mq: Use value_string_ext for big value string. more struct dissected
Use of value_string_ext for big value_strign array, sort them, to force use the btree search
parse more integer value with value_string

Bug: 9367
Change-Id: I49625cf2d46e0974cddde2c7b1767cb7d06ec47d
Reviewed-on: https://code.wireshark.org/review/5037
Petri-Dish: Bill Meier <wmeier@newsguy.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-11-01 17:47:26 +00:00
Jeff Morriss 74e8613fe1 Don't check the checksum if we're encapsulated in an (ICMP) error packet.
This is the case when an ICMP echo is returned (e.g., because it's too big).

This effectively applies SVN rev 36193 to ICMPv6.

Bug: 10620
Change-Id: I29aeaabc2467c818714df448e39b3a93027c8961
Reviewed-on: https://code.wireshark.org/review/5030
Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-11-01 15:51:58 +00:00
Michal Labedzki ea7c867ba2 Bluetooth: Fix AVRCP UUID
Change-Id: Iaddde4a1ce49b46e4473c1a470760d9cbbe8000e
Reviewed-on: https://code.wireshark.org/review/5038
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
2014-11-01 11:23:26 +00:00
AndersBroman 1f0a68d61a Missed cahnges from last commit:
- Replace some deprecated APIs

Change-Id: If815e7191afb445c474a59cf1e3af603fc7b0b28
Reviewed-on: https://code.wireshark.org/review/5018
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-11-01 08:01:28 +00:00
AndersBroman d93be95fc0 Clean up handling of BDC coded numbers a bit.
Change-Id: Ic3d523664e3c78b4ed289b7e5acf3f53614c6d54
Reviewed-on: https://code.wireshark.org/review/5027
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-31 14:15:00 +00:00
Michael Mann d821440b51 Eliminate proto_tree_add_text from packet-gtpv2.c
Change-Id: I127447941e4c926d9194373a405c82145b1392bb
Reviewed-on: https://code.wireshark.org/review/5025
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-10-31 13:43:49 +00:00
Stig Bjørlykke c6feecff74 Lua: Only register postdissectors once.
Change-Id: Id41e4ebd19e0b80faa06f628d689bdb77f2b84c9
Reviewed-on: https://code.wireshark.org/review/5023
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2014-10-31 12:26:21 +00:00
AndersBroman 96aa60a9f3 CAMEL: tvb_length... -> tvb_reported_length...
Change-Id: Ia9013127d72f9228b8151338429d9f612ba9a1f4
Reviewed-on: https://code.wireshark.org/review/5020
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-31 12:08:54 +00:00
AndersBroman 0c9728161e BER: tvb_length... -> tvb_reported_length...
Change-Id: I4868223ab54046977dbe833e6d1a2078d8d2c6d9
Reviewed-on: https://code.wireshark.org/review/5019
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-31 09:50:51 +00:00
AndersBroman c427839a66 Fix:
- packet-dcerpc.c:4664:51: error: unused parameter 'pinfo' [-Werror=unused-parameter]
- packet-dcerpc.c:5083:83: error: unused parameter 'offset' [-Werror=unused-parameter]
- Replace some deprecated APIs

Change-Id: I12cbc92a1f07252ebc3ff638b0a8436b2e226a18
Reviewed-on: https://code.wireshark.org/review/5017
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-31 09:06:04 +00:00
Michael Mann 2717766a9a Use tcp_dissect_pdus in DCE/RPC dissector when running atop TCP.
Yes DCE/RPC runs on top of many dissectors, all which need their own fragmentation support, but TCP can give it to you "for free".  DCE/RPC protocol format is also very conducive to it.

Ping-Bug: 6392
Change-Id: I0d16854fed3d9c4229c3d2973782f676a51dd719
Reviewed-on: https://code.wireshark.org/review/4923
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-31 05:33:09 +00:00
Alexis La Goutte 2787a93507 HTTP2: Update to draft-15
* Add new error code (HTTP_1_1_REQUIRED)
* Use hexa value for error code (like the spec)
* Add reference to Alt-SVC spec

Change-Id: Ifbcb32e97168440cb34f59740871b6c896e90461
Reviewed-on: https://code.wireshark.org/review/4992
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-10-30 23:09:57 +00:00
Michael Mann 618560afa3 Eliminate proto_tree_add_text from packet-fcels.c
Change-Id: Iac322d7c7d66d90994bce377dd8c7e39a36466cf
Reviewed-on: https://code.wireshark.org/review/5003
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-10-30 23:05:00 +00:00
Martin Kaiser 93d5bb38b2 temporary workaround to stop the fuzz failures
Bug: 10635
Change-Id: I2132119710392e077f74c92e737e4edce4fcc295
Reviewed-on: https://code.wireshark.org/review/5011
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-10-30 22:20:34 +00:00
Michael Mann f5ed47dbbc Eliminate proto_tree_add_text from packet-q933.c
Change-Id: If5b85609d3daaf66cbcc15e3127af4e7f5736e52
Reviewed-on: https://code.wireshark.org/review/4995
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-10-30 20:53:52 +00:00
Jeff Morriss 3d9b35fab4 Fix a typo: Unidirected -> Undirected
As reported in https://ask.wireshark.org/questions/37462/possible-mistake-in-bluetooth-low-energy-hci-event-type

Change-Id: Ia6217531208b00c52c89bcb279cbbe67b5163e96
Reviewed-on: https://code.wireshark.org/review/5004
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-10-30 19:51:42 +00:00
Guy Harris a683dd3edf Make the data rate field float, and calculate it for 802.11n.
Bug: 10637
Change-Id: Ifd4094f308246e92500cc7149c0d42c8496fb9f4
Reviewed-on: https://code.wireshark.org/review/5005
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-10-30 19:14:21 +00:00
AndersBroman 066a334570 Add casts to try to please the OSX buildbot.
Change-Id: I66d546ef2dd276bf151b2956ccbe1f2b6c5cb2f5
Reviewed-on: https://code.wireshark.org/review/5002
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-30 16:42:46 +00:00
Matthieu Patou cda985d3eb Create the compress module for compression functions.
For the moment there is only the lzxpress compression used by DRS

Bug: 10546
Change-Id: Ifc7e1767934224c0198f0b09caa3efbad979ca1f
Reviewed-on: https://code.wireshark.org/review/4600
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-10-30 15:28:47 +00:00
AndersBroman f8c7a5bdff Add an RFC reference and fix deprecated API.
Change-Id: I8dcddc6bcbaf462a6e74b76764ea26b7f5b08920
Reviewed-on: https://code.wireshark.org/review/4996
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-30 15:00:28 +00:00
Guy Harris ec33c3dfe7 Support the bandwidth and "short GI" fields from Peek tagged files.
Add a number of fields corresponding to components of the radiotap MCS
field, add presence bits for them, and set and dissect the fields
supported by Peek tagged files.

Change-Id: I3fc801a3bc180e1c174d074a794af0f3d338f249
Reviewed-on: https://code.wireshark.org/review/4989
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-10-30 06:53:01 +00:00
Guy Harris aff087af98 Handle the MCS index in Peek tagged files.
Use the "MCS index used" extended flag bit to indicate whether the "data
rate or MCS index" field is a data rate or MCS index.

Display the MCS index value if it's present.

(More to come - MCS indices, plus other information, should be used to
calculate the data rate for 11n and beyond.)

Get rid of the hdr_info_t structure while we're at it; just use local
variables for each of the fields.

Change-Id: I546f53a8ebd89078d5f23e1290557b97348aff38
Reviewed-on: https://code.wireshark.org/review/4988
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-10-30 00:09:25 +00:00
Guy Harris 8165448504 Expand the 802.11 pseudo-header and support new radio metadata.
Add a set of presence bits, so we can indicate which bits of radio
metadata we do and don't have.

Fill in more radio metadata from capture files, and display it.

(More to come.)

Change-Id: Idea2c05442c74af17c14c4d5a8d8025ab27fbd15
Reviewed-on: https://code.wireshark.org/review/4987
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-10-29 23:04:05 +00:00
AndersBroman d2f4b6fd3d Replace isalpha() with g_ascii_isprint().
Change-Id: I416fd36f65ee80a0b17939bc081ddae0f3f72a32
Reviewed-on: https://code.wireshark.org/review/4984
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-29 15:47:28 +00:00
AndersBroman 065d5c8417 Don't include ctype.h and replace isascii() with _ascii_isprint().
Remove deprecated APIs while at it.

Change-Id: I002ed4a696782caaeeb70a3e4ced4ae81f3d5372
Reviewed-on: https://code.wireshark.org/review/4983
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-29 15:35:53 +00:00
Alex Tessmer 79f878fc64 VXLAN: Fix flag bitmasks
Fix bitmask for flags bits 0-2.

Change-Id: Id7c42a79f0524eae103a586a16b89ccecf031d6f
Reviewed-on: https://code.wireshark.org/review/4982
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-29 09:13:57 +00:00
Guy Harris 417c181afb Use guint8 for 8-bit unsigned numeric values.
That slightly better expresses the intent.

Also, fix the message printed for bad bytes in a field name to handle
bytes that are bad because they don't correspond to printable ASCII
characters.

Change-Id: I01f232c35bbbe30286999b6c607bfcf3d491453d
Reviewed-on: https://code.wireshark.org/review/4976
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-10-28 18:37:09 +00:00
Guy Harris 8ea4df97e0 Use g_ascii_isalnum() rather than isalnum().
Only *ASCII* alphanumerics are allowed in filterable field names, so use
g_ascii_isalnum() to check for them.  That avoids issues with characters
with the 8th bit set and avoids locale-dependent behavior.

Change-Id: I4e3c4eec907f5e576629229fcf154fcf728b7a2e
Reviewed-on: https://code.wireshark.org/review/4973
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-10-28 18:19:15 +00:00
Alexis La Goutte e8d2ba9349 Pref: Remove unsued function
Fix also warning: no previous prototype for 'prefs_get_uint_preference' [-Wmissing-prototypes]

Change-Id: I4626372a9c131584c515a43e73aa019e2f696d29
Reviewed-on: https://code.wireshark.org/review/4960
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-28 15:21:00 +00:00
alage 9056eb9fbd Patch for KNXnet/IP dissector
-removed some proto_tree_add_bits_itemand used bitmaks instead
-fixed KNX Groupaddress decoding
-improved apci decoding
-filternames changed

Change-Id: I2593d54c5e94141445e9e8f32204848e9f48ff6a
Reviewed-on: https://code.wireshark.org/review/4874
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-28 08:21:27 +00:00
Michael Mann 3d359da2b5 Refactor pinfo->circuit_id from H.223 dissector.
Change-Id: Id63e0088047c7948fd190ba4dd5fbcb536e0cc6b
Reviewed-on: https://code.wireshark.org/review/4921
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-28 07:11:26 +00:00