Patchwork iptables-nftables nft: Removes NFT_META_IIF ,NFT_META_OIF

login
register
mail settings
Submitter Anand Raj Manickam
Date Oct. 11, 2013, 6:38 a.m.
Message ID <CAEyr1FSxBQC3u3wePjscZPmtiqA5m54qc-8j8Sbz-8+JRcu2Mw@mail.gmail.com>
Download mbox | patch
Permalink /patch/282533/
State Superseded
Headers show

Comments

Anand Raj Manickam - Oct. 11, 2013, 6:38 a.m.
Removes the  NFT_META_IIF ,NFT_META_OIF

Patch

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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html