<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/wireshark/extcap/udpdump.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>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>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>extcap: reword error message referencing captype</title>
<updated>2021-10-13T05:03:31+00:00</updated>
<author>
<name>Chuck Craft</name>
<email>bubbasnmp@gmail.com</email>
</author>
<published>2021-10-13T02:17:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=a3625ec9f6132102e32aeba4ec18e43f7c16c071'/>
<id>a3625ec9f6132102e32aeba4ec18e43f7c16c071</id>
<content type='text'>
There exists a program called "captype" but it's not used here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There exists a program called "captype" but it's not used here.
</pre>
</div>
</content>
</entry>
<entry>
<title>ws_getopt: Rename struct and macros</title>
<updated>2021-09-30T13:59:28+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-09-29T17:32:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=5362d0c31b83fd7eb812f3215918504496c2f56a'/>
<id>5362d0c31b83fd7eb812f3215918504496c2f56a</id>
<content type='text'>
This is part of the API and should also be renamed to avoid conflicts.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is part of the API and should also be renamed to avoid conflicts.
</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>Move LINKTYPE_WIRESHARK_UPPER_PDU definitions to a separate header.</title>
<updated>2021-08-20T09:18:19+00:00</updated>
<author>
<name>Guy Harris</name>
<email>gharris@sonic.net</email>
</author>
<published>2021-08-20T09:17:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=4e80643cc01454e3f7bef64e30cf6bf784c6b7d3'/>
<id>4e80643cc01454e3f7bef64e30cf6bf784c6b7d3</id>
<content type='text'>
Have wsutil/exported_pdu_tlvs.h define the LINKTYPE_WIRESHARK_UPPER_PDU
TLV type and length values, as well as the port type values written to
files in EXP_PDU_TAG_PORT_TYPE TLVs.

Update the comment that describes the LINKTYPE_WIRESHARK_UPPER_PDU TLVs
to more completely and correctly reflect reality (it was moved from
epan/exported_pdu.h to wsutil/exported_pdu_tlvs.h).

Rename those port type values from OLD_PT_ to EXP_PDU_PT_; there is
nothing "old" about them - yes, they originally had the same numerical
values as the PT_ enum values in libwireshark, but that's no longer the
case, and the two are now defined independently.  Rename routines that
map between libwireshark PT_ values and EXP_PDU_PT_ values to remove
"old" from the name while we're at it.

Don't include epan/exported_pdu.h if we only need the
LINKTYPE_WIRESHARK_UPPER_PDU definitions - just include
wsutil/exported_pdu_tlvs.h.

In extcap/udpdump.c, include wsutil/exported_pdu_tlvs.h rather than
defining the TLV types ourselves.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Have wsutil/exported_pdu_tlvs.h define the LINKTYPE_WIRESHARK_UPPER_PDU
TLV type and length values, as well as the port type values written to
files in EXP_PDU_TAG_PORT_TYPE TLVs.

Update the comment that describes the LINKTYPE_WIRESHARK_UPPER_PDU TLVs
to more completely and correctly reflect reality (it was moved from
epan/exported_pdu.h to wsutil/exported_pdu_tlvs.h).

Rename those port type values from OLD_PT_ to EXP_PDU_PT_; there is
nothing "old" about them - yes, they originally had the same numerical
values as the PT_ enum values in libwireshark, but that's no longer the
case, and the two are now defined independently.  Rename routines that
map between libwireshark PT_ values and EXP_PDU_PT_ values to remove
"old" from the name while we're at it.

Don't include epan/exported_pdu.h if we only need the
LINKTYPE_WIRESHARK_UPPER_PDU definitions - just include
wsutil/exported_pdu_tlvs.h.

In extcap/udpdump.c, include wsutil/exported_pdu_tlvs.h rather than
defining the TLV types ourselves.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the wsutil/pint.h functions to fill in "exported PDU" headers.</title>
<updated>2021-08-20T07:35:33+00:00</updated>
<author>
<name>Guy Harris</name>
<email>gharris@sonic.net</email>
</author>
<published>2021-08-20T07:35:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=d679564d7b326ff6415ef791929d16c0b36841e4'/>
<id>d679564d7b326ff6415ef791929d16c0b36841e4</id>
<content type='text'>
That makes the code cleaner, including making it clearer that the fields
in those headers are big-endian.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
That makes the code cleaner, including making it clearer that the fields
in those headers are big-endian.
</pre>
</div>
</content>
</entry>
<entry>
<title>wslog: Check environment initialization for errors</title>
<updated>2021-06-25T23:18:26+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-06-24T20:20:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=c6a920686ce59ea8b29f7a61f8197077baedf304'/>
<id>c6a920686ce59ea8b29f7a61f8197077baedf304</id>
<content type='text'>
Initialiaze the cmdarg error stream earlier.

Dumpcap also needs to know earlier if it is running in capture
child mode.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Initialiaze the cmdarg error stream earlier.

Dumpcap also needs to know earlier if it is running in capture
child mode.
</pre>
</div>
</content>
</entry>
<entry>
<title>wslog: Check if we are initialized and add missing inits</title>
<updated>2021-06-21T16:03:29+00:00</updated>
<author>
<name>João Valverde</name>
<email>j@v6e.pt</email>
</author>
<published>2021-06-19T18:44:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=759bb234d0eb4d36947213fca2bc14e386c1cc8f'/>
<id>759bb234d0eb4d36947213fca2bc14e386c1cc8f</id>
<content type='text'>
Instead of receiving the program name from GLib, pass it explicitly
to ws_log_init() instead  and use that to initialize the GLib program
name.

ws_log_parse_args() will now exit the program when it encounters an
argument error if exit_failure &gt;= 0.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of receiving the program name from GLib, pass it explicitly
to ws_log_init() instead  and use that to initialize the GLib program
name.

ws_log_parse_args() will now exit the program when it encounters an
argument error if exit_failure &gt;= 0.
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace g_log() calls with ws_log()</title>
<updated>2021-06-16T12:50:27+00:00</updated>
<author>
<name>João Valverde</name>
<email>joao.valverde@tecnico.ulisboa.pt</email>
</author>
<published>2021-06-14T23:06:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=39df3ae3c0ff12da5f5630b89a147b65588cc4c2'/>
<id>39df3ae3c0ff12da5f5630b89a147b65588cc4c2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
