tcpdump mailing list archives

Re: Compile libpcap with DLT_LINUX_SLL2


From: Guy Harris via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Fri, 8 May 2020 13:22:48 -0400 (EDT)

--- Begin Message --- From: Guy Harris <gharris () sonic net>
Date: Fri, 8 May 2020 10:24:39 -0700
On Mar 31, 2020, at 2:10 AM, Francois-Xavier Le Bail <devel.fx.lebail () orange fr> wrote:

On 31/03/2020 00:04, Petr Vorel wrote:
Hi Guy,

BTW man pages (pcap.3pcap.in, pcap_datalink.3pcap.in, pcap_loop.3pcap and
pcap_next_ex.3pcap) mention only DLT_LINUX_SLL.

Fixed in commit ffb99eceefd31771a4aa89f0da5d02a3c53cfd03.
Thanks a lot!

BTW how about DLT_LINUX_SLL2 as the default? What does it block?

To avoid breaking program that cannot use SLL2, could we have an API like
pcap_set_cooked_default_ssl2() or pcap_set_default_ssl2_on_any() and use it in tcpdump?

Or have an API like pcap_set_datalink() and use it in tcpdump.

Which we already do:

        tcpdump -y LINUX_SLL -w /tmp/linux_sll_not_linux_sll2.pcap

--- End Message ---
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: