Commit Graph

82675 Commits

Author SHA1 Message Date
Dr. Lars Völker 5b54bb2e0d MKA: MACsec SAK USE body length = 0 does not decode (BUGFIX) 2021-11-10 10:11:30 +00:00
frst 29d27153b2 FPP: Fix dissector preemption interface-id bug 2021-11-10 05:22:52 +00:00
John Thacker 41a6e505ee AVTP/IEEE1722: Fix offset when over UDP
Take into account the bytes for the sequence number when passing
the next tvb into the subdissectors. Fix #17389
2021-11-10 05:05:55 +00:00
João Valverde b62d4b8eca dfilter: Change string node display representation again
Adding double quotes to the display output format was probably a mistake.
2021-11-10 03:19:24 +00:00
João Valverde e7ecc9b9e5 dfilter: Clean up error format and exception code
Misc code cleanups. Add some extra stnode functions for increased type
safety. Fix a constness issue with df_lval_value().
2021-11-10 03:18:50 +00:00
João Valverde 63adcf7fb5 dfilter: Clean up function parameters semantic check 2021-11-10 02:12:06 +00:00
João Valverde d0a07881f4 dfilter: Remove unnecessary node conversion
This has never worked AFAICT because functions have never accepted
fvalues, only fields, so converting from unparsed to an fvalue
string is moot, they are both invalid argument types to functions.
2021-11-10 01:23:49 +00:00
João Valverde ac431ec855 dfilter: Remove some debug statements
Normalize the amount of debug code in the module.
2021-11-10 01:23:49 +00:00
João Valverde e965fa32a1 dfilter: Refactor some semantic check code
Try to reorganize the check_relation sub-functions for better
clarity and consistency and less duplication.
2021-11-10 01:23:29 +00:00
João Valverde cd7d06faaf dfilter: Add an assertion 2021-11-09 23:05:56 +00:00
Gerald Combs 1a1787d959 Epan: Reset our tap globals on cleanup.
Reset tap_listener_queue and tap_dissector_list in tap_cleanup() so that
other cleanup routines (e.g. tap dialog destructors) don't try to access
invalid memory. Fixes #17719.
2021-11-09 22:22:09 +00:00
João Valverde 237efe7b00 README.dissector: Reinforce a style recommendation. 2021-11-09 22:04:21 +00:00
João Valverde 5680d1ae0b wsutil: Improve bytes_to_str_max() API
Have these functions accept a zero max length to mean "display
the whole byte array". Change the max length parameter to receive a
number of bytes to print, not the length of the output character
string.

Adjust the macros bytes_to_str() and bytes_to_string_punct() to
produce the same output. Add more tests. Rename the functions to
bytes_to_str_maxlen() and bytes_to_str_punct_maxlen() because this is
an API break.
2021-11-09 20:57:05 +00:00
Filip Kågesson 82fd526e96 SHICP: Added dissector to support Secure Host IP Configuration Protocol.
A new dissector was added to support dissection of the SHICP protocol.
2021-11-09 19:49:58 +00:00
Gerald Combs 6ae87c7cf1 wslog: Add a NULL check.
Fixes Coverity CID 1485996.
2021-11-09 09:22:53 -08:00
Stig Bjørlykke f314b64fd0 Skinny: Fix arguments in parser
Remove a duplicated argument to fix a warning:

  Wrong number of arguments for string format.
  Format ptvcursor_add(cursor, hf_skinny_%s, 6, ENC_NA);
  takes 1, but 2 are provided.
2021-11-09 13:32:50 +00:00
Stig Bjørlykke ebb2df7a06 asn2wrs: Fix Type eth_type_default_body() arguments
Add tname as argument to Type eth_type_default_body() to fix a warning.

  Call to method Type.eth_type_default_body with too many arguments;
  should be no more than 1.
2021-11-09 13:17:39 +00:00
Tomasz Moń 5f50fad289 Qt: Fix epan cleanup exit crash
Do not keep epan_dissect_t instance hanging until FrameInformation
destructor is called. Simply copy the tvb data into local buffer and
cleanup epan_dissect_t instance as soon as possible.

