summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventscripts/stubs/ctdb_killtcp
blob: 2a4bac441f4702d7fe6fb670d25005df3a47419e (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Only supports reading from stdin

# shellcheck disable=SC2034
iface="$1" # ignored

while read -r src dst; do
	sed -i -e "/^${dst} ${src}\$/d" "$FAKE_NETSTAT_TCP_ESTABLISHED_FILE"
done