diff options
author | 2017-01-16 18:11:35 -0500 | |
---|---|---|
committer | 2017-01-17 15:22:05 -0500 | |
commit | 53631a5f9c6669264adb7b4e92fd95d1d6ffa7d3 (patch) | |
tree | a8c07edb3c514ab2b5e3957c3e9307529dd0a829 /include/uapi/linux/igmp.h | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-53631a5f9c6669264adb7b4e92fd95d1d6ffa7d3.tar.gz linux-53631a5f9c6669264adb7b4e92fd95d1d6ffa7d3.tar.bz2 linux-53631a5f9c6669264adb7b4e92fd95d1d6ffa7d3.zip |
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.
Signed-off-by: Lance Richardson <lrichard@redhat.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/igmp.h')
-rw-r--r-- | include/uapi/linux/igmp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/igmp.h b/include/uapi/linux/igmp.h index ccbb32aa6704..a97f9a7568cf 100644 --- a/include/uapi/linux/igmp.h +++ b/include/uapi/linux/igmp.h @@ -53,7 +53,7 @@ struct igmpv3_grec { struct igmpv3_report { __u8 type; __u8 resv1; - __be16 csum; + __sum16 csum; __be16 resv2; __be16 ngrec; struct igmpv3_grec grec[0]; @@ -62,7 +62,7 @@ struct igmpv3_report { struct igmpv3_query { __u8 type; __u8 code; - __be16 csum; + __sum16 csum; __be32 group; #if defined(__LITTLE_ENDIAN_BITFIELD) __u8 qrv:3, |