From 6dd45b13115d77860a8e3b37caa1560cbcfd265c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 13 Oct 2008 13:30:44 +0200 Subject: helper: explicit helper assignation support 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 --- src/conntrack/getter.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/conntrack/getter.c') 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, }; -- cgit v1.2.3