Commit Graph

42518 Commits

Author SHA1 Message Date
Joerg Mayer e4746392c7 lldp: Extreme TLV 4 is ZTFv2 Fabric Connect and first byte is Capability
As ususal: Once you have pushed a commit about some reverse engineered stuff,
you find some docs that show your were wrong in some places.
2021-04-01 23:59:39 +02:00
Joerg Mayer 548290098a isis: Fix tlv 184 decoding error 2021-04-01 21:28:59 +00:00
Pascal Quantin 352b555b7c LTE RRC: upgrade dissector to v16.4.0 2021-04-01 20:01:52 +00:00
Pascal Quantin 348daa8d50 NR RRC: upgrade dissector to v16.4.1 2021-04-01 21:20:48 +02:00
John Thacker 3c4b6c94f2 DIAMETER: Dissect Access-Network-Information (AVP code 1263)
The Access-Network-Information AVP (AVP code 1263) is an instance of the
SIP P-header "P-Access-Network-Info". There is a dissection function for
P-Access-Network-Info in the SIP dissector, add it to the header and use
it for the DIAMETER AVP.
2021-04-01 14:15:38 +00:00
Joerg Mayer ec2c42723f osi/nlpid: Update Avaya proprietary NLPID 2021-04-01 15:45:38 +02:00
Joerg Mayer 8c7a1c0f39 ndp: Add Chassis type used in GNS3 image 2021-04-01 15:45:38 +02:00
Joerg Mayer 1845d71819 lldp: Add Extreme/Avaya Fabric Vendor specific sub-TLV decoding
- Add Vendor Code d8:84:66
- Add Vendor sub-TLV 4
2021-04-01 15:45:38 +02:00
Amit Cohen e100466798 packet-netlink-psample: Align enum ws_psample_attrs to kernel header
Psample attributes were reordered in kernel header include/uapi/linux/psample.h
as part of commit e43accba9b07 [1].

Align enum ws_psample_attrs to the new order and fit the related code.

[1]:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=e43accba9b071dcd106b5e7643b1b106a158cbb1

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
2021-04-01 12:24:52 +03:00
Martin Mathieson 7a261fb538 Make a couple of functions static. 2021-04-01 08:08:05 +00:00
John Thacker e44db606fa DIAMETER: Process BCD encoded IMEISV in User-Equipment-Info
Some example captures of DIAMETER show the IMEISV in User-Equipment-Info
being BCD encoded (as commonly seen in other protocols.) If the number
of octets used is 8, assume it is BCD encoded. If the number of octets
used is 16, assume it is ASCII. Otherwise, set an expert info for the
wrong length like the other types.

Use the defined constants to verify the lengths of the MAC, EUI64, and
MODIFIED_EUI64 types. Correct the length of the Modified EUI64 type,
as it is also 8 bytes, the same as EUI64 (there must have been confusion
with IPv6 addresses, which contain a Modified EUI64 in their 8 least
significant bytes.)
2021-04-01 07:28:21 +00:00
Richard Sharpe 67f072e9f5 ieee80211: Add further support for 802.11az D3 ranging parameters.
This adds the the ISTA Availability Window elemen, the RSTA Availability
Window element and the Secure LTF Parameters element, as well as the
TB Specific Subelement.

Change-Id: Iaa6517c6dcd4fafc7d588cb69d71ad4b968f1b5a
2021-04-01 02:34:49 +00:00
Roman-Koshelev f4d0273a15 TFTP: Added tftp heuristic dissector
We know enough about a TFTP request to distinguish it from others
with a high degree of probability.
2021-03-31 19:41:50 +00:00
Roman-Koshelev 60509540b9 TFTP: strengthen heuristic for RRQ/WRQ
Added mode check for RFC 1350 compliance
2021-03-31 19:41:50 +00:00
Roman-Koshelev 966347c441 TFTP: Added conversation dissector check
To avoid reacting to other people's conversations (e.g. udp)
2021-03-31 19:41:50 +00:00
Uli Heilmeier 81d1c8dbc8 PCEP: Updating some IANA defined types/codes
Update some types and codes as defined at
https://www.iana.org/assignments/pcep/pcep.xhtml
2021-03-31 16:40:56 +00:00
John Thacker 68ba60774f Prettify and standardize LAC, RAC, SAC, TAC in several ASN.1 dissectors
The LAC, RAC, SAC, and TAC tend to be defined in ASN.1 as OCTET STRINGS
of lengths 1, 2, or 3. It generally makes sense to dissect them as
FT_UINT[8,16,24], as appropriate, with BASE_DEC_HEX instead of as FT_BYTES,
so standardize on that.  See commit d6f91a7ca4
for similar work for S1AP.
2021-03-30 21:48:00 -04:00
Richard Sharpe f29563b860 ieee80211: Add support for PASN Authentication frames.
This conforms more to D3 of 802.11az and I cleaned up the handling of
authentication frames. I also reworked the handling of PASN parameters
since they were not quite right.

