9#ifndef SQUID_SRC_IP_NFMARKCONFIG_H
10#define SQUID_SRC_IP_NFMARKCONFIG_H
a netfilter mark/mask pair
NfMarkConfig()
creates an empty object
bool hasMask() const
whether the mask is set
NfMarkConfig(nfmark_t mark_val, nfmark_t mask_val)
creates an object with specified mark and mask
static NfMarkConfig Parse(const SBuf &token)
parses a token and returns an object, expects a "mark[/mask]" format
nfmark_t applyToMark(nfmark_t m) const
bool matches(const nfmark_t m) const
whether the 'm' matches the configured mark/mask
bool isEmpty() const
whether the netfilter mark is unset
std::ostream & operator<<(std::ostream &os, const std::optional< Address > &optional)