Message ID | CAEyr1FQSk84f57Z=ep_DE_hJGee0vR9PqTGThjOkkH-=fE5ZCQ@mail.gmail.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c index 25cb177..49a9890 100644 --- a/iptables/nft-shared.c +++ b/iptables/nft-shared.c @@ -124,13 +124,8 @@ void add_iniface(struct nft_rule *r, char *iface, int invflags) else op = NFT_CMP_EQ; - if (iface[iface_len - 1] == '+') { - add_meta(r, NFT_META_IIFNAME); - add_cmp_ptr(r, op, iface, iface_len - 1); - } else { - add_meta(r, NFT_META_IIF); - add_cmp_u32(r, if_nametoindex(iface), op); - } + add_meta(r, NFT_META_IIFNAME); + add_cmp_ptr(r, op, iface, iface_len); }