summaryrefslogtreecommitdiffstats
path: root/src/deprecated/extensions/libnetfilter_conntrack_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/deprecated/extensions/libnetfilter_conntrack_tcp.c')
-rw-r--r--src/deprecated/extensions/libnetfilter_conntrack_tcp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/deprecated/extensions/libnetfilter_conntrack_tcp.c b/src/deprecated/extensions/libnetfilter_conntrack_tcp.c
index 9efdbb7..a7ce2ce 100644
--- a/src/deprecated/extensions/libnetfilter_conntrack_tcp.c
+++ b/src/deprecated/extensions/libnetfilter_conntrack_tcp.c
@@ -121,7 +121,7 @@ static int compare(struct nfct_conntrack *ct1,
return 1;
}
-static struct nfct_proto tcp = {
+struct nfct_proto tcp = {
.name = "tcp",
.protonum = IPPROTO_TCP,
.parse_protoinfo = parse_protoinfo,
@@ -133,10 +133,3 @@ static struct nfct_proto tcp = {
.compare = compare,
.version = VERSION
};
-
-static void __attribute__ ((constructor)) init(void);
-
-static void init(void)
-{
- nfct_register_proto(&tcp);
-}