diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-09-04 18:20:56 -0400 |
---|---|---|
committer | Vlad Yasevich <vladislav.yasevich@hp.com> | 2009-09-04 18:20:56 -0400 |
commit | 3e62abf92f34d75fe22352d8d102e3cd2755804d (patch) | |
tree | e8e175b95bdf137565a301e382d6f7c22e4a417e /arch/mips | |
parent | bec9640bb0d451813b1bb1f2cc13a5bfb17c3e48 (diff) |
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 <vladislav.yasevich@hp.com>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions