Commit Graph

82083 Commits

Author SHA1 Message Date
João Valverde a34a234cf2 wslog: Add ws_log_buffer()
Use the new API with dot11decrypt debug.
2021-09-18 10:59:10 +01:00
Uli Heilmeier a918325324 SSH: Add fingerprint hassh, hasshserver fields
Calculate hassh and hasshServer to fingerprint SSH server and client
as defined at https://github.com/salesforce/hassh

Related: wireshark/wireshark#17595
2021-09-18 08:18:59 +00:00
Jaap Keuter 6e174c17eb InfiniBand: create proper preference change handler out of handoff function 2021-09-18 08:03:02 +00:00
Vivek Mangala f341e045c9 twamp: fixed decoding of control-message sequence
Added check on Command-Number on control message following
Accept-Session to detect the correct state.  There are
various states possible after Accept-Session.
2021-09-18 07:47:12 +00:00
Alexis La Goutte 13c33fa68a text2pcap: Fix -Wmissing-prototypes
warning: no previous prototype for function 'text2pcap_vcmdarg_err' [-Wmissing-prototypes]
2021-09-18 07:21:36 +00:00
Alexis La Goutte be2469b91d thrift: Fix Wmissing-protypes warning
packet-thrift.c:852:1: warning: no previous prototype for function 'dissect_thrift_t_field_header' [-Wmissing-prototypes]
2021-09-18 07:21:36 +00:00
Alexis La Goutte aa9d666acb sparkplug: Fix -Wmissing-prototypes warning
packet-sparkplug.c:142:6: warning: no previous prototype for function 'proto_register_sparkplug' [-Wmissing-prototypes]
2021-09-18 07:21:36 +00:00
Alexis La Goutte d842da234d signal(pdu): Fix -Wmissing-prototypes warnings
packet-signal-pdu.c:267:1: warning: no previous prototype for function 'proto_reg_handoff_signal_pdu_can' [-Wmissing-prototypes]
packet-signal-pdu.c:293:1: warning: no previous prototype for function 'proto_reg_handoff_signal_pdu_lin' [-Wmissing-prototypes]
packet-signal-pdu.c:314:1: warning: no previous prototype for function 'proto_reg_handoff_signal_pdu_someip' [-Wmissing-prototypes]
packet-signal-pdu.c:335:1: warning: no previous prototype for function 'proto_reg_handoff_signal_pdu_pdu_transport' [-Wmissing-prototypes]
2021-09-18 07:21:36 +00:00
Alexis La Goutte 1be344800a r09: Fix -Wmissing-prototypes warning
packet-r09.c:152:1: warning: no previous prototype for function 'proto_register_r09' [-Wmissing-prototypes]
packet-r09.c:217:1: warning: no previous prototype for function 'proto_reg_handoff_r09' [-Wmissing-prototypes]
2021-09-18 07:21:36 +00:00
Alexis La Goutte 7f411bbe80 bblog: Fix -Wmissing-prototypes warning
packet-bblog.c:334:1: warning: no previous prototype for function 'proto_register_bblog' [-Wmissing-prototypes]
2021-09-18 07:21:36 +00:00
Alexis La Goutte e1c754262f tiff(file): Fix -Wmissing-prototypes warning
file-tiff.c:840:1: warning: no previous prototype for function 'proto_register_tiff' [-Wmissing-prototypes]
file-tiff.c:1143:1: warning: no previous prototype for function 'proto_reg_handoff_tiff' [-Wmissing-prototypes]
2021-09-18 07:21:36 +00:00
Gerald Combs 05b91f5aaf Docs: Fix some POD markup.
Fix and normalize some of our POD markup.
2021-09-18 05:49:03 +00:00
João Valverde 16eb55b54e IPv6: Rename "SA MAC" to "SLAAC MAC"
The term "SLAAC" is widely used, "SA" is somewhat obscure.
2021-09-17 23:10:35 +01:00
Toni Uhlig a823e34642 Fix build error if ENABLE_SMI=OFF
* introduced with 9b13c4352d
 * HAVE_SMI_VERSION_STRING is always defined if libsmi found

