nf_addRule

Add the specified TCP filtering rule to driver.

NF_STATUS nf_addRule(PNFEXT_RULE pRule)

Parameters

pRule
A pointer to NFEXT_RULE structure.

Return Values

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

Remarks

The driver scans the list of rules from the beginning and uses the filtering flag of a first matching rule. 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.