Function pfwl_field_mmap_tags_add_L7

Function Documentation

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

pfwl_field_map_tags_add Adds a tag matching rule for a specific field.

Adds a tag matching rule for a specific multimap field.

Parameters
  • state: A pointer to the state of the library.

  • field: The field identifier.

  • key: The key of the multimap value. The comparison will always be case insensitive. I.e. if searching for ‘BarFoo’, ‘barfoo’ and ‘BaRfOo’ will match as well.

  • value: The value of the multimap value. 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’.