Commit Graph

79047 Commits

Author SHA1 Message Date
Gerald Combs 4a8b6da58f CMake+macOS: Explicitly create the extra package directory.
Create Wireshark.app/Contents/Resources/Extras, which is needed by the
Makefile generator.
2020-10-16 13:39:17 -07:00
Nardi Ivan e9ab795179 TLS: fix visualization of QUIC Transport Parameter Preferred Address 2020-10-16 21:27:57 +02:00
Prerit Jain 04145521b4 nrup: fix in Frame Indicator display 2020-10-16 13:42:44 +00:00
Dario Lombardo 1fbc6315c0 docs: remove references to gerrit. 2020-10-16 12:51:13 +00:00
Jamie Hare cf83a67fd3 IPPUSB Protocol
Added a dissector to reassemble IPP Over USB packets and pass them to
the HTTP dissector. Added a display filter so IPPUSB packets can be
filtered. Dissector checks to ensure semgent is IPPUSB and supports
reassembly of send-documents and print-job documents. It also supports
the reassembly and dissection of packets that are truncted or
incomplete.

Change-Id: Icc9525592c07b00baaac887a70bc9e7568273016
2020-10-16 08:49:48 +00:00
Roland Knall cfd9ffbb1b Qt: Show tooltips on submenu items
Tooltips should be shown on submenu entries

Closes !16912
2020-10-15 23:21:25 +00:00
Christian Krump 76e56358c2 EPL: wrong size detection of last segment
- fixed size detection of last segment in multiple read/write ASNDs
2020-10-15 22:35:29 +00:00
Ameya Deshpande 34626f2596 USBLL: Introduce usbll states in usbll_data_t.
This commit introduces usbll states. These states
represent the transaction upto the current packet.

Uses of introducing usbll states:
1. Avoid condition checks upto last three packets.
2. Identify invalid PID sequences.
3. Identify correct transactions. This will help in
   the USB 2.0 reassembly.

Ping-bug: 15908
Signed-off-by: Ameya Deshpande <ameyanrd@outlook.com>
2020-10-15 22:10:59 +00:00
John Thacker 91b792c6dc Replace ill-formed UTF-8 byte sequences with replacement character
Implement the Unicode Standard "best practices" for replacing ill-formed
sequences with the Unicode REPLACEMENT CHARACTER. Add wmem_strbuf_append_len
for appending strings with embedded null characters. Clarify why
wmem_strbuf_grow() doesn't always ensure that there's enough room for
a new string, and short-circuit some tests there. Related to #14948
2020-10-15 21:48:28 +00:00
Joerg Mayer 8b622bffc8 packet-stun.c: Series of small updates
- Rename some elements to their current RFC names
- Add an expert item for msg_len field
- Create an attribute for 8006 as unknown to avoid triggering the expert item for unknown attributes
2020-10-15 20:48:16 +00:00
Moshe Kaplan 3dde70de2c .gitlab-ci: Generate cppcheck reports
Modify the cppcheck job to also generate cppcheck's reports
and provide them as artifacts to the user.
2020-10-15 19:39:11 +00:00
Allan Møller Madsen 6d752876ef bthci_iso: full packet decode and reassembly added
Decode all Bluetooth HCI ISO packet fields and reassemble
fragmented packets.
2020-10-15 19:12:00 +00:00
Joakim Karlsson A 39f6b0d391 pfcp: fix handle of predefined by UP URR ID
Change-Id: Ia6e71c4860503db82c44b03ae1d8ccb3daf94339
2020-10-15 18:22:14 +00:00
Filipe Laíns 0ceb46e1c2 proto: add support for FT_BYTES in proto_tree_add_bits
Change-Id: I5030d550bd760953ac84c2700bb0e03cc7a831a1
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-10-15 18:21:34 +00:00
Dario Lombardo 52d7eb733d github: install biplist for macos. 2020-10-15 17:32:53 +00:00
Pascal Quantin 21d3eb2338 WSP: add application/octet-stream content type 2020-10-15 17:26:20 +02:00
Joerg Mayer 64f6a650ce packet-stun.c: Fix display of nonce and realm attributes when using MS-TURN
Also: Move network_version display to the end of the header
2020-10-15 15:52:18 +02:00
Joakim Karlsson A ddd58fbead fbzero: fix build
packet-fbzero.c:348:47: error: ‘tag_len’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

