Re: ntohs/ntohl and bitops

From: David S. Miller
Date: Sat Jan 14 2006 - 20:48:57 EST


From: Pavel Machek <pavel@xxxxxx>
Date: Thu, 12 Jan 2006 01:04:06 +0000

> Could you possibly
> #define IP_OFFSET htons(1234)
> ?
>
> Noone should need it in native endianity, no?

That's definitely going to be error prone.
And I bet the BSD headers define it in cpu endainness
as well.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/