Change-Id: I5356561da0fec223090f4c2e9f32de7b920693cb
2021-03-31 00:09:45 +00:00
Guy Harris 94bb564996 conversation: use the Wayback Machine for a URL.
That's now a dead link; use the Wayback Machine to get at it.
2021-03-30 14:46:34 -07:00
Cristian Sava b06a3c5eb8 NAS 5GS: Fix dissection of EAP Message in PDU Session Authentication Result. 2021-03-30 18:39:03 +03:00
Constantine Gavrilov cf827f248d NVMe: Decode all fields of Identify Controller Reply.
Closes #17282.
2021-03-30 12:11:46 +00:00
Vadim Yanitskiy e43058ca59 A-bis/OML: Improve dissection of ip.access specific IEs 2021-03-30 07:56:41 +00:00
Joerg Mayer 22b2d8e1fc isis: TLV 147 is not proprietary, it's MAC Reachablity from RFC 6165 2021-03-30 06:22:59 +00:00
Joerg Mayer a60cde8eb0 isis: Updates to Avaya proprietary TLV 184 decoding
- Add TLV 184 sub TLV 1: IPv4 Metric Type
- Fix hexpane length of unknown sub TLVs
2021-03-30 06:22:59 +00:00
Peter Lemenkov a9c119a6a6 RTPproxy: typo
Change-Id: Ie9647f74bae0bc6777c7394a23dd125f5ca4ecc9
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2021-03-29 20:59:46 +00:00
Peter Lemenkov c0249887af RTPproxy: update list of errors
RTPproxy: update list of errors according to commit
sippy/rtpproxy@b9d7b4ced2.

Change-Id: I885edb02a7e74240627d68ece5c1d12d45081048
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2021-03-29 20:59:46 +00:00
Mikael Kanstrup d08fa84025 ieee80211: Dissect decrypted FT BSS Transition GTK subelem
The GTK key provided in FT BSS Transition IE is encrypted. Update
dot11decrypt engine to return the decrypted key for dissection.

Change-Id: Id31a8cf77e12568f2e449470822a64792895673c
2021-03-29 11:18:38 +00:00
Michał Kaźmierowski 1f9ff3f547 OER: parse extensions in SEQUENCE and CHOICE definitions 2021-03-29 10:56:38 +00:00
Martin Mathieson 678914ca0b Fix some item lengths.
As seen by tools/check_type_item_lengths.py
2021-03-29 05:30:27 +00:00
Guy Harris 2ba52cdc0e tvbuff_subset: fix its implementation of string scanning.
Both subset_find_guint8() and subset_pbrk_guint8() pass the parent
tvbuff to tvb_find_guint8()/tvb_ws_mempbrk_pattern_guint8(), along with
the offset in that tvbuff.

That means that the offset they get back is relative to that tvbuff, so
it must be adjusted to be relative to the tvbuff *they* were handed.

For subsets of frame and "real data" tvbuffs, there's a single lump of
data containing the content of the subset tvbuff, so they go through the
"fast path" and get the offset correct, bypassing the broken code;
that's the vast majority of calls to those routines.

For subsets of *composite* tvbuffs, however, they don't go through the
"fast path", and this bug shows up.

This causes both crashes and misdissection of HTTP if the link-layer is
PPP with Van Jacobson compression, as the decompression uses composite
tvbuffs.

