Re: Question regarding struct sctp_association

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/12/2011 02:00 AM, Wei Yongjun wrote:

>>                 /* Restart the AUTOCLOSE timer when sending data. */
>> -               if (sctp_state(asoc, ESTABLISHED) && asoc->autoclose) {
>> +               if (asoc && sctp_state(asoc, ESTABLISHED) && asoc->autoclose) {
>>                         timer = &asoc->timers[SCTP_EVENT_TIMEOUT_AUTOCLOSE];
>>                         timeout = asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE];
>>
>>
>> Can an OOTB packet contain data chunks that would make us go through this path?
> 
> AUTOCLOSE timer is only start when we have association, so this will
> not happen.

I am not sure, that is why I am asking. It appears that if there is any DATA
Chunk in the packet to send the code attempts to access 'asoc'. Can this code
path be ever triggered with an OOTB packet?

sorry if that question is too stupid

z.
--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux