[CRIU] [PATCH cr 04/10] nf: make nf_connection_switch_raw public
Andrey Vagin
avagin at openvz.org
Thu Sep 13 09:10:24 EDT 2012
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
include/netfilter.h | 2 ++
netfilter.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/include/netfilter.h b/include/netfilter.h
index a64d0bd..ee5d622 100644
--- a/include/netfilter.h
+++ b/include/netfilter.h
@@ -7,4 +7,6 @@ int nf_unlock_connection(struct inet_sk_desc *);
struct inet_sk_info;
int nf_unlock_connection_info(struct inet_sk_info *);
+
+int nf_connection_switch_raw(u32 *src_addr, u16 src_port, u32 *dst_addr, u16 dst_port, int lock);
#endif
diff --git a/netfilter.c b/netfilter.c
index 69d5943..72d5e91 100644
--- a/netfilter.c
+++ b/netfilter.c
@@ -23,7 +23,7 @@ static char buf[512];
static const char *nf_conn_cmd = "iptables -t filter %s INPUT --protocol tcp "
"--source %s --sport %d --destination %s --dport %d -j DROP";
-static int nf_connection_switch_raw(u32 *src_addr, u16 src_port, u32 *dst_addr, u16 dst_port, int lock)
+int nf_connection_switch_raw(u32 *src_addr, u16 src_port, u32 *dst_addr, u16 dst_port, int lock)
{
char sip[INET_ADDR_LEN], dip[INET_ADDR_LEN];
int ret;
--
1.7.1
More information about the CRIU
mailing list