diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:04:42 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:30 -0500 |
commit | 2a6fd78adec062f16f8662563115679e669efaca (patch) | |
tree | 3c2e93e5cccb7a11176079509e55f103464b1b98 /net/sctp/ipv6.c | |
parent | 09ef7fecea40c5e4c0dfe35bed3f0ed8da554cf5 (diff) |
[SCTP] embedded sctp_addr: net-endian mirrors
Add sctp_chunk->source, sctp_sockaddr_entry->a, sctp_transport->ipaddr
and sctp_transport->saddr, maintain them as net-endian mirrors of
their host-endian counterparts.
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 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index e533970fa335..8ebd177296ba 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
@@ -332,10 +332,11 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist, | |||
332 | /* Add the address to the local list. */ | 332 | /* Add the address to the local list. */ |
333 | addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC); | 333 | addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC); |
334 | if (addr) { | 334 | if (addr) { |
335 | addr->a_h.v6.sin6_family = AF_INET6; | 335 | addr->a.v6.sin6_family = AF_INET6; |
336 | addr->a_h.v6.sin6_port = 0; | 336 | addr->a.v6.sin6_port = 0; |
337 | addr->a_h.v6.sin6_addr = ifp->addr; | 337 | addr->a.v6.sin6_addr = ifp->addr; |
338 | addr->a_h.v6.sin6_scope_id = dev->ifindex; | 338 | addr->a.v6.sin6_scope_id = dev->ifindex; |
339 | addr->a_h = addr->a; | ||
339 | INIT_LIST_HEAD(&addr->list); | 340 | INIT_LIST_HEAD(&addr->list); |
340 | list_add_tail(&addr->list, addrlist); | 341 | list_add_tail(&addr->list, addrlist); |
341 | } | 342 | } |