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

Commit 584c650b authored by Harvey Harrison's avatar Harvey Harrison Committed by David S. Miller
Browse files

isdn: remove extra byteswap in isdn_net_ciscohdlck_slarp_send_reply



commit a144ea4b [IPV4]: annotate struct in_ifaddr

Missed this extra byteswap as the isdn inlines hide the htonl inside
put_u32 which causes an extra byteswap on little-endian arches.

Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ebfe92ca
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1641,8 +1641,10 @@ isdn_net_ciscohdlck_slarp_send_reply(isdn_net_local *lp)
	/* slarp reply, send own ip/netmask; if values are nonsense remote
	/* slarp reply, send own ip/netmask; if values are nonsense remote
	 * should think we are unable to provide it with an address via SLARP */
	 * should think we are unable to provide it with an address via SLARP */
	p += put_u32(p, CISCO_SLARP_REPLY);
	p += put_u32(p, CISCO_SLARP_REPLY);
	p += put_u32(p, addr);	// address
	*(__be32 *)p = addr;	// address
	p += put_u32(p, mask);	// netmask
	p += 4;
	*(__be32 *)p = mask;	// netmask
	p += 4;
	p += put_u16(p, 0);	// unused
	p += put_u16(p, 0);	// unused


	isdn_net_write_super(lp, skb);
	isdn_net_write_super(lp, skb);