Home
last modified time | relevance | path

Searched refs:DST_IP4 (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dsendmsg4_prog.c14 #define DST_IP4 0xC0A801FEU /* 192.168.1.254 */ macro
37 if ((ctx->user_ip4 >> 24) == (bpf_htonl(DST_IP4) >> 24) && in sendmsg_v4_prog()
H A Dtest_sk_lookup.c72 static const __u32 DST_IP4 = IP4(127, 0, 0, 1); variable
118 /* Redirect packets destined for DST_IP4 address to socket at redir_map[0]. */
129 if (ctx->local_ip4 != DST_IP4) in redir_ip4()
433 /* Expect DST_IP4 in local_ip4 */ in ctx_narrow_access()
434 if (LSB(ctx->local_ip4, 0) != ((DST_IP4 >> 0) & 0xff) || in ctx_narrow_access()
435 LSB(ctx->local_ip4, 1) != ((DST_IP4 >> 8) & 0xff) || in ctx_narrow_access()
436 LSB(ctx->local_ip4, 2) != ((DST_IP4 >> 16) & 0xff) || in ctx_narrow_access()
437 LSB(ctx->local_ip4, 3) != ((DST_IP4 >> 24) & 0xff)) in ctx_narrow_access()
439 if (LSW(ctx->local_ip4, 0) != ((DST_IP4 >> 0) & 0xffff) || in ctx_narrow_access()
440 LSW(ctx->local_ip4, 1) != ((DST_IP4 >> 1 in ctx_narrow_access()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dsendmsg4_prog.c16 #define DST_IP4 0xC0A801FEU /* 192.168.1.254 */ macro
40 if ((ctx->user_ip4 >> 24) == (bpf_htonl(DST_IP4) >> 24) && in sendmsg_v4_prog()
H A Dtest_sk_lookup.c72 static const __u32 DST_IP4 = IP4(127, 0, 0, 1); variable
126 /* Redirect packets destined for DST_IP4 address to socket at redir_map[0]. */
137 if (ctx->local_ip4 != DST_IP4) in redir_ip4()
451 /* Expect DST_IP4 in local_ip4 */ in ctx_narrow_access()
452 if (LSB(ctx->local_ip4, 0) != ((DST_IP4 >> 0) & 0xff) || in ctx_narrow_access()
453 LSB(ctx->local_ip4, 1) != ((DST_IP4 >> 8) & 0xff) || in ctx_narrow_access()
454 LSB(ctx->local_ip4, 2) != ((DST_IP4 >> 16) & 0xff) || in ctx_narrow_access()
455 LSB(ctx->local_ip4, 3) != ((DST_IP4 >> 24) & 0xff)) in ctx_narrow_access()
457 if (LSW(ctx->local_ip4, 0) != ((DST_IP4 >> 0) & 0xffff) || in ctx_narrow_access()
458 LSW(ctx->local_ip4, 1) != ((DST_IP4 >> 1 in ctx_narrow_access()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dmae.c690 CHECK(DST_IP4, dst_ip) || in efx_mae_match_check_caps()

Completed in 5 milliseconds