Commit Graph

79306 Commits

Author SHA1 Message Date
Guy Harris b904fc69ab Have capture_loop_init_pcapng_output() report an error code.
It *can* get errors with error codes, so it should pass them to its
caller so it can report the error correctly.
2020-11-25 00:43:43 -08:00
Guy Harris 8c4d0bb131 Expand a comment to note that pcapng_read_shb() does a synchronous read. 2020-11-25 08:08:24 +00:00
Pascal Quantin fb2414ae6d Qt: fix some Qt 5.15.2 deprecation warnings 2020-11-25 07:23:21 +00:00
John Thacker 15d315c2ae GLib: Bump requirement 2.32 -> 2.36 2020-11-25 06:25:38 +00:00
Anders Broman 2999173126 GTPv2: Dissect the content of F-container type 3. 2020-11-24 16:41:50 +01:00
Đorđije Manojlović 8c4d420fb3 Extend IEC 61850 GOOSE dissector to support IEC 61850 R-GOOSE protocol
R-GOOSE (Routable GOOSE) protocol is GOOSE protocol embedded into
RFC 1240: OSI Connectionless Transport over UDP.
2020-11-24 13:43:53 +00:00
Pascal Quantin 74c0b2134b S1AP: fix decoding of inter eNB transparent container from NGAP 2020-11-24 14:05:21 +01:00
Pascal Quantin 063af96df7 NAS 5GS: add dissection of R16 UPDP messages 2020-11-23 23:55:04 +01:00
Pascal Quantin 9fdc3fb3ce NAS 5GS: request type field is 3 bits long 2020-11-23 22:11:13 +00:00
Alexis La Goutte f71458c601 proto(.h): fix -Wdocumentation
proto.h:2373:9: warning: parameter 'fi' not found in the function declaration [-Wdocumentation]
2020-11-23 20:06:49 +00:00
Pascal Quantin d75fef88fb NAS 5GS: upgrade remaining 5GSM IEs to v16.6.0
- IP header compression configuration
- DS-TT Ethernet port MAC address
- UE-DS-TT residence time
- Port management information container
- Ethernet header compression configuration
2020-11-23 19:22:58 +01:00
Pascal Quantin 533f21edfd NAS 5GS: upgrade some 5GSM IEs dissection to v16.6.0
- 5GSM capability
- 5GSM cause
- Integrity protection maximum data rate
- Mapped EPS bearer contexts
- PDU address
- Re-attempt indicator
- 5GSM network feature support
- Serving PLMN rate control
- 5GSM congestion re-attempt indicator
- ATSSS container
- Control plane only indication
2020-11-23 18:38:45 +01:00
Uli Heilmeier 0fad19b7d9 tshark: set cf values when quiet and tempfile
When there is no do_dissection cf is missing some variables
for cf_close() call. Therefore we have to set them explicitly.

Fixes: wireshark/wireshark#17021
2020-11-23 08:34:09 +00:00
Jorge Mora 753515f48f RPCoRDMA: fix RPC-over-RDMA message type info
Get value of message type from the buffer before displaying it
in the info column of the packet list pane. Also, make sure
there is enough bytes in the buffer to get the RPCoRDMA header.
2020-11-23 08:07:36 +00:00
Anders Broman 699f1f9041 BER: Fix debug statement 2020-11-23 08:42:50 +01:00
Pascal Quantin f22ed956f6 NAS 5GS: upgrade dissection of remaining 5GMM IEs to v16.6.0
- Ciphering key data
- Control plane service type
- MICO indication
- MA PDU session information
- Mapped NSSAI
- Mobile station classmark 2
- Supported codecs
- Payload container
- Payload container type
- Rejected NSSAI
- Release assistance indication
- Request type
- UE radio capability ID deletion indication
- Truncated 5G-S-TMSI configuration
- WUS assistance information
- NB-N1 mode DRX parameters
- Additional configuration indication
2020-11-22 19:19:14 +00:00
Gerald Combs 7d8dbd98b0 [Automatic update for 2020-11-22]
Update manuf, services enterprise numbers, translations, and other items.
2020-11-22 18:33:39 +00:00
Guy Harris 5fcedcf8f4 Various code and comment cleanups.
Doing a blocking read from a pipe on Windows is done in several places,
using similar sequences of code; put that sequence into a subroutine,
with the parts that differ in arguments to the routine.