Fixes #17254 and its many soon-to-be-duplicates.
2021-03-29 01:02:47 +00:00
Preston Hunt 5595cfb3e5 IEEE 802.11: Add dissection of PASN Parameters
Adds dissection of the Pre-Association Security Negotiation (PASN)
Parameters element.
2021-03-28 07:21:00 -07:00
Preston Hunt 00bf70e446 IEEE 802.11: add AKMs 19 and 20
Adds 19, FT using PSK (SHA384), and 20, PSK (SHA384), both defined in
802.11-2020.
2021-03-28 11:23:44 +00:00
Martin Mathieson eaf6554aa1 ISIS-LSP: Fix length of a field.
SID/Label Binding TLV Range field is 2 bytes.
2021-03-28 06:05:15 +00:00
Guy Harris cda18f951e wslua_tvb: correctly trim off the end of a tvbuff.
The length specified in a TvbRange is the *actual packet length*, not
the *sliced-to* length, so use tvb_new_subset_length() to cut it short.

This fixes the fix for #15655, and addresses at least some of the issues
in #17255.
2021-03-27 19:31:37 -07:00
Tomasz Moń 5bbfee2ed8 protobuf: fix leaking tokens
Move scanner destroy call to pbl_clear_state() so it is freed if
parsing fails.

This eliminates most of leaked memory reported in #17305.
2021-03-27 17:23:07 +00:00
Jirka Novak e75e1fb580 Follow SIP Call: Added Follow SIP Call to Follow menu
Changes:
- epan/follow.c: follow_conv_filter_func has new parameter
  epan_dissect_t *edt, so filter can be generated based on decoded tree
of packet below the cursor
- menu Follow/SIP Call is enabled when sip packet is selected
- value of sip.Call-ID is used as filter for SIP call
- for sharkd it generates filter just 'sip.Call-ID' with no value
2021-03-27 09:02:14 +00:00
Tomasz Moń 525006f97b protobuf: free memory used by scanner after parsing
Closes #17305
2021-03-26 15:47:28 +01:00
Daniel Dulaney 62af671bf3 Lua: add DissectorTable.try_heuristics() function
Add DissectorTable.try_heuristics(name, tvb, pinfo, tree). Previously,
there was no way for a Lua plugin to run an existing heuristic
dissector.

Based on Gerrit change 18718. Closes #17220.
2021-03-26 07:15:16 +00:00
Joakim Andersson 880edd9009 nordic_ble: Update display name of nordic_ble dissectors
Update display name of the nordic_ble dissector to the release used
by nordic semiconductor for the development tool on the homepage.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-03-25 22:10:11 +00:00
Joerg Mayer 72a6e814bb isis: Support for proprietary Avaya/Extremenetworks Fabric TLVs/NLIPD
- TLV 129 NLPID decoding cleanup with multiple NLPIDs
- NLPID 0x8f added (Avaya proprietary)
- TLV 147 decoding added (Avaya proprietary)
- TLV 184 Avaya prorietary IPVPN decoding added
- TLV Types 185-186 Avaya proprietary IPVPN MC added without decoding
2021-03-25 17:17:25 +01:00
Eugene Adell 2484ad2f72 TCP: SEQ analysis precedence preference
Introduce a new TCP preference to allow the user to choose the
precedence between Fast Retransmission or Out-Of-Order. When
performing the SEQ analysis, ambiguous packets will be considered
with the chosen priority, helping in the final interpretation.
Closes #15987
2021-03-25 13:29:38 +01:00
Dr. Lars Völker df46a52174 NEW: Dissector for signal PDUs
This patch adds a dissector for PDUs based on signals. On CAN,
FlexRay, etc. data is transported in PDUs that are based on
signals. These signals are typically an arbitrary number of bits.

This dissector allows:
- Parsing configured signals (shortened datatypes too)
- Scaling and moving signals values (compu scale)
- Naming signal values (compu consts)
- Filtering on the scaled and raw value

