Re: [PATCH v3 bpf-next 1/9] tcp: Use a struct to represent a saved_syn

2020-07-31 Thread Eric Dumazet
On 7/31/20 8:57 AM, Eric Dumazet wrote: > On Thu, Jul 30, 2020 at 1:57 PM Martin KaFai Lau wrote: >> >> The TCP_SAVE_SYN has both the network header and tcp header. >> The total length of the saved syn packet is currently stored in >> the first 4 bytes (u32) of an array and the actual packet da

[PATCH v3 bpf-next 1/9] tcp: Use a struct to represent a saved_syn

2020-07-30 Thread Martin KaFai Lau
The TCP_SAVE_SYN has both the network header and tcp header. The total length of the saved syn packet is currently stored in the first 4 bytes (u32) of an array and the actual packet data is stored after that. A latter patch will add a bpf helper that allows to get the tcp header alone from the sa