<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/wireshark/extcap/extcap-base.c, branch master</title>
<subtitle>WIP Patches to add a samsung-ipc dissector to Wireshark 
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/'/>
<entry>
<title>Extcap logging: Corrected incorrect selector default value syntax</title>
<updated>2021-12-21T21:05:22+00:00</updated>
<author>
<name>j.novak@netsystem.cz</name>
<email>j.novak@netsystem.cz</email>
</author>
<published>2021-12-21T21:05:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=df537a63fb55b30c314a054d75639d5e814eaaca'/>
<id>df537a63fb55b30c314a054d75639d5e814eaaca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace g_strdup_printf() with ws_strdup_printf()</title>
<updated>2021-12-19T21:21:58+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-12-18T18:48:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=0ccd69e530ed18ac19a4484c76bdbef94d1ab2b1'/>
<id>0ccd69e530ed18ac19a4484c76bdbef94d1ab2b1</id>
<content type='text'>
Use macros from inttypes.h.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use macros from inttypes.h.
</pre>
</div>
</content>
</entry>
<entry>
<title>wslog: Avoid logging any output to stdout</title>
<updated>2021-12-14T12:05:41+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-12-14T01:22:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=cf3cb3a695c1df24c8bf7047a63779b6e407a6a7'/>
<id>cf3cb3a695c1df24c8bf7047a63779b6e407a6a7</id>
<content type='text'>
For historical reasons our logging inherited from GLib the logging of
some levels to stdout. Namely levels "info" and "debug" (to which we
added "noisy").

However this practice is discouraged because it mixes debug output
with application output for CLI tools and breaks many common usage
scenarios, like using tshark in pipes.

This change flips the logic on wslog to make logging to stderr the
default behavior.

Extcap subprocess have a hidden dependency on stdout so add that.

Some GUI users may also have a dependency on stdout. Because
GUI tools are unlikely to depend on stdout for programatic output
add another exception for wireshark GUI, to preserve backward
compatibility.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For historical reasons our logging inherited from GLib the logging of
some levels to stdout. Namely levels "info" and "debug" (to which we
added "noisy").

However this practice is discouraged because it mixes debug output
with application output for CLI tools and breaks many common usage
scenarios, like using tshark in pipes.

This change flips the logic on wslog to make logging to stderr the
default behavior.

Extcap subprocess have a hidden dependency on stdout so add that.

Some GUI users may also have a dependency on stdout. Because
GUI tools are unlikely to depend on stdout for programatic output
add another exception for wireshark GUI, to preserve backward
compatibility.
</pre>
</div>
</content>
</entry>
<entry>
<title>extcap: Use standard --log-level and --log-file CLI options</title>
<updated>2021-12-07T23:07:55+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-12-07T10:39:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=9b0b3c118af9926e97a1033432bab18b0207cf25'/>
<id>9b0b3c118af9926e97a1033432bab18b0207cf25</id>
<content type='text'>
This should allow simultaneous logging to the console and the log
file when running an extcap from the CLI.

One difference is that the extcap error/warning dialogs in the GUI
have extra information in standard wslog format (may or may not
be a good thing).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should allow simultaneous logging to the console and the log
file when running an extcap from the CLI.

One difference is that the extcap error/warning dialogs in the GUI
have extra information in standard wslog format (may or may not
be a good thing).
</pre>
</div>
</content>
</entry>
<entry>
<title>Extcap: Improve the log handler logic</title>
<updated>2021-12-06T18:51:42+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-12-05T20:51:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=290234f3f5c9114952d80906503bddaec5ad539f'/>
<id>290234f3f5c9114952d80906503bddaec5ad539f</id>
<content type='text'>
If we have a log file write everything to the file, to provide
a complete picture in the log.

Debug information cannot be written to the parent process when
running in child mode.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we have a log file write everything to the file, to provide
a complete picture in the log.

