Functions

Device manipulation functions

promisc_on

This function switches device to promiscuous mode. It takes zero parameters and is applied to the device specified with set device configuration option. You might want to call this function from on_start_sniffing handler, so that device is switched to promiscuous mode as soon as sniffer start working.

NOTE: you can't call this function from on_initialize handler because sniffing engine is not yet initialized at the time on_initialize is called.

promisc_off

Call this function in order to switch device from promiscuous mode. You will usually put it in on_shutdown handler. If you leave device in promiscuous mode you are creating potential security hole, so don't forget to call this function at the end of the sniffing session.