diff options
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r-- | net/sctp/associola.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 5db95caed0a3..fca6f75b0a0d 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c | |||
@@ -158,14 +158,14 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a | |||
158 | * If the 'T5-shutdown-guard' timer is used, it SHOULD be set to the | 158 | * If the 'T5-shutdown-guard' timer is used, it SHOULD be set to the |
159 | * recommended value of 5 times 'RTO.Max'. | 159 | * recommended value of 5 times 'RTO.Max'. |
160 | */ | 160 | */ |
161 | asoc->timeouts[SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD] | 161 | asoc->timeouts[SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD] |
162 | = 5 * asoc->rto_max; | 162 | = 5 * asoc->rto_max; |
163 | 163 | ||
164 | asoc->timeouts[SCTP_EVENT_TIMEOUT_HEARTBEAT] = 0; | 164 | asoc->timeouts[SCTP_EVENT_TIMEOUT_HEARTBEAT] = 0; |
165 | asoc->timeouts[SCTP_EVENT_TIMEOUT_SACK] = asoc->sackdelay; | 165 | asoc->timeouts[SCTP_EVENT_TIMEOUT_SACK] = asoc->sackdelay; |
166 | asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE] = | 166 | asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE] = |
167 | sp->autoclose * HZ; | 167 | sp->autoclose * HZ; |
168 | 168 | ||
169 | /* Initilizes the timers */ | 169 | /* Initilizes the timers */ |
170 | for (i = SCTP_EVENT_TIMEOUT_NONE; i < SCTP_NUM_TIMEOUT_TYPES; ++i) { | 170 | for (i = SCTP_EVENT_TIMEOUT_NONE; i < SCTP_NUM_TIMEOUT_TYPES; ++i) { |
171 | init_timer(&asoc->timers[i]); | 171 | init_timer(&asoc->timers[i]); |
@@ -1334,8 +1334,8 @@ int sctp_assoc_set_bind_addr_from_cookie(struct sctp_association *asoc, | |||
1334 | asoc->ep->base.bind_addr.port, gfp); | 1334 | asoc->ep->base.bind_addr.port, gfp); |
1335 | } | 1335 | } |
1336 | 1336 | ||
1337 | /* Lookup laddr in the bind address list of an association. */ | 1337 | /* Lookup laddr in the bind address list of an association. */ |
1338 | int sctp_assoc_lookup_laddr(struct sctp_association *asoc, | 1338 | int sctp_assoc_lookup_laddr(struct sctp_association *asoc, |
1339 | const union sctp_addr *laddr) | 1339 | const union sctp_addr *laddr) |
1340 | { | 1340 | { |
1341 | int found; | 1341 | int found; |
@@ -1343,7 +1343,7 @@ int sctp_assoc_lookup_laddr(struct sctp_association *asoc, | |||
1343 | sctp_read_lock(&asoc->base.addr_lock); | 1343 | sctp_read_lock(&asoc->base.addr_lock); |
1344 | if ((asoc->base.bind_addr.port == ntohs(laddr->v4.sin_port)) && | 1344 | if ((asoc->base.bind_addr.port == ntohs(laddr->v4.sin_port)) && |
1345 | sctp_bind_addr_match(&asoc->base.bind_addr, laddr, | 1345 | sctp_bind_addr_match(&asoc->base.bind_addr, laddr, |
1346 | sctp_sk(asoc->base.sk))) { | 1346 | sctp_sk(asoc->base.sk))) { |
1347 | found = 1; | 1347 | found = 1; |
1348 | goto out; | 1348 | goto out; |
1349 | } | 1349 | } |