diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-02-17 18:33:22 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-02-17 18:33:22 +0100 |
commit | 9f53603a10aa738d6f5a41a061bc3e1182c42d0c (patch) | |
tree | 0940d6bb8d5d203052496c484b92b883be72ee17 /include | |
parent | 3e6806e7690d0ed79d9aed82dc44d1eaa676d3e8 (diff) |
conntrack: add NFCT_CP_OVERRIDE flag for nfct_copy()
Thus, we have a fast version of nfct_copy() which allows to
copy the destination to the origin. After this call, the
destination is a clone of the origin.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/prototypes.h | 1 | ||||
-rw-r--r-- | include/libnetfilter_conntrack/libnetfilter_conntrack.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/internal/prototypes.h b/include/internal/prototypes.h index 359a80e..928ddbd 100644 --- a/include/internal/prototypes.h +++ b/include/internal/prototypes.h @@ -21,6 +21,7 @@ int __callback(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data); int __setobjopt(struct nf_conntrack *ct, unsigned int option); int __getobjopt(const struct nf_conntrack *ct, unsigned int option); int __compare(const struct nf_conntrack *ct1, const struct nf_conntrack *ct2, unsigned int flags); +void __copy_fast(struct nf_conntrack *ct1, const struct nf_conntrack *ct); int __setup_netlink_socket_filter(int fd, struct nfct_filter *filter); diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack.h b/include/libnetfilter_conntrack/libnetfilter_conntrack.h index f09e03b..b3e6758 100644 --- a/include/libnetfilter_conntrack/libnetfilter_conntrack.h +++ b/include/libnetfilter_conntrack/libnetfilter_conntrack.h @@ -408,6 +408,7 @@ enum { NFCT_CP_ORIG = (1 << 0), NFCT_CP_REPL = (1 << 1), NFCT_CP_META = (1 << 2), + NFCT_CP_OVERRIDE = (1 << 3), }; extern void nfct_copy(struct nf_conntrack *dest, |