Commit Graph

83015 Commits

Author SHA1 Message Date
John Thacker 51134bca8d RTSP: Fix segault of cli tap with no filter set 2021-12-09 05:37:59 +00:00
John Thacker c648a40751 RTSP: Parse the status code correctly for taps
The end pointer for get_token_len needs to be the line end.
Using a fixed length of 5 won't actually get the version token.
Fixes geting the response codes for the RTSP tapes, instead
of response messages being assigned as Other.
2021-12-09 05:23:05 +00:00
Dario Lombardo 5fd23d72b6 Qt: fix compilation without pcap. 2021-12-09 04:51:02 +00:00
João Valverde eb66d83961 ACAP: Convert to old proto tree API
Related with #17774.
2021-12-09 01:50:56 +00:00
João Valverde 6fd4777e56 PNG: Convert to old proto tree API
Related with #17774.
2021-12-09 01:44:02 +00:00
João Valverde 4221079a57 URL Encoded: Convert to old proto tree API
Related with #17774.
2021-12-09 01:35:03 +00:00
João Valverde 2eba768440 JPEG: Convert to old proto tree API
Related with #17774.
2021-12-09 01:30:55 +00:00
João Valverde 5dec1fc8b4 PEEKREMOTE: Convert to old proto tree API
Related with #17774.
2021-12-09 01:22:36 +00:00
João Valverde c560ff4d1a 2dparityfec: Convert to old proto tree API
Related with #17774.
2021-12-09 01:12:00 +00:00
João Valverde baf2d67063 Data: Convert to old proto tree API
Related with #17774.
2021-12-09 01:03:33 +00:00
João Valverde f613998690 XCSL: Convert to old proto tree API
Related with #17774.
2021-12-09 00:52:48 +00:00
João Valverde 6b9a77e298 TALI: Convert to old proto tree API
Related with #17774.
2021-12-09 00:52:48 +00:00
João Valverde 0fce83f3a0 STAT: Convert to old proto tree API
Related with #17774.
2021-12-09 00:52:48 +00:00
João Valverde 27794a81b8 Rwall: Convert to old proto tree API
Related with #17774.
2021-12-09 00:52:48 +00:00
João Valverde 5a39ec0aec Rsync: Convert to old proto tree API
Related with #17774.
2021-12-09 00:52:48 +00:00
João Valverde 0689830499 Redback: Convert to old proto tree API
Related with #17774.
2021-12-09 00:52:48 +00:00
João Valverde be1edbfeee RIP: Fix a pre-commit check
epan/dissectors/packet-rip.c:  FT_UINT8:         proto_tree_add_item( rip_authentication_tree, hf_rip_zero_padding, tvb, offset+12, 8, [[ENC_NA]-->[ENC_ASCII|ENC_NA]]);
2021-12-09 00:33:37 +00:00
João Valverde 0080335d24 RIP: Convert to old proto API
Related with #17774.
2021-12-09 00:33:36 +00:00
João Valverde 2fafa27759 SLL: Fix a pre-commit check
epan/dissectors/packet-sll.c:  FT_ETHER:         proto_tree_add_item(tree, hf_sll_unused, tvb, ha_offset + ha_len,    SLL_ADDRLEN - ha_len, [[ENC_BIG_ENDIAN]-->[ENC_NA]]);
2021-12-09 00:05:03 +00:00
João Valverde 4cb12c84fa SLL: Convert to old proto tree API
Related with #17774.
2021-12-09 00:04:25 +00:00
João Valverde f196595e1d Tools: Remove convert-proto-tree-new.awk 2021-12-08 21:12:37 +00:00
João Valverde 9bca9820b4 Fix some file permissions 2021-12-08 20:33:29 +00:00
João Valverde 5a440f7178 VLAN: Convert to old proto tree API
Related to #17774.
2021-12-08 19:45:56 +00:00
João Valverde 3ea1a354e7 UDP: Convert to old proto API
Related with #17774.
2021-12-08 19:13:06 +00:00
João Valverde 95b7c4fd28 UDP: Fix indentation and convert to 4-space 2021-12-08 16:44:14 +00:00
Gerald Combs 3d369c01cc CMake+Qt: Fix a version check. 2021-12-08 08:26:27 -08:00
Joakim Karlsson 898800fb37 rawshark: fix compile error -Wmaybe-uninitialized
wireshark/rawshark.c:1239:15: warning: ‘fs_ptr’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
         printf(" %d=\"%s\"", cmd_line_index, fs_ptr);
               ^
wireshark/rawshark.c:1120:26:
note: ‘fs_ptr’ was declared here
     char                *fs_ptr;
                          ^
2021-12-08 15:47:19 +01:00
João Valverde 08f82c7441 tfshark: Add back error message for CLI options
Fix copy paste mistake in 1f68f87807.
2021-12-08 11:21:00 +00:00
João Valverde 1f68f87807 CLI: Use a better error message for obsolete preferences
Say that the preference is "obsolete", not "unknown".

Wireshark GUI already uses this language.
2021-12-08 10:43:02 +00:00
João Valverde c29d3b9fa0 tests: Remove tests for non-existent functionality
Remove tests that are unconditionally skipped because the
feature does not exist or is non-functional.

