diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-09-27 18:30:28 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 18:01:59 -0700 |
commit | 942bf921e922560c05fde6afb00ddedf6224c608 (patch) | |
tree | 83a53a8e56f9f33c482802e223048e348e1eb8a5 /include/linux/igmp.h | |
parent | 8f935bbd7c6c66796c2403aefdab74bb48045bf6 (diff) | |
download | kernel_samsung_espresso10-942bf921e922560c05fde6afb00ddedf6224c608.zip kernel_samsung_espresso10-942bf921e922560c05fde6afb00ddedf6224c608.tar.gz kernel_samsung_espresso10-942bf921e922560c05fde6afb00ddedf6224c608.tar.bz2 |
[IPV4]: IGMP on-the-wire data is net-endian
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/igmp.h')
-rw-r--r-- | include/linux/igmp.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/igmp.h b/include/linux/igmp.h index dd49ba9..fd207d9 100644 --- a/include/linux/igmp.h +++ b/include/linux/igmp.h @@ -30,8 +30,8 @@ struct igmphdr { __u8 type; __u8 code; /* For newer IGMP */ - __u16 csum; - __u32 group; + __be16 csum; + __be32 group; }; /* V3 group record types [grec_type] */ @@ -45,25 +45,25 @@ struct igmphdr struct igmpv3_grec { __u8 grec_type; __u8 grec_auxwords; - __u16 grec_nsrcs; - __u32 grec_mca; - __u32 grec_src[0]; + __be16 grec_nsrcs; + __be32 grec_mca; + __be32 grec_src[0]; }; struct igmpv3_report { __u8 type; __u8 resv1; - __u16 csum; - __u16 resv2; - __u16 ngrec; + __be16 csum; + __be16 resv2; + __be16 ngrec; struct igmpv3_grec grec[0]; }; struct igmpv3_query { __u8 type; __u8 code; - __u16 csum; - __u32 group; + __be16 csum; + __be32 group; #if defined(__LITTLE_ENDIAN_BITFIELD) __u8 qrv:3, suppress:1, @@ -76,8 +76,8 @@ struct igmpv3_query { #error "Please fix <asm/byteorder.h>" #endif __u8 qqic; - __u16 nsrcs; - __u32 srcs[0]; + __be16 nsrcs; + __be32 srcs[0]; }; #define IGMP_HOST_MEMBERSHIP_QUERY 0x11 /* From RFC1112 */ |