mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Merge branch 'int-new' into nexthop-merged
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <net/if_dl.h>
|
||||
#include <netinet/in_systm.h> // Workaround for some BSDs
|
||||
#include <netinet/ip.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
|
||||
#ifdef __NetBSD__
|
||||
@@ -179,8 +180,8 @@ sk_prepare_ip_header(sock *s, void *hdr, int dlen)
|
||||
ip->ip_src = ipa_to_in4(s->saddr);
|
||||
ip->ip_dst = ipa_to_in4(s->daddr);
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
/* OpenBSD expects ip_len in network order, other BSDs expect host order */
|
||||
#if (defined __OpenBSD__) || (defined __DragonFly__) || (defined __FreeBSD__ && (__FreeBSD_version >= 1100030))
|
||||
/* Different BSDs have different expectations of ip_len endianity */
|
||||
ip->ip_len = htons(ip->ip_len);
|
||||
#endif
|
||||
}
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#define _BIRD_CONFIG_H_
|
||||
|
||||
/* BIRD version */
|
||||
#define BIRD_VERSION "1.6.2"
|
||||
#define BIRD_VERSION "2.0.0-pre0"
|
||||
|
||||
/* Include parameters determined by configure script */
|
||||
#include "sysdep/autoconf.h"
|
||||
|
@@ -1809,6 +1809,7 @@ nl_async_hook(sock *sk, uint size UNUSED)
|
||||
* One day we might react to it by asking for route table
|
||||
* scan in near future.
|
||||
*/
|
||||
log(L_WARN "Kernel dropped some netlink messages, will resync on next scan.");
|
||||
return 1; /* More data are likely to be ready */
|
||||
}
|
||||
else if (errno != EWOULDBLOCK)
|
||||
|
@@ -2631,7 +2631,8 @@ io_loop(void)
|
||||
if (pfd[s->index].revents & (POLLHUP | POLLERR))
|
||||
{
|
||||
sk_err(s, pfd[s->index].revents);
|
||||
goto next2;
|
||||
if (s != current_sock)
|
||||
goto next2;
|
||||
}
|
||||
|
||||
current_sock = sk_next(s);
|
||||
|
Reference in New Issue
Block a user