Commit Graph

78789 Commits

Author SHA1 Message Date
Gerald Combs 2722082171 docbook: Fix wiki links.
Add a trailing slash to the wireshark-wiki-url macro. Fixes #16871.
2020-09-24 22:24:10 +00:00
João Valverde ca43dace10 IPv6: Update SRH dissection to RFC8754
Implements [1]. Some code was intentionally simplified from the previous draft
implementation, pending some real-world motivation.

[1]https://datatracker.ietf.org/doc/rfc8754/
2020-09-24 18:08:01 +00:00
Martin Mathieson fc64ba242a More dissector spelling fixes. 2020-09-24 16:40:51 +00:00
Martin Mathieson b00a76d36b SDAP: Add some long help, and fix filter name. 2020-09-24 16:16:33 +01:00
Pascal Quantin 04873cc5ef NAS EPS: fix dissection of IPv6 PDN address
Closes #16870
2020-09-24 11:30:19 +00:00
Tom Yan 68f59bd1f4 extract_asn1_from_spec.pl : update comments 2020-09-24 09:18:13 +00:00
Pascal Quantin b562109562 extract_asn1_from_spec.pl: fix export of X2AP, NGAP, XnAP, E1AP and F1AP
And remove S1AP as it does not use the ASN1START/ASN1STOP keywords.
2020-09-24 07:09:43 +00:00
Xu c92ab1158e MAC-NR:for drb the lcid range is 4-32,lcid=3 corresponding srb3 2020-09-24 05:58:53 +00:00
Tom Yan 71223de4a3 Add : extract asn from (36|38)\.413|(36|38).423|38\.463|38\.473) 2020-09-24 05:33:59 +00:00
Alex Nik a6393f24b6 a defining the Filter Macros procedure is added plus screenshot
minor fixes after review

minor fixes after SME review

reduced the ws-filter-macros.png screenshot size
2020-09-23 20:09:12 +00:00
Gerald Combs dcc8bbaf9b BLIP: Update an expert item.
Generalize the decompression error field name and description.
2020-09-23 12:44:30 -07:00
Jim Borden 4a94842710 BLIP: Fix decompression buffer bug
Until now, mistakenly, the buffer for decompressing compressed BLIP messages
has been statically allocated as 16 Kb, but that is not valid behavior.
16 Kb is the maximum size of a _compressed_ frame.  In theory, due to the
ability to zipbomb, there is virtually no upper bound on what the maximum
size of an uncompressed frame could be.  However, to keep sanity, it has
been made into a preference with a reasonable default that is not likely to
be exceeded (64 Kb).  The behavior before for this was that wireshark would
crash because the dissector would return NULL for a decompressed buffer due
to error and then try to deference it later.  A null check has been added,
so that the behavior is now that the packet will show
'<Error decompressing message>' instead, and log why it couldn't handle the
compressed message.  Closes #16866.
2020-09-23 19:36:10 +00:00
Alexis La Goutte b2380385a3 DHCP: Update Captive-Portal to RFC8910
now using code 114 (some conflict with code 160 and Polycom device)
2020-09-23 06:29:38 +00:00
Tom Yan 6387fd7729 X2AP : fix id-Target-SgNB-ID registered to wrong type 2020-09-23 05:55:21 +00:00
Gerald Combs 103d9140ae Kafka: Check returned offsets.
dissect_kafka_regular_bytes might return -1, so handle that in
dissect_kafka_message_old. Closes #16784.
2020-09-23 05:13:16 +00:00
Guy Harris 99f6ac1969 ncp: fix handling of NDS List requests and replies.
In requests:

There appear to be 2 bytes of unknown data (typically 0) after the
2-byte Request Flags field (are they just 2 bytes of additional flags?).
Skip past them before dissecting the iterator.

If there are no bytes remaining in the packet after the parent ID, stop
dissecting; some packets seem to stop there.  For those requests, assume
that the response will contain :

	entry ID;
	entry flags;
	subordinate count;
	modification time;
	base class;
	relative distinguished name;

although the last of those might be something else (it appears to be of
the form "CN={name}").

In replies:

For each returned entry, if the requested field flags in the request had
the DSI_OUTPUT_FIELDS bit set, fetch the returned field flags and use
that to determine what fields are present; otherwise, use the requested
field flags.
2020-09-22 19:57:52 -07:00
Gerald Combs d3c1f31439 Windows: Switch to Qt 5.15.1.
Switch the Windows GitLab runner and Buildbot builders to Qt 5.15.1. Qt
5.15 includes HiDPI and dark mode improvements that we might find
useful.
2020-09-22 16:35:55 -07:00
Guy Harris e487575362 ncp: fix setting elements of an ncp_record structure.
In dissect_nds_request():

