diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-10-02 19:21:01 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-10-03 10:51:03 +0200 |
commit | ea753a152cbf3a2658b5ec5bacfb738c13a4c476 (patch) | |
tree | 2d488dc6b7d937cd84a1734b309b7afc2a643c1b /include | |
parent | 9b99aa2980574f4d3bf26145a1bf8bd69d34e764 (diff) | |
download | conntrack-tools-ea753a152cbf3a2658b5ec5bacfb738c13a4c476.tar.gz conntrack-tools-ea753a152cbf3a2658b5ec5bacfb738c13a4c476.zip |
conntrackd: cthelper: add TFTP helper
This patch adds an userspace port of the TFTP helper that is currently
implemented in the kernel. This includes NAT support. It requires a
Linux kernel 3.12.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/helper.h b/include/helper.h index 9d96fb7..bd69af6 100644 --- a/include/helper.h +++ b/include/helper.h @@ -49,6 +49,9 @@ extern int cthelper_del_expect(struct nf_expect *exp); extern void cthelper_get_addr_src(struct nf_conntrack *ct, int dir, union nfct_attr_grp_addr *addr); extern void cthelper_get_addr_dst(struct nf_conntrack *ct, int dir, union nfct_attr_grp_addr *addr); +void cthelper_get_port_src(struct nf_conntrack *ct, int dir, uint16_t *port); +void cthelper_get_port_dst(struct nf_conntrack *ct, int dir, uint16_t *port); + extern int in4_pton(const char *src, int srclen, uint8_t *dst, int delim, const char **end); extern int in6_pton(const char *src, int srclen, uint8_t *dst, int delim, const char **end); |