Home
last modified time | relevance | path

Searched refs:local_port (Results 1 – 13 of 13) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dtest_misc_tcp_hdr_options.c218 active_lport_h = skops->local_port; in write_active_opt()
251 if (skops->local_port == passive_lport_h) in handle_hdr_opt_len()
259 if (skops->local_port == passive_lport_h) in handle_write_hdr_opt()
270 if (skops->local_port == active_lport_h) in handle_parse_hdr()
303 passive_lport_h = skops->local_port; in misc_estab()
Dsockmap_parse_prog.c12 __u32 lport = skb->local_port; in bpf_prog1()
Dtest_sk_lookup.c106 if (ctx->local_port != DST_PORT) in redir_port()
127 if (ctx->local_port != DST_PORT) in redir_ip4()
150 if (ctx->local_port != DST_PORT) in redir_ip6()
413 if (LSB(ctx->local_port, 0) != ((DST_PORT >> 0) & 0xff) || in ctx_narrow_access()
414 LSB(ctx->local_port, 1) != ((DST_PORT >> 8) & 0xff) || in ctx_narrow_access()
415 LSB(ctx->local_port, 2) != 0 || LSB(ctx->local_port, 3) != 0) in ctx_narrow_access()
417 if (LSW(ctx->local_port, 0) != DST_PORT) in ctx_narrow_access()
Dsockmap_verdict_prog.c40 __u32 lport = skb->local_port; in bpf_prog2()
Dsocket_cookie_prog.c73 p->cookie_value |= (ctx->local_port << 8); in update_cookie_sockops()
Dtest_sockmap_kern.h109 __u32 lport = skb->local_port; in bpf_prog2()
198 lport = skops->local_port; in bpf_sockmap()
213 lport = skops->local_port; in bpf_sockmap()
/tools/testing/selftests/bpf/verifier/
Dctx_sk_lookup.c216 offsetof(struct bpf_sk_lookup, local_port)),
218 offsetof(struct bpf_sk_lookup, local_port) + 1),
220 offsetof(struct bpf_sk_lookup, local_port) + 2),
222 offsetof(struct bpf_sk_lookup, local_port) + 3),
225 offsetof(struct bpf_sk_lookup, local_port)),
227 offsetof(struct bpf_sk_lookup, local_port) + 2),
230 offsetof(struct bpf_sk_lookup, local_port)),
344 offsetof(struct bpf_sk_lookup, local_port)),
Dctx_sk_msg.c45 offsetof(struct sk_msg_md, local_port)),
Dcgroup_skb.c116 offsetof(struct __sk_buff, local_port)),
Dctx_skb.c171 offsetof(struct __sk_buff, local_port)),
253 offsetof(struct __sk_buff, local_port)),
/tools/testing/selftests/bpf/
Dtest_tcp_hdr_options.h143 __lport = skops->local_port; \
/tools/include/uapi/linux/
Dbpf.h5282 __u32 local_port; /* stored in host byte order */ member
5502 __u32 local_port; /* stored in host byte order */ member
5697 __u32 local_port; /* stored in host byte order */ member
6234 __u32 local_port; /* Host byte order */ member
/tools/testing/selftests/bpf/prog_tests/
Dsk_lookup.c255 static int fill_sk_lookup_ctx(struct bpf_sk_lookup *ctx, const char *local_ip, __u16 local_port, in fill_sk_lookup_ctx() argument
262 ctx->local_port = local_port; in fill_sk_lookup_ctx()