Re: [PATCH bpf-next 01/10] tcp: Use a struct to represent a saved_syn

2020-06-30 Thread Martin KaFai Lau
On Sat, Jun 27, 2020 at 10:41:32AM -0700, Eric Dumazet wrote: > On Fri, Jun 26, 2020 at 10:55 AM Martin KaFai Lau wrote: > > > > The total length of the saved syn packet is currently stored in > > the first 4 bytes (u32) and the actual packet data is stored after that. > > > > A latter patch will

[PATCH bpf-next 01/10] tcp: Use a struct to represent a saved_syn

2020-06-26 Thread Martin KaFai Lau
The total length of the saved syn packet is currently stored in the first 4 bytes (u32) and the actual packet data is stored after that. A latter patch will also want to store an offset (bpf_hdr_opt_off) to a TCP header option which the bpf program will be interested in parsing. Instead of anonymo