[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.01.1206041600130.26827@frira.zrqbmnf.qr>
Date: Mon, 4 Jun 2012 16:04:27 +0200 (CEST)
From: Jan Engelhardt <jengelh@...i.de>
To: pablo@...filter.org
cc: netfilter-devel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH 7/7] netfilter: add user-space connection tracking helper
infrastructure
On Monday 2012-06-04 14:21, pablo@...filter.org wrote:
>+static int
>+nfnl_cthelper_from_nlattr(struct nlattr *attr, struct nf_conn *ct)
>+{
>+ const struct nf_conn_help *help = nfct_help(ct);
>+
>+ if (help->helper->data_len == 0)
>+ return -EINVAL;
>+
>+ memcpy(&help->data, nla_data(attr), help->helper->data_len);
memcpy(help->data, ...)
>+static int
>+nfnl_cthelper_to_nlattr(struct sk_buff *skb, const struct nf_conn *ct)
>+{
>+ const struct nf_conn_help *help = nfct_help(ct);
>+
>+ if (help->helper->data_len &&
>+ nla_put(skb, CTA_HELP_INFO, help->helper->data_len, &help->data))
>+ goto nla_put_failure;
help->data
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists