From ef86b8465ff7d8e81038f37103594eb9c66d9c58 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sat, 27 Jun 2009 18:56:26 +0200 Subject: [PATCH 1/3] Unused file removed. --- sysdep/bsd/krt-scan.c | 137 ------------------------------------------ 1 file changed, 137 deletions(-) delete mode 100644 sysdep/bsd/krt-scan.c diff --git a/sysdep/bsd/krt-scan.c b/sysdep/bsd/krt-scan.c deleted file mode 100644 index e68df318..00000000 --- a/sysdep/bsd/krt-scan.c +++ /dev/null @@ -1,137 +0,0 @@ -/* - * BIRD -- *BSD Table Scanning - * - * (c) 2004 Ondrej Filip - * - * Can be freely distributed and used under the terms of the GNU GPL. - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#undef LOCAL_DEBUG -#define LOCAL_DEBUG - -#include "nest/bird.h" -#include "nest/route.h" -#include "nest/protocol.h" -#include "nest/iface.h" -#include "lib/timer.h" -#include "lib/unix.h" -#include "lib/krt.h" -#include "lib/string.h" - -static int krt_scan_fd = -1; - -struct iface * -krt_temp_iface(struct krt_proto *p, char *name) -{ - struct iface *i; - - WALK_LIST(i, p->scan.temp_ifs) - if (!strcmp(i->name, name)) - return i; - i = mb_allocz(p->p.pool, sizeof(struct iface)); - strcpy(i->name, name); - add_tail(&p->scan.temp_ifs, &i->n); - return i; -} - - -void -krt_scan_construct(struct krt_config *c) -{ -} - -void -krt_scan_preconfig(struct config *c) -{ -} - -void -krt_scan_postconfig(struct krt_config *c) -{ -} - -void -krt_scan_start(struct krt_proto *x, int first) -{ - init_list(&x->scan.temp_ifs); -} - -void -krt_scan_shutdown(struct krt_proto *x, int last) -{ -} - -void -krt_sysctl_scan(struct proto *p, pool *pool, byte **buf, int *bl, int cmd) -{ - byte *next; - int obl, needed, mib[6], on; - struct ks_msg *m; - - mib[0] = CTL_NET; - mib[1] = PF_ROUTE; - mib[2] = 0; - mib[3] = BIRD_PF; - mib[4] = cmd; - mib[5] = 0; - - if( sysctl(mib, 6 , NULL , &needed, NULL, 0) < 0) - { - die("RT scan..."); - } - - obl = *bl; - - while(needed > *bl) *bl *= 2; - while(needed < (*bl/2)) *bl /= 2; - - if( (obl!=*bl) || !*buf) - { - if(*buf) mb_free(*buf); - if( (*buf = mb_alloc(pool, *bl)) == NULL ) die("RT scan buf alloc"); - } - - on = needed; - - if( sysctl(mib, 6 , *buf, &needed, NULL, 0) < 0) - { - if(on != needed) return; /* The buffer size changed since last sysctl */ - die("RT scan 2"); - } - - for (next = *buf; next < (*buf + needed); next += m->rtm.rtm_msglen) - { - m = (struct ks_msg *)next; - krt_read_msg(p, m, 1); - } -} - -void -krt_scan_fire(struct krt_proto *p) -{ - static byte *buf = NULL; - static int bl = 32768; - krt_sysctl_scan((struct proto *)p , p->krt_pool, &buf, &bl, NET_RT_DUMP); -} - -void -krt_if_scan(struct kif_proto *p) -{ - static byte *buf = NULL; - static int bl = 4096; - struct proto *P = (struct proto *)p; - if_start_update(); - krt_sysctl_scan(P, P->pool, &buf, &bl, NET_RT_IFLIST); - if_end_update(); -} - From f1684ae6c05a52e1757c709dfbbedb5fc8ae1e07 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 28 Jun 2009 09:43:29 +0200 Subject: [PATCH 2/3] New release 1.1.0! --- NEWS | 4 ++-- sysdep/config.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index f64aacf5..ec545ea8 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -Version 1.0.16 (2009-06-25) +Version 1.1.0 (2009-06-28) o Parametrized pair and path mask expessions in the filter language. o Transparent pipe mode allows to implement BGP route server with independent route policy for each peer. @@ -7,7 +7,7 @@ Version 1.0.16 (2009-06-25) o Configureable BGP import route limits. o During BGP error delay, incoming connections are rejected. o BGP route statistics. - o Better support for multple network addresses on OSPF interfaces. + o Better support for multiple network addresses on OSPF interfaces. o As usual, miscellaneous bugfixes. Version 1.0.15 (2009-05-25) diff --git a/sysdep/config.h b/sysdep/config.h index df6e6df4..54f36745 100644 --- a/sysdep/config.h +++ b/sysdep/config.h @@ -7,7 +7,7 @@ #define _BIRD_CONFIG_H_ /* BIRD version */ -#define BIRD_VERSION "1.0.16" +#define BIRD_VERSION "1.1.0" /* Include parameters determined by configure script */ #include "sysdep/autoconf.h" From bffd4c0b3900b28cfa84131752d44277866cb413 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 28 Jun 2009 10:03:24 +0200 Subject: [PATCH 3/3] Small typos. --- NEWS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index ec545ea8..391d4f70 100644 --- a/NEWS +++ b/NEWS @@ -1,10 +1,10 @@ Version 1.1.0 (2009-06-28) - o Parametrized pair and path mask expessions in the filter language. + o Parametrized pair and path mask expressions in the filter language. o Transparent pipe mode allows to implement BGP route server with independent route policy for each peer. o Kernel route table synchronization does not allow overwriting of alien routes. - o Configureable BGP import route limits. + o Configurable BGP import route limits. o During BGP error delay, incoming connections are rejected. o BGP route statistics. o Better support for multiple network addresses on OSPF interfaces.