Function pfwl_field_string_tags_add_L7

Function Documentation

void pfwl_field_string_tags_add_L7(pfwl_state_t *state, pfwl_field_id_t field, const char *value, pfwl_field_matching_t matchingType, const char *tag)

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’.