RE: [RFC PATCH v4 bpf-next 01/12] tcp: Use a struct to represent a saved_syn

2020-08-03 Thread John Fastabend
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 data is > stored after that. > > A later patch will add a bpf helper that allows to g

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

2020-08-03 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 later patch will add a bpf helper that allows to get the tcp header alone from the sav