summaryrefslogtreecommitdiff
path: root/samples/bpf/tracex2_user.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2019-02-28 06:04:10 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2019-03-01 02:53:45 +0300
commit5c3cf87d477a461274452cb46f7654c5b6ae6294 (patch)
tree29fa9024249fc4ab34e527ccfd11882d9487b494 /samples/bpf/tracex2_user.c
parentebace0e981b2aa6b2c0eb9bee0df3676fd690d8b (diff)
downloadlinux-5c3cf87d477a461274452cb46f7654c5b6ae6294.tar.xz
samples: bpf: force IPv4 in ping
ping localhost may default of IPv6 on modern systems, but samples are trying to only parse IPv4. Force IPv4. samples/bpf/tracex1_user.c doesn't interpret the packet so we don't care which IP version will be used there. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Acked-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf/tracex2_user.c')
-rw-r--r--samples/bpf/tracex2_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/tracex2_user.c b/samples/bpf/tracex2_user.c
index 1a81e6a5c2ea..c9544a4ce61a 100644
--- a/samples/bpf/tracex2_user.c
+++ b/samples/bpf/tracex2_user.c
@@ -131,7 +131,7 @@ int main(int ac, char **argv)
signal(SIGTERM, int_exit);
/* start 'ping' in the background to have some kfree_skb events */
- f = popen("ping -c5 localhost", "r");
+ f = popen("ping -4 -c5 localhost", "r");
(void) f;
/* start 'dd' in the background to have plenty of 'write' syscalls */