[tcpdump-workers] Re: Pcap debug at runtime

2024-02-24 Thread Francois-Xavier Le Bail
[Send, second try] On 02/03/2023 09:22, Francois-Xavier Le Bail wrote: > On 01/03/2023 20:28, Denis Ovsienko wrote: >> On Tue, 28 Feb 2023 17:01:51 +0100 >> Francois-Xavier Le Bail wrote: >> >>> In addition to printf()/fprintf(), here is a brand new way to help >>> debugging a program using

[tcpdump-workers] Re: Pcap debug at runtime

2024-02-24 Thread Francois-Xavier Le Bail
On 02/03/2023 09:22, Francois-Xavier Le Bail wrote: > On 01/03/2023 20:28, Denis Ovsienko wrote: >> On Tue, 28 Feb 2023 17:01:51 +0100 >> Francois-Xavier Le Bail wrote: >> >>> In addition to printf()/fprintf(), here is a brand new way to help >>> debugging a program using libpcap, currently only

[tcpdump-workers] Re: Pcap debug at runtime

2023-03-18 Thread Denis Ovsienko
On Tue, 14 Mar 2023 08:33:40 +0100 Francois-Xavier Le Bail wrote: > After an update based on a Denis's idea, the configuration use now an > environment variable instead of configurations files. > If the environment variable INSTRUMENT is > - unset or set to an empty string, print nothing, like

[tcpdump-workers] Re: Pcap debug at runtime

2023-03-14 Thread Francois-Xavier Le Bail
On 28/02/2023 17:01, Francois-Xavier Le Bail wrote: > On 20/02/2023 21:18, Guy Harris wrote: >> On Feb 20, 2023, at 12:15 PM, Paschal Chukwuebuk Amusuo >> wrote: >> >>> Please, is there a way to print out debug statements at runtime when using >>> pcap? >> >> Debug statements in your program?

[tcpdump-workers] Re: Pcap debug at runtime

2023-03-02 Thread Francois-Xavier Le Bail
On 01/03/2023 20:28, Denis Ovsienko wrote: > On Tue, 28 Feb 2023 17:01:51 +0100 > Francois-Xavier Le Bail wrote: > >> In addition to printf()/fprintf(), here is a brand new way to help >> debugging a program using libpcap, currently only tested on Debian >> Linux (stable). >> >> (Similar method

[tcpdump-workers] Re: Pcap debug at runtime

2023-03-01 Thread Denis Ovsienko
On Tue, 28 Feb 2023 17:01:51 +0100 Francois-Xavier Le Bail wrote: > In addition to printf()/fprintf(), here is a brand new way to help > debugging a program using libpcap, currently only tested on Debian > Linux (stable). > > (Similar method to the one available with tcpdump and tcpslice.) > >

[tcpdump-workers] Re: Pcap debug at runtime

2023-02-28 Thread Francois-Xavier Le Bail
On 20/02/2023 21:18, Guy Harris wrote: > On Feb 20, 2023, at 12:15 PM, Paschal Chukwuebuk Amusuo > wrote: > >> Please, is there a way to print out debug statements at runtime when using >> pcap? > > Debug statements in your program? Add printf() or fprintf(stderr, ...) or... > calls to your

[tcpdump-workers] Re: Pcap debug at runtime

2023-02-20 Thread Paschal Chukwuebuk Amusuo
Thank you, I’ll do this. From: Guy Harris Sent: Monday, February 20, 2023 3:18:24 PM To: Paschal Chukwuebuk Amusuo Cc: tcpdump-workers@lists.tcpdump.org Subject: Re: [tcpdump-workers] Pcap debug at runtime External Email: Use caution with attachments

[tcpdump-workers] Re: Pcap debug at runtime

2023-02-20 Thread Guy Harris
On Feb 20, 2023, at 12:15 PM, Paschal Chukwuebuk Amusuo wrote: > Please, is there a way to print out debug statements at runtime when using > pcap? Debug statements in your program? Add printf() or fprintf(stderr, ...) or... calls to your program. Debug statements in libpcap? Get the