|
@@ -41,8 +41,7 @@ int sendmsg_v6_prog(struct bpf_sock_addr *ctx)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* Rewrite destination. */
|
|
/* Rewrite destination. */
|
|
|
- if ((ctx->user_ip6[0] & 0xFFFF) == bpf_htons(0xFACE) &&
|
|
|
|
|
- ctx->user_ip6[0] >> 16 == bpf_htons(0xB00C)) {
|
|
|
|
|
|
|
+ if (ctx->user_ip6[0] == bpf_htonl(0xFACEB00C)) {
|
|
|
ctx->user_ip6[0] = bpf_htonl(DST_REWRITE_IP6_0);
|
|
ctx->user_ip6[0] = bpf_htonl(DST_REWRITE_IP6_0);
|
|
|
ctx->user_ip6[1] = bpf_htonl(DST_REWRITE_IP6_1);
|
|
ctx->user_ip6[1] = bpf_htonl(DST_REWRITE_IP6_1);
|
|
|
ctx->user_ip6[2] = bpf_htonl(DST_REWRITE_IP6_2);
|
|
ctx->user_ip6[2] = bpf_htonl(DST_REWRITE_IP6_2);
|