Commit Graph

78241 Commits

Author SHA1 Message Date
Jaap Keuter 47a1b736bd ASTERIX: Fix data item I002/070
I002/070 dissection is broken in two ways
- According to spec the name is "Plot Count Values"
- The bitfield for IDENT is interpreted incorrectly

Bug: 16663
Change-Id: I224a53bcecf11a3cbc98bfaa3533caf51bea21ec
Reviewed-on: https://code.wireshark.org/review/37615
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-30 14:23:34 +00:00
Martin Mathieson 570a0cb301 Set member variables in initialiser list (rather than in CTOR bodies).
Also simplify some boolean logic in packet-dcerpc.c.
All reported by cppcheck.

Change-Id: I2075f2ec10dc777ad7635da4ef056d17fc5b0be0
Reviewed-on: https://code.wireshark.org/review/37609
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-06-30 12:11:15 +00:00
Gerald Combs d70bd4489f GVCP: Fix an infinite loop.
Remove an "if(tree)" test in order to ensure that our offset always
advances.

Bug: 16029
Change-Id: I5bb38f2eccfbf3c44a06682a17aafcba9d8fa0c6
Reviewed-on: https://code.wireshark.org/review/37611
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-30 06:29:12 +00:00
Martin Mathieson 5258ceadb3 cppcheck: add a -o option to check modified or staged changes
Change-Id: I336400441302549967db048bedc70980b04c5030
Reviewed-on: https://code.wireshark.org/review/37613
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-30 06:28:48 +00:00
Gerald Combs d000ff3e6c FTDI MPSSE: Replace asserts with expert items.
Replace a couple of REPORT_DISSECTOR_BUG instances with
proto_tree_add_expert_format. This should hopefully keep the fuzz
builder from complaining.

Bug: 16597
Change-Id: I0ec281bf69244f339cdcbbe49632130f17124419
Reviewed-on: https://code.wireshark.org/review/37600
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-30 06:27:53 +00:00
Zhenhua Hu 9e3671562c SMB: fix Response of SMB_COM_LOCKING_ANDX (0x24)
Pass Length=0 to proto_tree_add_item will cause get_uint_value
to throw error of 'Trying to fetch an unsigned integer with length 0'.

Change-Id: I0fb457d175b719517419291adaedef5cacc9544a
Reviewed-on: https://code.wireshark.org/review/37614
Reviewed-by: Zhenhua Hu <fattiger1102@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-30 06:27:01 +00:00
Dave Rigby 360ae8b1c0 couchbase: Fix dissect length of status!=0 values
When dissecting response values with a non-zero status, the length
calculation was incorrectly using the entire bodylen and not the
actual value_len. This is likely due to an error in adding support for
flex_frame_extras, before which bodylen == valuelen.

Change-Id: I1d622bea582abcfafc5e97881d94fd7a7db6c80a
Reviewed-on: https://code.wireshark.org/review/37598
Reviewed-by: Ben Huddleston <ben.huddleston@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-06-30 04:21:34 +00:00
Guy Harris 07ece895ac RTPS: don't add an unitialized info structure to a table.
Bug: 16648
Change-Id: I03cd412db0067360570d0a0d91dc40e8b732a3b9
Reviewed-on: https://code.wireshark.org/review/37612
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-06-30 00:35:56 +00:00
Dave Rigby bc3f3b3e09 couchbase: Decode XATTRs in payload of DCP_EXPIRATION & DCP_PREPARE
Both of these opcodes can have XATTRs present in the binary
encoding. Add them to the set of opcodes for which we decode XATTRs.

Change-Id: Iee09c720dc4306b8e9c4ebb07673b2709f079a24
Reviewed-on: https://code.wireshark.org/review/37597
Reviewed-by: Ben Huddleston <ben.huddleston@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-29 19:10:58 +00:00
Dave Rigby d065fe022e couchbase: Add doc_flag::CreateAsDeleted
Add support for decoding the CreateAsDeleted flag for subdocument
doc_flag.

Also add some Hello feature flags which were missing (VAttr and
Point-in-Time Recovery).

Change-Id: I7ae1b6e787ee038b5d0f1dbd416f3675eb3be697
Reviewed-on: https://code.wireshark.org/review/37593
Reviewed-by: Ben Huddleston <ben.huddleston@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-29 19:10:25 +00:00
Stig Bjørlykke 52512329c2 Qt: Accept changes in Decode As when combo box has focus
Accept changes in the Decode As dialog on Save and Ok even when the
Field or Current combox box still has focus.

