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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -53,7 +53,7 @@ struct igmpv3_grec { · 52 unmodified lines | ||
| 53 | 53 | struct igmpv3_report { |
| 54 | 54 | __u8 type; |
| 55 | 55 | __u8 resv1; |
| 56 | − __be16 csum; | |
| 56 | + __sum16 csum; | |
| 57 | 57 | __be16 resv2; |
| 58 | 58 | __be16 ngrec; |
| 59 | 59 | struct igmpv3_grec grec[0]; |
| @@ -62,7 +62,7 @@ struct igmpv3_report { · 2 unmodified lines | ||
| 62 | 62 | struct igmpv3_query { |
| 63 | 63 | __u8 type; |
| 64 | 64 | __u8 code; |
| 65 | − __be16 csum; | |
| 65 | + __sum16 csum; | |
| 66 | 66 | __be32 group; |
| 67 | 67 | #if defined(__LITTLE_ENDIAN_BITFIELD) |
| 68 | 68 | __u8 qrv:3, |