--- zzzz-none-000/linux-2.6.19.2/include/linux/igmp.h 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5504/linux-2.6.19.2/include/linux/igmp.h 2007-07-09 10:47:09.000000000 +0000 @@ -131,6 +131,7 @@ extern int sysctl_igmp_max_memberships; extern int sysctl_igmp_max_msf; +extern int sysctl_igmp_tos; struct ip_sf_socklist { @@ -191,7 +192,7 @@ #define IGMPV3_MASK(value, nb) ((nb)>=32 ? (value) : ((1<<(nb))-1) & (value)) #define IGMPV3_EXP(thresh, nbmant, nbexp, value) \ ((value) < (thresh) ? (value) : \ - ((IGMPV3_MASK(value, nbmant) | (1<<(nbmant))) << \ + ((IGMPV3_MASK(value, nbmant) | (1<<(nbmant+nbexp))) << \ (IGMPV3_MASK((value) >> (nbmant), nbexp) + (nbexp)))) #define IGMPV3_QQIC(value) IGMPV3_EXP(0x80, 4, 3, value)