aboutsummaryrefslogtreecommitdiffstats
path: root/epan
AgeCommit message (Collapse)AuthorFilesLines
2023-03-08ieee80211: Add a field for WLAN FlagsStig Bjørlykke1-0/+9
Add the frame control flags string to a new field. This can be used in a custom column, similar to TCP Flags.
2023-03-07ORAN FH CUS: Misc usability changesMartin Mathieson1-40/+37
2023-03-07SOME/IP: UDP Heur should not always return TRUE (BUGFIX)Dr. Lars Völker1-9/+5
The old SOME/IP Heur always returned true, even for non SOME/IP. This is fixed now.
2023-03-07SMPP: Add command/response fieldDavid Perry1-3/+26
2023-03-07USBLL: Remove unnecessary packet ends transfer checkTomasz Moń1-3/+2
Check whether last received packet ended transfer on STALL only if there was active transfer key set. This fixes failed transfer type assertion for control transfers without data stage that were STALLed by device (during status stage).
2023-03-06ORAN FH CUS: Also configure ext11 using ext12 settingsMartin Mathieson1-32/+106
2023-03-06Add Wi-SUN IEEE 802.11 KDE dissectorMathis Marion1-1/+169
This adds the following KDEs defined by the Wi-SUN FAN specification: - Pairwise Transient Key KDE (PTKID) - Group Transient Key Liveness KDE (GTKL) - Node Role KDE (NR) - LFN Group Transient Key KDE (LGTK) - LFN Group Transient Key Liveness KDE (LGTKL)
2023-03-06Support Wi-SUN EAPOL Key Data dissectionMathis Marion1-1/+8
The Wi-SUN FAN specification describes the format of the EAPOL-Key frame in section 6.5.2.2 (Authentication and PMK Installation Flow): Descriptor Type = 2 Key Information: 1. Key Descriptor Version = 2 2. Key Type = 0 3. Install = 0 4. Key Ack = 0 5. Key MIC = 0 6. Secure = 0 7. Error = 0 8. Request = 1 9. Encrypted Key Data = 0 10. SMK Message = 0 11. Reserved = 0 Key Length = 0 Key Replay Counter = see [IEEE802.11] section 11.6.2. Key Nonce = 0 EAPOL-Key IV = 0 Key RSC = 0 Key MIC = 0 Key Data Length = length of Key Data field in octets. Key Data = PMKID KDE if the PMK is live, PTKID KDE if the PTK is live, GTKL KDE, Node Role KDE, and LGTKL KDE. The current dissector will try do decrypt if the Key Type is 0 while the Encrypted Key Data is unset, which appears to be for supporting non-standard WPA implementations. The Key Data is not encrypted in Wi-SUN, so a workaround is made to dissect the Key Data if the Key Length is 0.
2023-03-06Add id-kp-wisun-fan-device object identifierMathis Marion1-0/+3
Defined in the Wi-SUN FAN specification as: id-kp-wisun-fan-device ::= { iso(1) identified-organization(3) dod(6) internet(1) private(4) enterprise(1) Wi-SUN (45605) FieldAreaNetwork(1) }
2023-03-06PFCP: add BBF TR-459.2 and TR-459.3 IEsAndreas Schultz1-2/+376
2023-03-06PFCP: readd TP Created NAT BindingAndreas Schultz1-0/+1
Was dropped in error in ccbc0d5fe9355177dd88b8e28551021da3d1ee2d
2023-03-06colors: Improve handling of errorsJohn Thacker2-6/+2
Pop up a dialog about bad coloring rules when reading the file (e.g., when first starting Wireshark), rather than waiting until you try to edit them. Have that dialog have details of the problem with the filter instead of a generic message. The report_warning code will consolidate multiple warnings into one if more than one filter has an error, rather than have lots of pop-ups. Since the dialog (or console message, in the unlikely event that somehow the colorfilters are read in a CLI tool) is called from the color filters code, get rid of the separate non-specific pop-up in ColoringRulesDialog and the special preference for having a bogus filter. Now, if the user has a bogus filter in the current profile's colorfilter, they'll get a useful pop-up warning at startup, when that filter is disabled. For filters imported / copied from other profiles through the coloring rules dialog, they'll get the same useful pop-up. For trying to enable a disabled coloring rules with an error, or inserting a *new* coloring rule with invalid filter expression (despite the editor's Red background warning about an invalid expression), there's already both the hint at the bottom of the screen and the OK button becomes disabled. (Maybe the hint could be larger or bold or something when there's an error.) Fix #14906. Fix #15034
2023-03-06ORAN FH CUS: Section ext11 configured by ext13Martin Mathieson1-40/+92
2023-03-06ieee80211: Save AKM_KEY for tag number 221Stig Bjørlykke1-0/+1
Tag number 221 (Microsoft WPA Information Element) contains an AKM type. Save this to fix wlan decryption when this tag is used by Access Point.
2023-03-05UDS: Show unparsed bytesDr. Lars Völker1-260/+173
This patch cleans up the offset and length handling to allow showing unparsed bytes.
2023-03-05ORAN FH CUS: ext11 bundles can be configured using ext6Martin Mathieson1-41/+157
2023-03-05TECMP: cleanup endianness for 1 Byte fieldsDr. Lars Völker1-3/+2
2023-03-04VNC: Fix accidental offset increment in RREJohn Thacker1-1/+0
This was accidentally added in f4242568896a611cfc563c90b57a421ad2805f31 and is clearly incorrect: https://www.rfc-editor.org/rfc/rfc6143#section-7.7.3 Fix #18883
2023-03-04Follow: Remove some unused codeJohn Thacker1-7/+0
2023-03-03UDS: Use wmem to create a stringJohn Thacker1-1/+1
Related to #18878
2023-03-03UDS: fixing typos indification and sub-functionDr. Lars Völker1-11/+11
2023-03-03epan: Do not try to add a bits item with negative bit lengthJohn Thacker1-2/+9
A negative number of bits in a bit item isn't allowed. Treat it as a very large number (i.e., as unsigned), and throw a ReportedBoundsError. This was already happening in most cases, but not in the edge case of a number of bits between -1 and -7 (which was being rounded up to 0 octets and passed our length checks.) Fix #18877
2023-03-02DRDA: Add SQL Statement LengthAlexis La Goutte1-1/+8
Add missing length to SQL Statement Close: 18876
2023-03-01file-pcapng-darwin: fix Dead Store found by Clang AnalyzerAlexis La Goutte1-2/+0
2023-02-28epan: Expand on comment regarding g_atomic_pointerJohn Thacker1-2/+3
Related to #17753
2023-02-28Revert "Reset the "current conversation elements" after each dissector call"John Thacker1-10/+0
We do want to reset these (and probably most other elements of the packet_info struct) when starting to process a new PDU at the same protocol level as the most recently processed dissector. However, find_conversation_pinfo() is used in the GUI and elsewhere to get the final value of conversation and address information, so we don't want to reset the values after the last PDU. Revert this until we can find a better general way of handling this. (!8013 handles the specific PPP case for #18278.) Perhaps eventually there should be some separation between addresses and conversation information used for the next dissector called, and the value for the packet used after the packet is fully dissected (by the GUI, etc.) This reverts commit 80e287f82c084617b5624ceeba71de7f260f8d44. Fix #18781.
2023-02-28icmpv6: Show ND lifetime as time stringStig Bjørlykke1-12/+31
Show Neighbor Discovery option lifetime values as time string.
2023-02-28RTPS: make a function staticMartin Mathieson1-0/+1
2023-02-28UDS: cleanup structureDr. Lars Völker1-82/+39
Remove ETTs that do not match the standard.
2023-02-28dfilter: Use ws_debugJohn Thacker1-6/+3
Use ws_debug instead of ws_log(WS_LOG_DOMAIN, LOG_LEVEL_DEBUG) in dfilter_compile_real, so that the logging is optimized away in a Release build.
2023-02-27[Automatic update for 2023-02-26]Gerald Combs2-25/+2328
Update manuf, services enterprise numbers, translations, and other items.
2023-02-27ppp: Reset conversation elements between each frame in raw HDLC streamJohn Thacker1-0/+24
When breaking up a raw HDLC byte stream into frames, each frame should be treated separately, much like it were a new frame in an ordinary capture file. That means that many of the elements in the big packet_info struct should be reset for each new frame. In particular, the "most recent conversation" information stored in conv_elements and conv_addr_port_endpoints should be reset. This is not that different to how multiple PDUs should be handled in some other protocols (DVB-S2, TCP, etc.). When a frame contains protocol layers A, B, then C, we should distinguish between "C is contained within B within A" and "C and B are consecutive PDUs both contained within A." Unfotunately, it's difficult to handle this in a general way, as we don't know when calling the dissector for a PDU whether another PDU will follow or not. If something is the last PDU, we don't want to reset the last addresses/ports/conversation, so that we can access them for display purposes, conversation filters, the related packets line, follow stream, etc., many of which use find_conversation_pinfo Fix #18278.
2023-02-26UDS: fix WDBI assertDr. Lars Völker1-7/+10
2023-02-26UDS: Fixing dissector bugs (tvb_bytes_to_str_punct with 0 length)Dr. Lars Völker1-9/+12
This patch fixes 3 bugs where tvb_bytes_to_str_punct length was not checked. Fixes: #18865
2023-02-26[Automatic update for 2023-02-19]Gerald Combs1-14/+85
Update manuf, services enterprise numbers, translations, and other items. services failed.
2023-02-26ORAN FH CUS: Add section extension type 2Martin Mathieson1-1/+192
2023-02-26epan: Determine if an active color filter has a hfid/protoJohn Thacker4-1/+125
Add functions to test if a compiled dfilter considers an hfid or a protocol id interesting. Use those to define functions to test if any enabled color filter considers an hfid or a protocol interesting.
2023-02-25NR-RRC: Fix assign instead of comparisonJohn Thacker2-8/+8
This is mean to use the value to select the correct field length. Fix Coverity CID 1517107, 1517124, 1517136, 1517164, 1517184, 1517195.
2023-02-25Fix item length in ASN.1 templates tooJohn Thacker2-2/+2
Some of the item length changes in !9655 needed to be done with the ASN.1 templates so that they don't get lost on ASN.1 regeneration. Fixup ed8ee831fda2df69657af95dc34a3ea6b3ef4c88
2023-02-25ORAN FH CUS: add section extensions 16, 17, 18, 21Martin Mathieson1-5/+117
2023-02-25Change some `wmem_packet_scope()` to `pinfo->pool`David Perry18-265/+266
As requested [here][1] by @eapache, help with removing calls to `wmem_packet_scope()` in favour of references to `pinfo->pool`. * Plugins chosen semi-randomly. * When a calling function already has a `pinfo` argument, use that. * Remove `_U_` from its signature if it was there. * If a function seems narrowly focused on getting and (possibly) returning memory, change the function signature to take a `wmem_allocator_t *`. * If it seems more focused on packet-based operations, pass in a `packet_info *` instead and use `pinfo->pool` within. * If there are several functions defined with the same call signature, add `pinfo _U_` to the argument list of similar functions in order to maintain clarity/symmetry. [1]: https://www.wireshark.org/lists/wireshark-dev/202107/msg00052.html
2023-02-24TECMP: Changing voltage from string to doubleDr. Lars Völker1-3/+4
2023-02-24ORAN FH CUS: Add ext20Martin Mathieson1-4/+122
2023-02-24UDS: Fixing names of RDTCI subfunctions 0x0b-0x0eDr. Lars Völker1-2/+6
This fixes the dissection of RDTCI subfunction. Fixes: #18873
2023-02-24fix conflictAlexis La Goutte2-2/+2
2023-02-24PTP: Fix wrap around issue in PTP analysis codeDr. Lars Völker1-19/+34
The PTP analysis code did not support very long traces, in which the PTP seqid wrapped around (~2.27 hours with 125ms intervals). This is fixed by ensuring that PTP messages are only matched, if less than 60s apart. Fixes: #18872
2023-02-24Fix more warnings from tools/check_typed_item_calls.pyMartin Mathieson13-113/+114
2023-02-24protobuf: fix typoAlexis La Goutte1-1/+1
mssage => message
2023-02-24protobuf: Fix Clang Warning AnalyzerAlexis La Goutte1-2/+1
line 764: Value stored to 'subtree' is never read
2023-02-23TECMP: Fix voltage representation in vendor dataDr. Lars Völker1-1/+1
Fixes: #18871