Passing VLAN Information to app
I am trying to send VLAN Information to application using the socket of attributes (PF_PACKET,SOCK_RAW,htons(ETH_P_ALL)). when I am sending the DHCPDiscover Packet over a VLAN Interface from another machine; my application is receiving only 342 bytes instead the original 346 bytes (including VLAN Header). Kernel is removing the VLAN information of 4 bytes. How can I get the VLAN information to uspace without using the libpcap library ? Looking for some suggestions.
|