Commit Graph

32289 Commits

Author SHA1 Message Date
Alexis La Goutte 3ebf2e2d51 Kafka: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang

Change-Id: I3ac2e2b6a1ed7621f65f1a98e8b7b3704e8b299d
Reviewed-on: https://code.wireshark.org/review/34481
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-09-09 04:31:57 +00:00
Jaap Keuter de4efb6af7 BACNET: Update vendor ID list
Update build-in vendor ID list with last years additions.

Change-Id: I1916e160f6bcea5e94ce203b50f4a27a6ca1d261
Reviewed-on: https://code.wireshark.org/review/34460
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-09-08 12:45:45 +00:00
Peter Wu 530afbf06e QUIC: fix connection tracking with empty Initial SCID
Fix linking of new Initial packets after a Retry packet in case the
client Initial packet has an empty SCID. Update a comment to drop
"Stateless" from "Stateless Retry" to match newer QUIC drafts.

Tested with quic-go-b083fd6f0e36-d22-dsb.pcapng.

Bug: 13881
Change-Id: Idc8b1ad6283ace95ae059a6ef6ee268c1ffb4097
Reviewed-on: https://code.wireshark.org/review/34469
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-09-08 12:44:32 +00:00
Pascal Quantin 48bc82035e NAS 5GS: enhance dissection of QoS rules IE
Change-Id: I96d416744401d259b9205f5e8daaffe58673633f
Reviewed-on: https://code.wireshark.org/review/34451
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-09-05 03:26:00 +00:00
Michael Mann 168ee5003f kafka: Cleanup to use "native" APIs.
Add "native" support for the "zig-zag" version of a varint in proto.[ch] and
tvbuff.[ch].  Convert the use of varint in the KAFKA dissector to use the (new)
"native" API.

Ping-Bug: 15988
Change-Id: Ia83569203877df8c780f4f182916ed6327d0ec6c
Reviewed-on: https://code.wireshark.org/review/34386
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-09-05 03:25:39 +00:00
Anders Broman 98cda1bf46 Load environment vars to globals for efficency.
These environment variables are read very frequently, read them once to
globals for performance improvment.

Change-Id: I4f05a5edca85b370674cc5f85fce40bd1af695cb
Reviewed-on: https://code.wireshark.org/review/34449
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-09-04 12:31:53 +00:00
Pascal Quantin 993733dda8 NAS 5GS: fix dissection of Session-AMBR/GFBR/MFBR unit
Change-Id: Iccbc89a586abd33db0dd8c16974ad8d9b5bd21f9
Reviewed-on: https://code.wireshark.org/review/34443
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-09-03 16:35:37 +00:00
Anders Broman debdd82678 OSC: Set UDP heuristic default off as this is a niche protocol.
The heuristic is a bit expensive, set default off.

Change-Id: Ib0cb863810a1cbcae2fef0b5a035c63682246a0f
Reviewed-on: https://code.wireshark.org/review/34441
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-09-03 14:06:24 +00:00
Anders Broman 31756275cb ETSI Card Application Toolkit Transport: Set heuristics default off.
RTP packets picked up by the dissector as it's a niche protocol set
heuristics to default off.

Change-Id: I33c6c3fc0f4a593cc4ed5866515cdcea669bee54
Reviewed-on: https://code.wireshark.org/review/34440
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-09-03 12:30:49 +00:00
Pascal Quantin fc2260c0b0 NAS 5GS: fix dissection of QoS flow description IE
Do not reuse Session AMBR fields for MFBR and GFBR.
Add averaging window and EPS bearer identity cases.

Change-Id: I34fad0b5f38aa097bb968106de2bbb86278579b9
Reviewed-on: https://code.wireshark.org/review/34430
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-09-02 18:30:35 +00:00
Pascal Quantin 802cef9f05 NAS 5GS: display protocol identifier string in QoS Rule IE
Change-Id: I9d5e1f099b9273b20bf335a5b29ef66cf112c928
Reviewed-on: https://code.wireshark.org/review/34429
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-09-02 15:24:58 +00:00
Sergey Avseyev 15a91a6d4a couchbase: update command identifiers
Change-Id: Ic6eb59a26dc0a9edd216a985bbf94d13b4bc5094
Reviewed-on: https://code.wireshark.org/review/34427
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-09-02 08:23:16 +00:00
Michael Mann 8131a4cfa9 TCP: Provide display filters for "raw" SEQ/ACK.
Add hf_ fields for "raw" Sequence and Acknowledgment numbers.  They will only be
visible when "Relative sequence numbers" preference is TRUE.

