Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75324
b: refs/heads/master
c: 6df9cfc
h: refs/heads/master
v: v3
  • Loading branch information
Vlad Yasevich authored and David S. Miller committed Jan 9, 2008
1 parent 55b83f9 commit 7652e51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f691724c4d3b150bfa9cc8a969ea2020e20dfb12
refs/heads/master: 6df9cfc1ad45839e2a11330ab354330c6128cb73
22 changes: 0 additions & 22 deletions trunk/net/sctp/sm_statefuns.c
Original file line number Diff line number Diff line change
Expand Up @@ -1309,26 +1309,6 @@ static void sctp_tietags_populate(struct sctp_association *new_asoc,
new_asoc->c.initial_tsn = asoc->c.initial_tsn;
}

static void sctp_auth_params_populate(struct sctp_association *new_asoc,
const struct sctp_association *asoc)
{
/* Only perform this if AUTH extension is enabled */
if (!sctp_auth_enable)
return;

/* We need to provide the same parameter information as
* was in the original INIT. This means that we need to copy
* the HMACS, CHUNKS, and RANDOM parameter from the original
* assocaition.
*/
memcpy(new_asoc->c.auth_random, asoc->c.auth_random,
sizeof(asoc->c.auth_random));
memcpy(new_asoc->c.auth_hmacs, asoc->c.auth_hmacs,
sizeof(asoc->c.auth_hmacs));
memcpy(new_asoc->c.auth_chunks, asoc->c.auth_chunks,
sizeof(asoc->c.auth_chunks));
}

/*
* Compare vtag/tietag values to determine unexpected COOKIE-ECHO
* handling action.
Expand Down Expand Up @@ -1486,8 +1466,6 @@ static sctp_disposition_t sctp_sf_do_unexpected_init(

sctp_tietags_populate(new_asoc, asoc);

sctp_auth_params_populate(new_asoc, asoc);

/* B) "Z" shall respond immediately with an INIT ACK chunk. */

/* If there are errors need to be reported for unknown parameters,
Expand Down

0 comments on commit 7652e51

Please sign in to comment.