Add some comments, and update some comments, to better clarify what the
code is doing in various places.

In the switch statement that tests the first 4 bytes read from a pipe or
socket, call pcap_pipe_open_live() at the end of all of the cases where
the file appears to be a pcap file; that makes the handling of pcap
files look a bit more like the handling of pcapng files.
2020-11-22 17:51:37 +00:00
Pascal Quantin 4212bea8f3 NAS 5GS: add dissection of 2 more r16 IEs
- CAG information list
- CIoT small data container
2020-11-22 13:42:58 +00:00
Martin Mathieson df651aca91 Spelling improvements
Improve script by ignoring common contractions, dealing with
e.g. \n within strings, and finding multiple concatenated words even
when no camelCase is used.

Also includes some actual spelling fixes.
2020-11-22 11:30:24 +00:00
Pascal Quantin 7d16b7b251 NAS 5GS: upgrade dissection of more 5GMM IEs to v16.6.0 2020-11-21 23:29:52 +01:00
Jaap Keuter 68313f4972 Avoid python deprecation warning
Fixes ad69ec2e11
2020-11-21 18:58:21 +00:00
Pascal Quantin 561c5607a8 NAS 5GS: upgrade dissection of a few 5GMM IEs to v16.6.0 2020-11-21 19:02:32 +01:00
Pascal Quantin 1f40b822e6 NAS 5GS: upgrade 5GMM and 5GSM messages description to v16.6.0 2020-11-21 17:18:20 +01:00
Joakim Andersson c586f71a5c bluetooth: Fix dissecting of packets received on LE Coded PHY
Fix dissecting of packets received on LE Coded PHY. These packets
will include the extra field "coding indicator" after the access
address.
The assignment of phy in the common bluetooth context was missing,
leading to this field being left out and the offset being wrong.
2020-11-21 11:08:50 +01:00
Guy Harris 58aea1de62 PacketListRecord: add an ensureColorized() method and use it.
Don't call the columnString() and discard the result in order to force
colorization; instead, add a separate method to force colorization and
use that.

This avoids the need to choose a column; we were using 1 as the column
number, but column numbers are zero-origin, so that's column 2, which
isn't guaranteed to exist (a crash ensued if it didn't).
2020-11-20 14:14:09 -08:00
Pascal Quantin aeebea1330 GSM A DTAP: fix hf_gsm_a_dtap_ue_received_rlc_sdu_counter_value length
The mistake was introduced while removing the proto_tree_add_text() calls
2020-11-20 11:36:34 +01:00
Alex Nik a6f8ea1143 SIP Flows window is discribed
minor correction
2020-11-20 08:20:02 +00:00
Martin Mathieson c1ff6b3675 Fix some more item lengths. 2020-11-19 21:18:21 +00:00
Alexis La Goutte b78abaf1be windows-common: fix Clang
Value stored to 'len' is never read
2020-11-19 19:01:53 +00:00
Jann Horn 785ef0f43d checkAPIs: Fix typo
Fix the typo'd header name in the error message.
2020-11-19 18:16:37 +00:00
Pascal Quantin 8c99f4de8d QUIC: fix compilation without HAVE_LIBGCRYPT_AEAD 2020-11-19 18:36:41 +01:00
John Thacker 91be8b6e60 SMPP: Support GSM 7 bit alphabet (3GPP TS 23.038)
Support the GSM 7 bit alphabet. This should be unpacked, according
to the spec and references online. Similarly, the IA5/ASCII support
should also be unpacked. GSM 7 Packed is supported as an option for
encoding 0, as reports of a small number of servers behaving that way
exist. Provide the byte representation for when encoding is performed
(but hidden), so that filters doesn't change depending on the preference
and encoding, and are backwards compatible with pre 3.2.0. Fixes #17015
2020-11-19 15:59:49 +00:00
lutianxiong 65ac14b51a btle: Initialise acl_data to avoid wild pointer dereference
Close oss-fuzz issue 25007.
2020-11-19 12:44:40 +00:00
John Thacker 7654bb260d QT+epan: Set FI_BITS_OFFSET and FI_BITS_SIZE flags on [u]ints and bitmasks
Set the FI_BITS_OFFSET and FI_BITS_SIZE flags appropriately on [u]int[64]
(and thus chars and booleans) where the bitmask is passed in on the
header_field_info. Also set the flags on bitmask items by ORing the bitmasks
from the constituent fields. These flags are only used right now in the
packet diagram.

