]> Git Repo - linux.git/blobdiff - tools/testing/selftests/bpf/prog_tests/flow_dissector.c
Merge tag 'bpf-next-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf...
[linux.git] / tools / testing / selftests / bpf / prog_tests / flow_dissector.c
index 3171047414a7dc77b83bf109bd869ece39750e0f..cfcc90cb7ffbe0fb6a1c8c3b1357f7b68ebe923f 100644 (file)
@@ -378,8 +378,8 @@ struct test tests[] = {
                        .iph_inner.ihl = 5,
                        .iph_inner.protocol = IPPROTO_TCP,
                        .iph_inner.tot_len =
-                               __bpf_constant_htons(MAGIC_BYTES) -
-                               sizeof(struct iphdr),
+                               __bpf_constant_htons(MAGIC_BYTES -
+                               sizeof(struct iphdr)),
                        .tcp.doff = 5,
                        .tcp.source = 80,
                        .tcp.dest = 8080,
@@ -407,8 +407,8 @@ struct test tests[] = {
                        .iph_inner.ihl = 5,
                        .iph_inner.protocol = IPPROTO_TCP,
                        .iph_inner.tot_len =
-                               __bpf_constant_htons(MAGIC_BYTES) -
-                               sizeof(struct iphdr),
+                               __bpf_constant_htons(MAGIC_BYTES -
+                               sizeof(struct iphdr)),
                        .tcp.doff = 5,
                        .tcp.source = 80,
                        .tcp.dest = 8080,
@@ -436,8 +436,8 @@ struct test tests[] = {
                        .iph_inner.ihl = 5,
                        .iph_inner.protocol = IPPROTO_TCP,
                        .iph_inner.tot_len =
-                               __bpf_constant_htons(MAGIC_BYTES) -
-                               sizeof(struct iphdr),
+                               __bpf_constant_htons(MAGIC_BYTES -
+                               sizeof(struct iphdr)),
                        .tcp.doff = 5,
                        .tcp.source = 99,
                        .tcp.dest = 9090,
This page took 0.032019 seconds and 4 git commands to generate.