diff options
| -rw-r--r-- | tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1935,7 +1935,7 @@ static ssize_t tcp_packet_data_len(const struct tcphdr *th, size_t l4len) * * #syscalls sendmsg * - * Return: count of consumed packets + * Return: count of consumed packets, -1 on unrecoverable connection error */ static int tcp_data_from_tap(const struct ctx *c, struct tcp_tap_conn *conn, const struct pool *p, int idx, @@ -2450,7 +2450,7 @@ int tcp_tap_handler(const struct ctx *c, uint8_t pif, sa_family_t af, ntohl(th->ack_seq), conn->seq_to_tap); if (tcp_rewind_seq(c, conn, now)) - return -1; + return packet_next(p, idx) - idx; } /* An unchanged ACK and window must not restart the timer. */ |
