title: How to inject a raw L2 packet as an incoming packet to an interface on Linux?
body: <p>I need to inject some L2 packets(customized) to an specific interface as incoming packets in Linux to test some applications running on it.</p>
  
  <p>Is there any libraries(python preferred)/examples that can help? I was skimming through the Scrapy library, but then it looks like it can only inject packets to the network as outgoing packets?</p>