Change-Id: I9d6277ff57714679b574756cbc6d4c4dcb06f8e2
Reviewed-on: https://code.wireshark.org/review/37580
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2020-06-29 18:43:20 +00:00
Stig Bjørlykke 09777ecc04 epan: Always clear all decode-as when loading entries
Always call decode_clear_all() when loading decode_as entries because
this function will create decode_build_reset_list based on entries that
has been changed from its original state.

Ping-Bug: 16635
Change-Id: Ib589d4bc863b680146063ad682398f6180125a38
Reviewed-on: https://code.wireshark.org/review/37582
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2020-06-29 18:42:26 +00:00
Stig Bjørlykke 3dc5f5c2d6 epan: Keep decode_as_list when changing profile
The decode_as_list is built at startup and contains all protocols
registered for "decode as". Do not clear this list on profile change,
only on exit.

Bug: 16635
Change-Id: I832a042327603ae0f01b10ab620fccc03d4fd3a3
Reviewed-on: https://code.wireshark.org/review/37579
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2020-06-29 18:40:27 +00:00
Darien Spencer 52d8c572fb NetMon 802.11: Register dissector
Allows using "netmon_802_11" in the  DLT User table

Change-Id: I4e50751cb0daedbb351d7e668a9d55cecc409565
Reviewed-on: https://code.wireshark.org/review/37599
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>
2020-06-29 18:20:35 +00:00
Anders Broman 6ccae11c11 NGAP:n2InfoContainer is also used for datatype N2InfoContainer
Change-Id: I966f74e9bb4f1155f4884f5e77fd87bae9d46a6b
Reviewed-on: https://code.wireshark.org/review/37581
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-06-29 11:26:44 +00:00
Alexis La Goutte bf30a1cbe7 QUIC: Add Google QUIC Q050 support
See A Guide to Parsing QUIC Client Hellos for Network Middlebox Vendors
https://docs.google.com/document/d/1GV2j-PGl7YGFqmWbYvzu7-UNVIpFdbprtmN9tt6USG8/preview
for salt and other info

Ping-Bug: 13881
Bug: 16633
Change-Id: Ia812689685dcc63ea801a7cc80d8b690ebe9fdfa
Reviewed-on: https://code.wireshark.org/review/37482
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-29 10:18:45 +00:00
Anders Broman 6d4ec8b044 BSSGP: Try to squelch a couple of warnings.
Change-Id: Id4a354b867fa98aaf3cd2207685208a3f11a4f72
Reviewed-on: https://code.wireshark.org/review/37578
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-29 08:55:48 +00:00
Jaap Keuter 5bd9a50e27 DOC: fix layout mergecap manual page
Bug: 16652
Change-Id: I2c0e0363b3ea77a616191476d6e27cca1204b7cc
Reviewed-on: https://code.wireshark.org/review/37564
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-29 08:05:23 +00:00
Anders Broman 251d41e07c Diameter AVPs: Add 3GPP AVP 4321 and 4325
Bug 16653
Change-Id: I4e67e7060387dc3252b0c6d59471e10393ae9e11
Reviewed-on: https://code.wireshark.org/review/37577
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-29 07:22:49 +00:00
Martin Mathieson 14049d75fd cppcheck: add more include folders to look in.
Without this (particularly '.'), for some files it macro definitions cannot
be found the whole file is basically skipped.

Will make overall scan take quite a bit longer.

Change-Id: I7498b23ad9b27edd3a815c7fc51ef8501fa5a56a
Reviewed-on: https://code.wireshark.org/review/37567
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-06-28 14:47:44 +00:00
Gerald Combs 9d17b367c4 [Automatic update for 2020-06-28]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: I0ed59223b3d3cb3e30065dcd0c3075e975057296
Reviewed-on: https://code.wireshark.org/review/37569
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-06-28 08:16:47 +00:00
Tomasz Moń 8557c94f87 FTDI MPSSE: Dissect Bad Command response payload
Undocumented data shitfing commands that operate in bitmode, MSB first,
and have both Write TMS and Read TDO bits set, do not seem to consume
the data payload. Do not dissect the data byte for these commands.

Treat MCU Host mode commands as Bad Command when in MPSSE mode. MCU Host
mode commands are recognized only in MCU Host mode. Add preliminary
support for MCU Host mode dissection.

