title: Reading 802.1Q frames with specific VLAN tag under Linux
body: <p>Is there any way to receive data of a specific VLAN tagged frame? Currently I am receiving all VLAN tagged frames by giving htons(0x22f0) as input to socket() function like:</p>
  
  <pre><code>m_iSocketDesc = socket(AF_PACKET, SOCK_RAW, htons(0x22f0));
  numBytes = recvfrom(m_iSocketDesc, message_data, 1522, 0, NULL, 0)
  </code></pre>