summaryrefslogtreecommitdiff
path: root/net/ipv6/netfilter/ip6_tables.c
diff options
context:
space:
mode:
authorRajan Gupta <rajan.gupta@freescale.com>2012-02-13 11:04:07 (GMT)
committerEmil Medve <Emilian.Medve@Freescale.com>2013-03-21 18:42:13 (GMT)
commit6b62477063f8ed14ee155493327f2fbf5dd8c36b (patch)
treeef90dc824447962a99b5958d42075f32facad916 /net/ipv6/netfilter/ip6_tables.c
parent2a692dd851055f767c99e050873f71b073980076 (diff)
downloadlinux-fsl-qoriq-6b62477063f8ed14ee155493327f2fbf5dd8c36b.tar.xz
netfilter/ipv6: Hooks to send iptable change notification
Added callback functions for fireawall rules notification for IPv6 flows. Signed-off-by: Arun Pathak <arun.pathak@freescale.com> Signed-off-by: Nikhil Agarwal <nikhil.agarwal@freescale.com> (cherry picked from commit 39e612e45daed4800e2dbb6824db0ab73537e608)
Diffstat (limited to 'net/ipv6/netfilter/ip6_tables.c')
-rw-r--r--net/ipv6/netfilter/ip6_tables.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
index 125a90d..84d9931 100644
--- a/net/ipv6/netfilter/ip6_tables.c
+++ b/net/ipv6/netfilter/ip6_tables.c
@@ -1176,6 +1176,10 @@ get_entries(struct net *net, struct ip6t_get_entries __user *uptr,
return ret;
}
+#ifdef CONFIG_AS_FASTPATH
+extern void (*pfnfirewall_asfctrl)(void);
+#endif
+
static int
__do_replace(struct net *net, const char *name, unsigned int valid_hooks,
struct xt_table_info *newinfo, unsigned int num_counters,
@@ -1238,6 +1242,13 @@ __do_replace(struct net *net, const char *name, unsigned int valid_hooks,
ret = -EFAULT;
vfree(counters);
xt_table_unlock(t);
+
+#ifdef CONFIG_AS_FASTPATH
+ /* Call the ASF CTRL CB */
+ if (!ret && pfnfirewall_asfctrl)
+ pfnfirewall_asfctrl();
+#endif
+
return ret;
put_module: