path: root/include/netlink.h
diff options
authorPablo Neira Ayuso <>2008-12-07 12:03:42 +0100
committerPablo Neira Ayuso <>2008-12-07 12:03:42 +0100
commit27ee6a0f1255cb6c7dadc55caf3928fd62354314 (patch)
tree60c311b58284f6a2ad8d79919eac58e4aec5d61f /include/netlink.h
parent2676982afacd502f3119cd323d060bbb88446057 (diff)
netlink: constify conntrack object parameter of nl_*_conntrack()
This patch constifies the first parameter, which is a conntrack object, in all nl_*_conntrack() functions. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/netlink.h')
1 files changed, 3 insertions, 3 deletions
diff --git a/include/netlink.h b/include/netlink.h
index 7e2b94c..af98c5e 100644
--- a/include/netlink.h
+++ b/include/netlink.h
@@ -20,15 +20,15 @@ void nl_resize_socket_buffer(struct nfct_handle *h);
int nl_dump_conntrack_table(void);
-int nl_exist_conntrack(struct nf_conntrack *ct);
+int nl_exist_conntrack(const struct nf_conntrack *ct);
-int nl_get_conntrack(struct nf_conntrack *ct);
+int nl_get_conntrack(const struct nf_conntrack *ct);
int nl_create_conntrack(const struct nf_conntrack *ct);
int nl_update_conntrack(const struct nf_conntrack *ct);
-int nl_destroy_conntrack(struct nf_conntrack *ct);
+int nl_destroy_conntrack(const struct nf_conntrack *ct);
static inline int ct_is_related(const struct nf_conntrack *ct)