Home
last modified time | relevance | path

Searched refs:hdr_bytes_remaining (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dtest_parse_tcp_hdr_opt_dynptr.c30 static int parse_hdr_opt(struct bpf_dynptr *ptr, __u32 *off, __u8 *hdr_bytes_remaining, in parse_hdr_opt() argument
50 *hdr_bytes_remaining -= 1; in parse_hdr_opt()
54 if (*hdr_bytes_remaining < 2) in parse_hdr_opt()
58 if (hdr_len > *hdr_bytes_remaining) in parse_hdr_opt()
70 *hdr_bytes_remaining -= hdr_len; in parse_hdr_opt()
78 __u8 hdr_bytes_remaining; in xdp_ingress_v6() local
98 hdr_bytes_remaining = tcp_hdr_opt_len; in xdp_ingress_v6()
104 err = parse_hdr_opt(&ptr, &off, &hdr_bytes_remaining, &server_id); in xdp_ingress_v6()
106 if (err || !hdr_bytes_remaining) in xdp_ingress_v6()
Dtest_parse_tcp_hdr_opt.c33 __u8 hdr_bytes_remaining; member
52 state->hdr_bytes_remaining--; in parse_hdr_opt()
57 if (state->hdr_bytes_remaining < 2 || in parse_hdr_opt()
62 if (hdr_len > state->hdr_bytes_remaining) in parse_hdr_opt()
76 state->hdr_bytes_remaining -= hdr_len; in parse_hdr_opt()
101 opt_state.hdr_bytes_remaining = tcp_hdr_opt_len; in xdp_ingress_v6()
108 if (err || !opt_state.hdr_bytes_remaining) in xdp_ingress_v6()