diff options
author | 2017-11-01 14:04:18 +0000 | |
---|---|---|
committer | 2017-11-01 14:07:12 +0000 | |
commit | c1b4951ccc6c7c5c44dbfb1d01f86bc5ea0016c8 (patch) | |
tree | b10b940ee084c46b09b36cb4359523105713f204 /lib | |
parent | e18a033b921d0d79fa8278f853548e6125b93e0c (diff) |
tle_tcp: return ENODATA for unprocessed/unused packets that belong to existing stream.
Change-Id: I3109b843178cc8576ebaa6eae6c3f75081067feb
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libtle_l4p/tcp_rxtx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libtle_l4p/tcp_rxtx.c b/lib/libtle_l4p/tcp_rxtx.c index 30ed104..b12b974 100644 --- a/lib/libtle_l4p/tcp_rxtx.c +++ b/lib/libtle_l4p/tcp_rxtx.c @@ -1646,7 +1646,6 @@ rx_stream(struct tle_tcp_stream *s, uint32_t ts, /* process <SYN,ACK> */ } else if ((pi->tf.flags & TCP_FLAG_SYN) != 0) { - ret = 0; for (i = 0; i != num; i++) { ret = rx_synack(s, ts, state, &si[i], mb[i], &rsp); if (ret == 0) @@ -1728,7 +1727,7 @@ rx_stream(struct tle_tcp_stream *s, uint32_t ts, /* unprocessed packets */ for (; i != num; i++, k++) { - rc[k] = EINVAL; + rc[k] = ENODATA; rp[k] = mb[i]; } |