Fixes #17590
2021-11-09 10:54:49 +00:00
Michael Tuexen d11c069786 BBLog: Fix support of TCP window scaling
Rcv.Wind.Shift and Snd.Wind.Shift were not displayed correctly by
the BBLog dissector and the TCP dissector was not using the
information about the shift values available in the BBLog file.
2021-11-08 23:05:20 +00:00
Gerald Combs e5eb17d414 UAT: Allow missing fields.
Add uat_set_default_values, which lets us provide default values for
fields that might be missing from the end of a UAT line. Set a default
value for the I/O Graph dialog's Y Axis Factor. Fixes the backward
compatibility issue described in #17623
2021-11-08 22:20:24 +00:00
Gerald Combs 846b17ee9a UAT: Allow extra fields.
If we encounter unexpected extra fields on a line, simply log a warning
and continue instead of returning an error. This allows forward
compatibility when we add a field to a UAT. We end up throwing away the
extra fields, but it's better than resetting the entire UAT. Fixes the
forward compatibility issue described in #17623.
2021-11-08 22:20:24 +00:00
Anders Broman 6e4e4ebd50 GSM-MAP: Dissect SM-DeliveryFailureCause variants
V1 version may omit SEQUENCE and have only the SM_EnumeratedDeliveryFailureCause element.
2021-11-08 16:12:23 +01:00
João Valverde 77da5163a6 Fix Debian symbols 2021-11-08 09:49:08 +00:00
João Valverde 4e399d6508 dfilter: Fix signature of check_relation()
check_relation() has the argument order swapped from every other
relation check, that's confusing.
2021-11-07 23:14:59 +00:00
João Valverde 2db36f8ce0 dfilter: Pass a test_op_t in check_relation() 2021-11-07 22:44:59 +00:00
João Valverde 69c850df51 ftypes: Simplify fvalue_can_*() interface
If an ftype can participate in equala assume it can also participate in
not equals. Use fvalue_can_eq() instead of fvalue_can_ne().

If it can participate in one order comparison it can participate in all.
Replace any comparison with fvalue_can_cmp().
2021-11-07 22:44:59 +00:00
João Valverde e9f2153eed README.msys2: Add more information about missing packages 2021-11-07 22:07:14 +00:00
João Valverde a3fe5c6162 MSYS2/CMake: Fix asciidoctor invocation
CMake does not use any shell to run execute_process(). When
running asciidoctor we must use the batch file. Put that before
"asciidoctor" (a ruby script) so CMake uses that instead.
2021-11-07 22:07:14 +00:00
Richard Sharpe 09f020b3f3 ieee802.11: Start adding support for 802.11be.
This is the extra high throughput spec.
2021-11-07 20:30:15 +00:00
Jaap Keuter 93eceb1991 IPv6: List all extension headers, or why they're not treated as such 2021-11-07 17:42:47 +00:00
Gerald Combs 8570fb47e8 [Automatic update for 2021-11-07]
Update manuf, services enterprise numbers, translations, and other items.
2021-11-07 16:40:28 +00:00
bzdula efc6ee9e85 spice: Added variables for proper protocol dissection 2021-11-07 13:40:06 +00:00
Justin Iurman 41b8f813c2 ipv6: dissector: ioam: improve checks
Improve checks on nodelen, remlen and trace_type.

Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
2021-11-06 15:03:29 +00:00
João Valverde 146a840ad1 dfilter: Move a constructor to the grammar file 2021-11-06 11:45:21 +00:00
João Valverde 6823073f7e dfilter: Fix corner case with matches
Previously a chained expression like "a == b matches c" would be
considered syntactically valid. Fix that to be a syntax error.
Only math-like comparisons can be chained.

This also disallows chaining contains expressions.
2021-11-06 11:45:21 +00:00
João Valverde 2d45cb0881 dfilter: Improve some error messages 2021-11-06 11:45:21 +00:00
João Valverde fb490eb172 dfilter: Move regex creation to semcheck 2021-11-06 11:45:21 +00:00
Colin Finck c034d33ef9 omron-fins: Don't check the Gateway Count byte.
While analyzing the network traffic between an OMRON NS8-TV01B-V2 HMI
and an OMRON CJ2M PLC, I discovered that all requests from the HMI have
their Gateway Count byte set to 0x07. Responses from the PLC still have
a Gateway Count byte set to 0x02.
This conflicts with the (20-year-old) protocol documentation by OMRON,
but happens nevertheless.

