[Winpcap-users] Send packets while capturing

Fish" (David B. Trout fish at infidels.org
Tue Feb 28 03:51:51 PST 2012


Mark Pizzolato

[...]
> that the reading side of your application will see the packets
> you send with pcap_sendpacket if they aren't restricted from
> reception with a filter you may setup (using pcap_setfilter)
> on the pcap_t returned by pcap_open_live.

OR... you can use the "set loopback behavior" ioctl:


  (ioctls.h)


    /*!
      \brief IOCTL code: set the loopback behavior.

      This IOCTL sets the loopback behavior of the driver with packets sent
by itself: capture or drop.
    */
    #define  BIOCISETLOBBEH 7410			


-- 
"Fish" (David B. Trout) 
 fish at softdevlabs.com






More information about the Winpcap-users mailing list