aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r--net/sctp/ipv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index 3c316c688ade..1f9f5ec07595 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -239,7 +239,7 @@ static inline int sctp_v6_addr_match_len(union sctp_addr *s1,
239 int i, j; 239 int i, j;
240 240
241 for (i = 0; i < 4 ; i++) { 241 for (i = 0; i < 4 ; i++) {
242 __u32 a1xora2; 242 __be32 a1xora2;
243 243
244 a1xora2 = a1->s6_addr32[i] ^ a2->s6_addr32[i]; 244 a1xora2 = a1->s6_addr32[i] ^ a2->s6_addr32[i];
245 245
@@ -425,7 +425,7 @@ static int sctp_v6_to_addr_param(const union sctp_addr *addr,
425 int length = sizeof(sctp_ipv6addr_param_t); 425 int length = sizeof(sctp_ipv6addr_param_t);
426 426
427 param->v6.param_hdr.type = SCTP_PARAM_IPV6_ADDRESS; 427 param->v6.param_hdr.type = SCTP_PARAM_IPV6_ADDRESS;
428 param->v6.param_hdr.length = ntohs(length); 428 param->v6.param_hdr.length = htons(length);
429 ipv6_addr_copy(&param->v6.addr, &addr->v6.sin6_addr); 429 ipv6_addr_copy(&param->v6.addr, &addr->v6.sin6_addr);
430 430
431 return length; 431 return length;