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 | struct igmpv3_report { | 53 | struct igmpv3_report { |
| 54 | __u8 type; | 54 | __u8 type; |
| 55 | __u8 resv1; | 55 | __u8 resv1; |
| 56 | __be16 csum; | 56 | __sum16 csum; |
| 57 | __be16 resv2; | 57 | __be16 resv2; |
| 58 | __be16 ngrec; | 58 | __be16 ngrec; |
| 59 | struct igmpv3_grec grec[0]; | 59 | struct igmpv3_grec grec[0]; |
| @@ -62,7 +62,7 @@ struct igmpv3_report { · 2 unmodified lines | |||
| 62 | struct igmpv3_query { | 62 | struct igmpv3_query { |
| 63 | __u8 type; | 63 | __u8 type; |
| 64 | __u8 code; | 64 | __u8 code; |
| 65 | __be16 csum; | 65 | __sum16 csum; |
| 66 | __be32 group; | 66 | __be32 group; |
| 67 | #if defined(__LITTLE_ENDIAN_BITFIELD) | 67 | #if defined(__LITTLE_ENDIAN_BITFIELD) |
| 68 | __u8 qrv:3, | 68 | __u8 qrv:3, |