Age | Commit message (Collapse) | Author | Files | Lines |
|
Add @file markers for most files that
contain functions exported with
WS_DLL_PUBLIC so that Doxygen will
generate documentation for them.
|
|
|
|
|
|
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.
|
|
|
|
Add whitespace and other escapes for a better display of strings
in the UI.
|
|
Return a wmem-allocated string.
Add boolean argument to enable/disable adding double quotes.
|
|
Move this utility function to wsutil. Rename to
ws_escape_string().
Also add tests.
|
|
|
|
|
|
|
|
That is, those that don't fit in the offset field. This includes support
for RATIONAL/SRATIONAL types.
|
|
|
|
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.
|
|
Figuring out the right Windows version for 10/11 or Server 2016/2019/2022
by using the build number.
|
|
|
|
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.
|
|
This patch does for packet-autosar-ipdum.c what MR !5196 does to
packet-signal.c
|
|
Minor optimization and cleanup of the code. Similar to cleanup in
packet-signal-pdu.c. See MR !5236.
|
|
|
|
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.
|
|
Update manuf, services enterprise numbers, translations, and other items.
|
|
This patch converts the data type from char* to enum when loading the
config to speed up the packet dissection.
|
|
|
|
|
|
Before the code was return length - (offset + 1). This did not make any
sense and caused lots of problems.
|
|
Minor optimzation and cleanup of the code.
|
|
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.
|
|
|
|
|
|
Fix a building error caused by fake header feature of
MR 4877 when building without nghttp2 library.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
Clients of libwireshark should not be required to initialize
explicitly wiretap, if they don't use it themselves.
|
|
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.
|
|
|
|
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.
|
|
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.
|
|
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
|
|
|
|
|
|
Also remove a leading space in at_type_vals.
|
|
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.
|
|
If the name is going to be in the header, might as well spell it
correctly
|
|
Add @file to prefs.h so it's included
by Doxygen. Then documented the associated
functions.
|
|
It is not required and fixes a "Protocol Websocket is already registered
in tcp table" warning at startup
|