Skip to contentSkip to conversation

Sparse warnings in IPV6 GRE

DISCUSSION Stephen Hemminger 1 participant 1 message Oct 10, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Looks like IPV6 GRE is probably not byte-endian safe?

CHECK net/ipv6/ip6_gre.c
net/ipv6/ip6_gre.c:472:37: warning: restricted __be32 degrades to integer net/ipv6/ip6_gre.c:484:23: warning: restricted __be32 degrades to integer net/ipv6/ip6_gre.c:964:26: warning: incorrect type in assignment (different base types)
net/ipv6/ip6_gre.c:964:26: expected unsigned char [unsigned] [addressable] [usertype] flowic_proto
net/ipv6/ip6_gre.c:964:26: got restricted __be16 [usertype] protocol
net/ipv6/ip6_gre.c:1510:33: warning: incorrect type in assignment (different base types)
net/ipv6/ip6_gre.c:1510:33: expected restricted __be32 [usertype] flowinfo
net/ipv6/ip6_gre.c:1510:33: got unsigned int