aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/sendmsg6_prog.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-08-06 21:44:57 -0400
committerDavid S. Miller <davem@davemloft.net>2019-08-06 21:44:57 -0400
commit13dfb3fa494361ea9a5950f27c9cd8b06d28c04f (patch)
tree1bf30874f57c6c6b21160a10282191fcd0868055 /tools/testing/selftests/bpf/progs/sendmsg6_prog.c
parent05bb520376af2c5146d3c44832c22ec3bb54d778 (diff)
parent33920f1ec5bf47c5c0a1d2113989bdd9dfb3fae9 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Just minor overlapping changes in the conflicts here. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg6_prog.c')
-rw-r--r--tools/testing/selftests/bpf/progs/sendmsg6_prog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/progs/sendmsg6_prog.c b/tools/testing/selftests/bpf/progs/sendmsg6_prog.c
index 5aeaa284fc47..a68062820410 100644
--- a/tools/testing/selftests/bpf/progs/sendmsg6_prog.c
+++ b/tools/testing/selftests/bpf/progs/sendmsg6_prog.c
@@ -41,8 +41,7 @@ int sendmsg_v6_prog(struct bpf_sock_addr *ctx)
41 } 41 }
42 42
43 /* Rewrite destination. */ 43 /* Rewrite destination. */
44 if ((ctx->user_ip6[0] & 0xFFFF) == bpf_htons(0xFACE) && 44 if (ctx->user_ip6[0] == bpf_htonl(0xFACEB00C)) {
45 ctx->user_ip6[0] >> 16 == bpf_htons(0xB00C)) {
46 ctx->user_ip6[0] = bpf_htonl(DST_REWRITE_IP6_0); 45 ctx->user_ip6[0] = bpf_htonl(DST_REWRITE_IP6_0);
47 ctx->user_ip6[1] = bpf_htonl(DST_REWRITE_IP6_1); 46 ctx->user_ip6[1] = bpf_htonl(DST_REWRITE_IP6_1);
48 ctx->user_ip6[2] = bpf_htonl(DST_REWRITE_IP6_2); 47 ctx->user_ip6[2] = bpf_htonl(DST_REWRITE_IP6_2);