Fill in fieds of the ncp_record structure only on the first pass; once
the first pass is complete, the structure's fully filled in.

That fixes cases where NDS replies aren't fully dissected because the
NDS verb isn't added to the ncp_record structure when the request is
dissected.

Fill in elements as soon as we have the value needed to fill it in, so
that it's filled in even if we throw an exception later, and so that
it's filled in only if we have the value in the packet, so that a valid
value isn't overwritten by a later packet that doesn't have the value.

This fixes cases where, in the second pass, NDS replies aren't fully
dissected because the NDS verb is overwritten in the ncp_record
structure when a continuation of the request is dissected.

Note that we should perhaps make the object_name field a pointer to a
wmem-allocated string, so that NULL can indicate "not set, hence not
known".
2020-09-22 10:47:43 -07:00
Alexis La Goutte 8201285759 EAP: Avoid to inscrement offset on proto_tree_add_item function 2020-09-22 11:20:09 +00:00
Tom Yan b746222896 X2AP : fix a typo 2020-09-22 10:26:00 +00:00
Ameya Deshpande 3ec16de87b USBLL: Code commenting and alignment
Following changes in the file:
1. Explain usbll_address_t and usbll_data_t.
2. Grouping header fields belonging to the same type of packets.
3. Removed unnecessary condition check for usbll_data pointer
   in dissect_usbll_data function.
4. Brief comments on the Macros.
5. Correct code indentation at a few places.

Signed-off-by: Ameya Deshpande <ameyanrd@outlook.com>
2020-09-22 07:30:11 +00:00
Gerald Combs ddd3910709 IPv6: Fix the bit lengths of top-level items.
Fix the bit lengths of the Version, Traffic Class, and Flow Label fields
so that they display correctly in the packet diagram.
2020-09-22 05:51:16 +00:00
Gerald Combs 1e2e32f8ab MySQL: Fixup connection data initialization.
Just use wmem_new0 instead of trying to initialize struct members
by hand. Closes #16854.
2020-09-22 05:32:52 +00:00
Gerald Combs 2b3e666a16 SSH: Fix some warnings.
Set a maximum key length and make sure we don't exceed it. Make sure
we're checking the prefixes of valid strings. Closes #16794.
2020-09-22 05:12:18 +00:00
Guy Harris af83d476dc ncp: add some XXX comments. 2020-09-21 23:20:33 +00:00
Gerald Combs 586121fad4 Shellcheck fixes.
Note that ChmodBPF requires a newer version of shellcheck. Fix an issue
found after upgrading to 0.7.1.
2020-09-21 22:09:13 +00:00
Guy Harris dde6261626 nds: use DSI_ #defines in case statement.
Use the DSI_ defines, rather than the raw hex values for bits, to make
it clearer what's being tested.

Make all of the DSI_ #defines, rather than just some of them, unsigned.
2020-09-21 14:27:15 -07:00
Aurelien Aptel 2af134ad2e SMB2: dissect new signing capability negotiate context
Dissect still-undocumented new context used by latest Windows Server
builds, as explained by MSFT engineers during SDC 2020 plugfest.
2020-09-21 22:06:16 +02:00
Mikael Kanstrup 2a3f9d2789 Add a few EAP dissectors 2020-09-21 15:05:05 +00:00
Basak Kalfa 91418775aa PROFINET: IOCS and IOData object dissection with Multi AR
when a new AR is established between devices which already
has another AR, same station_info was used and it caused wrong
dissection problem of IOCS and IOData objects of related AR.
In order to fix problem, new struct is added in order to match
station_info and corresponding ARs. New struct is used for
keeping ARUUID, related inputCR and outputCR frame IDs and
setup/release frame numbers of ARs. ARUUID's are used for
adding station_info data to their corresponding conversations.
If matching ARUUID and Frame IDs are found in RTC frame
dissection, then corresponding IOCS and IOData objects are
dissected.
2020-09-21 12:54:12 +00:00
Martin Kaiser 41e6b2f2ae ecmp: fix dissection of file_info request
Playing with the sample capture from bugzilla bug 10562, dissection of
packet 491 (ecmp file_info request) brought up an expert info about a
malformed packet.

The request contains a list of requested attributes. For each attribute,
only the attribute ID is part of the request. The current code tries to
dissect each attribute, this fails when we only have a list of
attribute IDs...

Add a subtree for the list of IDs (and the length of that list).

