[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/iptables/extensions/libipt_unclean.c b/ap/app/iptables/extensions/libipt_unclean.c
new file mode 100755
index 0000000..93d9013
--- /dev/null
+++ b/ap/app/iptables/extensions/libipt_unclean.c
@@ -0,0 +1,31 @@
+/* Shared library add-on to iptables for unclean. */
+#include <stdio.h>
+#include <stdlib.h>
+#include <getopt.h>
+#include <xtables.h>
+
+static void unclean_help(void)
+{
+ printf("unclean match takes no options\n");
+}
+
+static int unclean_parse(int c, char **argv, int invert, unsigned int *flags,
+ const void *entry, struct xt_entry_match **match)
+{
+ return 0;
+}
+
+static struct xtables_match unclean_mt_reg = {
+ .name = "unclean",
+ .version = XTABLES_VERSION,
+ .family = NFPROTO_IPV4,
+ .size = XT_ALIGN(0),
+ .userspacesize = XT_ALIGN(0),
+ .help = unclean_help,
+ .parse = unclean_parse,
+};
+
+void _init(void)
+{
+ xtables_register_match(&unclean_mt_reg);
+}