nf_addUdpRule

Add the specified UDP filtering rule to driver.

NF_STATUS nf_addUdpRule(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.