diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-10-13 13:30:44 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-10-13 13:30:44 +0200 |
commit | 6dd45b13115d77860a8e3b37caa1560cbcfd265c (patch) | |
tree | 40134abc6459484107d77751bbcf1562ce98dea3 /src/conntrack/getter.c | |
parent | fb92f85dcc664ad94c1d2919b729086eee774893 (diff) |
helper: explicit helper assignation supportlibnetfilter_conntrack-0.0.97
This patch adds support for explicit helper assignation. This support
will not be of any help without the appropriate kernel support that will
go into the Linux kernel 2.6.29 -sic-.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/conntrack/getter.c')
-rw-r--r-- | src/conntrack/getter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conntrack/getter.c b/src/conntrack/getter.c index 20a2a35..658d010 100644 --- a/src/conntrack/getter.c +++ b/src/conntrack/getter.c @@ -282,6 +282,11 @@ static const void *get_attr_repl_off_aft(const struct nf_conntrack *ct) return &ct->tuple[__DIR_REPL].natseq.offset_after; } +static const void *get_attr_helper_name(const struct nf_conntrack *ct) +{ + return ct->helper_name; +} + get_attr get_attr_array[] = { [ATTR_ORIG_IPV4_SRC] = get_attr_orig_ipv4_src, [ATTR_ORIG_IPV4_DST] = get_attr_orig_ipv4_dst, @@ -338,4 +343,5 @@ get_attr get_attr_array[] = { [ATTR_SCTP_STATE] = get_attr_sctp_state, [ATTR_SCTP_VTAG_ORIG] = get_attr_sctp_vtag_orig, [ATTR_SCTP_VTAG_REPL] = get_attr_sctp_vtag_repl, + [ATTR_HELPER_NAME] = get_attr_helper_name, }; |