Commit Graph

79757 Commits

Author SHA1 Message Date
João Valverde ba23c3b316 tests: Add argument to trim output to a reasonable size
The output of the "values" tshark glossary has over 1.3M lines. Writing
this to stdout with some test failures is problematic in a number of ways.
Also it's not helpful because stderr is written after stdout (not interleaved)
so there is no output context to the error message. The error/warning
message (from stderr, that triggered the test failure) needs to be
sufficient to provide a good understaning of the test failure.

The output is trimmed to first+last N lines. Some lines are kept as
informational and because it may be useful if the program aborts.

Fixes #17203.
2021-02-04 17:00:36 +00:00
Jaap Keuter 791d101d4d LLDP: Add new IEEE 802.1 subtypes 2021-02-04 13:31:50 +00:00
Nicolás Alvarez 981e662a0a Minor changes to ENC_TIME documentation
- Fix duplicate "are are".
- Fix NTP epoch year in ENC_TIME_NTP docs (572b80d2 fixed it in the README
  but not in proto.h).
- Remove completely redundant "(ie. )" clauses.
2021-02-04 10:13:36 +00:00
Martin Mathieson c05bcb2c9d Oran: Add section extType=6
Non-contiguous PRB allocation in time and frequency domain.
2021-02-04 09:45:02 +00:00
Guy Harris 42dc21a346 pcapng: pull common processing code into subroutines. 2021-02-04 00:59:16 -08:00
Dr. Lars Völker ba189f04b2 TECMP: Better formating for analog values
This patch improves the representation of analog values. These are
now scaled and based on the unit selected by the data flags.
This should be much easier to read.
2021-02-04 06:29:09 +00:00
Gerald Combs 08d3c6a4d3 Add an initial CONTRIBUTING file.
Add a standard CONTRIBUTING file which describes how you can contribute
to Wireshark. Make it Markdown with a .md extension since that's the
default in the GitLab UI and elsewhere.
2021-02-04 01:02:19 +00:00
Nicolás Alvarez 0e86ea6c57 Update documentation for ENC_TIME_* constants
ENC_TIME_MIP6 and ENC_TIME_CLASSIC_MAC_OS_SECS were added recently by
factoring them out of specific dissectors, but they weren't documented.
I added documentation, based on comments in the dissector code they came
from.
2021-02-03 21:03:11 -03:00
pavol47 11c8f5c30b FIX: asterix cat.240 START_RG(240_040, 240_041) 2021-02-03 14:34:50 +00:00
Martin Mathieson d68c19565d Make more functions and vars static.
No contentious cases in this batch.
2021-02-03 13:52:55 +00:00
Jaap Keuter 55d53dbf1b S7COMM: remove array size from function interface
Fixes #17198
2021-02-03 07:46:01 +00:00
Jaap Keuter 95ba4daf5b WSUG: don't repeat caption in the text 2021-02-03 06:21:38 +00:00
Guy Harris fbdd2446e1 pcapng: Fix copy-and-pasteo.
Found by Coverity; fixes Coverity CID 1472770.

(At least *this* Coverity report doesn't use that tainted word
"tainted", which, most of the time, means "ZOMG UR PROGRAM READS
EXTERNAL FILEZ!!!!111ONE!!!")
2021-02-02 21:33:24 -08:00
heinrich5991 5c3a651ea2 Fix doc/README.plugins mentioning the wrong symbols
Since 2.9.0, plugin_release has been split up into two different
variables, plugin_want_major and plugin_want_minor.
2021-02-03 02:46:32 +00:00
ishaangandhi 581aa9136d IPv6: Add dissector for Tunnel Payload Forwarding (TPF) 2021-02-03 00:18:45 +00:00
ishaangandhi 0d851d336c IPv6: Fixed hf_ipv6_routing_crh32_current_sid unused bug 2021-02-02 23:02:50 +00:00
Gerald Combs 02f4f45687 RTPproxy: Explicitly check for IPv6.
Don't assume that pinfo source addresses can only be IPv4 or IPv6. Blind
attempt at fixing #17196.
2021-02-02 22:27:20 +00:00
Martin Mathieson 2834024db1 Make more functions/variables static. 2021-02-02 10:38:24 +00:00
Martin Mathieson 9e7168e476 Address more non-static, non-shared symbols. 2021-02-02 09:26:55 +00:00
Dr. Lars Völker 7f23130fc0 SOME/IP: Changed config was not respected (BUGFIX)
The SOME/IP dissector did not update its dynamic hf config, after a
config changes. This patch fixes this by updating the internal data
after the UAT post update CB.

Closes: #17197
2021-02-02 06:12:22 +00:00
Guy Harris 0773147a55 wiretap: redo the way we handle if_filter IDB options.
Change the data structure for that option to have a type field,
indicating that it's either a pcap filter string or a BPF program,
followed by a union with a string-pointer member for pcap filter strings
and an instruction-count-and-pointer-to-instructions structure for BPF
programs.

Have routines to add, set, and fetch that option that handle that
structure; discard the "generic structured option" routines.  That means
there's more type checking possible at compile time.

Add more code to handle BPF programs.

When writing pcapng files, check, both for that option and for string
options, whether the option length is too big for the data to fit in a
pcapng option, and don't write it if it is.  (XXX - truncate the data?
Report an error?)
2021-02-01 16:50:01 -08:00
Aitor Garcia 5837bcea5e GOOSE: New option to display float values
Added to the protocol a new option to display the decimal representation
of floating-point values.

