lkml.org 
[lkml]   [2006]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] selinux: endian fix
>>>>> "James" == James Morris <jmorris@namei.org> writes:

James> On Tue, 16 May 2006, Alexey Dobriyan wrote:
>> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>

James> Hmm, I'm certain this was tested (perhaps on a BE machine,
James> though). In any case skb->protocol should definitely be network
James> byte order.

On all architectures, ntohs is the same as htons -- either the two
bytes are swapped or they're not.


--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-17 02:58    [W:0.101 / U:1.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site