nf_setRules

Replace the rules with the specified array.

NF_STATUS nf_setRules(PNFEXT_RULE pRules, int count)

Parameters

pRules
A pointer to array of NFEXT_RULE structures.
count
Number of items in pRules array

Return Values

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

Remarks

It is an atomic operation, which means that the old rules are replaced with new list in a single synchronized call. If the rules list is empty, the new list is assigned as current.