Minor fixes: Avoid the double 'return' on dissect_goose_UtcTime function
and fix the simulation BLURB to follow other fields approach.
2021-02-01 23:08:06 +00:00
Richard Sharpe fb2a0b4a71 ieee80211: Add support for S1G including PV1.
S1G adapters should be shipping soon since Silex America has a dev-kit
available, so it is about time to add support for this.

Change-Id: I0225d87f78efbcbe88476921d4fce3d56a3ce0cd
2021-02-01 19:34:55 +00:00
Richard Sharpe fc5d8db628 ieee80211: Add support for Extended Capabilities up to Octet 13.
This has been tested with captures I have from WFA. There is some additional
stuff I want to add to capture info about STAs that support SAE as well, but
will need another commit for that.

Change-Id: Iafbba52094856192e63a21f1c32bb7d785221d66
2021-02-01 12:38:34 +00:00
Gerald Combs bdb6e79490 DocBook: Update the packaging and CI sections in the WSDG.
Update the packaging and CI sections, and add minor updates in other
sections.
2021-01-31 15:37:22 -08:00
Gerald Combs e642f94ecb [Automatic update for 2021-01-31]
Update manuf, services enterprise numbers, translations, and other items.
2021-01-31 22:18:47 +00:00
Jirka Novak 80760302c9 RTP player: Doubled buffer for replay to avoid play stop caused by underruns
Patch solves issue for case when QT plays audio faster than reads it from file.
The change looks strange because there is no way how to get buffer size before
starting the play. So code start the play, reads buffer and stop it. Then
increases buffer size and start play again.

Note: You still can receive ALSA notifications like:
ALSA lib pcm.c:8545:(snd_pcm_recover) underrun occurred
but it do not stop audio replay.
2021-01-31 15:21:34 +00:00
Martin Kaiser a5207b541e mtp3: create the statistics table only once
Use the new stat_tap_find_table function during init to check if our
statistics table already exists.
2021-01-31 14:48:21 +00:00
Martin Kaiser b00c3bd742 sip: create the statistics tables only once
For sip, we have two different statistics tables for requests and responses.
Create each table only once, check if it already exists.
2021-01-31 13:48:38 +00:00
Martin Kaiser b49b95af65 rpc: create the statistics table only once
Use the new stat_tap_find_table function during init to check if our
statistics table already exists.
2021-01-31 13:27:16 +00:00
Martin Kaiser f21f1c292a dhcp: create the statistics table only once
Use the new stat_tap_find_table function during init to check if our
statistics table already exists.
2021-01-31 10:36:22 +00:00
Martin Kaiser 8963dff518 ansi_a: dtap statistics: create the table only once
Use the new stat_tap_find_table function during init to check if our
statistics table already exists.
2021-01-31 09:32:20 +00:00
John Thacker 46389187ca GitLab CI: Don't build openSUSE 15.1 anymore (EOL)
openSUSE 15.1 (and the closely related SLES 15 SP1) just went EOL,
so don't worry about building packages for it, 15.2 is sufficient.
2021-01-31 08:34:51 +00:00
Guy Harris 1f15c0899e epan: have a routine to register all tap listeners.
Pull the code to register plugin taps, and the loop to register built-in
taps, into a single register_all_tap_listeners() routine.

