Function pfwl_field_string_tags_add_L7¶
Defined in File peafowl.h
Function Documentation¶
pfwl_field_string_tags_add Adds a tag matching rule for a specific field.
Adds a tag matching rule for a specific string field.
- Parameters
state: A pointer to the state of the library.field: The field identifier.value: Is the string to be matched against the field. The comparison will always be case insensitive. I.e. if searching for ‘BarFoo’, ‘barfoo’ and ‘BaRfOo’ will match as well.matchingType: Can be ‘PREFIX’, ‘EXACT’ or ‘SUFFIX’.tag: The tag to assign to the packet when the field matches with ‘value’.