History

bridge: sparse fixes in br_ip6_multicast_alloc_query()

Changed type of csum field in struct igmpv3_query from __be16 to __sum16 to eliminate type warning, made same change in struct igmpv3_report for consistency. Fixed up an ntohs() where htons() should have been used instead.

Lance Richardson committed 9 years ago

Commit 53631a51 parent 580bdf52 files · +3 −3Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/igmp.h+2−2
@@ -53,7 +53,7 @@ struct igmpv3_grec { · 52 unmodified lines
5353 struct igmpv3_report {
5454 __u8 type;
5555 __u8 resv1;
56− __be16 csum;
56+ __sum16 csum;
5757 __be16 resv2;
5858 __be16 ngrec;
5959 struct igmpv3_grec grec[0];
@@ -62,7 +62,7 @@ struct igmpv3_report { · 2 unmodified lines
6262 struct igmpv3_query {
6363 __u8 type;
6464 __u8 code;
65− __be16 csum;
65+ __sum16 csum;
6666 __be32 group;
6767 #if defined(__LITTLE_ENDIAN_BITFIELD)
6868 __u8 qrv:3,