The dissector supports:
- Signal PDUs over CAN
- Signal PDUs over FlexRay
- Signal PDUs over SOME/IP
- Signal PDUs over PDU-Transport
2021-03-25 10:53:57 +00:00
Martin Mathieson 93e96885c5 GSVP: fix a typo
"interleaving"
2021-03-25 10:26:36 +00:00
Dario Lombardo ea929d6401 wsutils: add local implementation of g_memdup2.
g_memdup() was deprecated and replaced with g_memdup2() in GLib 2.68,
we provide our own copy of g_memdup2() for older GLib versions.
2021-03-25 09:38:10 +00:00
Roman-Koshelev ecad065809 Add FIND dissector 2021-03-25 07:00:32 +00:00
Stefan Battmer bedd1a8aee gvsp, u3v: GenDC endianess fixes and new pixel formats
- gvsp: Fixed some GenDC container header related endianess bugs
        (flipped bits in dissector)
- gvsp: Added support for GenDC meta-data decoding
- gvsp, u3v: Added support for all newly defined pixel formats
- its: Removed redundant code (possible search and replace error)
2021-03-25 06:45:20 +00:00
Roman-Koshelev 815024346a TFTP: dissect_tftp fix
Now we ignore random packets and also correctly recognize server
responses in cases where the client uses the same port numbers as
the server for its TFTP or other conversations
2021-03-25 06:28:29 +00:00
Roman-Koshelev 0304d5ec27 TFTP: strengthen heuristic for RRQ/WRQ 2021-03-25 06:28:29 +00:00
Roman-Koshelev 5e2080131d TFTP: heuristic fix for RRQ/WRQ
Before that, it worked incorrectly for all valid RRQ/WRQ
2021-03-25 06:28:29 +00:00
João Valverde 291a8b8bc1 Replace g_assert(FALSE) with g_assert_not_reached() 2021-03-24 22:24:37 +00:00
Ranjeet Kumar Singh ebf670692a Protobuf: Allow all protobuf fields to have a plugin dissector 2021-03-24 21:39:01 +00:00
ranjetsih 11f933b446 Protobuf: Provide an option to add plugin subdissectore for fields of all types
As of now a plugin subdissector can register itself for byte or string type only.
This change adds an option to allow a plugin to register a subdissector for any protbuf field.
this subdissector will be able to dissect a protobuf field on top of the existing dissector for that field.
2021-03-24 21:39:01 +00:00
ranjetsih 387ebc955f Protobuf: Provide an option to add plugin subdissectore for fields of all types
As of now a plugin subdissector can register itself for byte or string type only.
This change adds an option to allow a plugin to register a subdissector for any protbuf field.
this subdissector will be able to dissect a protobuf field on top of the existing dissector for that field.
2021-03-24 21:39:01 +00:00
Caleb Chiu 4b1dad3f2e USB HID: Removed codes of repeated dissection
For class-specified HID request with data fragment, the original codes perform repeated dissection.
For example, the SET REPORT REQUEST 21 09 02 02 03 00 02 00 02 00 would be dissected as:
Setup Data
    bmRequestType: 0x21
        0... .... = Direction: Host-to-device
        .01. .... = Type: Class (0x1)
        ...0 0001 = Recipient: Interface (0x01)
    bRequest: SET_REPORT (0x09)
    wValue: 0x0202
        ReportID: 2
        ReportType: Output (2)
    wIndex: 3
    wLength: 2
    bRequest: 9
    wValue: 0x0202
    wIndex: 3 (0x0003)
    wLength: 2
    Data Fragment: 0200

And dissected as below after the codes removed:
Setup Data
    bmRequestType: 0x21
        0... .... = Direction: Host-to-device
        .01. .... = Type: Class (0x1)
        ...0 0001 = Recipient: Interface (0x01)
    bRequest: SET_REPORT (0x09)
    wValue: 0x0202
        ReportID: 2
        ReportType: Output (2)
    wIndex: 3
    wLength: 2
    Data Fragment: 0200
2021-03-24 18:46:45 +00:00
Uli Heilmeier 2e6d3b571b LDAP: SASL Buffer doesn't include Length field
SASL Buffer starts after the SASL Buffer Length field. Therefore
we should only mark the bytes without the Length field.