Ping-Bug: 11743
Change-Id: I3046aab92f69e2e141cb5a23c68e844b24b6c2ca
Reviewed-on: https://code.wireshark.org/review/37566
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-06-27 19:29:44 +00:00
Vadim Yanitskiy d933a98f89 A-bis/RSL: fix wrong parent tree in dissect_rsl_ie_cause()
Cause specific fields belong to the 'Cause IE', so they should be
correctly displayed in the tree hierarchy.

Before this change:

    0111 111. = Message discriminator: ip.access Vendor Specific messages (63)
    .... ...0 = T bit: Not considered transparent by BTS
    .111 0110 = Message type: ip.access DLCX INDication (0x76)
    Channel number IE
        Element identifier: Channel Number (0x01)
        0000 1... = C-bits: Bm + ACCH (1)
        .... .010 = Time slot number (TN): 2
    Cause IE
        Element identifier: Cause (0x1a)
        Length: 1
    0... .... = Extension: No Extension
    .000 .... = Class: Normal event (0)
    .000 1111 = Cause Value: normal event, unspecified (15)

After:

    0111 111. = Message discriminator: ip.access Vendor Specific messages (63)
    .... ...0 = T bit: Not considered transparent by BTS
    .111 0110 = Message type: ip.access DLCX INDication (0x76)
    Channel number IE
        Element identifier: Channel Number (0x01)
        0000 1... = C-bits: Bm + ACCH (1)
        .... .010 = Time slot number (TN): 2
    Cause IE
        Element identifier: Cause (0x1a)
        Length: 1
        0... .... = Extension: No Extension
        .000 .... = Class: Normal event (0)
        .000 1111 = Cause Value: normal event, unspecified (15)

Change-Id: I9dc3a35dff19fc824b69f66ef137f0346247af3a
Signed-off-by: Vadim Yanitskiy <vyanitskiy@sysmocom.de>
Reviewed-on: https://code.wireshark.org/review/37565
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-27 19:29:24 +00:00
Stig Bjørlykke 2dcf32bc9c coap: Mark private and vendor-specific options as unknown
Any private or vendor-specific options are not invalid, so mark them
as unknown. Move expert info to option entry. Add the unknown option
number to the item.

Change-Id: I567c397787d4afddffdca407a8c2e39db828ab83
Reviewed-on: https://code.wireshark.org/review/37562
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-27 13:48:16 +00:00
Pascal Quantin 38bda830d3 NAS 5GS: fix dissection of S1 mode to N1 mode NAS transparent container
Change-Id: Iaf5100fb2f25c0c745a0609de1a639a6bda00ffd
Reviewed-on: https://code.wireshark.org/review/37563
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-06-26 22:01:05 +00:00
Phan Duc Nhat Minh 5654dfd982 Optimize heuristic search by bubbling the matched element
The matched entry is bubbled to the head of the list for
faster future search.

Change-Id: I47375515f43387adbe0652556c03f0979a8dbe85
Reviewed-on: https://code.wireshark.org/review/37395
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-06-25 17:17:20 +00:00
rbroker 1f75d7b3b9 wslua: Add ability to query current temporary color filter text
The LUA API provides the "set_color_filter_slot" function, but without
a corresponding "get_" function, it's very hard for two LUA dissectors
to co-exist without one overwriting any color filters set by the other.

It also looks like the documentation comment for
"set_color_filter_slot" had an off-by-one error, which I've corrected
as I was adding almost identical documentation for the new API.

Change-Id: Ic54d23be555ec12e1830bbe6f84a1b04d04fd4f0
Reviewed-on: https://code.wireshark.org/review/37511
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-25 08:02:27 +00:00
Filipe Laíns c7f74a94fb USB HID: skip re-saving report descriptors
Change-Id: Ia88cf08cd7d05222f65c626ad6b526015851b543
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Reviewed-on: https://code.wireshark.org/review/37558
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-25 06:12:17 +00:00
Filipe Laíns 7fadf3ac05 USB HID: fix saving the report descriptor body
Change-Id: I80b09d10e1435c90ac0c8534cc8e5e3ff0b4bda6
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Reviewed-on: https://code.wireshark.org/review/37557
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-25 06:11:40 +00:00
Filipe Laíns b7f282052c USB HID: fix USAGE definition name
This item is different from USAGE_PAGE, the correct name is USAGE.

