Capture on two interfaces & VLAN header removal

22 views
Skip to first unread message

Jason Scott

unread,
Jul 21, 2022, 8:58:09 AM7/21/22
to PcapPlusPlus support
Hi There, 

We are looking to capture traffic on multiple interfaces simultaneously and then strip the VLAN headers and be able to write to stdout.

Please advise if this is something that can be done ?

Thanks
Regards 

PcapPlusPlus Support

unread,
Jul 23, 2022, 3:50:16 AM7/23/22
to Jason Scott, PcapPlusPlus support
Hi Jason,

Regarding capturing traffic on multiple interfaces: please look at this thread:

Unfortunately it looks like libpcap (which is used by PcapPlusPlus under the hood) doesn't support capturing from multiple interfaces simultaneously.
You're more than welcome to try with the new versions of libpcap and let us know if it works.

Once you manage to capture packets, stripping the VLAN headers and writing the packet content to stdout should be pretty straightforward.

Thanks,
PcapPlusPlus maintainer


--
You received this message because you are subscribed to the Google Groups "PcapPlusPlus support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pcapplusplus-sup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pcapplusplus-support/21e9fe43-be3f-4ece-9c6f-40b9828821aen%40googlegroups.com.

Szókovács Róbert

unread,
Jul 27, 2022, 3:40:08 AM7/27/22
to pcappluspl...@googlegroups.com
On 2022. 07. 23. 9:50, PcapPlusPlus Support wrote:
> Hi Jason,
>
> Regarding capturing traffic on multiple interfaces: please look at
> this thread:
> https://groups.google.com/g/pcapplusplus-support/c/cqyiiZaMCyk?pli=1
>
> Unfortunately it looks like libpcap (which is used by PcapPlusPlus
> under the hood) doesn't support capturing from multiple interfaces
> simultaneously.
> You're more than welcome to try with the new versions of libpcap and
> let us know if it works.


DPDK can do multiple interfaces.

Szo
Reply all
Reply to author
Forward
0 new messages