Sample capture can be found in wireshark/wireshark#15128
2021-03-24 08:28:20 +00:00
Uli Heilmeier 337bdf8eb3 DNS: Fix pointer for is_multiple_responses
As discussed in wireshark/wireshark!2497 there is no need
for a pointer to a pointer.
2021-03-23 12:32:42 +01:00
ranjetsih 5177437f30 "GTP: add option to decode T-PDU Data with a plugin dissector"
As of now GTP dissector provides option to decode T-PDU data ether, async, and with some heuristics.

But there is no option present to decode a new protocol with a plugin.

This change adds an option to decode T-PDU data with a plugin, to help develop and test new protocols that are
encapsulated as GTP T-PDU data.
2021-03-23 08:02:43 +00:00
Nardi Ivan e677a909e1 SMB2: fix two memory leaks
* Since c3342930 we don't free anymore the entries in the files hashtables.
The cleanest solution is probably to convert these hashtables into two
wmem_map_t structures and let the wmem core handling any cleanup.

* b0f5b2c174 added supported for chained compression; the uncompressed
tvb must be freed
2021-03-23 07:32:23 +00:00
Joerg Mayer 2af7f913b8 packet-isis-snp.c: Add source-id-circuit to dissection 2021-03-23 08:06:26 +01:00
Guy Harris a7082e33ff psample: fix formatting of 64-bit integers.
guint64 is *not* guaranteed to be an unsigned long int; on an ILP32
platform, it *can't* be a long, as that's only 32 bits.  Use
G_GUINT64_FORMAT to format guint64 values.
2021-03-22 12:59:55 -07:00
Amit Cohen 146578889e packet-netlink-psample: Add dissector for psample netlink packets
The Linux kernel includes a module called psample which sends sampled
packets to user-space over generic netlink.

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 and
net_dm dissectors. The sampled packet itself is encoded in the netlink
attribute 'PSAMPLE_ATTR_DATA' and dissected by invoking a dissector from the
'sll.ltype' dissector table based on the packet's protocol which is
encoded in the 'PSAMPLE_ATTR_PROTO' attribute.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
2021-03-22 13:39:36 +00:00
Jirka Novak 3693dd52cc rtp: addedd extended sequence number and timestamp
Extended sequence number added to info structures.
Extended timestamp (from 32 to 64 bit) calculation added and added to
info structures.
Both values simpifies calculations in rest of the code - we don't have
to care about wraparound. Code will be adapted later.
2021-03-22 11:21:15 +01:00
Tomasz Moń 9a3bb60266 IPPUSB: Do not assume every USB traffic is IPPUSB
It is invalid to assume that every unknown and/or vendor specific
traffic is IPPUSB. If a vendor specific class is indeed IPPUSB then
the dissector should be selected based on VID/PID.

The way IPPUSB was registering caused packets from devices without
corresponding dissector in Wireshark (majority of the devices in the
wild) being dissected as IPPUSB and shown as Malformed Packets. For
example the Silicon Labs CP210x UART Bridge was dissected as IPPUSB.
2021-03-22 08:39:19 +00:00
Guy Harris fdbe68e3f0 ftypes: an fvalue_t can no longer have a GRegex.
Now that FT_PCRE is gone, a GRegex is not a valid value for a field.  (A
field can be a *string* field whose value is supposed to be a PCRE, but
that's just FT_STRING/FT_STRINGZ/FT_STRINGZPAD/FT_STRINGZTRUNC, and the
value is the string text.)
2021-03-21 20:53:34 +00:00
Pascal Quantin 09707973a9 NR RRC: use _ instead of - in filter names
Like what asn2wrs.py does
2021-03-21 19:31:53 +00:00
Pascal Quantin c5c6a5a9cc LTE RRC: use _ instead of - in filter names
Like what asn2wrs.py does
2021-03-21 18:46:53 +00:00
Pascal Quantin f6b0ff72e7 XnAP: use _ instead of - in filter names
Like what asn2wrs.py does
2021-03-21 17:52:50 +00:00
Pascal Quantin 9df7492627 S1AP: have a single filter for ENB-UE-S1AP-ID or MME-UE-S1AP-ID fields 2021-03-21 17:28:31 +00:00
Eugene Adell 439ecf98b6 TCP: Obvious Spurious Retransmissions are not always detected
In rare circumstances Spurious Retransmissions are not detected
and the SEQ analysis would instead conclude with a Fast Retransmit
or an Out-Of-Order. As Spurious Retransmissions are more certain
than the latter ones, their respective precedences are changed.
The documentation is updated accordingly. Closes #13863.
2021-03-21 16:56:43 +00:00
Pascal Quantin 51cf733fc6 NGAP: have a single filter for RAN-UE-NGAP-ID or AMF-UE-NGAP-ID fields
Closes #17304