This leaves it up to libwireshark, not to the programs using it, to know
how to register them.
2021-01-30 21:15:30 -08:00
Guy Harris b2db1517be Oops, put back accidentally deleted blank comment line. 2021-01-30 19:29:59 -08:00
Guy Harris 2c719d4517 Generate plugin.c for tap plugins.
Instead of having the source file containing the top-level registration
routine for the pinfo_stats_tree plugin checked into our repository,
generate it with tools/make-plugin-reg.py, as we do with other plugins.

While we're at it, fix a comment - "DLL" is a Windows term; the
equivalent term in UN*Xes would be "shared object" ("so" or ".so") or
"dynamic library" ("dylib" or ".dylib").
2021-01-30 19:06:22 -08:00
Guy Harris 8c83f31063 wiretap: fix indentation. 2021-01-30 12:05:54 -08:00
Guy Harris 3db10d02e9 wiretap: add wtap_block_set_nth_string_option_value_format().
We have wtap_block_set_string_option_value(),
wtap_block_set_string_option_value_format(), and
wtap_block_set_nth_string_option_value(); complete the collection and
win valuable prizes.
2021-01-30 18:45:03 +00:00
Eugene Adell ed9485ce00 TCP: Null pointer crashes Wireshark
Working on #6683 introduced this bug because of a lack of
control on the conditions when calculating in-flight.Closes #17186.
2021-01-30 12:38:51 +00:00
João Valverde 10178fdb09 Don't include config.h in system headers
Config.h must not be installed so configuration must be performed by client code.

Fixes #17190.
2021-01-30 10:06:20 +00:00
Guy Harris b8e2005653 wiretap: clean up comments.
Remove a trailing blank line while we're at it.
2021-01-30 09:13:52 +00:00
Gerald Combs 9177f0e71a Docs: Change the default wsbuglink text to "Issue".
Change the default text in the AsciiDoctor wsbuglink macrom from "Bug"
to "Issue".
2021-01-30 08:57:07 +00:00
Guy Harris ca85c516fe Refer to options whose data isn't a simple data type as "structured".
"Custom", as in "requires custom handling of the option data, collides
with "custom", as in pcapng custom options.
2021-01-30 00:12:11 -08:00
Martin Mathieson 5fbc354f86 Make more functions and vars static. 2021-01-29 10:05:32 +00:00
Martin Kaiser f4ac70818a stat_tap_table_ui: create tables only once during init
If you load a capture file and open any statistics dialog, you'll see the
list of collected items. Each time you press the Apply button (without entering a
display filter) another list of items will be created as a top-level entry
of the statistics tree. Only the first list will have the correct values,
all subsequent lists will not be populated.

Each statistic module defines a stat_tap_table_ui structure that contains a
stat_tap_init_cb function. This init function is called by
SimpleStatisticsDialog::fillTree before the tap listener is registered. This
happens each time we collect the statistics.

However, it seems that all init functions create a new stat_tap_table each
time they are called, even if they already have an existing stat_tap_table
of the same name.

This patch adds a stat_tap_find_table function to find a table by name.

As a first step, we update the ANSI A-I/F BSMAP Statistics to check if its
table is already registered. If it is, the table will not be created again.
2021-01-28 13:41:08 +00:00
Alexis La Goutte 9fc1ce7610 ieee80211: Add FILS Discovery (Public Action)
from 802.11ai(-2016).pdf

Closed: #17135
2021-01-28 12:29:53 +00:00
Jaap Keuter b4f74bac74 ZVT: clean up some data points 2021-01-28 11:17:54 +00:00
Guy Harris 4715f5021c epan: don't print nanoseconds if seconds isn't representable.
Fix for previous fixes to #17179.
2021-01-27 23:56:22 -08:00
Guy Harris bf265d7e7a epan: don't use gmtime_s().
It has the "feature" that, if handed a negative value, it might just
exit.  gmtime() doesn't have that "feature", and is sufficiently
thread-safe for our purposes; use it instead, and check to make sure it
doesn't return a null pointer.

The previous fix for #17179 still used gmtime_s(); this doesn't, so it's
a better fix for #17179.
2021-01-27 22:16:47 -08:00
Guy Harris 4e4a7c11c7 epan: don't assume gmtime_s() or gmtime_r() succeed.
At least on Windows, gmtime_s() will *not* succeed if passed a negative
value.

Fixes #17179.
2021-01-27 21:46:11 -08:00