Bug: 15913
Change-Id: Icfbdc435e82723d663dce36c3a5cc513c837bdaf
Reviewed-on: https://code.wireshark.org/review/34421
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-09-02 03:28:02 +00:00
Michael Mann bd049b9cf3 IEEE802.11: Minor cleanup
1. he_mac_headers can be changed at runtime, so it is not "static" or "const"
2. Optimize out extended length calculation.

Ping-Bug: 15866
Change-Id: Ibf8191a7043a22109ae8a3db481bfbbef583b110
Reviewed-on: https://code.wireshark.org/review/34424
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-09-02 00:51:24 +00:00
Michael Mann a53ec79ebc SMTP: Consider bytes seen as "data" until a command is seen
Create a state for the start of an SMTP conversation.  If bytes seen don't match
a command and conversation is still in the "start" state, treat bytes as message data,
not a command.

Bug: 16026
Change-Id: I229b316a77819b07bf8cf93bed72570a947c6cf3
Reviewed-on: https://code.wireshark.org/review/34412
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-09-01 09:04:02 +00:00
Ido Schimmel a94a860c06 net_dm: Add dissector for drop monitor netlink packets
The Linux kernel includes a module called drop monitor which -
unsurprisingly - monitors packet drops.

Once enabled, the module will periodically send netlink notifications to
user space over generic netlink. Historically, these notifications only
included the program counter where the drop occurred and the number of
packets that were dropped in this location in the last interval.

Patches in net-next (queued for Linux kernel 5.4) extend drop monitor
with another mode of operation where the dropped packets themselves are
sent to user space along with relevant metadata as netlink
notifications. This allows users to perform a more detailed analysis of
the dropped packets.

This patch adds a dissector for these netlink packets. The dissector is
expected to be invoked by the generic netlink dissector and during its
hand off routine it adds an entry in the 'genl.family' dissector table.

The various netlink attributes are dissected by calling
dissect_netlink_attributes(), in a similar fashion to the rtnetlink
dissector. The dropped packet itself is encoded in the netlink attribute
'NET_DM_ATTR_PAYLOAD' and dissected by invoking a dissector from the
'sll.ltype' dissector table based on the packet's protocol which is
encoded in the 'NET_DM_ATTR_PROTO' attribute.

Bug: 16018
Change-Id: I10bfa4b9c9d8f5e82769c250f929f74693142a23
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-on: https://code.wireshark.org/review/34351
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-09-01 09:03:37 +00:00
Michael Mann fc1c7155c4 IEEE 802.11: RSN Information tag, more fields optional.
IEEE 802.11-2016 Section 9.4.2.25 RSNE
All information after Element ID, Length, and Version are optional; therefore the minimal IE length is 2.

Bug: 15905
Change-Id: I231e31c6a0fe5a26d5dd7c1c36be4e9816a7bb50
Reviewed-on: https://code.wireshark.org/review/34411
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-09-01 01:50:13 +00:00
Alexis La Goutte 86e7a0273a isakmp: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang

Change-Id: I318fec3f9cf8d86eaa4260f00e8747683a049e6e
Reviewed-on: https://code.wireshark.org/review/34407
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-08-30 21:51:46 +00:00
Alexis La Goutte d81fe4d884 ieee1722: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang

Change-Id: Ia056c5591369924f88762490b22e72e10f3bc392
Reviewed-on: https://code.wireshark.org/review/34406
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-08-30 21:51:17 +00:00
Pascal Quantin 0318a0addb NAS 5GS: update 5GSM capability IE dissection
Change-Id: I64b063aba78e64193fa5e8dc5e15955bd93093de
Reviewed-on: https://code.wireshark.org/review/34409
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-08-30 16:21:54 +00:00
Pascal Quantin bc78e78b4e NAS 5GS: fix PDU session identity dissection
Values 1 to 4 are allowed