While in the area, replace - by _ in the other renamed filters as this
is what asn2wrs.py does.
2021-03-21 16:39:49 +00:00
Pascal Quantin 048a28e3bc IEEE80211: use G_GUINT64_CONSTANT instead of %ULL
As suggested in doc/README.developer
2021-03-21 17:19:05 +01:00
Pascal Quantin f81572ac09 IEEE80211: remove a shadowed variable 2021-03-21 17:08:43 +01:00
Pascal Quantin 66f35c7130 IEEE80211: squelsh a MSVC warning 2021-03-21 17:05:56 +01:00
Preston Hunt 1abe8cc3ce IEEE 802.11: add FTM ranging NTB-specific
Adds dissection of the non-trigger-based-specific subelement of the FTM
ranging parameters element.
2021-03-21 14:20:39 +00:00
Uli Heilmeier 07fb47111e DNS: IXFR/AXFR queries with multiple responses
IXFR and AXFR queries can have multiple DNS responses. As all responses
belong to one transaction, they have the same transaction ID.

We shouldn't handle them as retransmits.

Fix: wireshark/wireshark#17293
2021-03-21 14:02:27 +00:00
Nardi Ivan 90d9eb2062 TLS: another fix for Google-QUIC-Version Transport Parameters
The TP sent (encrypted) by the server is different from the one sent by
the client.
See: https://quiche.googlesource.com/quiche/+/refs/heads/master/quic/core/crypto/transport_parameters.cc

Fix: 8bcf6783a5
2021-03-21 13:29:29 +00:00
Guy Harris b61fd6d76a dfilter, ftypes: get rid of FT_PCRE.
It's not a valid field type, it's only a hack to support regular
expression matching in packet-matching expressions.

Instead, in the packet-matching code, have a separate syntax tree type
for Perl-compatible regular expressions, and a separate instruction to
load one into a register, and have the "matching" operator for field
types take a GRegex * as the second argument.
2021-03-21 03:27:44 -07:00
Guy Harris ce611792c3 dfilter: clean up indentation. 2021-03-21 02:15:00 -07:00
John Thacker de374722e8 TCP, HTTP: Fix reassembly of odd corner case of HTTP responses
RFC 7230 Section 3.3.3 case 7 allows a (discouraged) behavior
for HTTP responses of desegmenting until connection FIN when the
Content-Length is not given.
(See commit 69e50be150 for details.)

There is an even rarer subcase not currently handled- if the headers
are split aross multiple segments, then we won't know we need to
desegment until FIN until after than the first segment.