Change-Id: I775edcae2bfdc6184267ee8d1873744a675e0fba
2020-10-15 13:22:20 +00:00
Rene Nielsen b3099a839f New dissector: Added support for IEEE 802.1CB R-Tags (EtherType 0xF1C1) 2020-10-15 13:51:51 +02:00
Jason Cohen 888de57c1b f5ethtrailer: Look for trailer after FCS
Under some conditions the trailer can be added after the FCS has already
been added.  Advance 4 bytes and take a second look for a triler without
needing to resort to walking the trailer.
2020-10-15 10:18:36 +00:00
Chuck Craft 90cd509d92 Consistent "Prepare as Filter" - menus and screenshots #16892 2020-10-15 09:18:56 +00:00
John Thacker dcbe7b6c84 MP2T: Reassembly multiple transport streams between the same IPs properly.
Whether over RTP or just UDP, it's possible to get multiple simultaneous MP2T
transport streams between the same pair of IPs but on different ports. They
will not be part of the same reassembly. Thus the reassembly table functions
that use ports as well should be used to avoid ressembly errors and overlaps.
2020-10-15 08:56:11 +00:00
Pascal Quantin 4744523f92 debian: proto_tree_add_item_ret_ipv4() was introduced in 3.3.2 2020-10-15 08:26:15 +02:00
Guy Harris 3f412284a2 Fix message printed for --skip-radiotap-header for non-radiotap packets.
If the encapsulation is WTAP_ENCAP_PER_PACKET, all we know about the
file is that it might not include radiotap packets and, if it does, it
also includes non-radiotap packets.

If it's *not* WTAP_ENCAP_PER_PACKET, properly report it
(wtap_file_type_subtype() returns the *file type* of the file, not the
*link-layer header type* - yes, that *happens* to work for a pcap file
with Ethernet packets, because the values of WTAP_ENCAP_ETHERNET and
WTAP_FILE_TYPE_SUBTYPE_PCAP both *happen* to be 1, but that's pure
luck).

While we're at it, test only once for --skip-radiotap-header and put
both tests inside that if.
2020-10-14 21:22:53 -07:00
Nardi Ivan baebbbce4d QUIC: fix heuristic
In the heuristic function we don't know the length of the CID in the short
header, so we assume the worst case scenario compatible with packet length
(no more than 20 bytes)
2020-10-14 20:06:53 +00:00
Martin Mathieson d6a9bfa503 NRUP: Add missing SN field indicated by Report Delivered 2020-10-14 13:27:03 +00:00
Martin Mathieson efd1f57057 cppcheck.sh: Suppress syntaxError
I've never seen anything useful in these - presumably code is build-tested.
2020-10-14 12:33:16 +00:00
Pascal Quantin 83af7b89fd 3GPP: add 5G-TMSI to 3gpp.tmsi common filter 2020-10-14 11:08:19 +02:00
Anders Broman e209253636 Create a cross protocol filter 3gpp.tmsi
It can be useful to track a "call" trough multiple protocols to make
that easier create a cross protocol filter, more may come.
2020-10-14 07:56:26 +00:00
Guy Harris 793a57fae4 Give more detail for WTAP_ERR_INTERNAL when writing.
Report the file from which the record to be written came and the record
number within that file.
2020-10-14 00:01:49 -07:00
Guy Harris 6e6233521a Have WTAP_ERR_INTERNAL include an err_info string giving details.
That way, users won't just see "You got an internal error", the details
will be given, so they can report them in a bug.
2020-10-14 04:51:45 +00:00
Martin Kaiser 92e1b110f3 Qt: FieldFilterEdit: remove unused actions
The private members save_action_ and remove_action_ in class FieldFilterEdit
are not used. Remove them.

(It looks as if FieldFilterEdit was copied from DisplayFilterEdit, where
 those two actions are present and linked to slots...)
2020-10-14 03:53:45 +00:00
John Thacker 824eec89ca eassembly: Fix check for no data to prevent NULL deference
There's a check for adding a zero length fragment to a reassembly in progress,
but it accidentally checks fd_head->tvb_data (the reassembly in progress)
instead of fd_i->tvb_data (the new fragment) before calling tvb_get_data() on
fd_i->tvb_data. (Note that data / fd_head->tvb_data is created based on the
sum of the lengths of all the fd_i->tvb_data, so the former can only be NULL
if all the latter are, but it's possible for one fragment to be zero length
but not the entire reassembly. Thus this is the necessary and sufficient check.)
Fixes #15569
2020-10-14 03:31:48 +00:00
Guy Harris 7b5b6501f0 Revert "No need for a local lua_State * variable in file handler routines."
This reverts commit 873e079659.

