one send_rtmsg is enough for bgpd

2022-06-30 Thread Claudio Jeker
Implement send_rtmsg() using kroute_full and just use one version of this magical code. I use struct sockaddr_storage for all sockaddrs added to ensure that there is a) enough space and b) that ROUNDUP() does not cause the system to pass uninitialized stack memory to the kernel. I tested IPv4 and

Re: one send_rtmsg is enough for bgpd

2022-06-30 Thread Theo Buehler
On Thu, Jun 30, 2022 at 04:59:50PM +0200, Claudio Jeker wrote: > Implement send_rtmsg() using kroute_full and just use one version of this > magical code. I use struct sockaddr_storage for all sockaddrs added to > ensure that there is a) enough space and b) that ROUNDUP() does not cause > the syste