diff options
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 1eb1c7f261d4..87c8f54872b7 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
@@ -222,7 +222,7 @@ lookup_protocol: | |||
222 | * the user to assign a number at socket | 222 | * the user to assign a number at socket |
223 | * creation time automatically shares. | 223 | * creation time automatically shares. |
224 | */ | 224 | */ |
225 | inet->sport = ntohs(inet->num); | 225 | inet->sport = htons(inet->num); |
226 | sk->sk_prot->hash(sk); | 226 | sk->sk_prot->hash(sk); |
227 | } | 227 | } |
228 | if (sk->sk_prot->init) { | 228 | if (sk->sk_prot->init) { |
@@ -342,7 +342,7 @@ int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) | |||
342 | sk->sk_userlocks |= SOCK_BINDADDR_LOCK; | 342 | sk->sk_userlocks |= SOCK_BINDADDR_LOCK; |
343 | if (snum) | 343 | if (snum) |
344 | sk->sk_userlocks |= SOCK_BINDPORT_LOCK; | 344 | sk->sk_userlocks |= SOCK_BINDPORT_LOCK; |
345 | inet->sport = ntohs(inet->num); | 345 | inet->sport = htons(inet->num); |
346 | inet->dport = 0; | 346 | inet->dport = 0; |
347 | inet->daddr = 0; | 347 | inet->daddr = 0; |
348 | out: | 348 | out: |