In such a case, msp->nxtpdu still needs to get set to some appropriately
large offset, since it didn't happen when processing the first segment.
2021-03-21 08:13:38 +00:00
Thomas Dreibholz a9a476f855
SCTP dissector improvements
* Added a hint when SCTP association indexing is disabled (Closes: #17268)
* Added missing space in labels
2021-03-20 19:54:55 +01:00
João Valverde 9b3afa0278 Rewrite wmem_strbuf_append_vprintf() using vsnprintf() 2021-03-20 14:23:19 +00:00
João Valverde 392299d9ff wmem_test: Replace some assertions with equivalents 2021-03-20 14:23:19 +00:00
Roman-Koshelev b18bb58a95 json: add application/x-ndjson to the media types handled. 2021-03-20 13:54:20 +03:00
Guy Harris be000686de prefs: use g_error() to report certan errors.
Other errors use g_error(); use it for these errors, so the message is
more meaningful.
2021-03-20 01:33:44 -07:00
Guy Harris 9f04392c0f frame, tcp: don't g_assert while in the middle of dissecting.
Use DISSECTOR_ASSERT calls instead, so that *shark doesn't crash, it
just puts a complaint into the protocol tree.
2021-03-20 00:50:07 -07:00
Guy Harris 6ffbbcefa3 libwireshark: don't allow fields of type FT_PCRE to be registered.
It's a fake "field" type, used only for "field" values in
packet-matching expressions to do regular-expression matching.  There is
*no* reason to allow fields of that type.

Don't bother checking the representation type when generating the string
representation of a field value.  If a developer manages to get past all
the tests for FT_PCRE to register and add an instance of that field to
the protocol tree, either 1) the one and only string representation of
an FT_PCRE value is what they want, in which case, whatever, or 2) it's
*not* what they want, in which case, if they file a bug, ask a question
on a mailing list, or ask a question on the Q&A site, we can explain to
them that what they're doing is bogus.
2021-03-20 00:02:51 -07:00
John Thacker 54c30c8336 TCP: Handle sequence number wraparound in multisegment pdus
msp->nxtpdu might wrap around (particularly if DESEGMENT_UNTIL_FIN
is set), so use the wrap around aware sequence number comparisons
when seeing if seq is in the interval [msp->seq, msp->nextpdu).
Note that with wraparound, we have to take the minimum after subtracting
to get the length desired.
2021-03-19 08:25:23 +00:00
Grzegorz Niemirowski d025bdca05 Dissection of Abort packet and characters number in Authorization 2021-03-18 23:58:07 +01:00
Vojtěch Svědiroh 90da092772 MNDP: Add TLV 17 (IPv4 Address) 2021-03-18 10:48:47 +00:00
Nardi Ivan 6cdfc087c5 TLS: add support for brotli-compressed certificates 2021-03-17 20:10:08 +00:00
David Perry 02a4d41c10 Fix typo in packet-exported_pdu.c
The hidden entry for `ipv6.addr` was mistakenly being generated as
`ipv6.src` instead.
2021-03-17 14:48:37 +00:00
Anders Broman f5fb60cfdd GTP: Fix the version check in decode_qos_umts() 2021-03-17 10:34:30 +00:00
Preston Hunt eda6acb63b 802.11: add dissection of FTM Ranging Parameters 2021-03-17 10:18:26 +00:00
ranjetsih 83165d0107 PFCP: Add missing dissection of ipv6 pd address in UE IP Address
Dissection of UE IP Address was incomplete with missing ipv6 pd address field. This is added by this change.
refer https://gitlab.com/wireshark/wireshark/-/issues/17300 for more details of the issue.
2021-03-17 13:49:22 +05:30
Alexis La Goutte eee8476acd tls(-utils): Add value from RFC 8998 2021-03-17 07:23:36 +00:00
Guy Harris 7efb2120bc kerberos: regenerate packet-kerberos.h.
We updated the template; regenerate the header.
2021-03-16 14:57:30 -07:00
Guy Harris 2820156fbd Move still *more* headers outside of extern "C".
If a header declares a function, or anything else requiring the extern
"C" decoration, have it wrap the declaration itself; don't rely on the
header itself being included inside extern "C".
2021-03-16 13:50:13 -07:00
Pascal Quantin 205e77d404 ISAKMP: Pad Length field is 1 byte long 2021-03-16 15:28:30 +00:00
Mikael Kanstrup d3235c685b ieee80211: Support decrypting Fast BSS Transition with roaming
Support decrypting captures with Fast BSS Transition roaming present
by now also scanning (re)association frames for relevant information
elements and feeding it into the dot11decrypt engine.

Both (re)association request and response frames are scanned to allow
for potentially missing one frame and still be able to derive PTKs
needed for successful decryption.

Closes #17145

Change-Id: I08436582e4f83695dc606ddb92ff442d6258ef9b
2021-03-16 14:36:26 +00:00
Mikael Kanstrup da05e55c74 ieee80211: Display IGTK and GTK subelem key lengths in decimal form 2021-03-16 14:36:26 +00:00