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

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

Completed in 139 milliseconds