Skip to content

Commit

Permalink
mptcp: add regression test for disconnect()
Browse files Browse the repository at this point in the history
This simply trigger the in-kernel mptcp disconnect
code path, so that we can have coverage for:

https://marc.info/?l=linux-netdev&m=161053335929207&w=2

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
  • Loading branch information
Paolo Abeni committed Jan 14, 2021
1 parent a6373aa commit 8987957
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gtests/net/mptcp/regressions/disconnect.pkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This test case covers the regression fixed by ("mptcp: be careful on MPTCP-level ack.")
// bad read on on unconnected socket
--tolerance_usecs=100000
`../common/defaults.sh`

0.0 socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3
+0.0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
+0.0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0

+0.0 connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress)
+0.0 > S 0:0(0) <mss 1460,sackOK,TS val 100 ecr 0,nop,wscale 8,mpcapable v1 flags[flag_h] nokey>

+0.0 shutdown(3, SHUT_WR) = 0

0 comments on commit 8987957

Please sign in to comment.