Related to #17772.
2021-12-08 07:02:27 +00:00
John Thacker 91bf99405a ieee80211: Pass association_sanity_check to dissect_mgt_action
Once again pass the association_sanity_check_t for MGT_ACTION
frames the way it was before commit fb2a0b4a71
introduced a new function. Fixes #17767.
2021-12-07 20:23:55 -05:00
John Thacker 8938b83961 cli: Clean up httpstat tap output format
Actually output the packet count for HTTP response status codes,
and align the columns between requests and response. (This CLI-only
stat is largely redundant with http,tree but it might as well work.)
2021-12-08 00:46:48 +00:00
João Valverde 9b0b3c118a extcap: Use standard --log-level and --log-file CLI options
This should allow simultaneous logging to the console and the log
file when running an extcap from the CLI.

One difference is that the extcap error/warning dialogs in the GUI
have extra information in standard wslog format (may or may not
be a good thing).
2021-12-07 23:07:55 +00:00
Chuck Craft c560226f3b Qt: capture with file intervals bug; autostop duration reset
Closes #16783. No open issue for autostop bug. Link added in
issue 16783 to Ask site question 15303.
2021-12-07 08:05:56 +00:00
Martin Mayer 8d07014df0 Qt: Collapse/Expand context menu for StatsTreeDlg 2021-12-07 06:04:09 +00:00
j.novak@netsystem.cz d50c666cd7 Capture Options dialog: Added configuration icon 2021-12-07 05:47:54 +00:00
Gerald Combs 411df7ca34 CMake: Remove the update_tools_help target.
Remove the update_tools_help target. Despite the comment, the weekly
update job doesn't use it, we don't have targets for our other update
scripts, and it currently causes issues if BUILD_tshark is disabled.
Fixes #17766.
2021-12-07 05:13:27 +00:00
John Thacker 06c1bbb2be gsm_map: stat table formatting in cli
The TABLE_ITEM_FLOATs (Avg Bytes, etc.) in the stat table need a float
format string, or else unpredictable output happens with tshark.
2021-12-06 23:15:55 -05:00
João Valverde 290234f3f5 Extcap: Improve the log handler logic
If we have a log file write everything to the file, to provide
a complete picture in the log.

Debug information cannot be written to the parent process when
running in child mode.
2021-12-06 18:51:42 +00:00
João Valverde 1a65cf0533 Fix Debian symbols 2021-12-06 18:51:42 +00:00
João Valverde b6130cd970 extcap: Register log handler conditionally
This matches the original implementation and allows displaying
logs to the console, including debug information, when running
an extcap from the CLI for testing and development purposes.

This should make extcap logging bug-for-bug compatible with the
behavior before dc7f0b88bb.
2021-12-06 18:51:42 +00:00
João Valverde 25c7a1abc8 wslog: Use stdout for debug messages
Imitate the GLib logic for selecting the console output stream
according to the log level. Levels MESSAGE and above go to
stderr. INFO and below go to stdout, unless stderr is chosen
using ws_log_console_writer_set_use_stderr().

It turns out some old extcap code was subtly dependending
on this behavior.
2021-12-06 18:51:42 +00:00
Martin Mathieson 2189490151 PDCP-NR: For broadcast PDU, don't dissect header and MAC 2021-12-06 18:35:24 +00:00
AndersBroman 3e0506dbe9 Make wmem_print_tree public. 2021-12-06 16:06:13 +00:00
Nardi Ivan 7cc0f7fe28 QUIC: fix visualization of some (rare) versions
QUIC V1 keys/constants are defined in draft-33; draft-34 only contains
minor editorial changes.
Nonetheless, some QUIC implementations (i.e. picoquic) announce draft-33
and draft-34 versions in their VN Transport Parameter.
For example see packet 2 in the trace attached to 968fe6ddba.
2021-12-06 15:02:21 +00:00
Aurelien Aptel 18f6351cbf nvme: fix CapsuleCommand "Unknown Command" summary
dissector shows "Unknown command" for many packets summary despite
being able to dissect it properly in the tree item added in that
function. Add offset to match the tree item offset few lines below.
2021-12-06 15:42:59 +02:00
João Valverde 7d6c7e4167 CMake: Try to fix WiX packaging 2021-12-06 09:12:56 +00:00
Brian Sipos 95cfdcbf3b COSE: Add parameter names to labels
Dissector names allow integer labels to be given standard text names.
2021-12-06 06:22:49 +00:00
Роман Донченко be38ad12ab jpeg: refactor the parsing of Exif data
After the recent updates, the `process_app1_segment` function has grown very
large. Split it into three functions and make some extra improvements:

* Indent continuation lines consistently.

* Give variables more descriptive names (e.g. no more `val_16`, `val_32`).

* Remove the need to do arithmetic with the `tiff_start` (and the variable
  itself) by using a subset TVB for the TIFF data.

* Remove unnecessary return values.

* Make miscellaneous style improvements.

There should be no difference in behavior, except that the error message
associated with `ei_next_ifd_offset` now shows the correct number (previously
the number was `offset + tiff_start`, when it should have been
`offset - tiff_start`; with the removal of `tiff_start` this bug got fixed
by itself).
2021-12-06 06:08:29 +00:00
Gerald Combs aac98e48d8 Docbook: Python installation updates.
Try to describe as briefly and clearly as possible where Python might
end up being installed. Fixes #17712.
2021-12-06 05:54:07 +00:00