diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-07-26 17:33:39 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-26 11:11:56 -0700 |
commit | 582ee43dad8e411513a74f2d801255dcffc6d29e (patch) | |
tree | bf822fd3dd9b889531134c7004e9f42b134485f1 /net/key | |
parent | 704eae1f32274c0435f7f3924077afdb811edd1d (diff) | |
download | linux-3.10-582ee43dad8e411513a74f2d801255dcffc6d29e.tar.gz linux-3.10-582ee43dad8e411513a74f2d801255dcffc6d29e.tar.bz2 linux-3.10-582ee43dad8e411513a74f2d801255dcffc6d29e.zip |
net/* misc endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/key')
-rw-r--r-- | net/key/af_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index 0f8304b0246..7b0a95abe93 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -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); |