Skip to contentSkip to conversation

ebtables-compat: call extensions final checks

PATCH New Arturo Borrero Gonzalez 1 participant 1 message Feb 3, 2015 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ebtables-compat: call extensions final checks

Let's call extensions final checks.

---
 extensions/libebt_802_3.c  |    2 ++
 extensions/libebt_ip.c     |    2 ++
 extensions/libebt_mark_m.c |    2 ++
 iptables/xtables-eb.c      |   50 +++++++++++++++-----------------------------
 4 files changed, 23 insertions(+), 33 deletions(-)
extensions/libebt_802_3.c +2 -0
index e19c21d..3c4a1c3 100644
@@ -79,6 +79,8 @@ br802_3_parse(int c, char **argv, int invert, unsigned int *flags,
 	default:
 		return 0;
 	}
+
+	*flags |= info->bitmask;
 	return 1;
 }
 
extensions/libebt_ip.c +2 -0
index a85810b..8b62876 100644
@@ -214,6 +214,8 @@ brip_parse(int c, char **argv, int invert, unsigned int *flags,
 	default:
 		return 0;
 	}
+
+	*flags |= info->bitmask;
 	return 1;
 }
 
extensions/libebt_mark_m.c +2 -0
index d806c65..ef9eb6a 100644
@@ -69,6 +69,8 @@ brmark_m_parse(int c, char **argv, int invert, unsigned int *flags,
 	default:
 		return 0;
 	}
+
+	*flags |= info->bitmask;
 	return 1;
 }
 
iptables/xtables-eb.c +17 -33

76 lines not on this page · raw message