diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:01:42 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:23 -0500 |
commit | dbc16db1e58da6c346ca3e63870c17b93fbed0f0 (patch) | |
tree | bfa4a31af842760a94ce9b29d575473d9db43c34 /net/sctp/ipv6.c | |
parent | 72f17e1c0984fbdb60abf245d81b947393910100 (diff) |
[SCTP]: Trivial sctp endianness annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r-- | net/sctp/ipv6.c | 4 |
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(¶m->v6.addr, &addr->v6.sin6_addr); | 429 | ipv6_addr_copy(¶m->v6.addr, &addr->v6.sin6_addr); |
430 | 430 | ||
431 | return length; | 431 | return length; |