Re: bgpd: cleanup optparamlen handling in session_open

2023-10-27 Thread Theo Buehler
On Fri, Oct 27, 2023 at 01:06:31PM +0200, Claudio Jeker wrote: > In the big ibuf API refactor I also broke the optparamlen handling > by using one variable for two things. > > All the size handling in session_open() can be simplified since > ibuf_size() is cheap to call. > > I think the result

bgpd: cleanup optparamlen handling in session_open

2023-10-27 Thread Claudio Jeker
In the big ibuf API refactor I also broke the optparamlen handling by using one variable for two things. All the size handling in session_open() can be simplified since ibuf_size() is cheap to call. I think the result is cleaner than the code before. It is still somewhat funky because there are