Add the specified filtering rule to driver.
NF_STATUS nf_addRule(PNF_RULE pRule, int toHead)
NF_STATUS_SUCCESS on success, or other NF_STATUS error code on fail.
The driver scans the list of rules from the beginning and uses the filtering flag of a first matching rule. The new rules are added to the list head or tail, depending on toHead parameter. The driver doesn't filter the network activity of the attached process. In effect the rules are not applied to the sockets created by a process that uses driver API.
|Driver type||WFP, TDI|