Revision 9839ff0dead906e85e4d17490aeff87a5859a157 authored by Xufeng Zhang on 23 January 2013, 16:44:34 UTC, committed by David S. Miller on 28 January 2013, 00:32:23 UTC
While sctp handling a duplicate COOKIE-ECHO and the action is 'Association restart', sctp_sf_do_dupcook_a() will processing the unexpected COOKIE-ECHO for peer restart, but it does not set the association state to SCTP_STATE_ESTABLISHED, so the association could stuck in SCTP_STATE_SHUTDOWN_PENDING state forever. This violates the sctp specification: RFC 4960 5.2.4. Handle a COOKIE ECHO when a TCB Exists Action A) In this case, the peer may have restarted. ..... After this, the endpoint shall enter the ESTABLISHED state. To resolve this problem, adding a SCTP_CMD_NEW_STATE cmd to the command list before SCTP_CMD_REPLY cmd, this will set the restart association to SCTP_STATE_ESTABLISHED state properly and also avoid I-bit being set in the DATA chunk header when COOKIE_ACK is bundled with DATA chunks. Signed-off-by: Xufeng Zhang <xufeng.zhang@windriver.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Vlad Yasevich <vyasevich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 75356a8
File | Mode | Size |
---|---|---|
bttv | ||
cx2341x | ||
cx88 | ||
.gitignore | -rw-r--r-- | 8 bytes |
4CCs.txt | -rw-r--r-- | 776 bytes |
API.html | -rw-r--r-- | 733 bytes |
CARDLIST.au0828 | -rw-r--r-- | 557 bytes |
CARDLIST.bttv | -rw-r--r-- | 9.0 KB |
CARDLIST.cx23885 | -rw-r--r-- | 2.7 KB |
CARDLIST.cx88 | -rw-r--r-- | 6.4 KB |
CARDLIST.em28xx | -rw-r--r-- | 6.1 KB |
CARDLIST.ivtv | -rw-r--r-- | 1.1 KB |
CARDLIST.saa7134 | -rw-r--r-- | 10.9 KB |
CARDLIST.saa7164 | -rw-r--r-- | 643 bytes |
CARDLIST.tm6000 | -rw-r--r-- | 1.2 KB |
CARDLIST.tuner | -rw-r--r-- | 3.2 KB |
CARDLIST.usbvision | -rw-r--r-- | 5.0 KB |
CQcam.txt | -rw-r--r-- | 6.4 KB |
README.cpia2 | -rw-r--r-- | 5.6 KB |
README.cx88 | -rw-r--r-- | 2.1 KB |
README.davinci-vpbe | -rw-r--r-- | 3.9 KB |
README.ir | -rw-r--r-- | 2.3 KB |
README.ivtv | -rw-r--r-- | 6.1 KB |
README.pvrusb2 | -rw-r--r-- | 9.6 KB |
README.saa7134 | -rw-r--r-- | 1.9 KB |
README.tlg2300 | -rw-r--r-- | 1.1 KB |
Zoran | -rw-r--r-- | 19.8 KB |
cafe_ccic | -rw-r--r-- | 2.4 KB |
cpia2_overview.txt | -rw-r--r-- | 2.3 KB |
cx18.txt | -rw-r--r-- | 811 bytes |
et61x251.txt | -rw-r--r-- | 11.1 KB |
extract_xc3028.pl | -rw-r--r-- | 44.6 KB |
fimc.txt | -rw-r--r-- | 6.6 KB |
gspca.txt | -rw-r--r-- | 15.9 KB |
hauppauge-wintv-cx88-ir.txt | -rw-r--r-- | 1.9 KB |
ibmcam.txt | -rw-r--r-- | 13.5 KB |
lifeview.txt | -rw-r--r-- | 1.5 KB |
m5602.txt | -rw-r--r-- | 549 bytes |
meye.txt | -rw-r--r-- | 4.3 KB |
not-in-cx2388x-datasheet.txt | -rw-r--r-- | 953 bytes |
omap3isp.txt | -rw-r--r-- | 10.1 KB |
ov511.txt | -rw-r--r-- | 10.7 KB |
pxa_camera.txt | -rw-r--r-- | 8.7 KB |
radiotrack.txt | -rw-r--r-- | 5.7 KB |
se401.txt | -rw-r--r-- | 1.5 KB |
sh_mobile_ceu_camera.txt | -rw-r--r-- | 3.7 KB |
si470x.txt | -rw-r--r-- | 4.6 KB |
si4713.txt | -rw-r--r-- | 6.5 KB |
sn9c102.txt | -rw-r--r-- | 22.2 KB |
soc-camera.txt | -rw-r--r-- | 6.9 KB |
stv680.txt | -rw-r--r-- | 1.6 KB |
uvcvideo.txt | -rw-r--r-- | 8.4 KB |
v4l2-controls.txt | -rw-r--r-- | 26.3 KB |
v4l2-framework.txt | -rw-r--r-- | 40.8 KB |
videobuf | -rw-r--r-- | 16.1 KB |
w9966.txt | -rw-r--r-- | 1.3 KB |
w9968cf.txt | -rw-r--r-- | 17.6 KB |
zc0301.txt | -rw-r--r-- | 8.4 KB |
zr364xx.txt | -rw-r--r-- | 3.4 KB |
Computing file changes ...