Commit Graph

79290 Commits

Author SHA1 Message Date
Chuck Craft 45594f9639 icmp: fix typo in hf_icmp_ident_le field definition 2020-11-29 22:04:32 -06:00
Guy Harris baee4a41c7 wlan: clean up some tests.
It's clearer to say

    if (A) {
        if (B) {
            do this;
        } else {
            do that;
        }
    }

than to say

    if (A && B) {
        do this;
    } else if (A && !B) {
        do that;
    }
2020-11-29 18:24:53 -08:00
Pascal Quantin 59efc252dc LPP: upgrade dissector to v16.2.0 2020-11-29 22:48:08 +01:00
Gerald Combs 7c07202d78 [Automatic update for 2020-11-29]
Update manuf, services enterprise numbers, translations, and other items.
2020-11-29 17:21:40 +00:00
Martin Kaiser cb8150cdf3 Qt: CaptureOptionsDialog: set parent for SparkLineDelegate
CaptureOptionsDialog allocates a SparkLineDelegate in its constructor.
It should set itself as parent of the SparkLineDelegate.

Without a parent, the SparkLineDelegate is never freed and each
invocation of Capture / Options leaks memory.
2020-11-29 16:59:17 +00:00
Jaap Keuter de5ed8d664 Fix function documentation
Fixes b26512e33a
2020-11-29 13:54:36 +00:00
Guy Harris 258fb14821 802.11: clean up data frame handling.
Change

    case DATA_FRAME:
        if (condition) {
            do stuff;
            break;
        }
        do other stuff;
        break;

to

    case DATA_FRAME:
        if (condition) {
            do stuff;
        } else {
            do other stuff;
        }
        break;

to make it clearer that it's "do this if condition is true, else do
that".
2020-11-29 02:17:47 -08:00
Guy Harris ee764b8d7d llc: don't fetch the etype until it's needed and if it's present.
This avoids throwing exceptions in some cases.
2020-11-29 01:28:59 -08:00
Guy Harris 3f8423c267 llc: clean up indentation. 2020-11-29 00:53:45 -08:00
Alexander Couzens 7dd469f801 packet-gsm_abis_oml: dissect Get Attribute Response Info
The Get Attribute Response Info contains attributes requested by the
Get Attributes message. It contains the same attributes which can be part
an OML message.
2020-11-28 11:49:38 +00:00
Alexander Couzens 7a72ad677f packet-gsm_abis_oml: dissect List of required Attributes
List of required Attributes is used by Get Attribute message
to allow the BSC to retrieve attributes from the BTS.
2020-11-28 11:49:38 +00:00
Alexander Couzens 9080232823 packet-gsm_abis_oml: move length of oml_attrs into the signature
When calling dissect_oml_attrs() from within an attribute the length
must be given otherwise the elements would appear in the wrong
tree.
2020-11-28 11:49:38 +00:00
Joakim Andersson e06afb4252 bluetooth: Change wording of sequence number context information
Change the wording of the sequence number context information from
"Wrong" to the more accurate description that this is a retransmit.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2020-11-28 11:15:59 +00:00
Joakim Andersson 7f5ddfc7f3 bluetooth: Add context information for next expected sequence number
Add context information for next expected sequence number so that
analysing for acknowledgedment or request for retransmit can be done
without comparing packets manually.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2020-11-28 11:15:59 +00:00
Guy Harris 0f004f422d Add an alernative version of the 3270 Data Stream Programmer's Reference.
This one is a more straightforward scanned PDF.
2020-11-27 23:59:26 -08:00
Anders Broman 0bc4c81a11 MySQL: Enhance "field length encoded" and column info. 2020-11-27 21:32:52 +00:00
Pascal Quantin 125790b918 NAS EPS: fix a typo 2020-11-27 15:22:19 +00:00
Moshe Kaplan 0120c12c5d ringbuffer.c: avoid leaking gzFile handle
Avoid leaking the gzFile handle when g_malloc()
fails. This fixes coverity issue 1468698.
2020-11-27 14:58:29 +00:00
Stig Bjørlykke 7f4ae9a229 Qt: Load interfaces on profile change if settings have changed
Load interfaces on profile change if capture_no_interface_load or
capture_no_extcap preference have changed.
2020-11-27 11:34:24 +00:00
Huang Qiangxiong 4190ddfb7c Protobuf: add 'preload_protos' preference
If check the 'preload_protos' on, the .proto files will be loaded
on startup. That make tshark can use 'protobuf fields as wireshark
fields' feature by providing protobuf field name in display filter
(-Y option).

close #17036
2020-11-26 20:13:11 +00:00
John Thacker 358377bd43 gsm_sms: Get address string with tvb_get_string_enc
Get address fields in GSM 03.40 (GSM SMS TPDU) with tvb_get_string_enc()
using the new ENC_KEYPAD_ABC_TBCD encoding instead of a local implementation.
2020-11-26 19:50:15 +00:00
Pascal Quantin 98c21601f8 NAS 5GS: add a fence to info column before calling EAP dissector 2020-11-26 19:42:27 +01:00
Pascal Quantin dbb17b5233 JSON: fix a typo introduced in g2baaab6c 2020-11-26 15:14:24 +01:00
Anders Broman 2baaab6c01 json: Make it possible to filter and sub dissect json keys and data. 2020-11-26 13:10:08 +01:00
Anders Broman e782fb0200 GTPv2: Export dissect_gtpv2_ie_common() 2020-11-26 06:16:49 +00:00
Guy Harris 8e2815bfc0 Don't assume macOS version numbers are of the form 10.N.
Big Sur goes to 11, and it appears that next year's (San Juan Capistrano?)
will go to 12, and so on.

Split version numbers into major and minor, and do version-number
comparison (alas, whilst CMake has that built in, the Bourne shell
doesn't, and neither does the Bourne-again shell).

This should fix issue #17043.
2020-11-25 18:23:28 -08:00
Martin Mathieson de99214e43 DCT2000: misc changes
- For NR/LTE RRC messages, add cellGroup Id
- NRUP messages appearing as hex in comments passed to dissector
2020-11-26 00:56:36 +00:00
Alexis La Goutte c4343ed60b IPv6: fix clang warning 2020-11-25 22:31:46 +00:00
Anders Broman b26512e33a tvb: Add base64_tvb_to_new_tvb() 2020-11-25 22:09:06 +00:00
Guy Harris f1ab1f0b5b Put the XXX_pipe_open_live() calls after the file type determination.
That way, there's only one pcap_pipe_open_live() call, as was the case
in the past.
2020-11-25 12:43:00 -08:00
Guy Harris eb02336e28 Update a comment, and add some comments. 2020-11-25 11:58:26 -08:00
Guy Harris 884bae3317 Fix previous change to use WSAGetLastError() only on sockets.
On Windows, we do pipe I/O in a separate thread, as we can't do select()
- or even WaitForMultipleObjects() - on pipes, so
cap_pipe_read_data_bytes() is used only on sockets.

Update a comment.
2020-11-25 11:25:10 -08:00
Guy Harris 84bdd086cd Make sure a pcapng block's length is a multiple of 4.
We check for that when *writing* the block, but the error message for
that is not at all clear; check for it after we've read the block total
length, and report it with a better error message.

Clean up some other error messages while we're at it.
2020-11-25 10:41:05 -08:00
Jaap Keuter 7a12a663c3 Refine issue templates even more
Update the templates to help users even more to create first-time-right
issue reports.
2020-11-25 09:43:18 +00:00
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