mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 05:40:53 +07:00
bridge: fix endian
mld->mld_maxdelay is net endian, so we should use ntohs, not htons CC: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0d653ed891
commit
4715213d9c
@ -1160,7 +1160,7 @@ static int br_ip6_multicast_query(struct net_bridge *br,
|
||||
goto out;
|
||||
}
|
||||
mld = (struct mld_msg *) icmp6_hdr(skb);
|
||||
max_delay = msecs_to_jiffies(htons(mld->mld_maxdelay));
|
||||
max_delay = msecs_to_jiffies(ntohs(mld->mld_maxdelay));
|
||||
if (max_delay)
|
||||
group = &mld->mld_mca;
|
||||
} else if (skb->len >= sizeof(*mld2q)) {
|
||||
|
Loading…
Reference in New Issue
Block a user