Change-Id: I50480d37a3a6f31bcfe768f030af9176213b7366
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2021-09-17 19:29:48 +00:00
João Valverde dd59d1fcf9 ws_getopt: Add test suite skeleton with some basic tests 2021-09-17 14:15:55 +00:00
João Valverde f80b7babe5 CMake: Remove cmakedefine HAVE_ALLOCA_H
Commit 8df2a73594 removed this
configuration check but didn't remove the corresponding config.h
macro.
2021-09-17 14:15:55 +00:00
Anders Broman b2bc8fd059 RTCP:Fix dissection of MBMS Subchannel field 2021-09-17 13:23:35 +00:00
João Valverde fea994855d Revert "ws_getopt: Disable MSVC warning C4244"
This reverts commit ac3a30f61b.

Clang build also has this warning enabled. Fixed in
3c484f278b.
2021-09-17 02:45:50 +01:00
Gerald Combs 3c484f278b ws_getopt: Fix some clang warnings.
Fix

wsutil/ws_getopt.c:93:21: error: possible misuse of comma operator here [-Werror,-Wcomma]
                return ws_optind++, -1;
                                  ^
wsutil/ws_getopt.c:93:10: note: cast expression to void to silence warning
                return ws_optind++, -1;
                       ^~~~~~~~~~~
                       (void)(    )
wsutil/ws_getopt.c:188:11: error: possible misuse of comma operator here [-Werror,-Wcomma]
                                name++, opt++;
                                      ^
wsutil/ws_getopt.c:188:5: note: cast expression to void to silence warning
                                name++, opt++;
                                ^~~~~~
                                (void)( )
wsutil/ws_getopt.c:199:15: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
                        int l = arg-start;
                            ~   ~~~^~~~~~

Add a .editorconfig entry for ws_getopt.[ch].
2021-09-16 18:07:02 -07:00
João Valverde ac3a30f61b ws_getopt: Disable MSVC warning C4244 2021-09-17 00:43:54 +01:00
João Valverde 2deb1c95d9 Merge ws_getopt source files
No need to keep a separate ws_getopt_long.c file.
2021-09-17 00:43:54 +01:00
João Valverde 8df2a73594 Use the musl in-tree getopt_long() everywhere
Besides the obvious limitation of being unavailable on Windows,
the standard is vague about getopt() and getopt_long() has many
non-portable pitfalls and buggy implementations, that increase
the maintainance cost a lot. Also the GNU libc code currently
in the tree is not suited for embedding and is unmaintainable.

Own maintainership for getopt_long() and use the musl implementation
everywhere. This way we don't need to worry if optreset is available,
or if the $OPERATING_SYSTEM version behaves in subtly different ways.

The API is under the Wireshark namespace to avoid conflicts with
system headers.

Side-note, the Mingw-w64 9.0 getopt_long() implementation is buggy
with opterr and known to crash. In my experience it's a headache to
use the embedded getopt implementation if the system provides one.
2021-09-17 00:43:54 +01:00
João Valverde 7462e76884 Add musl getopt_long() source files to project
Copied verbatim from musl 1.2.2.

