I am in need of capturing all vlan traffic irrespective of matching vlan tag.
if it is just plain Ethernet traffic, I was setting the card in promiscuous mode and able to capture all the traffic.
But in case of vlan, I am not able to set 0xfff because of the following error:
Quote:
$ sudo vconfig add eth0 4095
ERROR: trying to add VLAN #4095 to IF -:eth0:- error: Numerical result out of range
|
if i try to capture the traffic directly from eth0, I am seeing vlan tag is getting stripped and I am receiving just plain traffic.
I am sending/capturing the traffic using raw ethernet sockets:
Quote:
socket( PF_PACKET, SOCK_RAW|SOCK_NONBLOCK, htons( ETH_P_ALL ) )
|
Could some one help me understand if there is a way to receive all the vlan packets irrespective of tag ?
I am using ubuntu 16
Please let me know if any more info is required