tcpdump mailing list archives

Re: LINKTYPE_LINUX_SLL2 implementation (libpcap & tcpdump)


From: Petr Vorel <pvorel () suse cz>
Date: Wed, 11 Jul 2018 16:06:34 +0200

Hi,

1) Keeping LINKTYPE_LINUX_SLL [2] altogether with LINKTYPE_LINUX_SLL2, compile
both (having one of them as default for linux, second allow to use with -y switch
in tcpdump).
2) Keeping LINKTYPE_LINUX_SLL [2] altogether with LINKTYPE_LINUX_SLL2 but
compile only one of them (allow to chose via --with-pcap).
3) Replace LINKTYPE_LINUX_SLL with LINKTYPE_LINUX_SLL2.

I've got somehow working 3), but some tcpdump tests are failing and I guess
that's not what would be accepted due backwards compatibility.
I guess 1) is what is wanted,

Yes.

It allows somebody to produce a capture file that can be read by software that doesn't yet support SLL2.

It looks like 1) is impossible the need for both to define
pcap_create_interface(). Would it be acceptable implement 2) ?
I.e. having LINKTYPE_LINUX_SLL2 as default, but allow to compile
LINKTYPE_LINUX_SLL instead of LINKTYPE_LINUX_SLL2.

Thanks for comments / ideas / tips.

Kind regards,
Petr
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: