[tcpdump-workers] About LINKTYPE_LINUX_SLL / LINKTYPE_LINUX_SLL2

2018-07-13 Thread Francois-Xavier Le Bail
Hello, In http://www.tcpdump.org/linktypes/LINKTYPE_LINUX_SLL.html and http://www.tcpdump.org/linktypes/LINKTYPE_LINUX_SLL2.html, there is: "If there are more than 8 bytes, only the first 8 bytes are present, and if there are fewer than 8 bytes, there are padding bytes after the address to pad

Re: [tcpdump-workers] [RFC TCPDUMP PATCH 2/2] Add sll_ifindex into sll_header + use it to print ifname

2018-07-13 Thread Denis Ovsienko
On Thu, 12 Jul 2018 20:38:08 +0100 Guy Harris wrote > On Jul 12, 2018, at 11:33 AM, Petr Vorel wrote: > > > +#ifdef PCAP_SUPPORT_SLL_V2 > > +char ifname[IF_NAMESIZE]; > > +if (if_indextoname(EXTRACT_BE_U_6(sllp->sll_ifindex), ifname)) > > +