Re: vlan missing with AF_PACKET and auxdata

2018-10-02 Thread Michael Walle
Am 2018-09-24 14:01, schrieb Michael Walle: Hi, I'm using the AF_PACKET socket with setsockopt(PACKET_AUXDATA) to get the incoming VLAN tag. Correct me if I'm wrong, but as far as I see the first VLAN tag is always stripped - either in hardware or in net/core/dev.c in __netif_receive_skb_core()

Re: vlan missing with AF_PACKET and auxdata

2018-09-24 Thread Michael Walle
Am 2018-09-24 14:22, schrieb Jan Grashöfer: Hi Michael, On 24/09/2018 14:01, Michael Walle wrote: I'm using the AF_PACKET socket with setsockopt(PACKET_AUXDATA) to get the incoming VLAN tag. Correct me if I'm wrong, but as far as I see the first VLAN tag is always stripped - either in hardware

Re: vlan missing with AF_PACKET and auxdata

2018-09-24 Thread Jan Grashöfer
Hi Michael, On 24/09/2018 14:01, Michael Walle wrote: I'm using the AF_PACKET socket with setsockopt(PACKET_AUXDATA) to get the incoming VLAN tag. Correct me if I'm wrong, but as far as I see the first VLAN tag is always stripped - either in hardware or in net/core/dev.c in __netif_receive_skb

vlan missing with AF_PACKET and auxdata

2018-09-24 Thread Michael Walle
Hi, I'm using the AF_PACKET socket with setsockopt(PACKET_AUXDATA) to get the incoming VLAN tag. Correct me if I'm wrong, but as far as I see the first VLAN tag is always stripped - either in hardware or in net/core/dev.c in __netif_receive_skb_core() - and stored in skb->vlan_tci. Therefore,