Change-Id: I22552391dc564184e5abf14456a94d06a6e7a908
Signed-off-by: Filipe Laíns <lains@archlinux.org>
Reviewed-on: https://code.wireshark.org/review/37556
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-25 06:10:41 +00:00
Pascal Quantin a2afe9b255 NGAP: fix dissection of PWS messages exchanged in Namf interface
Change-Id: I1d810a0f7de6333938a88bd7616367a687d77e30
Reviewed-on: https://code.wireshark.org/review/37554
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-24 11:51:04 +00:00
Uli Heilmeier 006a7f5115 BGP: Use VNI when VXLAN/VXLAN-GPE encapsulation is specified
RFC8365 and draft-ietf-idr-tunnel-encaps-15 defines to use the
MPLS Label field to carry the VNI in the presence of a Tunnel
Encapsulation Extended Community specifying the use of a VNI.

This is the case for VXLAN and VXLAN-GPE tunnel types.

Bug: 16643
Change-Id: I4ffc8b024c2102b7fab4d7cb3dd1a5d69c569c12
Reviewed-on: https://code.wireshark.org/review/37551
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-24 10:46:39 +00:00
Pascal Quantin 2471ae1e0e CMake: update a comment regarding Libgcrypt requirement for LTE PDCP
Change-Id: Ib8c7d9a1fcee41444588eca94decfe09ee7b3630
Reviewed-on: https://code.wireshark.org/review/37553
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-06-24 07:09:53 +00:00
Peter Wu dc023ad68a CMake: warn for older Libgcrypt version
Libgcrypt enables decryption for so many protocols, be sure to warn
users when their Wireshark build is constrained due to an old version.
Previously a user on Ubuntu 16.04 was surprised that QUIC decryption did
not work even though the "minimum required" version was satisfied:

    Found GCRYPT: /usr/lib/x86_64-linux-gnu/libgcrypt.so (found suitable
    version "1.6.4", minimum required is "1.4.2")

Change-Id: Ief927b8892a6be9f994bdc65619a1236ca2f4fa7
Reviewed-on: https://code.wireshark.org/review/37552
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-24 04:17:10 +00:00
Uli Heilmeier 4b2cecc2de TCP: show relative numbers only when tcp_analyze_seq is enabled
Relative sequence numbers work only with tcp.analyze_sequence_numbers
is enabled. Therefore we should also show relative seq numbers only
when both options are enabled.

Expert info for TFO works also only when tcp_analyze_seq is enabled.

Bug: 16604
Change-Id: I0a535c3c8b07a7a7d2c42761df49b5e8ac5b7563
Reviewed-on: https://code.wireshark.org/review/37469
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-23 11:47:36 +00:00
Nardi Ivan c914bdd4ef f5ethtrailer: avoid throwing a "Malformed Packet" exception
Bug: 16645
Change-Id: I378c2acb77cd4663d6c517603aaf09023257d292
Reviewed-on: https://code.wireshark.org/review/37535
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-23 11:47:18 +00:00
Jaap Keuter cac1426dd6 BGP: MP_REACH_NLRI dissect Next hop network address for EVPN
Add EVPN to the set of SAFI's of the L2VPN AFI to dissect the
Net hop network address for.

Bug: 16644
Change-Id: Ib335e765907d72945a5e58e6e992f84b92f9f261
Reviewed-on: https://code.wireshark.org/review/37536
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-22 15:43:53 +00:00
Alexis La Goutte ba1777cb6e ieee80211: update status code (from 802.11REVmd May 2020)
Change-Id: Ica4e3c1651bda5dbc7b4d77140520ac4db91b792
Reviewed-on: https://code.wireshark.org/review/37538
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-22 15:43:18 +00:00
Guy Harris c3d5ddc557 sysdig-event: fix the type of elements of an array of pointers to hf_ values.
"int * const a[]" means "array of const pointers to (non-const) int". so
the array elements are all const; "const int *a[]" means "array of
(non-const) pointrs to const int".

Change-Id: I0571fde7704570b60c9cbd5d94826365ff35abe0
Reviewed-on: https://code.wireshark.org/review/37546
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-06-22 09:12:58 +00:00
Guy Harris 74d7c3d14f RTPS: set the "we have an entity ID" flag whenever the entity ID is set.
Also, remove a comment leftover from an earlier uncommitted version of
these changes.

