From: "David S. Miller" Subject: Re: [PATCH] CTA_PROTO_NUM is u_int8_t not u_int16_t Date: Sun, 04 Dec 2005 11:48:13 -0800 (PST) Message-ID: <20051204.114813.59310147.davem@davemloft.net> References: <438CDF45.9040308@trash.net> <4392630F.4040008@eurodev.net> <439313B2.50601@trash.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: laforge@netfilter.org, netfilter-devel@lists.netfilter.org, pablo@eurodev.net Return-path: To: kaber@trash.net In-Reply-To: <439313B2.50601@trash.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org From: Patrick McHardy Date: Sun, 04 Dec 2005 17:05:06 +0100 > It doesn't even affect compatiblity, userspace can send both > u_int8_t or u_int16_t, the binary representation will look the same. On little-endian, yes. But on big-endian you'll get a byte-swapped value for the case where userspace sends in a u8.