title: Sending raw packets over WiFi on Linux (C/C++)
body: <p>I would like to experiment with software in C/C++ to send <em>raw</em> 802.11 packets from my WiFi (potentially being able to change the MAC address and so on).</p>
  
  <p>Basically I would like to implement something <em>very similar</em> as <a href="https://austinmarton.wordpress.com/2011/09/14/sending-raw-ethernet-packets-from-a-specific-interface-in-c-on-linux/" rel="nofollow noreferrer">this ethernet sample code</a> but indeed over WiFi instead of being over Ethernet.</p>
  
  <p>Where should I start? Is there any documentation/examples you can point me to?</p>
  
  <p>Thanks!</p>
  
  <p>Ps. An interesting library which lets you do WiFi scanning is <a href="https://github.com/bmegli/wifi-scan" rel="nofollow noreferrer">here</a></p>