aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-11-29Add files with WS_DLL_PUBLIC to DoxygenMoshe Kaplan146-162/+151
Add @file markers for most files that contain functions exported with WS_DLL_PUBLIC so that Doxygen will generate documentation for them.
2021-11-29Signal-PDU: Make some functions staticMartin Mathieson1-4/+4
2021-11-29Move string_or_null() to wsutilJoão Valverde4-17/+2
2021-11-29epan/str_util: Remove unused functionsJoão Valverde3-110/+0
Remove ws_strdup_escape_char(). I don't think it is generic enough to keep, and it does not seem very efficient either. Remove string_replace(). This function was used in the GTK GUI.
2021-11-29Fix Debian symbolsJoão Valverde2-2/+1
2021-11-29wsutil: Add more character escapes to ws_escape_string()João Valverde2-2/+13
Add whitespace and other escapes for a better display of strings in the UI.
2021-11-29epan: Rewrite ws_escape_string() to use wmemJoão Valverde4-35/+35
Return a wmem-allocated string. Add boolean argument to enable/disable adding double quotes.
2021-11-29Move escape_string() to wsutilJoão Valverde6-74/+95
Move this utility function to wsutil. Rename to ws_escape_string(). Also add tests.
2021-11-29Fix some spelling errorsMartin Mathieson7-15/+67
2021-11-29:q!Marius David1-1/+1
2021-11-29Add new netflow fields for Keysight/Ixia.Marius David1-0/+52
2021-11-29jpeg: implement dissection of large Exif IFD valuesРоман Донченко1-10/+121
That is, those that don't fit in the offset field. This includes support for RATIONAL/SRATIONAL types.
2021-11-29Fixed the ERSPAN Cisco marker packet dissectorStéphane Lapie1-9/+22
2021-11-29Qt: Qt6.2 compatibility fixesTomasz Moń14-54/+68
Wireshark successfully compiles on Windows with Qt6.2 with following cmake options: -DUSE_qt6=ON -DDISABLE_ERROR=ON QCustomPlot QT 6.2 patch is taken from QCustomPlot forum post by miccs.
2021-11-28OS Version Info: Improve Windows detectionUli Heilmeier1-9/+34
Figuring out the right Windows version for 10/11 or Server 2016/2019/2022 by using the build number.
2021-11-28LTE RLC graph: plug possible memory leakJaap Keuter1-7/+9
2021-11-28NSIS: Remove some confusing error message text.Gerald Combs1-1/+1
If the Visual C++ Redistributable installation fails, don't point users to KB2999226. It applied to Windows 8.1 and earlier, and is more likely to cause confusion than help fix the problem. Ping #17748.
2021-11-28AUTOSAR I-PduM: list of hash table keys freed (fixing memory leak)Dr. Lars Völker1-0/+6
This patch does for packet-autosar-ipdum.c what MR !5196 does to packet-signal.c
2021-11-28AUTOSAR I-PduM: remove unneeded dynamic key allocationDr. Lars Völker1-29/+12
Minor optimization and cleanup of the code. Similar to cleanup in packet-signal-pdu.c. See MR !5236.
2021-11-28Signal-Pdu: list of hash table keys freed (fixing memory leak)Dr. Lars Völker1-0/+10
2021-11-28Signal-Pdu: Cleanup Functions Proto Reg HandoffDr. Lars Völker1-13/+8
After refactoring in an old patch some features were moved into new functions starting with proto_reg_handoff. This was wrong and is corrected by this patch.
2021-11-28[Automatic update for 2021-11-28]Gerald Combs7-56/+4355
Update manuf, services enterprise numbers, translations, and other items.
2021-11-28Signal-Pdu: optimization to reduce strcmpsDr. Lars Völker1-9/+38
This patch converts the data type from char* to enum when loading the config to speed up the packet dissection.
2021-11-28FlexRay: Fixing tvb_bytes_to_str_punct warningsDr. Lars Völker1-1/+3
2021-11-28AUTOSAR I-PDU Multiplexer: remove dead codeDr. Lars Völker1-1/+0
2021-11-28Signal-Pdu: return the parsed length (bugfix)Dr. Lars Völker1-1/+1
Before the code was return length - (offset + 1). This did not make any sense and caused lots of problems.
2021-11-28Signal-Pdu: remove unneeded dynamic key allocationDr. Lars Völker1-55/+20
Minor optimzation and cleanup of the code.
2021-11-28Move two functions from epan to wsutil/str_utilJoão Valverde12-81/+106
Move epan_memmem() and epan_strcasestr() to wsutil/str_util. Rename to ws_memmem() and ws_strcasestr(). Add compile time check for a system implementation and use that if available. We invoke those functions using a wrapper to avoid exposing _GNU_SOURCE outside of the implementation.
2021-11-28Qt: Add missing QRegularExpression includeTomasz Moń1-0/+2
2021-11-28Foundation Fieldbus: handle multiple PDUs per UDP payloadJaap Keuter1-17/+27
2021-11-28http2: fix building error caused by fake header feature without nghttp2Huang Qiangxiong1-1/+1
Fix a building error caused by fake header feature of MR 4877 when building without nghttp2 library.
2021-11-27wmem: Use better names in the APIJoão Valverde5-18/+18
2021-11-27dfilter: Better representation for charconstJoão Valverde3-6/+26
2021-11-27tvbuff: Use iso8601_to_nstimeJohn Thacker1-178/+109
Have tvb_get_string_time use iso8601_to_nstime for ENC_ISO_8601_DATE_TIME (which seems to be the only time in a string encoding any built in dissector actually uses, in syslog). It is strictly superior; among other things it handles fractional seconds. Also, tvbuff.c does not use strptime, so remove that include.
2021-11-27dfilter: Need to handle a charconst on the LHSJoão Valverde2-0/+68
2021-11-27epan: Add binary search to introspection APIJoão Valverde6-15/+49
2021-11-27epan: Add ipproto.h to instrospection enumsJoão Valverde3-0/+146
2021-11-27epan: Initialize wiretapJoão Valverde3-9/+15
Clients of libwireshark should not be required to initialize explicitly wiretap, if they don't use it themselves.
2021-11-26wustil: Fix timezone handling in iso8601_to_nstimeJohn Thacker1-2/+9
Convert the tm struct to nstime first, then apply the timezone offset, because applying the offset to the hours and minutes fields directly can require carrying or borrowing in base 24 and 60 arithmetic.
2021-11-27wsutil: Clarify NT epoch explanation in commentJohn Thacker1-8/+17
2021-11-26epan: Add introspection API to export some constantsJoão Valverde5-0/+441
C is notoriously difficult to bind from other languages without additional metadata. The C ABI does not include enums and macros that are an essential component of the API. To make Wireshark instrospectable and more binding friendly include an introspection API to export enums and integer macros. To avoid the tedious need to manually keep the code up to date it uses the excellent pyclibrary python package to automatically parse C headers and extract this data. This is not a process that should be done automatically during the build. This could be used for example to replace most of the wslua make-init-lua.pl perl script, which tries to do the same thing using regular expressions. Besides the downside of using Perl using regular expressions is inferior to pyclibrary in 2 ways: 1) pyclibrary understands most of C99 grammar so it is much more powerful; 2) pyclibrary has a specific API to extract "values" (enums and constants) automagically. We just need to take care to use only integer values, for our purposes.
2021-11-26RTMPT: Fix infinite loops harder.John Thacker1-0/+14
Just break out of this loop if we wraparound sequence numbers in the middle of a segment. That guarantees that the sequence of lookups in the tree with _le will terminate at some point. This probably makes the dissection a little worse in a few cases with sequence number wrap around but non erroneous sequence numbers, so a more complete fix would be ideal. Fix #17749, at least the infinite loop.
2021-11-26HTTP2/GRPC: support using fake headers if first HEADERS frame is missingHuang Qiangxiong4-1/+302
Add an UAT for configuring fake headers according to the server port, stream id and direction of the long-lived stream that we start capturing packets after it is established. That helps to parsing the DATAs captured subsequently. A testcase also added. close #17691
2021-11-26RTPS: Dissect PID_DEFAULT_MULTICAST_LOCATOR for vendors other than RTIPaul Tyler1-22/+24
2021-11-26CMakeLists.txt: Fix enabling the use of C++ 2017 with MSVCJoerg Mayer1-2/+2
2021-11-26at: Fix typo in cme_error_valsStig Bjørlykke2-3/+3
Also remove a leading space in at_type_vals.
2021-11-26wsutil: Prevent buffer overflow in iso8601_to_nstimeJohn Thacker1-12/+31
Don't blindly examine the fifth byte in the input string without testing earlier bytes. Instead, process the year by hand before calling sscanf. ISO 8601 times don't switch between Basic and Extended format in the middle, so for the later possible buffer overflows just use the previously determined format.
2021-11-26wmem: Fix filename in header commentJohn Thacker1-1/+1
If the name is going to be in the header, might as well spell it correctly
2021-11-26wsar: Document prefs.hMoshe Kaplan1-75/+408
Add @file to prefs.h so it's included by Doxygen. Then documented the associated functions.
2021-11-26Websocket: do not register proto_reg_handoff_websocket() for preference changePascal Quantin1-1/+1
It is not required and fixes a "Protocol Websocket is already registered in tcp table" warning at startup