title: How to set a network interface to promiscuous mode in a kernel module?
body: <p>I developed a kernel module to get all packts that bypass and ethernet interface.</p>
  
  <p>Now i want in my module, set that interface to a promiscuous mode. How i can do that?</p>
  
  <p>I get the interface using dev_get_by_name(&amp;init_net,"eth0") to a struct net_device *dev.</p>
  
  <p>Best Regards</p>