All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Cristian Constantin <const.crist@googlemail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: integers byte order in netlink/NETLINK_NETFILTER messages
Date: Thu, 30 Sep 2021 16:03:50 +0200	[thread overview]
Message-ID: <YVXDxlfzEVybEn/W@salvia> (raw)
In-Reply-To: <CANCV4NPXskt-r4RNfQJeacoOAmKFjuV6CSKtqEe=gyCbpiZMaQ@mail.gmail.com>

On Fri, Sep 17, 2021 at 10:45:30AM +0200, Cristian Constantin wrote:
> hi!
> 
> in general, how are the integers encoded in the attributes of the
> NETLINK_NETFILTER messages: host byte order or network byte order? is
> the same byte order supposed to be used by both user space tools and
> the kernel?

nfnetlink attribute data is exposed in network byte order.

> in particular, how is the chain policy attribute encoded by the kernel
> when it sends an reply to a NFT_MSG_GETCHAIN request?

Through the NFTA_CHAIN_POLICY attribute.

      parent reply	other threads:[~2021-09-30 14:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-17  8:45 integers byte order in netlink/NETLINK_NETFILTER messages Cristian Constantin
2021-09-17  9:44 ` Florian Westphal
2021-09-30 14:03 ` Pablo Neira Ayuso [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=YVXDxlfzEVybEn/W@salvia \
    --to=pablo@netfilter.org \
    --cc=const.crist@googlemail.com \
    --cc=netfilter@vger.kernel.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.