#!/bin/bash
# Copyright 2021-2022 Ian Jackson and contributors to Hippotat
# SPDX-License-Identifier: GPL-3.0-or-later WITH LicenseRef-Hippotat-OpenSSL-Exception
# There is NO WARRANTY.

set -e
. "${0%/*}"/tcommon
test-prep

start-server
start-client

in-ns client ping -i 0.1 -c 10 192.0.2.1 >$tmp/ping
grep ' 0% packet loss' $tmp/ping
