I\'m trying to create software that sniffes DHCP-offers from diffrent VLAN\'s and my problem is that the packets recv\'ed by me contains no VLAN-tags. I\'m using raw sockets, an
If I understand the Linux code correctly, VLAN tags are stripped from packets' payload early and stored in a field that is not accessible through the raw sockets API. Instead, try to do what wireshark does, i.e., use the pcap API.