s4:torture/smb2: refactor block.c to block the OUTPUT path
authorStefan Metzmacher <metze@samba.org>
Fri, 29 May 2020 16:18:12 +0000 (09:18 -0700)
committerStefan Metzmacher <metze@samba.org>
Wed, 8 Jul 2020 15:54:39 +0000 (15:54 +0000)
commit8c7bb245ff84b1603935c45969c3bec004dff335
tree202993cad242efd4609a007c48cb4604f5bc320f
parenta52e7114df631e09f74eab16765ec00bff474549
s4:torture/smb2: refactor block.c to block the OUTPUT path

In order to create useful tests, we should block the outgoing
tcp packets only. That means we're able to see incoming
break notifications, but prevent outgoing TCP ACKs to be delivered
to the server.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source4/torture/smb2/block.c
source4/torture/smb2/block.h
source4/torture/smb2/multichannel.c