All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH 2/2] netfilter: conntrack: add support for DCCP handshake sequence to ctnetlink
Date: Wed, 27 May 2009 17:51:31 +0200	[thread overview]
Message-ID: <4A1D6183.3010601@trash.net> (raw)
In-Reply-To: <4A1D5321.1010006@netfilter.org>

Pablo Neira Ayuso wrote:
> Patrick McHardy wrote:
>> Pablo Neira Ayuso wrote:
>>> --- a/net/netfilter/nf_conntrack_proto_dccp.c
>>> +++ b/net/netfilter/nf_conntrack_proto_dccp.c
>>> @@ -639,6 +639,8 @@ static int dccp_to_nlattr(struct sk_buff *skb,
>>> struct nlattr *nla,
>>>      NLA_PUT_U8(skb, CTA_PROTOINFO_DCCP_STATE, ct->proto.dccp.state);
>>>      NLA_PUT_U8(skb, CTA_PROTOINFO_DCCP_ROLE,
>>>             ct->proto.dccp.role[IP_CT_DIR_ORIGINAL]);
>>> +    NLA_PUT_U64(skb, CTA_PROTOINFO_DCCP_HANDSHAKE_SEQ,
>>> +            ct->proto.dccp.handshake_seq);
>> This should use big endian byteorder.
> 
> dccp_hdr_seq() returns a value in host byte order, which is used to
> assign the value to handshake_seq. So, we need to use cpu_to_be64() to
> convert the value to network byte order as other attributes in ctnetlink
> which are in network byte order, right? :)

Absolutely :)

> Patch attached.

Applied to nf-next, thanks.

      reply	other threads:[~2009-05-27 15:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-27 12:53 [PATCH 0/2] A couple of netfilter fixes Pablo Neira Ayuso
2009-05-27 12:54 ` [PATCH 1/2] netfilter: nfnetlink_log: fix wrong skbuff size calculation Pablo Neira Ayuso
2009-05-27 13:50   ` Patrick McHardy
2009-05-27 12:54 ` [PATCH 2/2] netfilter: conntrack: add support for DCCP handshake sequence to ctnetlink Pablo Neira Ayuso
2009-05-27 14:13   ` Patrick McHardy
2009-05-27 14:50     ` Pablo Neira Ayuso
2009-05-27 15:51       ` Patrick McHardy [this message]

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=4A1D6183.3010601@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.