net/* misc endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -2540,7 +2540,7 @@ static int pfkey_migrate(struct sock *sk, struct sk_buff *skb,
|
||||
sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);
|
||||
sel.sport = ((struct sockaddr_in *)(sa + 1))->sin_port;
|
||||
if (sel.sport)
|
||||
sel.sport_mask = ~0;
|
||||
sel.sport_mask = htons(0xffff);
|
||||
|
||||
/* set destination address info of selector */
|
||||
sa = ext_hdrs[SADB_EXT_ADDRESS_DST - 1],
|
||||
@@ -2549,7 +2549,7 @@ static int pfkey_migrate(struct sock *sk, struct sk_buff *skb,
|
||||
sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);
|
||||
sel.dport = ((struct sockaddr_in *)(sa + 1))->sin_port;
|
||||
if (sel.dport)
|
||||
sel.dport_mask = ~0;
|
||||
sel.dport_mask = htons(0xffff);
|
||||
|
||||
rq = (struct sadb_x_ipsecrequest *)(pol + 1);
|
||||
|
||||
|
Reference in New Issue
Block a user