[ovs-dev] [RFC PATCH 02/13] lib: add ipv6 helper functions for tnl_config

Ben Pfaff blp at nicira.com
Fri May 29 21:18:37 UTC 2015


On Thu, May 14, 2015 at 08:12:33PM +0200, Jiri Benc wrote:
> These functions will be used by the next patch.
> 
> Signed-off-by: Jiri Benc <jbenc at redhat.com>

POSIX doesn't guarantee the presence of an s6_addr32 member so this
yields errors from sparse:
    ../lib/packets.h:712:15: error: no member 's6_addr32' in struct in6_addr
    ../lib/packets.h:712:15: error: no member 's6_addr32' in struct in6_addr
    ../lib/packets.h:712:15: error: no member 's6_addr32' in struct in6_addr

You could use the strategy from ipv6_addr_bitand(), of testing for
s6_addr32 and having a fallback.



More information about the dev mailing list