diff options
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index ccbba6b24d1d..13109cfc3ae5 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -1031,7 +1031,7 @@ nodata: | |||
1031 | void sctp_init_addrs(struct sctp_chunk *chunk, union sctp_addr *src, | 1031 | void sctp_init_addrs(struct sctp_chunk *chunk, union sctp_addr *src, |
1032 | union sctp_addr *dest) | 1032 | union sctp_addr *dest) |
1033 | { | 1033 | { |
1034 | memcpy(&chunk->source, src, sizeof(union sctp_addr)); | 1034 | memcpy(&chunk->source_h, src, sizeof(union sctp_addr)); |
1035 | memcpy(&chunk->dest, dest, sizeof(union sctp_addr)); | 1035 | memcpy(&chunk->dest, dest, sizeof(union sctp_addr)); |
1036 | } | 1036 | } |
1037 | 1037 | ||
@@ -1040,10 +1040,10 @@ const union sctp_addr *sctp_source(const struct sctp_chunk *chunk) | |||
1040 | { | 1040 | { |
1041 | /* If we have a known transport, use that. */ | 1041 | /* If we have a known transport, use that. */ |
1042 | if (chunk->transport) { | 1042 | if (chunk->transport) { |
1043 | return &chunk->transport->ipaddr; | 1043 | return &chunk->transport->ipaddr_h; |
1044 | } else { | 1044 | } else { |
1045 | /* Otherwise, extract it from the IP header. */ | 1045 | /* Otherwise, extract it from the IP header. */ |
1046 | return &chunk->source; | 1046 | return &chunk->source_h; |
1047 | } | 1047 | } |
1048 | } | 1048 | } |
1049 | 1049 | ||
@@ -2594,7 +2594,7 @@ static int sctp_asconf_param_success(struct sctp_association *asoc, | |||
2594 | sctp_write_lock(&asoc->base.addr_lock); | 2594 | sctp_write_lock(&asoc->base.addr_lock); |
2595 | list_for_each(pos, &bp->address_list) { | 2595 | list_for_each(pos, &bp->address_list) { |
2596 | saddr = list_entry(pos, struct sctp_sockaddr_entry, list); | 2596 | saddr = list_entry(pos, struct sctp_sockaddr_entry, list); |
2597 | if (sctp_cmp_addr_exact(&saddr->a, &addr)) | 2597 | if (sctp_cmp_addr_exact(&saddr->a_h, &addr)) |
2598 | saddr->use_as_src = 1; | 2598 | saddr->use_as_src = 1; |
2599 | } | 2599 | } |
2600 | sctp_write_unlock(&asoc->base.addr_lock); | 2600 | sctp_write_unlock(&asoc->base.addr_lock); |