Florin,

> For discarding options you’ll probably need to write your own function that
> first recomputes them and then moves the payload closer to the header.

Yep, that's what I had in mind.

> tcp_buffer_discard_bytes just chops off payload bytes, as in moves the 
> buffer’s
> current_data pointer. I don’t think it’s enough for what you need.

Indeed, it's not enough.

> Quick note, for completeness: If you’re planning on discarding all headers up 
> to
> tcp, the other option would be to move the tcp header forward, since it’s
> typically smaller than the payload.

I don't. Actually, the goal is only to strip off some tcp options that match 
against some rules.

Thanks,

Justin
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to