While at it, remove some unnecessary variable initializers.
2020-09-21 05:20:58 +00:00
Jeff Widman bf0a6c8bd9 typo: replaceing--> replacing 2020-09-20 15:07:21 -07:00
Guy Harris a734de58a6 ncp: put the information flags and entry flags in the right place.
Everything else is put into a subtree; put them in the subtree as well.
2020-09-20 14:34:55 -07:00
Nardi Ivan 1b0e691157 QUIC: add support for MVFST EXPERIMENTAL version 2020-09-20 19:05:09 +00:00
Nardi Ivan 51adcbf255 STUN: improve heuristic to detect TURN ChannelData
Commit 873d5980cd improved STUN heuristic to match TURN ChannelData messages.
It was based on the assumption that, looking at the "stun.type.method" field,
it should be trivial to determine if the current packet carries a TURN message
or not. However, at least one STUN/TURN implementation (Facetime) uses
unknown/custom TURN methods to set up a Channel Data. Fortunately, standard
TURN attributes are still used in the replies.
Improve such heuristic taking into account specific TURN attributes, too.
The list attributes have been taken from RFC5766.
2020-09-20 18:25:24 +00:00
Nardi Ivan 3c08f06be6 RTP, DTLS: add heuristic over CLASSICSTUN 2020-09-20 18:07:21 +00:00
Gerald Combs b870486ce6 [Automatic update for 2020-09-20]
Update manuf, services enterprise numbers, translations, and other items.
2020-09-20 17:02:15 +00:00
nickvsnetworking 9086af5e25 GSM-SIM - Added support for additional EFs, INS and ADFs 2020-09-20 19:42:52 +10:00
Martin Mathieson ae6bbff3d5 AMQP: fix the bitmask of an item.
I think this is right, but bit order from spec is confusing to me.
2020-09-20 06:20:40 +00:00
Martin Mathieson f0e7a98e96 NRUP: Add Assistance Information Data message.
Don't have a capture of this message type yet, so untested.
2020-09-19 20:58:38 +01:00
Martin Mathieson f962539374 check_typed_item_calls.py: Scan plugins folder too 2020-09-19 12:34:02 +00:00
Gerald Combs 59483604de macOS: Switch ChmodBPF to zsh.
Switch the ChmodBPF script to /bin/zsh since it

- Has known behavior, unlike /bin/sh, which execs whatever
  /private/var/select/sh points to.

- Supports 'read -n 0' and other nice features.

- Is unlikely to be deprecated, since it was made the default shell in
  Catalina[1].

- Exists in older macOS releases, unlike dash[2].

Closes #16826.

[1]https://support.apple.com/en-us/HT208050
[2]https://scriptingosx.com/2020/06/about-bash-zsh-sh-and-dash-in-macos-catalina-and-beyond/
2020-09-18 16:34:24 +00:00
Stig Bjørlykke 888a8178f5 lwm2mtlv: Create element items
Create hf entries for element items ObjectInstance, ResourceInstance,
ResourceArray and Resource.

Remove camel case for correlating ett variables.
2020-09-18 06:52:02 +00:00
Gerald Combs 211e375ef0 docbook: Update wiki and code review URLs.
Remove the Token Ring and SS7/E1/T1 entries from the FAQ. They've been
infrequently asked about for a very long time.
2020-09-17 22:07:11 +00:00
Gerald Combs 4a7be0aaa7 doc: Update wiki URLs in man pages. 2020-09-17 14:18:43 -07:00
Maxim Kropp 1f6bf70505 sample_size check readded 2020-09-17 19:55:52 +00:00
Maxim Kropp a1f6dc4fad New dissector: ILDA Digital Network (IDN) Protocol
Stream Specification: https://www.ilda.com/resources/StandardsDocs/ILDA_IDN-Stream_rev001.pdf

The stream specification only defines IDN messages. The other packet commands
like ping request, ping response, etc. (see line 25 - 31 in packet-idn.c)
are part of the hello specification which is not released yet. We were still
able to implement some hello packets since we received a preliminary version
of the hello specification, because we need the hello packets for our work.

related to #16707
2020-09-17 19:55:52 +00:00
Maxim Kropp e5921672f8 New dissector: ILDA Digital Network (IDN) Protocol
Stream Specification: https://www.ilda.com/resources/StandardsDocs/ILDA_IDN-Stream_rev001.pdf

The stream specification only defines IDN messages. The other packet commands
like ping request, ping response, etc. (see line 25 - 31 in packet-idn.c)
are part of the hello specification which is not released yet. We were still
able to implement some hello packets since we received a preliminary version
of the hello specification, because we need the hello packets for our work.

related to #16707
2020-09-17 19:55:52 +00:00
Gerald Combs 34f60a1cfc Test: Normalize the line endings everywhere.
Convert CRLF to LF in subprocess output everywhere, not just on Windows.
Note that we normalize output in the Developer's Guide.
2020-09-17 10:05:52 -07:00
Anders Broman 45188b673d Diameter make use of OctetStringOrUTF8
Use the new feature rather than coding it
2020-09-17 08:52:35 +02:00