This makes the packet diagram display those types of fields correctly without
having to use proto_item_set_bits_offset_len(), so long as the bitmask is
correct and the field width of the type matches the octet length. (If it
doesn't match, that's a dissector bug.)

split bit items are a more complicated case and still not handled correctly.
2020-11-19 12:00:46 +00:00
Bartel Eerdekens c09b33cf1d RDM: Dissector: Fix end-of-packet string dissection.
Strings at the end of RDM packages were parsed with the complete data length in stead of accounting previous parsed data (length).
Closes #17027
2020-11-19 10:54:28 +01:00
Dario Lombardo 4b9dfc3a19
github: fix actions.
The command add-path within the changed actions has been deprecated
according to

https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

Use shogo82148/actions-setup-perl for strawberryperl on windows.
Upgrade setup-ruby to 1.1.2 on macos.
2020-11-19 09:20:17 +01:00
Anders Broman 1d7bc367e9 GSM A Common: Dissect polygon points 2020-11-18 15:02:54 +00:00
Jaap Keuter 0250e4e2e4 HTTP: Restore SSTP support
Add exclusion for SSTP having Contents-Length and no body.
Closes #17024
2020-11-18 12:48:47 +00:00
John Thacker 5d374fed36 RFC2190: Fix bitmasks for several fields in mode A
Fixes some errors that the packet diagram helped make obvious.
Closes #17025.
2020-11-18 11:59:52 +00:00
Anders Broman ff3f9d3e4a tvb_get_bcd_string: 0xf can both be filler and stop digit. 2020-11-18 10:54:57 +01:00
Huang Qiangxiong 7906a2f6a8 Protobuf: rewrite parser of *.proto file from Bison to Lemon
In order to avoid Bison's compatibility problem (like
https://code.wireshark.org/review/#/c/33771/),
the *.proto file parser is rewritten with lemon. (rename
protobuf_lang.y.in to protobuf_lang_parser.lemon)
Also improved the mechanism of recording line number of
message, field, and enum names.
2020-11-18 08:57:01 +00:00
Masaru Tsuchiyama 69e6a16ba4 capture option dialog: fix unintentional dialog size by merge request 422 2020-11-18 05:53:53 +00:00
Jason Cohen 8b520a437e f5ethtrailer: Reserved field should have been ENC_HEX 2020-11-17 19:40:23 +00:00
Uli Heilmeier b822a62729 Addr Resolv: Prefer profile specific file if exists
Check if profile specific file exists for ethers, ipxnets and enterprises.tsv
before falling back to personal configuration file.

Fixes: wireshark/wireshark#16878
2020-11-17 18:17:48 +00:00
Pau Espin 1b254c2815 rlcmac: Append RRBP mark to COL_INFO on DL CTRL blocks
Same thing is already done for GPRS DL data blocks and allows easily
finding with a quick glance where the MS is polled.
2020-11-17 14:33:42 +01:00
Pau Espin 66005aef49 rlcmac: Append BSN2 to COL_INFO only on blocks containing it
Header Type 2 and 3 don't contain a BSN2 field, so adding it to the
COL_INFO only adds confusion.
2020-11-17 14:19:49 +01:00
Pascal Quantin 76c8e4c921 NAS 5GS: fix dissection of common information elements 2020-11-17 13:32:17 +01:00
Alex Nik 5380aaad62 RTSP packet counter window is described 2020-11-17 09:24:53 +00:00
Alex Nik 3396a096e8 SIP Statistics window is described
minor correction
2020-11-17 09:00:29 +00:00