Change-Id: Ifa0bc9185af9a16c261d7cbd939a07f77f03b330
Reviewed-on: https://code.wireshark.org/review/34408
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-08-30 15:34:17 +00:00
Pascal Quantin b43ff70444 NAS 5GS: update 5GSM cause table
Change-Id: I88c9015e0ec31c6d04fe653aee1753d2a604976f
Reviewed-on: https://code.wireshark.org/review/34405
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-08-30 12:52:06 +00:00
Pascal Quantin 96b4e7e571 NAS 5GS: small cleanup
Remove a useless assignment and a few useless return.

Change-Id: I38d868fe8cb81cd86683cf660a6a6699c1e8a54b
Reviewed-on: https://code.wireshark.org/review/34403
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-08-30 07:35:08 +00:00
Pascal Quantin 98bdb27ebb NAS 5GS: fix dissection of 5GSM capability IE
This IE has a variable length to allow future extension.

Change-Id: I158ef8a8aa2f5cace992113a9efeb324beebe1aa
Reviewed-on: https://code.wireshark.org/review/34402
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-08-30 07:35:02 +00:00
Pascal Quantin eda16ed625 NAS 5GS: add dissection of Maximum number of supported packet filters IE
Change-Id: I771cb6d2542a5069641fd5c57836e776802da199
Reviewed-on: https://code.wireshark.org/review/34401
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-30 07:05:26 +00:00
Ivan Quach 2be248658b ASTERIX: addition of CAT021 v0.23 and v0.26 decoding
Added ability to decode CAT021 version 0.23 and version 0.26 ASTERIX
messages

Change-Id: I242ae3055f0af805e3a9eb126494d545702f836f
Reviewed-on: https://code.wireshark.org/review/34343
Reviewed-by: Ivan Quach <ivan.quach@aireon.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-30 06:09:57 +00:00
Ido Schimmel 4ee007bdd8 genl: Always call subdissector
Commit 61c5e8e76d ("genl: make subdissectors responsible for header")
changed the generic netlink dissector to only call a sub-dissector if
there is a payload after the generic netlink header.

However, there are commands in certain generic netlink families that do
not have any payload. For example, 'NET_DM_CMD_START' in the 'NET_DM'
family. This means that the command will not be dissected by the
subdissector, as it will never be invoked.

Change the generic netlink dissector to always call a subdissector, if
it is present. Prevent the subdissectors from trying to dissect past the
end of the packet by adding checks in the two existing subdissectors,
for the 'nlctrl' and 'nl80211' families.

Change-Id: I4d2f48531dee92b11dc45000081a8d2d3dd875c6
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-on: https://code.wireshark.org/review/34350
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-30 03:58:18 +00:00
Anthony Crawford f753bca0de mpeg(dsmcc): Fixed default switch condition
A default condition was missing within the switch statement in
dissect_dsmcc_un_session_resources

Bug: 16025
Change-Id: I34a2c3715923ba80be456aa9b03f84f1dae58bd3
Reviewed-on: https://code.wireshark.org/review/34399
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-08-29 21:14:13 +00:00
Michael Mann 01d7793976 Add proto_tree_add_item_ret_time_string
A few dissectors need the functionality of adding a time field to a proto_tree
while also needing the "time to string" value (typically to show on a tree above).
The functionality to do "get value from tvb and convert to string" was being done
in packet-ntp.c.
Instead proto_tree_add_item_ret_time_string can be used with various encoding to
get the necessary functionality with less code duplication.

ENC_TIME_MIP6 was added as a result of the refactoring.
ABSOLUTE_TIME_NTP_UTC was added as another potential "base" type for time fields.

