diff options
| author | Phil Sutter <phil@nwl.cc> | 2024-10-01 12:59:29 +0200 |
|---|---|---|
| committer | Phil Sutter <phil@nwl.cc> | 2025-09-30 23:02:32 +0200 |
| commit | f30eae26d813e54897caa1def6501d662dd79228 (patch) | |
| tree | 4623427758b9224d3ecbc6cd0f65d141d5f017b3 /src/flowtable.c | |
| parent | eb8fb569c501dc088dc950061369102687f8d2a5 (diff) | |
utils: Add helpers for interface name wildcards
Support simple (suffix) wildcards in NFTNL_{CHAIN,FLOWTABLE}_DEVICES
identified by NFTA_DEVICE_PREFIX attribute. Add helpers converting to
and from the human-readable asterisk-suffix notation.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/flowtable.c')
| -rw-r--r-- | src/flowtable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flowtable.c b/src/flowtable.c index fbbe0a8..59991d6 100644 --- a/src/flowtable.c +++ b/src/flowtable.c @@ -299,7 +299,7 @@ void nftnl_flowtable_nlmsg_build_payload(struct nlmsghdr *nlh, nest_dev = mnl_attr_nest_start(nlh, NFTA_FLOWTABLE_HOOK_DEVS); nftnl_str_array_foreach(dev, &c->dev_array, i) - mnl_attr_put_strz(nlh, NFTA_DEVICE_NAME, dev); + nftnl_attr_put_ifname(nlh, dev); mnl_attr_nest_end(nlh, nest_dev); } |
