[PATCH] iptables-nftables nft: Removes NFT_META_IIF ,NFT_META_OIF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Removes the  NFT_META_IIF ,NFT_META_OIF

diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
index 25cb177..a115d7d 100644
--- a/iptables/nft-shared.c
+++ b/iptables/nft-shared.c
@@ -227,39 +218,20 @@ void parse_meta(struct nft_rule_expr *e, uint8_t
key, char *iniface,
        uint32_t len;

        switch(key) {
-       case NFT_META_IIF:
-               value = nft_rule_expr_get_u32(e, NFT_EXPR_CMP_DATA);
-               if (nft_rule_expr_get_u8(e, NFT_EXPR_CMP_OP) == NFT_CMP_NEQ)
-                       *invflags |= IPT_INV_VIA_IN;
-
-               if_indextoname(value, iniface);
-
-               memset(iniface_mask, 0xff, strlen(iniface)+1);
-               break;
-       case NFT_META_OIF:
-               value = nft_rule_expr_get_u32(e, NFT_EXPR_CMP_DATA);
-               if (nft_rule_expr_get_u8(e, NFT_EXPR_CMP_OP) == NFT_CMP_NEQ)
-                       *invflags |= IPT_INV_VIA_OUT;
-
-               if_indextoname(value, outiface);
-
-               memset(outiface_mask, 0xff, strlen(outiface)+1);
-               break;
        case NFT_META_IIFNAME:
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux