nf_init

Call this function to initialize filtering and set the event handler object. The library calls NF_EventHandler methods from a separate thread.
NF_STATUS nf_init(const char * driverName, NF_EventHandler * pHandler)

Parameters

driverName
The name of network hooking session.
pHandler
Pointer to NF_EventHandler object.

Return Values

NF_STATUS_SUCCESS on success, or other NF_STATUS error code on fail.

Remarks

By default the driver uses NFEXT_BYPASS filtering flag and doesn't filter the transmitted data. To filter the transmitted packets add the filtering rules with necessary flags using the function nf_setRules.