Change-Id: I0990a186bc280e11a6d0fda05748f5871fb227f1
Reviewed-on: https://code.wireshark.org/review/37542
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-06-21 23:15:33 +00:00
Guy Harris f97e20a011 RTPS: don't use incompletely filled in GUIDs.
Add to the GUID type a bitmask that indicates which fields have been
filled in; start it out as 0, and then set bits in it as fields get
filled in.

Do not add a type mapping object to the hash table unless the GUID is
completely filled in, and don't look for a type mapping object in the
hash table with a GUID that hasn't been completely filled in as a key.

Bug: 16642
Change-Id: I31db92238adcb2ec2d70b2650e41b14d99001908
Reviewed-on: https://code.wireshark.org/review/37537
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-06-21 19:33:19 +00:00
Gerald Combs 4f1276b5fe WSDG: Update the Code Requirements section.
Update the text in the Code Requirements section. Switch to a
description list. Add a list of allowed licenses.

Change-Id: Ic9bf88bee7122684f5e3b80185be37a7e4e7b011
Reviewed-on: https://code.wireshark.org/review/37417
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-21 15:26:14 +00:00
Alexis La Goutte 2a0a29c544 rtps: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang

Change-Id: Ieda68cc1518325c64c8862a77f16cee5de7def8b
Reviewed-on: https://code.wireshark.org/review/37519
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-21 15:23:44 +00:00
Eelco Chaudron d96e72ee2d pcapng: add support for new Enhanced Packet Block options
Add support to read/write the new EPB options, epb_packetid,
epb_queue and epb_verdict, from/to pcap files.

In addition, it updates the packet-frame dissector to dissect
these new fields.

More details on the options can be found in the PcapNG
specification: https://github.com/pcapng/pcapng

An application using these new fields can be found here:
  https://github.com/chaudron/xdp-tools/tree/dev/pcapngII/xdp-dump

Change-Id: I761b8114b437fe573dd2c750e35586ad88494938
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Reviewed-on: https://code.wireshark.org/review/37412
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-21 15:23:27 +00:00
Gerald Combs dad321fb0e [Automatic update for 2020-06-21]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: I951278c0a2fc5feb434c093c3ad5f94c651ba498
Reviewed-on: https://code.wireshark.org/review/37531
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-06-21 08:16:16 +00:00
Guy Harris 040cb0c9dd tools/generate-sysdig-event.py: fail if the URL fetch fails.
Call exit_msg(), not just print().

Change-Id: I3ca59b262285222e5f54045244b6eeaa31fa363e
Reviewed-on: https://code.wireshark.org/review/37530
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-06-21 04:59:20 +00:00
Guy Harris 9e1fbfb766 generate-sysdig-event.py: improve error reporting.
Catch particular exceptions and print a more detailed error.

Change-Id: Ied98c6d0bc0410eb8b9cb2a98f7264e980c2bb28
Reviewed-on: https://code.wireshark.org/review/37529
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-06-21 03:54:55 +00:00
Guy Harris 78a507b142 VRT: fix the type of elements of an array of pointers to hf_ values.
"int * const a[]" means "array of const pointers to (non-const) int". so
the array elements are all const; "const int *a[]" means "array of
(non-const) pointrs to const int".

Change-Id: I790f6ecb2d9616ff1ae9ca47364e1d5443e36ace
Reviewed-on: https://code.wireshark.org/review/37528
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-06-21 02:06:41 +00:00
Guy Harris 1d0f7c3a0c ICQ: fix the type of elements of an array of pointers to hf_ values.
"int * const a[]" means "array of const pointers to (non-const) int". so
the array elements are all const; "const int *a[]" means "array of
(non-const) pointrs to const int".

Change-Id: I2089ca390308da50d182f6bdad5be530f7e7cc71
Reviewed-on: https://code.wireshark.org/review/37527
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-06-20 23:18:09 +00:00
Guy Harris 5b885240b7 MAC-NR: get rid of an unnecessary level of indirection.
Don't take the address of an hf_ field and then, in the called routine,
dereference the pointer; just pass the hf_ field value.  In the cases
where we're passing a member of an array of pointers, dereference the
pointer at the call site.

Change-Id: I022ce46c196621088e093f9a43d57b4653c957f7
Reviewed-on: https://code.wireshark.org/review/37526
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-06-20 22:13:56 +00:00