[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AE90C24D6B3A694183C094C60CF0A2F6D8AEE3@saturn3.aculab.com>
Date: Fri, 25 Nov 2011 14:19:22 -0000
From: "David Laight" <David.Laight@...LAB.COM>
To: "Hans Schillstrom" <hans@...illstrom.com>, <kaber@...sh.net>,
<pablo@...filter.org>, <jengelh@...ozas.de>,
<netfilter-devel@...r.kernel.org>, <netdev@...r.kernel.org>
Cc: <hans.schillstrom@...csson.com>
Subject: RE: [v4 PATCH 1/2] NETFILTER module xt_hmark, new target for HASH based fwmark
> + addr1 = (__force u32) ip6->saddr.s6_addr32[3];
> + addr2 = (__force u32) ip6->daddr.s6_addr32[3];
...
> + ports.v32 = * (__force u32 *) (skb->data + nhoff);
Is this code even vaguely portable??
I suspect the 'ports' bit has serious endianness problems.
I'm also not sure whether linux guarantees the alignment
of skb->data here.
David
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists