commit | fbaa3b17242a8cdb1822768a95d06212e23609b1 | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | Sun Jan 28 20:23:41 2018 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Feb 01 13:13:32 2018 +0100 |
tree | 14da2deaebe981fcb36aa72b4554f582b6f70394 | |
parent | 9a238cd538e10c8c6d9e98e8dfae0bb3f04cec2c [diff] |
net: tcp: prepare_segment: Return detailed error codes. prepare_segment() returned NULL in case of any error, which then net_context_send() translated into -EINVAL. That's highly confusing though, because a common case of failure for prepare_segment() is being unable to allocate data fragment(s) (for TCP header, etc.) So, return output pkt by reference, and detailed error status as a return value. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>