nf_addBindingRule

Add the specified binding rule to driver.

NF_STATUS nf_addBindingRule(PNF_BINDING_RULE pRule, int toHead)

Parameters

pRule
A pointer to NF_BINDING_RULE structure.
toHead
TRUE (1) - add rule to list head, FALSE (0) - add rule to list tail

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 new rules are added to the list head or tail, depending on toHead parameter.

Binding rules are supported only by WFP driver.

Requirements

Driver type WFP
Header nfapi.h
Library nfapi.lib