Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4715213d authored by Li RongQing's avatar Li RongQing Committed by David S. Miller
Browse files

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: default avatarLi RongQing <roy.qing.li@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0d653ed8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {