Re: iked: ibuf saga step 2

2023-05-26 Thread Claudio Jeker
On Fri, May 26, 2023 at 11:18:26AM +0200, Theo Buehler wrote: > On Fri, May 26, 2023 at 10:11:32AM +0200, Claudio Jeker wrote: > > Kill ibuf_prepend() it is used only once and the function does unholy > > things to the ibuf passed in. Just do the obivous dance in the callee. > > The only thing to

Re: iked: ibuf saga step 2

2023-05-26 Thread Theo Buehler
On Fri, May 26, 2023 at 10:11:32AM +0200, Claudio Jeker wrote: > Kill ibuf_prepend() it is used only once and the function does unholy > things to the ibuf passed in. Just do the obivous dance in the callee. > The only thing to be careful about is the fact that all pointers of buf > are replaced

iked: ibuf saga step 2

2023-05-26 Thread Claudio Jeker
Kill ibuf_prepend() it is used only once and the function does unholy things to the ibuf passed in. Just do the obivous dance in the callee. The only thing to be careful about is the fact that all pointers of buf are replaced (msg->msg_data). Tested with iked -t (which should use this codepath).