Debug information cannot be written to the parent process when
running in child mode.
</pre>
</div>
</content>
</entry>
<entry>
<title>extcap: Register log handler conditionally</title>
<updated>2021-12-06T18:51:42+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-12-04T22:03:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=b6130cd970f15a6cb9ad9b0a80d0d1026cd8244e'/>
<id>b6130cd970f15a6cb9ad9b0a80d0d1026cd8244e</id>
<content type='text'>
This matches the original implementation and allows displaying
logs to the console, including debug information, when running
an extcap from the CLI for testing and development purposes.

This should make extcap logging bug-for-bug compatible with the
behavior before dc7f0b88bb.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This matches the original implementation and allows displaying
logs to the console, including debug information, when running
an extcap from the CLI for testing and development purposes.

This should make extcap logging bug-for-bug compatible with the
behavior before dc7f0b88bb.
</pre>
</div>
</content>
</entry>
<entry>
<title>Define more log domains for extcaps</title>
<updated>2021-12-05T00:28:26+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-12-04T22:15:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=cef5e81146d8f48bbd00725becd1fd0af7f5ce9e'/>
<id>cef5e81146d8f48bbd00725becd1fd0af7f5ce9e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix logging with extcaps</title>
<updated>2021-12-03T12:30:53+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-12-02T16:33:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=e921b804d0174b2bb5a118df8b454c0dc2e69369'/>
<id>e921b804d0174b2bb5a118df8b454c0dc2e69369</id>
<content type='text'>
Extcaps require a log file when invoked in child mode. It also has
a specific flag to enable debugging, other that the wslog options.

Fix the logging to:
  1. Enable debug log level if --debug is used.
  2. Do not emit messages to the stderr if debug is enabled.

This brings extcap logging to the same feature level it had before
wslog replaced GLib logging.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Extcaps require a log file when invoked in child mode. It also has
a specific flag to enable debugging, other that the wslog options.

Fix the logging to:
  1. Enable debug log level if --debug is used.
  2. Do not emit messages to the stderr if debug is enabled.

This brings extcap logging to the same feature level it had before
wslog replaced GLib logging.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the musl in-tree getopt_long() everywhere</title>
<updated>2021-09-16T23:43:54+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-07-26T16:22:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=8df2a73594fbcc812f4ea22a72ab7a79bfb63dc3'/>
<id>8df2a73594fbcc812f4ea22a72ab7a79bfb63dc3</id>
<content type='text'>
Besides the obvious limitation of being unavailable on Windows,
the standard is vague about getopt() and getopt_long() has many
non-portable pitfalls and buggy implementations, that increase
the maintainance cost a lot. Also the GNU libc code currently
in the tree is not suited for embedding and is unmaintainable.

Own maintainership for getopt_long() and use the musl implementation
everywhere. This way we don't need to worry if optreset is available,
or if the $OPERATING_SYSTEM version behaves in subtly different ways.

The API is under the Wireshark namespace to avoid conflicts with
system headers.

Side-note, the Mingw-w64 9.0 getopt_long() implementation is buggy
with opterr and known to crash. In my experience it's a headache to
use the embedded getopt implementation if the system provides one.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Besides the obvious limitation of being unavailable on Windows,
the standard is vague about getopt() and getopt_long() has many
non-portable pitfalls and buggy implementations, that increase
the maintainance cost a lot. Also the GNU libc code currently
in the tree is not suited for embedding and is unmaintainable.

Own maintainership for getopt_long() and use the musl implementation
everywhere. This way we don't need to worry if optreset is available,
or if the $OPERATING_SYSTEM version behaves in subtly different ways.

The API is under the Wireshark namespace to avoid conflicts with
system headers.

Side-note, the Mingw-w64 9.0 getopt_long() implementation is buggy
with opterr and known to crash. In my experience it's a headache to
use the embedded getopt implementation if the system provides one.
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace g_assert() with ws_assert()</title>
<updated>2021-06-19T01:23:31+00:00</updated>
<author>
<name>João Valverde</name>
<email>joao.valverde@tecnico.ulisboa.pt</email>
</author>
<published>2021-06-18T18:21:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=0e50979b3f45250ee1dacd5c826a281ad9a9c460'/>
<id>0e50979b3f45250ee1dacd5c826a281ad9a9c460</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
