selftests/bpf: don't hardcode iptables/nc path in test_tcpnotify_user
authorStanislav Fomichev <sdf@google.com>
Thu, 17 Jan 2019 19:56:12 +0000 (11:56 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 23 Jan 2019 11:56:30 +0000 (12:56 +0100)
commitbbebce8eb9a54091b9a66121fd26b7caabd76895
treedfb861823eea11cf3a564b1a86fbe0e846241f6f
parentc76e4c228b053eb108e6c3221bef338aa2c98fac
selftests/bpf: don't hardcode iptables/nc path in test_tcpnotify_user

system() is calling shell which should find the appropriate full path
via $PATH. On some systems, full path to iptables and/or nc might be
different that we one we have hardcoded.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_tcpnotify_user.c