Error sending route to kernel on FreeBSD (ARM)
Hi! I tried to run a bird (v1.6.3) under FreeBSD on ARM architecture. An error occurred: <ERR> KRT: Error sending route XX.XX.XX.XX/XX to kernel: Invalid argument My config: log "/var/log/bird.log" all; router id xx.xx.xx.xx; #debug protocols all; protocol device { scan time 10; } protocol kernel { import none; export all; scan time 15; } protocol bgp ULNIX { local as 65507; neighbor xx.xx.xx.xx as xxx; source address xx.xx.xx.xx; import all; import limit 5000 action restart; } Studying the source code, found out that the problem with aligning the structure (file: /sysdep/bsd/krt-sock.c): struct ks_msg { struct rt_msghdr rtm; struct sockaddr_storage buf[RTAX_MAX]; }; After making changes (see patch in attached), I managed to run the bird. -- Regards Eugene Sevastyanov
On Fri, Sep 01, 2017 at 12:06:11PM +0400, Eugene Sevastyanov wrote:
Hi!
I tried to run a bird (v1.6.3) under FreeBSD on ARM architecture. An error occurred:
<ERR> KRT: Error sending route XX.XX.XX.XX/XX to kernel: Invalid argument
...
Studying the source code, found out that the problem with aligning the structure (file: /sysdep/bsd/krt-sock.c):
struct ks_msg { struct rt_msghdr rtm; struct sockaddr_storage buf[RTAX_MAX]; };
After making changes (see patch in attached), I managed to run the bird.
Hi Thanks for the bugreport and patch. Could you try the attached patch to see if it also fixes the problem? -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
On Fri, 1 Sep 2017 11:16:56 +0200 Ondrej Zajicek <santiago@crfreenet.org> wrote: Yes, the attached patch also fixes the problem. Thanks! -- Regards Eugene Sevastyanov
On Fri, Sep 01, 2017 at 12:06:11PM +0400, Eugene Sevastyanov wrote:
Hi!
I tried to run a bird (v1.6.3) under FreeBSD on ARM architecture. An error occurred:
<ERR> KRT: Error sending route XX.XX.XX.XX/XX to kernel: Invalid argument
...
Studying the source code, found out that the problem with aligning the structure (file: /sysdep/bsd/krt-sock.c):
struct ks_msg { struct rt_msghdr rtm; struct sockaddr_storage buf[RTAX_MAX]; };
After making changes (see patch in attached), I managed to run the bird.
Hi
Thanks for the bugreport and patch. Could you try the attached patch to see if it also fixes the problem?
-- Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Eugene Sevastyanov -
Ondrej Zajicek