NextHop address bug in bgpd with network connected

2023-10-08 Thread Asa Yeamans
Hey all, I recently stumbled across a bug in bgpd where when announcing connected routes (i.e. network $AF connected) for IPv6 routes over IPv4 TCP BGP connections, bgpd was announcing the IPv6 routes with a next hop of ::1, the localhost address. I traced this down in the bgpd code to get_alt

`man backtrace` should name the required linker flag (`-lexecinfo`)

2023-10-08 Thread Sean McBride
Hello, I've been trying to compile some open source C/C++ code on OpenBSD (that already builds on Mac, Windows, and linux) and one error I hit on one project was a link error trying to link to the backtrace() function. So I went to check the man page. But the man page does not document what

Re: `man backtrace` should name the required linker flag (`-lexecinfo`)

2023-10-08 Thread Jonathan Gray
On Sun, Oct 08, 2023 at 10:14:22PM -0400, Sean McBride wrote: > Hello, > > I've been trying to compile some open source C/C++ code on OpenBSD (that > already builds on Mac, Windows, and linux) and one error I hit on one > project was a link error trying to link to the backtrace() function. > > So

Re: `man backtrace` should name the required linker flag (`-lexecinfo`)

2023-10-08 Thread Marc Espie
On Mon, Oct 09, 2023 at 01:58:27PM +1100, Jonathan Gray wrote: > > So tldr: `man backtrace` should name the required linker flag (-lexecinfo) > > from mdoc(7): > > .\" .Sh LIBRARY > .\" For sections 2, 3, and 9 only. > .\" Not used in OpenBSD. > > note about it not being used added by jmc@ in 20

Re: `man backtrace` should name the required linker flag (`-lexecinfo`)

2023-10-08 Thread Theo de Raadt
Marc Espie wrote: > On Mon, Oct 09, 2023 at 01:58:27PM +1100, Jonathan Gray wrote: > > > So tldr: `man backtrace` should name the required linker flag (-lexecinfo) > > > > from mdoc(7): > > > > .\" .Sh LIBRARY > > .\" For sections 2, 3, and 9 only. > > .\" Not used in OpenBSD. > > > > note abo

Re: NextHop address bug in bgpd with network connected

2023-10-08 Thread Claudio Jeker
On Sun, Oct 08, 2023 at 04:14:33AM +, Asa Yeamans wrote: > Hey all, > > I recently stumbled across a bug in bgpd where when announcing connected > routes (i.e. network $AF connected) for IPv6 routes over IPv4 TCP BGP > connections, bgpd was announcing the IPv6 routes with a next hop of ::1,