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

2018-07-31 Thread Denis Ovsienko
On Fri, 13 Jul 2018 08:40:47 +0100 Denis Ovsienko wrote > 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

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

2018-07-18 Thread Petr Vorel
Hi Denis, > On Fri, 13 Jul 2018 08:40:47 +0100 Denis Ovsienko > wrote > > 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];

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

2018-07-17 Thread Denis Ovsienko
On Fri, 13 Jul 2018 08:40:47 +0100 Denis Ovsienko wrote > 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

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)) > > +

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

2018-07-12 Thread Petr Vorel
Hi Guy, > What happens if you capture traffic on machine A and print it on machine B, > where machines A and B have different sets of network interfaces? > (This is why pcapng has Interface Description Blocks - so that the list of > interfaces is part of the file, so you use *that*, rather

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

2018-07-12 Thread Guy Harris
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)) > + ND_PRINT("IFNAME %s ", ifname); > +#endif What happens if you capture traffic on machine A and