Change-Id: Ie460c33370b0af59ef60bdab893ce9d6eb23b94f
Reviewed-on: https://code.wireshark.org/review/34390
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-29 13:31:48 +00:00
Bruno Verstuyft 8806701215 DOCSIS: FDX: Added decoding for SW-RBA
Change-Id: Ic55c2393e20c69866a266a5a8213faa84e17fac1
Reviewed-on: https://code.wireshark.org/review/34389
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-28 13:17:38 +00:00
Anders Broman c6686fe32e eCPRI: Update value string.
Change-Id: I7e5f5fa00b168578e00191089b482082e290f2d0
Reviewed-on: https://code.wireshark.org/review/34388
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-28 12:52:01 +00:00
Piotr Smolinski 05b6a9ad0b Kafka: fixed OffsetForLeaderEpoch dissection
Bug: 16023
Change-Id: I78e1354ac5509707c818d7968c7067583fb469ba
Reviewed-on: https://code.wireshark.org/review/34379
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-08-27 17:01:27 +00:00
Dario Lombardo b3f67fa1fa kafka: remove unused hf/ei entries.
Change-Id: I98a3a1456fbfeb726a1a81a0b46714556fe951cd
Reviewed-on: https://code.wireshark.org/review/34383
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-27 11:17:07 +00:00
Michael Mann 698126581e SMTP: Add support for multiline responses
Commands with "-" at the end mean another line with the same command will
follow.  Group all of those lines in a single response tree and don't append
the command value in the Info column for the additional lines.

Bug: 15933
Change-Id: Icba167f2f1d22ebaf53a6844285ba83ed8a20106
Reviewed-on: https://code.wireshark.org/review/34381
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-27 04:04:12 +00:00
Ralph Boehme c9f2b9b3ed DCERPC: workaround that pidl always emits dissect_deferred_pointers()
Commit f57cf9e56c introduced a DISSECTOR_ASSERT()
that revealed a deficiency in pidl: currently pidl unconditionally adds calls to
dissect_deferred_pointers() which breaks dissecting any RPC function that
has only scalar arguments:

  Warn Dissector bug, protocol RPCMDSSVC, in packet 51:
  epan/dissectors/packet-dcerpc.c:2940:
  failed assertion "list_ndr_pointer_list"

Bug: 16022
Change-Id: I9d3522a3e17ef79b9a8a5acb018104ab398a512a
Reviewed-on: https://code.wireshark.org/review/34364
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-27 04:02:39 +00:00
Ralph Boehme df3141cb77 DCERPC: update mdssvc DCERPC dissector from upstream Samba
Change-Id: I13871e093b294a1865be6c47cb86275165002855
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-on: https://code.wireshark.org/review/34365
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-27 04:02:16 +00:00
Stig Bjørlykke a7838d9403 coap: Distinguish observe option for request and response
The observe option has different values for request and response. For
request it identifies register or deregister, and for response it is a
sequence number for reordering detection. RFC 7641 chapter 2.

Change-Id: I09515864997a32f7259e344532ea770b74030b04
Reviewed-on: https://code.wireshark.org/review/34368
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-08-26 17:26:15 +00:00
Stig Bjørlykke d966c0dd5e coap: Improve request/response tracking
Use both Token and Message ID in request/response tracking and retransmission
detection. The token is the same when using observables but the message id is
increasing.

Change-Id: I545416ce139328e6a8eb67258d7b51bddb6b278e
Reviewed-on: https://code.wireshark.org/review/34367
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-08-26 17:24:36 +00:00
Anders Broman 141e3e0155 SCTP: Use proto_tree_add_bitmask_list() for data chunk flags.
Change-Id: I9da080982d5ca85cbd3747008cd1f2b3670b6baa
Reviewed-on: https://code.wireshark.org/review/34369
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-26 12:27:10 +00:00
Michael Mann 18913341fa ISAKMP: Correct typos in new GDOI fields
Change-Id: I29872cb116dfc66c93d59b51a44161e627d3cfec
Reviewed-on: https://code.wireshark.org/review/34363
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-26 07:11:19 +00:00
Gandharav Katyal e55e059e9f ISAKMP: added support for GDOI
Bug: 15693
Change-Id: I790da95c1fa64596bd5131b491237fa084c0be49
Reviewed-on: https://code.wireshark.org/review/33382
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-26 06:44:02 +00:00
Tomasz Moń efe2926a66 NFS: Fix hash table key memory corruption
When the same (as determined by key_equal_func) key gets added to the
GHashTable, old value gets freed and replaced with the new one. This is
fine for hash tables where the key validity is not tightly coupled to
the actual data.