With this check removed, all bytes can be successfully parsed to an
OMRON FINS message.
2021-11-05 20:26:39 +00:00
Okan Palaz d72af75157 ieee1905: Correct RSSI fields to RCPI
- The RSSI fields in "(Un)Asssociated STA Link Metrics" and "Steering
  Policy" TLVs are not defined as RSSI but RCPI in released versions of
  the Multi-AP/EasyMesh specs. It's defined as an unsigned value in
  range 0 - 220.
- Changed "RCPI reporting threshold" type to UINT8 in "Metric Reporing
  Policy TLV".
2021-11-05 20:12:37 +00:00
Arkady Gilinsky a592c0d84f oampdu: Add OAM D-ONU leaves description
Signed-off-by: Arkady Gilinsky <8351139-ark-g@users.noreply.gitlab.com>
2021-11-05 21:15:25 +02:00
Gerald Combs 5a9978e7b5 GitHub: Move the lockdown workflow to the proper directory.
Workflows need to be in .github/workflows.
2021-11-05 10:11:02 -07:00
Justin Iurman dd0ecf8623 Fix loop inside the IOAM Trace data dissection
This patch is a quick fix to the infinite loop during dissection of the
IOAM Trace data list, introduced by merge request !4962

Fixes #17709
Closes #17709

Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
2021-11-05 15:51:31 +01:00
João Valverde 1fc621e38d epan: Fix crash with upper-case protocol filter names
Registering a preference module for a protocol filter name with
upper case letters aborts the program. Relax this restriction to
conform with the rules for protocols. The recommendation is still
to use all lower-case letters.

Fixes 070aeddf76.
2021-11-04 16:29:34 +00:00
João Valverde 01f234571f epan: Optimize heuristic name validity check
Do the name check in one pass only, instead of two passes, one
for all letters and a second one to exclude upper case letters.
2021-11-04 14:03:37 +00:00
Martin Mathieson 826e850c00 someip: make a function static 2021-11-04 09:20:47 +00:00
Роман Донченко a83c815184 Fix a duplicate author name
I have discovered that my name is listed twice in `AUTHORS`, and the second
occurrence is next to an unrelated contributor's email.

As far as I can see, the real name of that contributor has never been
established, so just use the local part of their email address instead.
2021-11-04 05:44:50 +00:00
John Thacker dc22cb1b89 RTP: Strengthen heuristics
Strengthen the heuristics according to Appendix A.1 of RFC 3550:

Reject if the packet isn't long enough to fit the fixed header, including
the CSRCs if present.
Reject if the packet isn't long enough to fit the extension header.
Reject if the packet isn't long enough to fit the padding, if we have
all the packet.
Reject the payload types reserved for RTCP conflict.

Most of these lead to malformed packet error if dissected anyway,
which can still be done via other methods (SDP, Decode As, etc.)
2021-11-04 05:29:02 +00:00
Moshe Kaplan 0b13ad6d95 Qt: Debounce View -> Internals -> Supported Protocols "Search" to improve UX
As searching the list of protocols takes a noticeable amount
of time and so would introduce significant lag while typing a string
into the Search box, we instead debounce the call to
updateSearchLineEdit(), so that it doesn't run until a set amount of
time has elapsed with no updates to the Search field.
If the user types something before the timer elapses, the timer restarts
the countdown.
2021-11-04 05:12:50 +00:00
Triton Circonflexe 734851fc72 [Thrift] Limit depth of nested types using p_set_proto_depth
Use a nested_type_depth preference to allow customization (default 25).
Fix incorrect display of 8 to 14 list & set lengths as negative values
when displaying internal Thrift fields of compact PDU in sub-dissector.
2021-11-04 04:58:12 +00:00
Justin Iurman c92bb35bcf ipv6: dissector for the IOAM Trace data list
Add support for the IOAM Trace data list dissection

Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
2021-11-03 21:58:05 +00:00