tcpdump mailing list archives
Re: [RFC TCPDUMP PATCH 2/2] Add sll_ifindex into sll_header + use it to print ifname
From: Guy Harris <gharris () sonic net>
Date: Thu, 12 Jul 2018 12:38:08 -0700
On Jul 12, 2018, at 11:33 AM, Petr Vorel <pvorel () suse cz> 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 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 than the configuration of interfaces on the machine running the program reading the capture, to get interface names.) Perhaps this should be done *only* for live captures, *not* for reading savefiles. _______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- [RFC TCPDUMP PATCH 0/2] LINKTYPE_LINUX_SLL2 implementation Petr Vorel (Jul 12)
- [RFC TCPDUMP PATCH 1/2] Update configure Petr Vorel (Jul 12)
- [RFC TCPDUMP PATCH 2/2] Add sll_ifindex into sll_header + use it to print ifname Petr Vorel (Jul 12)
- Re: [RFC TCPDUMP PATCH 2/2] Add sll_ifindex into sll_header + use it to print ifname Guy Harris (Jul 12)
- Re: [RFC TCPDUMP PATCH 2/2] Add sll_ifindex into sll_header + use it to print ifname Petr Vorel (Jul 12)
- Re: [RFC TCPDUMP PATCH 2/2] Add sll_ifindex into sll_header + use it to print ifname Denis Ovsienko (Jul 13)
- Re: [RFC TCPDUMP PATCH 2/2] Add sll_ifindex into sll_header + use it to print ifname Denis Ovsienko (Jul 17)
- Re: [RFC TCPDUMP PATCH 2/2] Add sll_ifindex into sll_header + use it to print ifname Petr Vorel (Jul 18)
- Re: [RFC TCPDUMP PATCH 2/2] Add sll_ifindex into sll_header + use it to print ifname Denis Ovsienko (Jul 31)
- Re: [RFC TCPDUMP PATCH 2/2] Add sll_ifindex into sll_header + use it to print ifname Guy Harris (Jul 12)
- Re: [RFC TCPDUMP PATCH 0/2] LINKTYPE_LINUX_SLL2 implementation Petr Vorel (Jul 12)