|Subject:||Re: [lwip-users] Add new header & tail|
|Date:||Thu, 13 Sep 2018 21:34:39 +0200|
|User-agent:||Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1|
On 11.09.2018 12:29, dhosa wrote:
That doesn't seem completely correct. Per your later image, it seems you need the IP header to contain proto = ESP, not proto = TCP...
But you must also check it, not only remove it, don't you?
No, that doesn't seem correct. pbuf_header only moves the payload pointer, the data is still where it was before. You'll need to fiddle around with the data or create new pbufs to achieve what you want.
If you wanted to implement this without changing the stack, you'd need some kind of new hook (as Sergio mentioned) to add the header and change the IP protocol.
For RX, it might be enough to implement a raw pcb that detects the IP proto = ESP, checks and hides the header and sends the remaining pbuf up to tcp_input().
|[Prev in Thread]||Current Thread||[Next in Thread]|