In the nfs_name_snoop_matched hash table the key becomes invalid once
the value gets destroyed (because it shares the data pointed to by fh,
which gets freed once the value is destroyed).

A problematic capture includes packets such that the matching fh gets
added twice to the nfs_name_snoop_matched hash table. Prior to this
change the hash table would end up in a state where the new value is
associated with the old key (which contains pointer to already freed
memory). According to the nfs_name_snoop_matched_equal(), the old key
was equal to the key intended for new value *at the time* of insertion.

This change fixes the bug by using g_hash_table_replace() which does
update the key in case it already exists in the GHashTable.

Bug: 16017
Bug: 16019
Change-Id: Ib3943f1e27e82c05d9abaa1e436554b37a98488e
Reviewed-on: https://code.wireshark.org/review/34360
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-26 05:31:38 +00:00
Michael Mann 35056a6033 SIP: Ensure session-id is not empty
Add expert info if session-id is empty.

Bug: 15951
Change-Id: I48ffe4ca26fd94f522ad1a668c99ed8f1f5e2c01
Reviewed-on: https://code.wireshark.org/review/34356
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-26 03:25:25 +00:00
Martin Fesser d7a908c25c show interface name in frame line caption if set
Change-Id: Ib6cb86bc20dae9f88fdeb469983c2380bcc9216d
Reviewed-on: https://code.wireshark.org/review/34335
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-08-25 20:47:26 +00:00
Alexis La Goutte 55dc9c0428 usb-audio: fix conflict
'usbaudio.as_if_gen.bmFormats.rsv' exists multiple times with NOT compatible types: FT_UINT32 and FT_BOOLEAN

Change-Id: I908b815bfa0f96f2ec421367995d971040f423a1
Reviewed-on: https://code.wireshark.org/review/34283
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
2019-08-25 19:55:32 +00:00
Gerald Combs b38283b3b4 [Automatic update for 2019-08-25]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: I4ed4ada929881a78beefc34012a9898caa92d649
Reviewed-on: https://code.wireshark.org/review/34353
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-08-25 09:18:48 +00:00
Peter Wu 976da8e7fc ELF: do not create lots of tree items for Entry Size 1
Change-Id: Ief8db4a833099c53adb1695129d435c3b89c2680
Reviewed-on: https://code.wireshark.org/review/34347
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-24 06:41:09 +00:00
Thomas Wiens 8e925238b0 Modbus: Unit and Transaction Id for request/response identification
Use Unit and Transaction Identifier to identify the correct request to a
response.
The Transaction Identifier is only available in Modbus TCP.

Bug: 15698
Change-Id: Ic3a279ce200bee9e9274aaec66bd9dc2f1c096b9
Reviewed-on: https://code.wireshark.org/review/34274
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-24 06:35:56 +00:00
Anthony Crawford 3f22907e8b mpeg(dsmcc): Fixed range values
Fixed range values in message_discriminator_vals
and rsrc_attribute_vals.

Bug: 16015
Change-Id: Ib04b0be32fb8d58138913e643a38b95e64cdad7f
Reviewed-on: https://code.wireshark.org/review/34344
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-08-24 06:26:34 +00:00
Peter Wu 6bd541f969 ELF: update e_machine table, update links
Use HTTPS for links when possible and update the e_machine entries by
post-processing a copy from the table on the website:

    awk -F $'\t' '$1 ~ /^EM/ && $3 ~ /./ {printf "    { %3d,  \"%s\" },\n", $2, $3}'

Manually added the reserved entries for 182 and 184. Additionally added
Linux kernel BPF (247) and C-SKY (252).

Change-Id: I28ad07377a20499014437919da8e6871db2b8e59
Ping-Bug: 16016
Reviewed-on: https://code.wireshark.org/review/34346
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-08-24 02:15:53 +00:00