diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-21 02:04:42 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 06:26:30 +0100 |
commit | 2a6fd78adec062f16f8662563115679e669efaca (patch) | |
tree | 3c2e93e5cccb7a11176079509e55f103464b1b98 /net/sctp/bind_addr.c | |
parent | [SCTP]: Beginning of conversion to net-endian for embedded sctp_addr. (diff) | |
download | linux-2a6fd78adec062f16f8662563115679e669efaca.tar.xz linux-2a6fd78adec062f16f8662563115679e669efaca.zip |
[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/bind_addr.c')
-rw-r--r-- | net/sctp/bind_addr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c index b8115cb31ae3..2b36e4238170 100644 --- a/net/sctp/bind_addr.c +++ b/net/sctp/bind_addr.c @@ -163,6 +163,8 @@ int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, if (!addr->a_h.v4.sin_port) addr->a_h.v4.sin_port = bp->port; + flip_to_n(&addr->a, &addr->a_h); + addr->use_as_src = use_as_src; INIT_LIST_HEAD(&addr->list); |