That change didn't help what I wanted to do; there's another way to do
it.
2020-10-13 17:54:50 -07:00
Guy Harris 63714518df Get rid of some debugging cruft accidentally checked in. 2020-10-13 14:39:55 -07:00
Guy Harris 873e079659 No need for a local lua_State * variable in file handler routines.
Just use fh->L; the compiler will put that into a register if
appropriate.  This removes one side-effect from
INIT_FILEHANDLER_ROUTINE().
2020-10-13 13:30:52 -07:00
Thiyagarajan P c1950aa8cc ieee80211:Fix ieee80211_tag_beacon_timing() beacon timing element length check. 2020-10-13 19:33:09 +00:00
Moshe Kaplan a9f6bfff62 gitlab-ci: Add docbook job for WSUG and WSDG
Adds job of building the HTML versions of the
Wireshark User Guide and Wireshark Developer Guide.
PDF versions are not built because it would take significantly longer
(~10 mins instead of ~5 minutes)
2020-10-13 18:58:48 +00:00
Guy Harris 16198291bc Fix file description in error message from cfile_dump_open_failure_message().
cfile_dump_open_failure_message() opens a file for output, not input, so
use output_file_description(), not input_file_description() (i.e., "-"
means "standard output", not "standard input").
2020-10-13 11:28:29 -07:00
Joerg Mayer 743dcc7a41 packet-eap.c: Fix a typo in a comment 2020-10-13 13:29:40 +00:00
Nardi Ivan 051742fe1d STUN: add expert info for unknown attributes
This way, it is more simple to find them...
2020-10-13 06:36:10 +00:00
Martin Kaiser bd2c10de79 glusterfs: use a simpler way to read time fields
There's no need to parse the time fields ourselves.
proto_tree_add_item() supports the encoding that is used here.
2020-10-13 06:17:03 +00:00
Nardi Ivan 3f76684f91 CLASSIC-STUN: dissect the entire packet on first-pass
Request-response tracking of STUN messages encapsulated in CLASSIC-STUN
packets (via DATA attribute) doesn't work right now.

The reason for this is that req-resp tracking is usually performed on
first-pass, but CLASSIC-STUN attributes are not dissected on first-pass
(on wireshark, at least). So the encapsulated STUN messages are never
elaborated on first pass, either.
2020-10-13 05:30:44 +00:00
Martin Kaiser 724a288560 qnet6: use a simpler way to read a time field
Fix yet another occassion where we can call proto_tree_add_item() directly
instead of parsing the time field ourselves.
2020-10-13 05:07:35 +00:00
Edward Smith e96a1082c0 GFP: Handoff to MPEG2TS dissector when UPI is DVB-ASI 2020-10-12 19:56:20 +00:00
Nardi Ivan 354bbbe7cb STUN: add support for MS-TURN Multiplexed Channel
MS-TURN Multiplexed TURN Channels have a slightly different header format
compare to standard TURN Channels: see MS-TURN 15.1, section 2.2.3
https://docs.microsoft.com/en-us/openspecs/office_protocols/ms-turn/65f6ef76-a79d-42a4-a43f-dac56d4a19ac
2020-10-12 19:32:14 +00:00
Richard Smith b287e7165e GQUIC: make sure our tag offset advances.
Make sure gquic tag offset advances so that we don't infinitely loop.
2020-10-12 19:07:17 +00:00
Joerg Mayer f1e28064ec Cisco ACI specific protocol enhancements
Add Ethertype for Cisco ACI ARP gleaning and dissect its payload
Improve some Cisco ACI vendor specific DHCP options
Update mcp after looking at knet_parser.py
Update lldp after looking at knet_parser.py

Also reorder some ETHERTYPEs by value
2020-10-12 18:38:08 +02:00
Stig Bjørlykke a750cab655 thread: Add check for valid CoAP info
Add a check for valid CoAP info in dissect_thread_coap() before use.
It may happen that this is NULL because setting a decode_as rule
for application/octet-stream will also catch other packets.
2020-10-12 12:30:31 +00:00
Роман Донченко 88b0370f86 Fix spelling errors in the documentation 2020-10-12 11:43:47 +00:00