From: Vlad Yasevich Date: Fri, 4 Sep 2009 22:20:56 +0000 (-0400) Subject: sctp: Fix data segmentation with small frag_size X-Git-Tag: v2.6.32-rc1~703^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e62abf92f34d75fe22352d8d102e3cd2755804d;p=pandora-kernel.git sctp: Fix data segmentation with small frag_size Since an application may specify the maximum SCTP fragment size that all data should be fragmented to, we need to fix how we do segmentation. Right now, if a user specifies a small fragment size, the segment size can go negative in the presence of AUTH or COOKIE_ECHO bundling. What we need to do is track the largest possbile DATA chunk that can fit into the mtu. Then if the fragment size specified is bigger then this maximum length, we'll shrink it down. Otherwise, we just use the smaller segment size without changing it further. Signed-off-by: Vlad Yasevich --- Reading git-diff-tree failed