https://www.musl-libc.org
2021-09-17 00:28:06 +01:00
João Valverde 36a2606064 Debian: Fix symbols 2021-09-17 00:08:41 +01:00
João Valverde 4d873d4ce2 wsutil/to_str: Use a macro to check buffer size 2021-09-17 00:08:41 +01:00
João Valverde 18c155a3ca wsutil: Remove ip6_to_str_buf_with_pfx()
Writing a string prefix shouldn't require a specialized function here.
2021-09-17 00:08:41 +01:00
João Valverde 364df939ea wsutil: Rewrite ip6_to_str_buf() 2021-09-17 00:08:40 +01:00
João Valverde d4c7978f68 wsutil: Add ip_to_str() 2021-09-16 23:18:53 +01:00
João Valverde 8c4a479c52 Move more numerical functions to wsutil/to_str.h 2021-09-16 20:55:03 +01:00
João Valverde cc1e5b8334 Reformat and cleanup epan/to_str.h header 2021-09-16 20:15:28 +01:00
João Valverde 8208c68b49 Debian: Add missing wsutil symbols 2021-09-16 18:23:47 +01:00
João Valverde 8304ced0e6 wsutil: Add some tests for word_to_hex() 2021-09-16 18:21:14 +01:00
João Valverde 24fd8c6740 Move more numerical epan/*to_str() routines to wsutil 2021-09-16 18:21:14 +01:00
Chuck Craft 5b4c7e1c46 NEWS: multiple list indentation levels (nested lists) 2021-09-16 16:27:11 +00:00
João Valverde 0019723b14 Debian: Add missing wsutil symbols 2021-09-16 15:53:15 +00:00
João Valverde 44538f6e4d wsutil: Add tests for to_str_back() 2021-09-16 15:53:14 +00:00
João Valverde 8b70e24889 wsutil/to_str: Rename some functions for consistency 2021-09-16 15:53:14 +00:00
João Valverde 8a584222f1 Move epan/*to_str_back() functions to wsutil 2021-09-16 15:53:14 +00:00
Uli Heilmeier 2de4d40e22 setup-macos-brew: Extend to build dmg
Extend the script to be able to build a dmg bundle
2021-09-16 09:56:36 +00:00
Joakim Karlsson 45398ad333 PFCP: Additional improved Rule ID visibility 2021-09-16 11:19:47 +02:00
David Fort b81192d312 rdp: keep track of UDP and TCP connection links
As dynamic channel data can be transported on top of TCP or UDP, we need to keep track
of the link between UDP and TCP connections so that the associated data can be shared
between the two transports.
2021-09-16 07:37:18 +00:00
Evan Huus e4b8a58513 ptvcursor: add explicit memory scope
I was hoping to avoid this, since the ptvcursor should already be
implicitly scoped to the tree it is working on. But there are a bunch of
call sites where the passed tree can be NULL (?) and a few places where
the tree is explicitly set/reset after creation, so requiring an
explicit scope is safer.

Avoids global memory pools in favour of ones the compiler can verify.
2021-09-16 07:12:20 +00:00
Evan Huus f4aa108913 tvbparse: explicitly memory-scope parser
Avoids the use of the global memory pool in favour of one the compiler
actually knows must be in scope.

Also delete a few-hundred lines of if-0ed code that hadn't been active
in 15+ years.
2021-09-16 06:54:42 +00:00
João Valverde 2cb1eb955f epan: Rename SMI dependency to "libsmi" 2021-09-16 00:42:03 +01:00
Guy Harris bfc7708f63 SV / IEC 61850: Accommodate Ethernet trailers
IEC 61850 is directly over Ethernet, so use set_actual_length
like other such protocols so that the Ethernet dissector has a
chance to detect and dissect trailers / FCS.

And do it in the template from which packet-sv.c is generated, rather
than in packet-sv.c, so that it doesn't get overwritten if somebody
regenerates the sv dissector.
2021-09-15 14:27:29 -07:00
Erik Rigtorp 4ebd927ccd Support LZ4 versions earlier than 1.8.0 2021-09-15 19:09:30 +00:00
João Valverde bd33320521 wslog: Add macro to validate arguments and return
Similar to g_return_if_fail(), etc.
2021-09-15 18:19:07 +00:00
João Valverde 20dc422550 wsutil: Add test for bytes_to_str_punct() 2021-09-15 18:38:57 +01:00
Vivek Mangala 6c066adad7 twamp: improved decoding of Request-Session
Added decoding and display of "Number of Schedule Slots"
and "Number of Packets" parameters contained in Request-Session
message in TWAMP Control protocol, in accordance with RFC-4656.
2021-09-15 13:21:12 +00:00
Joakim Karlsson 24af672884 PFCP: Improved Rule ID visibility
In PFCP message multiple create/update/remove IE can be included,
displaying the Rule ID on top of the group will make finding wanted rule
easier. Rule ID is mandatory in these groups.
From:
    Create FAR : [Grouped IE]:
    Create FAR : [Grouped IE]:
    Create QER : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create URR : [Grouped IE]:
    Create PDR : [Grouped IE]:
    Create PDR : [Grouped IE]:
    Create PDR : [Grouped IE]:
    Create PDR : [Grouped IE]:

To:
    Create FAR : [Grouped IE]: FAR ID: 1
    Create FAR : [Grouped IE]: FAR ID: 2
    Create QER : [Grouped IE]: QER ID: 1
    Create URR : [Grouped IE]: URR ID: 1
    Create URR : [Grouped IE]: URR ID: 2
    Create URR : [Grouped IE]: URR ID: 3
    Create URR : [Grouped IE]: URR ID: 4
    Create URR : [Grouped IE]: URR ID: 5
    Create URR : [Grouped IE]: URR ID: 6
    Create PDR : [Grouped IE]: PDR ID: 1
    Create PDR : [Grouped IE]: PDR ID: 2
    Create PDR : [Grouped IE]: PDR ID: 3
    Create PDR : [Grouped IE]: PDR ID: 4
2021-09-15 11:35:10 +00:00