aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_make_chunk.c
diff options
context:
space:
mode:
authorVlad Yasevich <vladislav.yasevich@hp.com>2007-12-20 17:12:24 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:59:24 -0500
commitf57d96b2e92d209ab3991bba9a44e0d6ef7614a8 (patch)
treebfd82e031bd1842d0efc60beb893947d9ee95ccc /net/sctp/sm_make_chunk.c
parenta08de64d074b36a56ee3bb985cd171281db78e96 (diff)
[SCTP]: Change use_as_src into a full address state
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r--net/sctp/sm_make_chunk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c
index 7fd6a6b68614..46f54188f00a 100644
--- a/net/sctp/sm_make_chunk.c
+++ b/net/sctp/sm_make_chunk.c
@@ -1692,8 +1692,8 @@ no_hmac:
1692 1692
1693 /* Also, add the destination address. */ 1693 /* Also, add the destination address. */
1694 if (list_empty(&retval->base.bind_addr.address_list)) { 1694 if (list_empty(&retval->base.bind_addr.address_list)) {
1695 sctp_add_bind_addr(&retval->base.bind_addr, &chunk->dest, 1, 1695 sctp_add_bind_addr(&retval->base.bind_addr, &chunk->dest,
1696 GFP_ATOMIC); 1696 SCTP_ADDR_SRC, GFP_ATOMIC);
1697 } 1697 }
1698 1698
1699 retval->next_tsn = retval->c.initial_tsn; 1699 retval->next_tsn = retval->c.initial_tsn;
@@ -3016,7 +3016,7 @@ static int sctp_asconf_param_success(struct sctp_association *asoc,
3016 local_bh_disable(); 3016 local_bh_disable();
3017 list_for_each_entry(saddr, &bp->address_list, list) { 3017 list_for_each_entry(saddr, &bp->address_list, list) {
3018 if (sctp_cmp_addr_exact(&saddr->a, &addr)) 3018 if (sctp_cmp_addr_exact(&saddr->a, &addr))
3019 saddr->use_as_src = 1; 3019 saddr->state = SCTP_ADDR_SRC;
3020 } 3020 }
3021 local_bh_enable(); 3021 local_bh_enable();
3022 break; 3022 break;