From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: integers byte order in netlink/NETLINK_NETFILTER messages Date: Thu, 30 Sep 2021 16:03:50 +0200 Message-ID: References: Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Cristian Constantin Cc: netfilter@vger.kernel.org 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.