Skip to content

Commit

Permalink
- add test for mp_capable v1 (server side)
Browse files Browse the repository at this point in the history
- move all v0 tests in a separate folder

related to: issue #3

Signed-off-by: Davide Caratti <[email protected]>
  • Loading branch information
dcaratti committed Feb 12, 2020
1 parent 44a199a commit 426b781
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gtests/net/mptcp/mp_capable/v1_mp_capable_bind_no_cs.pkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Test mp_capable mptcp option, first syn sent by packetdrill
`../common/defaults.sh`

+0 socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3
+0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0

+0 bind(3, ..., ...) = 0
+0 listen(3, 1) = 0
+0 < S 0:0(0) win 32792 <mss 1000,sackOK,nop,nop,nop,wscale 7,mpcapable v1 flags[flag_h] nokey>
+0 > S. 0:0(0) ack 1 <mss 1460,nop,nop,sackOK,nop,wscale 8,mpcapable v1 flags[flag_h] key[skey] >
+0.01 < . 1:1(0) ack 1 win 257 <mpcapable v0 flags[flag_h] key[ckey=2,skey] >
+0 accept(3, ..., ...) = 4

0 comments on commit 426b781

Please sign in to comment.