Commit b446934
tcp: add TCP_OLD_SEQUENCE drop reason
tcp_sequence() uses two conditions to decide to drop a packet,
and we currently report generic TCP_INVALID_SEQUENCE drop reason.
Duplicates are common, we need to distinguish them from
the other case.
I chose to not reuse TCP_OLD_DATA, and instead added
TCP_OLD_SEQUENCE drop reason.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230719064754.2794106-1-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent af1e2cf commit b446934
2 files changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| 192 | + | |
| 193 | + | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4312 | 4312 | | |
4313 | 4313 | | |
4314 | 4314 | | |
4315 | | - | |
| 4315 | + | |
| 4316 | + | |
4316 | 4317 | | |
4317 | | - | |
4318 | | - | |
| 4318 | + | |
| 4319 | + | |
| 4320 | + | |
| 4321 | + | |
| 4322 | + | |
| 4323 | + | |
| 4324 | + | |
4319 | 4325 | | |
4320 | 4326 | | |
4321 | 4327 | | |
| |||
5738 | 5744 | | |
5739 | 5745 | | |
5740 | 5746 | | |
5741 | | - | |
| 5747 | + | |
| 5748 | + | |
5742 | 5749 | | |
5743 | 5750 | | |
5744 | 5751 | | |
| |||
5755 | 5762 | | |
5756 | 5763 | | |
5757 | 5764 | | |
5758 | | - | |
5759 | 5765 | | |
5760 | 5766 | | |
5761 | 5767 | | |
| |||
0 commit comments