From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Fan Du <fan.du@windriver.com>, steffen.klassert@secunet.com
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCHv2 net-next 1/5] {IPv4,xfrm} Add ESN support for AH egress part
Date: Mon, 13 Jan 2014 22:37:16 +0400 [thread overview]
Message-ID: <52D4325C.9050508@cogentembedded.com> (raw)
In-Reply-To: <1389599324-5174-2-git-send-email-fan.du@windriver.com>
Hello.
On 13-01-2014 11:48, Fan Du wrote:
> This patch add esn support for AH output stage by attaching upper 32bits
> sequence number right after packet payload as specified by RFC 4302.
> Then the ICV value will guard upper 32bits sequence number as well when
> packet going out.
> Signed-off-by: Fan Du <fan.du@windriver.com>
> ---
> net/ipv4/ah4.c | 25 +++++++++++++++++++++----
> 1 file changed, 21 insertions(+), 4 deletions(-)
> diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c
> index 7179026..a7fac03 100644
> --- a/net/ipv4/ah4.c
> +++ b/net/ipv4/ah4.c
[...]
> @@ -213,7 +223,14 @@ static int ah_output(struct xfrm_state *x, struct sk_buff *skb)
> sg_init_table(sg, nfrags);
> skb_to_sgvec(skb, sg, 0, skb->len);
>
> - ahash_request_set_crypt(req, sg, icv, skb->len);
> + if ((x->props.flags & XFRM_STATE_ESN)) {
What's the point in double parens here? The same question about the other
patches....
WBR, Sergei
next prev parent reply other threads:[~2014-01-13 18:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-13 7:48 [PATCHv2 net-next 0/5] xfrm: Add ESN support for AH Fan Du
2014-01-13 7:48 ` [PATCHv2 net-next 1/5] {IPv4,xfrm} Add ESN support for AH egress part Fan Du
2014-01-13 18:37 ` Sergei Shtylyov [this message]
2014-01-13 7:48 ` [PATCHv2 net-next 2/5] {IPv4,xfrm} Add ESN support for AH ingress part Fan Du
2014-01-13 7:48 ` [PATCHv2 net-next 3/5] {IPv6,xfrm} Add ESN support for AH egress part Fan Du
2014-01-13 7:48 ` [PATCHv2 net-next 4/5] {IPv6,xfrm} Add ESN support for AH ingress part Fan Du
2014-01-13 7:48 ` [PATCHv2 net-next 5/5] xfrm: Don't prohibit AH from using ESN feature Fan Du
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52D4325C.9050508@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=davem@davemloft.net \
--cc=fan.du@windriver.com \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).