bird-1.4.0/0000755000103200001440000000000012244656171011430 5ustar feelausersbird-1.4.0/README0000644000103200001440000000626612074014514012310 0ustar feelausers BIRD Internet Routing Daemon (c) 1998--2008 Martin Mares (c) 1998--2000 Pavel Machek (c) 1998--2008 Ondrej Filip (c) 2009--2013 CZ.NIC z.s.p.o. ================================================================================ The BIRD project is an attempt to create a routing daemon running on UNIX-like systems (but not necessarily limited to them) with full support of all modern routing protocols, easy to use configuration interface and powerful route filtering language. If you want to help us debugging, enhancing and porting BIRD or just lurk around to see what's going to develop from this strange creature, feel free to subscribe to the BIRD users mailing list (bird-users@bird.network.cz), send subscribes to majordomo at the same machine). Bug reports, suggestions, feature requests (: and code :) are welcome. You can download the latest version from ftp://bird.network.cz/pub/bird/ and look at the BIRD home page at http://bird.network.cz/. BIRD development started as a student project at the Faculty of Math and Physics, Charles University, Prague, Czech Republic under supervision of RNDr. Libor Forst . BIRD has been developed and supported by CZ.NIC z.s.p.o. http://www.nic.cz/ since 2009. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA How to install BIRD: ./configure make make install vi /usr/local/etc/bird.conf Online documentation is available as HTML files in the doc directory, you can install it by `make install-docs' and rebuild it by `make docs', but for the latter you need SGMLtools and LaTeX to be installed on your machine. You can also download a neatly formatted PostScript version as a separate archive (bird-doc-*.tar.gz). What do we support: o Both IPv4 and IPv6 (use --enable-ipv6 when configuring) o Multiple routing tables o BGP o RIP o OSPF o Static routes o Inter-table protocol o IPv6 router advertisements o Command-line interface (using the `birdc' client; to get some help, just press `?') o Soft reconfiguration -- no online commands for changing the configuration in very limited ways, just edit the configuration file and issue a `configure' command or send SIGHUP and BIRD will start using the new configuration, possibly restarting protocols affected by the configuration changes. o Powerful language for route filtering (see doc/bird.conf.example). What is missing: o See the TODO list Good Luck and enjoy the BIRD :) The BIRD Team bird-1.4.0/lib/0000755000103200001440000000000012244117701012165 5ustar feelausersbird-1.4.0/lib/printf.c0000644000103200001440000002244212244117701013637 0ustar feelausers/* * BIRD Library -- Formatted Output * * (c) 1991, 1992 Lars Wirzenius & Linus Torvalds * * Hacked up for BIRD by Martin Mares * Buffer size limitation implemented by Martin Mares. */ #include "nest/bird.h" #include "string.h" #include #include "nest/iface.h" /* we use this so that we can do without the ctype library */ #define is_digit(c) ((c) >= '0' && (c) <= '9') static int skip_atoi(const char **s) { int i=0; while (is_digit(**s)) i = i*10 + *((*s)++) - '0'; return i; } #define ZEROPAD 1 /* pad with zero */ #define SIGN 2 /* unsigned/signed long */ #define PLUS 4 /* show plus */ #define SPACE 8 /* space if plus */ #define LEFT 16 /* left justified */ #define SPECIAL 32 /* 0x */ #define LARGE 64 /* use 'ABCDEF' instead of 'abcdef' */ #define do_div(n,base) ({ \ int __res; \ __res = ((unsigned long) n) % (unsigned) base; \ n = ((unsigned long) n) / (unsigned) base; \ __res; }) static char * number(char * str, long num, int base, int size, int precision, int type, int remains) { char c,sign,tmp[66]; const char *digits="0123456789abcdefghijklmnopqrstuvwxyz"; int i; if (size >= 0 && (remains -= size) < 0) return NULL; if (type & LARGE) digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; if (type & LEFT) type &= ~ZEROPAD; if (base < 2 || base > 36) return 0; c = (type & ZEROPAD) ? '0' : ' '; sign = 0; if (type & SIGN) { if (num < 0) { sign = '-'; num = -num; size--; } else if (type & PLUS) { sign = '+'; size--; } else if (type & SPACE) { sign = ' '; size--; } } if (type & SPECIAL) { if (base == 16) size -= 2; else if (base == 8) size--; } i = 0; if (num == 0) tmp[i++]='0'; else while (num != 0) tmp[i++] = digits[do_div(num,base)]; if (i > precision) precision = i; size -= precision; if (size < 0 && -size > remains) return NULL; if (!(type&(ZEROPAD+LEFT))) while(size-->0) *str++ = ' '; if (sign) *str++ = sign; if (type & SPECIAL) { if (base==8) *str++ = '0'; else if (base==16) { *str++ = '0'; *str++ = digits[33]; } } if (!(type & LEFT)) while (size-- > 0) *str++ = c; while (i < precision--) *str++ = '0'; while (i-- > 0) *str++ = tmp[i]; while (size-- > 0) *str++ = ' '; return str; } /** * bvsnprintf - BIRD's vsnprintf() * @buf: destination buffer * @size: size of the buffer * @fmt: format string * @args: a list of arguments to be formatted * * This functions acts like ordinary sprintf() except that it checks * available space to avoid buffer overflows and it allows some more * format specifiers: |%I| for formatting of IP addresses (any non-zero * width is automatically replaced by standard IP address width which * depends on whether we use IPv4 or IPv6; |%#I| gives hexadecimal format), * |%R| for Router / Network ID (u32 value printed as IPv4 address) * and |%m| resp. |%M| for error messages (uses strerror() to translate @errno code to * message text). On the other hand, it doesn't support floating * point numbers. * * Result: number of characters of the output string or -1 if * the buffer space was insufficient. */ int bvsnprintf(char *buf, int size, const char *fmt, va_list args) { int len; unsigned long num; int i, base; u32 x; char *str, *start; const char *s; char ipbuf[STD_ADDRESS_P_LENGTH+1]; struct iface *iface; int flags; /* flags to number() */ int field_width; /* width of output field */ int precision; /* min. # of digits for integers; max number of chars for from string */ int qualifier; /* 'h', 'l', or 'L' for integer fields */ for (start=str=buf ; *fmt ; ++fmt, size-=(str-start), start=str) { if (*fmt != '%') { if (!size) return -1; *str++ = *fmt; continue; } /* process flags */ flags = 0; repeat: ++fmt; /* this also skips first '%' */ switch (*fmt) { case '-': flags |= LEFT; goto repeat; case '+': flags |= PLUS; goto repeat; case ' ': flags |= SPACE; goto repeat; case '#': flags |= SPECIAL; goto repeat; case '0': flags |= ZEROPAD; goto repeat; } /* get field width */ field_width = -1; if (is_digit(*fmt)) field_width = skip_atoi(&fmt); else if (*fmt == '*') { ++fmt; /* it's the next argument */ field_width = va_arg(args, int); if (field_width < 0) { field_width = -field_width; flags |= LEFT; } } /* get the precision */ precision = -1; if (*fmt == '.') { ++fmt; if (is_digit(*fmt)) precision = skip_atoi(&fmt); else if (*fmt == '*') { ++fmt; /* it's the next argument */ precision = va_arg(args, int); } if (precision < 0) precision = 0; } /* get the conversion qualifier */ qualifier = -1; if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L') { qualifier = *fmt; ++fmt; } /* default base */ base = 10; if (field_width > size) return -1; switch (*fmt) { case 'c': if (!(flags & LEFT)) while (--field_width > 0) *str++ = ' '; *str++ = (unsigned char) va_arg(args, int); while (--field_width > 0) *str++ = ' '; continue; case 'm': s = strerror(errno); goto str; case 'M': s = strerror(va_arg(args, int)); goto str; case 's': s = va_arg(args, char *); if (!s) s = ""; str: len = strlen(s); if (precision >= 0 && len > precision) len = precision; if (len > size) return -1; if (!(flags & LEFT)) while (len < field_width--) *str++ = ' '; for (i = 0; i < len; ++i) *str++ = *s++; while (len < field_width--) *str++ = ' '; continue; case 'p': if (field_width == -1) { field_width = 2*sizeof(void *); flags |= ZEROPAD; } str = number(str, (unsigned long) va_arg(args, void *), 16, field_width, precision, flags, size); if (!str) return -1; continue; case 'n': if (qualifier == 'l') { long * ip = va_arg(args, long *); *ip = (str - buf); } else { int * ip = va_arg(args, int *); *ip = (str - buf); } continue; /* IP address */ case 'I': if (flags & SPECIAL) ip_ntox(va_arg(args, ip_addr), ipbuf); else { ip_ntop(va_arg(args, ip_addr), ipbuf); if (field_width == 1) field_width = STD_ADDRESS_P_LENGTH; } s = ipbuf; goto str; /* Interface scope after link-local IP address */ case 'J': iface = va_arg(args, struct iface *); if (!iface) continue; if (!size) return -1; *str++ = '%'; start++; size--; s = iface->name; goto str; /* Router/Network ID - essentially IPv4 address in u32 value */ case 'R': x = va_arg(args, u32); bsprintf(ipbuf, "%d.%d.%d.%d", ((x >> 24) & 0xff), ((x >> 16) & 0xff), ((x >> 8) & 0xff), (x & 0xff)); s = ipbuf; goto str; /* integer number formats - set up the flags and "break" */ case 'o': base = 8; break; case 'X': flags |= LARGE; case 'x': base = 16; break; case 'd': case 'i': flags |= SIGN; case 'u': break; default: if (size < 2) return -1; if (*fmt != '%') *str++ = '%'; if (*fmt) *str++ = *fmt; else --fmt; continue; } if (qualifier == 'l') num = va_arg(args, unsigned long); else if (qualifier == 'h') { num = (unsigned short) va_arg(args, int); if (flags & SIGN) num = (short) num; } else if (flags & SIGN) num = va_arg(args, int); else num = va_arg(args, unsigned int); str = number(str, num, base, field_width, precision, flags, size); if (!str) return -1; } if (!size) return -1; *str = '\0'; return str-buf; } /** * bvsprintf - BIRD's vsprintf() * @buf: buffer * @fmt: format string * @args: a list of arguments to be formatted * * This function is equivalent to bvsnprintf() with an infinite * buffer size. Please use carefully only when you are absolutely * sure the buffer won't overflow. */ int bvsprintf(char *buf, const char *fmt, va_list args) { return bvsnprintf(buf, 1000000000, fmt, args); } /** * bsprintf - BIRD's sprintf() * @buf: buffer * @fmt: format string * * This function is equivalent to bvsnprintf() with an infinite * buffer size and variable arguments instead of a &va_list. * Please use carefully only when you are absolutely * sure the buffer won't overflow. */ int bsprintf(char * buf, const char *fmt, ...) { va_list args; int i; va_start(args, fmt); i=bvsnprintf(buf, 1000000000, fmt, args); va_end(args); return i; } /** * bsnprintf - BIRD's snprintf() * @buf: buffer * @size: buffer size * @fmt: format string * * This function is equivalent to bsnprintf() with variable arguments instead of a &va_list. */ int bsnprintf(char * buf, int size, const char *fmt, ...) { va_list args; int i; va_start(args, fmt); i=bvsnprintf(buf, size, fmt, args); va_end(args); return i; } int buffer_vprint(buffer *buf, const char *fmt, va_list args) { int i = bvsnprintf((char *) buf->pos, buf->end - buf->pos, fmt, args); buf->pos = (i >= 0) ? (buf->pos + i) : buf->end; return i; } int buffer_print(buffer *buf, const char *fmt, ...) { va_list args; int i; va_start(args, fmt); i=bvsnprintf((char *) buf->pos, buf->end - buf->pos, fmt, args); va_end(args); buf->pos = (i >= 0) ? (buf->pos + i) : buf->end; return i; } void buffer_puts(buffer *buf, const char *str) { byte *bp = buf->pos; byte *be = buf->end; while (bp < be && *str) *bp++ = *str++; if (bp < be) *bp = 0; buf->pos = bp; } bird-1.4.0/lib/mempool.c0000644000103200001440000001366211606273733014022 0ustar feelausers/* * BIRD Resource Manager -- Memory Pools * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Linear memory pools * * Linear memory pools are collections of memory blocks which * support very fast allocation of new blocks, but are able to free only * the whole collection at once. * * Example: Each configuration is described by a complex system of structures, * linked lists and function trees which are all allocated from a single linear * pool, thus they can be freed at once when the configuration is no longer used. */ #include #include #include "nest/bird.h" #include "lib/resource.h" #include "lib/string.h" struct lp_chunk { struct lp_chunk *next; unsigned int size; uintptr_t data_align[0]; byte data[0]; }; struct linpool { resource r; byte *ptr, *end; struct lp_chunk *first, *current, **plast; /* Normal (reusable) chunks */ struct lp_chunk *first_large; /* Large chunks */ unsigned chunk_size, threshold, total, total_large; }; static void lp_free(resource *); static void lp_dump(resource *); static resource *lp_lookup(resource *, unsigned long); static size_t lp_memsize(resource *r); static struct resclass lp_class = { "LinPool", sizeof(struct linpool), lp_free, lp_dump, lp_lookup, lp_memsize }; /** * lp_new - create a new linear memory pool * @p: pool * @blk: block size * * lp_new() creates a new linear memory pool resource inside the pool @p. * The linear pool consists of a list of memory chunks of size at least * @blk. */ linpool *lp_new(pool *p, unsigned blk) { linpool *m = ralloc(p, &lp_class); m->plast = &m->first; m->chunk_size = blk; m->threshold = 3*blk/4; return m; } /** * lp_alloc - allocate memory from a &linpool * @m: linear memory pool * @size: amount of memory * * lp_alloc() allocates @size bytes of memory from a &linpool @m * and it returns a pointer to the allocated memory. * * It works by trying to find free space in the last memory chunk * associated with the &linpool and creating a new chunk of the standard * size (as specified during lp_new()) if the free space is too small * to satisfy the allocation. If @size is too large to fit in a standard * size chunk, an "overflow" chunk is created for it instead. */ void * lp_alloc(linpool *m, unsigned size) { byte *a = (byte *) BIRD_ALIGN((unsigned long) m->ptr, CPU_STRUCT_ALIGN); byte *e = a + size; if (e <= m->end) { m->ptr = e; return a; } else { struct lp_chunk *c; if (size >= m->threshold) { /* Too large => allocate large chunk */ c = xmalloc(sizeof(struct lp_chunk) + size); m->total_large += size; c->next = m->first_large; m->first_large = c; c->size = size; } else { if (m->current) { /* Still have free chunks from previous incarnation (before lp_flush()) */ c = m->current; m->current = c->next; } else { /* Need to allocate a new chunk */ c = xmalloc(sizeof(struct lp_chunk) + m->chunk_size); m->total += m->chunk_size; *m->plast = c; m->plast = &c->next; c->next = NULL; c->size = m->chunk_size; } m->ptr = c->data + size; m->end = c->data + m->chunk_size; } return c->data; } } /** * lp_allocu - allocate unaligned memory from a &linpool * @m: linear memory pool * @size: amount of memory * * lp_allocu() allocates @size bytes of memory from a &linpool @m * and it returns a pointer to the allocated memory. It doesn't * attempt to align the memory block, giving a very efficient way * how to allocate strings without any space overhead. */ void * lp_allocu(linpool *m, unsigned size) { byte *a = m->ptr; byte *e = a + size; if (e <= m->end) { m->ptr = e; return a; } return lp_alloc(m, size); } /** * lp_allocz - allocate cleared memory from a &linpool * @m: linear memory pool * @size: amount of memory * * This function is identical to lp_alloc() except that it * clears the allocated memory block. */ void * lp_allocz(linpool *m, unsigned size) { void *z = lp_alloc(m, size); bzero(z, size); return z; } /** * lp_flush - flush a linear memory pool * @m: linear memory pool * * This function frees the whole contents of the given &linpool @m, * but leaves the pool itself. */ void lp_flush(linpool *m) { struct lp_chunk *c; /* Relink all normal chunks to free list and free all large chunks */ m->ptr = m->end = NULL; m->current = m->first; while (c = m->first_large) { m->first_large = c->next; xfree(c); } m->total_large = 0; } static void lp_free(resource *r) { linpool *m = (linpool *) r; struct lp_chunk *c, *d; for(d=m->first; d; d = c) { c = d->next; xfree(d); } for(d=m->first_large; d; d = c) { c = d->next; xfree(d); } } static void lp_dump(resource *r) { linpool *m = (linpool *) r; struct lp_chunk *c; int cnt, cntl; for(cnt=0, c=m->first; c; c=c->next, cnt++) ; for(cntl=0, c=m->first_large; c; c=c->next, cntl++) ; debug("(chunk=%d threshold=%d count=%d+%d total=%d+%d)\n", m->chunk_size, m->threshold, cnt, cntl, m->total, m->total_large); } static size_t lp_memsize(resource *r) { linpool *m = (linpool *) r; struct lp_chunk *c; int cnt = 0; for(c=m->first; c; c=c->next) cnt++; for(c=m->first_large; c; c=c->next) cnt++; return ALLOC_OVERHEAD + sizeof(struct linpool) + cnt * (ALLOC_OVERHEAD + sizeof(sizeof(struct lp_chunk))) + m->total + m->total_large; } static resource * lp_lookup(resource *r, unsigned long a) { linpool *m = (linpool *) r; struct lp_chunk *c; for(c=m->first; c; c=c->next) if ((unsigned long) c->data <= a && (unsigned long) c->data + c->size > a) return r; for(c=m->first_large; c; c=c->next) if ((unsigned long) c->data <= a && (unsigned long) c->data + c->size > a) return r; return NULL; } bird-1.4.0/lib/lists.h0000644000103200001440000000376712244117701013511 0ustar feelausers/* * BIRD Library -- Linked Lists * * (c) 1998 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_LISTS_H_ #define _BIRD_LISTS_H_ /* * I admit the list structure is very tricky and also somewhat awkward, * but it's both efficient and easy to manipulate once one understands the * basic trick: The list head always contains two synthetic nodes which are * always present in the list: the head and the tail. But as the `next' * entry of the tail and the `prev' entry of the head are both NULL, the * nodes can overlap each other: * * head head_node.next * null head_node.prev tail_node.next * tail tail_node.prev */ typedef struct node { struct node *next, *prev; } node; typedef struct list { /* In fact two overlayed nodes */ struct node *head, *null, *tail; } list; #define NODE (node *) #define HEAD(list) ((void *)((list).head)) #define TAIL(list) ((void *)((list).tail)) #define NODE_NEXT(n) ((void *)((NODE (n))->next)) #define NODE_VALID(n) ((NODE (n))->next) #define WALK_LIST(n,list) for(n=HEAD(list); NODE_VALID(n); n=NODE_NEXT(n)) #define WALK_LIST_DELSAFE(n,nxt,list) \ for(n=HEAD(list); nxt=NODE_NEXT(n); n=(void *) nxt) /* WALK_LIST_FIRST supposes that called code removes each processed node */ #define WALK_LIST_FIRST(n,list) \ while(n=HEAD(list), (NODE (n))->next) #define WALK_LIST_BACKWARDS(n,list) for(n=TAIL(list);(NODE (n))->prev; \ n=(void *)((NODE (n))->prev)) #define WALK_LIST_BACKWARDS_DELSAFE(n,prv,list) \ for(n=TAIL(list); prv=(void *)((NODE (n))->prev); n=(void *) prv) #define EMPTY_LIST(list) (!(list).head->next) void add_tail(list *, node *); void add_head(list *, node *); void rem_node(node *); void rem2_node(node *); void add_tail_list(list *, list *); void init_list(list *); void insert_node(node *, node *); #ifndef _BIRD_LISTS_C_ #define LIST_INLINE extern inline #include "lib/lists.c" #undef LIST_INLINE #else #define LIST_INLINE #endif #endif bird-1.4.0/lib/resource.sgml0000644000103200001440000000303311606273733014710 0ustar feelausers Resources Introduction

Most large software projects implemented in classical procedural programming languages usually end up with lots of code taking care of resource allocation and deallocation. Bugs in such code are often very difficult to find, because they cause only `resource leakage', that is keeping a lot of memory and other resources which nobody references to.

We've tried to solve this problem by employing a resource tracking system which keeps track of all the resources allocated by all the modules of BIRD, deallocates everything automatically when a module shuts down and it is able to print out the list of resources and the corresponding modules they are allocated by.

Each allocated resource (from now we'll speak about allocated resources only) is represented by a structure starting with a standard header (struct There exist the following types of resources: bird-1.4.0/lib/unaligned.h0000644000103200001440000000163411606273733014321 0ustar feelausers/* * Unaligned Data Accesses -- Generic Version, Network Order * * (c) 2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_UNALIGNED_H_ #define _BIRD_UNALIGNED_H_ /* * We don't do any clever tricks with unaligned accesses since it's * virtually impossible to figure out what alignment does the CPU want * (unaligned accesses can be emulated by the OS which makes them work, * but unusably slow). We use memcpy and hope GCC will optimize it out * if possible. */ #include "lib/string.h" static inline u16 get_u16(void *p) { u16 x; memcpy(&x, p, 2); return ntohs(x); } static inline u32 get_u32(void *p) { u32 x; memcpy(&x, p, 4); return ntohl(x); } static inline void put_u16(void *p, u16 x) { x = htons(x); memcpy(p, &x, 2); } static inline void put_u32(void *p, u32 x) { x = htonl(x); memcpy(p, &x, 4); } #endif bird-1.4.0/lib/socket.h0000644000103200001440000001043512244117701013631 0ustar feelausers/* * BIRD Socket Interface * * (c) 1998--2004 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_SOCKET_H_ #define _BIRD_SOCKET_H_ #include #include "lib/resource.h" typedef struct birdsock { resource r; pool *pool; /* Pool where incoming connections should be allocated (for SK_xxx_PASSIVE) */ int type; /* Socket type */ void *data; /* User data */ ip_addr saddr, daddr; /* IPA_NONE = unspecified */ unsigned sport, dport; /* 0 = unspecified (for IP: protocol type) */ int tos; /* TOS / traffic class, -1 = default */ int priority; /* Local socket priority, -1 = default */ int ttl; /* Time To Live, -1 = default */ u32 flags; struct iface *iface; /* Interface; specify this for broad/multicast sockets */ byte *rbuf, *rpos; /* NULL=allocate automatically */ unsigned rbsize; int (*rx_hook)(struct birdsock *, int size); /* NULL=receiving turned off, returns 1 to clear rx buffer */ byte *tbuf, *tpos; /* NULL=allocate automatically */ byte *ttx; /* Internal */ unsigned tbsize; void (*tx_hook)(struct birdsock *); void (*err_hook)(struct birdsock *, int); /* errno or zero if EOF */ /* Information about received datagrams (UDP, RAW), valid in rx_hook */ ip_addr faddr, laddr; /* src (From) and dst (Local) address of the datagram */ unsigned fport; /* src port of the datagram */ unsigned lifindex; /* local interface that received the datagram */ /* laddr and lifindex are valid only if SKF_LADDR_RX flag is set to request it */ int fd; /* System-dependent data */ int index; /* Index in poll buffer */ node n; void *rbuf_alloc, *tbuf_alloc; char *password; /* Password for MD5 authentication */ } sock; sock *sock_new(pool *); /* Allocate new socket */ #define sk_new(X) sock_new(X) /* Wrapper to avoid name collision with OpenSSL */ int sk_open(sock *); /* Open socket */ int sk_send(sock *, unsigned len); /* Send data, <0=err, >0=ok, 0=sleep */ int sk_send_to(sock *, unsigned len, ip_addr to, unsigned port); /* sk_send to given destination */ void sk_reallocate(sock *); /* Free and allocate tbuf & rbuf */ void sk_dump_all(void); int sk_set_ttl(sock *s, int ttl); /* Set transmit TTL for given socket */ int sk_set_min_ttl(sock *s, int ttl); /* Set minimal accepted TTL for given socket */ /* Add or remove security associations for given passive socket */ int sk_set_md5_auth(sock *s, ip_addr a, struct iface *ifa, char *passwd); int sk_rx_ready(sock *s); /* Prepare UDP or IP socket to multicasting. s->iface and s->ttl must be set */ int sk_setup_multicast(sock *s); int sk_join_group(sock *s, ip_addr maddr); int sk_leave_group(sock *s, ip_addr maddr); #ifdef IPV6 int sk_set_ipv6_checksum(sock *s, int offset); int sk_set_icmp_filter(sock *s, int p1, int p2); #endif int sk_set_broadcast(sock *s, int enable); static inline int sk_send_buffer_empty(sock *sk) { return sk->tbuf == sk->tpos; } extern int sk_priority_control; /* Suggested priority for control traffic, should be sysdep define */ /* Socket flags */ #define SKF_V6ONLY 1 /* Use IPV6_V6ONLY socket option */ #define SKF_LADDR_RX 2 /* Report local address for RX packets */ #define SKF_LADDR_TX 4 /* Allow to specify local address for TX packets */ #define SKF_TTL_RX 8 /* Report TTL / Hop Limit for RX packets */ #define SKF_THREAD 0x100 /* Socked used in thread, Do not add to main loop */ /* * Socket types SA SP DA DP IF TTL SendTo (?=may, -=must not, *=must) */ #define SK_TCP_PASSIVE 0 /* ? * - - - ? - */ #define SK_TCP_ACTIVE 1 /* ? ? * * - ? - */ #define SK_TCP 2 #define SK_UDP 3 /* ? ? ? ? ? ? ? */ #define SK_IP 5 /* ? - ? * ? ? ? */ #define SK_MAGIC 7 /* Internal use by sysdep code */ #define SK_UNIX_PASSIVE 8 #define SK_UNIX 9 /* * For SK_UDP or SK_IP sockets setting DA/DP allows to use sk_send(), * otherwise sk_send_to() must be used. * * For SK_IP sockets setting DP specifies protocol number, which is used * for both receiving and sending. * * For multicast on SK_UDP or SK_IP sockets set IF and TTL, * call sk_setup_multicast() to enable multicast on that socket, * and then use sk_join_group() and sk_leave_group() to manage * a set of received multicast groups. */ #endif bird-1.4.0/lib/slists.c0000644000103200001440000000670311606273733013671 0ustar feelausers/* * BIRD Library -- Safe Linked Lists * * (c) 1998 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #define _BIRD_SLISTS_C_ #include "nest/bird.h" #include "lib/slists.h" static inline void s_merge(snode *from, snode *to) { siterator *f, *g; if (!(f = from->readers)) return; if (!(g = to->readers)) { /* Fast path */ to->readers = f; f->prev = (siterator *) to; fixup: while (f && f->node) { f->node = NULL; f = f->next; } return; } /* Really merging */ while (g->next) g = g->next; g->next = f; f->prev = g; goto fixup; } snode * s_get(siterator *i) { siterator *f, *g; snode *n; if (!(n = i->node)) { /* * No node found. We have to walk the iterator list backwards * to find where are we linked. */ f = i; while (!f->null) f = f->prev; n = (snode *) f; } f = i->prev; /* Maybe the snode itself */ g = i->next; f->next = g; if (g) g->prev = f; i->prev = NULL; i->next = NULL; return n; } void s_put(siterator *i, snode *n) { siterator *f; i->node = n; if (f = n->readers) f->prev = i; i->next = f; n->readers = i; i->prev = (siterator *) n; i->null = NULL; } void s_add_tail(slist *l, snode *n) { snode *z = l->tail; n->next = (snode *) &l->null; n->prev = z; z->next = n; l->tail = n; n->readers = NULL; } void s_add_head(slist *l, snode *n) { snode *z = l->head; n->next = z; n->prev = (snode *) &l->head; z->prev = n; l->head = n; n->readers = NULL; } void s_insert_node(snode *n, snode *after) { snode *z = after->next; n->next = z; n->prev = after; after->next = n; z->prev = n; n->readers = NULL; } void s_rem_node(snode *n) { snode *z = n->prev; snode *x = n->next; z->next = x; x->prev = z; s_merge(n, x); } void s_init_list(slist *l) { l->head = (snode *) &l->null; l->null = NULL; l->tail = (snode *) &l->head; l->tail_readers = NULL; } void s_add_tail_list(slist *to, slist *l) { snode *p = to->tail; snode *q = l->head; p->next = q; q->prev = p; q = l->tail; q->next = (snode *) &to->null; to->tail = q; s_merge((snode *) &l->null, (snode *) &to->null); } #ifdef TEST #include "lib/resource.h" #include void dump(char *c, slist *a) { snode *x; puts(c); for(x=SHEAD(*a); x; x=x->next) { siterator *i, *j; printf("%p", x); j = (siterator *) x; for(i=x->readers; i; i=i->next) { if (i->prev != j) printf(" ???"); j = i; printf(" [%p:%p]", i, i->node); } putchar('\n'); } puts("---"); } int main(void) { slist a, b; snode *x, *y; siterator i, j; s_init_list(&a); s_init_list(&b); x = xmalloc(sizeof(*x)); s_add_tail(&a, x); x = xmalloc(sizeof(*x)); s_add_tail(&a, x); x = xmalloc(sizeof(*x)); s_add_tail(&a, x); dump("1", &a); s_init(&i, &a); s_init(&j, &a); dump("2", &a); x = s_get(&i); printf("Got %p\n", x); dump("3", &a); s_put(&i, x->next); dump("4", &a); y = s_get(&j); while (y) { s_put(&j, y); dump("5*", &a); y = s_get(&j)->next; } dump("5 done", &a); s_rem_node(a.head->next); dump("6 (deletion)", &a); s_put(&i, s_get(&i)->next); dump("6 (relink)", &a); x = xmalloc(sizeof(*x)); s_add_tail(&b, x); dump("7 (second list)", &b); s_add_tail_list(&b, &a); dump("8 (after merge)", &b); return 0; } #endif bird-1.4.0/lib/event.c0000644000103200001440000000536611606273733013475 0ustar feelausers/* * BIRD Library -- Event Processing * * (c) 1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Events * * Events are there to keep track of deferred execution. * Since BIRD is single-threaded, it requires long lasting tasks to be split to smaller * parts, so that no module can monopolize the CPU. To split such a task, just create * an &event resource, point it to the function you want to have called and call ev_schedule() * to ask the core to run the event when nothing more important requires attention. * * You can also define your own event lists (the &event_list structure), enqueue your * events in them and explicitly ask to run them. */ #include "nest/bird.h" #include "lib/event.h" event_list global_event_list; inline void ev_postpone(event *e) { if (e->n.next) { rem_node(&e->n); e->n.next = NULL; } } static void ev_dump(resource *r) { event *e = (event *) r; debug("(code %p, data %p, %s)\n", e->hook, e->data, e->n.next ? "scheduled" : "inactive"); } static struct resclass ev_class = { "Event", sizeof(event), (void (*)(resource *)) ev_postpone, ev_dump, NULL, NULL }; /** * ev_new - create a new event * @p: resource pool * * This function creates a new event resource. To use it, * you need to fill the structure fields and call ev_schedule(). */ event * ev_new(pool *p) { event *e = ralloc(p, &ev_class); return e; } /** * ev_run - run an event * @e: an event * * This function explicitly runs the event @e (calls its hook * function) and removes it from an event list if it's linked to any. * * From the hook function, you can call ev_enqueue() or ev_schedule() * to re-add the event. */ inline void ev_run(event *e) { ev_postpone(e); e->hook(e->data); } /** * ev_enqueue - enqueue an event * @l: an event list * @e: an event * * ev_enqueue() stores the event @e to the specified event * list @l which can be run by calling ev_run_list(). */ inline void ev_enqueue(event_list *l, event *e) { ev_postpone(e); add_tail(l, &e->n); } /** * ev_schedule - schedule an event * @e: an event * * This function schedules an event by enqueueing it to a system-wide * event list which is run by the platform dependent code whenever * appropriate. */ void ev_schedule(event *e) { ev_enqueue(&global_event_list, e); } /** * ev_run_list - run an event list * @l: an event list * * This function calls ev_run() for all events enqueued in the list @l. */ int ev_run_list(event_list *l) { node *n; list tmp_list; init_list(&tmp_list); add_tail_list(&tmp_list, l); init_list(l); WALK_LIST_FIRST(n, tmp_list) { event *e = SKIP_BACK(event, n, n); ev_run(e); } return !EMPTY_LIST(*l); } bird-1.4.0/lib/ipv6.h0000644000103200001440000000734412175263574013247 0ustar feelausers /* * BIRD -- IP Addresses et Cetera for IPv6 * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_IPV6_H_ #define _BIRD_IPV6_H_ #include #include #include "lib/string.h" #include "lib/bitops.h" #include "lib/unaligned.h" typedef struct ipv6_addr { u32 addr[4]; } ip_addr; #define _MI(a,b,c,d) ((struct ipv6_addr) {{ a, b, c, d }}) #define _I0(a) ((a).addr[0]) #define _I1(a) ((a).addr[1]) #define _I2(a) ((a).addr[2]) #define _I3(a) ((a).addr[3]) #define MAX_PREFIX_LENGTH 128 #define BITS_PER_IP_ADDRESS 128 #define STD_ADDRESS_P_LENGTH 39 #define SIZE_OF_IP_HEADER 40 #define IPA_NONE _MI(0,0,0,0) #define ipa_equal(x,y) ({ ip_addr _a=(x), _b=(y); \ _I0(_a) == _I0(_b) && \ _I1(_a) == _I1(_b) && \ _I2(_a) == _I2(_b) && \ _I3(_a) == _I3(_b); }) #define ipa_nonzero(x) ({ ip_addr _a=(x); (_I0(_a) || _I1(_a) || _I2(_a) || _I3(_a)); }) #define ipa_and(x,y) ({ ip_addr _a=(x), _b=(y); \ _MI(_I0(_a) & _I0(_b), \ _I1(_a) & _I1(_b), \ _I2(_a) & _I2(_b), \ _I3(_a) & _I3(_b)); }) #define ipa_or(x,y) ({ ip_addr _a=(x), _b=(y); \ _MI(_I0(_a) | _I0(_b), \ _I1(_a) | _I1(_b), \ _I2(_a) | _I2(_b), \ _I3(_a) | _I3(_b)); }) #define ipa_xor(x,y) ({ ip_addr _a=(x), _b=(y); \ _MI(_I0(_a) ^ _I0(_b), \ _I1(_a) ^ _I1(_b), \ _I2(_a) ^ _I2(_b), \ _I3(_a) ^ _I3(_b)); }) #define ipa_not(x) ({ ip_addr _a=(x); _MI(~_I0(_a),~_I1(_a),~_I2(_a),~_I3(_a)); }) #define ipa_mkmask(x) ipv6_mkmask(x) #define ipa_mklen(x) ipv6_mklen(&(x)) #define ipa_hash(x) ipv6_hash(&(x)) #define ipa_hton(x) ipv6_hton(&(x)) #define ipa_ntoh(x) ipv6_ntoh(&(x)) #define ipa_classify(x) ipv6_classify(&(x)) #define ipa_has_link_scope(x) ipv6_has_link_scope(&(x)) #define ipa_opposite_m1(x) ({ ip_addr _a=(x); _MI(_I0(_a),_I1(_a),_I2(_a),_I3(_a) ^ 1); }) #define ipa_opposite_m2(x) ({ ip_addr _a=(x); _MI(_I0(_a),_I1(_a),_I2(_a),_I3(_a) ^ 3); }) /* ipa_class_mask don't make sense with IPv6 */ /* ipa_from_u32 and ipa_to_u32 replaced by ipa_build */ #define ipa_build(a,b,c,d) _MI(a,b,c,d) #define ipa_compare(x,y) ipv6_compare(x,y) /* ipa_pxlen() requires that x != y */ #define ipa_pxlen(x, y) ipv6_pxlen(x, y) #define ipa_getbit(x, y) ipv6_getbit(x, y) #define ipa_put_addr(x, y) ipv6_put_addr(x, y) #define ipa_absolutize(x,y) ipv6_absolutize(x,y) /* In IPv6, SOCK_RAW does not return packet header */ #define ip_skip_header(x, y) x ip_addr ipv6_mkmask(unsigned); unsigned ipv6_mklen(ip_addr *); int ipv6_classify(ip_addr *); void ipv6_hton(ip_addr *); void ipv6_ntoh(ip_addr *); int ipv6_compare(ip_addr, ip_addr); int ipv4_pton_u32(char *, u32 *); void ipv6_absolutize(ip_addr *, ip_addr *); static inline int ipv6_has_link_scope(ip_addr *a) { return ((a->addr[0] & 0xffc00000) == 0xfe800000); } /* * This hash function looks well, but once IPv6 enters * mainstream use, we need to check that it has good * distribution properties on real routing tables. */ static inline unsigned ipv6_hash(ip_addr *a) { /* Returns a 16-bit hash key */ u32 x = _I0(*a) ^ _I1(*a) ^ _I2(*a) ^ _I3(*a); return (x ^ (x >> 16) ^ (x >> 8)) & 0xffff; } static inline u32 ipv6_getbit(ip_addr a, u32 y) { return a.addr[y / 32] & (0x80000000 >> (y % 32)); } static inline u32 ipv6_pxlen(ip_addr a, ip_addr b) { int i = 0; i+= (a.addr[i] == b.addr[i]); i+= (a.addr[i] == b.addr[i]); i+= (a.addr[i] == b.addr[i]); i+= (a.addr[i] == b.addr[i]); return 32 * i + 31 - u32_log2(a.addr[i] ^ b.addr[i]); } static inline byte * ipv6_put_addr(byte *buf, ip_addr a) { put_u32(buf+0, _I0(a)); put_u32(buf+4, _I1(a)); put_u32(buf+8, _I2(a)); put_u32(buf+12, _I3(a)); return buf+16; } #define IP_PREC_INTERNET_CONTROL 0xc0 #endif bird-1.4.0/lib/resource.h0000644000103200001440000000576412244117701014201 0ustar feelausers/* * BIRD Resource Manager * * (c) 1998--1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_RESOURCE_H_ #define _BIRD_RESOURCE_H_ #include "lib/lists.h" /* Resource */ typedef struct resource { node n; /* Inside resource pool */ struct resclass *class; /* Resource class */ } resource; /* Resource class */ struct resclass { char *name; /* Resource class name */ unsigned size; /* Standard size of single resource */ void (*free)(resource *); /* Freeing function */ void (*dump)(resource *); /* Dump to debug output */ resource *(*lookup)(resource *, unsigned long); /* Look up address (only for debugging) */ size_t (*memsize)(resource *); /* Return size of memory used by the resource, may be NULL */ }; /* Estimate of system allocator overhead per item, for memory consumtion stats */ #define ALLOC_OVERHEAD 8 /* Generic resource manipulation */ typedef struct pool pool; void resource_init(void); pool *rp_new(pool *, char *); /* Create new pool */ void rfree(void *); /* Free single resource */ void rdump(void *); /* Dump to debug output */ size_t rmemsize(void *res); /* Return size of memory used by the resource */ void rlookup(unsigned long); /* Look up address (only for debugging) */ void rmove(void *, pool *); /* Move to a different pool */ void *ralloc(pool *, struct resclass *); extern pool root_pool; /* Normal memory blocks */ void *mb_alloc(pool *, unsigned size); void *mb_allocz(pool *, unsigned size); void *mb_realloc(void *m, unsigned size); void mb_free(void *); /* Memory pools with linear allocation */ typedef struct linpool linpool; linpool *lp_new(pool *, unsigned blk); void *lp_alloc(linpool *, unsigned size); /* Aligned */ void *lp_allocu(linpool *, unsigned size); /* Unaligned */ void *lp_allocz(linpool *, unsigned size); /* With clear */ void lp_flush(linpool *); /* Free everything, but leave linpool */ /* Slabs */ typedef struct slab slab; slab *sl_new(pool *, unsigned size); void *sl_alloc(slab *); void sl_free(slab *, void *); /* * Low-level memory allocation functions, please don't use * outside resource manager and possibly sysdep code. */ void buffer_realloc(void **buf, unsigned *size, unsigned need, unsigned item_size); #ifdef HAVE_LIBDMALLOC /* * The standard dmalloc macros tend to produce lots of namespace * conflicts and we use only xmalloc, xrealloc and xfree, so we * can define the stubs ourselves. */ #define DMALLOC_DISABLE #include #define xmalloc(size) _xmalloc_leap(__FILE__, __LINE__, size) #define xrealloc(size) _xrealloc_leap(__FILE__, __LINE__, size) #define xfree(ptr) _xfree_leap(__FILE__, __LINE__, ptr) #else /* * Unfortunately, several libraries we might want to link to define * their own xmalloc and we don't want to interfere with them, hence * the renaming. */ #define xmalloc bird_xmalloc #define xrealloc bird_xrealloc void *xmalloc(unsigned); void *xrealloc(void *, unsigned); #define xfree(x) free(x) #endif #endif bird-1.4.0/lib/ipv4.h0000644000103200001440000000452611606273733013240 0ustar feelausers/* * BIRD -- IP Addresses et Cetera for IPv4 * * (c) 1998--1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_IPV4_H_ #define _BIRD_IPV4_H_ #include "lib/endian.h" #include "lib/bitops.h" #include "lib/unaligned.h" #ifdef DEBUGGING /* * Use the structural representation when you want to make sure * nobody unauthorized attempts to handle ip_addr as number. */ typedef struct ipv4_addr { u32 addr; } ip_addr; #define _I(x) (x).addr #define _MI(x) ((struct ipv4_addr) { x }) #else typedef u32 ip_addr; #define _I(x) (x) #define _MI(x) (x) #endif #define MAX_PREFIX_LENGTH 32 #define BITS_PER_IP_ADDRESS 32 #define STD_ADDRESS_P_LENGTH 15 #define SIZE_OF_IP_HEADER 24 #define IPA_NONE (_MI(0)) #define ipa_equal(x,y) (_I(x) == _I(y)) #define ipa_nonzero(x) _I(x) #define ipa_and(x,y) _MI(_I(x) & _I(y)) #define ipa_or(x,y) _MI(_I(x) | _I(y)) #define ipa_xor(x,y) _MI(_I(x) ^ _I(y)) #define ipa_not(x) _MI(~_I(x)) #define ipa_mkmask(x) _MI(u32_mkmask(x)) #define ipa_mklen(x) u32_masklen(_I(x)) #define ipa_hash(x) ipv4_hash(_I(x)) #define ipa_hton(x) x = _MI(htonl(_I(x))) #define ipa_ntoh(x) x = _MI(ntohl(_I(x))) #define ipa_classify(x) ipv4_classify(_I(x)) #define ipa_has_link_scope(x) ipv4_has_link_scope(_I(x)) #define ipa_opposite_m1(x) _MI(_I(x) ^ 1) #define ipa_opposite_m2(x) _MI(_I(x) ^ 3) #define ipa_class_mask(x) _MI(ipv4_class_mask(_I(x))) #define ipa_from_u32(x) _MI(x) #define ipa_to_u32(x) _I(x) #define ipa_compare(x,y) ipv4_compare(_I(x),_I(y)) /* ipa_pxlen() requires that x != y */ #define ipa_pxlen(x, y) ipv4_pxlen(_I(x), _I(y)) #define ipa_getbit(x, y) (_I(x) & (0x80000000 >> (y))) #define ipa_put_addr(x, y) ipv4_put_addr(x, y) #define ip_skip_header(x, y) ipv4_skip_header(x, y) int ipv4_classify(u32); u32 ipv4_class_mask(u32); byte *ipv4_skip_header(byte *, int *); static inline int ipv4_has_link_scope(u32 a UNUSED) { return 0; } static inline unsigned ipv4_hash(u32 a) { /* Returns a 16-bit value */ a ^= a >> 16; a ^= a << 10; return a & 0xffff; } static inline int ipv4_compare(u32 x, u32 y) { return (x > y) - (x < y); } static inline u32 ipv4_pxlen(u32 a, u32 b) { return 31 - u32_log2(a ^ b); } static inline byte * ipv4_put_addr(byte *buf, ip_addr a) { put_u32(buf, _I(a)); return buf+4; } #define IP_PREC_INTERNET_CONTROL 0xc0 #endif bird-1.4.0/lib/xmalloc.c0000644000103200001440000000222211606273733013777 0ustar feelausers/* * BIRD Library -- malloc() With Checking * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include "nest/bird.h" #include "lib/resource.h" #ifndef HAVE_LIBDMALLOC /** * xmalloc - malloc with checking * @size: block size * * This function is equivalent to malloc() except that in case of * failure it calls die() to quit the program instead of returning * a %NULL pointer. * * Wherever possible, please use the memory resources instead. */ void * xmalloc(unsigned size) { void *p = malloc(size); if (p) return p; die("Unable to allocate %d bytes of memory", size); } /** * xrealloc - realloc with checking * @ptr: original memory block * @size: block size * * This function is equivalent to realloc() except that in case of * failure it calls die() to quit the program instead of returning * a %NULL pointer. * * Wherever possible, please use the memory resources instead. */ void * xrealloc(void *ptr, unsigned size) { void *p = realloc(ptr, size); if (p) return p; die("Unable to allocate %d bytes of memory", size); } #endif bird-1.4.0/lib/Doc0000644000103200001440000000027111606273733012626 0ustar feelausersH Library functions S ip.c ipv4.c ipv6.c S lists.c S checksum.c bitops.c patmatch.c printf.c xmalloc.c D resource.sgml S resource.c S mempool.c S slab.c S event.c S ../sysdep/unix/io.c bird-1.4.0/lib/bitops.c0000644000103200001440000000325311606273733013645 0ustar feelausers/* * BIRD Library -- Generic Bit Operations * * (c) 1998 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include "nest/bird.h" #include "bitops.h" /** * u32_mkmask - create a bit mask * @n: number of bits * * u32_mkmask() returns an unsigned 32-bit integer which binary * representation consists of @n ones followed by zeroes. */ u32 u32_mkmask(unsigned n) { return n ? ~((1 << (32 - n)) - 1) : 0; } /** * u32_masklen - calculate length of a bit mask * @x: bit mask * * This function checks whether the given integer @x represents * a valid bit mask (binary representation contains first ones, then * zeroes) and returns the number of ones or -1 if the mask is invalid. */ int u32_masklen(u32 x) { int l = 0; u32 n = ~x; if (n & (n+1)) return -1; if (x & 0x0000ffff) { x &= 0x0000ffff; l += 16; } if (x & 0x00ff00ff) { x &= 0x00ff00ff; l += 8; } if (x & 0x0f0f0f0f) { x &= 0x0f0f0f0f; l += 4; } if (x & 0x33333333) { x &= 0x33333333; l += 2; } if (x & 0x55555555) l++; if (x & 0xaaaaaaaa) l++; return l; } /** * u32_log2 - compute a binary logarithm. * @v: number * * This function computes a integral part of binary logarithm of given * integer @v and returns it. The computed value is also an index of the * most significant non-zero bit position. */ u32 u32_log2(u32 v) { /* The code from http://www-graphics.stanford.edu/~seander/bithacks.html */ u32 r, shift; r = (v > 0xFFFF) << 4; v >>= r; shift = (v > 0xFF ) << 3; v >>= shift; r |= shift; shift = (v > 0xF ) << 2; v >>= shift; r |= shift; shift = (v > 0x3 ) << 1; v >>= shift; r |= shift; r |= (v >> 1); return r; } bird-1.4.0/lib/ip.h0000644000103200001440000000264711732627752012774 0ustar feelausers/* * BIRD Internet Routing Daemon -- The Internet Protocol * * (c) 1998 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_IP_H_ #define _BIRD_IP_H_ #ifndef IPV6 #include "ipv4.h" #else #include "ipv6.h" #endif #define ipa_zero(x) (!ipa_nonzero(x)) #define ip_is_prefix(a,l) (!ipa_nonzero(ipa_and(a, ipa_not(ipa_mkmask(l))))) #define ipa_in_net(x,n,p) (ipa_zero(ipa_and(ipa_xor((n),(x)),ipa_mkmask(p)))) #define net_in_net(n1,l1,n2,l2) (((l1) >= (l2)) && (ipa_zero(ipa_and(ipa_xor((n1),(n2)),ipa_mkmask(l2))))) /* * ip_classify() returns either a negative number for invalid addresses * or scope OR'ed together with address type. */ #define IADDR_INVALID -1 #define IADDR_SCOPE_MASK 0xfff #define IADDR_HOST 0x1000 #define IADDR_BROADCAST 0x2000 #define IADDR_MULTICAST 0x4000 /* * Address scope */ #define SCOPE_HOST 0 #define SCOPE_LINK 1 #define SCOPE_SITE 2 #define SCOPE_ORGANIZATION 3 #define SCOPE_UNIVERSE 4 #define SCOPE_UNDEFINED 5 char *ip_scope_text(unsigned); /* * Network prefixes */ struct prefix { ip_addr addr; unsigned int len; }; static inline int ipa_classify_net(ip_addr a) { return ipa_zero(a) ? (IADDR_HOST | SCOPE_UNIVERSE) : ipa_classify(a); } /* * Conversions between internal and string representation */ char *ip_ntop(ip_addr a, char *); char *ip_ntox(ip_addr a, char *); int ip_pton(char *a, ip_addr *o); #endif bird-1.4.0/lib/ip.c0000644000103200001440000001502711644522607012756 0ustar feelausers/* * BIRD Library -- IP address routines common for IPv4 and IPv6 * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include "nest/bird.h" #include "lib/ip.h" /** * DOC: IP addresses * * BIRD uses its own abstraction of IP address in order to share the same * code for both IPv4 and IPv6. IP addresses are represented as entities * of type &ip_addr which are never to be treated as numbers and instead * they must be manipulated using the following functions and macros. */ /** * ip_scope_text - get textual representation of address scope * @scope: scope (%SCOPE_xxx) * * Returns a pointer to a textual name of the scope given. */ char * ip_scope_text(unsigned scope) { static char *scope_table[] = { "host", "link", "site", "org", "univ", "undef" }; if (scope > SCOPE_UNDEFINED) return "?"; else return scope_table[scope]; } #if 0 /** * ipa_equal - compare two IP addresses for equality * @x: IP address * @y: IP address * * ipa_equal() returns 1 if @x and @y represent the same IP address, else 0. */ int ipa_equal(ip_addr x, ip_addr y) { DUMMY } /** * ipa_nonzero - test if an IP address is defined * @x: IP address * * ipa_nonzero returns 1 if @x is a defined IP address (not all bits are zero), * else 0. * * The undefined all-zero address is reachable as a |IPA_NONE| macro. */ int ipa_nonzero(ip_addr x) { DUMMY } /** * ipa_and - compute bitwise and of two IP addresses * @x: IP address * @y: IP address * * This function returns a bitwise and of @x and @y. It's primarily * used for network masking. */ ip_addr ipa_and(ip_addr x, ip_addr y) { DUMMY } /** * ipa_or - compute bitwise or of two IP addresses * @x: IP address * @y: IP address * * This function returns a bitwise or of @x and @y. */ ip_addr ipa_or(ip_addr x, ip_addr y) { DUMMY } /** * ipa_xor - compute bitwise xor of two IP addresses * @x: IP address * @y: IP address * * This function returns a bitwise xor of @x and @y. */ ip_addr ipa_xor(ip_addr x, ip_addr y) { DUMMY } /** * ipa_not - compute bitwise negation of two IP addresses * @x: IP address * * This function returns a bitwise negation of @x. */ ip_addr ipa_not(ip_addr x) { DUMMY } /** * ipa_mkmask - create a netmask * @x: prefix length * * This function returns an &ip_addr corresponding of a netmask * of an address prefix of size @x. */ ip_addr ipa_mkmask(int x) { DUMMY } /** * ipa_mkmask - calculate netmask length * @x: IP address * * This function checks whether @x represents a valid netmask and * returns the size of the associate network prefix or -1 for invalid * mask. */ int ipa_mklen(ip_addr x) { DUMMY } /** * ipa_hash - hash IP addresses * @x: IP address * * ipa_hash() returns a 16-bit hash value of the IP address @x. */ int ipa_hash(ip_addr x) { DUMMY } /** * ipa_hton - convert IP address to network order * @x: IP address * * Converts the IP address @x to the network byte order. * * Beware, this is a macro and it alters the argument! */ void ipa_hton(ip_addr x) { DUMMY } /** * ipa_ntoh - convert IP address to host order * @x: IP address * * Converts the IP address @x from the network byte order. * * Beware, this is a macro and it alters the argument! */ void ipa_ntoh(ip_addr x) { DUMMY } /** * ipa_classify - classify an IP address * @x: IP address * * ipa_classify() returns an address class of @x, that is a bitwise or * of address type (%IADDR_INVALID, %IADDR_HOST, %IADDR_BROADCAST, %IADDR_MULTICAST) * with address scope (%SCOPE_HOST to %SCOPE_UNIVERSE) or -1 (%IADDR_INVALID) * for an invalid address. */ int ipa_classify(ip_addr x) { DUMMY } /** * ipa_class_mask - guess netmask according to address class * @x: IP address * * This function (available in IPv4 version only) returns a * network mask according to the address class of @x. Although * classful addressing is nowadays obsolete, there still live * routing protocols transferring no prefix lengths nor netmasks * and this function could be useful to them. */ ip_addr ipa_class_mask(ip_addr x) { DUMMY } /** * ipa_from_u32 - convert IPv4 address to an integer * @x: IP address * * This function takes an IPv4 address and returns its numeric * representation. */ u32 ipa_from_u32(ip_addr x) { DUMMY } /** * ipa_to_u32 - convert integer to IPv4 address * @x: a 32-bit integer * * ipa_to_u32() takes a numeric representation of an IPv4 address * and converts it to the corresponding &ip_addr. */ ip_addr ipa_to_u32(u32 x) { DUMMY } /** * ipa_compare - compare two IP addresses for order * @x: IP address * @y: IP address * * The ipa_compare() function takes two IP addresses and returns * -1 if @x is less than @y in canonical ordering (lexicographical * order of the bit strings), 1 if @x is greater than @y and 0 * if they are the same. */ int ipa_compare(ip_addr x, ip_addr y) { DUMMY } /** * ipa_build - build an IPv6 address from parts * @a1: part #1 * @a2: part #2 * @a3: part #3 * @a4: part #4 * * ipa_build() takes @a1 to @a4 and assembles them to a single IPv6 * address. It's used for example when a protocol wants to bind its * socket to a hard-wired multicast address. */ ip_addr ipa_build(u32 a1, u32 a2, u32 a3, u32 a4) { DUMMY } /** * ipa_absolutize - convert link scope IPv6 address to universe scope * @x: link scope IPv6 address * @y: universe scope IPv6 prefix of the interface * * This function combines a link-scope IPv6 address @x with the universe * scope prefix @x of the network assigned to an interface to get a * universe scope form of @x. */ ip_addr ipa_absolutize(ip_addr x, ip_addr y) { DUMMY } /** * ip_ntop - convert IP address to textual representation * @a: IP address * @buf: buffer of size at least %STD_ADDRESS_P_LENGTH * * This function takes an IP address and creates its textual * representation for presenting to the user. */ char *ip_ntop(ip_addr a, char *buf) { DUMMY } /** * ip_ntox - convert IP address to hexadecimal representation * @a: IP address * @buf: buffer of size at least %STD_ADDRESS_P_LENGTH * * This function takes an IP address and creates its hexadecimal * textual representation. Primary use: debugging dumps. */ char *ip_ntox(ip_addr a, char *buf) { DUMMY } /** * ip_pton - parse textual representation of IP address * @a: textual representation * @o: where to put the resulting address * * This function parses a textual IP address representation and * stores the decoded address to a variable pointed to by @o. * Returns 0 if a parse error has occurred, else 0. */ int ip_pton(char *a, ip_addr *o) { DUMMY } #endif bird-1.4.0/lib/checksum.c0000644000103200001440000000464611606273733014156 0ustar feelausers/* * BIRD Library -- IP One-Complement Checksum * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Miscellaneous functions. */ #include #include "nest/bird.h" #include "checksum.h" static inline u32 add32(u32 sum, u32 x) { u32 z = sum + x; // return z + (z < sum); /* add carry */ if (z < x) z++; return z; } static u16 ipsum_calc_block(u32 *buf, unsigned len, u16 isum) { /* * A few simple facts about the IP checksum (see RFC 1071 for detailed * discussion): * * o It's associative and commutative. * o It's byte order independent. * o It's word size independent. * * This gives us a neat 32-bits-at-a-time algorithm which respects * usual alignment requirements and is reasonably fast. */ ASSERT(!(len % 4)); if (!len) return isum; u32 *end = buf + (len >> 2); u32 sum = isum; while (buf < end) sum = add32(sum, *buf++); sum = (sum >> 16) + (sum & 0xffff); /* add high-16 to low-16 */ sum += (sum >> 16); /* add carry */ return sum; } static u16 ipsum_calc(void *frag, unsigned len, va_list args) { u16 sum = 0; for(;;) { sum = ipsum_calc_block(frag, len, sum); frag = va_arg(args, void *); if (!frag) break; len = va_arg(args, unsigned); } return sum; } /** * ipsum_verify - verify an IP checksum * @frag: first packet fragment * @len: length in bytes * * This function verifies whether a given fragmented packet * has correct one's complement checksum as used by the IP * protocol. * * It uses all the clever tricks described in RFC 1071 to speed * up checksum calculation as much as possible. * * Result: 1 if the checksum is correct, 0 else. */ int ipsum_verify(void *frag, unsigned len, ...) { va_list args; u16 sum; va_start(args, len); sum = ipsum_calc(frag, len, args); va_end(args); return sum == 0xffff; } /** * ipsum_calculate - compute an IP checksum * @frag: first packet fragment * @len: length in bytes * * This function calculates a one's complement checksum of a given fragmented * packet. * * It uses all the clever tricks described in RFC 1071 to speed * up checksum calculation as much as possible. */ u16 ipsum_calculate(void *frag, unsigned len, ...) { va_list args; u16 sum; va_start(args, len); sum = ipsum_calc(frag, len, args); va_end(args); return 0xffff - sum; } bird-1.4.0/lib/checksum.h0000644000103200001440000000066611606273733014161 0ustar feelausers/* * BIRD Library -- IP One-Complement Checksum * * (c) 1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_CHECKSUM_H_ #define _BIRD_CHECKSUM_H_ /* * Both checksumming functions accept a vararg list of packet * fragments finished by NULL pointer. */ int ipsum_verify(void *frag, unsigned len, ...); u16 ipsum_calculate(void *frag, unsigned len, ...); #endif bird-1.4.0/lib/bitops.h0000644000103200001440000000075711606273733013660 0ustar feelausers/* * BIRD Library -- Generic Bit Operations * * (c) 1998 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /* * Bit mask operations: * * u32_mkmask Make bit mask consisting of consecutive ones * from the left and the rest filled with zeroes. * E.g., u32_mkmask(5) = 0xf8000000. * u32_masklen Inverse operation to u32_mkmask, -1 if not a bitmask. */ u32 u32_mkmask(unsigned n); int u32_masklen(u32 x); u32 u32_log2(u32 v); bird-1.4.0/lib/hash.h0000644000103200001440000000641712244117701013271 0ustar feelausers #define HASH(type) struct { type **data; uint count, order; } #define HASH_TYPE(v) typeof(** (v).data) #define HASH_SIZE(v) (1 << (v).order) #define HASH_MASK(v) ((1 << (v).order)-1) #define HASH_INIT(v,pool,init_order) \ ({ \ (v).count = 0; \ (v).order = (init_order); \ (v).data = mb_allocz(pool, HASH_SIZE(v) * sizeof(* (v).data)); \ }) #define HASH_FIND(v,id,key...) \ ({ \ uint _h = id##_FN((key)) & HASH_MASK(v); \ HASH_TYPE(v) *_n = (v).data[_h]; \ while (_n && !id##_EQ(id##_KEY(_n), (key))) \ _n = id##_NEXT(_n); \ _n; \ }) #define HASH_INSERT(v,id,node) \ ({ \ uint _h = id##_FN(id##_KEY((node))) & HASH_MASK(v); \ HASH_TYPE(v) **_nn = (v).data + _h; \ id##_NEXT(node) = *_nn; \ *_nn = node; \ (v).count++; \ }) #define HASH_DO_REMOVE(v,id,_nn) \ ({ \ HASH_TYPE(v) *_n = *_nn; \ if (_n) \ { \ *_nn = id##_NEXT(_n); \ (v).count--; \ } \ _n; \ }) #define HASH_DELETE(v,id,key...) \ ({ \ uint _h = id##_FN((key)) & HASH_MASK(v); \ HASH_TYPE(v) **_nn = (v).data + _h; \ \ while ((*_nn) && !id##_EQ(id##_KEY((*_nn)), (key))) \ _nn = &(id##_NEXT((*_nn))); \ \ HASH_DO_REMOVE(v,id,_nn); \ }) #define HASH_REMOVE(v,id,node) \ ({ \ uint _h = id##_FN(id##_KEY((node))) & HASH_MASK(v); \ HASH_TYPE(v) **_nn = (v).data + _h; \ \ while ((*_nn) && (*_nn != (node))) \ _nn = &(id##_NEXT((*_nn))); \ \ HASH_DO_REMOVE(v,id,_nn); \ }) #define HASH_REHASH(v,id,pool,step) \ ({ \ HASH_TYPE(v) *_n, *_n2, **_od; \ uint _i, _s; \ \ _s = HASH_SIZE(v); \ _od = (v).data; \ (v).count = 0; \ (v).order += (step); \ (v).data = mb_allocz(pool, HASH_SIZE(v) * sizeof(* (v).data)); \ \ for (_i = 0; _i < _s; _i++) \ for (_n = _od[_i]; _n && (_n2 = id##_NEXT(_n), 1); _n = _n2) \ HASH_INSERT(v, id, _n); \ \ mb_free(_od); \ }) #define HASH_DEFINE_REHASH_FN(id, type) \ static void id##_REHASH_FN(void *v, pool *p, int step) \ { HASH_REHASH(* (HASH(type) *) v, id, p, step); } #define HASH_TRY_REHASH_UP(v,id,pool) \ ({ \ if (((v).order < id##_REHASH_MAX) && ((v).count > HASH_SIZE(v))) \ id##_REHASH_FN(&v, pool, 1); \ }) #define HASH_TRY_REHASH_DOWN(v,id,pool) \ ({ \ if (((v).order > id##_REHASH_MIN) && ((v).count < HASH_SIZE(v)/2)) \ id##_REHASH_FN(&v, pool, -1); \ }) #define HASH_WALK(v,next,n) \ do { \ HASH_TYPE(v) *n; \ uint _i; \ uint _s = HASH_SIZE(v); \ for (_i = 0; _i < _s; _i++) \ for (n = (v).data[_i]; n; n = n->next) #define HASH_WALK_END } while (0) #define HASH_WALK_DELSAFE(v,next,n) \ do { \ HASH_TYPE(v) *n, *_next; \ uint _i; \ uint _s = HASH_SIZE(v); \ for (_i = 0; _i < _s; _i++) \ for (n = (v).data[_i]; n && (_next = n->next, 1); n = _next) #define HASH_WALK_DELSAFE_END } while (0) bird-1.4.0/lib/buffer.h0000644000103200001440000000152112244117701013606 0ustar feelausers #define BUFFER(type) struct { type *data; uint used, size; } #define BUFFER_SIZE(v) ((v).size * sizeof(* (v).data)) #define BUFFER_INIT(v,pool,isize) \ ({ \ (v).used = 0; \ (v).size = (isize); \ (v).data = mb_alloc(pool, BUFFER_SIZE(v)); \ }) #define BUFFER_SET(v,nsize) \ ({ \ (v).used = (nsize); \ if ((v).used > (v).size) \ buffer_realloc((void **) &((v).data), &((v).size), (v).used, sizeof(* (v).data)); \ }) #define BUFFER_INC(v,step) \ ({ \ uint _o = (v).used; \ BUFFER_SET(v, (v).used + (step)); \ (v).data + _o; \ }) #define BUFFER_DEC(v,step) ({ (v).used -= (step); }) #define BUFFER_PUSH(v) (*BUFFER_INC(v,1)) #define BUFFER_POP(v) BUFFER_DEC(v,1) #define BUFFER_FLUSH(v) ({ (v).used = 0; }) bird-1.4.0/lib/alloca.h0000644000103200001440000000043711606273733013606 0ustar feelausers/* * BIRD Library -- Alloca.h * * (c) 2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_ALLOCA_H_ #define _BIRD_ALLOCA_H_ #ifdef HAVE_ALLOCA_H #include #else #include #endif #endif bird-1.4.0/lib/resource.c0000644000103200001440000002101212244117701014154 0ustar feelausers/* * BIRD Resource Manager * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include #include #include "nest/bird.h" #include "lib/resource.h" #include "lib/string.h" /** * DOC: Resource pools * * Resource pools (&pool) are just containers holding a list of * other resources. Freeing a pool causes all the listed resources * to be freed as well. Each existing &resource is linked to some pool * except for a root pool which isn't linked anywhere, so all the * resources form a tree structure with internal nodes corresponding * to pools and leaves being the other resources. * * Example: Almost all modules of BIRD have their private pool which * is freed upon shutdown of the module. */ struct pool { resource r; list inside; char *name; }; static void pool_dump(resource *); static void pool_free(resource *); static resource *pool_lookup(resource *, unsigned long); static size_t pool_memsize(resource *P); static struct resclass pool_class = { "Pool", sizeof(pool), pool_free, pool_dump, pool_lookup, pool_memsize }; pool root_pool; static int indent; /** * rp_new - create a resource pool * @p: parent pool * @name: pool name (to be included in debugging dumps) * * rp_new() creates a new resource pool inside the specified * parent pool. */ pool * rp_new(pool *p, char *name) { pool *z = ralloc(p, &pool_class); z->name = name; init_list(&z->inside); return z; } static void pool_free(resource *P) { pool *p = (pool *) P; resource *r, *rr; r = HEAD(p->inside); while (rr = (resource *) r->n.next) { r->class->free(r); xfree(r); r = rr; } } static void pool_dump(resource *P) { pool *p = (pool *) P; resource *r; debug("%s\n", p->name); indent += 3; WALK_LIST(r, p->inside) rdump(r); indent -= 3; } static size_t pool_memsize(resource *P) { pool *p = (pool *) P; resource *r; size_t sum = sizeof(pool) + ALLOC_OVERHEAD; WALK_LIST(r, p->inside) sum += rmemsize(r); return sum; } static resource * pool_lookup(resource *P, unsigned long a) { pool *p = (pool *) P; resource *r, *q; WALK_LIST(r, p->inside) if (r->class->lookup && (q = r->class->lookup(r, a))) return q; return NULL; } /** * rmove - move a resource * @res: resource * @p: pool to move the resource to * * rmove() moves a resource from one pool to another. */ void rmove(void *res, pool *p) { resource *r = res; if (r) { if (r->n.next) rem_node(&r->n); add_tail(&p->inside, &r->n); } } /** * rfree - free a resource * @res: resource * * rfree() frees the given resource and all information associated * with it. In case it's a resource pool, it also frees all the objects * living inside the pool. * * It works by calling a class-specific freeing function. */ void rfree(void *res) { resource *r = res; if (r) { if (r->n.next) rem_node(&r->n); r->class->free(r); xfree(r); } } /** * rdump - dump a resource * @res: resource * * This function prints out all available information about the given * resource to the debugging output. * * It works by calling a class-specific dump function. */ void rdump(void *res) { char x[16]; resource *r = res; bsprintf(x, "%%%ds%%p ", indent); debug(x, "", r); if (r) { debug("%s ", r->class->name); r->class->dump(r); } else debug("NULL\n"); } size_t rmemsize(void *res) { resource *r = res; if (!r) return 0; if (!r->class->memsize) return r->class->size + ALLOC_OVERHEAD; return r->class->memsize(r); } /** * ralloc - create a resource * @p: pool to create the resource in * @c: class of the new resource * * This function is called by the resource classes to create a new * resource of the specified class and link it to the given pool. * Allocated memory is zeroed. Size of the resource structure is taken * from the @size field of the &resclass. */ void * ralloc(pool *p, struct resclass *c) { resource *r = xmalloc(c->size); bzero(r, c->size); r->class = c; if (p) add_tail(&p->inside, &r->n); return r; } /** * rlookup - look up a memory location * @a: memory address * * This function examines all existing resources to see whether * the address @a is inside any resource. It's used for debugging * purposes only. * * It works by calling a class-specific lookup function for each * resource. */ void rlookup(unsigned long a) { resource *r; debug("Looking up %08lx\n", a); if (r = pool_lookup(&root_pool.r, a)) rdump(r); else debug("Not found.\n"); } /** * resource_init - initialize the resource manager * * This function is called during BIRD startup. It initializes * all data structures of the resource manager and creates the * root pool. */ void resource_init(void) { root_pool.r.class = &pool_class; root_pool.name = "Root"; init_list(&root_pool.inside); } /** * DOC: Memory blocks * * Memory blocks are pieces of contiguous allocated memory. * They are a bit non-standard since they are represented not by a pointer * to &resource, but by a void pointer to the start of data of the * memory block. All memory block functions know how to locate the header * given the data pointer. * * Example: All "unique" data structures such as hash tables are allocated * as memory blocks. */ struct mblock { resource r; unsigned size; uintptr_t data_align[0]; byte data[0]; }; static void mbl_free(resource *r UNUSED) { } static void mbl_debug(resource *r) { struct mblock *m = (struct mblock *) r; debug("(size=%d)\n", m->size); } static resource * mbl_lookup(resource *r, unsigned long a) { struct mblock *m = (struct mblock *) r; if ((unsigned long) m->data <= a && (unsigned long) m->data + m->size > a) return r; return NULL; } static size_t mbl_memsize(resource *r) { struct mblock *m = (struct mblock *) r; return ALLOC_OVERHEAD + sizeof(struct mblock) + m->size; } static struct resclass mb_class = { "Memory", 0, mbl_free, mbl_debug, mbl_lookup, mbl_memsize }; /** * mb_alloc - allocate a memory block * @p: pool * @size: size of the block * * mb_alloc() allocates memory of a given size and creates * a memory block resource representing this memory chunk * in the pool @p. * * Please note that mb_alloc() returns a pointer to the memory * chunk, not to the resource, hence you have to free it using * mb_free(), not rfree(). */ void * mb_alloc(pool *p, unsigned size) { struct mblock *b = xmalloc(sizeof(struct mblock) + size); b->r.class = &mb_class; add_tail(&p->inside, &b->r.n); b->size = size; return b->data; } /** * mb_allocz - allocate and clear a memory block * @p: pool * @size: size of the block * * mb_allocz() allocates memory of a given size, initializes it to * zeroes and creates a memory block resource representing this memory * chunk in the pool @p. * * Please note that mb_allocz() returns a pointer to the memory * chunk, not to the resource, hence you have to free it using * mb_free(), not rfree(). */ void * mb_allocz(pool *p, unsigned size) { void *x = mb_alloc(p, size); bzero(x, size); return x; } /** * mb_realloc - reallocate a memory block * @m: memory block * @size: new size of the block * * mb_realloc() changes the size of the memory block @m to a given size. * The contents will be unchanged to the minimum of the old and new sizes; * newly allocated memory will be uninitialized. Contrary to realloc() * behavior, @m must be non-NULL, because the resource pool is inherited * from it. * * Like mb_alloc(), mb_realloc() also returns a pointer to the memory * chunk, not to the resource, hence you have to free it using * mb_free(), not rfree(). */ void * mb_realloc(void *m, unsigned size) { struct mblock *ob = NULL; if (m) { ob = SKIP_BACK(struct mblock, data, m); if (ob->r.n.next) rem_node(&ob->r.n); } struct mblock *b = xrealloc(ob, sizeof(struct mblock) + size); replace_node(&b->r.n, &b->r.n); b->size = size; return b->data; } /** * mb_free - free a memory block * @m: memory block * * mb_free() frees all memory associated with the block @m. */ void mb_free(void *m) { struct mblock *b = SKIP_BACK(struct mblock, data, m); rfree(b); } #define STEP_UP(x) ((x) + (x)/2 + 4) void buffer_realloc(void **buf, unsigned *size, unsigned need, unsigned item_size) { unsigned nsize = MIN(*size, need); while (nsize < need) nsize = STEP_UP(nsize); *buf = mb_realloc(*buf, nsize * item_size); *size = nsize; } bird-1.4.0/lib/Modules0000644000103200001440000000043311606273733013531 0ustar feelausersbirdlib.h bitops.c bitops.h ip.h ip.c #ifdef IPV6 ipv6.c ipv6.h #else ipv4.c ipv4.h #endif lists.c lists.h md5.c md5.h mempool.c resource.c resource.h slab.c socket.h unaligned.h xmalloc.c printf.c string.h patmatch.c slists.c slists.h event.c event.h checksum.c checksum.h alloca.h bird-1.4.0/lib/md5.c0000644000103200001440000001761011606273733013034 0ustar feelausers/* * This code implements the MD5 message-digest algorithm. * The algorithm is due to Ron Rivest. This code was * written by Colin Plumb in 1993, no copyright is claimed. * This code is in the public domain; do with it what you wish. * * Equivalent code is available from RSA Data Security, Inc. * This code has been tested against that, and is equivalent, * except that you don't need to include two pages of legalese * with every copy. * * To compute the message digest of a chunk of bytes, declare an * MD5Context structure, pass it to MD5Init, call MD5Update as * needed on buffers full of bytes, and then call MD5Final, which * will fill a supplied 16-byte array with the digest. */ /* * Adapted for BIRD by Martin Mares */ #include "nest/bird.h" #include "lib/string.h" #include "md5.h" #ifdef CPU_LITTLE_ENDIAN #define byteReverse(buf, len) /* Nothing */ #else void byteReverse(unsigned char *buf, unsigned longs); /* * Note: this code is harmless on little-endian machines. */ void byteReverse(unsigned char *buf, unsigned longs) { u32 t; do { t = (u32) ((unsigned) buf[3] << 8 | buf[2]) << 16 | ((unsigned) buf[1] << 8 | buf[0]); *(u32 *) buf = t; buf += 4; } while (--longs); } #endif /* * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious * initialization constants. */ void MD5Init(struct MD5Context *ctx) { ctx->buf[0] = 0x67452301; ctx->buf[1] = 0xefcdab89; ctx->buf[2] = 0x98badcfe; ctx->buf[3] = 0x10325476; ctx->bits[0] = 0; ctx->bits[1] = 0; } /* * Update context to reflect the concatenation of another buffer full * of bytes. */ void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len) { u32 t; /* Update bitcount */ t = ctx->bits[0]; if ((ctx->bits[0] = t + ((u32) len << 3)) < t) ctx->bits[1]++; /* Carry from low to high */ ctx->bits[1] += len >> 29; t = (t >> 3) & 0x3f; /* Bytes already in shsInfo->data */ /* Handle any leading odd-sized chunks */ if (t) { unsigned char *p = (unsigned char *) ctx->in + t; t = 64 - t; if (len < t) { memcpy(p, buf, len); return; } memcpy(p, buf, t); byteReverse(ctx->in, 16); MD5Transform(ctx->buf, (u32 *) ctx->in); buf += t; len -= t; } /* Process data in 64-byte chunks */ while (len >= 64) { memcpy(ctx->in, buf, 64); byteReverse(ctx->in, 16); MD5Transform(ctx->buf, (u32 *) ctx->in); buf += 64; len -= 64; } /* Handle any remaining bytes of data. */ memcpy(ctx->in, buf, len); } /* * Final wrapup - pad to 64-byte boundary with the bit pattern * 1 0* (64-bit count of bits processed, MSB-first) */ void MD5Final(unsigned char digest[16], struct MD5Context *ctx) { unsigned count; unsigned char *p; /* Compute number of bytes mod 64 */ count = (ctx->bits[0] >> 3) & 0x3F; /* Set the first char of padding to 0x80. This is safe since there is always at least one byte free */ p = ctx->in + count; *p++ = 0x80; /* Bytes of padding needed to make 64 bytes */ count = 64 - 1 - count; /* Pad out to 56 mod 64 */ if (count < 8) { /* Two lots of padding: Pad the first block to 64 bytes */ memset(p, 0, count); byteReverse(ctx->in, 16); MD5Transform(ctx->buf, (u32 *) ctx->in); /* Now fill the next block with 56 bytes */ memset(ctx->in, 0, 56); } else { /* Pad block to 56 bytes */ memset(p, 0, count - 8); } byteReverse(ctx->in, 14); /* Append length in bits and transform */ ((u32 *) ctx->in)[14] = ctx->bits[0]; ((u32 *) ctx->in)[15] = ctx->bits[1]; MD5Transform(ctx->buf, (u32 *) ctx->in); byteReverse((unsigned char *) ctx->buf, 4); memcpy(digest, ctx->buf, 16); memset((char *) ctx, 0, sizeof(ctx)); /* In case it's sensitive */ } /* The four core functions - F1 is optimized somewhat */ /* #define F1(x, y, z) (x & y | ~x & z) */ #define F1(x, y, z) (z ^ (x & (y ^ z))) #define F2(x, y, z) F1(z, x, y) #define F3(x, y, z) (x ^ y ^ z) #define F4(x, y, z) (y ^ (x | ~z)) /* This is the central step in the MD5 algorithm. */ #define MD5STEP(f, w, x, y, z, data, s) \ ( w += f(x, y, z) + data, w = w<>(32-s), w += x ) /* * The core of the MD5 algorithm, this alters an existing MD5 hash to * reflect the addition of 16 longwords of new data. MD5Update blocks * the data and converts bytes into longwords for this routine. */ void MD5Transform(u32 buf[4], u32 const in[16]) { register u32 a, b, c, d; a = buf[0]; b = buf[1]; c = buf[2]; d = buf[3]; MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); MD5STEP(F1, a, b, c, d, in[8] + 0x698098d8, 7); MD5STEP(F1, d, a, b, c, in[9] + 0x8b44f7af, 12); MD5STEP(F1, c, d, a, b, in[10] + 0xffff5bb1, 17); MD5STEP(F1, b, c, d, a, in[11] + 0x895cd7be, 22); MD5STEP(F1, a, b, c, d, in[12] + 0x6b901122, 7); MD5STEP(F1, d, a, b, c, in[13] + 0xfd987193, 12); MD5STEP(F1, c, d, a, b, in[14] + 0xa679438e, 17); MD5STEP(F1, b, c, d, a, in[15] + 0x49b40821, 22); MD5STEP(F2, a, b, c, d, in[1] + 0xf61e2562, 5); MD5STEP(F2, d, a, b, c, in[6] + 0xc040b340, 9); MD5STEP(F2, c, d, a, b, in[11] + 0x265e5a51, 14); MD5STEP(F2, b, c, d, a, in[0] + 0xe9b6c7aa, 20); MD5STEP(F2, a, b, c, d, in[5] + 0xd62f105d, 5); MD5STEP(F2, d, a, b, c, in[10] + 0x02441453, 9); MD5STEP(F2, c, d, a, b, in[15] + 0xd8a1e681, 14); MD5STEP(F2, b, c, d, a, in[4] + 0xe7d3fbc8, 20); MD5STEP(F2, a, b, c, d, in[9] + 0x21e1cde6, 5); MD5STEP(F2, d, a, b, c, in[14] + 0xc33707d6, 9); MD5STEP(F2, c, d, a, b, in[3] + 0xf4d50d87, 14); MD5STEP(F2, b, c, d, a, in[8] + 0x455a14ed, 20); MD5STEP(F2, a, b, c, d, in[13] + 0xa9e3e905, 5); MD5STEP(F2, d, a, b, c, in[2] + 0xfcefa3f8, 9); MD5STEP(F2, c, d, a, b, in[7] + 0x676f02d9, 14); MD5STEP(F2, b, c, d, a, in[12] + 0x8d2a4c8a, 20); MD5STEP(F3, a, b, c, d, in[5] + 0xfffa3942, 4); MD5STEP(F3, d, a, b, c, in[8] + 0x8771f681, 11); MD5STEP(F3, c, d, a, b, in[11] + 0x6d9d6122, 16); MD5STEP(F3, b, c, d, a, in[14] + 0xfde5380c, 23); MD5STEP(F3, a, b, c, d, in[1] + 0xa4beea44, 4); MD5STEP(F3, d, a, b, c, in[4] + 0x4bdecfa9, 11); MD5STEP(F3, c, d, a, b, in[7] + 0xf6bb4b60, 16); MD5STEP(F3, b, c, d, a, in[10] + 0xbebfbc70, 23); MD5STEP(F3, a, b, c, d, in[13] + 0x289b7ec6, 4); MD5STEP(F3, d, a, b, c, in[0] + 0xeaa127fa, 11); MD5STEP(F3, c, d, a, b, in[3] + 0xd4ef3085, 16); MD5STEP(F3, b, c, d, a, in[6] + 0x04881d05, 23); MD5STEP(F3, a, b, c, d, in[9] + 0xd9d4d039, 4); MD5STEP(F3, d, a, b, c, in[12] + 0xe6db99e5, 11); MD5STEP(F3, c, d, a, b, in[15] + 0x1fa27cf8, 16); MD5STEP(F3, b, c, d, a, in[2] + 0xc4ac5665, 23); MD5STEP(F4, a, b, c, d, in[0] + 0xf4292244, 6); MD5STEP(F4, d, a, b, c, in[7] + 0x432aff97, 10); MD5STEP(F4, c, d, a, b, in[14] + 0xab9423a7, 15); MD5STEP(F4, b, c, d, a, in[5] + 0xfc93a039, 21); MD5STEP(F4, a, b, c, d, in[12] + 0x655b59c3, 6); MD5STEP(F4, d, a, b, c, in[3] + 0x8f0ccc92, 10); MD5STEP(F4, c, d, a, b, in[10] + 0xffeff47d, 15); MD5STEP(F4, b, c, d, a, in[1] + 0x85845dd1, 21); MD5STEP(F4, a, b, c, d, in[8] + 0x6fa87e4f, 6); MD5STEP(F4, d, a, b, c, in[15] + 0xfe2ce6e0, 10); MD5STEP(F4, c, d, a, b, in[6] + 0xa3014314, 15); MD5STEP(F4, b, c, d, a, in[13] + 0x4e0811a1, 21); MD5STEP(F4, a, b, c, d, in[4] + 0xf7537e82, 6); MD5STEP(F4, d, a, b, c, in[11] + 0xbd3af235, 10); MD5STEP(F4, c, d, a, b, in[2] + 0x2ad7d2bb, 15); MD5STEP(F4, b, c, d, a, in[9] + 0xeb86d391, 21); buf[0] += a; buf[1] += b; buf[2] += c; buf[3] += d; } bird-1.4.0/lib/ipv4.c0000644000103200001440000000341412010156274013214 0ustar feelausers/* * BIRD Library -- IPv4 Address Manipulation Functions * * (c) 1998 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include "nest/bird.h" #include "lib/ip.h" #include "lib/string.h" int ipv4_classify(u32 a) { u32 b = a >> 24U; if (b && b <= 0xdf) { if (b == 0x7f) return IADDR_HOST | SCOPE_HOST; else if (b == 0x0a || (a & 0xffff0000) == 0xc0a80000 || (a & 0xfff00000) == 0xac100000) return IADDR_HOST | SCOPE_SITE; else return IADDR_HOST | SCOPE_UNIVERSE; } if (b >= 0xe0 && b <= 0xef) return IADDR_MULTICAST | SCOPE_UNIVERSE; if (a == 0xffffffff) return IADDR_BROADCAST | SCOPE_LINK; return IADDR_INVALID; } char * ip_ntop(ip_addr a, char *b) { u32 x = _I(a); return b + bsprintf(b, "%d.%d.%d.%d", ((x >> 24) & 0xff), ((x >> 16) & 0xff), ((x >> 8) & 0xff), (x & 0xff)); } char * ip_ntox(ip_addr a, char *b) { return b + bsprintf(b, "%08x", _I(a)); } u32 ipv4_class_mask(u32 a) { u32 m; if (a < 0x80000000) m = 0xff000000; else if (a < 0xc0000000) m = 0xffff0000; else m = 0xffffff00; while (a & ~m) m |= m >> 1; return m; } int ip_pton(char *a, ip_addr *o) { int i; unsigned long int l; u32 ia = 0; i=4; while (i--) { char *d, *c = strchr(a, '.'); if (!c != !i) return 0; l = strtoul(a, &d, 10); if (d != c && *d || l > 255) return 0; ia = (ia << 8) | l; if (c) c++; a = c; } *o = ipa_from_u32(ia); return 1; } byte * ipv4_skip_header(byte *pkt, int *len) { int l = *len; int q; if (l < 20 || (*pkt & 0xf0) != 0x40) return NULL; q = (*pkt & 0x0f) * 4; if (q > l) return NULL; *len -= q; return pkt + q; } bird-1.4.0/lib/event.h0000644000103200001440000000116611606273733013474 0ustar feelausers/* * BIRD Library -- Event Processing * * (c) 1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_EVENT_H_ #define _BIRD_EVENT_H_ #include "lib/resource.h" typedef struct event { resource r; void (*hook)(void *); void *data; node n; /* Internal link */ } event; typedef list event_list; extern event_list global_event_list; event *ev_new(pool *); void ev_run(event *); #define ev_init_list(el) init_list(el) void ev_enqueue(event_list *, event *); void ev_schedule(event *); void ev_postpone(event *); int ev_run_list(event_list *); #endif bird-1.4.0/lib/lists.c0000644000103200001440000000753012244117701013474 0ustar feelausers/* * BIRD Library -- Linked Lists * * (c) 1998 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Linked lists * * The BIRD library provides a set of functions for operating on linked * lists. The lists are internally represented as standard doubly linked * lists with synthetic head and tail which makes all the basic operations * run in constant time and contain no extra end-of-list checks. Each list * is described by a &list structure, nodes can have any format as long * as they start with a &node structure. If you want your nodes to belong * to multiple lists at once, you can embed multiple &node structures in them * and use the SKIP_BACK() macro to calculate a pointer to the start of the * structure from a &node pointer, but beware of obscurity. * * There also exist safe linked lists (&slist, &snode and all functions * being prefixed with |s_|) which support asynchronous walking very * similar to that used in the &fib structure. */ #define _BIRD_LISTS_C_ #include "nest/bird.h" #include "lib/lists.h" /** * add_tail - append a node to a list * @l: linked list * @n: list node * * add_tail() takes a node @n and appends it at the end of the list @l. */ LIST_INLINE void add_tail(list *l, node *n) { node *z = l->tail; n->next = (node *) &l->null; n->prev = z; z->next = n; l->tail = n; } /** * add_head - prepend a node to a list * @l: linked list * @n: list node * * add_head() takes a node @n and prepends it at the start of the list @l. */ LIST_INLINE void add_head(list *l, node *n) { node *z = l->head; n->next = z; n->prev = (node *) &l->head; z->prev = n; l->head = n; } /** * insert_node - insert a node to a list * @n: a new list node * @after: a node of a list * * Inserts a node @n to a linked list after an already inserted * node @after. */ LIST_INLINE void insert_node(node *n, node *after) { node *z = after->next; n->next = z; n->prev = after; after->next = n; z->prev = n; } /** * rem_node - remove a node from a list * @n: node to be removed * * Removes a node @n from the list it's linked in. */ LIST_INLINE void rem_node(node *n) { node *z = n->prev; node *x = n->next; z->next = x; x->prev = z; } /** * rem2_node - remove a node from a list, with cleanup * @n: node to be removed * * Removes a node @n from the list it's linked in and resets its pointers to NULL. * Useful if you want to distinguish between linked and unlinked nodes. */ LIST_INLINE void rem2_node(node *n) { node *z = n->prev; node *x = n->next; z->next = x; x->prev = z; n->next = NULL; n->prev = NULL; } /** * replace_node - replace a node in a list with another one * @old: node to be removed * @new: node to be inserted * * Replaces node @old in the list it's linked in with node @new. Node * @old may be a copy of the original node, which is not accessed * through the list. The function could be called with @old == @new, * which just fixes neighbors' pointers in the case that the node * was reallocated. */ LIST_INLINE void replace_node(node *old, node *new) { old->next->prev = new; old->prev->next = new; new->prev = old->prev; new->next = old->next; } /** * init_list - create an empty list * @l: list * * init_list() takes a &list structure and initializes its * fields, so that it represents an empty list. */ LIST_INLINE void init_list(list *l) { l->head = (node *) &l->null; l->null = NULL; l->tail = (node *) &l->head; } /** * add_tail_list - concatenate two lists * @to: destination list * @l: source list * * This function appends all elements of the list @l to * the list @to in constant time. */ LIST_INLINE void add_tail_list(list *to, list *l) { node *p = to->tail; node *q = l->head; p->next = q; q->prev = p; q = l->tail; q->next = (node *) &to->null; to->tail = q; } bird-1.4.0/lib/md5.h0000644000103200001440000000057011606273733013036 0ustar feelausers#ifndef MD5_H #define MD5_H struct MD5Context { u32 buf[4]; u32 bits[2]; unsigned char in[64]; }; void MD5Init(struct MD5Context *context); void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len); void MD5Final(unsigned char digest[16], struct MD5Context *context); void MD5Transform(u32 buf[4], u32 const in[16]); #endif /* !MD5_H */ bird-1.4.0/lib/patmatch.c0000644000103200001440000000266611606273733014155 0ustar feelausers/* * BIRD Library -- Generic Shell-Like Pattern Matching (currently only '?' and '*') * * (c) 1998--2000 Martin Mares */ #include "nest/bird.h" #include "lib/string.h" #ifndef MATCH_FUNC_NAME #define MATCH_FUNC_NAME patmatch #endif #ifndef Convert #define Convert(x) x #endif int MATCH_FUNC_NAME(byte *p, byte *s) { while (*p) { if (*p == '?' && *s) p++, s++; else if (*p == '*') { int z = p[1]; if (!z) return 1; if (z == '\\' && p[2]) z = p[2]; z = Convert(z); for(;;) { while (*s && Convert(*s) != z) s++; if (!*s) return 0; if (MATCH_FUNC_NAME(p+1, s)) return 1; s++; } } else { if (*p == '\\' && p[1]) p++; if (Convert(*p++) != Convert(*s++)) return 0; } } return !*s; } #if 0 /** * patmatch - match shell-like patterns * @p: pattern * @s: string * * patmatch() returns whether given string @s matches the given shell-like * pattern @p. The patterns consist of characters (which are matched literally), * question marks which match any single character, asterisks which match any * (possibly empty) string of characters and backslashes which are used to * escape any special characters and force them to be treated literally. * * The matching process is not optimized with respect to time, so please * avoid using this function for complex patterns. */ int patmatch(byte *p, byte *s) { DUMMY; } #endif bird-1.4.0/lib/string.h0000644000103200001440000000125712244117701013651 0ustar feelausers/* * BIRD Library -- String Functions * * (c) 1998 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_STRING_H_ #define _BIRD_STRING_H_ #include #include int bsprintf(char *str, const char *fmt, ...); int bvsprintf(char *str, const char *fmt, va_list args); int bsnprintf(char *str, int size, const char *fmt, ...); int bvsnprintf(char *str, int size, const char *fmt, va_list args); int buffer_vprint(buffer *buf, const char *fmt, va_list args); int buffer_print(buffer *buf, const char *fmt, ...); void buffer_puts(buffer *buf, const char *str); int patmatch(byte *pat, byte *str); #endif bird-1.4.0/lib/slists.h0000644000103200001440000000516711606273733013701 0ustar feelausers/* * BIRD Library -- Safe Linked Lists * * (c) 1998 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_SLISTS_H_ #define _BIRD_SLISTS_H_ /* * These linked lists work in a way similar to standard lists defined * in lib/lists.h, but in addition to all usual list functions they * provide fast deletion/insertion/everything-safe asynchronous * walking. * * Example: * slist l; * siterator i; * snode *n; * * s_init(&i, &l); // Initialize iteration * ... * n = s_get(&i); // Some time later, fetch present * // value of the iterator and unlink it * // from the list. * while (n->next) { * ... * if (decided_to_stop) { * s_put(&i, n); // Store current position (maybe even * // that we stay at list end) * return; // and return * } * ... * } * // After finishing, don't link the iterator back */ typedef struct snode { struct snode *next, *prev; struct siterator *readers; } snode; typedef struct slist { /* In fact two overlayed snodes */ struct snode *head, *null, *tail; struct siterator *tail_readers; } slist; typedef struct siterator { /* * Caution: Layout of this structure depends hard on layout of the * snode. Our `next' must be at position of snode `readers' * field, our `null' must be at position of `prev' and it must * contain NULL in order to distinguish between siterator * and snode (snodes with NULL `prev' field never carry * iterators). You are not expected to understand this. */ struct siterator *prev, *null, *next; /* * For recently merged nodes this can be NULL, but then it's NULL * for all successors as well. This is done to speed up iterator * merging when there are lots of deletions. */ snode *node; } siterator; #define SNODE (snode *) #define SHEAD(list) ((void *)((list).head)) #define STAIL(list) ((void *)((list).tail)) #define WALK_SLIST(n,list) for(n=SHEAD(list);(SNODE (n))->next; \ n=(void *)((SNODE (n))->next)) #define WALK_SLIST_DELSAFE(n,nxt,list) \ for(n=SHEAD(list); nxt=(void *)((SNODE (n))->next); n=(void *) nxt) #define EMPTY_SLIST(list) (!(list).head->next) void s_add_tail(slist *, snode *); void s_add_head(slist *, snode *); void s_rem_node(snode *); void s_add_tail_list(slist *, slist *); void s_init_list(slist *); void s_insert_node(snode *, snode *); snode *s_get(siterator *); void s_put(siterator *, snode *n); static inline void s_init(siterator *i, slist *l) { s_put(i, SHEAD(*l)); } static inline int s_is_used(siterator *i) { return (i->prev != NULL); } #endif bird-1.4.0/lib/birdlib.h0000644000103200001440000000520612244117701013750 0ustar feelausers/* * BIRD Library * * (c) 1998--2004 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_BIRDLIB_H_ #define _BIRD_BIRDLIB_H_ #include "timer.h" #include "alloca.h" /* Ugly structure offset handling macros */ #define OFFSETOF(s, i) ((size_t) &((s *)0)->i) #define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i))) #define BIRD_ALIGN(s, a) (((s)+a-1)&~(a-1)) /* Utility macros */ #define MIN_(a,b) (((a)<(b))?(a):(b)) #define MAX_(a,b) (((a)>(b))?(a):(b)) #ifndef PARSER #undef MIN #undef MAX #define MIN(a,b) MIN_(a,b) #define MAX(a,b) MAX_(a,b) #endif #define ABS(a) ((a)>=0 ? (a) : -(a)) #define ARRAY_SIZE(a) (sizeof(a)/sizeof(*(a))) #ifndef NULL #define NULL ((void *) 0) #endif #ifndef IPV6 #define IP_VERSION 4 #else #define IP_VERSION 6 #endif /* Macros for gcc attributes */ #define NORET __attribute__((noreturn)) #define UNUSED __attribute__((unused)) /* Microsecond time */ typedef s64 btime; #define S_ *1000000 #define MS_ *1000 #define US_ *1 #define TO_S /1000000 #define TO_MS /1000 #define TO_US /1 #ifndef PARSER #define S S_ #define MS MS_ #define US US_ #endif /* Logging and dying */ typedef struct buffer { byte *start; byte *pos; byte *end; } buffer; #define STACK_BUFFER_INIT(buf,size) \ do { \ buf.start = alloca(size); \ buf.pos = buf.start; \ buf.end = buf.start + size; \ } while(0) #define LOG_BUFFER_INIT(buf) \ STACK_BUFFER_INIT(buf, LOG_BUFFER_SIZE) #define LOG_BUFFER_SIZE 1024 struct rate_limit { bird_clock_t timestamp; int count; }; #define log log_msg void log_commit(int class, buffer *buf); void log_msg(char *msg, ...); void log_rl(struct rate_limit *rl, char *msg, ...); void die(char *msg, ...) NORET; void bug(char *msg, ...) NORET; #define L_DEBUG "\001" /* Debugging messages */ #define L_TRACE "\002" /* Protocol tracing */ #define L_INFO "\003" /* Informational messages */ #define L_REMOTE "\004" /* Remote protocol errors */ #define L_WARN "\005" /* Local warnings */ #define L_ERR "\006" /* Local errors */ #define L_AUTH "\007" /* Authorization failed etc. */ #define L_FATAL "\010" /* Fatal errors */ #define L_BUG "\011" /* BIRD bugs */ void debug(char *msg, ...); /* Printf to debug output */ /* Debugging */ #if defined(LOCAL_DEBUG) || defined(GLOBAL_DEBUG) #define DBG(x, y...) debug(x, ##y) #else #define DBG(x, y...) do { } while(0) #endif #ifdef DEBUGGING #define ASSERT(x) do { if (!(x)) bug("Assertion `%s' failed at %s:%d", #x, __FILE__, __LINE__); } while(0) #else #define ASSERT(x) do { } while(0) #endif /* Pseudorandom numbers */ u32 random_u32(void); #endif bird-1.4.0/lib/ipv6.c0000644000103200001440000001615411644522607013234 0ustar feelausers/* * BIRD Library -- IPv6 Address Manipulation Functions * * (c) 1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include "nest/bird.h" #include "lib/ip.h" #include "lib/bitops.h" #include "lib/endian.h" #include "lib/string.h" /* * See RFC 2373 for explanation of IPv6 addressing issues. */ ip_addr ipv6_mkmask(unsigned n) { ip_addr a; int i; for(i=0; i<4; i++) { if (!n) a.addr[i] = 0; else if (n >= 32) { a.addr[i] = ~0; n -= 32; } else { a.addr[i] = u32_mkmask(n); n = 0; } } return a; } unsigned ipv6_mklen(ip_addr *a) { int i, j, n; for(i=0, n=0; i<4; i++, n+=32) if (a->addr[i] != ~0U) { j = u32_masklen(a->addr[i]); if (j < 0) return j; n += j; while (++i < 4) if (a->addr[i]) return -1; break; } return n; } int ipv6_classify(ip_addr *a) { u32 x = a->addr[0]; if ((x & 0xe0000000) == 0x20000000) /* 2000::/3 Aggregatable Global Unicast Address */ return IADDR_HOST | SCOPE_UNIVERSE; if ((x & 0xffc00000) == 0xfe800000) /* fe80::/10 Link-Local Address */ return IADDR_HOST | SCOPE_LINK; if ((x & 0xffc00000) == 0xfec00000) /* fec0::/10 Site-Local Address */ return IADDR_HOST | SCOPE_SITE; if ((x & 0xfe000000) == 0xfc000000) /* fc00::/7 Unique Local Unicast Address (RFC 4193) */ return IADDR_HOST | SCOPE_SITE; if ((x & 0xff000000) == 0xff000000) /* ff00::/8 Multicast Address */ { unsigned int scope = (x >> 16) & 0x0f; switch (scope) { case 1: return IADDR_MULTICAST | SCOPE_HOST; case 2: return IADDR_MULTICAST | SCOPE_LINK; case 5: return IADDR_MULTICAST | SCOPE_SITE; case 8: return IADDR_MULTICAST | SCOPE_ORGANIZATION; case 14: return IADDR_MULTICAST | SCOPE_UNIVERSE; default: return IADDR_MULTICAST | SCOPE_UNDEFINED; } } if (!x && !a->addr[1] && !a->addr[2]) { u32 y = a->addr[3]; if (y == 1) return IADDR_HOST | SCOPE_HOST; /* Loopback address */ /* IPv4 compatible addresses */ if (y >= 0x7f000000 && y < 0x80000000) return IADDR_HOST | SCOPE_HOST; if ((y & 0xff000000) == 0x0a000000 || (y & 0xffff0000) == 0xc0a80000 || (y & 0xfff00000) == 0xac100000) return IADDR_HOST | SCOPE_SITE; if (y >= 0x01000000 && y < 0xe0000000) return IADDR_HOST | SCOPE_UNIVERSE; } return IADDR_HOST | SCOPE_UNDEFINED; } void ipv6_hton(ip_addr *a) { int i; for(i=0; i<4; i++) a->addr[i] = htonl(a->addr[i]); } void ipv6_ntoh(ip_addr *a) { int i; for(i=0; i<4; i++) a->addr[i] = ntohl(a->addr[i]); } int ipv6_compare(ip_addr X, ip_addr Y) { int i; ip_addr *x = &X; ip_addr *y = &Y; for(i=0; i<4; i++) if (x->addr[i] > y->addr[i]) return 1; else if (x->addr[i] < y->addr[i]) return -1; return 0; } /* * Conversion of IPv6 address to presentation format and vice versa. * Heavily inspired by routines written by Paul Vixie for the BIND project * and of course by RFC 2373. */ char * ip_ntop(ip_addr a, char *b) { u16 words[8]; int bestpos, bestlen, curpos, curlen, i; /* First of all, preprocess the address and find the longest run of zeros */ bestlen = bestpos = curpos = curlen = 0; for(i=0; i<8; i++) { u32 x = a.addr[i/2]; words[i] = ((i%2) ? x : (x >> 16)) & 0xffff; if (words[i]) curlen = 0; else { if (!curlen) curpos = i; curlen++; if (curlen > bestlen) { bestpos = curpos; bestlen = curlen; } } } if (bestlen < 2) bestpos = -1; /* Is it an encapsulated IPv4 address? */ if (!bestpos && (bestlen == 5 && a.addr[2] == 0xffff || bestlen == 6)) { u32 x = a.addr[3]; b += bsprintf(b, "::%s%d.%d.%d.%d", a.addr[2] ? "ffff:" : "", ((x >> 24) & 0xff), ((x >> 16) & 0xff), ((x >> 8) & 0xff), (x & 0xff)); return b; } /* Normal IPv6 formatting, compress the largest sequence of zeros */ for(i=0; i<8; i++) { if (i == bestpos) { i += bestlen - 1; *b++ = ':'; if (i == 7) *b++ = ':'; } else { if (i) *b++ = ':'; b += bsprintf(b, "%x", words[i]); } } *b = 0; return b; } char * ip_ntox(ip_addr a, char *b) { int i; for(i=0; i<4; i++) { if (i) *b++ = '.'; b += bsprintf(b, "%08x", a.addr[i]); } return b; } int ipv4_pton_u32(char *a, u32 *o) { int i; unsigned long int l; u32 ia = 0; i=4; while (i--) { char *d, *c = strchr(a, '.'); if (!c != !i) return 0; l = strtoul(a, &d, 10); if (d != c && *d || l > 255) return 0; ia = (ia << 8) | l; if (c) c++; a = c; } *o = ia; return 1; } int ip_pton(char *a, ip_addr *o) { u16 words[8]; int i, j, k, l, hfil; char *start; if (a[0] == ':') /* Leading :: */ { if (a[1] != ':') return 0; a++; } hfil = -1; i = 0; while (*a) { if (*a == ':') /* :: */ { if (hfil >= 0) return 0; hfil = i; a++; continue; } j = 0; l = 0; start = a; for(;;) { if (*a >= '0' && *a <= '9') k = *a++ - '0'; else if (*a >= 'A' && *a <= 'F') k = *a++ - 'A' + 10; else if (*a >= 'a' && *a <= 'f') k = *a++ - 'a' + 10; else break; j = (j << 4) + k; if (j >= 0x10000 || ++l > 4) return 0; } if (*a == ':' && a[1]) a++; else if (*a == '.' && (i == 6 || i < 6 && hfil >= 0)) { /* Embedded IPv4 address */ u32 x; if (!ipv4_pton_u32(start, &x)) return 0; words[i++] = x >> 16; words[i++] = x; break; } else if (*a) return 0; if (i >= 8) return 0; words[i++] = j; } /* Replace :: with an appropriate number of zeros */ if (hfil >= 0) { j = 8 - i; for(i=7; i-j >= hfil; i--) words[i] = words[i-j]; for(; i>=hfil; i--) words[i] = 0; } /* Convert the address to ip_addr format */ for(i=0; i<4; i++) o->addr[i] = (words[2*i] << 16) | words[2*i+1]; return 1; } void ipv6_absolutize(ip_addr *a, ip_addr *ifa) { if ((a->addr[0] & 0xffc00000) == 0xfe800000 && /* a is link-scope */ ((ifa->addr[0] & 0xe0000000) == 0x20000000 | /* ifa is AGU ... */ (ifa->addr[0] & 0xffc00000) == 0xfec00000)) /* ... or site-scope */ { a->addr[0] = ifa->addr[0]; /* Copy the prefix, leave interface ID */ a->addr[1] = ifa->addr[1]; } } #ifdef TEST #include "bitops.c" static void test(char *x) { ip_addr a; char c[STD_ADDRESS_P_LENGTH+1]; printf("%-40s ", x); if (!ip_pton(x, &a)) { puts("BAD"); return; } ip_ntop(a, c); printf("%-40s %04x\n", c, ipv6_classify(&a)); } int main(void) { puts("Positive tests:"); test("1:2:3:4:5:6:7:8"); test("dead:beef:DEAD:BEEF::f00d"); test("::"); test("::1"); test("1::"); test("::1.234.5.6"); test("::ffff:1.234.5.6"); test("::fffe:1.234.5.6"); test("1:2:3:4:5:6:7::8"); test("2080::8:800:200c:417a"); test("ff01::101"); puts("Negative tests:"); test(":::"); test("1:2:3:4:5:6:7:8:"); test("1::2::3"); test("::12345"); test("::1.2.3.4:5"); test(":1:2:3:4:5:6:7:8"); test("g:1:2:3:4:5:6:7"); return 0; } #endif bird-1.4.0/lib/heap.h0000644000103200001440000001156412244117701013262 0ustar feelausers/* * UCW Library -- Universal Heap Macros * * (c) 2001 Martin Mares * (c) 2005 Tomas Valla * * This software may be freely distributed and used according to the terms * of the GNU Lesser General Public License. */ /** * [[intro]] * Introduction * ------------ * * Binary heap is a simple data structure, which for example supports efficient insertions, deletions * and access to the minimal inserted item. We define several macros for such operations. * Note that because of simplicity of heaps, we have decided to define direct macros instead * of a <> as for several other data structures in the Libucw. * * A heap is represented by a number of elements and by an array of values. Beware that we * index this array from one, not from zero as do the standard C arrays. * * Most macros use these parameters: * * - @type - the type of elements * - @num - a variable (signed or unsigned integer) with the number of elements * - @heap - a C array of type @type; the heap is stored in `heap[1] .. heap[num]`; `heap[0]` is unused * - @less - a callback to compare two element values; `less(x, y)` shall return a non-zero value iff @x is lower than @y * - @swap - a callback to swap two array elements; `swap(heap, i, j, t)` must swap `heap[i]` with `heap[j]` with possible help of temporary variable @t (type @type). * * A valid heap must follow these rules: * * - `num >= 0` * - `heap[i] >= heap[i / 2]` for each `i` in `[2, num]` * * The first element `heap[1]` is always lower or equal to all other elements. * * [[macros]] * Macros * ------ */ /* For internal usage. */ #define HEAP_BUBBLE_DOWN_J(heap,num,less,swap) \ for (;;) \ { \ _l = 2*_j; \ if (_l > num) \ break; \ if (less(heap[_j],heap[_l]) && (_l == num || less(heap[_j],heap[_l+1]))) \ break; \ if (_l != num && less(heap[_l+1],heap[_l])) \ _l++; \ swap(heap,_j,_l,x); \ _j = _l; \ } /* For internal usage. */ #define HEAP_BUBBLE_UP_J(heap,num,less,swap) \ while (_j > 1) \ { \ _u = _j/2; \ if (less(heap[_u], heap[_j])) \ break; \ swap(heap,_u,_j,x); \ _j = _u; \ } /** * Shuffle the unordered array @heap of @num elements to become a valid heap. The time complexity is linear. **/ #define HEAP_INIT(heap,num,type,less,swap) \ do { \ uint _i = num; \ uint _j, _l; \ type x; \ while (_i >= 1) \ { \ _j = _i; \ HEAP_BUBBLE_DOWN_J(heap,num,less,swap) \ _i--; \ } \ } while(0) /** * Delete the minimum element `heap[1]` in `O(log(n))` time. * The removed value is moved just after the resulting heap (`heap[num + 1]`). **/ #define HEAP_DELMIN(heap,num,type,less,swap) \ do { \ uint _j, _l; \ type x; \ swap(heap,1,num,x); \ num--; \ _j = 1; \ HEAP_BUBBLE_DOWN_J(heap,num,less,swap); \ } while(0) /** * Insert `heap[num]` in `O(log(n))` time. The value of @num must be increased before. **/ #define HEAP_INSERT(heap,num,type,less,swap) \ do { \ uint _j, _u; \ type x; \ _j = num; \ HEAP_BUBBLE_UP_J(heap,num,less,swap); \ } while(0) /** * If you need to increase the value of `heap[pos]`, just do it and then call this macro to rebuild the heap. * Only `heap[pos]` can be changed, the rest of the array must form a valid heap. * The time complexity is `O(log(n))`. **/ #define HEAP_INCREASE(heap,num,type,less,swap,pos) \ do { \ uint _j, _l; \ type x; \ _j = pos; \ HEAP_BUBBLE_DOWN_J(heap,num,less,swap); \ } while(0) /** * If you need to decrease the value of `heap[pos]`, just do it and then call this macro to rebuild the heap. * Only `heap[pos]` can be changed, the rest of the array must form a valid heap. * The time complexity is `O(log(n))`. **/ #define HEAP_DECREASE(heap,num,type,less,swap,pos) \ do { \ uint _j, _u; \ type x; \ _j = pos; \ HEAP_BUBBLE_UP_J(heap,num,less,swap); \ } while(0) /** * Delete `heap[pos]` in `O(log(n))` time. **/ #define HEAP_DELETE(heap,num,type,less,swap,pos) \ do { \ uint _j, _l, _u; \ type x; \ _j = pos; \ swap(heap,_j,num,x); \ num--; \ if (less(heap[_j], heap[num+1])) \ HEAP_BUBBLE_UP_J(heap,num,less,swap) \ else \ HEAP_BUBBLE_DOWN_J(heap,num,less,swap); \ } while(0) /** * Default swapping macro. **/ #define HEAP_SWAP(heap,a,b,t) (t=heap[a], heap[a]=heap[b], heap[b]=t) bird-1.4.0/lib/slab.c0000644000103200001440000001660511703031107013254 0ustar feelausers/* * BIRD Resource Manager -- A SLAB-like Memory Allocator * * Heavily inspired by the original SLAB paper by Jeff Bonwick. * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Slabs * * Slabs are collections of memory blocks of a fixed size. * They support very fast allocation and freeing of such blocks, prevent memory * fragmentation and optimize L2 cache usage. Slabs have been invented by Jeff Bonwick * and published in USENIX proceedings as `The Slab Allocator: An Object-Caching Kernel * Memory Allocator'. Our implementation follows this article except that we don't use * constructors and destructors. * * When the |DEBUGGING| switch is turned on, we automatically fill all * newly allocated and freed blocks with a special pattern to make detection * of use of uninitialized or already freed memory easier. * * Example: Nodes of a FIB are allocated from a per-FIB Slab. */ #include #include #include "nest/bird.h" #include "lib/resource.h" #include "lib/string.h" #undef FAKE_SLAB /* Turn on if you want to debug memory allocations */ #ifdef DEBUGGING #define POISON /* Poison all regions after they are freed */ #endif static void slab_free(resource *r); static void slab_dump(resource *r); static resource *slab_lookup(resource *r, unsigned long addr); static size_t slab_memsize(resource *r); #ifdef FAKE_SLAB /* * Fake version used for debugging. */ struct slab { resource r; unsigned size; list objs; }; static struct resclass sl_class = { "FakeSlab", sizeof(struct slab), slab_free, slab_dump, NULL, slab_memsize }; struct sl_obj { node n; uintptr_t data_align[0]; byte data[0]; }; slab * sl_new(pool *p, unsigned size) { slab *s = ralloc(p, &sl_class); s->size = size; init_list(&s->objs); return s; } void * sl_alloc(slab *s) { struct sl_obj *o = xmalloc(sizeof(struct sl_obj) + s->size); add_tail(&s->objs, &o->n); return o->data; } void sl_free(slab *s, void *oo) { struct sl_obj *o = SKIP_BACK(struct sl_obj, data, oo); rem_node(&o->n); xfree(o); } static void slab_free(resource *r) { slab *s = (slab *) r; struct sl_obj *o, *p; for(o = HEAD(s->objs); p = (struct sl_obj *) o->n.next; o = p) xfree(o); } static void slab_dump(resource *r) { slab *s = (slab *) r; int cnt = 0; struct sl_obj *o; WALK_LIST(o, s->objs) cnt++; debug("(%d objects per %d bytes)\n", cnt, s->size); } static size_t slab_memsize(resource *r) { slab *s = (slab *) r; int cnt = 0; struct sl_obj *o; WALK_LIST(o, s->objs) cnt++; return ALLOC_OVERHEAD + sizeof(struct slab) + cnt * (ALLOC_OVERHEAD + s->size); } #else /* * Real efficient version. */ #define SLAB_SIZE 4096 #define MAX_EMPTY_HEADS 1 struct slab { resource r; unsigned obj_size, head_size, objs_per_slab, num_empty_heads, data_size; list empty_heads, partial_heads, full_heads; }; static struct resclass sl_class = { "Slab", sizeof(struct slab), slab_free, slab_dump, slab_lookup, slab_memsize }; struct sl_head { node n; struct sl_obj *first_free; int num_full; }; struct sl_obj { struct sl_head *slab; union { struct sl_obj *next; byte data[0]; } u; }; struct sl_alignment { /* Magic structure for testing of alignment */ byte data; int x[0]; }; /** * sl_new - create a new Slab * @p: resource pool * @size: block size * * This function creates a new Slab resource from which * objects of size @size can be allocated. */ slab * sl_new(pool *p, unsigned size) { slab *s = ralloc(p, &sl_class); unsigned int align = sizeof(struct sl_alignment); if (align < sizeof(int)) align = sizeof(int); s->data_size = size; size += OFFSETOF(struct sl_obj, u.data); if (size < sizeof(struct sl_obj)) size = sizeof(struct sl_obj); size = (size + align - 1) / align * align; s->obj_size = size; s->head_size = (sizeof(struct sl_head) + align - 1) / align * align; s->objs_per_slab = (SLAB_SIZE - s->head_size) / size; if (!s->objs_per_slab) bug("Slab: object too large"); s->num_empty_heads = 0; init_list(&s->empty_heads); init_list(&s->partial_heads); init_list(&s->full_heads); return s; } static struct sl_head * sl_new_head(slab *s) { struct sl_head *h = xmalloc(SLAB_SIZE); struct sl_obj *o = (struct sl_obj *)((byte *)h+s->head_size); struct sl_obj *no; unsigned int n = s->objs_per_slab; h->first_free = o; h->num_full = 0; while (n--) { o->slab = h; no = (struct sl_obj *)((char *) o+s->obj_size); o->u.next = n ? no : NULL; o = no; } return h; } /** * sl_alloc - allocate an object from Slab * @s: slab * * sl_alloc() allocates space for a single object from the * Slab and returns a pointer to the object. */ void * sl_alloc(slab *s) { struct sl_head *h; struct sl_obj *o; redo: h = HEAD(s->partial_heads); if (!h->n.next) goto no_partial; okay: o = h->first_free; if (!o) goto full_partial; h->first_free = o->u.next; h->num_full++; #ifdef POISON memset(o->u.data, 0xcd, s->data_size); #endif return o->u.data; full_partial: rem_node(&h->n); add_tail(&s->full_heads, &h->n); goto redo; no_partial: h = HEAD(s->empty_heads); if (h->n.next) { rem_node(&h->n); add_head(&s->partial_heads, &h->n); s->num_empty_heads--; goto okay; } h = sl_new_head(s); add_head(&s->partial_heads, &h->n); goto okay; } /** * sl_free - return a free object back to a Slab * @s: slab * @oo: object returned by sl_alloc() * * This function frees memory associated with the object @oo * and returns it back to the Slab @s. */ void sl_free(slab *s, void *oo) { struct sl_obj *o = SKIP_BACK(struct sl_obj, u.data, oo); struct sl_head *h = o->slab; #ifdef POISON memset(oo, 0xdb, s->data_size); #endif o->u.next = h->first_free; h->first_free = o; if (!--h->num_full) { rem_node(&h->n); if (s->num_empty_heads >= MAX_EMPTY_HEADS) xfree(h); else { add_head(&s->empty_heads, &h->n); s->num_empty_heads++; } } else if (!o->u.next) { rem_node(&h->n); add_head(&s->partial_heads, &h->n); } } static void slab_free(resource *r) { slab *s = (slab *) r; struct sl_head *h, *g; WALK_LIST_DELSAFE(h, g, s->empty_heads) xfree(h); WALK_LIST_DELSAFE(h, g, s->partial_heads) xfree(h); WALK_LIST_DELSAFE(h, g, s->full_heads) xfree(h); } static void slab_dump(resource *r) { slab *s = (slab *) r; int ec=0, pc=0, fc=0; struct sl_head *h; WALK_LIST(h, s->empty_heads) ec++; WALK_LIST(h, s->partial_heads) pc++; WALK_LIST(h, s->full_heads) fc++; debug("(%de+%dp+%df blocks per %d objs per %d bytes)\n", ec, pc, fc, s->objs_per_slab, s->obj_size); } static size_t slab_memsize(resource *r) { slab *s = (slab *) r; int heads = 0; struct sl_head *h; WALK_LIST(h, s->empty_heads) heads++; WALK_LIST(h, s->partial_heads) heads++; WALK_LIST(h, s->full_heads) heads++; return ALLOC_OVERHEAD + sizeof(struct slab) + heads * (ALLOC_OVERHEAD + SLAB_SIZE); } static resource * slab_lookup(resource *r, unsigned long a) { slab *s = (slab *) r; struct sl_head *h; WALK_LIST(h, s->partial_heads) if ((unsigned long) h < a && (unsigned long) h + SLAB_SIZE < a) return r; WALK_LIST(h, s->full_heads) if ((unsigned long) h < a && (unsigned long) h + SLAB_SIZE < a) return r; return NULL; } #endif bird-1.4.0/conf/0000755000103200001440000000000012244656136012356 5ustar feelausersbird-1.4.0/conf/gen_keywords.m40000644000103200001440000000334511606273733015324 0ustar feelausersm4_divert(-1)m4_dnl # # BIRD -- Generator of Configuration Keyword List # # (c) 1998--2000 Martin Mares # # Can be freely distributed and used under the terms of the GNU GPL. # # Common aliases m4_define(DNL, `m4_dnl') # Diversions used: # 1 keywords # Simple iterator m4_define(CF_itera, `m4_ifelse($#, 1, [[CF_iter($1)]], [[CF_iter($1)[[]]CF_itera(m4_shift($@))]])') m4_define(CF_iterate, `m4_define([[CF_iter]], m4_defn([[$1]]))CF_itera($2)') # We include all the headers m4_define(CF_HDR, `m4_divert(0)') m4_define(CF_DECLS, `m4_divert(-1)') m4_define(CF_DEFINES, `m4_divert(-1)') # Keywords are translated to C initializers m4_define(CF_handle_kw, `m4_divert(1){ "m4_translit($1,[[A-Z]],[[a-z]])", $1, NULL }, m4_divert(-1)') m4_define(CF_keywd, `m4_ifdef([[CF_tok_$1]],,[[m4_define([[CF_tok_$1]],1)CF_handle_kw($1)]])') m4_define(CF_KEYWORDS, `m4_define([[CF_toks]],[[]])CF_iterate([[CF_keywd]], [[$@]])m4_ifelse(CF_toks,,,%token[[]]CF_toks )DNL') # CLI commands generate keywords as well m4_define(CF_CLI, `CF_KEYWORDS(m4_translit($1, [[ ]], [[,]])) ') # Enums are translated to C initializers: use CF_ENUM(typename, prefix, values) m4_define(CF_enum, `m4_divert(1){ "CF_enum_prefix[[]]$1", -((CF_enum_type<<16) | CF_enum_prefix[[]]$1), NULL }, m4_divert(-1)') m4_define(CF_ENUM, `m4_define([[CF_enum_type]],$1)m4_define([[CF_enum_prefix]],$2)CF_iterate([[CF_enum]], [[m4_shift(m4_shift($@))]])DNL') # After all configuration templates end, we generate the m4_m4wrap(` m4_divert(0) static struct keyword keyword_list[] = { m4_undivert(1){ NULL, -1, NULL } }; ') # As we are processing C source, we must access all M4 primitives via # m4_* and also set different quoting convention: `[[' and ']]' m4_changequote([[,]]) bird-1.4.0/conf/Doc0000644000103200001440000000004411606273733013003 0ustar feelausersH Configuration S conf.c S cf-lex.l bird-1.4.0/conf/confbase.Y0000644000103200001440000000706312244117701014264 0ustar feelausers/* * BIRD -- Configuration Parser Top * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ CF_HDR #define PARSER 1 #include "nest/bird.h" #include "conf/conf.h" #include "lib/resource.h" #include "lib/socket.h" #include "lib/timer.h" #include "lib/string.h" #include "nest/protocol.h" #include "nest/iface.h" #include "nest/route.h" #include "nest/cli.h" #include "filter/filter.h" /* FIXME: Turn on YYERROR_VERBOSE and work around lots of bison bugs? */ CF_DEFINES static void check_u16(unsigned val) { if (val > 0xFFFF) cf_error("Value %d out of range (0-65535)", val); } CF_DECLS %union { int i; u32 i32; ip_addr a; struct symbol *s; char *t; struct rtable_config *r; struct f_inst *x; struct filter *f; struct f_tree *e; struct f_trie *trie; struct f_val v; struct f_path_mask *h; struct password_item *p; struct rt_show_data *ra; struct roa_show_data *ro; struct sym_show_data *sd; struct lsadb_show_data *ld; struct iface *iface; struct roa_table *rot; void *g; bird_clock_t time; struct prefix px; struct proto_spec ps; struct timeformat *tf; } %token END CLI_MARKER INVALID_TOKEN ELSECOL DDOT %token GEQ LEQ NEQ AND OR %token PO PC %token NUM ENUM %token RTRID %token IPA %token SYM %token TEXT %type ipa_scope %type expr bool pxlen %type expr_us %type ipa %type prefix prefix_or_ipa %type text_or_none %nonassoc PREFIX_DUMMY %left AND OR %nonassoc '=' '<' '>' '~' GEQ LEQ NEQ PO PC %left '+' '-' %left '*' '/' '%' %left '!' %nonassoc '.' CF_KEYWORDS(DEFINE, ON, OFF, YES, NO, S, MS, US) CF_GRAMMAR /* Basic config file structure */ config: conf_entries END { return 0; } | CLI_MARKER cli_cmd { return 0; } ; conf_entries: /* EMPTY */ | conf_entries conf ; CF_ADDTO(conf, ';') /* Constant expressions */ CF_ADDTO(conf, definition) definition: DEFINE SYM '=' term ';' { struct f_val *val = cfg_alloc(sizeof(struct f_val)); *val = f_eval($4, cfg_mem); if (val->type == T_RETURN) cf_error("Runtime error"); cf_define_symbol($2, SYM_CONSTANT | val->type, val); } ; expr: NUM | '(' term ')' { $$ = f_eval_int($2); } | SYM { if ($1->class != (SYM_CONSTANT | T_INT)) cf_error("Number expected"); $$ = SYM_VAL($1).i; } ; expr_us: expr S { $$ = (u32) $1 * 1000000; } | expr MS { $$ = (u32) $1 * 1000; } | expr US { $$ = (u32) $1 * 1; } ; /* expr_u16: expr { check_u16($1); $$ = $1; }; */ /* Switches */ bool: expr {$$ = !!$1; } | ON { $$ = 1; } | YES { $$ = 1; } | OFF { $$ = 0; } | NO { $$ = 0; } | /* Silence means agreement */ { $$ = 1; } ; /* Addresses, prefixes and netmasks */ ipa: IPA | SYM { if ($1->class != (SYM_CONSTANT | T_IP)) cf_error("IP address expected"); $$ = SYM_VAL($1).px.ip; } ; ipa_scope: /* empty */ { $$ = NULL; } | '%' SYM { $$ = if_get_by_name($2->name); } ; prefix: ipa pxlen { if (!ip_is_prefix($1, $2)) cf_error("Invalid prefix"); $$.addr = $1; $$.len = $2; } ; prefix_or_ipa: prefix | ipa { $$.addr = $1; $$.len = BITS_PER_IP_ADDRESS; } ; pxlen: '/' expr { if ($2 < 0 || $2 > BITS_PER_IP_ADDRESS) cf_error("Invalid prefix length %d", $2); $$ = $2; } | ':' ipa { $$ = ipa_mklen($2); if ($$ < 0) cf_error("Invalid netmask %I", $2); } ; datetime: TEXT { $$ = tm_parse_datetime($1); if (!$$) cf_error("Invalid date and time"); } ; text_or_none: TEXT { $$ = $1; } | { $$ = NULL; } ; CF_CODE CF_END bird-1.4.0/conf/conf.h0000644000103200001440000001230512175263574013460 0ustar feelausers/* * BIRD Internet Routing Daemon -- Configuration File Handling * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_CONF_H_ #define _BIRD_CONF_H_ #include "lib/resource.h" #include "lib/timer.h" /* Configuration structure */ struct config { pool *pool; /* Pool the configuration is stored in */ linpool *mem; /* Linear pool containing configuration data */ list protos; /* Configured protocol instances (struct proto_config) */ list tables; /* Configured routing tables (struct rtable_config) */ list roa_tables; /* Configured ROA tables (struct roa_table_config) */ list logfiles; /* Configured log fils (sysdep) */ int mrtdump_file; /* Configured MRTDump file (sysdep, fd in unix) */ char *syslog_name; /* Name used for syslog (NULL -> no syslog) */ struct rtable_config *master_rtc; /* Configuration of master routing table */ struct iface_patt *router_id_from; /* Configured list of router ID iface patterns */ u32 router_id; /* Our Router ID */ ip_addr listen_bgp_addr; /* Listening BGP socket should use this address */ unsigned listen_bgp_port; /* Listening BGP socket should use this port (0 is default) */ u32 listen_bgp_flags; /* Listening BGP socket should use these flags */ unsigned proto_default_debug; /* Default protocol debug mask */ unsigned proto_default_mrtdump; /* Default protocol mrtdump mask */ struct timeformat tf_route; /* Time format for 'show route' */ struct timeformat tf_proto; /* Time format for 'show protocol' */ struct timeformat tf_log; /* Time format for the logfile */ struct timeformat tf_base; /* Time format for other purposes */ int cli_debug; /* Tracing of CLI connections and commands */ char *err_msg; /* Parser error message */ int err_lino; /* Line containing error */ char *err_file_name; /* File name containing error */ char *file_name; /* Name of main configuration file */ int file_fd; /* File descriptor of main configuration file */ struct symbol **sym_hash; /* Lexer: symbol hash table */ struct symbol **sym_fallback; /* Lexer: fallback symbol hash table */ int obstacle_count; /* Number of items blocking freeing of this config */ int shutdown; /* This is a pseudo-config for daemon shutdown */ bird_clock_t load_time; /* When we've got this configuration */ }; /* Please don't use these variables in protocols. Use proto_config->global instead. */ extern struct config *config; /* Currently active configuration */ extern struct config *new_config; /* Configuration being parsed */ struct config *config_alloc(byte *name); int config_parse(struct config *); int cli_parse(struct config *); void config_free(struct config *); int config_commit(struct config *, int type, int timeout); int config_confirm(void); int config_undo(void); void config_init(void); void cf_error(char *msg, ...) NORET; void config_add_obstacle(struct config *); void config_del_obstacle(struct config *); void order_shutdown(void); #define RECONFIG_NONE 0 #define RECONFIG_HARD 1 #define RECONFIG_SOFT 2 #define RECONFIG_UNDO 3 #define CONF_DONE 0 #define CONF_PROGRESS 1 #define CONF_QUEUED 2 #define CONF_UNQUEUED 3 #define CONF_CONFIRM 4 #define CONF_SHUTDOWN -1 #define CONF_NOTHING -2 /* Pools */ extern linpool *cfg_mem; #define cfg_alloc(size) lp_alloc(cfg_mem, size) #define cfg_allocu(size) lp_allocu(cfg_mem, size) #define cfg_allocz(size) lp_allocz(cfg_mem, size) char *cfg_strdup(char *c); void cfg_copy_list(list *dest, list *src, unsigned node_size); /* Lexer */ extern int (*cf_read_hook)(byte *buf, unsigned int max, int fd); struct symbol { struct symbol *next; struct sym_scope *scope; int class; int aux; void *aux2; void *def; char name[1]; }; /* Remember to update cf_symbol_class_name() */ #define SYM_VOID 0 #define SYM_PROTO 1 #define SYM_TEMPLATE 2 #define SYM_FUNCTION 3 #define SYM_FILTER 4 #define SYM_TABLE 5 #define SYM_ROA 6 #define SYM_VARIABLE 0x100 /* 0x100-0x1ff are variable types */ #define SYM_CONSTANT 0x200 /* 0x200-0x2ff are variable types */ #define SYM_TYPE(s) (((struct f_val *) (s)->def)->type) #define SYM_VAL(s) (((struct f_val *) (s)->def)->val) struct include_file_stack { void *buffer; /* Internal lexer state */ char *file_name; /* File name */ int fd; /* File descriptor */ int lino; /* Current line num */ int depth; /* Include depth, 0 = cannot include */ struct include_file_stack *prev; /* Previous record in stack */ struct include_file_stack *up; /* Parent (who included this file) */ }; extern struct include_file_stack *ifs; int cf_lex(void); void cf_lex_init(int is_cli, struct config *c); struct symbol *cf_find_symbol(byte *c); struct symbol *cf_default_name(char *template, int *counter); struct symbol *cf_define_symbol(struct symbol *symbol, int type, void *def); void cf_push_scope(struct symbol *); void cf_pop_scope(void); struct symbol *cf_walk_symbols(struct config *cf, struct symbol *sym, int *pos); char *cf_symbol_class_name(struct symbol *sym); /* Parser */ int cf_parse(void); /* Sysdep hooks */ void sysdep_preconfig(struct config *); int sysdep_commit(struct config *, struct config *); void sysdep_shutdown_done(void); #endif bird-1.4.0/conf/gen_commands.m40000644000103200001440000000117712074014514015245 0ustar feelausersm4_divert(-1)m4_dnl # # BIRD -- Generator of CLI Command List # # (c) 2000 Martin Mares # # Can be freely distributed and used under the terms of the GNU GPL. # m4_define(CF_CLI, `m4_divert(0){ "m4_translit($1,A-Z,a-z)", "$3", "$4", 1 }, m4_divert(-1)') m4_define(CF_CLI_CMD, `m4_divert(0){ "m4_translit($1,A-Z,a-z)", "$2", "$3", 1 }, m4_divert(-1)') m4_define(CF_CLI_HELP, `m4_divert(0){ "m4_translit($1,A-Z,a-z)", "$2", "$3", 0 }, m4_divert(-1)') # As we are processing C source, we must access all M4 primitives via # m4_* and also set different quoting convention: `[[' and ']]' m4_changequote([[,]]) bird-1.4.0/conf/gen_parser.m40000644000103200001440000000405112074014514014732 0ustar feelausersm4_divert(-1)m4_dnl # # BIRD -- Generator of Configuration Grammar # # (c) 1998--1999 Martin Mares # # Can be freely distributed and used under the terms of the GNU GPL. # # Diversions used: # 1 includes # 2 types etc. # 3 rules # 4 C code # Common aliases m4_define(DNL, `m4_dnl') # Define macros for defining sections m4_define(CF_ZONE, `m4_divert($1)/* $2 from m4___file__ */') m4_define(CF_HDR, `CF_ZONE(1, Headers)') m4_define(CF_DEFINES, `CF_ZONE(1, Defines)') m4_define(CF_DECLS, `CF_ZONE(2, Declarations)') m4_define(CF_GRAMMAR, `CF_ZONE(3, Grammar)') m4_define(CF_CODE, `CF_ZONE(4, C Code)') m4_define(CF_END, `m4_divert(-1)') # Simple iterator m4_define(CF_itera, `m4_ifelse($#, 1, [[CF_iter($1)]], [[CF_iter($1)[[]]CF_itera(m4_shift($@))]])') m4_define(CF_iterate, `m4_define([[CF_iter]], m4_defn([[$1]]))CF_itera($2)') # Keywords act as untyped %token m4_define(CF_keywd, `m4_ifdef([[CF_tok_$1]],,[[m4_define([[CF_tok_$1]],1)m4_define([[CF_toks]],CF_toks $1)]])') m4_define(CF_KEYWORDS, `m4_define([[CF_toks]],[[]])CF_iterate([[CF_keywd]], [[$@]])m4_ifelse(CF_toks,,,%token[[]]CF_toks )DNL') # Dynamic syntax rules m4_define(CF_dyn_rules,) m4_define(CF_ADDTO, `m4_define([[CF_rule_$1]],m4_ifdef([[CF_rule_$1]],CF_rule_$1 | ,[[m4_define([[CF_dyn_rules]],CF_dyn_rules[[CF_RULE($1) ]])]])$2)DNL') # CLI commands m4_define(CF_CLI, `m4_define([[CF_cmd]], cmd_[[]]m4_translit($1, [[ ]], _))DNL m4_divert(2)CF_KEYWORDS(m4_translit($1, [[ ]], [[,]])) m4_divert(3)CF_ADDTO(cli_cmd, CF_cmd) CF_cmd: $1 $2 END') m4_define(CF_CLI_CMD, `') m4_define(CF_CLI_HELP, `') # ENUM declarations are ignored m4_define(CF_ENUM, `') # After all configuration templates end, we finally generate the grammar file. m4_m4wrap(` m4_divert(0)DNL %{ m4_undivert(1)DNL %} m4_undivert(2)DNL %% m4_undivert(3)DNL /* Dynamic rules */ m4_define(CF_RULE, [[$1: CF_rule_$1 ;]]) CF_dyn_rules %% m4_undivert(4)DNL ') # As we are processing C source, we must access all M4 primitives via # m4_* and also set different quoting convention: `[[' and ']]' m4_changequote([[,]]) bird-1.4.0/conf/cf-lex.l0000644000103200001440000003656512203212354013711 0ustar feelausers/* * BIRD -- Configuration Lexer * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Lexical analyzer * * The lexical analyzer used for configuration files and CLI commands * is generated using the |flex| tool accompanied by a couple of * functions maintaining the hash tables containing information about * symbols and keywords. * * Each symbol is represented by a &symbol structure containing name * of the symbol, its lexical scope, symbol class (%SYM_PROTO for a * name of a protocol, %SYM_CONSTANT for a constant etc.) and class * dependent data. When an unknown symbol is encountered, it's * automatically added to the symbol table with class %SYM_VOID. * * The keyword tables are generated from the grammar templates * using the |gen_keywords.m4| script. */ %{ #undef REJECT /* Avoid name clashes */ #include #include #include #include #include #include #include #include #include #include #define PARSER 1 #include "nest/bird.h" #include "nest/route.h" #include "nest/protocol.h" #include "filter/filter.h" #include "conf/conf.h" #include "conf/cf-parse.tab.h" #include "lib/string.h" struct keyword { byte *name; int value; struct keyword *next; }; #include "conf/keywords.h" #define KW_HASH_SIZE 64 static struct keyword *kw_hash[KW_HASH_SIZE]; static int kw_hash_inited; #define SYM_HASH_SIZE 128 #define SYM_MAX_LEN 32 struct sym_scope { struct sym_scope *next; /* Next on scope stack */ struct symbol *name; /* Name of this scope */ int active; /* Currently entered */ }; static struct sym_scope *conf_this_scope; static int cf_hash(byte *c); static struct symbol *cf_find_sym(byte *c, unsigned int h0); linpool *cfg_mem; int (*cf_read_hook)(byte *buf, unsigned int max, int fd); struct include_file_stack *ifs; static struct include_file_stack *ifs_head; #define MAX_INCLUDE_DEPTH 8 #define YY_INPUT(buf,result,max) result = cf_read_hook(buf, max, ifs->fd); #define YY_NO_UNPUT #define YY_FATAL_ERROR(msg) cf_error(msg) static void cf_include(char *arg, int alen); static int check_eof(void); %} %option noyywrap %option noinput %option nounput %option noreject %x COMMENT CCOMM CLI ALPHA [a-zA-Z_] DIGIT [0-9] XIGIT [0-9a-fA-F] ALNUM [a-zA-Z_0-9] WHITE [ \t] include ^{WHITE}*include{WHITE}*\".*\"{WHITE}*; %% {include} { char *start, *end; if (!ifs->depth) cf_error("Include not allowed in CLI"); start = strchr(yytext, '"'); start++; end = strchr(start, '"'); *end = 0; if (start == end) cf_error("Include with empty argument"); cf_include(start, end-start); } {DIGIT}+\.{DIGIT}+\.{DIGIT}+\.{DIGIT}+ { #ifdef IPV6 if (ipv4_pton_u32(yytext, &cf_lval.i32)) return RTRID; cf_error("Invalid IPv4 address %s", yytext); #else if (ip_pton(yytext, &cf_lval.a)) return IPA; cf_error("Invalid IP address %s", yytext); #endif } ({XIGIT}*::|({XIGIT}*:){3,})({XIGIT}*|{DIGIT}+\.{DIGIT}+\.{DIGIT}+\.{DIGIT}+) { #ifdef IPV6 if (ip_pton(yytext, &cf_lval.a)) return IPA; cf_error("Invalid IP address %s", yytext); #else cf_error("This is an IPv4 router, therefore IPv6 addresses are not supported"); #endif } 0x{XIGIT}+ { char *e; unsigned long int l; errno = 0; l = strtoul(yytext+2, &e, 16); if (e && *e || errno == ERANGE || (unsigned long int)(unsigned int) l != l) cf_error("Number out of range"); cf_lval.i = l; return NUM; } {DIGIT}+ { char *e; unsigned long int l; errno = 0; l = strtoul(yytext, &e, 10); if (e && *e || errno == ERANGE || (unsigned long int)(unsigned int) l != l) cf_error("Number out of range"); cf_lval.i = l; return NUM; } else: { /* Hack to distinguish if..else from else: in case */ return ELSECOL; } ({ALPHA}{ALNUM}*|[']({ALNUM}|[-]|[\.]|[:])*[']) { if(*yytext == '\'') { yytext[yyleng-1] = 0; yytext++; } unsigned int h = cf_hash(yytext); struct keyword *k = kw_hash[h & (KW_HASH_SIZE-1)]; while (k) { if (!strcmp(k->name, yytext)) { if (k->value > 0) return k->value; else { cf_lval.i = -k->value; return ENUM; } } k=k->next; } cf_lval.s = cf_find_sym(yytext, h); return SYM; } (.|\n) { BEGIN(INITIAL); return CLI_MARKER; } \.\. { return DDOT; } [={}:;,.()+*/%<>~\[\]?!\|-] { return yytext[0]; } ["][^"\n]*["] { yytext[yyleng-1] = 0; cf_lval.t = cfg_strdup(yytext+1); return TEXT; } ["][^"\n]*\n cf_error("Unterminated string"); <> { if (check_eof()) return END; } {WHITE}+ \n ifs->lino++; # BEGIN(COMMENT); \/\* BEGIN(CCOMM); . cf_error("Unknown character"); \n { ifs->lino++; BEGIN(INITIAL); } . \*\/ BEGIN(INITIAL); \n ifs->lino++; \/\* cf_error("Comment nesting not supported"); <> cf_error("Unterminated comment"); . \!\= return NEQ; \<\= return LEQ; \>\= return GEQ; \&\& return AND; \|\| return OR; \[\= return PO; \=\] return PC; %% static int cf_hash(byte *c) { unsigned int h = 13; while (*c) h = (h * 37) + *c++; return h; } /* * IFS stack - it contains structures needed for recursive processing * of include in config files. On the top of the stack is a structure * for currently processed file. Other structures are either for * active files interrupted because of include directive (these have * fd and flex buffer) or for inactive files scheduled to be processed * later (when parent requested including of several files by wildcard * match - these do not have fd and flex buffer yet). * * FIXME: Most of these ifs and include functions are really sysdep/unix. * * FIXME: Resources (fd, flex buffers and glob data) in IFS stack * are not freed when cf_error() is called. */ static struct include_file_stack * push_ifs(struct include_file_stack *old) { struct include_file_stack *ret; ret = cfg_allocz(sizeof(struct include_file_stack)); ret->lino = 1; ret->prev = old; return ret; } static struct include_file_stack * pop_ifs(struct include_file_stack *old) { yy_delete_buffer(old->buffer); close(old->fd); return old->prev; } static void enter_ifs(struct include_file_stack *new) { if (!new->buffer) { new->fd = open(new->file_name, O_RDONLY); if (new->fd < 0) { ifs = ifs->up; cf_error("Unable to open included file %s: %m", new->file_name); } new->buffer = yy_create_buffer(NULL, YY_BUF_SIZE); } yy_switch_to_buffer(new->buffer); } static void cf_include(char *arg, int alen) { struct include_file_stack *base_ifs = ifs; int new_depth, rv, i; char *patt; glob_t g; new_depth = ifs->depth + 1; if (new_depth > MAX_INCLUDE_DEPTH) cf_error("Max include depth reached"); /* expand arg to properly handle relative filenames */ if (*arg != '/') { int dlen = strlen(ifs->file_name); char *dir = alloca(dlen + 1); patt = alloca(dlen + alen + 2); memcpy(dir, ifs->file_name, dlen + 1); sprintf(patt, "%s/%s", dirname(dir), arg); } else patt = arg; /* Skip globbing if there are no wildcards, mainly to get proper response when the included config file is missing */ if (!strpbrk(arg, "?*[")) { ifs = push_ifs(ifs); ifs->file_name = cfg_strdup(patt); ifs->depth = new_depth; ifs->up = base_ifs; enter_ifs(ifs); return; } /* Expand the pattern */ rv = glob(patt, GLOB_ERR | GLOB_NOESCAPE, NULL, &g); if (rv == GLOB_ABORTED) cf_error("Unable to match pattern %s: %m", patt); if ((rv != 0) || (g.gl_pathc <= 0)) return; /* * Now we put all found files to ifs stack in reverse order, they * will be activated and processed in order as ifs stack is popped * by pop_ifs() and enter_ifs() in check_eof(). */ for(i = g.gl_pathc - 1; i >= 0; i--) { char *fname = g.gl_pathv[i]; struct stat fs; if (stat(fname, &fs) < 0) cf_error("Unable to stat included file %s: %m", fname); if (fs.st_mode & S_IFDIR) continue; /* Prepare new stack item */ ifs = push_ifs(ifs); ifs->file_name = cfg_strdup(fname); ifs->depth = new_depth; ifs->up = base_ifs; } globfree(&g); enter_ifs(ifs); } static int check_eof(void) { if (ifs == ifs_head) { /* EOF in main config file */ ifs->lino = 1; /* Why this? */ return 1; } ifs = pop_ifs(ifs); enter_ifs(ifs); return 0; } static struct symbol * cf_new_sym(byte *c, unsigned int h) { struct symbol *s, **ht; int l; if (!new_config->sym_hash) new_config->sym_hash = cfg_allocz(SYM_HASH_SIZE * sizeof(struct keyword *)); ht = new_config->sym_hash; l = strlen(c); if (l > SYM_MAX_LEN) cf_error("Symbol too long"); s = cfg_alloc(sizeof(struct symbol) + l); s->next = ht[h]; ht[h] = s; s->scope = conf_this_scope; s->class = SYM_VOID; s->def = NULL; s->aux = 0; strcpy(s->name, c); return s; } static struct symbol * cf_find_sym(byte *c, unsigned int h0) { unsigned int h = h0 & (SYM_HASH_SIZE-1); struct symbol *s, **ht; if (ht = new_config->sym_hash) { for(s = ht[h]; s; s=s->next) if (!strcmp(s->name, c) && s->scope->active) return s; } if (new_config->sym_fallback) { /* We know only top-level scope is active */ for(s = new_config->sym_fallback[h]; s; s=s->next) if (!strcmp(s->name, c) && s->scope->active) return s; } return cf_new_sym(c, h); } /** * cf_find_symbol - find a symbol by name * @c: symbol name * * This functions searches the symbol table for a symbol of given * name. First it examines the current scope, then the second recent * one and so on until it either finds the symbol and returns a pointer * to its &symbol structure or reaches the end of the scope chain * and returns %NULL to signify no match. */ struct symbol * cf_find_symbol(byte *c) { return cf_find_sym(c, cf_hash(c)); } struct symbol * cf_default_name(char *template, int *counter) { char buf[32]; struct symbol *s; char *perc = strchr(template, '%'); for(;;) { bsprintf(buf, template, ++(*counter)); s = cf_find_sym(buf, cf_hash(buf)); if (!s) break; if (s->class == SYM_VOID) return s; if (!perc) break; } cf_error("Unable to generate default name"); } /** * cf_define_symbol - define meaning of a symbol * @sym: symbol to be defined * @type: symbol class to assign * @def: class dependent data * * Defines new meaning of a symbol. If the symbol is an undefined * one (%SYM_VOID), it's just re-defined to the new type. If it's defined * in different scope, a new symbol in current scope is created and the * meaning is assigned to it. If it's already defined in the current scope, * an error is reported via cf_error(). * * Result: Pointer to the newly defined symbol. If we are in the top-level * scope, it's the same @sym as passed to the function. */ struct symbol * cf_define_symbol(struct symbol *sym, int type, void *def) { if (sym->class) { if (sym->scope == conf_this_scope) cf_error("Symbol already defined"); sym = cf_new_sym(sym->name, cf_hash(sym->name) & (SYM_HASH_SIZE-1)); } sym->class = type; sym->def = def; return sym; } static void cf_lex_init_kh(void) { struct keyword *k; for(k=keyword_list; k->name; k++) { unsigned h = cf_hash(k->name) & (KW_HASH_SIZE-1); k->next = kw_hash[h]; kw_hash[h] = k; } kw_hash_inited = 1; } /** * cf_lex_init - initialize the lexer * @is_cli: true if we're going to parse CLI command, false for configuration * * cf_lex_init() initializes the lexical analyzer and prepares it for * parsing of a new input. */ void cf_lex_init(int is_cli, struct config *c) { if (!kw_hash_inited) cf_lex_init_kh(); ifs_head = ifs = push_ifs(NULL); if (!is_cli) { ifs->file_name = c->file_name; ifs->fd = c->file_fd; ifs->depth = 1; } yyrestart(NULL); ifs->buffer = YY_CURRENT_BUFFER; if (is_cli) BEGIN(CLI); else BEGIN(INITIAL); conf_this_scope = cfg_allocz(sizeof(struct sym_scope)); conf_this_scope->active = 1; } /** * cf_push_scope - enter new scope * @sym: symbol representing scope name * * If we want to enter a new scope to process declarations inside * a nested block, we can just call cf_push_scope() to push a new * scope onto the scope stack which will cause all new symbols to be * defined in this scope and all existing symbols to be sought for * in all scopes stored on the stack. */ void cf_push_scope(struct symbol *sym) { struct sym_scope *s = cfg_alloc(sizeof(struct sym_scope)); s->next = conf_this_scope; conf_this_scope = s; s->active = 1; s->name = sym; } /** * cf_pop_scope - leave a scope * * cf_pop_scope() pops the topmost scope from the scope stack, * leaving all its symbols in the symbol table, but making them * invisible to the rest of the config. */ void cf_pop_scope(void) { conf_this_scope->active = 0; conf_this_scope = conf_this_scope->next; ASSERT(conf_this_scope); } struct symbol * cf_walk_symbols(struct config *cf, struct symbol *sym, int *pos) { for(;;) { if (!sym) { if (*pos >= SYM_HASH_SIZE) return NULL; sym = cf->sym_hash[(*pos)++]; } else sym = sym->next; if (sym && sym->scope->active) return sym; } } /** * cf_symbol_class_name - get name of a symbol class * @sym: symbol * * This function returns a string representing the class * of the given symbol. */ char * cf_symbol_class_name(struct symbol *sym) { if ((sym->class & 0xff00) == SYM_CONSTANT) return "constant"; switch (sym->class) { case SYM_VOID: return "undefined"; case SYM_PROTO: return "protocol"; case SYM_TEMPLATE: return "protocol template"; case SYM_FUNCTION: return "function"; case SYM_FILTER: return "filter"; case SYM_TABLE: return "routing table"; case SYM_ROA: return "ROA table"; default: return "unknown type"; } } /** * DOC: Parser * * Both the configuration and CLI commands are analyzed using a syntax * driven parser generated by the |bison| tool from a grammar which * is constructed from information gathered from grammar snippets by * the |gen_parser.m4| script. * * Grammar snippets are files (usually with extension |.Y|) contributed * by various BIRD modules in order to provide information about syntax of their * configuration and their CLI commands. Each snipped consists of several * sections, each of them starting with a special keyword: |CF_HDR| for * a list of |#include| directives needed by the C code, |CF_DEFINES| * for a list of C declarations, |CF_DECLS| for |bison| declarations * including keyword definitions specified as |CF_KEYWORDS|, |CF_GRAMMAR| * for the grammar rules, |CF_CODE| for auxiliary C code and finally * |CF_END| at the end of the snippet. * * To create references between the snippets, it's possible to define * multi-part rules by utilizing the |CF_ADDTO| macro which adds a new * alternative to a multi-part rule. * * CLI commands are defined using a |CF_CLI| macro. Its parameters are: * the list of keywords determining the command, the list of parameters, * help text for the parameters and help text for the command. * * Values of |enum| filter types can be defined using |CF_ENUM| with * the following parameters: name of filter type, prefix common for all * literals of this type and names of all the possible values. */ bird-1.4.0/conf/conf.c0000644000103200001440000003514612244656136013460 0ustar feelausers/* * BIRD Internet Routing Daemon -- Configuration File Handling * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Configuration manager * * Configuration of BIRD is complex, yet straightforward. There are three * modules taking care of the configuration: config manager (which takes care * of storage of the config information and controls switching between configs), * lexical analyzer and parser. * * The configuration manager stores each config as a &config structure * accompanied by a linear pool from which all information associated * with the config and pointed to by the &config structure is allocated. * * There can exist up to four different configurations at one time: an active * one (pointed to by @config), configuration we are just switching from * (@old_config), one queued for the next reconfiguration (@future_config; * if there is one and the user wants to reconfigure once again, we just * free the previous queued config and replace it with the new one) and * finally a config being parsed (@new_config). The stored @old_config * is also used for undo reconfiguration, which works in a similar way. * Reconfiguration could also have timeout (using @config_timer) and undo * is automatically called if the new configuration is not confirmed later. * * Loading of new configuration is very simple: just call config_alloc() * to get a new &config structure, then use config_parse() to parse a * configuration file and fill all fields of the structure * and finally ask the config manager to switch to the new * config by calling config_commit(). * * CLI commands are parsed in a very similar way -- there is also a stripped-down * &config structure associated with them and they are lex-ed and parsed by the * same functions, only a special fake token is prepended before the command * text to make the parser recognize only the rules corresponding to CLI commands. */ #include #include #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/route.h" #include "nest/protocol.h" #include "nest/iface.h" #include "lib/resource.h" #include "lib/string.h" #include "lib/event.h" #include "lib/timer.h" #include "conf/conf.h" #include "filter/filter.h" static jmp_buf conf_jmpbuf; struct config *config, *new_config; static struct config *old_config; /* Old configuration */ static struct config *future_config; /* New config held here if recon requested during recon */ static int old_cftype; /* Type of transition old_config -> config (RECONFIG_SOFT/HARD) */ static int future_cftype; /* Type of scheduled transition, may also be RECONFIG_UNDO */ /* Note that when future_cftype is RECONFIG_UNDO, then future_config is NULL, therefore proper check for future scheduled config checks future_cftype */ static event *config_event; /* Event for finalizing reconfiguration */ static timer *config_timer; /* Timer for scheduled configuration rollback */ /* These are public just for cmd_show_status(), should not be accessed elsewhere */ int shutting_down; /* Shutdown requested, do not accept new config changes */ int configuring; /* Reconfiguration is running */ int undo_available; /* Undo was not requested from last reconfiguration */ /* Note that both shutting_down and undo_available are related to requests, not processing */ /** * config_alloc - allocate a new configuration * @name: name of the config * * This function creates new &config structure, attaches a resource * pool and a linear memory pool to it and makes it available for * further use. Returns a pointer to the structure. */ struct config * config_alloc(byte *name) { pool *p = rp_new(&root_pool, "Config"); linpool *l = lp_new(p, 4080); struct config *c = lp_allocz(l, sizeof(struct config)); c->mrtdump_file = -1; /* Hack, this should be sysdep-specific */ c->pool = p; cfg_mem = c->mem = l; c->file_name = cfg_strdup(name); c->load_time = now; c->tf_route = c->tf_proto = (struct timeformat){"%T", "%F", 20*3600}; c->tf_base = c->tf_log = (struct timeformat){"%F %T", NULL, 0}; return c; } /** * config_parse - parse a configuration * @c: configuration * * config_parse() reads input by calling a hook function pointed to * by @cf_read_hook and parses it according to the configuration * grammar. It also calls all the preconfig and postconfig hooks * before, resp. after parsing. * * Result: 1 if the config has been parsed successfully, 0 if any * error has occurred (such as anybody calling cf_error()) and * the @err_msg field has been set to the error message. */ int config_parse(struct config *c) { DBG("Parsing configuration file `%s'\n", c->file_name); new_config = c; cfg_mem = c->mem; if (setjmp(conf_jmpbuf)) return 0; cf_lex_init(0, c); sysdep_preconfig(c); protos_preconfig(c); rt_preconfig(c); roa_preconfig(c); cf_parse(); protos_postconfig(c); if (EMPTY_LIST(c->protos)) cf_error("No protocol is specified in the config file"); #ifdef IPV6 if (!c->router_id) cf_error("Router ID must be configured manually on IPv6 routers"); #endif return 1; } /** * cli_parse - parse a CLI command * @c: temporary config structure * * cli_parse() is similar to config_parse(), but instead of a configuration, * it parses a CLI command. See the CLI module for more information. */ int cli_parse(struct config *c) { new_config = c; c->sym_fallback = config->sym_hash; cfg_mem = c->mem; if (setjmp(conf_jmpbuf)) return 0; cf_lex_init(1, c); cf_parse(); return 1; } /** * config_free - free a configuration * @c: configuration to be freed * * This function takes a &config structure and frees all resources * associated with it. */ void config_free(struct config *c) { if (c) rfree(c->pool); } void config_add_obstacle(struct config *c) { DBG("+++ adding obstacle %d\n", c->obstacle_count); c->obstacle_count++; } void config_del_obstacle(struct config *c) { DBG("+++ deleting obstacle %d\n", c->obstacle_count); c->obstacle_count--; if (!c->obstacle_count) ev_schedule(config_event); } static int global_commit(struct config *new, struct config *old) { if (!old) return 0; if (!ipa_equal(old->listen_bgp_addr, new->listen_bgp_addr) || (old->listen_bgp_port != new->listen_bgp_port) || (old->listen_bgp_flags != new->listen_bgp_flags)) log(L_WARN "Reconfiguration of BGP listening socket not implemented, please restart BIRD."); if (!new->router_id) { new->router_id = old->router_id; if (new->router_id_from) { u32 id = if_choose_router_id(new->router_id_from, old->router_id); if (!id) log(L_WARN "Cannot determine router ID, using old one"); else new->router_id = id; } } return 0; } static int config_do_commit(struct config *c, int type) { if (type == RECONFIG_UNDO) { c = old_config; type = old_cftype; } else config_free(old_config); old_config = config; old_cftype = type; config = c; configuring = 1; if (old_config && !config->shutdown) log(L_INFO "Reconfiguring"); /* This should not be necessary, but it seems there are some functions that access new_config instead of config */ new_config = config; if (old_config) old_config->obstacle_count++; DBG("sysdep_commit\n"); int force_restart = sysdep_commit(c, old_config); DBG("global_commit\n"); force_restart |= global_commit(c, old_config); DBG("rt_commit\n"); rt_commit(c, old_config); roa_commit(c, old_config); DBG("protos_commit\n"); protos_commit(c, old_config, force_restart, type); /* Just to be sure nobody uses that now */ new_config = NULL; int obs = 0; if (old_config) obs = --old_config->obstacle_count; DBG("do_commit finished with %d obstacles remaining\n", obs); return !obs; } static void config_done(void *unused UNUSED) { if (config->shutdown) sysdep_shutdown_done(); configuring = 0; if (old_config) log(L_INFO "Reconfigured"); if (future_cftype) { int type = future_cftype; struct config *conf = future_config; future_cftype = RECONFIG_NONE; future_config = NULL; log(L_INFO "Reconfiguring to queued configuration"); if (config_do_commit(conf, type)) config_done(NULL); } } /** * config_commit - commit a configuration * @c: new configuration * @type: type of reconfiguration (RECONFIG_SOFT or RECONFIG_HARD) * @timeout: timeout for undo (or 0 for no timeout) * * When a configuration is parsed and prepared for use, the * config_commit() function starts the process of reconfiguration. * It checks whether there is already a reconfiguration in progress * in which case it just queues the new config for later processing. * Else it notifies all modules about the new configuration by calling * their commit() functions which can either accept it immediately * or call config_add_obstacle() to report that they need some time * to complete the reconfiguration. After all such obstacles are removed * using config_del_obstacle(), the old configuration is freed and * everything runs according to the new one. * * When @timeout is nonzero, the undo timer is activated with given * timeout. The timer is deactivated when config_commit(), * config_confirm() or config_undo() is called. * * Result: %CONF_DONE if the configuration has been accepted immediately, * %CONF_PROGRESS if it will take some time to switch to it, %CONF_QUEUED * if it's been queued due to another reconfiguration being in progress now * or %CONF_SHUTDOWN if BIRD is in shutdown mode and no new configurations * are accepted. */ int config_commit(struct config *c, int type, int timeout) { if (shutting_down) { config_free(c); return CONF_SHUTDOWN; } undo_available = 1; if (timeout > 0) tm_start(config_timer, timeout); else tm_stop(config_timer); if (configuring) { if (future_cftype) { log(L_INFO "Queueing new configuration, ignoring the one already queued"); config_free(future_config); } else log(L_INFO "Queueing new configuration"); future_cftype = type; future_config = c; return CONF_QUEUED; } if (config_do_commit(c, type)) { config_done(NULL); return CONF_DONE; } return CONF_PROGRESS; } /** * config_confirm - confirm a commited configuration * * When the undo timer is activated by config_commit() with nonzero timeout, * this function can be used to deactivate it and therefore confirm * the current configuration. * * Result: %CONF_CONFIRM when the current configuration is confirmed, * %CONF_NONE when there is nothing to confirm (i.e. undo timer is not active). */ int config_confirm(void) { if (config_timer->expires == 0) return CONF_NOTHING; tm_stop(config_timer); return CONF_CONFIRM; } /** * config_undo - undo a configuration * * Function config_undo() can be used to change the current * configuration back to stored %old_config. If no reconfiguration is * running, this stored configuration is commited in the same way as a * new configuration in config_commit(). If there is already a * reconfiguration in progress and no next reconfiguration is * scheduled, then the undo is scheduled for later processing as * usual, but if another reconfiguration is already scheduled, then * such reconfiguration is removed instead (i.e. undo is applied on * the last commit that scheduled it). * * Result: %CONF_DONE if the configuration has been accepted immediately, * %CONF_PROGRESS if it will take some time to switch to it, %CONF_QUEUED * if it's been queued due to another reconfiguration being in progress now, * %CONF_UNQUEUED if a scheduled reconfiguration is removed, %CONF_NOTHING * if there is no relevant configuration to undo (the previous config request * was config_undo() too) or %CONF_SHUTDOWN if BIRD is in shutdown mode and * no new configuration changes are accepted. */ int config_undo(void) { if (shutting_down) return CONF_SHUTDOWN; if (!undo_available || !old_config) return CONF_NOTHING; undo_available = 0; tm_stop(config_timer); if (configuring) { if (future_cftype) { config_free(future_config); future_config = NULL; log(L_INFO "Removing queued configuration"); future_cftype = RECONFIG_NONE; return CONF_UNQUEUED; } else { log(L_INFO "Queueing undo configuration"); future_cftype = RECONFIG_UNDO; return CONF_QUEUED; } } if (config_do_commit(NULL, RECONFIG_UNDO)) { config_done(NULL); return CONF_DONE; } return CONF_PROGRESS; } extern void cmd_reconfig_undo_notify(void); static void config_timeout(struct timer *t) { log(L_INFO "Config timeout expired, starting undo"); cmd_reconfig_undo_notify(); int r = config_undo(); if (r < 0) log(L_ERR "Undo request failed"); } void config_init(void) { config_event = ev_new(&root_pool); config_event->hook = config_done; config_timer = tm_new(&root_pool); config_timer->hook = config_timeout; } /** * order_shutdown - order BIRD shutdown * * This function initiates shutdown of BIRD. It's accomplished by asking * for switching to an empty configuration. */ void order_shutdown(void) { struct config *c; if (shutting_down) return; log(L_INFO "Shutting down"); c = lp_alloc(config->mem, sizeof(struct config)); memcpy(c, config, sizeof(struct config)); init_list(&c->protos); init_list(&c->tables); c->shutdown = 1; config_commit(c, RECONFIG_HARD, 0); shutting_down = 1; } /** * cf_error - report a configuration error * @msg: printf-like format string * * cf_error() can be called during execution of config_parse(), that is * from the parser, a preconfig hook or a postconfig hook, to report an * error in the configuration. */ void cf_error(char *msg, ...) { char buf[1024]; va_list args; va_start(args, msg); if (bvsnprintf(buf, sizeof(buf), msg, args) < 0) strcpy(buf, ""); new_config->err_msg = cfg_strdup(buf); new_config->err_lino = ifs->lino; new_config->err_file_name = ifs->file_name; longjmp(conf_jmpbuf, 1); } /** * cfg_strdup - copy a string to config memory * @c: string to copy * * cfg_strdup() creates a new copy of the string in the memory * pool associated with the configuration being currently parsed. * It's often used when a string literal occurs in the configuration * and we want to preserve it for further use. */ char * cfg_strdup(char *c) { int l = strlen(c) + 1; char *z = cfg_allocu(l); memcpy(z, c, l); return z; } void cfg_copy_list(list *dest, list *src, unsigned node_size) { node *dn, *sn; init_list(dest); WALK_LIST(sn, *src) { dn = cfg_alloc(node_size); memcpy(dn, sn, node_size); add_tail(dest, dn); } } bird-1.4.0/conf/Makefile0000644000103200001440000000162411606273733014020 0ustar feelauserssource=cf-parse.tab.c cf-lex.c conf.c root-rel=../ include ../Rules conf-src=$(srcdir)/conf conf-fragments=$(conf-src)/confbase.Y @CONFS@ $(addsuffix /config.Y,$(static-dir-paths)) ifdef DEBUG BISON_DEBUG=-t #FLEX_DEBUG=-d endif cf-parse.tab.h: cf-parse.tab.c cf-parse.tab.c: cf-parse.y $(BISON) -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y cf-parse.y: $(conf-fragments) $(conf-src)/gen_parser.m4 $(M4) -P $(conf-src)/gen_parser.m4 $(conf-fragments) >cf-parse.y keywords.h: $(conf-fragments) $(conf-src)/gen_keywords.m4 $(M4) -P $(conf-src)/gen_keywords.m4 $(conf-fragments) >keywords.h commands.h: $(conf-fragments) $(conf-src)/gen_commands.m4 $(srcdir)/client/cmds.m4 $(M4) -P $(conf-src)/gen_commands.m4 $(srcdir)/client/cmds.m4 $(conf-fragments) | sort >commands.h cf-lex.c: cf-lex.l $(FLEX) $(FLEX_DEBUG) -s -B -8 -ocf-lex.c -Pcf_ cf-lex.l depend: keywords.h commands.h cf-parse.tab.c cf-lex.c bird-1.4.0/.cvsignore0000644000103200001440000000001211606273733013421 0ustar feelausersbird.conf bird-1.4.0/Doc0000644000103200001440000000006411606273733012060 0ustar feelausersC doc C nest C conf C filter C proto C sysdep C lib bird-1.4.0/client/0000755000103200001440000000000012244656136012707 5ustar feelausersbird-1.4.0/client/client.c0000644000103200001440000002006412244656136014333 0ustar feelausers/* * BIRD Client * * (c) 1999--2004 Martin Mares * (c) 2013 Tomas Hlavacek * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: BIRD client * * There are two variants of BIRD client: regular and light. regular * variant depends on readline and ncurses libraries, while light * variant uses just libc. Most of the code and the main() is common * for both variants (in client.c file) and just a few functions are * different (in birdc.c for regular and birdcl.c for light). Two * binaries are generated by linking common object files like client.o * (which is compiled from client.c just once) with either birdc.o or * birdcl.o for each variant. */ #include #include #include #include #include #include #include #include #include "nest/bird.h" #include "lib/resource.h" #include "lib/string.h" #include "client/client.h" #include "sysdep/unix/unix.h" #define SERVER_READ_BUF_LEN 4096 static char *opt_list = "s:vr"; static int verbose, restricted, once; static char *init_cmd; static char *server_path = PATH_CONTROL_SOCKET; static int server_fd; static byte server_read_buf[SERVER_READ_BUF_LEN]; static byte *server_read_pos = server_read_buf; int init = 1; /* During intial sequence */ int busy = 1; /* Executing BIRD command */ int interactive; /* Whether stdin is terminal */ static int num_lines, skip_input; int term_lns, term_cls; /*** Parsing of arguments ***/ static void usage(char *name) { fprintf(stderr, "Usage: %s [-s ] [-v] [-r]\n", name); exit(1); } static void parse_args(int argc, char **argv) { int c; while ((c = getopt(argc, argv, opt_list)) >= 0) switch (c) { case 's': server_path = optarg; break; case 'v': verbose++; break; case 'r': restricted = 1; break; default: usage(argv[0]); } /* If some arguments are not options, we take it as commands */ if (optind < argc) { char *tmp; int i; int len = 0; for (i = optind; i < argc; i++) len += strlen(argv[i]) + 1; tmp = init_cmd = malloc(len); for (i = optind; i < argc; i++) { strcpy(tmp, argv[i]); tmp += strlen(tmp); *tmp++ = ' '; } tmp[-1] = 0; once = 1; interactive = 0; } } /*** Input ***/ static void server_send(char *cmd); static int handle_internal_command(char *cmd) { if (!strncmp(cmd, "exit", 4) || !strncmp(cmd, "quit", 4)) { cleanup(); exit(0); } if (!strncmp(cmd, "help", 4)) { puts("Press `?' for context sensitive help."); return 1; } return 0; } static void submit_server_command(char *cmd) { busy = 1; num_lines = 2; server_send(cmd); } static inline void submit_init_command(char *cmd_raw) { char *cmd = cmd_expand(cmd_raw); if (!cmd) { cleanup(); exit(0); } submit_server_command(cmd); free(cmd); } void submit_command(char *cmd_raw) { char *cmd = cmd_expand(cmd_raw); if (!cmd) return; if (!handle_internal_command(cmd)) submit_server_command(cmd); free(cmd); } static void init_commands(void) { if (restricted) { submit_server_command("restrict"); restricted = 0; return; } if (init_cmd) { /* First transition - client received hello from BIRD and there is waiting initial command */ submit_init_command(init_cmd); init_cmd = NULL; return; } if (once) { /* Initial command is finished and we want to exit */ cleanup(); exit(0); } input_init(); term_lns = (term_lns > 0) ? term_lns : 25; term_cls = (term_cls > 0) ? term_cls : 80; init = 0; } /*** Output ***/ void more(void) { more_begin(); printf("--More--\015"); fflush(stdout); redo: switch (getchar()) { case ' ': num_lines = 2; break; case '\n': case '\r': num_lines--; break; case 'q': skip_input = 1; break; default: goto redo; } printf(" \015"); fflush(stdout); more_end(); } /*** Communication with server ***/ static void server_connect(void) { struct sockaddr_un sa; server_fd = socket(AF_UNIX, SOCK_STREAM, 0); if (server_fd < 0) die("Cannot create socket: %m"); if (strlen(server_path) >= sizeof(sa.sun_path)) die("server_connect: path too long"); bzero(&sa, sizeof(sa)); sa.sun_family = AF_UNIX; strcpy(sa.sun_path, server_path); if (connect(server_fd, (struct sockaddr *) &sa, SUN_LEN(&sa)) < 0) die("Unable to connect to server control socket (%s): %m", server_path); if (fcntl(server_fd, F_SETFL, O_NONBLOCK) < 0) die("fcntl: %m"); } #define PRINTF(LEN, PARGS...) do { if (!skip_input) len = printf(PARGS); } while(0) static void server_got_reply(char *x) { int code; int len = 0; if (*x == '+') /* Async reply */ PRINTF(len, ">>> %s\n", x+1); else if (x[0] == ' ') /* Continuation */ PRINTF(len, "%s%s\n", verbose ? " " : "", x+1); else if (strlen(x) > 4 && sscanf(x, "%d", &code) == 1 && code >= 0 && code < 10000 && (x[4] == ' ' || x[4] == '-')) { if (code) PRINTF(len, "%s\n", verbose ? x : x+5); if (x[4] == ' ') { busy = 0; skip_input = 0; return; } } else PRINTF(len, "??? <%s>\n", x); if (interactive && busy && !skip_input && !init && (len > 0)) { num_lines += (len + term_cls - 1) / term_cls; /* Divide and round up */ if (num_lines >= term_lns) more(); } } static void server_read(void) { int c; byte *start, *p; redo: c = read(server_fd, server_read_pos, server_read_buf + sizeof(server_read_buf) - server_read_pos); if (!c) die("Connection closed by server."); if (c < 0) { if (errno == EINTR) goto redo; else die("Server read error: %m"); } start = server_read_buf; p = server_read_pos; server_read_pos += c; while (p < server_read_pos) if (*p++ == '\n') { p[-1] = 0; server_got_reply(start); start = p; } if (start != server_read_buf) { int l = server_read_pos - start; memmove(server_read_buf, start, l); server_read_pos = server_read_buf + l; } else if (server_read_pos == server_read_buf + sizeof(server_read_buf)) { strcpy(server_read_buf, "?"); server_read_pos = server_read_buf + 11; } } static void select_loop(void) { int rv; while (1) { if (init && !busy) init_commands(); if (!init) input_notify(!busy); fd_set select_fds; FD_ZERO(&select_fds); FD_SET(server_fd, &select_fds); if (!busy) FD_SET(0, &select_fds); rv = select(server_fd+1, &select_fds, NULL, NULL, NULL); if (rv < 0) { if (errno == EINTR) continue; else die("select: %m"); } if (FD_ISSET(0, &select_fds)) { input_read(); continue; } if (FD_ISSET(server_fd, &select_fds)) { server_read(); continue; } } } static void wait_for_write(int fd) { while (1) { int rv; fd_set set; FD_ZERO(&set); FD_SET(fd, &set); rv = select(fd+1, NULL, &set, NULL, NULL); if (rv < 0) { if (errno == EINTR) continue; else die("select: %m"); } if (FD_ISSET(server_fd, &set)) return; } } static void server_send(char *cmd) { int l = strlen(cmd); byte *z = alloca(l + 1); memcpy(z, cmd, l); z[l++] = '\n'; while (l) { int cnt = write(server_fd, z, l); if (cnt < 0) { if (errno == EAGAIN) wait_for_write(server_fd); else if (errno == EINTR) continue; else die("Server write error: %m"); } else { l -= cnt; z += cnt; } } } /* XXXX get_term_size(); if (tcgetattr(0, &tty_save) != 0) { perror("tcgetattr error"); return(EXIT_FAILURE); } } */ int main(int argc, char **argv) { interactive = isatty(0); parse_args(argc, argv); cmd_build_tree(); server_connect(); select_loop(); return 0; } bird-1.4.0/client/client.h0000644000103200001440000000122512137564446014341 0ustar feelausers/* * BIRD Client * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ extern int init, busy, interactive; extern int term_lns, term_cls; /* birdc.c / birdcl.c */ void input_start_list(void); void input_stop_list(void); void input_init(void); void input_notify(int prompt); void input_read(void); void more_begin(void); void more_end(void); void cleanup(void); /* commands.c */ void cmd_build_tree(void); void cmd_help(char *cmd, int len); int cmd_complete(char *cmd, int len, char *buf, int again); char *cmd_expand(char *cmd); /* client.c */ void submit_command(char *cmd_raw); bird-1.4.0/client/Doc0000644000103200001440000000003711606273733013336 0ustar feelausersH Client S client.c commands.c bird-1.4.0/client/util.c0000644000103200001440000000153111606273733014027 0ustar feelausers/* * BIRD Client -- Utility Functions * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include #include #include "nest/bird.h" #include "lib/string.h" #include "client/client.h" /* Client versions of logging functions */ static void vlog(char *msg, va_list args) { char buf[1024]; if (bvsnprintf(buf, sizeof(buf)-1, msg, args) < 0) bsprintf(buf + sizeof(buf) - 100, " ... "); fputs(buf, stderr); fputc('\n', stderr); } void bug(char *msg, ...) { va_list args; va_start(args, msg); cleanup(); fputs("Internal error: ", stderr); vlog(msg, args); vfprintf(stderr, msg, args); exit(1); } void die(char *msg, ...) { va_list args; va_start(args, msg); cleanup(); vlog(msg, args); exit(1); } bird-1.4.0/client/cmds.m40000644000103200001440000000045111606273733014076 0ustar feelausers# # BIRD -- Internal Commands Of The Client # # (c) 2000 Martin Mares # # Can be freely distributed and used under the terms of the GNU GPL. # CF_CLI(QUIT,,, [[Quit the client]]) CF_CLI(EXIT,,, [[Exit the client]]) CF_CLI(HELP,,, [[Description of the help system]]) bird-1.4.0/client/commands.c0000644000103200001440000001346211732627752014665 0ustar feelausers/* * BIRD Client -- Command Handling * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include #include "nest/bird.h" #include "lib/resource.h" #include "lib/string.h" #include "client/client.h" struct cmd_info { char *command; char *args; char *help; int is_real_cmd; }; static struct cmd_info command_table[] = { #include "conf/commands.h" }; struct cmd_node { struct cmd_node *sibling, *son, **plastson; struct cmd_info *cmd, *help; int len; signed char prio; char token[1]; }; static struct cmd_node cmd_root; void cmd_build_tree(void) { unsigned int i; cmd_root.plastson = &cmd_root.son; for(i=0; icommand; old = &cmd_root; while (*c) { char *d = c; while (*c && !isspace(*c)) c++; for(new=old->son; new; new=new->sibling) if (new->len == c-d && !memcmp(new->token, d, c-d)) break; if (!new) { int size = sizeof(struct cmd_node) + c-d; new = xmalloc(size); bzero(new, size); *old->plastson = new; old->plastson = &new->sibling; new->plastson = &new->son; new->len = c-d; memcpy(new->token, d, c-d); new->prio = (new->len == 3 && !memcmp(new->token, "roa", 3)) ? 0 : 1; /* Hack */ } old = new; while (isspace(*c)) c++; } if (cmd->is_real_cmd) old->cmd = cmd; else old->help = cmd; } } static void cmd_do_display_help(struct cmd_info *c) { char buf[strlen(c->command) + strlen(c->args) + 4]; sprintf(buf, "%s %s", c->command, c->args); printf("%-45s %s\n", buf, c->help); } static void cmd_display_help(struct cmd_info *c1, struct cmd_info *c2) { if (c1) cmd_do_display_help(c1); else if (c2) cmd_do_display_help(c2); } static struct cmd_node * cmd_find_abbrev(struct cmd_node *root, char *cmd, int len, int *pambiguous) { struct cmd_node *m, *best = NULL, *best2 = NULL; *pambiguous = 0; for(m=root->son; m; m=m->sibling) { if (m->len == len && !memcmp(m->token, cmd, len)) return m; if (m->len > len && !memcmp(m->token, cmd, len)) { if (best && best->prio > m->prio) continue; if (best && best->prio == m->prio) best2 = best; best = m; } } if (best2) { *pambiguous = 1; return NULL; } return best; } static void cmd_list_ambiguous(struct cmd_node *root, char *cmd, int len) { struct cmd_node *m; for(m=root->son; m; m=m->sibling) if (m->len > len && !memcmp(m->token, cmd, len)) cmd_display_help(m->help, m->cmd); } void cmd_help(char *cmd, int len) { char *end = cmd + len; struct cmd_node *n, *m; char *z; int ambig; n = &cmd_root; while (cmd < end) { if (isspace(*cmd)) { cmd++; continue; } z = cmd; while (cmd < end && !isspace(*cmd)) cmd++; m = cmd_find_abbrev(n, z, cmd-z, &ambig); if (ambig) { cmd_list_ambiguous(n, z, cmd-z); return; } if (!m) break; n = m; } cmd_display_help(n->cmd, NULL); for (m=n->son; m; m=m->sibling) cmd_display_help(m->help, m->cmd); } static int cmd_find_common_match(struct cmd_node *root, char *cmd, int len, int *pcount, char *buf) { struct cmd_node *m; int best, best_prio, i; *pcount = 0; best = -1; best_prio = -1; for(m=root->son; m; m=m->sibling) { if (m->len < len || memcmp(m->token, cmd, len)) continue; if (best_prio > m->prio) continue; if (best_prio < m->prio) { *pcount = 0; best = -1; } (*pcount)++; if (best < 0) { strcpy(buf, m->token + len); best = m->len - len; best_prio = m->prio; } else { i = 0; while (i < best && i < m->len - len && buf[i] == m->token[len+i]) i++; best = i; } } return best; } int cmd_complete(char *cmd, int len, char *buf, int again) { char *start = cmd; char *end = cmd + len; char *fin; struct cmd_node *n, *m; char *z; int ambig, cnt = 0, common; /* Find the last word we want to complete */ for(fin=end; fin > start && !isspace(fin[-1]); fin--) ; /* Find the context */ n = &cmd_root; while (cmd < fin && n->son) { if (isspace(*cmd)) { cmd++; continue; } z = cmd; while (cmd < fin && !isspace(*cmd)) cmd++; m = cmd_find_abbrev(n, z, cmd-z, &ambig); if (ambig) { if (!again) return -1; input_start_list(); cmd_list_ambiguous(n, z, cmd-z); input_stop_list(); return 0; } if (!m) return -1; n = m; } /* Completion of parameters is not yet supported */ if (!n->son) return -1; /* We know the context, let's try to complete */ common = cmd_find_common_match(n, fin, end-fin, &cnt, buf); if (!cnt) return -1; if (cnt == 1) { buf[common++] = ' '; buf[common] = 0; return 1; } if (common > 0) { buf[common] = 0; return 1; } if (!again) return -1; input_start_list(); cmd_list_ambiguous(n, fin, end-fin); input_stop_list(); return 0; } char * cmd_expand(char *cmd) { struct cmd_node *n, *m; char *c, *b, *args; int ambig; args = c = cmd; n = &cmd_root; while (*c) { if (isspace(*c)) { c++; continue; } b = c; while (*c && !isspace(*c)) c++; m = cmd_find_abbrev(n, b, c-b, &ambig); if (!m) { if (!ambig) break; puts("Ambiguous command, possible expansions are:"); cmd_list_ambiguous(n, b, c-b); return NULL; } args = c; n = m; } if (!n->cmd) { puts("No such command. Press `?' for help."); return NULL; } b = xmalloc(strlen(n->cmd->command) + strlen(args) + 1); sprintf(b, "%s%s", n->cmd->command, args); return b; } bird-1.4.0/client/birdcl.c0000644000103200001440000000457712244117701014315 0ustar feelausers/* * BIRD Client - Light variant I/O * * (c) 1999--2004 Martin Mares * (c) 2013 Tomas Hlavacek * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include #include #include #include #include #include "nest/bird.h" #include "lib/resource.h" #include "lib/string.h" #include "client/client.h" #include "sysdep/unix/unix.h" #define INPUT_BUF_LEN 2048 struct termios tty_save; void input_start_list(void) { /* Empty in non-ncurses version. */ } void input_stop_list(void) { /* Empty in non-ncurses version. */ } void input_notify(int prompt) { /* No ncurses -> no status to reveal/hide, print prompt manually. */ if (!prompt) return; printf("bird> "); fflush(stdout); } static int lastnb(char *str, int i) { while (i--) if ((str[i] != ' ') && (str[i] != '\t')) return str[i]; return 0; } void input_read(void) { char buf[INPUT_BUF_LEN]; if ((fgets(buf, INPUT_BUF_LEN, stdin) == NULL) || (buf[0] == 0)) { putchar('\n'); cleanup(); exit(0); } int l = strlen(buf); if ((l+1) == INPUT_BUF_LEN) { printf("Input too long.\n"); return; } if (buf[l-1] == '\n') buf[--l] = '\0'; if (!interactive) printf("%s\n", buf); if (l == 0) return; if (lastnb(buf, l) == '?') { cmd_help(buf, strlen(buf)); return; } submit_command(buf); } static struct termios stored_tty; static int more_active = 0; void more_begin(void) { static struct termios tty; tty = stored_tty; tty.c_lflag &= (~ECHO); tty.c_lflag &= (~ICANON); if (tcsetattr (0, TCSANOW, &tty) < 0) die("tcsetattr: %m"); more_active = 1; } void more_end(void) { more_active = 0; if (tcsetattr (0, TCSANOW, &stored_tty) < 0) die("tcsetattr: %m"); } static void sig_handler(int signal) { cleanup(); exit(0); } void input_init(void) { if (!interactive) return; if (tcgetattr(0, &stored_tty) < 0) die("tcgetattr: %m"); if (signal(SIGINT, sig_handler) == SIG_IGN) signal(SIGINT, SIG_IGN); if (signal(SIGTERM, sig_handler) == SIG_IGN) signal(SIGTERM, SIG_IGN); struct winsize tws; if (ioctl(0, TIOCGWINSZ, &tws) == 0) { term_lns = tws.ws_row; term_cls = tws.ws_col; } } void cleanup(void) { if (more_active) more_end(); } bird-1.4.0/client/Makefile0000644000103200001440000000030612137564446014351 0ustar feelauserssource=commands.c util.c client.c root-rel=../ dir-name=client clients := $(client) birdcl source-dep := $(source) $(addsuffix .c,$(clients)) subdir: $(addsuffix .o,$(clients)) include ../Rules bird-1.4.0/client/birdc.c0000644000103200001440000000745612244117701014140 0ustar feelausers/* * BIRD Client - Readline variant I/O * * (c) 1999--2004 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include #include #include #include #include #include #include "nest/bird.h" #include "lib/resource.h" #include "lib/string.h" #include "client/client.h" #include "sysdep/unix/unix.h" static int input_hidden_end; static int prompt_active; /*** Input ***/ /* HACK: libreadline internals we need to access */ extern int _rl_vis_botlin; extern void _rl_move_vert(int); extern Function *rl_last_func; static void add_history_dedup(char *cmd) { /* Add history line if it differs from the last one */ HIST_ENTRY *he = history_get(history_length); if (!he || strcmp(he->line, cmd)) add_history(cmd); } static void input_got_line(char *cmd_buffer) { if (!cmd_buffer) { cleanup(); exit(0); } if (cmd_buffer[0]) { add_history_dedup(cmd_buffer); submit_command(cmd_buffer); } free(cmd_buffer); } void input_start_list(void) { /* Leave the currently edited line and make space for listing */ _rl_move_vert(_rl_vis_botlin); #ifdef HAVE_RL_CRLF rl_crlf(); #endif } void input_stop_list(void) { /* Reprint the currently edited line after listing */ rl_on_new_line(); rl_redisplay(); } static int input_complete(int arg UNUSED, int key UNUSED) { static int complete_flag; char buf[256]; if (rl_last_func != input_complete) complete_flag = 0; switch (cmd_complete(rl_line_buffer, rl_point, buf, complete_flag)) { case 0: complete_flag = 1; break; case 1: rl_insert_text(buf); break; default: complete_flag = 1; #ifdef HAVE_RL_DING rl_ding(); #endif } return 0; } static int input_help(int arg, int key UNUSED) { int i, in_string, in_bracket; if (arg != 1) return rl_insert(arg, '?'); in_string = in_bracket = 0; for (i = 0; i < rl_point; i++) { if (rl_line_buffer[i] == '"') in_string = ! in_string; else if (! in_string) { if (rl_line_buffer[i] == '[') in_bracket++; else if (rl_line_buffer[i] == ']') in_bracket--; } } /* `?' inside string or path -> insert */ if (in_string || in_bracket) return rl_insert(1, '?'); rl_begin_undo_group(); /* HACK: We want to display `?' at point position */ rl_insert_text("?"); rl_redisplay(); rl_end_undo_group(); input_start_list(); cmd_help(rl_line_buffer, rl_point); rl_undo_command(1, 0); input_stop_list(); return 0; } void input_init(void) { rl_readline_name = "birdc"; rl_add_defun("bird-complete", input_complete, '\t'); rl_add_defun("bird-help", input_help, '?'); rl_callback_handler_install("bird> ", input_got_line); // rl_get_screen_size(); term_lns = LINES; term_cls = COLS; prompt_active = 1; // readline library does strange things when stdin is nonblocking. // if (fcntl(0, F_SETFL, O_NONBLOCK) < 0) // die("fcntl: %m"); } static void input_reveal(void) { /* need this, otherwise some lib seems to eat pending output when the prompt is displayed */ fflush(stdout); tcdrain(STDOUT_FILENO); rl_end = input_hidden_end; rl_expand_prompt("bird> "); rl_forced_update_display(); prompt_active = 1; } static void input_hide(void) { input_hidden_end = rl_end; rl_end = 0; rl_expand_prompt(""); rl_redisplay(); prompt_active = 0; } void input_notify(int prompt) { if (prompt == prompt_active) return; if (prompt) input_reveal(); else input_hide(); } void input_read(void) { rl_callback_read_char(); } void more_begin(void) { } void more_end(void) { } void cleanup(void) { if (init) return; input_hide(); rl_callback_handler_remove(); } bird-1.4.0/configure.in0000644000103200001440000002306112244117701013732 0ustar feelausersdnl ** This is a configure script template for BIRD dnl ** Process it with autoconf to get ./configure dnl ** (c) 1999--2000 Martin Mares AC_REVISION($Id$) AC_INIT(conf/confbase.Y) AC_CONFIG_AUX_DIR(tools) AC_ARG_ENABLE(debug, [ --enable-debug enable internal debugging routines (default: disabled)],,enable_debug=no) AC_ARG_ENABLE(memcheck, [ --enable-memcheck check memory allocations when debugging (default: enabled)],,enable_memcheck=yes) AC_ARG_ENABLE(client, [ --enable-client enable building of BIRD client (default: enabled)],,enable_client=yes) AC_ARG_ENABLE(ipv6, [ --enable-ipv6 enable building of IPv6 version (default: disabled)],,enable_ipv6=no) AC_ARG_ENABLE(pthreads, [ --enable-pthreads enable POSIX threads support (default: detect)],,enable_pthreads=try) AC_ARG_WITH(suffix, [ --with-suffix=STRING use specified suffix for BIRD files (default: 6 for IPv6 version)],[given_suffix="yes"]) AC_ARG_WITH(sysconfig, [ --with-sysconfig=FILE use specified BIRD system configuration file]) AC_ARG_WITH(protocols, [ --with-protocols=LIST include specified routing protocols (default: all)],,[with_protocols="all"]) AC_ARG_WITH(sysinclude, [ --with-sysinclude=PATH search for system includes on specified place]) AC_ARG_WITH(runtimedir, [ --with-runtimedir=PATH path for runtime files (default: $(localstatedir)/run)],[runtimedir="$with_runtimedir"],[runtimedir="\$(localstatedir)/run"]) AC_ARG_WITH(iproutedir, [ --with-iproutedir=PATH path to iproute2 config files (default: /etc/iproute2)],[given_iproutedir="yes"]) AC_ARG_VAR([FLEX], [location of the Flex program]) AC_ARG_VAR([BISON], [location of the Bison program]) AC_ARG_VAR([M4], [location of the M4 program]) if test "$srcdir" = . ; then # Building in current directory => create obj directory holding all objects objdir=obj mkdir -p obj srcdir_rel=.. makefiles="Makefile:tools/Makefile-top.in obj/Makefile:tools/Makefile.in obj/Rules:tools/Rules.in" exedir=.. else # Building in separate directory objdir=. srcdir_rel=$srcdir makefiles="Makefile:tools/Makefile.in Rules:tools/Rules.in" exedir=. fi case $srcdir_rel in /*) srcdir_rel_mf=$srcdir_rel ;; *) srcdir_rel_mf="\$(root-rel)$srcdir_rel" ;; esac AC_SUBST(objdir) AC_SUBST(exedir) AC_SUBST(srcdir_rel_mf) AC_SUBST(runtimedir) if test "$enable_ipv6" = yes ; then ip=ipv6 SUFFIX=6 proto_radv=radv else ip=ipv4 SUFFIX="" fi if test "$given_suffix" = yes ; then SUFFIX="$with_suffix" fi AC_SUBST(SUFFIX) if test "$enable_debug" = yes ; then CONFIG_FILE="bird$SUFFIX.conf" CONTROL_SOCKET="bird$SUFFIX.ctl" else CONFIG_FILE="\$(sysconfdir)/bird$SUFFIX.conf" CONTROL_SOCKET="$runtimedir/bird$SUFFIX.ctl" fi AC_SUBST(CONFIG_FILE) AC_SUBST(CONTROL_SOCKET) AC_SEARCH_LIBS(clock_gettime,[c rt posix4]) AC_CANONICAL_HOST # Store this value because ac_test_CFLAGS is overwritten by AC_PROG_CC if test "$ac_test_CFLAGS" != set ; then bird_cflags_default=yes fi AC_PROG_CC if test -z "$GCC" ; then AC_MSG_ERROR([This program requires the GNU C Compiler.]) fi # Enable threads by default just in Linux and FreeBSD if test "$enable_pthreads" = try ; then case "$host_os" in (linux* | freebsd*) enable_pthreads=try ;; (*) enable_pthreads=no ;; esac fi if test "$enable_pthreads" != no ; then BIRD_CHECK_PTHREADS if test "$bird_cv_lib_pthreads" = yes ; then AC_DEFINE(USE_PTHREADS) CFLAGS="$CFLAGS -pthread" LDFLAGS="$LDFLAGS -pthread" proto_bfd=bfd elif test "$enable_pthreads" = yes ; then AC_MSG_ERROR([POSIX threads not available.]) fi if test "$enable_pthreads" = try ; then enable_pthreads="$bird_cv_lib_pthreads" fi fi if test "$bird_cflags_default" = yes ; then BIRD_CHECK_GCC_OPTION(bird_cv_c_option_wno_pointer_sign, -Wno-pointer-sign, -Wall) BIRD_CHECK_GCC_OPTION(bird_cv_c_option_fno_strict_aliasing, -fno-strict-aliasing) BIRD_CHECK_GCC_OPTION(bird_cv_c_option_fno_strict_overflow, -fno-strict-overflow) CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wno-parentheses" BIRD_ADD_GCC_OPTION(bird_cv_c_option_wno_pointer_sign, -Wno-pointer-sign) BIRD_ADD_GCC_OPTION(bird_cv_c_option_fno_strict_aliasing, -fno-strict-aliasing) BIRD_ADD_GCC_OPTION(bird_cv_c_option_fno_strict_overflow, -fno-strict-overflow) fi AC_MSG_CHECKING([CFLAGS]) AC_MSG_RESULT($CFLAGS) AC_PROG_CPP AC_PROG_INSTALL AC_PROG_RANLIB AC_CHECK_PROG(FLEX, flex, flex) AC_CHECK_PROG(BISON, bison, bison) AC_CHECK_PROGS(M4, gm4 m4) test -z "$FLEX" && AC_MSG_ERROR([Flex is missing.]) test -z "$BISON" && AC_MSG_ERROR([Bison is missing.]) test -z "$M4" && AC_MSG_ERROR([M4 is missing.]) BIRD_CHECK_PROG_FLAVOR_GNU([$M4], , [AC_MSG_ERROR([Provided M4 is not GNU M4.])]) if test -n "$with_sysconfig" -a "$with_sysconfig" != no ; then if test -f $with_sysconfig ; then sysdesc=$with_sysconfig else sysdesc=$srcdir/sysdep/cf/$with_sysconfig if ! test -f $sysdesc ; then sysdesc=$sysdesc.h fi fi elif test -f sysconfig.h ; then sysdesc=sysconfig else case "$ip:$host_os" in ipv6:linux*) sysdesc=linux-v6 default_iproutedir="/etc/iproute2" ;; ipv4:linux*) sysdesc=linux default_iproutedir="/etc/iproute2" ;; ipv6:netbsd*) sysdesc=bsd-v6 CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" LDFLAGS="$LDFLAGS -L/usr/pkg/lib -R/usr/pkg/lib" ;; ipv4:netbsd*) sysdesc=bsd CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" LDFLAGS="$LDFLAGS -L/usr/pkg/lib -R/usr/pkg/lib" ;; ipv6:freebsd*) sysdesc=bsd-v6 ;; ipv4:freebsd*) sysdesc=bsd ;; ipv6:dragonfly*) sysdesc=bsd-v6 ;; ipv4:dragonfly*) sysdesc=bsd ;; ipv6:kfreebsd*) sysdesc=bsd-v6 ;; ipv4:kfreebsd*) sysdesc=bsd ;; ipv6:openbsd*) sysdesc=bsd-v6 ;; ipv4:openbsd*) sysdesc=bsd ;; *) AC_MSG_ERROR([Cannot determine correct system configuration. Please use --with-sysconfig to set it manually.]) ;; esac sysdesc=$srcdir/sysdep/cf/$sysdesc.h fi AC_MSG_CHECKING([which OS configuration should we use]) AC_MSG_RESULT($sysdesc) if ! test -f $sysdesc ; then AC_MSG_ERROR([The system configuration file is missing.]) fi sysname=`echo $sysdesc | sed 's/\.h$//'` AC_DEFINE_UNQUOTED(SYSCONF_INCLUDE, "$sysdesc") AC_MSG_CHECKING([system-dependent directories]) sysdep_dirs="`sed <$sysdesc '/^Link: /!d;s/^Link: \(.*\)$/\1/' | tr '\012' ' '` lib" AC_MSG_RESULT($sysdep_dirs) AC_SUBST(sysdep_dirs) if test "$with_iproutedir" = no ; then with_iproutedir= ; fi if test -n "$given_iproutedir" then iproutedir=$with_iproutedir else iproutedir=$default_iproutedir fi AC_SUBST(iproutedir) all_protocols="$proto_bfd bgp ospf pipe $proto_radv rip static" all_protocols=`echo $all_protocols | sed 's/ /,/g'` if test "$with_protocols" = all ; then with_protocols="$all_protocols" fi AC_MSG_CHECKING([protocols]) protocols=`echo "$with_protocols" | sed 's/,/ /g'` if test "$protocols" = no ; then protocols= ; fi for a in $protocols ; do if ! test -f $srcdir/proto/$a/Makefile ; then AC_MSG_RESULT(failed) AC_MSG_ERROR([Requested protocol $a not found.]) fi AC_DEFINE_UNQUOTED(CONFIG_`echo $a | tr 'a-z' 'A-Z'`) done AC_MSG_RESULT(ok) AC_SUBST(protocols) case $sysdesc in */linux*|*/linux-v6*) AC_CHECK_HEADER(linux/rtnetlink.h,,[AC_MSG_ERROR([Appropriate version of Linux kernel headers not found.])],[ #include #include ]) ;; esac AC_CHECK_HEADER(syslog.h, [AC_DEFINE(HAVE_SYSLOG)]) AC_CHECK_HEADER(alloca.h, [AC_DEFINE(HAVE_ALLOCA_H)]) AC_MSG_CHECKING(whether 'struct sockaddr' has sa_len) AC_TRY_COMPILE([#include #include ], [static struct sockaddr sa; int i = sizeof(sa.sa_len);], [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_SIN_LEN,,sin_len)], AC_MSG_RESULT(no)) AC_C_BIGENDIAN([AC_DEFINE(CPU_BIG_ENDIAN)], [AC_DEFINE(CPU_LITTLE_ENDIAN)], [AC_MSG_ERROR([Cannot determine CPU endianity.])]) BIRD_CHECK_INTEGERS BIRD_CHECK_STRUCT_ALIGN BIRD_CHECK_TIME_T BIRD_CHECK_STRUCT_IP_MREQN if test "$enable_debug" = yes ; then AC_DEFINE(DEBUGGING) if test "$enable_memcheck" = yes ; then AC_CHECK_LIB(dmalloc, dmalloc_debug) if test $ac_cv_lib_dmalloc_dmalloc_debug != yes ; then AC_CHECK_LIB(efence, malloc) fi fi fi CLIENT= CLIENT_LIBS= if test "$enable_client" = yes ; then CLIENT=birdc AC_CHECK_LIB(history, add_history, CLIENT_LIBS="-lhistory") AC_CHECK_LIB(ncurses, tgetent, USE_TERMCAP_LIB=-lncurses, AC_CHECK_LIB(curses, tgetent, USE_TERMCAP_LIB=-lcurses, AC_CHECK_LIB(tinfow, tgetent, USE_TERMCAP_LIB=-ltinfow, AC_CHECK_LIB(tinfo, tgetent, USE_TERMCAP_LIB=-ltinfo AC_CHECK_LIB(termcap, tgetent, USE_TERMCAP_LIB=-ltermcap))))) AC_CHECK_LIB(readline, rl_callback_read_char, CLIENT_LIBS="-lreadline $CLIENT_LIBS $USE_TERMCAP_LIB", AC_MSG_ERROR([[The client requires GNU readline library 2.1 or newer. Either install the library or use --disable-client to compile without the client.]]), $USE_TERMCAP_LIB) AC_CHECK_LIB(readline, rl_crlf, AC_DEFINE(HAVE_RL_CRLF),,$USE_TERMCAP_LIB) AC_CHECK_LIB(readline, rl_ding, AC_DEFINE(HAVE_RL_DING),,$USE_TERMCAP_LIB) fi AC_SUBST(CLIENT) AC_SUBST(CLIENT_LIBS) mkdir -p $objdir/sysdep AC_CONFIG_HEADERS([$objdir/sysdep/autoconf.h:sysdep/autoconf.h.in]) AC_CONFIG_COMMANDS([merge],[[export CPP="$CPP" $srcdir/tools/mergedirs $srcdir $srcdir_rel $objdir $sysdep_dirs]], [[srcdir=$srcdir] [srcdir_rel=$srcdir_rel] [objdir=$objdir] [sysdep_dirs="$sysdep_dirs"]]) AC_CONFIG_FILES($makefiles) AC_OUTPUT rm -f $objdir/sysdep/paths.h cat >&AC_FD_MSG < * * Can be freely distributed and used under the terms of the GNU GPL. */ #define CONFIG_AUTO_ROUTES #define CONFIG_SELF_CONSCIOUS #define CONFIG_MULTIPLE_TABLES #define CONFIG_ALL_TABLES_AT_ONCE #define CONFIG_MC_PROPER_SRC #define CONFIG_UNIX_DONTROUTE #define CONFIG_RESTRICTED_PRIVILEGES /* Link: sysdep/linux Link: sysdep/unix */ bird-1.4.0/sysdep/cf/README0000644000103200001440000000124212010156300014162 0ustar feelausersAvailable configuration variables: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CONFIG_AUTO_ROUTES Device routes are added automagically by the kernel CONFIG_SELF_CONSCIOUS We're able to recognize whether route was installed by us CONFIG_MULTIPLE_TABLES The kernel supports multiple routing tables CONFIG_ALL_TABLES_AT_ONCE Kernel scanner wants to process all tables at once CONFIG_MC_PROPER_SRC Multicast packets have source address according to socket saddr field CONFIG_SKIP_MC_BIND Don't call bind on multicast socket (def for *BSD) CONFIG_UNIX_DONTROUTE Use setsockopts DONTROUTE (undef for *BSD) CONFIG_RESTRICTED_PRIVILEGES Implements restricted privileges using drop_uid() bird-1.4.0/sysdep/cf/linux-v6.h0000644000103200001440000000062012010156300015142 0ustar feelausers/* * Configuration for Linux based systems running IPv6 * * (c) 1998--1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #define IPV6 #define CONFIG_AUTO_ROUTES #define CONFIG_SELF_CONSCIOUS #define CONFIG_MULTIPLE_TABLES #define CONFIG_ALL_TABLES_AT_ONCE #define CONFIG_RESTRICTED_PRIVILEGES /* Link: sysdep/linux Link: sysdep/unix */ bird-1.4.0/sysdep/cf/bsd-v6.h0000644000103200001440000000062212244117701014570 0ustar feelausers/* * Configuration for *BSD based systems (tested on FreeBSD and NetBSD) * * (c) 2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ #define IPV6 #define CONFIG_AUTO_ROUTES #define CONFIG_SELF_CONSCIOUS #define CONFIG_MULTIPLE_TABLES #define CONFIG_SKIP_MC_BIND #define CONFIG_NO_IFACE_BIND /* Link: sysdep/unix Link: sysdep/bsd */ bird-1.4.0/sysdep/cf/bsd.h0000644000103200001440000000060412244117701014237 0ustar feelausers/* * Configuration for *BSD based systems (tested on FreeBSD and NetBSD) * * (c) 2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ #define CONFIG_AUTO_ROUTES #define CONFIG_SELF_CONSCIOUS #define CONFIG_MULTIPLE_TABLES #define CONFIG_SKIP_MC_BIND #define CONFIG_NO_IFACE_BIND /* Link: sysdep/unix Link: sysdep/bsd */ bird-1.4.0/sysdep/autoconf.h.in0000644000103200001440000000232412244117701015323 0ustar feelausers/* * This file contains all system parameters automatically * discovered by the configure script. */ /* System configuration file */ #define SYSCONF_INCLUDE ? /* Include debugging code */ #undef DEBUGGING /* 8-bit integer type */ #define INTEGER_8 ? /* 16-bit integer type */ #define INTEGER_16 ? /* 32-bit integer type */ #define INTEGER_32 ? /* 64-bit integer type */ #define INTEGER_64 ? /* CPU endianity */ #undef CPU_LITTLE_ENDIAN #undef CPU_BIG_ENDIAN /* Usual alignment for structures */ #define CPU_STRUCT_ALIGN 1 /* Characteristics of time_t */ #undef TIME_T_IS_64BIT #undef TIME_T_IS_SIGNED /* We have struct ip_mreqn in */ #undef HAVE_STRUCT_IP_MREQN /* Protocols compiled in */ #undef CONFIG_STATIC #undef CONFIG_RIP #undef CONFIG_RADV #undef CONFIG_BFD #undef CONFIG_BGP #undef CONFIG_OSPF #undef CONFIG_PIPE /* We use multithreading */ #undef USE_PTHREADS /* We have and syslog() */ #undef HAVE_SYSLOG /* We have */ #undef HAVE_ALLOCA_H /* Are we using dmalloc? */ #undef HAVE_LIBDMALLOC /* Readline stuff */ #undef HAVE_RL_CRLF #undef HAVE_RL_DING /* struct sockaddr_in(6) */ #undef HAVE_SIN_LEN /* We have stdint.h */ #undef HAVE_STDINT_H #define CONFIG_PATH ? bird-1.4.0/sysdep/Doc0000644000103200001440000000002511606273733013364 0ustar feelausersD sysdep.sgml C unix bird-1.4.0/sysdep/sysdep.sgml0000644000103200001440000000173711606273733015142 0ustar feelausers System dependent parts Introduction

We've tried to make BIRD as portable as possible, but unfortunately communication with the network stack differs from one OS to another, so we need at least some OS specific code. The good news is that this code is isolated in a small set of modules: is a header file with configuration information, definition of the standard set of types and so on. bird-1.4.0/sysdep/config.h0000644000103200001440000000157012244656136014361 0ustar feelausers/* * This file contains all parameters dependent on the * operating system and build-time configuration. */ #ifndef _BIRD_CONFIG_H_ #define _BIRD_CONFIG_H_ /* BIRD version */ #define BIRD_VERSION "1.4.0" /* Include parameters determined by configure script */ #include "sysdep/autoconf.h" /* Include OS configuration file as chosen in autoconf.h */ #include SYSCONF_INCLUDE #ifndef MACROS_ONLY /* * Of course we could add the paths to autoconf.h, but autoconf * is stupid and puts make-specific substitutious to the paths. */ #include "sysdep/paths.h" /* Types */ typedef signed INTEGER_8 s8; typedef unsigned INTEGER_8 u8; typedef INTEGER_16 s16; typedef unsigned INTEGER_16 u16; typedef INTEGER_32 s32; typedef unsigned INTEGER_32 u32; typedef INTEGER_64 s64; typedef unsigned INTEGER_64 u64; typedef u8 byte; typedef u16 word; typedef unsigned int uint; #endif #endif bird-1.4.0/sysdep/unix/0000755000103200001440000000000012244656136013723 5ustar feelausersbird-1.4.0/sysdep/unix/krt.c0000644000103200001440000006111312244656136014671 0ustar feelausers/* * BIRD -- UNIX Kernel Synchronization * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Kernel synchronization * * This system dependent module implements the Kernel and Device protocol, * that is synchronization of interface lists and routing tables with the * OS kernel. * * The whole kernel synchronization is a bit messy and touches some internals * of the routing table engine, because routing table maintenance is a typical * example of the proverbial compatibility between different Unices and we want * to keep the overhead of our KRT business as low as possible and avoid maintaining * a local routing table copy. * * The kernel syncer can work in three different modes (according to system config header): * Either with a single routing table and single KRT protocol [traditional UNIX] * or with many routing tables and separate KRT protocols for all of them * or with many routing tables, but every scan including all tables, so we start * separate KRT protocols which cooperate with each other [Linux]. * In this case, we keep only a single scan timer. * * We use FIB node flags in the routing table to keep track of route * synchronization status. We also attach temporary &rte's to the routing table, * but it cannot do any harm to the rest of BIRD since table synchronization is * an atomic process. * * When starting up, we cheat by looking if there is another * KRT instance to be initialized later and performing table scan * only once for all the instances. * * The code uses OS-dependent parts for kernel updates and scans. These parts are * in more specific sysdep directories (e.g. sysdep/linux) in functions krt_sys_* * and kif_sys_* (and some others like krt_replace_rte()) and krt-sys.h header file. * This is also used for platform specific protocol options and route attributes. * * There was also an old code that used traditional UNIX ioctls for these tasks. * It was unmaintained and later removed. For reference, see sysdep/krt-* files * in commit 396dfa9042305f62da1f56589c4b98fac57fc2f6 */ /* * If you are brave enough, continue now. You cannot say you haven't been warned. */ #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/iface.h" #include "nest/route.h" #include "nest/protocol.h" #include "filter/filter.h" #include "lib/timer.h" #include "conf/conf.h" #include "lib/string.h" #include "unix.h" #include "krt.h" /* * Global resources */ pool *krt_pool; static linpool *krt_filter_lp; static list krt_proto_list; void krt_io_init(void) { krt_pool = rp_new(&root_pool, "Kernel Syncer"); krt_filter_lp = lp_new(krt_pool, 4080); init_list(&krt_proto_list); } /* * Interfaces */ static struct kif_config *kif_cf; static struct kif_proto *kif_proto; static timer *kif_scan_timer; static bird_clock_t kif_last_shot; static void kif_scan(timer *t) { struct kif_proto *p = t->data; KRT_TRACE(p, D_EVENTS, "Scanning interfaces"); kif_last_shot = now; kif_do_scan(p); } static void kif_force_scan(void) { if (kif_proto && kif_last_shot + 2 < now) { kif_scan(kif_scan_timer); tm_start(kif_scan_timer, ((struct kif_config *) kif_proto->p.cf)->scan_time); } } void kif_request_scan(void) { if (kif_proto && kif_scan_timer->expires > now) tm_start(kif_scan_timer, 1); } static inline int prefer_addr(struct ifa *a, struct ifa *b) { int sa = a->scope > SCOPE_LINK; int sb = b->scope > SCOPE_LINK; if (sa < sb) return 0; else if (sa > sb) return 1; else return ipa_compare(a->ip, b->ip) < 0; } static inline struct ifa * find_preferred_ifa(struct iface *i, ip_addr prefix, ip_addr mask) { struct ifa *a, *b = NULL; WALK_LIST(a, i->addrs) { if (!(a->flags & IA_SECONDARY) && ipa_equal(ipa_and(a->ip, mask), prefix) && (!b || prefer_addr(a, b))) b = a; } return b; } struct ifa * kif_choose_primary(struct iface *i) { struct kif_config *cf = (struct kif_config *) (kif_proto->p.cf); struct kif_primary_item *it; struct ifa *a; WALK_LIST(it, cf->primary) { if (!it->pattern || patmatch(it->pattern, i->name)) if (a = find_preferred_ifa(i, it->prefix, ipa_mkmask(it->pxlen))) return a; } if (a = kif_get_primary_ip(i)) return a; return find_preferred_ifa(i, IPA_NONE, IPA_NONE); } static struct proto * kif_init(struct proto_config *c) { struct kif_proto *p = proto_new(c, sizeof(struct kif_proto)); kif_sys_init(p); return &p->p; } static int kif_start(struct proto *P) { struct kif_proto *p = (struct kif_proto *) P; kif_proto = p; kif_sys_start(p); /* Start periodic interface scanning */ kif_scan_timer = tm_new(P->pool); kif_scan_timer->hook = kif_scan; kif_scan_timer->data = p; kif_scan_timer->recurrent = KIF_CF->scan_time; kif_scan(kif_scan_timer); tm_start(kif_scan_timer, KIF_CF->scan_time); return PS_UP; } static int kif_shutdown(struct proto *P) { struct kif_proto *p = (struct kif_proto *) P; tm_stop(kif_scan_timer); kif_sys_shutdown(p); kif_proto = NULL; return PS_DOWN; } static int kif_reconfigure(struct proto *p, struct proto_config *new) { struct kif_config *o = (struct kif_config *) p->cf; struct kif_config *n = (struct kif_config *) new; if (!kif_sys_reconfigure((struct kif_proto *) p, n, o)) return 0; if (o->scan_time != n->scan_time) { tm_stop(kif_scan_timer); kif_scan_timer->recurrent = n->scan_time; kif_scan(kif_scan_timer); tm_start(kif_scan_timer, n->scan_time); } if (!EMPTY_LIST(o->primary) || !EMPTY_LIST(n->primary)) { /* This is hack, we have to update a configuration * to the new value just now, because it is used * for recalculation of primary addresses. */ p->cf = new; ifa_recalc_all_primary_addresses(); } return 1; } static void kif_preconfig(struct protocol *P UNUSED, struct config *c) { kif_cf = NULL; kif_sys_preconfig(c); } struct proto_config * kif_init_config(int class) { if (kif_cf) cf_error("Kernel device protocol already defined"); kif_cf = (struct kif_config *) proto_config_new(&proto_unix_iface, sizeof(struct kif_config), class); kif_cf->scan_time = 60; init_list(&kif_cf->primary); kif_sys_init_config(kif_cf); return (struct proto_config *) kif_cf; } static void kif_copy_config(struct proto_config *dest, struct proto_config *src) { struct kif_config *d = (struct kif_config *) dest; struct kif_config *s = (struct kif_config *) src; /* Shallow copy of everything (just scan_time currently) */ proto_copy_rest(dest, src, sizeof(struct kif_config)); /* Copy primary addr list */ cfg_copy_list(&d->primary, &s->primary, sizeof(struct kif_primary_item)); /* Fix sysdep parts */ kif_sys_copy_config(d, s); } struct protocol proto_unix_iface = { name: "Device", template: "device%d", preference: DEF_PREF_DIRECT, preconfig: kif_preconfig, init: kif_init, start: kif_start, shutdown: kif_shutdown, reconfigure: kif_reconfigure, copy_config: kif_copy_config }; /* * Tracing of routes */ static inline void krt_trace_in(struct krt_proto *p, rte *e, char *msg) { if (p->p.debug & D_PACKETS) log(L_TRACE "%s: %I/%d: %s", p->p.name, e->net->n.prefix, e->net->n.pxlen, msg); } static inline void krt_trace_in_rl(struct rate_limit *rl, struct krt_proto *p, rte *e, char *msg) { if (p->p.debug & D_PACKETS) log_rl(rl, L_TRACE "%s: %I/%d: %s", p->p.name, e->net->n.prefix, e->net->n.pxlen, msg); } /* * Inherited Routes */ #ifdef KRT_ALLOW_LEARN static struct rate_limit rl_alien_seen, rl_alien_updated, rl_alien_created, rl_alien_ignored; /* * krt_same_key() specifies what (aside from the net) is the key in * kernel routing tables. It should be OS-dependent, this is for * Linux. It is important for asynchronous alien updates, because a * positive update is implicitly a negative one for any old route with * the same key. */ static inline int krt_same_key(rte *a, rte *b) { return a->u.krt.metric == b->u.krt.metric; } static inline int krt_uptodate(rte *a, rte *b) { if (a->attrs != b->attrs) return 0; if (a->u.krt.proto != b->u.krt.proto) return 0; return 1; } static void krt_learn_announce_update(struct krt_proto *p, rte *e) { net *n = e->net; rta *aa = rta_clone(e->attrs); rte *ee = rte_get_temp(aa); net *nn = net_get(p->p.table, n->n.prefix, n->n.pxlen); ee->net = nn; ee->pflags = 0; ee->pref = p->p.preference; ee->u.krt = e->u.krt; rte_update(p->p.table, nn, &p->p, &p->p, ee); } static void krt_learn_announce_delete(struct krt_proto *p, net *n) { n = net_find(p->p.table, n->n.prefix, n->n.pxlen); if (n) rte_update(p->p.table, n, &p->p, &p->p, NULL); } /* Called when alien route is discovered during scan */ static void krt_learn_scan(struct krt_proto *p, rte *e) { net *n0 = e->net; net *n = net_get(&p->krt_table, n0->n.prefix, n0->n.pxlen); rte *m, **mm; e->attrs = rta_lookup(e->attrs); for(mm=&n->routes; m = *mm; mm=&m->next) if (krt_same_key(m, e)) break; if (m) { if (krt_uptodate(m, e)) { krt_trace_in_rl(&rl_alien_seen, p, e, "[alien] seen"); rte_free(e); m->u.krt.seen = 1; } else { krt_trace_in_rl(&rl_alien_updated, p, e, "[alien] updated"); *mm = m->next; rte_free(m); m = NULL; } } else krt_trace_in_rl(&rl_alien_created, p, e, "[alien] created"); if (!m) { e->next = n->routes; n->routes = e; e->u.krt.seen = 1; } } static void krt_learn_prune(struct krt_proto *p) { struct fib *fib = &p->krt_table.fib; struct fib_iterator fit; KRT_TRACE(p, D_EVENTS, "Pruning inherited routes"); FIB_ITERATE_INIT(&fit, fib); again: FIB_ITERATE_START(fib, &fit, f) { net *n = (net *) f; rte *e, **ee, *best, **pbest, *old_best; old_best = n->routes; best = NULL; pbest = NULL; ee = &n->routes; while (e = *ee) { if (!e->u.krt.seen) { *ee = e->next; rte_free(e); continue; } if (!best || best->u.krt.metric > e->u.krt.metric) { best = e; pbest = ee; } e->u.krt.seen = 0; ee = &e->next; } if (!n->routes) { DBG("%I/%d: deleting\n", n->n.prefix, n->n.pxlen); if (old_best) { krt_learn_announce_delete(p, n); n->n.flags &= ~KRF_INSTALLED; } FIB_ITERATE_PUT(&fit, f); fib_delete(fib, f); goto again; } *pbest = best->next; best->next = n->routes; n->routes = best; if (best != old_best || !(n->n.flags & KRF_INSTALLED)) { DBG("%I/%d: announcing (metric=%d)\n", n->n.prefix, n->n.pxlen, best->u.krt.metric); krt_learn_announce_update(p, best); n->n.flags |= KRF_INSTALLED; } else DBG("%I/%d: uptodate (metric=%d)\n", n->n.prefix, n->n.pxlen, best->u.krt.metric); } FIB_ITERATE_END(f); } static void krt_learn_async(struct krt_proto *p, rte *e, int new) { net *n0 = e->net; net *n = net_get(&p->krt_table, n0->n.prefix, n0->n.pxlen); rte *g, **gg, *best, **bestp, *old_best; e->attrs = rta_lookup(e->attrs); old_best = n->routes; for(gg=&n->routes; g = *gg; gg = &g->next) if (krt_same_key(g, e)) break; if (new) { if (g) { if (krt_uptodate(g, e)) { krt_trace_in(p, e, "[alien async] same"); rte_free(e); return; } krt_trace_in(p, e, "[alien async] updated"); *gg = g->next; rte_free(g); } else krt_trace_in(p, e, "[alien async] created"); e->next = n->routes; n->routes = e; } else if (!g) { krt_trace_in(p, e, "[alien async] delete failed"); rte_free(e); return; } else { krt_trace_in(p, e, "[alien async] removed"); *gg = g->next; rte_free(e); rte_free(g); } best = n->routes; bestp = &n->routes; for(gg=&n->routes; g=*gg; gg=&g->next) if (best->u.krt.metric > g->u.krt.metric) { best = g; bestp = gg; } if (best) { *bestp = best->next; best->next = n->routes; n->routes = best; } if (best != old_best) { DBG("krt_learn_async: distributing change\n"); if (best) { krt_learn_announce_update(p, best); n->n.flags |= KRF_INSTALLED; } else { n->routes = NULL; krt_learn_announce_delete(p, n); n->n.flags &= ~KRF_INSTALLED; } } } static void krt_learn_init(struct krt_proto *p) { if (KRT_CF->learn) rt_setup(p->p.pool, &p->krt_table, "Inherited", NULL); } static void krt_dump(struct proto *P) { struct krt_proto *p = (struct krt_proto *) P; if (!KRT_CF->learn) return; debug("KRT: Table of inheritable routes\n"); rt_dump(&p->krt_table); } static void krt_dump_attrs(rte *e) { debug(" [m=%d,p=%d,t=%d]", e->u.krt.metric, e->u.krt.proto, e->u.krt.type); } #endif /* * Routes */ static void krt_flush_routes(struct krt_proto *p) { struct rtable *t = p->p.table; KRT_TRACE(p, D_EVENTS, "Flushing kernel routes"); FIB_WALK(&t->fib, f) { net *n = (net *) f; rte *e = n->routes; if (rte_is_valid(e) && (n->n.flags & KRF_INSTALLED)) { /* FIXME: this does not work if gw is changed in export filter */ krt_replace_rte(p, e->net, NULL, e, NULL); n->n.flags &= ~KRF_INSTALLED; } } FIB_WALK_END; } static int krt_same_dest(rte *k, rte *e) { rta *ka = k->attrs, *ea = e->attrs; if (ka->dest != ea->dest) return 0; switch (ka->dest) { case RTD_ROUTER: return ipa_equal(ka->gw, ea->gw); case RTD_DEVICE: return !strcmp(ka->iface->name, ea->iface->name); case RTD_MULTIPATH: return mpnh_same(ka->nexthops, ea->nexthops); default: return 1; } } /* * This gets called back when the low-level scanning code discovers a route. * We expect that the route is a temporary rte and its attributes are uncached. */ void krt_got_route(struct krt_proto *p, rte *e) { rte *old; net *net = e->net; int verdict; #ifdef KRT_ALLOW_LEARN switch (e->u.krt.src) { case KRT_SRC_KERNEL: verdict = KRF_IGNORE; goto sentenced; case KRT_SRC_REDIRECT: verdict = KRF_DELETE; goto sentenced; case KRT_SRC_ALIEN: if (KRT_CF->learn) krt_learn_scan(p, e); else { krt_trace_in_rl(&rl_alien_ignored, p, e, "[alien] ignored"); rte_free(e); } return; } #endif /* The rest is for KRT_SRC_BIRD (or KRT_SRC_UNKNOWN) */ if (net->n.flags & KRF_VERDICT_MASK) { /* Route to this destination was already seen. Strange, but it happens... */ krt_trace_in(p, e, "already seen"); rte_free(e); return; } old = net->routes; if ((net->n.flags & KRF_INSTALLED) && rte_is_valid(old)) { /* There may be changes in route attributes, we ignore that. Also, this does not work well if gw is changed in export filter */ if ((net->n.flags & KRF_SYNC_ERROR) || ! krt_same_dest(e, old)) verdict = KRF_UPDATE; else verdict = KRF_SEEN; } else verdict = KRF_DELETE; sentenced: krt_trace_in(p, e, ((char *[]) { "?", "seen", "will be updated", "will be removed", "ignored" }) [verdict]); net->n.flags = (net->n.flags & ~KRF_VERDICT_MASK) | verdict; if (verdict == KRF_UPDATE || verdict == KRF_DELETE) { /* Get a cached copy of attributes and temporarily link the route */ rta *a = e->attrs; a->source = RTS_DUMMY; e->attrs = rta_lookup(a); e->next = net->routes; net->routes = e; } else rte_free(e); } static inline int krt_export_rte(struct krt_proto *p, rte **new, ea_list **tmpa) { struct filter *filter = p->p.main_ahook->out_filter; if (! *new) return 0; if (filter == FILTER_REJECT) return 0; if (filter == FILTER_ACCEPT) return 1; struct proto *src = (*new)->attrs->proto; *tmpa = src->make_tmp_attrs ? src->make_tmp_attrs(*new, krt_filter_lp) : NULL; return f_run(filter, new, tmpa, krt_filter_lp, FF_FORCE_TMPATTR) <= F_ACCEPT; } static void krt_prune(struct krt_proto *p) { struct rtable *t = p->p.table; KRT_TRACE(p, D_EVENTS, "Pruning table %s", t->name); FIB_WALK(&t->fib, f) { net *n = (net *) f; int verdict = f->flags & KRF_VERDICT_MASK; rte *new, *new0, *old; ea_list *tmpa = NULL; if (verdict == KRF_UPDATE || verdict == KRF_DELETE) { /* Get a dummy route from krt_got_route() */ old = n->routes; n->routes = old->next; } else old = NULL; new = new0 = n->routes; if (verdict == KRF_CREATE || verdict == KRF_UPDATE) { /* We have to run export filter to get proper 'new' route */ if (! krt_export_rte(p, &new, &tmpa)) { /* Route rejected, should not happen (KRF_INSTALLED) but to be sure .. */ verdict = (verdict == KRF_CREATE) ? KRF_IGNORE : KRF_DELETE; } else { ea_list **x = &tmpa; while (*x) x = &((*x)->next); *x = new ? new->attrs->eattrs : NULL; } } switch (verdict) { case KRF_CREATE: if (new && (f->flags & KRF_INSTALLED)) { krt_trace_in(p, new, "reinstalling"); krt_replace_rte(p, n, new, NULL, tmpa); } break; case KRF_SEEN: case KRF_IGNORE: /* Nothing happens */ break; case KRF_UPDATE: krt_trace_in(p, new, "updating"); krt_replace_rte(p, n, new, old, tmpa); break; case KRF_DELETE: krt_trace_in(p, old, "deleting"); krt_replace_rte(p, n, NULL, old, NULL); break; default: bug("krt_prune: invalid route status"); } if (old) rte_free(old); if (new != new0) rte_free(new); lp_flush(krt_filter_lp); f->flags &= ~KRF_VERDICT_MASK; } FIB_WALK_END; #ifdef KRT_ALLOW_LEARN if (KRT_CF->learn) krt_learn_prune(p); #endif p->initialized = 1; } void krt_got_route_async(struct krt_proto *p, rte *e, int new) { net *net = e->net; switch (e->u.krt.src) { case KRT_SRC_BIRD: ASSERT(0); /* Should be filtered by the back end */ case KRT_SRC_REDIRECT: if (new) { krt_trace_in(p, e, "[redirect] deleting"); krt_replace_rte(p, net, NULL, e, NULL); } /* If !new, it is probably echo of our deletion */ break; #ifdef KRT_ALLOW_LEARN case KRT_SRC_ALIEN: if (KRT_CF->learn) { krt_learn_async(p, e, new); return; } #endif } rte_free(e); } /* * Periodic scanning */ #ifdef CONFIG_ALL_TABLES_AT_ONCE static timer *krt_scan_timer; static int krt_scan_count; static void krt_scan(timer *t UNUSED) { struct krt_proto *p; kif_force_scan(); /* We need some node to decide whether to print the debug messages or not */ p = SKIP_BACK(struct krt_proto, krt_node, HEAD(krt_proto_list)); KRT_TRACE(p, D_EVENTS, "Scanning routing table"); krt_do_scan(NULL); void *q; WALK_LIST(q, krt_proto_list) { p = SKIP_BACK(struct krt_proto, krt_node, q); krt_prune(p); } } static void krt_scan_timer_start(struct krt_proto *p) { if (!krt_scan_count) krt_scan_timer = tm_new_set(krt_pool, krt_scan, NULL, 0, KRT_CF->scan_time); krt_scan_count++; tm_start(krt_scan_timer, 0); } static void krt_scan_timer_stop(struct krt_proto *p) { krt_scan_count--; if (!krt_scan_count) { rfree(krt_scan_timer); krt_scan_timer = NULL; } } #else static void krt_scan(timer *t) { struct krt_proto *p = t->data; kif_force_scan(); KRT_TRACE(p, D_EVENTS, "Scanning routing table"); krt_do_scan(p); krt_prune(p); } static void krt_scan_timer_start(struct krt_proto *p) { p->scan_timer = tm_new_set(p->p.pool, krt_scan, p, 0, KRT_CF->scan_time); tm_start(p->scan_timer, 0); } static void krt_scan_timer_stop(struct krt_proto *p) { tm_stop(p->scan_timer); } #endif /* * Updates */ static struct ea_list * krt_make_tmp_attrs(rte *rt, struct linpool *pool) { struct ea_list *l = lp_alloc(pool, sizeof(struct ea_list) + 2 * sizeof(eattr)); l->next = NULL; l->flags = EALF_SORTED; l->count = 2; l->attrs[0].id = EA_KRT_SOURCE; l->attrs[0].flags = 0; l->attrs[0].type = EAF_TYPE_INT | EAF_TEMP; l->attrs[0].u.data = rt->u.krt.proto; l->attrs[1].id = EA_KRT_METRIC; l->attrs[1].flags = 0; l->attrs[1].type = EAF_TYPE_INT | EAF_TEMP; l->attrs[1].u.data = rt->u.krt.metric; return l; } static void krt_store_tmp_attrs(rte *rt, struct ea_list *attrs) { /* EA_KRT_SOURCE is read-only */ rt->u.krt.metric = ea_get_int(attrs, EA_KRT_METRIC, 0); } static int krt_import_control(struct proto *P, rte **new, ea_list **attrs, struct linpool *pool) { struct krt_proto *p = (struct krt_proto *) P; rte *e = *new; if (e->attrs->proto == P) return -1; if (!KRT_CF->devroutes && (e->attrs->dest == RTD_DEVICE) && (e->attrs->source != RTS_STATIC_DEVICE)) return -1; if (!krt_capable(e)) return -1; return 0; } static void krt_notify(struct proto *P, struct rtable *table UNUSED, net *net, rte *new, rte *old, struct ea_list *eattrs) { struct krt_proto *p = (struct krt_proto *) P; if (config->shutdown) return; if (!(net->n.flags & KRF_INSTALLED)) old = NULL; if (new) net->n.flags |= KRF_INSTALLED; else net->n.flags &= ~KRF_INSTALLED; if (p->initialized) /* Before first scan we don't touch the routes */ krt_replace_rte(p, net, new, old, eattrs); } static int krt_rte_same(rte *a, rte *b) { /* src is always KRT_SRC_ALIEN and type is irrelevant */ return (a->u.krt.proto == b->u.krt.proto) && (a->u.krt.metric == b->u.krt.metric); } /* * Protocol glue */ struct krt_config *krt_cf; static struct proto * krt_init(struct proto_config *c) { struct krt_proto *p = proto_new(c, sizeof(struct krt_proto)); p->p.accept_ra_types = RA_OPTIMAL; p->p.make_tmp_attrs = krt_make_tmp_attrs; p->p.store_tmp_attrs = krt_store_tmp_attrs; p->p.import_control = krt_import_control; p->p.rt_notify = krt_notify; p->p.rte_same = krt_rte_same; krt_sys_init(p); return &p->p; } static int krt_start(struct proto *P) { struct krt_proto *p = (struct krt_proto *) P; add_tail(&krt_proto_list, &p->krt_node); #ifdef KRT_ALLOW_LEARN krt_learn_init(p); #endif krt_sys_start(p); krt_scan_timer_start(p); return PS_UP; } static int krt_shutdown(struct proto *P) { struct krt_proto *p = (struct krt_proto *) P; krt_scan_timer_stop(p); /* FIXME we should flush routes even when persist during reconfiguration */ if (p->initialized && !KRT_CF->persist) krt_flush_routes(p); krt_sys_shutdown(p); rem_node(&p->krt_node); return PS_DOWN; } static int krt_reconfigure(struct proto *p, struct proto_config *new) { struct krt_config *o = (struct krt_config *) p->cf; struct krt_config *n = (struct krt_config *) new; if (!krt_sys_reconfigure((struct krt_proto *) p, n, o)) return 0; /* persist needn't be the same */ return o->scan_time == n->scan_time && o->learn == n->learn && o->devroutes == n->devroutes; } static void krt_preconfig(struct protocol *P UNUSED, struct config *c) { krt_cf = NULL; krt_sys_preconfig(c); } static void krt_postconfig(struct proto_config *C) { struct krt_config *c = (struct krt_config *) C; #ifdef CONFIG_ALL_TABLES_AT_ONCE if (krt_cf->scan_time != c->scan_time) cf_error("All kernel syncers must use the same table scan interval"); #endif if (C->table->krt_attached) cf_error("Kernel syncer (%s) already attached to table %s", C->table->krt_attached->name, C->table->name); C->table->krt_attached = C; krt_sys_postconfig(c); } struct proto_config * krt_init_config(int class) { #ifndef CONFIG_MULTIPLE_TABLES if (krt_cf) cf_error("Kernel protocol already defined"); #endif krt_cf = (struct krt_config *) proto_config_new(&proto_unix_kernel, sizeof(struct krt_config), class); krt_cf->scan_time = 60; krt_sys_init_config(krt_cf); return (struct proto_config *) krt_cf; } static void krt_copy_config(struct proto_config *dest, struct proto_config *src) { struct krt_config *d = (struct krt_config *) dest; struct krt_config *s = (struct krt_config *) src; /* Shallow copy of everything */ proto_copy_rest(dest, src, sizeof(struct krt_config)); /* Fix sysdep parts */ krt_sys_copy_config(d, s); } static int krt_get_attr(eattr * a, byte * buf, int buflen UNUSED) { switch (a->id) { case EA_KRT_SOURCE: bsprintf(buf, "source"); return GA_NAME; case EA_KRT_METRIC: bsprintf(buf, "metric"); return GA_NAME; case EA_KRT_PREFSRC: bsprintf(buf, "prefsrc"); return GA_NAME; case EA_KRT_REALM: bsprintf(buf, "realm"); return GA_NAME; default: return GA_UNKNOWN; } } struct protocol proto_unix_kernel = { name: "Kernel", template: "kernel%d", attr_class: EAP_KRT, preference: DEF_PREF_INHERITED, preconfig: krt_preconfig, postconfig: krt_postconfig, init: krt_init, start: krt_start, shutdown: krt_shutdown, reconfigure: krt_reconfigure, copy_config: krt_copy_config, get_attr: krt_get_attr, #ifdef KRT_ALLOW_LEARN dump: krt_dump, dump_attrs: krt_dump_attrs, #endif }; bird-1.4.0/sysdep/unix/unix.h0000644000103200001440000000366412074014514015055 0ustar feelausers/* * BIRD -- Declarations Common to Unix Port * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_UNIX_H_ #define _BIRD_UNIX_H_ #include struct pool; /* main.c */ extern char *bird_name; void async_config(void); void async_dump(void); void async_shutdown(void); void cmd_check_config(char *name); void cmd_reconfig(char *name, int type, int timeout); void cmd_reconfig_confirm(void); void cmd_reconfig_undo(void); void cmd_shutdown(void); #define UNIX_DEFAULT_CONFIGURE_TIMEOUT 300 /* io.c */ volatile int async_config_flag; volatile int async_dump_flag; volatile int async_shutdown_flag; #ifdef IPV6 #define BIRD_PF PF_INET6 #define BIRD_AF AF_INET6 typedef struct sockaddr_in6 sockaddr; static inline int sa_family_check(sockaddr *sa) { return sa->sin6_family == AF_INET6; } #else #define BIRD_PF PF_INET #define BIRD_AF AF_INET typedef struct sockaddr_in sockaddr; static inline int sa_family_check(sockaddr *sa) { return sa->sin_family == AF_INET; } #endif #ifndef SUN_LEN #define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) + strlen ((ptr)->sun_path)) #endif struct birdsock; struct iface; void io_init(void); void io_loop(void); void fill_in_sockaddr(sockaddr *sa, ip_addr a, struct iface *ifa, unsigned port); void get_sockaddr(sockaddr *sa, ip_addr *a, struct iface **ifa, unsigned *port, int check); void sk_open_unix(struct birdsock *s, char *name); void *tracked_fopen(struct pool *, char *name, char *mode); void test_old_bird(char *path); /* krt.c bits */ void krt_io_init(void); /* log.c */ void log_init_debug(char *); /* Initialize debug dump to given file (NULL=stderr, ""=off) */ void log_switch(int debug, list *l, char *); /* Use l=NULL for initial switch */ struct log_config { node n; unsigned int mask; /* Classes to log */ void *fh; /* FILE to log to, NULL=syslog */ int terminal_flag; }; #endif bird-1.4.0/sysdep/unix/Doc0000644000103200001440000000006511606273733014353 0ustar feelausersS log.c S krt.c # io.c is documented under Resources bird-1.4.0/sysdep/unix/config.Y0000644000103200001440000000742712244656136015334 0ustar feelausers/* * BIRD -- UNIX Configuration * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ CF_HDR #include "lib/unix.h" #include CF_DECLS CF_KEYWORDS(LOG, SYSLOG, ALL, DEBUG, TRACE, INFO, REMOTE, WARNING, ERROR, AUTH, FATAL, BUG, STDERR, SOFT) CF_KEYWORDS(TIMEFORMAT, ISO, OLD, SHORT, LONG, BASE, NAME, CONFIRM, UNDO, CHECK, TIMEOUT) %type log_mask log_mask_list log_cat cfg_timeout %type log_file %type cfg_name %type timeformat_which %type syslog_name CF_GRAMMAR CF_ADDTO(conf, log_config) log_config: LOG log_file log_mask ';' { struct log_config *c = cfg_allocz(sizeof(struct log_config)); c->fh = $2; c->mask = $3; add_tail(&new_config->logfiles, &c->n); } ; syslog_name: NAME TEXT { $$ = $2; } | { $$ = bird_name; } ; log_file: TEXT { FILE *f = tracked_fopen(new_config->pool, $1, "a"); if (!f) cf_error("Unable to open log file `%s': %m", $1); $$ = f; } | SYSLOG syslog_name { $$ = NULL; new_config->syslog_name = $2; } | STDERR { $$ = stderr; } ; log_mask: ALL { $$ = ~0; } | '{' log_mask_list '}' { $$ = $2; } ; log_mask_list: log_cat { $$ = 1 << $1; } | log_mask_list ',' log_cat { $$ = $1 | (1 << $3); } ; log_cat: DEBUG { $$ = L_DEBUG[0]; } | TRACE { $$ = L_TRACE[0]; } | INFO { $$ = L_INFO[0]; } | REMOTE { $$ = L_REMOTE[0]; } | WARNING { $$ = L_WARN[0]; } | ERROR { $$ = L_ERR[0]; } | AUTH { $$ = L_AUTH[0]; } | FATAL { $$ = L_FATAL[0]; } | BUG { $$ = L_BUG[0]; } ; CF_ADDTO(conf, mrtdump_base) mrtdump_base: MRTDUMP PROTOCOLS mrtdump_mask ';' { new_config->proto_default_mrtdump = $3; } | MRTDUMP TEXT ';' { FILE *f = tracked_fopen(new_config->pool, $2, "a"); if (!f) cf_error("Unable to open MRTDump file '%s': %m", $2); new_config->mrtdump_file = fileno(f); } ; CF_ADDTO(conf, timeformat_base) timeformat_which: ROUTE { $$ = &new_config->tf_route; } | PROTOCOL { $$ = &new_config->tf_proto; } | BASE { $$ = &new_config->tf_base; } | LOG { $$ = &new_config->tf_log; } timeformat_spec: timeformat_which TEXT { *$1 = (struct timeformat){$2, NULL, 0}; } | timeformat_which TEXT expr TEXT { *$1 = (struct timeformat){$2, $4, $3}; } | timeformat_which ISO SHORT { *$1 = (struct timeformat){"%T", "%F", 20*3600}; } | timeformat_which ISO LONG { *$1 = (struct timeformat){"%F %T", NULL, 0}; } | timeformat_which OLD SHORT { *$1 = (struct timeformat){NULL, NULL, 0}; } | timeformat_which OLD LONG { *$1 = (struct timeformat){"%d-%m-%Y %T", NULL, 0}; } ; timeformat_base: TIMEFORMAT timeformat_spec ';' ; /* Unix specific commands */ CF_CLI_HELP(CONFIGURE, ..., [[Reload configuration]]) CF_CLI(CONFIGURE, cfg_name cfg_timeout, [\"\"] [timeout []], [[Reload configuration]]) { cmd_reconfig($2, RECONFIG_HARD, $3); } ; CF_CLI(CONFIGURE SOFT, cfg_name cfg_timeout, [\"\"] [timeout []], [[Reload configuration and ignore changes in filters]]) { cmd_reconfig($3, RECONFIG_SOFT, $4); } ; /* Hack to get input completion for 'timeout' */ CF_CLI_CMD(CONFIGURE TIMEOUT, [], [[Reload configuration with undo timeout]]) CF_CLI_CMD(CONFIGURE SOFT TIMEOUT, [], [[Reload configuration with undo timeout]]) CF_CLI(CONFIGURE CONFIRM,,, [[Confirm last configuration change - deactivate undo timeout]]) { cmd_reconfig_confirm(); } ; CF_CLI(CONFIGURE UNDO,,, [[Undo last configuration change]]) { cmd_reconfig_undo(); } ; CF_CLI(CONFIGURE CHECK, cfg_name, [\"\"], [[Parse configuration and check its validity]]) { cmd_check_config($3); } ; CF_CLI(DOWN,,, [[Shut the daemon down]]) { cmd_shutdown(); } ; cfg_name: /* empty */ { $$ = NULL; } | TEXT ; cfg_timeout: /* empty */ { $$ = 0; } | TIMEOUT { $$ = UNIX_DEFAULT_CONFIGURE_TIMEOUT; } | TIMEOUT expr { $$ = $2; } ; CF_CODE CF_END bird-1.4.0/sysdep/unix/log.c0000644000103200001440000001527412244117701014647 0ustar feelausers/* * BIRD Library -- Logging Functions * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Logging * * The Logging module offers a simple set of functions for writing * messages to system logs and to the debug output. Message classes * used by this module are described in |birdlib.h| and also in the * user's manual. */ #include #include #include #include #include #include "nest/bird.h" #include "nest/cli.h" #include "nest/mrtdump.h" #include "lib/string.h" #include "lib/lists.h" #include "lib/unix.h" static FILE *dbgf; static list *current_log_list; static char *current_syslog_name; /* NULL -> syslog closed */ static const bird_clock_t rate_limit_time = 5; static const int rate_limit_count = 5; #ifdef USE_PTHREADS #include static pthread_mutex_t log_mutex; static inline void log_lock(void) { pthread_mutex_lock(&log_mutex); } static inline void log_unlock(void) { pthread_mutex_unlock(&log_mutex); } #else static inline void log_lock(void) { } static inline void log_unlock(void) { } #endif #ifdef HAVE_SYSLOG #include static int syslog_priorities[] = { LOG_DEBUG, LOG_DEBUG, LOG_DEBUG, LOG_INFO, LOG_ERR, LOG_WARNING, LOG_ERR, LOG_ERR, LOG_CRIT, LOG_CRIT }; #endif static char *class_names[] = { "???", "DBG", "TRACE", "INFO", "RMT", "WARN", "ERR", "AUTH", "FATAL", "BUG" }; /** * log_commit - commit a log message * @class: message class information (%L_DEBUG to %L_BUG, see |lib/birdlib.h|) * * This function writes a message prepared in the log buffer to the * log file (as specified in the configuration). The log buffer is * reset after that. The log message is a full line, log_commit() * terminates it. * * The message class is an integer, not a first char of a string like * in log(), so it should be written like *L_INFO. */ void log_commit(int class, buffer *buf) { struct log_config *l; if (buf->pos == buf->end) strcpy(buf->end - 100, " ... "); log_lock(); WALK_LIST(l, *current_log_list) { if (!(l->mask & (1 << class))) continue; if (l->fh) { if (l->terminal_flag) fputs("bird: ", l->fh); else { byte tbuf[TM_DATETIME_BUFFER_SIZE]; tm_format_datetime(tbuf, &config->tf_log, now); fprintf(l->fh, "%s <%s> ", tbuf, class_names[class]); } fputs(buf->start, l->fh); fputc('\n', l->fh); fflush(l->fh); } #ifdef HAVE_SYSLOG else syslog(syslog_priorities[class], "%s", buf->start); #endif } log_unlock(); /* FIXME: cli_echo is not thread-safe */ cli_echo(class, buf->start); buf->pos = buf->start; } int buffer_vprint(buffer *buf, const char *fmt, va_list args); static void vlog(int class, const char *msg, va_list args) { buffer buf; LOG_BUFFER_INIT(buf); buffer_vprint(&buf, msg, args); log_commit(class, &buf); } /** * log - log a message * @msg: printf-like formatting string with message class information * prepended (%L_DEBUG to %L_BUG, see |lib/birdlib.h|) * * This function formats a message according to the format string @msg * and writes it to the corresponding log file (as specified in the * configuration). Please note that the message is automatically * formatted as a full line, no need to include |\n| inside. * It is essentially a sequence of log_reset(), logn() and log_commit(). */ void log_msg(char *msg, ...) { int class = 1; va_list args; va_start(args, msg); if (*msg >= 1 && *msg <= 8) class = *msg++; vlog(class, msg, args); va_end(args); } void log_rl(struct rate_limit *rl, char *msg, ...) { int class = 1; va_list args; bird_clock_t delta = now - rl->timestamp; if ((0 <= delta) && (delta < rate_limit_time)) { rl->count++; } else { rl->timestamp = now; rl->count = 1; } if (rl->count > rate_limit_count) return; va_start(args, msg); if (*msg >= 1 && *msg <= 8) class = *msg++; vlog(class, msg, args); if (rl->count == rate_limit_count) vlog(class, "...", args); va_end(args); } /** * bug - report an internal error * @msg: a printf-like error message * * This function logs an internal error and aborts execution * of the program. */ void bug(char *msg, ...) { va_list args; va_start(args, msg); vlog(L_BUG[0], msg, args); abort(); } /** * bug - report a fatal error * @msg: a printf-like error message * * This function logs a fatal error and aborts execution * of the program. */ void die(char *msg, ...) { va_list args; va_start(args, msg); vlog(L_FATAL[0], msg, args); exit(1); } /** * debug - write to debug output * @msg: a printf-like message * * This function formats the message @msg and prints it out * to the debugging output. No newline character is appended. */ void debug(char *msg, ...) { va_list args; char buf[1024]; va_start(args, msg); if (dbgf) { if (bvsnprintf(buf, sizeof(buf), msg, args) < 0) bsprintf(buf + sizeof(buf) - 100, " ... \n"); fputs(buf, dbgf); } va_end(args); } static list * default_log_list(int debug, int init, char **syslog_name) { static list init_log_list; init_list(&init_log_list); *syslog_name = NULL; #ifdef HAVE_SYSLOG if (!debug) { static struct log_config lc_syslog = { mask: ~0 }; add_tail(&init_log_list, &lc_syslog.n); *syslog_name = bird_name; if (!init) return &init_log_list; } #endif static struct log_config lc_stderr = { mask: ~0, terminal_flag: 1 }; lc_stderr.fh = stderr; add_tail(&init_log_list, &lc_stderr.n); return &init_log_list; } void log_switch(int debug, list *l, char *new_syslog_name) { if (!l || EMPTY_LIST(*l)) l = default_log_list(debug, !l, &new_syslog_name); current_log_list = l; #ifdef HAVE_SYSLOG if (current_syslog_name && new_syslog_name && !strcmp(current_syslog_name, new_syslog_name)) return; if (current_syslog_name) closelog(); if (new_syslog_name) openlog(new_syslog_name, LOG_CONS | LOG_NDELAY, LOG_DAEMON); current_syslog_name = new_syslog_name; #endif } void log_init_debug(char *f) { if (dbgf && dbgf != stderr) fclose(dbgf); if (!f) dbgf = NULL; else if (!*f) dbgf = stderr; else if (!(dbgf = fopen(f, "a"))) log(L_ERR "Error opening debug file `%s': %m", f); if (dbgf) setvbuf(dbgf, NULL, _IONBF, 0); } void mrt_dump_message(struct proto *p, u16 type, u16 subtype, byte *buf, u32 len) { /* Prepare header */ put_u32(buf+0, now_real); put_u16(buf+4, type); put_u16(buf+6, subtype); put_u32(buf+8, len - MRTDUMP_HDR_LENGTH); if (p->cf->global->mrtdump_file != -1) write(p->cf->global->mrtdump_file, buf, len); } bird-1.4.0/sysdep/unix/timer.h0000644000103200001440000000355112074014514015205 0ustar feelausers/* * BIRD -- Unix Timers * * (c) 1998 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_TIMER_H_ #define _BIRD_TIMER_H_ #include #include "lib/resource.h" typedef time_t bird_clock_t; /* Use instead of time_t */ typedef struct timer { resource r; void (*hook)(struct timer *); void *data; unsigned randomize; /* Amount of randomization */ unsigned recurrent; /* Timer recurrence */ node n; /* Internal link */ bird_clock_t expires; /* 0=inactive */ } timer; timer *tm_new(pool *); void tm_start(timer *, unsigned after); void tm_stop(timer *); void tm_dump_all(void); extern bird_clock_t now; /* Relative, monotonic time in seconds */ extern bird_clock_t now_real; /* Time in seconds since fixed known epoch */ extern bird_clock_t boot_time; static inline bird_clock_t tm_remains(timer *t) { return t->expires ? t->expires - now : 0; } static inline void tm_start_max(timer *t, unsigned after) { bird_clock_t rem = tm_remains(t); tm_start(t, (rem > after) ? rem : after); } static inline timer * tm_new_set(pool *p, void (*hook)(struct timer *), void *data, unsigned rand, unsigned rec) { timer *t = tm_new(p); t->hook = hook; t->data = data; t->randomize = rand; t->recurrent = rec; return t; } struct timeformat { char *fmt1, *fmt2; bird_clock_t limit; }; bird_clock_t tm_parse_date(char *); /* Convert date to bird_clock_t */ bird_clock_t tm_parse_datetime(char *); /* Convert date to bird_clock_t */ #define TM_DATETIME_BUFFER_SIZE 32 /* Buffer size required by tm_format_datetime */ void tm_format_datetime(char *x, struct timeformat *fmt_spec, bird_clock_t t); #ifdef TIME_T_IS_64BIT #define TIME_INFINITY 0x7fffffffffffffff #else #ifdef TIME_T_IS_SIGNED #define TIME_INFINITY 0x7fffffff #else #define TIME_INFINITY 0xffffffff #endif #endif #endif bird-1.4.0/sysdep/unix/random.c0000644000103200001440000000057611606273733015356 0ustar feelausers/* * BIRD Internet Routing Daemon -- Random Numbers * * (c) 2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include "nest/bird.h" u32 random_u32(void) { long int rand_low, rand_high; rand_low = random(); rand_high = random(); return (rand_low & 0xffff) | ((rand_high & 0xffff) << 16); } bird-1.4.0/sysdep/unix/Modules0000644000103200001440000000011712010156301015231 0ustar feelauserslog.c main.c timer.h io.c unix.h endian.h config.Y random.c krt.c krt.h krt.Y bird-1.4.0/sysdep/unix/io.c0000644000103200001440000010721612244117701014473 0ustar feelausers/* * BIRD Internet Routing Daemon -- Unix I/O * * (c) 1998--2004 Martin Mares * (c) 2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ /* Unfortunately, some glibc versions hide parts of RFC 3542 API if _GNU_SOURCE is not defined. */ #define _GNU_SOURCE 1 #include #include #include #include #include #include #include #include #include #include #include #include #include #include "nest/bird.h" #include "lib/lists.h" #include "lib/resource.h" #include "lib/timer.h" #include "lib/socket.h" #include "lib/event.h" #include "lib/string.h" #include "nest/iface.h" #include "lib/unix.h" #include "lib/sysio.h" /* Maximum number of calls of tx handler for one socket in one * select iteration. Should be small enough to not monopolize CPU by * one protocol instance. */ #define MAX_STEPS 4 /* Maximum number of calls of rx handler for all sockets in one select iteration. RX callbacks are often much more costly so we limit this to gen small latencies */ #define MAX_RX_STEPS 4 /* * Tracked Files */ struct rfile { resource r; FILE *f; }; static void rf_free(resource *r) { struct rfile *a = (struct rfile *) r; fclose(a->f); } static void rf_dump(resource *r) { struct rfile *a = (struct rfile *) r; debug("(FILE *%p)\n", a->f); } static struct resclass rf_class = { "FILE", sizeof(struct rfile), rf_free, rf_dump, NULL, NULL }; void * tracked_fopen(pool *p, char *name, char *mode) { FILE *f = fopen(name, mode); if (f) { struct rfile *r = ralloc(p, &rf_class); r->f = f; } return f; } /** * DOC: Timers * * Timers are resources which represent a wish of a module to call * a function at the specified time. The platform dependent code * doesn't guarantee exact timing, only that a timer function * won't be called before the requested time. * * In BIRD, time is represented by values of the &bird_clock_t type * which are integral numbers interpreted as a relative number of seconds since * some fixed time point in past. The current time can be read * from variable @now with reasonable accuracy and is monotonic. There is also * a current 'absolute' time in variable @now_real reported by OS. * * Each timer is described by a &timer structure containing a pointer * to the handler function (@hook), data private to this function (@data), * time the function should be called at (@expires, 0 for inactive timers), * for the other fields see |timer.h|. */ #define NEAR_TIMER_LIMIT 4 static list near_timers, far_timers; static bird_clock_t first_far_timer = TIME_INFINITY; /* now must be different from 0, because 0 is a special value in timer->expires */ bird_clock_t now = 1, now_real, boot_time; static void update_times_plain(void) { bird_clock_t new_time = time(NULL); int delta = new_time - now_real; if ((delta >= 0) && (delta < 60)) now += delta; else if (now_real != 0) log(L_WARN "Time jump, delta %d s", delta); now_real = new_time; } static void update_times_gettime(void) { struct timespec ts; int rv; rv = clock_gettime(CLOCK_MONOTONIC, &ts); if (rv != 0) die("clock_gettime: %m"); if (ts.tv_sec != now) { if (ts.tv_sec < now) log(L_ERR "Monotonic timer is broken"); now = ts.tv_sec; now_real = time(NULL); } } static int clock_monotonic_available; static inline void update_times(void) { if (clock_monotonic_available) update_times_gettime(); else update_times_plain(); } static inline void init_times(void) { struct timespec ts; clock_monotonic_available = (clock_gettime(CLOCK_MONOTONIC, &ts) == 0); if (!clock_monotonic_available) log(L_WARN "Monotonic timer is missing"); } static void tm_free(resource *r) { timer *t = (timer *) r; tm_stop(t); } static void tm_dump(resource *r) { timer *t = (timer *) r; debug("(code %p, data %p, ", t->hook, t->data); if (t->randomize) debug("rand %d, ", t->randomize); if (t->recurrent) debug("recur %d, ", t->recurrent); if (t->expires) debug("expires in %d sec)\n", t->expires - now); else debug("inactive)\n"); } static struct resclass tm_class = { "Timer", sizeof(timer), tm_free, tm_dump, NULL, NULL }; /** * tm_new - create a timer * @p: pool * * This function creates a new timer resource and returns * a pointer to it. To use the timer, you need to fill in * the structure fields and call tm_start() to start timing. */ timer * tm_new(pool *p) { timer *t = ralloc(p, &tm_class); return t; } static inline void tm_insert_near(timer *t) { node *n = HEAD(near_timers); while (n->next && (SKIP_BACK(timer, n, n)->expires < t->expires)) n = n->next; insert_node(&t->n, n->prev); } /** * tm_start - start a timer * @t: timer * @after: number of seconds the timer should be run after * * This function schedules the hook function of the timer to * be called after @after seconds. If the timer has been already * started, it's @expire time is replaced by the new value. * * You can have set the @randomize field of @t, the timeout * will be increased by a random number of seconds chosen * uniformly from range 0 .. @randomize. * * You can call tm_start() from the handler function of the timer * to request another run of the timer. Also, you can set the @recurrent * field to have the timer re-added automatically with the same timeout. */ void tm_start(timer *t, unsigned after) { bird_clock_t when; if (t->randomize) after += random() % (t->randomize + 1); when = now + after; if (t->expires == when) return; if (t->expires) rem_node(&t->n); t->expires = when; if (after <= NEAR_TIMER_LIMIT) tm_insert_near(t); else { if (!first_far_timer || first_far_timer > when) first_far_timer = when; add_tail(&far_timers, &t->n); } } /** * tm_stop - stop a timer * @t: timer * * This function stops a timer. If the timer is already stopped, * nothing happens. */ void tm_stop(timer *t) { if (t->expires) { rem_node(&t->n); t->expires = 0; } } static void tm_dump_them(char *name, list *l) { node *n; timer *t; debug("%s timers:\n", name); WALK_LIST(n, *l) { t = SKIP_BACK(timer, n, n); debug("%p ", t); tm_dump(&t->r); } debug("\n"); } void tm_dump_all(void) { tm_dump_them("Near", &near_timers); tm_dump_them("Far", &far_timers); } static inline time_t tm_first_shot(void) { time_t x = first_far_timer; if (!EMPTY_LIST(near_timers)) { timer *t = SKIP_BACK(timer, n, HEAD(near_timers)); if (t->expires < x) x = t->expires; } return x; } static void tm_shot(void) { timer *t; node *n, *m; if (first_far_timer <= now) { bird_clock_t limit = now + NEAR_TIMER_LIMIT; first_far_timer = TIME_INFINITY; n = HEAD(far_timers); while (m = n->next) { t = SKIP_BACK(timer, n, n); if (t->expires <= limit) { rem_node(n); tm_insert_near(t); } else if (t->expires < first_far_timer) first_far_timer = t->expires; n = m; } } while ((n = HEAD(near_timers)) -> next) { int delay; t = SKIP_BACK(timer, n, n); if (t->expires > now) break; rem_node(n); delay = t->expires - now; t->expires = 0; if (t->recurrent) { int i = t->recurrent - delay; if (i < 0) i = 0; tm_start(t, i); } t->hook(t); } } /** * tm_parse_datetime - parse a date and time * @x: datetime string * * tm_parse_datetime() takes a textual representation of * a date and time (dd-mm-yyyy hh:mm:ss) * and converts it to the corresponding value of type &bird_clock_t. */ bird_clock_t tm_parse_datetime(char *x) { struct tm tm; int n; time_t t; if (sscanf(x, "%d-%d-%d %d:%d:%d%n", &tm.tm_mday, &tm.tm_mon, &tm.tm_year, &tm.tm_hour, &tm.tm_min, &tm.tm_sec, &n) != 6 || x[n]) return tm_parse_date(x); tm.tm_mon--; tm.tm_year -= 1900; t = mktime(&tm); if (t == (time_t) -1) return 0; return t; } /** * tm_parse_date - parse a date * @x: date string * * tm_parse_date() takes a textual representation of a date (dd-mm-yyyy) * and converts it to the corresponding value of type &bird_clock_t. */ bird_clock_t tm_parse_date(char *x) { struct tm tm; int n; time_t t; if (sscanf(x, "%d-%d-%d%n", &tm.tm_mday, &tm.tm_mon, &tm.tm_year, &n) != 3 || x[n]) return 0; tm.tm_mon--; tm.tm_year -= 1900; tm.tm_hour = tm.tm_min = tm.tm_sec = 0; t = mktime(&tm); if (t == (time_t) -1) return 0; return t; } static void tm_format_reltime(char *x, struct tm *tm, bird_clock_t delta) { static char *month_names[12] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; if (delta < 20*3600) bsprintf(x, "%02d:%02d", tm->tm_hour, tm->tm_min); else if (delta < 360*86400) bsprintf(x, "%s%02d", month_names[tm->tm_mon], tm->tm_mday); else bsprintf(x, "%d", tm->tm_year+1900); } #include "conf/conf.h" /** * tm_format_datetime - convert date and time to textual representation * @x: destination buffer of size %TM_DATETIME_BUFFER_SIZE * @t: time * * This function formats the given relative time value @t to a textual * date/time representation (dd-mm-yyyy hh:mm:ss) in real time. */ void tm_format_datetime(char *x, struct timeformat *fmt_spec, bird_clock_t t) { const char *fmt_used; struct tm *tm; bird_clock_t delta = now - t; t = now_real - delta; tm = localtime(&t); if (fmt_spec->fmt1 == NULL) return tm_format_reltime(x, tm, delta); if ((fmt_spec->limit == 0) || (delta < fmt_spec->limit)) fmt_used = fmt_spec->fmt1; else fmt_used = fmt_spec->fmt2; int rv = strftime(x, TM_DATETIME_BUFFER_SIZE, fmt_used, tm); if (((rv == 0) && fmt_used[0]) || (rv == TM_DATETIME_BUFFER_SIZE)) strcpy(x, ""); } /** * DOC: Sockets * * Socket resources represent network connections. Their data structure (&socket) * contains a lot of fields defining the exact type of the socket, the local and * remote addresses and ports, pointers to socket buffers and finally pointers to * hook functions to be called when new data have arrived to the receive buffer * (@rx_hook), when the contents of the transmit buffer have been transmitted * (@tx_hook) and when an error or connection close occurs (@err_hook). * * Freeing of sockets from inside socket hooks is perfectly safe. */ #ifndef SOL_IP #define SOL_IP IPPROTO_IP #endif #ifndef SOL_IPV6 #define SOL_IPV6 IPPROTO_IPV6 #endif static list sock_list; static struct birdsock *current_sock; static struct birdsock *stored_sock; static int sock_recalc_fdsets_p; static inline sock * sk_next(sock *s) { if (!s->n.next->next) return NULL; else return SKIP_BACK(sock, n, s->n.next); } static void sk_alloc_bufs(sock *s) { if (!s->rbuf && s->rbsize) s->rbuf = s->rbuf_alloc = xmalloc(s->rbsize); s->rpos = s->rbuf; if (!s->tbuf && s->tbsize) s->tbuf = s->tbuf_alloc = xmalloc(s->tbsize); s->tpos = s->ttx = s->tbuf; } static void sk_free_bufs(sock *s) { if (s->rbuf_alloc) { xfree(s->rbuf_alloc); s->rbuf = s->rbuf_alloc = NULL; } if (s->tbuf_alloc) { xfree(s->tbuf_alloc); s->tbuf = s->tbuf_alloc = NULL; } } static void sk_free(resource *r) { sock *s = (sock *) r; sk_free_bufs(s); if (s->fd >= 0) { close(s->fd); /* FIXME: we should call sk_stop() for SKF_THREAD sockets */ if (s->flags & SKF_THREAD) return; if (s == current_sock) current_sock = sk_next(s); if (s == stored_sock) stored_sock = sk_next(s); rem_node(&s->n); sock_recalc_fdsets_p = 1; } } void sk_reallocate(sock *s) { sk_free_bufs(s); sk_alloc_bufs(s); } static void sk_dump(resource *r) { sock *s = (sock *) r; static char *sk_type_names[] = { "TCP<", "TCP>", "TCP", "UDP", "UDP/MC", "IP", "IP/MC", "MAGIC", "UNIX<", "UNIX", "DEL!" }; debug("(%s, ud=%p, sa=%08x, sp=%d, da=%08x, dp=%d, tos=%d, ttl=%d, if=%s)\n", sk_type_names[s->type], s->data, s->saddr, s->sport, s->daddr, s->dport, s->tos, s->ttl, s->iface ? s->iface->name : "none"); } static struct resclass sk_class = { "Socket", sizeof(sock), sk_free, sk_dump, NULL, NULL }; /** * sk_new - create a socket * @p: pool * * This function creates a new socket resource. If you want to use it, * you need to fill in all the required fields of the structure and * call sk_open() to do the actual opening of the socket. * * The real function name is sock_new(), sk_new() is a macro wrapper * to avoid collision with OpenSSL. */ sock * sock_new(pool *p) { sock *s = ralloc(p, &sk_class); s->pool = p; // s->saddr = s->daddr = IPA_NONE; s->tos = s->priority = s->ttl = -1; s->fd = -1; return s; } static void sk_insert(sock *s) { add_tail(&sock_list, &s->n); sock_recalc_fdsets_p = 1; } #ifdef IPV6 void fill_in_sockaddr(struct sockaddr_in6 *sa, ip_addr a, struct iface *ifa, unsigned port) { memset(sa, 0, sizeof (struct sockaddr_in6)); sa->sin6_family = AF_INET6; sa->sin6_port = htons(port); sa->sin6_flowinfo = 0; #ifdef HAVE_SIN_LEN sa->sin6_len = sizeof(struct sockaddr_in6); #endif set_inaddr(&sa->sin6_addr, a); if (ifa && ipa_has_link_scope(a)) sa->sin6_scope_id = ifa->index; } void get_sockaddr(struct sockaddr_in6 *sa, ip_addr *a, struct iface **ifa, unsigned *port, int check) { if (check && sa->sin6_family != AF_INET6) bug("get_sockaddr called for wrong address family (%d)", sa->sin6_family); if (port) *port = ntohs(sa->sin6_port); memcpy(a, &sa->sin6_addr, sizeof(*a)); ipa_ntoh(*a); if (ifa && ipa_has_link_scope(*a)) *ifa = if_find_by_index(sa->sin6_scope_id); } #else void fill_in_sockaddr(struct sockaddr_in *sa, ip_addr a, struct iface *ifa, unsigned port) { memset (sa, 0, sizeof (struct sockaddr_in)); sa->sin_family = AF_INET; sa->sin_port = htons(port); #ifdef HAVE_SIN_LEN sa->sin_len = sizeof(struct sockaddr_in); #endif set_inaddr(&sa->sin_addr, a); } void get_sockaddr(struct sockaddr_in *sa, ip_addr *a, struct iface **ifa, unsigned *port, int check) { if (check && sa->sin_family != AF_INET) bug("get_sockaddr called for wrong address family (%d)", sa->sin_family); if (port) *port = ntohs(sa->sin_port); memcpy(a, &sa->sin_addr.s_addr, sizeof(*a)); ipa_ntoh(*a); } #endif #ifdef IPV6 /* PKTINFO handling is also standardized in IPv6 */ #define CMSG_RX_SPACE (CMSG_SPACE(sizeof(struct in6_pktinfo)) + CMSG_SPACE(sizeof(int))) #define CMSG_TX_SPACE CMSG_SPACE(sizeof(struct in6_pktinfo)) /* * RFC 2292 uses IPV6_PKTINFO for both the socket option and the cmsg * type, RFC 3542 changed the socket option to IPV6_RECVPKTINFO. If we * don't have IPV6_RECVPKTINFO we suppose the OS implements the older * RFC and we use IPV6_PKTINFO. */ #ifndef IPV6_RECVPKTINFO #define IPV6_RECVPKTINFO IPV6_PKTINFO #endif /* * Same goes for IPV6_HOPLIMIT -> IPV6_RECVHOPLIMIT. */ #ifndef IPV6_RECVHOPLIMIT #define IPV6_RECVHOPLIMIT IPV6_HOPLIMIT #endif static char * sysio_register_cmsgs(sock *s) { int ok = 1; if ((s->flags & SKF_LADDR_RX) && (setsockopt(s->fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &ok, sizeof(ok)) < 0)) return "IPV6_RECVPKTINFO"; if ((s->flags & SKF_TTL_RX) && (setsockopt(s->fd, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, &ok, sizeof(ok)) < 0)) return "IPV6_RECVHOPLIMIT"; return NULL; } static void sysio_process_rx_cmsgs(sock *s, struct msghdr *msg) { struct cmsghdr *cm; struct in6_pktinfo *pi = NULL; int *hlim = NULL; for (cm = CMSG_FIRSTHDR(msg); cm != NULL; cm = CMSG_NXTHDR(msg, cm)) { if (cm->cmsg_level == IPPROTO_IPV6 && cm->cmsg_type == IPV6_PKTINFO) pi = (struct in6_pktinfo *) CMSG_DATA(cm); if (cm->cmsg_level == IPPROTO_IPV6 && cm->cmsg_type == IPV6_HOPLIMIT) hlim = (int *) CMSG_DATA(cm); } if (s->flags & SKF_LADDR_RX) { if (pi) { get_inaddr(&s->laddr, &pi->ipi6_addr); s->lifindex = pi->ipi6_ifindex; } else { s->laddr = IPA_NONE; s->lifindex = 0; } } if (s->flags & SKF_TTL_RX) s->ttl = hlim ? *hlim : -1; return; } /* static void sysio_prepare_tx_cmsgs(sock *s, struct msghdr *msg, void *cbuf, size_t cbuflen) { struct cmsghdr *cm; struct in6_pktinfo *pi; if (!(s->flags & SKF_LADDR_TX)) return; msg->msg_control = cbuf; msg->msg_controllen = cbuflen; cm = CMSG_FIRSTHDR(msg); cm->cmsg_level = IPPROTO_IPV6; cm->cmsg_type = IPV6_PKTINFO; cm->cmsg_len = CMSG_LEN(sizeof(*pi)); pi = (struct in6_pktinfo *) CMSG_DATA(cm); set_inaddr(&pi->ipi6_addr, s->saddr); pi->ipi6_ifindex = s->iface ? s->iface->index : 0; msg->msg_controllen = cm->cmsg_len; return; } */ #endif static char * sk_set_ttl_int(sock *s) { #ifdef IPV6 if (setsockopt(s->fd, SOL_IPV6, IPV6_UNICAST_HOPS, &s->ttl, sizeof(s->ttl)) < 0) return "IPV6_UNICAST_HOPS"; #else if (setsockopt(s->fd, SOL_IP, IP_TTL, &s->ttl, sizeof(s->ttl)) < 0) return "IP_TTL"; #ifdef CONFIG_UNIX_DONTROUTE int one = 1; if (s->ttl == 1 && setsockopt(s->fd, SOL_SOCKET, SO_DONTROUTE, &one, sizeof(one)) < 0) return "SO_DONTROUTE"; #endif #endif return NULL; } #define ERR(x) do { err = x; goto bad; } while(0) #define WARN(x) log(L_WARN "sk_setup: %s: %m", x) static char * sk_setup(sock *s) { int fd = s->fd; char *err = NULL; if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) ERR("fcntl(O_NONBLOCK)"); if (s->type == SK_UNIX) return NULL; #ifdef IPV6 if ((s->tos >= 0) && setsockopt(fd, SOL_IPV6, IPV6_TCLASS, &s->tos, sizeof(s->tos)) < 0) WARN("IPV6_TCLASS"); #else if ((s->tos >= 0) && setsockopt(fd, SOL_IP, IP_TOS, &s->tos, sizeof(s->tos)) < 0) WARN("IP_TOS"); #endif if (s->priority >= 0) sk_set_priority(s, s->priority); #ifdef IPV6 int v = 1; if ((s->flags & SKF_V6ONLY) && setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &v, sizeof(v)) < 0) WARN("IPV6_V6ONLY"); #endif if ((s->ttl >= 0) && (err = sk_set_ttl_int(s))) goto bad; err = sysio_register_cmsgs(s); bad: return err; } /** * sk_set_ttl - set transmit TTL for given socket. * @s: socket * @ttl: TTL value * * Set TTL for already opened connections when TTL was not set before. * Useful for accepted connections when different ones should have * different TTL. * * Result: 0 for success, -1 for an error. */ int sk_set_ttl(sock *s, int ttl) { char *err; s->ttl = ttl; if (err = sk_set_ttl_int(s)) log(L_ERR "sk_set_ttl: %s: %m", err); return (err ? -1 : 0); } /** * sk_set_min_ttl - set minimal accepted TTL for given socket. * @s: socket * @ttl: TTL value * * Can be used in TTL security implementation * * Result: 0 for success, -1 for an error. */ int sk_set_min_ttl(sock *s, int ttl) { int err; #ifdef IPV6 err = sk_set_min_ttl6(s, ttl); #else err = sk_set_min_ttl4(s, ttl); #endif return err; } /** * sk_set_md5_auth - add / remove MD5 security association for given socket. * @s: socket * @a: IP address of the other side * @ifa: Interface for link-local IP address * @passwd: password used for MD5 authentication * * In TCP MD5 handling code in kernel, there is a set of pairs * (address, password) used to choose password according to * address of the other side. This function is useful for * listening socket, for active sockets it is enough to set * s->password field. * * When called with passwd != NULL, the new pair is added, * When called with passwd == NULL, the existing pair is removed. * * Result: 0 for success, -1 for an error. */ int sk_set_md5_auth(sock *s, ip_addr a, struct iface *ifa, char *passwd) { sockaddr sa; fill_in_sockaddr(&sa, a, ifa, 0); return sk_set_md5_auth_int(s, &sa, passwd); } int sk_set_broadcast(sock *s, int enable) { if (setsockopt(s->fd, SOL_SOCKET, SO_BROADCAST, &enable, sizeof(enable)) < 0) { log(L_ERR "sk_set_broadcast: SO_BROADCAST: %m"); return -1; } return 0; } #ifdef IPV6 int sk_set_ipv6_checksum(sock *s, int offset) { if (setsockopt(s->fd, IPPROTO_IPV6, IPV6_CHECKSUM, &offset, sizeof(offset)) < 0) { log(L_ERR "sk_set_ipv6_checksum: IPV6_CHECKSUM: %m"); return -1; } return 0; } int sk_set_icmp_filter(sock *s, int p1, int p2) { /* a bit of lame interface, but it is here only for Radv */ struct icmp6_filter f; ICMP6_FILTER_SETBLOCKALL(&f); ICMP6_FILTER_SETPASS(p1, &f); ICMP6_FILTER_SETPASS(p2, &f); if (setsockopt(s->fd, IPPROTO_ICMPV6, ICMP6_FILTER, &f, sizeof(f)) < 0) { log(L_ERR "sk_setup_icmp_filter: ICMP6_FILTER: %m"); return -1; } return 0; } int sk_setup_multicast(sock *s) { char *err; int zero = 0; int index; ASSERT(s->iface && s->iface->addr); index = s->iface->index; if (setsockopt(s->fd, SOL_IPV6, IPV6_MULTICAST_HOPS, &s->ttl, sizeof(s->ttl)) < 0) ERR("IPV6_MULTICAST_HOPS"); if (setsockopt(s->fd, SOL_IPV6, IPV6_MULTICAST_LOOP, &zero, sizeof(zero)) < 0) ERR("IPV6_MULTICAST_LOOP"); if (setsockopt(s->fd, SOL_IPV6, IPV6_MULTICAST_IF, &index, sizeof(index)) < 0) ERR("IPV6_MULTICAST_IF"); if (err = sysio_bind_to_iface(s)) goto bad; return 0; bad: log(L_ERR "sk_setup_multicast: %s: %m", err); return -1; } int sk_join_group(sock *s, ip_addr maddr) { struct ipv6_mreq mreq; set_inaddr(&mreq.ipv6mr_multiaddr, maddr); #ifdef CONFIG_IPV6_GLIBC_20 mreq.ipv6mr_ifindex = s->iface->index; #else mreq.ipv6mr_interface = s->iface->index; #endif if (setsockopt(s->fd, SOL_IPV6, IPV6_JOIN_GROUP, &mreq, sizeof(mreq)) < 0) { log(L_ERR "sk_join_group: IPV6_JOIN_GROUP: %m"); return -1; } return 0; } int sk_leave_group(sock *s, ip_addr maddr) { struct ipv6_mreq mreq; set_inaddr(&mreq.ipv6mr_multiaddr, maddr); #ifdef CONFIG_IPV6_GLIBC_20 mreq.ipv6mr_ifindex = s->iface->index; #else mreq.ipv6mr_interface = s->iface->index; #endif if (setsockopt(s->fd, SOL_IPV6, IPV6_LEAVE_GROUP, &mreq, sizeof(mreq)) < 0) { log(L_ERR "sk_leave_group: IPV6_LEAVE_GROUP: %m"); return -1; } return 0; } #else /* IPV4 */ int sk_setup_multicast(sock *s) { char *err; ASSERT(s->iface && s->iface->addr); if (err = sysio_setup_multicast(s)) { log(L_ERR "sk_setup_multicast: %s: %m", err); return -1; } return 0; } int sk_join_group(sock *s, ip_addr maddr) { char *err; if (err = sysio_join_group(s, maddr)) { log(L_ERR "sk_join_group: %s: %m", err); return -1; } return 0; } int sk_leave_group(sock *s, ip_addr maddr) { char *err; if (err = sysio_leave_group(s, maddr)) { log(L_ERR "sk_leave_group: %s: %m", err); return -1; } return 0; } #endif static void sk_tcp_connected(sock *s) { sockaddr lsa; int lsa_len = sizeof(lsa); if (getsockname(s->fd, (struct sockaddr *) &lsa, &lsa_len) == 0) get_sockaddr(&lsa, &s->saddr, &s->iface, &s->sport, 1); s->type = SK_TCP; sk_alloc_bufs(s); s->tx_hook(s); } static int sk_passive_connected(sock *s, struct sockaddr *sa, int al, int type) { int fd = accept(s->fd, sa, &al); if (fd >= 0) { sock *t = sk_new(s->pool); char *err; t->type = type; t->fd = fd; t->ttl = s->ttl; t->tos = s->tos; t->rbsize = s->rbsize; t->tbsize = s->tbsize; if (type == SK_TCP) { sockaddr lsa; int lsa_len = sizeof(lsa); if (getsockname(fd, (struct sockaddr *) &lsa, &lsa_len) == 0) get_sockaddr(&lsa, &t->saddr, &t->iface, &t->sport, 1); get_sockaddr((sockaddr *) sa, &t->daddr, &t->iface, &t->dport, 1); } sk_insert(t); if (err = sk_setup(t)) { log(L_ERR "Incoming connection: %s: %m", err); rfree(t); return 1; } sk_alloc_bufs(t); s->rx_hook(t, 0); return 1; } else if (errno != EINTR && errno != EAGAIN) { s->err_hook(s, errno); } return 0; } /** * sk_open - open a socket * @s: socket * * This function takes a socket resource created by sk_new() and * initialized by the user and binds a corresponding network connection * to it. * * Result: 0 for success, -1 for an error. */ int sk_open(sock *s) { int fd; sockaddr sa; int one = 1; int type = s->type; int has_src = ipa_nonzero(s->saddr) || s->sport; char *err; switch (type) { case SK_TCP_ACTIVE: s->ttx = ""; /* Force s->ttx != s->tpos */ /* Fall thru */ case SK_TCP_PASSIVE: fd = socket(BIRD_PF, SOCK_STREAM, IPPROTO_TCP); break; case SK_UDP: fd = socket(BIRD_PF, SOCK_DGRAM, IPPROTO_UDP); break; case SK_IP: fd = socket(BIRD_PF, SOCK_RAW, s->dport); break; case SK_MAGIC: fd = s->fd; break; default: bug("sk_open() called for invalid sock type %d", type); } if (fd < 0) die("sk_open: socket: %m"); s->fd = fd; if (err = sk_setup(s)) goto bad; if (has_src) { int port; if (type == SK_IP) port = 0; else { port = s->sport; if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)) < 0) ERR("SO_REUSEADDR"); #ifdef CONFIG_NO_IFACE_BIND /* Workaround missing ability to bind to an iface */ if ((type == SK_UDP) && s->iface && ipa_zero(s->saddr)) { if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)) < 0) ERR("SO_REUSEPORT"); } #endif } fill_in_sockaddr(&sa, s->saddr, s->iface, port); if (bind(fd, (struct sockaddr *) &sa, sizeof(sa)) < 0) ERR("bind"); } fill_in_sockaddr(&sa, s->daddr, s->iface, s->dport); if (s->password) { int rv = sk_set_md5_auth_int(s, &sa, s->password); if (rv < 0) goto bad_no_log; } switch (type) { case SK_TCP_ACTIVE: if (connect(fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0) sk_tcp_connected(s); else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS && errno != ECONNREFUSED && errno != EHOSTUNREACH && errno != ENETUNREACH) ERR("connect"); break; case SK_TCP_PASSIVE: if (listen(fd, 8)) ERR("listen"); break; case SK_MAGIC: break; default: sk_alloc_bufs(s); #ifdef IPV6 #ifdef IPV6_MTU_DISCOVER { int dont = IPV6_PMTUDISC_DONT; if (setsockopt(fd, SOL_IPV6, IPV6_MTU_DISCOVER, &dont, sizeof(dont)) < 0) ERR("IPV6_MTU_DISCOVER"); } #endif #else #ifdef IP_PMTUDISC { int dont = IP_PMTUDISC_DONT; if (setsockopt(fd, SOL_IP, IP_PMTUDISC, &dont, sizeof(dont)) < 0) ERR("IP_PMTUDISC"); } #endif #endif } if (!(s->flags & SKF_THREAD)) sk_insert(s); return 0; bad: log(L_ERR "sk_open: %s: %m", err); bad_no_log: close(fd); s->fd = -1; return -1; } void sk_open_unix(sock *s, char *name) { int fd; struct sockaddr_un sa; char *err; fd = socket(AF_UNIX, SOCK_STREAM, 0); if (fd < 0) ERR("socket"); s->fd = fd; if (err = sk_setup(s)) goto bad; unlink(name); /* Path length checked in test_old_bird() */ sa.sun_family = AF_UNIX; strcpy(sa.sun_path, name); if (bind(fd, (struct sockaddr *) &sa, SUN_LEN(&sa)) < 0) ERR("bind"); if (listen(fd, 8)) ERR("listen"); sk_insert(s); return; bad: log(L_ERR "sk_open_unix: %s: %m", err); die("Unable to create control socket %s", name); } static inline void reset_tx_buffer(sock *s) { s->ttx = s->tpos = s->tbuf; } static int sk_maybe_write(sock *s) { int e; switch (s->type) { case SK_TCP: case SK_MAGIC: case SK_UNIX: while (s->ttx != s->tpos) { e = write(s->fd, s->ttx, s->tpos - s->ttx); if (e < 0) { if (errno != EINTR && errno != EAGAIN) { reset_tx_buffer(s); /* EPIPE is just a connection close notification during TX */ s->err_hook(s, (errno != EPIPE) ? errno : 0); return -1; } return 0; } s->ttx += e; } reset_tx_buffer(s); return 1; case SK_UDP: case SK_IP: { if (s->tbuf == s->tpos) return 1; sockaddr sa; fill_in_sockaddr(&sa, s->daddr, s->iface, s->dport); struct iovec iov = {s->tbuf, s->tpos - s->tbuf}; // byte cmsg_buf[CMSG_TX_SPACE]; struct msghdr msg = { .msg_name = &sa, .msg_namelen = sizeof(sa), .msg_iov = &iov, .msg_iovlen = 1}; // sysio_prepare_tx_cmsgs(s, &msg, cmsg_buf, sizeof(cmsg_buf)); e = sendmsg(s->fd, &msg, 0); if (e < 0) { if (errno != EINTR && errno != EAGAIN) { reset_tx_buffer(s); s->err_hook(s, errno); return -1; } return 0; } reset_tx_buffer(s); return 1; } default: bug("sk_maybe_write: unknown socket type %d", s->type); } } int sk_rx_ready(sock *s) { fd_set rd, wr; struct timeval timo; int rv; FD_ZERO(&rd); FD_ZERO(&wr); FD_SET(s->fd, &rd); timo.tv_sec = 0; timo.tv_usec = 0; redo: rv = select(s->fd+1, &rd, &wr, NULL, &timo); if ((rv < 0) && (errno == EINTR || errno == EAGAIN)) goto redo; return rv; } /** * sk_send - send data to a socket * @s: socket * @len: number of bytes to send * * This function sends @len bytes of data prepared in the * transmit buffer of the socket @s to the network connection. * If the packet can be sent immediately, it does so and returns * 1, else it queues the packet for later processing, returns 0 * and calls the @tx_hook of the socket when the tranmission * takes place. */ int sk_send(sock *s, unsigned len) { s->ttx = s->tbuf; s->tpos = s->tbuf + len; return sk_maybe_write(s); } /** * sk_send_to - send data to a specific destination * @s: socket * @len: number of bytes to send * @addr: IP address to send the packet to * @port: port to send the packet to * * This is a sk_send() replacement for connection-less packet sockets * which allows destination of the packet to be chosen dynamically. */ int sk_send_to(sock *s, unsigned len, ip_addr addr, unsigned port) { s->daddr = addr; s->dport = port; s->ttx = s->tbuf; s->tpos = s->tbuf + len; return sk_maybe_write(s); } /* int sk_send_full(sock *s, unsigned len, struct iface *ifa, ip_addr saddr, ip_addr daddr, unsigned dport) { s->iface = ifa; s->saddr = saddr; s->daddr = daddr; s->dport = dport; s->ttx = s->tbuf; s->tpos = s->tbuf + len; return sk_maybe_write(s); } */ /* sk_read() and sk_write() are called from BFD's event loop */ int sk_read(sock *s) { switch (s->type) { case SK_TCP_PASSIVE: { sockaddr sa; return sk_passive_connected(s, (struct sockaddr *) &sa, sizeof(sa), SK_TCP); } case SK_UNIX_PASSIVE: { struct sockaddr_un sa; return sk_passive_connected(s, (struct sockaddr *) &sa, sizeof(sa), SK_UNIX); } case SK_TCP: case SK_UNIX: { int c = read(s->fd, s->rpos, s->rbuf + s->rbsize - s->rpos); if (c < 0) { if (errno != EINTR && errno != EAGAIN) s->err_hook(s, errno); } else if (!c) s->err_hook(s, 0); else { s->rpos += c; if (s->rx_hook(s, s->rpos - s->rbuf)) { /* We need to be careful since the socket could have been deleted by the hook */ if (current_sock == s) s->rpos = s->rbuf; } return 1; } return 0; } case SK_MAGIC: return s->rx_hook(s, 0); default: { sockaddr sa; int e; struct iovec iov = {s->rbuf, s->rbsize}; byte cmsg_buf[CMSG_RX_SPACE]; struct msghdr msg = { .msg_name = &sa, .msg_namelen = sizeof(sa), .msg_iov = &iov, .msg_iovlen = 1, .msg_control = cmsg_buf, .msg_controllen = sizeof(cmsg_buf), .msg_flags = 0}; e = recvmsg(s->fd, &msg, 0); if (e < 0) { if (errno != EINTR && errno != EAGAIN) s->err_hook(s, errno); return 0; } s->rpos = s->rbuf + e; get_sockaddr(&sa, &s->faddr, NULL, &s->fport, 1); sysio_process_rx_cmsgs(s, &msg); s->rx_hook(s, e); return 1; } } } int sk_write(sock *s) { switch (s->type) { case SK_TCP_ACTIVE: { sockaddr sa; fill_in_sockaddr(&sa, s->daddr, s->iface, s->dport); if (connect(s->fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0 || errno == EISCONN) sk_tcp_connected(s); else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS) s->err_hook(s, errno); return 0; } default: if (s->ttx != s->tpos && sk_maybe_write(s) > 0) { if (s->tx_hook) s->tx_hook(s); return 1; } return 0; } } void sk_dump_all(void) { node *n; sock *s; debug("Open sockets:\n"); WALK_LIST(n, sock_list) { s = SKIP_BACK(sock, n, n); debug("%p ", s); sk_dump(&s->r); } debug("\n"); } #undef ERR #undef WARN /* * Main I/O Loop */ volatile int async_config_flag; /* Asynchronous reconfiguration/dump scheduled */ volatile int async_dump_flag; void io_init(void) { init_list(&near_timers); init_list(&far_timers); init_list(&sock_list); init_list(&global_event_list); krt_io_init(); init_times(); update_times(); boot_time = now; srandom((int) now_real); } static int short_loops = 0; #define SHORT_LOOP_MAX 10 void io_loop(void) { fd_set rd, wr; struct timeval timo; time_t tout; int hi, events; sock *s; node *n; sock_recalc_fdsets_p = 1; for(;;) { events = ev_run_list(&global_event_list); update_times(); tout = tm_first_shot(); if (tout <= now) { tm_shot(); continue; } timo.tv_sec = events ? 0 : MIN(tout - now, 3); timo.tv_usec = 0; if (sock_recalc_fdsets_p) { sock_recalc_fdsets_p = 0; FD_ZERO(&rd); FD_ZERO(&wr); } hi = 0; WALK_LIST(n, sock_list) { s = SKIP_BACK(sock, n, n); if (s->rx_hook) { FD_SET(s->fd, &rd); if (s->fd > hi) hi = s->fd; } else FD_CLR(s->fd, &rd); if (s->tx_hook && s->ttx != s->tpos) { FD_SET(s->fd, &wr); if (s->fd > hi) hi = s->fd; } else FD_CLR(s->fd, &wr); } /* * Yes, this is racy. But even if the signal comes before this test * and entering select(), it gets caught on the next timer tick. */ if (async_config_flag) { async_config(); async_config_flag = 0; continue; } if (async_dump_flag) { async_dump(); async_dump_flag = 0; continue; } if (async_shutdown_flag) { async_shutdown(); async_shutdown_flag = 0; continue; } /* And finally enter select() to find active sockets */ hi = select(hi+1, &rd, &wr, NULL, &timo); if (hi < 0) { if (errno == EINTR || errno == EAGAIN) continue; die("select: %m"); } if (hi) { /* guaranteed to be non-empty */ current_sock = SKIP_BACK(sock, n, HEAD(sock_list)); while (current_sock) { sock *s = current_sock; int e; int steps; steps = MAX_STEPS; if ((s->type >= SK_MAGIC) && FD_ISSET(s->fd, &rd) && s->rx_hook) do { steps--; e = sk_read(s); if (s != current_sock) goto next; } while (e && s->rx_hook && steps); steps = MAX_STEPS; if (FD_ISSET(s->fd, &wr)) do { steps--; e = sk_write(s); if (s != current_sock) goto next; } while (e && steps); current_sock = sk_next(s); next: ; } short_loops++; if (events && (short_loops < SHORT_LOOP_MAX)) continue; short_loops = 0; int count = 0; current_sock = stored_sock; if (current_sock == NULL) current_sock = SKIP_BACK(sock, n, HEAD(sock_list)); while (current_sock && count < MAX_RX_STEPS) { sock *s = current_sock; int e; if ((s->type < SK_MAGIC) && FD_ISSET(s->fd, &rd) && s->rx_hook) { count++; e = sk_read(s); if (s != current_sock) goto next2; } current_sock = sk_next(s); next2: ; } stored_sock = current_sock; } } } void test_old_bird(char *path) { int fd; struct sockaddr_un sa; fd = socket(AF_UNIX, SOCK_STREAM, 0); if (fd < 0) die("Cannot create socket: %m"); if (strlen(path) >= sizeof(sa.sun_path)) die("Socket path too long"); bzero(&sa, sizeof(sa)); sa.sun_family = AF_UNIX; strcpy(sa.sun_path, path); if (connect(fd, (struct sockaddr *) &sa, SUN_LEN(&sa)) == 0) die("I found another BIRD running."); close(fd); } bird-1.4.0/sysdep/unix/krt.h0000644000103200001440000001000312244656136014666 0ustar feelausers/* * BIRD -- UNIX Kernel Route Syncer * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_KRT_H_ #define _BIRD_KRT_H_ struct config; struct krt_config; struct krt_proto; struct kif_config; struct kif_proto; #include "lib/krt-sys.h" /* Flags stored in net->n.flags, rest are in nest/route.h */ #define KRF_VERDICT_MASK 0x0f #define KRF_CREATE 0 /* Not seen in kernel table */ #define KRF_SEEN 1 /* Seen in kernel table during last scan */ #define KRF_UPDATE 2 /* Need to update this entry */ #define KRF_DELETE 3 /* Should be deleted */ #define KRF_IGNORE 4 /* To be ignored */ #define EA_KRT_SOURCE EA_CODE(EAP_KRT, 0) #define EA_KRT_METRIC EA_CODE(EAP_KRT, 1) #define EA_KRT_PREFSRC EA_CODE(EAP_KRT, 2) #define EA_KRT_REALM EA_CODE(EAP_KRT, 3) /* Whenever we recognize our own routes, we allow learing of foreign routes */ #ifdef CONFIG_SELF_CONSCIOUS #define KRT_ALLOW_LEARN #endif /* krt.c */ extern struct protocol proto_unix_kernel; struct krt_config { struct proto_config c; struct krt_params sys; /* Sysdep params */ int persist; /* Keep routes when we exit */ int scan_time; /* How often we re-scan routes */ int learn; /* Learn routes from other sources */ int devroutes; /* Allow export of device routes */ }; struct krt_proto { struct proto p; struct krt_state sys; /* Sysdep state */ #ifdef KRT_ALLOW_LEARN struct rtable krt_table; /* Internal table of inherited routes */ #endif #ifndef CONFIG_ALL_TABLES_AT_ONCE timer *scan_timer; #endif node krt_node; /* Node in krt_proto_list */ int initialized; /* First scan has already been finished */ }; extern pool *krt_pool; #define KRT_CF ((struct krt_config *)p->p.cf) #define KRT_TRACE(pr, fl, msg, args...) do { \ DBG("KRT: " msg "\n" , ## args); \ if (pr->p.debug & fl) \ { log(L_TRACE "%s: " msg, pr->p.name , ## args); } } while(0) struct proto_config * kif_init_config(int class); void kif_request_scan(void); void krt_got_route(struct krt_proto *p, struct rte *e); void krt_got_route_async(struct krt_proto *p, struct rte *e, int new); /* Values for rte->u.krt_sync.src */ #define KRT_SRC_UNKNOWN -1 /* Nobody knows */ #define KRT_SRC_BIRD 0 /* Our route (not passed in async mode) */ #define KRT_SRC_REDIRECT 1 /* Redirect route, delete it */ #define KRT_SRC_ALIEN 2 /* Route installed by someone else */ #define KRT_SRC_KERNEL 3 /* Kernel routes, are ignored by krt syncer */ extern struct protocol proto_unix_iface; struct kif_primary_item { node n; byte *pattern; ip_addr prefix; int pxlen; }; struct kif_config { struct proto_config c; struct kif_params sys; /* Sysdep params */ int scan_time; /* How often we re-scan interfaces */ list primary; /* Preferences for primary addresses (struct kif_primary_item) */ }; struct kif_proto { struct proto p; struct kif_state sys; /* Sysdep state */ }; #define KIF_CF ((struct kif_config *)p->p.cf) struct proto_config * krt_init_config(int class); /* krt sysdep */ void krt_sys_init(struct krt_proto *); void krt_sys_start(struct krt_proto *); void krt_sys_shutdown(struct krt_proto *); int krt_sys_reconfigure(struct krt_proto *p UNUSED, struct krt_config *n, struct krt_config *o); void krt_sys_preconfig(struct config *); void krt_sys_postconfig(struct krt_config *); void krt_sys_init_config(struct krt_config *); void krt_sys_copy_config(struct krt_config *, struct krt_config *); int krt_capable(rte *e); void krt_do_scan(struct krt_proto *); void krt_replace_rte(struct krt_proto *p, net *n, rte *new, rte *old, struct ea_list *eattrs); /* kif sysdep */ void kif_sys_init(struct kif_proto *); void kif_sys_start(struct kif_proto *); void kif_sys_shutdown(struct kif_proto *); int kif_sys_reconfigure(struct kif_proto *, struct kif_config *, struct kif_config *); void kif_sys_init_config(struct kif_config *); void kif_sys_copy_config(struct kif_config *, struct kif_config *); void kif_do_scan(struct kif_proto *); struct ifa *kif_get_primary_ip(struct iface *i); #endif bird-1.4.0/sysdep/unix/main.c0000644000103200001440000003345212244117701015010 0ustar feelausers/* * BIRD Internet Routing Daemon -- Unix Entry Point * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #undef LOCAL_DEBUG #define _GNU_SOURCE 1 #include #include #include #include #include #include #include #include #include #include "nest/bird.h" #include "lib/lists.h" #include "lib/resource.h" #include "lib/socket.h" #include "lib/event.h" #include "lib/string.h" #include "nest/route.h" #include "nest/protocol.h" #include "nest/iface.h" #include "nest/cli.h" #include "nest/locks.h" #include "conf/conf.h" #include "filter/filter.h" #include "unix.h" #include "krt.h" /* * Debugging */ #ifdef DEBUGGING static int debug_flag = 1; #else static int debug_flag = 0; #endif void async_dump(void) { debug("INTERNAL STATE DUMP\n\n"); rdump(&root_pool); sk_dump_all(); tm_dump_all(); if_dump_all(); neigh_dump_all(); rta_dump_all(); rt_dump_all(); protos_dump_all(); debug("\n"); } /* * Dropping privileges */ #ifdef CONFIG_RESTRICTED_PRIVILEGES #include "lib/syspriv.h" #else static inline void drop_uid(uid_t uid) { die("Cannot change user on this platform"); } #endif static inline void drop_gid(gid_t gid) { if (setgid(gid) < 0) die("setgid: %m"); } /* * Reading the Configuration */ #ifdef PATH_IPROUTE_DIR static inline void add_num_const(char *name, int val) { struct symbol *s = cf_find_symbol(name); s->class = SYM_CONSTANT | T_INT; s->def = cfg_allocz(sizeof(struct f_val)); SYM_TYPE(s) = T_INT; SYM_VAL(s).i = val; } /* the code of read_iproute_table() is based on rtnl_tab_initialize() from iproute2 package */ static void read_iproute_table(char *file, char *prefix, int max) { char buf[512], namebuf[512]; char *name; int val; FILE *fp; strcpy(namebuf, prefix); name = namebuf + strlen(prefix); fp = fopen(file, "r"); if (!fp) return; while (fgets(buf, sizeof(buf), fp)) { char *p = buf; while (*p == ' ' || *p == '\t') p++; if (*p == '#' || *p == '\n' || *p == 0) continue; if (sscanf(p, "0x%x %s\n", &val, name) != 2 && sscanf(p, "0x%x %s #", &val, name) != 2 && sscanf(p, "%d %s\n", &val, name) != 2 && sscanf(p, "%d %s #", &val, name) != 2) continue; if (val < 0 || val > max) continue; for(p = name; *p; p++) if ((*p < 'a' || *p > 'z') && (*p < '0' || *p > '9') && (*p != '_')) *p = '_'; add_num_const(namebuf, val); } fclose(fp); } #endif // PATH_IPROUTE_DIR static char *config_name = PATH_CONFIG_FILE; static int cf_read(byte *dest, unsigned int len, int fd) { int l = read(fd, dest, len); if (l < 0) cf_error("Read error"); return l; } void sysdep_preconfig(struct config *c) { init_list(&c->logfiles); #ifdef PATH_IPROUTE_DIR read_iproute_table(PATH_IPROUTE_DIR "/rt_protos", "ipp_", 256); read_iproute_table(PATH_IPROUTE_DIR "/rt_realms", "ipr_", 256); read_iproute_table(PATH_IPROUTE_DIR "/rt_scopes", "ips_", 256); read_iproute_table(PATH_IPROUTE_DIR "/rt_tables", "ipt_", 256); #endif } int sysdep_commit(struct config *new, struct config *old UNUSED) { log_switch(debug_flag, &new->logfiles, new->syslog_name); return 0; } static int unix_read_config(struct config **cp, char *name) { struct config *conf = config_alloc(name); int ret; *cp = conf; conf->file_fd = open(name, O_RDONLY); if (conf->file_fd < 0) return 0; cf_read_hook = cf_read; ret = config_parse(conf); close(conf->file_fd); return ret; } static struct config * read_config(void) { struct config *conf; if (!unix_read_config(&conf, config_name)) { if (conf->err_msg) die("%s, line %d: %s", conf->err_file_name, conf->err_lino, conf->err_msg); else die("Unable to open configuration file %s: %m", config_name); } return conf; } void async_config(void) { struct config *conf; log(L_INFO "Reconfiguration requested by SIGHUP"); if (!unix_read_config(&conf, config_name)) { if (conf->err_msg) log(L_ERR "%s, line %d: %s", conf->err_file_name, conf->err_lino, conf->err_msg); else log(L_ERR "Unable to open configuration file %s: %m", config_name); config_free(conf); } else config_commit(conf, RECONFIG_HARD, 0); } static struct config * cmd_read_config(char *name) { struct config *conf; if (!name) name = config_name; cli_msg(-2, "Reading configuration from %s", name); if (!unix_read_config(&conf, name)) { if (conf->err_msg) cli_msg(8002, "%s, line %d: %s", conf->err_file_name, conf->err_lino, conf->err_msg); else cli_msg(8002, "%s: %m", name); config_free(conf); conf = NULL; } return conf; } void cmd_check_config(char *name) { struct config *conf = cmd_read_config(name); if (!conf) return; cli_msg(20, "Configuration OK"); config_free(conf); } static void cmd_reconfig_msg(int r) { switch (r) { case CONF_DONE: cli_msg( 3, "Reconfigured"); break; case CONF_PROGRESS: cli_msg( 4, "Reconfiguration in progress"); break; case CONF_QUEUED: cli_msg( 5, "Reconfiguration already in progress, queueing new config"); break; case CONF_UNQUEUED: cli_msg(17, "Reconfiguration already in progress, removing queued config"); break; case CONF_CONFIRM: cli_msg(18, "Reconfiguration confirmed"); break; case CONF_SHUTDOWN: cli_msg( 6, "Reconfiguration ignored, shutting down"); break; case CONF_NOTHING: cli_msg(19, "Nothing to do"); break; default: break; } } /* Hack for scheduled undo notification */ cli *cmd_reconfig_stored_cli; void cmd_reconfig_undo_notify(void) { if (cmd_reconfig_stored_cli) { cli *c = cmd_reconfig_stored_cli; cli_printf(c, CLI_ASYNC_CODE, "Config timeout expired, starting undo"); cli_write_trigger(c); } } void cmd_reconfig(char *name, int type, int timeout) { if (cli_access_restricted()) return; struct config *conf = cmd_read_config(name); if (!conf) return; int r = config_commit(conf, type, timeout); if ((r >= 0) && (timeout > 0)) { cmd_reconfig_stored_cli = this_cli; cli_msg(-22, "Undo scheduled in %d s", timeout); } cmd_reconfig_msg(r); } void cmd_reconfig_confirm(void) { if (cli_access_restricted()) return; int r = config_confirm(); cmd_reconfig_msg(r); } void cmd_reconfig_undo(void) { if (cli_access_restricted()) return; cli_msg(-21, "Undo requested"); int r = config_undo(); cmd_reconfig_msg(r); } /* * Command-Line Interface */ static sock *cli_sk; static char *path_control_socket = PATH_CONTROL_SOCKET; static void cli_write(cli *c) { sock *s = c->priv; while (c->tx_pos) { struct cli_out *o = c->tx_pos; int len = o->wpos - o->outpos; s->tbuf = o->outpos; o->outpos = o->wpos; if (sk_send(s, len) <= 0) return; c->tx_pos = o->next; } /* Everything is written */ s->tbuf = NULL; cli_written(c); } void cli_write_trigger(cli *c) { sock *s = c->priv; if (s->tbuf == NULL) cli_write(c); } static void cli_tx(sock *s) { cli_write(s->data); } int cli_get_command(cli *c) { sock *s = c->priv; byte *t = c->rx_aux ? : s->rbuf; byte *tend = s->rpos; byte *d = c->rx_pos; byte *dend = c->rx_buf + CLI_RX_BUF_SIZE - 2; while (t < tend) { if (*t == '\r') t++; else if (*t == '\n') { t++; c->rx_pos = c->rx_buf; c->rx_aux = t; *d = 0; return (d < dend) ? 1 : -1; } else if (d < dend) *d++ = *t++; } c->rx_aux = s->rpos = s->rbuf; c->rx_pos = d; return 0; } static int cli_rx(sock *s, int size UNUSED) { cli_kick(s->data); return 0; } static void cli_err(sock *s, int err) { if (config->cli_debug) { if (err) log(L_INFO "CLI connection dropped: %s", strerror(err)); else log(L_INFO "CLI connection closed"); } cli_free(s->data); } static int cli_connect(sock *s, int size UNUSED) { cli *c; if (config->cli_debug) log(L_INFO "CLI connect"); s->rx_hook = cli_rx; s->tx_hook = cli_tx; s->err_hook = cli_err; s->data = c = cli_new(s); s->pool = c->pool; /* We need to have all the socket buffers allocated in the cli pool */ c->rx_pos = c->rx_buf; c->rx_aux = NULL; rmove(s, c->pool); return 1; } static void cli_init_unix(uid_t use_uid, gid_t use_gid) { sock *s; cli_init(); s = cli_sk = sk_new(cli_pool); s->type = SK_UNIX_PASSIVE; s->rx_hook = cli_connect; s->rbsize = 1024; sk_open_unix(s, path_control_socket); if (use_uid || use_gid) if (chown(path_control_socket, use_uid, use_gid) < 0) die("chown: %m"); if (chmod(path_control_socket, 0660) < 0) die("chmod: %m"); } /* * PID file */ static char *pid_file; static int pid_fd; static inline void open_pid_file(void) { if (!pid_file) return; pid_fd = open(pid_file, O_WRONLY|O_CREAT, 0664); if (pid_fd < 0) die("Cannot create PID file %s: %m", pid_file); } static inline void write_pid_file(void) { int pl, rv; char ps[24]; if (!pid_file) return; /* We don't use PID file for uniqueness, so no need for locking */ pl = bsnprintf(ps, sizeof(ps), "%ld\n", (long) getpid()); if (pl < 0) bug("PID buffer too small"); rv = ftruncate(pid_fd, 0); if (rv < 0) die("fruncate: %m"); rv = write(pid_fd, ps, pl); if(rv < 0) die("write: %m"); close(pid_fd); } static inline void unlink_pid_file(void) { if (pid_file) unlink(pid_file); } /* * Shutdown */ void cmd_shutdown(void) { if (cli_access_restricted()) return; cli_msg(7, "Shutdown requested"); order_shutdown(); } void async_shutdown(void) { DBG("Shutting down...\n"); order_shutdown(); } void sysdep_shutdown_done(void) { unlink_pid_file(); unlink(path_control_socket); log_msg(L_FATAL "Shutdown completed"); exit(0); } /* * Signals */ static void handle_sighup(int sig UNUSED) { DBG("Caught SIGHUP...\n"); async_config_flag = 1; } static void handle_sigusr(int sig UNUSED) { DBG("Caught SIGUSR...\n"); async_dump_flag = 1; } static void handle_sigterm(int sig UNUSED) { DBG("Caught SIGTERM...\n"); async_shutdown_flag = 1; } static void signal_init(void) { struct sigaction sa; bzero(&sa, sizeof(sa)); sa.sa_handler = handle_sigusr; sa.sa_flags = SA_RESTART; sigaction(SIGUSR1, &sa, NULL); sa.sa_handler = handle_sighup; sa.sa_flags = SA_RESTART; sigaction(SIGHUP, &sa, NULL); sa.sa_handler = handle_sigterm; sa.sa_flags = SA_RESTART; sigaction(SIGTERM, &sa, NULL); signal(SIGPIPE, SIG_IGN); } /* * Parsing of command-line arguments */ static char *opt_list = "c:dD:ps:P:u:g:f"; static int parse_and_exit; char *bird_name; static char *use_user; static char *use_group; static int run_in_foreground = 0; static void usage(void) { fprintf(stderr, "Usage: %s [-c ] [-d] [-D ] [-p] [-s ] [-P ] [-u ] [-g ] [-f]\n", bird_name); exit(1); } static inline char * get_bird_name(char *s, char *def) { char *t; if (!s) return def; t = strrchr(s, '/'); if (!t) return s; if (!t[1]) return def; return t+1; } static inline uid_t get_uid(const char *s) { struct passwd *pw; char *endptr; long int rv; if (!s) return 0; errno = 0; rv = strtol(s, &endptr, 10); if (!errno && !*endptr) return rv; pw = getpwnam(s); if (!pw) die("Cannot find user '%s'", s); return pw->pw_uid; } static inline gid_t get_gid(const char *s) { struct group *gr; char *endptr; long int rv; if (!s) return 0; errno = 0; rv = strtol(s, &endptr, 10); if (!errno && !*endptr) return rv; gr = getgrnam(s); if (!gr) die("Cannot find group '%s'", s); return gr->gr_gid; } static void parse_args(int argc, char **argv) { int c; bird_name = get_bird_name(argv[0], "bird"); if (argc == 2) { if (!strcmp(argv[1], "--version")) { fprintf(stderr, "BIRD version " BIRD_VERSION "\n"); exit(0); } if (!strcmp(argv[1], "--help")) usage(); } while ((c = getopt(argc, argv, opt_list)) >= 0) switch (c) { case 'c': config_name = optarg; break; case 'd': debug_flag |= 1; break; case 'D': log_init_debug(optarg); debug_flag |= 2; break; case 'p': parse_and_exit = 1; break; case 's': path_control_socket = optarg; break; case 'P': pid_file = optarg; break; case 'u': use_user = optarg; break; case 'g': use_group = optarg; break; case 'f': run_in_foreground = 1; break; default: usage(); } if (optind < argc) usage(); } /* * Hic Est main() */ int main(int argc, char **argv) { #ifdef HAVE_LIBDMALLOC if (!getenv("DMALLOC_OPTIONS")) dmalloc_debug(0x2f03d00); #endif parse_args(argc, argv); if (debug_flag == 1) log_init_debug(""); log_switch(debug_flag, NULL, NULL); resource_init(); olock_init(); io_init(); rt_init(); if_init(); roa_init(); config_init(); uid_t use_uid = get_uid(use_user); gid_t use_gid = get_gid(use_group); if (!parse_and_exit) { test_old_bird(path_control_socket); cli_init_unix(use_uid, use_gid); } if (use_gid) drop_gid(use_gid); if (use_uid) drop_uid(use_uid); if (!parse_and_exit) open_pid_file(); protos_build(); proto_build(&proto_unix_kernel); proto_build(&proto_unix_iface); struct config *conf = read_config(); if (parse_and_exit) exit(0); if (!(debug_flag||run_in_foreground)) { pid_t pid = fork(); if (pid < 0) die("fork: %m"); if (pid) return 0; setsid(); close(0); if (open("/dev/null", O_RDWR) < 0) die("Cannot open /dev/null: %m"); dup2(0, 1); dup2(0, 2); } write_pid_file(); signal_init(); config_commit(conf, RECONFIG_HARD, 0); #ifdef LOCAL_DEBUG async_dump_flag = 1; #endif log(L_INFO "Started"); DBG("Entering I/O loop.\n"); io_loop(); bug("I/O loop died"); } bird-1.4.0/sysdep/unix/krt.Y0000644000103200001440000000373312010156301014637 0ustar feelausers/* * BIRD -- UNIX Kernel Syncer Configuration * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ CF_HDR #include "lib/krt.h" CF_DEFINES #define THIS_KRT ((struct krt_config *) this_proto) #define THIS_KIF ((struct kif_config *) this_proto) CF_DECLS CF_KEYWORDS(KERNEL, PERSIST, SCAN, TIME, LEARN, DEVICE, ROUTES, KRT_SOURCE, KRT_METRIC) CF_GRAMMAR /* Kernel syncer protocol */ CF_ADDTO(proto, kern_proto '}') kern_proto_start: proto_start KERNEL { this_proto = krt_init_config($1); } ; CF_ADDTO(kern_proto, kern_proto_start proto_name '{') CF_ADDTO(kern_proto, kern_proto proto_item ';') CF_ADDTO(kern_proto, kern_proto kern_item ';') kern_item: PERSIST bool { THIS_KRT->persist = $2; } | SCAN TIME expr { /* Scan time of 0 means scan on startup only */ THIS_KRT->scan_time = $3; } | LEARN bool { THIS_KRT->learn = $2; #ifndef KRT_ALLOW_LEARN if ($2) cf_error("Learning of kernel routes not supported in this configuration"); #endif } | DEVICE ROUTES bool { THIS_KRT->devroutes = $3; } ; /* Kernel interface protocol */ CF_ADDTO(proto, kif_proto '}') kif_proto_start: proto_start DEVICE { this_proto = kif_init_config($1); } ; CF_ADDTO(kif_proto, kif_proto_start proto_name '{') CF_ADDTO(kif_proto, kif_proto proto_item ';') CF_ADDTO(kif_proto, kif_proto kif_item ';') kif_item: SCAN TIME expr { /* Scan time of 0 means scan on startup only */ THIS_KIF->scan_time = $3; } | PRIMARY text_or_none prefix_or_ipa { struct kif_primary_item *kpi = cfg_alloc(sizeof (struct kif_primary_item)); kpi->pattern = $2; kpi->prefix = $3.addr; kpi->pxlen = $3.len; add_tail(&THIS_KIF->primary, &kpi->n); } ; CF_ADDTO(dynamic_attr, KRT_SOURCE { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_TEMP, T_INT, EA_KRT_SOURCE); }) CF_ADDTO(dynamic_attr, KRT_METRIC { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_TEMP, T_INT, EA_KRT_METRIC); }) CF_CODE CF_END bird-1.4.0/sysdep/unix/endian.h0000644000103200001440000000053711606273733015336 0ustar feelausers/* * BIRD -- Endianity Conversion * * (c) 1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_ENDIAN_H_ #define _BIRD_ENDIAN_H_ /* hton[sl] and ntoh[sl] are defined here */ #include #include #ifdef HAVE_STDINT_H #include #endif #endif bird-1.4.0/sysdep/bsd/0000755000103200001440000000000012244656136013510 5ustar feelausersbird-1.4.0/sysdep/bsd/krt-sys.h0000644000103200001440000000205412175263574015301 0ustar feelausers/* * BIRD -- *BSD Kernel Route Syncer * * (c) 2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_KRT_SYS_H_ #define _BIRD_KRT_SYS_H_ struct birdsock; /* Kernel interfaces */ struct kif_params { }; struct kif_state { }; static inline void kif_sys_init(struct kif_proto *p UNUSED) { } static inline int kif_sys_reconfigure(struct kif_proto *p UNUSED, struct kif_config *n UNUSED, struct kif_config *o UNUSED) { return 1; } static inline void kif_sys_preconfig(struct config *c UNUSED) { } static inline void kif_sys_postconfig(struct kif_config *c UNUSED) { } static inline void kif_sys_init_config(struct kif_config *c UNUSED) { } static inline void kif_sys_copy_config(struct kif_config *d UNUSED, struct kif_config *s UNUSED) { } /* Kernel routes */ extern int krt_max_tables; struct krt_params { int table_id; /* Kernel table ID we sync with */ }; struct krt_state { struct birdsock *sk; }; static inline void krt_sys_init(struct krt_proto *p UNUSED) { } #endif bird-1.4.0/sysdep/bsd/sysio.h0000644000103200001440000001431412175263574015035 0ustar feelausers/* * BIRD Internet Routing Daemon -- NetBSD Multicasting and Network Includes * * (c) 2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifdef __NetBSD__ #ifndef IP_RECVTTL #define IP_RECVTTL 23 #endif #ifndef IP_MINTTL #define IP_MINTTL 24 #endif #endif #ifdef __DragonFly__ #define TCP_MD5SIG TCP_SIGNATURE_ENABLE #endif #ifdef IPV6 static inline void set_inaddr(struct in6_addr * ia, ip_addr a) { ipa_hton(a); memcpy(ia, &a, sizeof(a)); } static inline void get_inaddr(ip_addr *a, struct in6_addr *ia) { memcpy(a, ia, sizeof(*a)); ipa_ntoh(*a); } static inline char * sysio_bind_to_iface(sock *s) { /* Unfortunately not available */ return NULL; } #else #include #include static inline void set_inaddr(struct in_addr * ia, ip_addr a) { ipa_hton(a); memcpy(&ia->s_addr, &a, sizeof(a)); } static inline void get_inaddr(ip_addr *a, struct in_addr *ia) { memcpy(a, &ia->s_addr, sizeof(*a)); ipa_ntoh(*a); } /* BSD Multicast handling for IPv4 */ static inline char * sysio_setup_multicast(sock *s) { struct in_addr m; u8 zero = 0; u8 ttl = s->ttl; if (setsockopt(s->fd, IPPROTO_IP, IP_MULTICAST_LOOP, &zero, sizeof(zero)) < 0) return "IP_MULTICAST_LOOP"; if (setsockopt(s->fd, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) < 0) return "IP_MULTICAST_TTL"; /* This defines where should we send _outgoing_ multicasts */ set_inaddr(&m, s->iface->addr->ip); if (setsockopt(s->fd, IPPROTO_IP, IP_MULTICAST_IF, &m, sizeof(m)) < 0) return "IP_MULTICAST_IF"; return NULL; } static inline char * sysio_join_group(sock *s, ip_addr maddr) { struct ip_mreq mreq; bzero(&mreq, sizeof(mreq)); set_inaddr(&mreq.imr_interface, s->iface->addr->ip); set_inaddr(&mreq.imr_multiaddr, maddr); /* And this one sets interface for _receiving_ multicasts from */ if (setsockopt(s->fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) return "IP_ADD_MEMBERSHIP"; return NULL; } static inline char * sysio_leave_group(sock *s, ip_addr maddr) { struct ip_mreq mreq; bzero(&mreq, sizeof(mreq)); set_inaddr(&mreq.imr_interface, s->iface->addr->ip); set_inaddr(&mreq.imr_multiaddr, maddr); /* And this one sets interface for _receiving_ multicasts from */ if (setsockopt(s->fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) return "IP_DROP_MEMBERSHIP"; return NULL; } /* BSD RX/TX packet info handling for IPv4 */ /* it uses IP_RECVDSTADDR / IP_RECVIF socket options instead of IP_PKTINFO */ #define CMSG_RX_SPACE (CMSG_SPACE(sizeof(struct in_addr)) + \ CMSG_SPACE(sizeof(struct sockaddr_dl)) + \ CMSG_SPACE(sizeof(char))) #define CMSG_TX_SPACE CMSG_SPACE(sizeof(struct in_addr)) static char * sysio_register_cmsgs(sock *s) { int ok = 1; if (s->flags & SKF_LADDR_RX) { if (setsockopt(s->fd, IPPROTO_IP, IP_RECVDSTADDR, &ok, sizeof(ok)) < 0) return "IP_RECVDSTADDR"; if (setsockopt(s->fd, IPPROTO_IP, IP_RECVIF, &ok, sizeof(ok)) < 0) return "IP_RECVIF"; } if ((s->flags & SKF_TTL_RX) && (setsockopt(s->fd, IPPROTO_IP, IP_RECVTTL, &ok, sizeof(ok)) < 0)) return "IP_RECVTTL"; return NULL; } static void sysio_process_rx_cmsgs(sock *s, struct msghdr *msg) { struct cmsghdr *cm; struct in_addr *ra = NULL; struct sockaddr_dl *ri = NULL; unsigned char *ttl = NULL; for (cm = CMSG_FIRSTHDR(msg); cm != NULL; cm = CMSG_NXTHDR(msg, cm)) { if (cm->cmsg_level == IPPROTO_IP && cm->cmsg_type == IP_RECVDSTADDR) ra = (struct in_addr *) CMSG_DATA(cm); if (cm->cmsg_level == IPPROTO_IP && cm->cmsg_type == IP_RECVIF) ri = (struct sockaddr_dl *) CMSG_DATA(cm); if (cm->cmsg_level == IPPROTO_IP && cm->cmsg_type == IP_RECVTTL) ttl = (unsigned char *) CMSG_DATA(cm); } if (s->flags & SKF_LADDR_RX) { s->laddr = IPA_NONE; s->lifindex = 0; if (ra) get_inaddr(&s->laddr, ra); if (ri) s->lifindex = ri->sdl_index; } if (s->flags & SKF_TTL_RX) s->ttl = ttl ? *ttl : -1; // log(L_WARN "RX %I %d", s->laddr, s->lifindex); } /* Unfortunately, IP_SENDSRCADDR does not work for raw IP sockets on BSD kernels */ /* static void sysio_prepare_tx_cmsgs(sock *s, struct msghdr *msg, void *cbuf, size_t cbuflen) { struct cmsghdr *cm; struct in_addr *sa; if (!(s->flags & SKF_LADDR_TX)) return; msg->msg_control = cbuf; msg->msg_controllen = cbuflen; if (s->iface) { struct in_addr m; set_inaddr(&m, s->saddr); setsockopt(s->fd, IPPROTO_IP, IP_MULTICAST_IF, &m, sizeof(m)); } cm = CMSG_FIRSTHDR(msg); cm->cmsg_level = IPPROTO_IP; cm->cmsg_type = IP_SENDSRCADDR; cm->cmsg_len = CMSG_LEN(sizeof(*sa)); sa = (struct in_addr *) CMSG_DATA(cm); set_inaddr(sa, s->saddr); msg->msg_controllen = cm->cmsg_len; } */ #endif #include #ifndef TCP_KEYLEN_MAX #define TCP_KEYLEN_MAX 80 #endif #ifndef TCP_SIG_SPI #define TCP_SIG_SPI 0x1000 #endif /* * FIXME: Passwords has to be set by setkey(8) command. This is the same * behaviour like Quagga. We need to add code for SA/SP entries * management. */ static int sk_set_md5_auth_int(sock *s, sockaddr *sa, char *passwd) { int enable = 0; if (passwd) { int len = strlen(passwd); enable = len ? TCP_SIG_SPI : 0; if (len > TCP_KEYLEN_MAX) { log(L_ERR "MD5 password too long"); return -1; } } int rv = setsockopt(s->fd, IPPROTO_TCP, TCP_MD5SIG, &enable, sizeof(enable)); if (rv < 0) { if (errno == ENOPROTOOPT) log(L_ERR "Kernel does not support TCP MD5 signatures"); else log(L_ERR "sk_set_md5_auth_int: setsockopt: %m"); } return rv; } #ifndef IPV6 static int sk_set_min_ttl4(sock *s, int ttl) { if (setsockopt(s->fd, IPPROTO_IP, IP_MINTTL, &ttl, sizeof(ttl)) < 0) { if (errno == ENOPROTOOPT) log(L_ERR "Kernel does not support IPv4 TTL security"); else log(L_ERR "sk_set_min_ttl4: setsockopt: %m"); return -1; } return 0; } #else /* IPv6 */ static int sk_set_min_ttl6(sock *s, int ttl) { log(L_ERR "IPv6 TTL security not supported"); return -1; } #endif int sk_priority_control = -1; static int sk_set_priority(sock *s, int prio UNUSED) { log(L_WARN "Socket priority not supported"); return -1; } bird-1.4.0/sysdep/bsd/Modules0000644000103200001440000000005012175263574015041 0ustar feelauserskrt-sock.c krt-sock.Y krt-sys.h sysio.h bird-1.4.0/sysdep/bsd/krt-sock.Y0000644000103200001440000000110512175263574015377 0ustar feelausers/* * BIRD -- BSD Kernel Syncer Configuration * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ CF_HDR CF_DECLS CF_KEYWORDS(KERNEL, TABLE) CF_GRAMMAR CF_ADDTO(kern_proto, kern_proto kern_sys_item ';') kern_sys_item: KERNEL TABLE expr { if ($3 && (krt_max_tables == 1)) cf_error("Multiple kernel routing tables not supported"); if ($3 < 0 || $3 >= krt_max_tables) cf_error("Kernel table id must be in range 0-%d", krt_max_tables - 1); THIS_KRT->sys.table_id = $3; } ; CF_CODE CF_END bird-1.4.0/sysdep/bsd/krt-sock.c0000644000103200001440000005502212244656136015415 0ustar feelausers/* * BIRD -- BSD Routing Table Syncing * * (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 #include #include #include #include #include #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/iface.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" #include "lib/socket.h" /* * There are significant differences in multiple tables support between BSD variants. * * OpenBSD has table_id field for routes in route socket protocol, therefore all * tables could be managed by one kernel socket. FreeBSD lacks such field, * therefore multiple sockets (locked to specific table using SO_SETFIB socket * option) must be used. * * Both FreeBSD and OpenBSD uses separate scans for each table. In OpenBSD, * table_id is specified explicitly as sysctl scan argument, while in FreeBSD it * is handled implicitly by changing default table using setfib() syscall. * * KRT_SHARED_SOCKET - use shared kernel socked instead of one for each krt_proto * KRT_USE_SETFIB_SCAN - use setfib() for sysctl() route scan * KRT_USE_SETFIB_SOCK - use SO_SETFIB socket option for kernel sockets * KRT_USE_SYSCTL_7 - use 7-th arg of sysctl() as table id for route scans * KRT_USE_SYSCTL_NET_FIBS - use net.fibs sysctl() for dynamic max number of fibs */ #ifdef __FreeBSD__ #define KRT_MAX_TABLES 256 #define KRT_USE_SETFIB_SCAN #define KRT_USE_SETFIB_SOCK #define KRT_USE_SYSCTL_NET_FIBS #endif #ifdef __OpenBSD__ #define KRT_MAX_TABLES (RT_TABLEID_MAX+1) #define KRT_SHARED_SOCKET #define KRT_USE_SYSCTL_7 #endif #ifndef KRT_MAX_TABLES #define KRT_MAX_TABLES 1 #endif /* Dynamic max number of tables */ int krt_max_tables; #ifdef KRT_USE_SYSCTL_NET_FIBS static int krt_get_max_tables(void) { int fibs; size_t fibs_len = sizeof(fibs); if (sysctlbyname("net.fibs", &fibs, &fibs_len, NULL, 0) < 0) { log(L_WARN "KRT: unable to get max number of fib tables: %m"); return 1; } return MIN(fibs, KRT_MAX_TABLES); } #else static int krt_get_max_tables(void) { return KRT_MAX_TABLES; } #endif /* KRT_USE_SYSCTL_NET_FIBS */ /* setfib() syscall for FreeBSD scans */ #ifdef KRT_USE_SETFIB_SCAN /* static int krt_default_fib; static int krt_get_active_fib(void) { int fib; size_t fib_len = sizeof(fib); if (sysctlbyname("net.my_fibnum", &fib, &fib_len, NULL, 0) < 0) { log(L_WARN "KRT: unable to get active fib number: %m"); return 0; } return fib; } */ extern int setfib(int fib); #endif /* KRT_USE_SETFIB_SCAN */ /* table_id -> krt_proto map */ #ifdef KRT_SHARED_SOCKET static struct krt_proto *krt_table_map[KRT_MAX_TABLES]; #endif /* Route socket message processing */ int krt_capable(rte *e) { rta *a = e->attrs; return a->cast == RTC_UNICAST && (a->dest == RTD_ROUTER || a->dest == RTD_DEVICE #ifdef RTF_REJECT || a->dest == RTD_UNREACHABLE #endif #ifdef RTF_BLACKHOLE || a->dest == RTD_BLACKHOLE #endif ); } #ifndef RTAX_MAX #define RTAX_MAX 8 #endif struct ks_msg { struct rt_msghdr rtm; struct sockaddr_storage buf[RTAX_MAX]; }; #define ROUNDUP(a) \ ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long)) #define NEXTADDR(w, u) \ if (msg.rtm.rtm_addrs & (w)) {\ l = ROUNDUP(((struct sockaddr *)&(u))->sa_len);\ memmove(body, &(u), l); body += l;} #define GETADDR(p, F) \ bzero(p, sizeof(*p));\ if ((addrs & (F)) && ((struct sockaddr *)body)->sa_len) {\ unsigned int l = ROUNDUP(((struct sockaddr *)body)->sa_len);\ memcpy(p, body, (l > sizeof(*p) ? sizeof(*p) : l));\ body += l;} static int krt_send_route(struct krt_proto *p, int cmd, rte *e) { net *net = e->net; rta *a = e->attrs; static int msg_seq; struct iface *j, *i = a->iface; int l; struct ks_msg msg; char *body = (char *)msg.buf; sockaddr gate, mask, dst; ip_addr gw; DBG("krt-sock: send %I/%d via %I\n", net->n.prefix, net->n.pxlen, a->gw); bzero(&msg,sizeof (struct rt_msghdr)); msg.rtm.rtm_version = RTM_VERSION; msg.rtm.rtm_type = cmd; msg.rtm.rtm_seq = msg_seq++; msg.rtm.rtm_addrs = RTA_DST; msg.rtm.rtm_flags = RTF_UP | RTF_PROTO1; if (net->n.pxlen == MAX_PREFIX_LENGTH) msg.rtm.rtm_flags |= RTF_HOST; else msg.rtm.rtm_addrs |= RTA_NETMASK; #ifdef KRT_SHARED_SOCKET msg.rtm.rtm_tableid = KRT_CF->sys.table_id; #endif #ifdef RTF_REJECT if(a->dest == RTD_UNREACHABLE) msg.rtm.rtm_flags |= RTF_REJECT; #endif #ifdef RTF_BLACKHOLE if(a->dest == RTD_BLACKHOLE) msg.rtm.rtm_flags |= RTF_BLACKHOLE; #endif /* This is really very nasty, but I'm not able * to add "(reject|blackhole)" route without * gateway set */ if(!i) { i = HEAD(iface_list); WALK_LIST(j, iface_list) { if (j->flags & IF_LOOPBACK) { i = j; break; } } } gw = a->gw; #ifdef IPV6 /* Embed interface ID to link-local address */ if (ipa_has_link_scope(gw)) _I0(gw) = 0xfe800000 | (i->index & 0x0000ffff); #endif fill_in_sockaddr(&dst, net->n.prefix, NULL, 0); fill_in_sockaddr(&mask, ipa_mkmask(net->n.pxlen), NULL, 0); fill_in_sockaddr(&gate, gw, NULL, 0); switch (a->dest) { case RTD_ROUTER: msg.rtm.rtm_flags |= RTF_GATEWAY; msg.rtm.rtm_addrs |= RTA_GATEWAY; break; #ifdef RTF_REJECT case RTD_UNREACHABLE: #endif #ifdef RTF_BLACKHOLE case RTD_BLACKHOLE: #endif case RTD_DEVICE: if(i) { #ifdef RTF_CLONING if (cmd == RTM_ADD && (i->flags & IF_MULTIACCESS) != IF_MULTIACCESS) /* PTP */ msg.rtm.rtm_flags |= RTF_CLONING; #endif if(!i->addr) { log(L_ERR "KRT: interface %s has no IP addess", i->name); return -1; } fill_in_sockaddr(&gate, i->addr->ip, NULL, 0); msg.rtm.rtm_addrs |= RTA_GATEWAY; } break; default: bug("krt-sock: unknown flags, but not filtered"); } msg.rtm.rtm_index = i->index; NEXTADDR(RTA_DST, dst); NEXTADDR(RTA_GATEWAY, gate); NEXTADDR(RTA_NETMASK, mask); l = body - (char *)&msg; msg.rtm.rtm_msglen = l; if ((l = write(p->sys.sk->fd, (char *)&msg, l)) < 0) { log(L_ERR "KRT: Error sending route %I/%d to kernel: %m", net->n.prefix, net->n.pxlen); return -1; } return 0; } void krt_replace_rte(struct krt_proto *p, net *n, rte *new, rte *old, struct ea_list *eattrs UNUSED) { int err = 0; if (old) krt_send_route(p, RTM_DELETE, old); if (new) err = krt_send_route(p, RTM_ADD, new); if (err < 0) n->n.flags |= KRF_SYNC_ERROR; else n->n.flags &= ~KRF_SYNC_ERROR; } #define SKIP(ARG...) do { DBG("KRT: Ignoring route - " ARG); return; } while(0) static void krt_read_route(struct ks_msg *msg, struct krt_proto *p, int scan) { /* p is NULL iff KRT_SHARED_SOCKET and !scan */ rte *e; net *net; sockaddr dst, gate, mask; ip_addr idst, igate, imask; void *body = (char *)msg->buf; int new = (msg->rtm.rtm_type == RTM_ADD); char *errmsg = "KRT: Invalid route received"; int flags = msg->rtm.rtm_flags; int addrs = msg->rtm.rtm_addrs; int src; byte src2; if (!(flags & RTF_UP) && scan) SKIP("not up in scan\n"); if (!(flags & RTF_DONE) && !scan) SKIP("not done in async\n"); if (flags & RTF_LLINFO) SKIP("link-local\n"); #ifdef KRT_SHARED_SOCKET if (!scan) { int table_id = msg->rtm.rtm_tableid; p = (table_id < KRT_MAX_TABLES) ? krt_table_map[table_id] : NULL; if (!p) SKIP("unknown table id %d\n", table_id); } #endif GETADDR(&dst, RTA_DST); GETADDR(&gate, RTA_GATEWAY); GETADDR(&mask, RTA_NETMASK); if (sa_family_check(&dst)) get_sockaddr(&dst, &idst, NULL, NULL, 0); else SKIP("invalid DST"); /* We will check later whether we have valid gateway addr */ if (sa_family_check(&gate)) get_sockaddr(&gate, &igate, NULL, NULL, 0); else igate = IPA_NONE; /* We do not test family for RTA_NETMASK, because BSD sends us some strange values, but interpreting them as IPv4/IPv6 works */ get_sockaddr(&mask, &imask, NULL, NULL, 0); int c = ipa_classify_net(idst); if ((c < 0) || !(c & IADDR_HOST) || ((c & IADDR_SCOPE_MASK) <= SCOPE_LINK)) SKIP("strange class/scope\n"); int pxlen = (flags & RTF_HOST) ? MAX_PREFIX_LENGTH : ipa_mklen(imask); if (pxlen < 0) { log(L_ERR "%s (%I) - netmask %I", errmsg, idst, imask); return; } if ((flags & RTF_GATEWAY) && ipa_zero(igate)) { log(L_ERR "%s (%I/%d) - missing gateway", errmsg, idst, pxlen); return; } u32 self_mask = RTF_PROTO1; u32 alien_mask = RTF_STATIC | RTF_PROTO1 | RTF_GATEWAY; src2 = (flags & RTF_STATIC) ? 1 : 0; src2 |= (flags & RTF_PROTO1) ? 2 : 0; #ifdef RTF_PROTO2 alien_mask |= RTF_PROTO2; src2 |= (flags & RTF_PROTO2) ? 4 : 0; #endif #ifdef RTF_PROTO3 alien_mask |= RTF_PROTO3; src2 |= (flags & RTF_PROTO3) ? 8 : 0; #endif #ifdef RTF_REJECT alien_mask |= RTF_REJECT; #endif #ifdef RTF_BLACKHOLE alien_mask |= RTF_BLACKHOLE; #endif if (flags & (RTF_DYNAMIC | RTF_MODIFIED)) src = KRT_SRC_REDIRECT; else if (flags & self_mask) { if (!scan) SKIP("echo\n"); src = KRT_SRC_BIRD; } else if (flags & alien_mask) src = KRT_SRC_ALIEN; else src = KRT_SRC_KERNEL; net = net_get(p->p.table, idst, pxlen); rta a = { .proto = &p->p, .source = RTS_INHERIT, .scope = SCOPE_UNIVERSE, .cast = RTC_UNICAST }; /* reject/blackhole routes have also set RTF_GATEWAY, we wil check them first. */ #ifdef RTF_REJECT if(flags & RTF_REJECT) { a.dest = RTD_UNREACHABLE; goto done; } #endif #ifdef RTF_BLACKHOLE if(flags & RTF_BLACKHOLE) { a.dest = RTD_BLACKHOLE; goto done; } #endif a.iface = if_find_by_index(msg->rtm.rtm_index); if (!a.iface) { log(L_ERR "KRT: Received route %I/%d with unknown ifindex %u", net->n.prefix, net->n.pxlen, msg->rtm.rtm_index); return; } if (flags & RTF_GATEWAY) { neighbor *ng; a.dest = RTD_ROUTER; a.gw = igate; #ifdef IPV6 /* Clean up embedded interface ID returned in link-local address */ if (ipa_has_link_scope(a.gw)) _I0(a.gw) = 0xfe800000; #endif ng = neigh_find2(&p->p, &a.gw, a.iface, 0); if (!ng || (ng->scope == SCOPE_HOST)) { /* Ignore routes with next-hop 127.0.0.1, host routes with such next-hop appear on OpenBSD for address aliases. */ if (ipa_classify(a.gw) == (IADDR_HOST | SCOPE_HOST)) return; log(L_ERR "KRT: Received route %I/%d with strange next-hop %I", net->n.prefix, net->n.pxlen, a.gw); return; } } else a.dest = RTD_DEVICE; done: e = rte_get_temp(&a); e->net = net; e->u.krt.src = src; e->u.krt.proto = src2; /* These are probably too Linux-specific */ e->u.krt.type = 0; e->u.krt.metric = 0; if (scan) krt_got_route(p, e); else krt_got_route_async(p, e, new); } static void krt_read_ifannounce(struct ks_msg *msg) { struct if_announcemsghdr *ifam = (struct if_announcemsghdr *)&msg->rtm; if (ifam->ifan_what == IFAN_ARRIVAL) { /* Not enough info to create the iface, so we just trigger iface scan */ kif_request_scan(); } else if (ifam->ifan_what == IFAN_DEPARTURE) { struct iface *iface = if_find_by_index(ifam->ifan_index); /* Interface is destroyed */ if (!iface) { DBG("KRT: unknown interface (%s, #%d) going down. Ignoring\n", ifam->ifan_name, ifam->ifan_index); return; } if_delete(iface); } DBG("KRT: IFANNOUNCE what: %d index %d name %s\n", ifam->ifan_what, ifam->ifan_index, ifam->ifan_name); } static void krt_read_ifinfo(struct ks_msg *msg) { struct if_msghdr *ifm = (struct if_msghdr *)&msg->rtm; void *body = (void *)(ifm + 1); struct sockaddr_dl *dl = NULL; unsigned int i; struct iface *iface = NULL, f = {}; int fl = ifm->ifm_flags; int nlen = 0; for (i = 1; i<=RTA_IFP; i <<= 1) { if (i & ifm->ifm_addrs) { if (i == RTA_IFP) { dl = (struct sockaddr_dl *)body; break; } body += ROUNDUP(((struct sockaddr *)&(body))->sa_len); } } if (dl && (dl->sdl_family != AF_LINK)) { log(L_WARN "Ignoring strange IFINFO"); return; } if (dl) nlen = MIN(sizeof(f.name)-1, dl->sdl_nlen); /* Note that asynchronous IFINFO messages do not contain iface name, so we have to found an existing iface by iface index */ iface = if_find_by_index(ifm->ifm_index); if (!iface) { /* New interface */ if (!dl) return; /* No interface name, ignoring */ memcpy(f.name, dl->sdl_data, nlen); DBG("New interface '%s' found\n", f.name); } else if (dl && memcmp(iface->name, dl->sdl_data, nlen)) { /* Interface renamed */ if_delete(iface); memcpy(f.name, dl->sdl_data, nlen); } else { /* Old interface */ memcpy(f.name, iface->name, sizeof(f.name)); } f.index = ifm->ifm_index; f.mtu = ifm->ifm_data.ifi_mtu; if (fl & IFF_UP) f.flags |= IF_ADMIN_UP; if (ifm->ifm_data.ifi_link_state != LINK_STATE_DOWN) f.flags |= IF_LINK_UP; /* up or unknown */ if (fl & IFF_LOOPBACK) /* Loopback */ f.flags |= IF_MULTIACCESS | IF_LOOPBACK | IF_IGNORE; else if (fl & IFF_POINTOPOINT) /* PtP */ f.flags |= IF_MULTICAST; else if (fl & IFF_BROADCAST) /* Broadcast */ f.flags |= IF_MULTIACCESS | IF_BROADCAST | IF_MULTICAST; else f.flags |= IF_MULTIACCESS; /* NBMA */ if_update(&f); } static void krt_read_addr(struct ks_msg *msg) { struct ifa_msghdr *ifam = (struct ifa_msghdr *)&msg->rtm; void *body = (void *)(ifam + 1); sockaddr addr, mask, brd; struct iface *iface = NULL; struct ifa ifa; struct sockaddr null; ip_addr iaddr, imask, ibrd; int addrs = ifam->ifam_addrs; int scope, masklen = -1; int new = (ifam->ifam_type == RTM_NEWADDR); /* Strange messages with zero (invalid) ifindex appear on OpenBSD */ if (ifam->ifam_index == 0) return; if(!(iface = if_find_by_index(ifam->ifam_index))) { log(L_ERR "KIF: Received address message for unknown interface %d", ifam->ifam_index); return; } GETADDR (&null, RTA_DST); GETADDR (&null, RTA_GATEWAY); GETADDR (&mask, RTA_NETMASK); GETADDR (&null, RTA_GENMASK); GETADDR (&null, RTA_IFP); GETADDR (&addr, RTA_IFA); GETADDR (&null, RTA_AUTHOR); GETADDR (&brd, RTA_BRD); /* Some other family address */ if (!sa_family_check(&addr)) return; get_sockaddr(&addr, &iaddr, NULL, NULL, 0); get_sockaddr(&mask, &imask, NULL, NULL, 0); get_sockaddr(&brd, &ibrd, NULL, NULL, 0); if ((masklen = ipa_mklen(imask)) < 0) { log(L_ERR "KIF: Invalid masklen %I for %s", imask, iface->name); return; } #ifdef IPV6 /* Clean up embedded interface ID returned in link-local address */ if (ipa_has_link_scope(iaddr)) _I0(iaddr) = 0xfe800000; if (ipa_has_link_scope(ibrd)) _I0(ibrd) = 0xfe800000; #endif bzero(&ifa, sizeof(ifa)); ifa.iface = iface; ifa.ip = iaddr; ifa.pxlen = masklen; scope = ipa_classify(ifa.ip); if (scope < 0) { log(L_ERR "KIF: Invalid interface address %I for %s", ifa.ip, iface->name); return; } ifa.scope = scope & IADDR_SCOPE_MASK; if (masklen < BITS_PER_IP_ADDRESS) { ifa.prefix = ipa_and(ifa.ip, ipa_mkmask(masklen)); if (masklen == (BITS_PER_IP_ADDRESS - 1)) ifa.opposite = ipa_opposite_m1(ifa.ip); #ifndef IPV6 if (masklen == (BITS_PER_IP_ADDRESS - 2)) ifa.opposite = ipa_opposite_m2(ifa.ip); #endif if (iface->flags & IF_BROADCAST) ifa.brd = ibrd; if (!(iface->flags & IF_MULTIACCESS)) ifa.opposite = ibrd; } else if (!(iface->flags & IF_MULTIACCESS) && ipa_nonzero(ibrd)) { ifa.prefix = ifa.opposite = ibrd; ifa.flags |= IA_PEER; } else { ifa.prefix = ifa.ip; ifa.flags |= IA_HOST; } if (new) ifa_update(&ifa); else ifa_delete(&ifa); } static void krt_read_msg(struct proto *p, struct ks_msg *msg, int scan) { /* p is NULL iff KRT_SHARED_SOCKET and !scan */ switch (msg->rtm.rtm_type) { case RTM_GET: if(!scan) return; case RTM_ADD: case RTM_DELETE: krt_read_route(msg, (struct krt_proto *)p, scan); break; case RTM_IFANNOUNCE: krt_read_ifannounce(msg); break; case RTM_IFINFO: krt_read_ifinfo(msg); break; case RTM_NEWADDR: case RTM_DELADDR: krt_read_addr(msg); break; default: break; } } /* Sysctl based scans */ static byte *krt_buffer; static size_t krt_buflen, krt_bufmin; static struct proto *krt_buffer_owner; static byte * krt_buffer_update(struct proto *p, size_t *needed) { size_t req = *needed; if ((req > krt_buflen) || ((p == krt_buffer_owner) && (req < krt_bufmin))) { /* min buflen is 32 kB, step is 8 kB, or 128 kB if > 1 MB */ size_t step = (req < 0x100000) ? 0x2000 : 0x20000; krt_buflen = (req < 0x6000) ? 0x8000 : (req + step); krt_bufmin = (req < 0x8000) ? 0 : (req - 2*step); if (krt_buffer) mb_free(krt_buffer); krt_buffer = mb_alloc(krt_pool, krt_buflen); krt_buffer_owner = p; } *needed = krt_buflen; return krt_buffer; } static void krt_buffer_release(struct proto *p) { if (p == krt_buffer_owner) { mb_free(krt_buffer); krt_buffer = NULL; krt_buflen = 0; krt_buffer_owner = 0; } } static void krt_sysctl_scan(struct proto *p, int cmd, int table_id) { byte *buf, *next; int mib[7], mcnt; size_t needed; struct ks_msg *m; int retries = 3; int rv; mib[0] = CTL_NET; mib[1] = PF_ROUTE; mib[2] = 0; mib[3] = BIRD_PF; mib[4] = cmd; mib[5] = 0; mcnt = 6; #ifdef KRT_USE_SYSCTL_7 if (table_id >= 0) { mib[6] = table_id; mcnt = 7; } #endif #ifdef KRT_USE_SETFIB_SCAN if (table_id > 0) if (setfib(table_id) < 0) { log(L_ERR "KRT: setfib(%d) failed: %m", table_id); return; } #endif try: rv = sysctl(mib, mcnt, NULL, &needed, NULL, 0); if (rv < 0) { /* OpenBSD returns EINVAL for not yet used tables */ if ((errno == EINVAL) && (table_id > 0)) goto exit; log(L_ERR "KRT: Route scan estimate failed: %m"); goto exit; } /* The table is empty */ if (needed == 0) goto exit; buf = krt_buffer_update(p, &needed); rv = sysctl(mib, mcnt, buf, &needed, NULL, 0); if (rv < 0) { /* The buffer size changed since last sysctl ('needed' is not changed) */ if ((errno == ENOMEM) && retries--) goto try; log(L_ERR "KRT: Route scan failed: %m"); goto exit; } #ifdef KRT_USE_SETFIB_SCAN if (table_id > 0) if (setfib(0) < 0) die("KRT: setfib(%d) failed: %m", 0); #endif /* Process received messages */ for (next = buf; next < (buf + needed); next += m->rtm.rtm_msglen) { m = (struct ks_msg *)next; krt_read_msg(p, m, 1); } return; exit: krt_buffer_release(p); #ifdef KRT_USE_SETFIB_SCAN if (table_id > 0) if (setfib(0) < 0) die("KRT: setfib(%d) failed: %m", 0); #endif } void krt_do_scan(struct krt_proto *p) { krt_sysctl_scan(&p->p, NET_RT_DUMP, KRT_CF->sys.table_id); } void kif_do_scan(struct kif_proto *p) { if_start_update(); krt_sysctl_scan(&p->p, NET_RT_IFLIST, -1); if_end_update(); } /* Kernel sockets */ static int krt_sock_hook(sock *sk, int size UNUSED) { struct ks_msg msg; int l = read(sk->fd, (char *)&msg, sizeof(msg)); if (l <= 0) log(L_ERR "krt-sock: read failed"); else krt_read_msg((struct proto *) sk->data, &msg, 0); return 0; } static sock * krt_sock_open(pool *pool, void *data, int table_id) { sock *sk; int fd; fd = socket(PF_ROUTE, SOCK_RAW, AF_UNSPEC); if (fd < 0) die("Cannot open kernel socket for routes"); #ifdef KRT_USE_SETFIB_SOCK if (table_id > 0) { if (setsockopt(fd, SOL_SOCKET, SO_SETFIB, &table_id, sizeof(table_id)) < 0) die("Cannot set FIB %d for kernel socket: %m", table_id); } #endif sk = sk_new(pool); sk->type = SK_MAGIC; sk->rx_hook = krt_sock_hook; sk->fd = fd; sk->data = data; if (sk_open(sk) < 0) bug("krt-sock: sk_open failed"); return sk; } #ifdef KRT_SHARED_SOCKET static sock *krt_sock; static int krt_sock_count; static void krt_sock_open_shared(void) { if (!krt_sock_count) krt_sock = krt_sock_open(krt_pool, NULL, -1); krt_sock_count++; } static void krt_sock_close_shared(void) { krt_sock_count--; if (!krt_sock_count) { rfree(krt_sock); krt_sock = NULL; } } void krt_sys_start(struct krt_proto *p) { krt_table_map[KRT_CF->sys.table_id] = p; krt_sock_open_shared(); p->sys.sk = krt_sock; } void krt_sys_shutdown(struct krt_proto *p) { krt_sock_close_shared(); p->sys.sk = NULL; krt_table_map[KRT_CF->sys.table_id] = NULL; krt_buffer_release(&p->p); } #else void krt_sys_start(struct krt_proto *p) { p->sys.sk = krt_sock_open(p->p.pool, p, KRT_CF->sys.table_id); } void krt_sys_shutdown(struct krt_proto *p) { rfree(p->sys.sk); p->sys.sk = NULL; krt_buffer_release(&p->p); } #endif /* KRT_SHARED_SOCKET */ /* KRT configuration callbacks */ static u32 krt_table_cf[(KRT_MAX_TABLES+31) / 32]; int krt_sys_reconfigure(struct krt_proto *p UNUSED, struct krt_config *n, struct krt_config *o) { return n->sys.table_id == o->sys.table_id; } void krt_sys_preconfig(struct config *c UNUSED) { krt_max_tables = krt_get_max_tables(); bzero(&krt_table_cf, sizeof(krt_table_cf)); } void krt_sys_postconfig(struct krt_config *x) { u32 *tbl = krt_table_cf; int id = x->sys.table_id; if (tbl[id/32] & (1 << (id%32))) cf_error("Multiple kernel syncers defined for table #%d", id); tbl[id/32] |= (1 << (id%32)); } void krt_sys_init_config(struct krt_config *c) { c->sys.table_id = 0; /* Default table */ } void krt_sys_copy_config(struct krt_config *d, struct krt_config *s) { d->sys.table_id = s->sys.table_id; } /* KIF misc code */ void kif_sys_start(struct kif_proto *p UNUSED) { } void kif_sys_shutdown(struct kif_proto *p) { krt_buffer_release(&p->p); } struct ifa * kif_get_primary_ip(struct iface *i) { #ifndef IPV6 static int fd = -1; if (fd < 0) fd = socket(AF_INET, SOCK_DGRAM, 0); struct ifreq ifr; memset(&ifr, 0, sizeof(ifr)); strncpy(ifr.ifr_name, i->name, IFNAMSIZ); int rv = ioctl(fd, SIOCGIFADDR, (char *) &ifr); if (rv < 0) return NULL; ip_addr addr; struct sockaddr_in *sin = (struct sockaddr_in *) &ifr.ifr_addr; memcpy(&addr, &sin->sin_addr.s_addr, sizeof(ip_addr)); ipa_ntoh(addr); struct ifa *a; WALK_LIST(a, i->addrs) { if (ipa_equal(a->ip, addr)) return a; } #endif return NULL; } bird-1.4.0/sysdep/linux/0000755000103200001440000000000012244656136014077 5ustar feelausersbird-1.4.0/sysdep/linux/netlink.c0000644000103200001440000006447112244656136015723 0ustar feelausers/* * BIRD -- Linux Netlink Interface * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include #include #include #include #include #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/route.h" #include "nest/protocol.h" #include "nest/iface.h" #include "lib/alloca.h" #include "lib/timer.h" #include "lib/unix.h" #include "lib/krt.h" #include "lib/socket.h" #include "lib/string.h" #include "conf/conf.h" #include #include #include #include #ifndef MSG_TRUNC /* Hack: Several versions of glibc miss this one :( */ #define MSG_TRUNC 0x20 #endif #ifndef IFF_LOWER_UP #define IFF_LOWER_UP 0x10000 #endif /* * Synchronous Netlink interface */ struct nl_sock { int fd; u32 seq; byte *rx_buffer; /* Receive buffer */ struct nlmsghdr *last_hdr; /* Recently received packet */ unsigned int last_size; }; #define NL_RX_SIZE 8192 static struct nl_sock nl_scan = {.fd = -1}; /* Netlink socket for synchronous scan */ static struct nl_sock nl_req = {.fd = -1}; /* Netlink socket for requests */ static void nl_open_sock(struct nl_sock *nl) { if (nl->fd < 0) { nl->fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (nl->fd < 0) die("Unable to open rtnetlink socket: %m"); nl->seq = now; nl->rx_buffer = xmalloc(NL_RX_SIZE); nl->last_hdr = NULL; nl->last_size = 0; } } static void nl_open(void) { nl_open_sock(&nl_scan); nl_open_sock(&nl_req); } static void nl_send(struct nl_sock *nl, struct nlmsghdr *nh) { struct sockaddr_nl sa; memset(&sa, 0, sizeof(sa)); sa.nl_family = AF_NETLINK; nh->nlmsg_pid = 0; nh->nlmsg_seq = ++(nl->seq); if (sendto(nl->fd, nh, nh->nlmsg_len, 0, (struct sockaddr *)&sa, sizeof(sa)) < 0) die("rtnetlink sendto: %m"); nl->last_hdr = NULL; } static void nl_request_dump(int cmd) { struct { struct nlmsghdr nh; struct rtgenmsg g; } req; req.nh.nlmsg_type = cmd; req.nh.nlmsg_len = sizeof(req); req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; /* Is it important which PF_* is used for link-level interface scan? It seems that some information is available only when PF_INET is used. */ req.g.rtgen_family = (cmd == RTM_GETLINK) ? PF_INET : BIRD_PF; nl_send(&nl_scan, &req.nh); } static struct nlmsghdr * nl_get_reply(struct nl_sock *nl) { for(;;) { if (!nl->last_hdr) { struct iovec iov = { nl->rx_buffer, NL_RX_SIZE }; struct sockaddr_nl sa; struct msghdr m = { (struct sockaddr *) &sa, sizeof(sa), &iov, 1, NULL, 0, 0 }; int x = recvmsg(nl->fd, &m, 0); if (x < 0) die("nl_get_reply: %m"); if (sa.nl_pid) /* It isn't from the kernel */ { DBG("Non-kernel packet\n"); continue; } nl->last_size = x; nl->last_hdr = (void *) nl->rx_buffer; if (m.msg_flags & MSG_TRUNC) bug("nl_get_reply: got truncated reply which should be impossible"); } if (NLMSG_OK(nl->last_hdr, nl->last_size)) { struct nlmsghdr *h = nl->last_hdr; nl->last_hdr = NLMSG_NEXT(h, nl->last_size); if (h->nlmsg_seq != nl->seq) { log(L_WARN "nl_get_reply: Ignoring out of sequence netlink packet (%x != %x)", h->nlmsg_seq, nl->seq); continue; } return h; } if (nl->last_size) log(L_WARN "nl_get_reply: Found packet remnant of size %d", nl->last_size); nl->last_hdr = NULL; } } static struct rate_limit rl_netlink_err; static int nl_error(struct nlmsghdr *h) { struct nlmsgerr *e; int ec; if (h->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) { log(L_WARN "Netlink: Truncated error message received"); return ENOBUFS; } e = (struct nlmsgerr *) NLMSG_DATA(h); ec = -e->error; if (ec) log_rl(&rl_netlink_err, L_WARN "Netlink: %s", strerror(ec)); return ec; } static struct nlmsghdr * nl_get_scan(void) { struct nlmsghdr *h = nl_get_reply(&nl_scan); if (h->nlmsg_type == NLMSG_DONE) return NULL; if (h->nlmsg_type == NLMSG_ERROR) { nl_error(h); return NULL; } return h; } static int nl_exchange(struct nlmsghdr *pkt) { struct nlmsghdr *h; nl_send(&nl_req, pkt); for(;;) { h = nl_get_reply(&nl_req); if (h->nlmsg_type == NLMSG_ERROR) break; log(L_WARN "nl_exchange: Unexpected reply received"); } return nl_error(h) ? -1 : 0; } /* * Netlink attributes */ static int nl_attr_len; static void * nl_checkin(struct nlmsghdr *h, int lsize) { nl_attr_len = h->nlmsg_len - NLMSG_LENGTH(lsize); if (nl_attr_len < 0) { log(L_ERR "nl_checkin: underrun by %d bytes", -nl_attr_len); return NULL; } return NLMSG_DATA(h); } static int nl_parse_attrs(struct rtattr *a, struct rtattr **k, int ksize) { int max = ksize / sizeof(struct rtattr *); bzero(k, ksize); while (RTA_OK(a, nl_attr_len)) { if (a->rta_type < max) k[a->rta_type] = a; a = RTA_NEXT(a, nl_attr_len); } if (nl_attr_len) { log(L_ERR "nl_parse_attrs: remnant of size %d", nl_attr_len); return 0; } else return 1; } void nl_add_attr(struct nlmsghdr *h, unsigned bufsize, unsigned code, void *data, unsigned dlen) { unsigned len = RTA_LENGTH(dlen); unsigned pos = NLMSG_ALIGN(h->nlmsg_len); struct rtattr *a; if (pos + len > bufsize) bug("nl_add_attr: packet buffer overflow"); a = (struct rtattr *)((char *)h + pos); a->rta_type = code; a->rta_len = len; h->nlmsg_len = pos + len; memcpy(RTA_DATA(a), data, dlen); } static inline void nl_add_attr_u32(struct nlmsghdr *h, unsigned bufsize, int code, u32 data) { nl_add_attr(h, bufsize, code, &data, 4); } static inline void nl_add_attr_ipa(struct nlmsghdr *h, unsigned bufsize, int code, ip_addr ipa) { ipa_hton(ipa); nl_add_attr(h, bufsize, code, &ipa, sizeof(ipa)); } #define RTNH_SIZE (sizeof(struct rtnexthop) + sizeof(struct rtattr) + sizeof(ip_addr)) static inline void add_mpnexthop(char *buf, ip_addr ipa, unsigned iface, unsigned char weight) { struct rtnexthop *nh = (void *) buf; struct rtattr *rt = (void *) (buf + sizeof(*nh)); nh->rtnh_len = RTNH_SIZE; nh->rtnh_flags = 0; nh->rtnh_hops = weight; nh->rtnh_ifindex = iface; rt->rta_len = sizeof(*rt) + sizeof(ipa); rt->rta_type = RTA_GATEWAY; ipa_hton(ipa); memcpy(buf + sizeof(*nh) + sizeof(*rt), &ipa, sizeof(ipa)); } static void nl_add_multipath(struct nlmsghdr *h, unsigned bufsize, struct mpnh *nh) { unsigned len = sizeof(struct rtattr); unsigned pos = NLMSG_ALIGN(h->nlmsg_len); char *buf = (char *)h + pos; struct rtattr *rt = (void *) buf; buf += len; for (; nh; nh = nh->next) { len += RTNH_SIZE; if (pos + len > bufsize) bug("nl_add_multipath: packet buffer overflow"); add_mpnexthop(buf, nh->gw, nh->iface->index, nh->weight); buf += RTNH_SIZE; } rt->rta_type = RTA_MULTIPATH; rt->rta_len = len; h->nlmsg_len = pos + len; } static struct mpnh * nl_parse_multipath(struct krt_proto *p, struct rtattr *ra) { /* Temporary buffer for multicast nexthops */ static struct mpnh *nh_buffer; static int nh_buf_size; /* in number of structures */ static int nh_buf_used; struct rtattr *a[RTA_CACHEINFO+1]; struct rtnexthop *nh = RTA_DATA(ra); struct mpnh *rv, *first, **last; int len = RTA_PAYLOAD(ra); first = NULL; last = &first; nh_buf_used = 0; while (len) { /* Use RTNH_OK(nh,len) ?? */ if ((len < sizeof(*nh)) || (len < nh->rtnh_len)) return NULL; if (nh_buf_used == nh_buf_size) { nh_buf_size = nh_buf_size ? (nh_buf_size * 2) : 4; nh_buffer = xrealloc(nh_buffer, nh_buf_size * sizeof(struct mpnh)); } *last = rv = nh_buffer + nh_buf_used++; rv->next = NULL; last = &(rv->next); rv->weight = nh->rtnh_hops; rv->iface = if_find_by_index(nh->rtnh_ifindex); if (!rv->iface) return NULL; /* Nonexistent RTNH_PAYLOAD ?? */ nl_attr_len = nh->rtnh_len - RTNH_LENGTH(0); nl_parse_attrs(RTNH_DATA(nh), a, sizeof(a)); if (a[RTA_GATEWAY]) { if (RTA_PAYLOAD(a[RTA_GATEWAY]) != sizeof(ip_addr)) return NULL; memcpy(&rv->gw, RTA_DATA(a[RTA_GATEWAY]), sizeof(ip_addr)); ipa_ntoh(rv->gw); neighbor *ng = neigh_find2(&p->p, &rv->gw, rv->iface, (nh->rtnh_flags & RTNH_F_ONLINK) ? NEF_ONLINK : 0); if (!ng || (ng->scope == SCOPE_HOST)) return NULL; } else return NULL; len -= NLMSG_ALIGN(nh->rtnh_len); nh = RTNH_NEXT(nh); } return first; } /* * Scanning of interfaces */ static void nl_parse_link(struct nlmsghdr *h, int scan) { struct ifinfomsg *i; struct rtattr *a[IFLA_WIRELESS+1]; int new = h->nlmsg_type == RTM_NEWLINK; struct iface f = {}; struct iface *ifi; char *name; u32 mtu; unsigned int fl; if (!(i = nl_checkin(h, sizeof(*i))) || !nl_parse_attrs(IFLA_RTA(i), a, sizeof(a))) return; if (!a[IFLA_IFNAME] || RTA_PAYLOAD(a[IFLA_IFNAME]) < 2 || !a[IFLA_MTU] || RTA_PAYLOAD(a[IFLA_MTU]) != 4) { if (scan || !a[IFLA_WIRELESS]) log(L_ERR "nl_parse_link: Malformed message received"); return; } name = RTA_DATA(a[IFLA_IFNAME]); memcpy(&mtu, RTA_DATA(a[IFLA_MTU]), sizeof(u32)); ifi = if_find_by_index(i->ifi_index); if (!new) { DBG("KIF: IF%d(%s) goes down\n", i->ifi_index, name); if (!ifi) return; if_delete(ifi); } else { DBG("KIF: IF%d(%s) goes up (mtu=%d,flg=%x)\n", i->ifi_index, name, mtu, i->ifi_flags); if (ifi && strncmp(ifi->name, name, sizeof(ifi->name)-1)) if_delete(ifi); strncpy(f.name, name, sizeof(f.name)-1); f.index = i->ifi_index; f.mtu = mtu; fl = i->ifi_flags; if (fl & IFF_UP) f.flags |= IF_ADMIN_UP; if (fl & IFF_LOWER_UP) f.flags |= IF_LINK_UP; if (fl & IFF_LOOPBACK) /* Loopback */ f.flags |= IF_MULTIACCESS | IF_LOOPBACK | IF_IGNORE; else if (fl & IFF_POINTOPOINT) /* PtP */ f.flags |= IF_MULTICAST; else if (fl & IFF_BROADCAST) /* Broadcast */ f.flags |= IF_MULTIACCESS | IF_BROADCAST | IF_MULTICAST; else f.flags |= IF_MULTIACCESS; /* NBMA */ if_update(&f); } } static void nl_parse_addr(struct nlmsghdr *h) { struct ifaddrmsg *i; struct rtattr *a[IFA_ANYCAST+1]; int new = h->nlmsg_type == RTM_NEWADDR; struct ifa ifa; struct iface *ifi; int scope; if (!(i = nl_checkin(h, sizeof(*i))) || !nl_parse_attrs(IFA_RTA(i), a, sizeof(a))) return; if (i->ifa_family != BIRD_AF) return; if (!a[IFA_ADDRESS] || RTA_PAYLOAD(a[IFA_ADDRESS]) != sizeof(ip_addr) #ifdef IPV6 || a[IFA_LOCAL] && RTA_PAYLOAD(a[IFA_LOCAL]) != sizeof(ip_addr) #else || !a[IFA_LOCAL] || RTA_PAYLOAD(a[IFA_LOCAL]) != sizeof(ip_addr) || (a[IFA_BROADCAST] && RTA_PAYLOAD(a[IFA_BROADCAST]) != sizeof(ip_addr)) #endif ) { log(L_ERR "nl_parse_addr: Malformed message received"); return; } ifi = if_find_by_index(i->ifa_index); if (!ifi) { log(L_ERR "KIF: Received address message for unknown interface %d", i->ifa_index); return; } bzero(&ifa, sizeof(ifa)); ifa.iface = ifi; if (i->ifa_flags & IFA_F_SECONDARY) ifa.flags |= IA_SECONDARY; /* IFA_LOCAL can be unset for IPv6 interfaces */ memcpy(&ifa.ip, RTA_DATA(a[IFA_LOCAL] ? : a[IFA_ADDRESS]), sizeof(ifa.ip)); ipa_ntoh(ifa.ip); ifa.pxlen = i->ifa_prefixlen; if (i->ifa_prefixlen > BITS_PER_IP_ADDRESS) { log(L_ERR "KIF: Invalid prefix length for interface %s: %d", ifi->name, i->ifa_prefixlen); new = 0; } if (i->ifa_prefixlen == BITS_PER_IP_ADDRESS) { ip_addr addr; memcpy(&addr, RTA_DATA(a[IFA_ADDRESS]), sizeof(addr)); ipa_ntoh(addr); ifa.prefix = ifa.brd = addr; /* It is either a host address or a peer address */ if (ipa_equal(ifa.ip, addr)) ifa.flags |= IA_HOST; else { ifa.flags |= IA_PEER; ifa.opposite = addr; } } else { ip_addr netmask = ipa_mkmask(ifa.pxlen); ifa.prefix = ipa_and(ifa.ip, netmask); ifa.brd = ipa_or(ifa.ip, ipa_not(netmask)); if (i->ifa_prefixlen == BITS_PER_IP_ADDRESS - 1) ifa.opposite = ipa_opposite_m1(ifa.ip); #ifndef IPV6 if (i->ifa_prefixlen == BITS_PER_IP_ADDRESS - 2) ifa.opposite = ipa_opposite_m2(ifa.ip); if ((ifi->flags & IF_BROADCAST) && a[IFA_BROADCAST]) { ip_addr xbrd; memcpy(&xbrd, RTA_DATA(a[IFA_BROADCAST]), sizeof(xbrd)); ipa_ntoh(xbrd); if (ipa_equal(xbrd, ifa.prefix) || ipa_equal(xbrd, ifa.brd)) ifa.brd = xbrd; else if (ifi->flags & IF_TMP_DOWN) /* Complain only during the first scan */ log(L_ERR "KIF: Invalid broadcast address %I for %s", xbrd, ifi->name); } #endif } scope = ipa_classify(ifa.ip); if (scope < 0) { log(L_ERR "KIF: Invalid interface address %I for %s", ifa.ip, ifi->name); return; } ifa.scope = scope & IADDR_SCOPE_MASK; DBG("KIF: IF%d(%s): %s IPA %I, flg %x, net %I/%d, brd %I, opp %I\n", ifi->index, ifi->name, new ? "added" : "removed", ifa.ip, ifa.flags, ifa.prefix, ifa.pxlen, ifa.brd, ifa.opposite); if (new) ifa_update(&ifa); else ifa_delete(&ifa); } void kif_do_scan(struct kif_proto *p UNUSED) { struct nlmsghdr *h; if_start_update(); nl_request_dump(RTM_GETLINK); while (h = nl_get_scan()) if (h->nlmsg_type == RTM_NEWLINK || h->nlmsg_type == RTM_DELLINK) nl_parse_link(h, 1); else log(L_DEBUG "nl_scan_ifaces: Unknown packet received (type=%d)", h->nlmsg_type); nl_request_dump(RTM_GETADDR); while (h = nl_get_scan()) if (h->nlmsg_type == RTM_NEWADDR || h->nlmsg_type == RTM_DELADDR) nl_parse_addr(h); else log(L_DEBUG "nl_scan_ifaces: Unknown packet received (type=%d)", h->nlmsg_type); if_end_update(); } /* * Routes */ static struct krt_proto *nl_table_map[NL_NUM_TABLES]; int krt_capable(rte *e) { rta *a = e->attrs; if (a->cast != RTC_UNICAST) return 0; switch (a->dest) { case RTD_ROUTER: case RTD_DEVICE: if (a->iface == NULL) return 0; case RTD_BLACKHOLE: case RTD_UNREACHABLE: case RTD_PROHIBIT: case RTD_MULTIPATH: break; default: return 0; } return 1; } static inline int nh_bufsize(struct mpnh *nh) { int rv = 0; for (; nh != NULL; nh = nh->next) rv += RTNH_SIZE; return rv; } static int nl_send_route(struct krt_proto *p, rte *e, struct ea_list *eattrs, int new) { eattr *ea; net *net = e->net; rta *a = e->attrs; struct { struct nlmsghdr h; struct rtmsg r; char buf[128 + nh_bufsize(a->nexthops)]; } r; DBG("nl_send_route(%I/%d,new=%d)\n", net->n.prefix, net->n.pxlen, new); bzero(&r.h, sizeof(r.h)); bzero(&r.r, sizeof(r.r)); r.h.nlmsg_type = new ? RTM_NEWROUTE : RTM_DELROUTE; r.h.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); r.h.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | (new ? NLM_F_CREATE|NLM_F_EXCL : 0); r.r.rtm_family = BIRD_AF; r.r.rtm_dst_len = net->n.pxlen; r.r.rtm_tos = 0; r.r.rtm_table = KRT_CF->sys.table_id; r.r.rtm_protocol = RTPROT_BIRD; r.r.rtm_scope = RT_SCOPE_UNIVERSE; nl_add_attr_ipa(&r.h, sizeof(r), RTA_DST, net->n.prefix); u32 metric = 0; if (new && e->attrs->source == RTS_INHERIT) metric = e->u.krt.metric; if (ea = ea_find(eattrs, EA_KRT_METRIC)) metric = ea->u.data; if (metric != 0) nl_add_attr_u32(&r.h, sizeof(r), RTA_PRIORITY, metric); if (ea = ea_find(eattrs, EA_KRT_PREFSRC)) nl_add_attr_ipa(&r.h, sizeof(r), RTA_PREFSRC, *(ip_addr *)ea->u.ptr->data); if (ea = ea_find(eattrs, EA_KRT_REALM)) nl_add_attr_u32(&r.h, sizeof(r), RTA_FLOW, ea->u.data); /* a->iface != NULL checked in krt_capable() for router and device routes */ switch (a->dest) { case RTD_ROUTER: r.r.rtm_type = RTN_UNICAST; nl_add_attr_u32(&r.h, sizeof(r), RTA_OIF, a->iface->index); nl_add_attr_ipa(&r.h, sizeof(r), RTA_GATEWAY, a->gw); break; case RTD_DEVICE: r.r.rtm_type = RTN_UNICAST; nl_add_attr_u32(&r.h, sizeof(r), RTA_OIF, a->iface->index); break; case RTD_BLACKHOLE: r.r.rtm_type = RTN_BLACKHOLE; break; case RTD_UNREACHABLE: r.r.rtm_type = RTN_UNREACHABLE; break; case RTD_PROHIBIT: r.r.rtm_type = RTN_PROHIBIT; break; case RTD_MULTIPATH: r.r.rtm_type = RTN_UNICAST; nl_add_multipath(&r.h, sizeof(r), a->nexthops); break; default: bug("krt_capable inconsistent with nl_send_route"); } return nl_exchange(&r.h); } void krt_replace_rte(struct krt_proto *p, net *n, rte *new, rte *old, struct ea_list *eattrs) { int err = 0; /* * NULL for eattr of the old route is a little hack, but we don't * get proper eattrs for old in rt_notify() anyway. NULL means no * extended route attributes and therefore matches if the kernel * route has any of them. */ if (old) nl_send_route(p, old, NULL, 0); if (new) err = nl_send_route(p, new, eattrs, 1); if (err < 0) n->n.flags |= KRF_SYNC_ERROR; else n->n.flags &= ~KRF_SYNC_ERROR; } #define SKIP(ARG...) do { DBG("KRT: Ignoring route - " ARG); return; } while(0) static void nl_parse_route(struct nlmsghdr *h, int scan) { struct krt_proto *p; struct rtmsg *i; struct rtattr *a[RTA_CACHEINFO+1]; int new = h->nlmsg_type == RTM_NEWROUTE; ip_addr dst = IPA_NONE; u32 oif = ~0; int src; if (!(i = nl_checkin(h, sizeof(*i))) || !nl_parse_attrs(RTM_RTA(i), a, sizeof(a))) return; if (i->rtm_family != BIRD_AF) return; if ((a[RTA_DST] && RTA_PAYLOAD(a[RTA_DST]) != sizeof(ip_addr)) || #ifdef IPV6 (a[RTA_IIF] && RTA_PAYLOAD(a[RTA_IIF]) != 4) || #endif (a[RTA_OIF] && RTA_PAYLOAD(a[RTA_OIF]) != 4) || (a[RTA_GATEWAY] && RTA_PAYLOAD(a[RTA_GATEWAY]) != sizeof(ip_addr)) || (a[RTA_PRIORITY] && RTA_PAYLOAD(a[RTA_PRIORITY]) != 4) || (a[RTA_PREFSRC] && RTA_PAYLOAD(a[RTA_PREFSRC]) != sizeof(ip_addr)) || (a[RTA_FLOW] && RTA_PAYLOAD(a[RTA_FLOW]) != 4)) { log(L_ERR "KRT: Malformed message received"); return; } if (a[RTA_DST]) { memcpy(&dst, RTA_DATA(a[RTA_DST]), sizeof(dst)); ipa_ntoh(dst); } if (a[RTA_OIF]) memcpy(&oif, RTA_DATA(a[RTA_OIF]), sizeof(oif)); p = nl_table_map[i->rtm_table]; /* Do we know this table? */ DBG("KRT: Got %I/%d, type=%d, oif=%d, table=%d, prid=%d, proto=%s\n", dst, i->rtm_dst_len, i->rtm_type, oif, i->rtm_table, i->rtm_protocol, p ? p->p.name : "(none)"); if (!p) SKIP("unknown table %d\n", i->rtm_table); #ifdef IPV6 if (a[RTA_IIF]) SKIP("IIF set\n"); #else if (i->rtm_tos != 0) /* We don't support TOS */ SKIP("TOS %02x\n", i->rtm_tos); #endif if (scan && !new) SKIP("RTM_DELROUTE in scan\n"); int c = ipa_classify_net(dst); if ((c < 0) || !(c & IADDR_HOST) || ((c & IADDR_SCOPE_MASK) <= SCOPE_LINK)) SKIP("strange class/scope\n"); // ignore rtm_scope, it is not a real scope // if (i->rtm_scope != RT_SCOPE_UNIVERSE) // SKIP("scope %u\n", i->rtm_scope); switch (i->rtm_protocol) { case RTPROT_UNSPEC: SKIP("proto unspec\n"); case RTPROT_REDIRECT: src = KRT_SRC_REDIRECT; break; case RTPROT_KERNEL: src = KRT_SRC_KERNEL; return; case RTPROT_BIRD: if (!scan) SKIP("echo\n"); src = KRT_SRC_BIRD; break; case RTPROT_BOOT: default: src = KRT_SRC_ALIEN; } net *net = net_get(p->p.table, dst, i->rtm_dst_len); rta ra = { .proto = &p->p, .source = RTS_INHERIT, .scope = SCOPE_UNIVERSE, .cast = RTC_UNICAST }; switch (i->rtm_type) { case RTN_UNICAST: if (a[RTA_MULTIPATH]) { ra.dest = RTD_MULTIPATH; ra.nexthops = nl_parse_multipath(p, a[RTA_MULTIPATH]); if (!ra.nexthops) { log(L_ERR "KRT: Received strange multipath route %I/%d", net->n.prefix, net->n.pxlen); return; } break; } ra.iface = if_find_by_index(oif); if (!ra.iface) { log(L_ERR "KRT: Received route %I/%d with unknown ifindex %u", net->n.prefix, net->n.pxlen, oif); return; } if (a[RTA_GATEWAY]) { neighbor *ng; ra.dest = RTD_ROUTER; memcpy(&ra.gw, RTA_DATA(a[RTA_GATEWAY]), sizeof(ra.gw)); ipa_ntoh(ra.gw); #ifdef IPV6 /* Silently skip strange 6to4 routes */ if (ipa_in_net(ra.gw, IPA_NONE, 96)) return; #endif ng = neigh_find2(&p->p, &ra.gw, ra.iface, (i->rtm_flags & RTNH_F_ONLINK) ? NEF_ONLINK : 0); if (!ng || (ng->scope == SCOPE_HOST)) { log(L_ERR "KRT: Received route %I/%d with strange next-hop %I", net->n.prefix, net->n.pxlen, ra.gw); return; } } else { ra.dest = RTD_DEVICE; } break; case RTN_BLACKHOLE: ra.dest = RTD_BLACKHOLE; break; case RTN_UNREACHABLE: ra.dest = RTD_UNREACHABLE; break; case RTN_PROHIBIT: ra.dest = RTD_PROHIBIT; break; /* FIXME: What about RTN_THROW? */ default: SKIP("type %d\n", i->rtm_type); return; } rte *e = rte_get_temp(&ra); e->net = net; e->u.krt.src = src; e->u.krt.proto = i->rtm_protocol; e->u.krt.type = i->rtm_type; if (a[RTA_PRIORITY]) memcpy(&e->u.krt.metric, RTA_DATA(a[RTA_PRIORITY]), sizeof(e->u.krt.metric)); else e->u.krt.metric = 0; if (a[RTA_PREFSRC]) { ip_addr ps; memcpy(&ps, RTA_DATA(a[RTA_PREFSRC]), sizeof(ps)); ipa_ntoh(ps); ea_list *ea = alloca(sizeof(ea_list) + sizeof(eattr)); ea->next = ra.eattrs; ra.eattrs = ea; ea->flags = EALF_SORTED; ea->count = 1; ea->attrs[0].id = EA_KRT_PREFSRC; ea->attrs[0].flags = 0; ea->attrs[0].type = EAF_TYPE_IP_ADDRESS; ea->attrs[0].u.ptr = alloca(sizeof(struct adata) + sizeof(ps)); ea->attrs[0].u.ptr->length = sizeof(ps); memcpy(ea->attrs[0].u.ptr->data, &ps, sizeof(ps)); } if (a[RTA_FLOW]) { ea_list *ea = alloca(sizeof(ea_list) + sizeof(eattr)); ea->next = ra.eattrs; ra.eattrs = ea; ea->flags = EALF_SORTED; ea->count = 1; ea->attrs[0].id = EA_KRT_REALM; ea->attrs[0].flags = 0; ea->attrs[0].type = EAF_TYPE_INT; memcpy(&ea->attrs[0].u.data, RTA_DATA(a[RTA_FLOW]), 4); } if (scan) krt_got_route(p, e); else krt_got_route_async(p, e, new); } void krt_do_scan(struct krt_proto *p UNUSED) /* CONFIG_ALL_TABLES_AT_ONCE => p is NULL */ { struct nlmsghdr *h; nl_request_dump(RTM_GETROUTE); while (h = nl_get_scan()) if (h->nlmsg_type == RTM_NEWROUTE || h->nlmsg_type == RTM_DELROUTE) nl_parse_route(h, 1); else log(L_DEBUG "nl_scan_fire: Unknown packet received (type=%d)", h->nlmsg_type); } /* * Asynchronous Netlink interface */ static sock *nl_async_sk; /* BIRD socket for asynchronous notifications */ static byte *nl_async_rx_buffer; /* Receive buffer */ static void nl_async_msg(struct nlmsghdr *h) { switch (h->nlmsg_type) { case RTM_NEWROUTE: case RTM_DELROUTE: DBG("KRT: Received async route notification (%d)\n", h->nlmsg_type); nl_parse_route(h, 0); break; case RTM_NEWLINK: case RTM_DELLINK: DBG("KRT: Received async link notification (%d)\n", h->nlmsg_type); nl_parse_link(h, 0); break; case RTM_NEWADDR: case RTM_DELADDR: DBG("KRT: Received async address notification (%d)\n", h->nlmsg_type); nl_parse_addr(h); break; default: DBG("KRT: Received unknown async notification (%d)\n", h->nlmsg_type); } } static int nl_async_hook(sock *sk, int size UNUSED) { struct iovec iov = { nl_async_rx_buffer, NL_RX_SIZE }; struct sockaddr_nl sa; struct msghdr m = { (struct sockaddr *) &sa, sizeof(sa), &iov, 1, NULL, 0, 0 }; struct nlmsghdr *h; int x; unsigned int len; x = recvmsg(sk->fd, &m, 0); if (x < 0) { if (errno == ENOBUFS) { /* * Netlink reports some packets have been thrown away. * One day we might react to it by asking for route table * scan in near future. */ return 1; /* More data are likely to be ready */ } else if (errno != EWOULDBLOCK) log(L_ERR "Netlink recvmsg: %m"); return 0; } if (sa.nl_pid) /* It isn't from the kernel */ { DBG("Non-kernel packet\n"); return 1; } h = (void *) nl_async_rx_buffer; len = x; if (m.msg_flags & MSG_TRUNC) { log(L_WARN "Netlink got truncated asynchronous message"); return 1; } while (NLMSG_OK(h, len)) { nl_async_msg(h); h = NLMSG_NEXT(h, len); } if (len) log(L_WARN "nl_async_hook: Found packet remnant of size %d", len); return 1; } static void nl_open_async(void) { sock *sk; struct sockaddr_nl sa; int fd; if (nl_async_sk) return; DBG("KRT: Opening async netlink socket\n"); fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (fd < 0) { log(L_ERR "Unable to open asynchronous rtnetlink socket: %m"); return; } bzero(&sa, sizeof(sa)); sa.nl_family = AF_NETLINK; #ifdef IPV6 sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV6_IFADDR | RTMGRP_IPV6_ROUTE; #else sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR | RTMGRP_IPV4_ROUTE; #endif if (bind(fd, (struct sockaddr *) &sa, sizeof(sa)) < 0) { log(L_ERR "Unable to bind asynchronous rtnetlink socket: %m"); close(fd); return; } nl_async_rx_buffer = xmalloc(NL_RX_SIZE); sk = nl_async_sk = sk_new(krt_pool); sk->type = SK_MAGIC; sk->rx_hook = nl_async_hook; sk->fd = fd; if (sk_open(sk)) bug("Netlink: sk_open failed"); } /* * Interface to the UNIX krt module */ static u8 nl_cf_table[(NL_NUM_TABLES+7) / 8]; void krt_sys_start(struct krt_proto *p) { nl_table_map[KRT_CF->sys.table_id] = p; nl_open(); nl_open_async(); } void krt_sys_shutdown(struct krt_proto *p UNUSED) { nl_table_map[KRT_CF->sys.table_id] = NULL; } int krt_sys_reconfigure(struct krt_proto *p UNUSED, struct krt_config *n, struct krt_config *o) { return n->sys.table_id == o->sys.table_id; } void krt_sys_preconfig(struct config *c UNUSED) { bzero(&nl_cf_table, sizeof(nl_cf_table)); } void krt_sys_postconfig(struct krt_config *x) { int id = x->sys.table_id; if (nl_cf_table[id/8] & (1 << (id%8))) cf_error("Multiple kernel syncers defined for table #%d", id); nl_cf_table[id/8] |= (1 << (id%8)); } void krt_sys_init_config(struct krt_config *cf) { cf->sys.table_id = RT_TABLE_MAIN; } void krt_sys_copy_config(struct krt_config *d, struct krt_config *s) { d->sys.table_id = s->sys.table_id; } void kif_sys_start(struct kif_proto *p UNUSED) { nl_open(); nl_open_async(); } void kif_sys_shutdown(struct kif_proto *p UNUSED) { } bird-1.4.0/sysdep/linux/syspriv.h0000644000103200001440000000332311633207655015767 0ustar feelausers #include #include #ifndef _LINUX_CAPABILITY_VERSION_3 #define _LINUX_CAPABILITY_VERSION_3 0x20080522 #define _LINUX_CAPABILITY_U32S_3 2 #endif /* CAP_TO_MASK is missing in CentOS header files */ #ifndef CAP_TO_MASK #define CAP_TO_MASK(x) (1 << ((x) & 31)) #endif /* capset() prototype is missing ... */ int capset(cap_user_header_t hdrp, const cap_user_data_t datap); static inline int set_capabilities(u32 caps) { struct __user_cap_header_struct cap_hdr; struct __user_cap_data_struct cap_dat[_LINUX_CAPABILITY_U32S_3]; int err; cap_hdr.version = _LINUX_CAPABILITY_VERSION_3; cap_hdr.pid = 0; memset(cap_dat, 0, sizeof(cap_dat)); cap_dat[0].effective = cap_dat[0].permitted = caps; err = capset(&cap_hdr, cap_dat); if (!err) return 0; /* Kernel may support do not support our version of capability interface. The last call returned supported version so we just retry it. */ if (errno == EINVAL) { err = capset(&cap_hdr, cap_dat); if (!err) return 0; } return -1; } static void drop_uid(uid_t uid) { u32 caps = CAP_TO_MASK(CAP_NET_BIND_SERVICE) | CAP_TO_MASK(CAP_NET_BROADCAST) | CAP_TO_MASK(CAP_NET_ADMIN) | CAP_TO_MASK(CAP_NET_RAW); /* change effective user ID to be able to switch to that user ID completely after dropping CAP_SETUID */ if (seteuid(uid) < 0) die("seteuid: %m"); /* restrict the capabilities */ if (set_capabilities(caps) < 0) die("capset: %m"); /* keep the capabilities after dropping root ID */ if (prctl(PR_SET_KEEPCAPS, 1) < 0) die("prctl: %m"); /* completely switch to the unprivileged user ID */ if (setresuid(uid, uid, uid) < 0) die("setresuid: %m"); } bird-1.4.0/sysdep/linux/krt-sys.h0000644000103200001440000000213412244656136015664 0ustar feelausers/* * BIRD -- Linux Kernel Netlink Route Syncer * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_KRT_SYS_H_ #define _BIRD_KRT_SYS_H_ /* Kernel interfaces */ struct kif_params { }; struct kif_state { }; static inline void kif_sys_init(struct kif_proto *p UNUSED) { } static inline int kif_sys_reconfigure(struct kif_proto *p UNUSED, struct kif_config *n UNUSED, struct kif_config *o UNUSED) { return 1; } static inline void kif_sys_preconfig(struct config *c UNUSED) { } static inline void kif_sys_postconfig(struct kif_config *c UNUSED) { } static inline void kif_sys_init_config(struct kif_config *c UNUSED) { } static inline void kif_sys_copy_config(struct kif_config *d UNUSED, struct kif_config *s UNUSED) { } static inline struct ifa * kif_get_primary_ip(struct iface *i) { return NULL; } /* Kernel routes */ #define NL_NUM_TABLES 256 struct krt_params { int table_id; /* Kernel table ID we sync with */ }; struct krt_state { }; static inline void krt_sys_init(struct krt_proto *p UNUSED) { } #endif bird-1.4.0/sysdep/linux/sysio.h0000644000103200001440000001615512175263574015431 0ustar feelausers/* * BIRD Internet Routing Daemon -- Linux Multicasting and Network Includes * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #ifdef IPV6 #ifndef IPV6_UNICAST_HOPS /* Needed on glibc 2.0 systems */ #include #define CONFIG_IPV6_GLIBC_20 #endif static inline void set_inaddr(struct in6_addr *ia, ip_addr a) { ipa_hton(a); memcpy(ia, &a, sizeof(a)); } static inline void get_inaddr(ip_addr *a, struct in6_addr *ia) { memcpy(a, ia, sizeof(*a)); ipa_ntoh(*a); } static inline char * sysio_bind_to_iface(sock *s) { struct ifreq ifr; strcpy(ifr.ifr_name, s->iface->name); if (setsockopt(s->fd, SOL_SOCKET, SO_BINDTODEVICE, &ifr, sizeof(ifr)) < 0) return "SO_BINDTODEVICE"; return NULL; } #else static inline void set_inaddr(struct in_addr *ia, ip_addr a) { ipa_hton(a); memcpy(&ia->s_addr, &a, sizeof(a)); } static inline void get_inaddr(ip_addr *a, struct in_addr *ia) { memcpy(a, &ia->s_addr, sizeof(*a)); ipa_ntoh(*a); } #ifndef HAVE_STRUCT_IP_MREQN /* Several versions of glibc don't define this structure, so we have to do it ourselves */ struct ip_mreqn { struct in_addr imr_multiaddr; /* IP multicast address of group */ struct in_addr imr_address; /* local IP address of interface */ int imr_ifindex; /* Interface index */ }; #endif static inline void fill_mreqn(struct ip_mreqn *m, struct iface *ifa, ip_addr saddr, ip_addr maddr) { bzero(m, sizeof(*m)); m->imr_ifindex = ifa->index; set_inaddr(&m->imr_address, saddr); set_inaddr(&m->imr_multiaddr, maddr); } static inline char * sysio_setup_multicast(sock *s) { struct ip_mreqn m; int zero = 0; if (setsockopt(s->fd, SOL_IP, IP_MULTICAST_LOOP, &zero, sizeof(zero)) < 0) return "IP_MULTICAST_LOOP"; if (setsockopt(s->fd, SOL_IP, IP_MULTICAST_TTL, &s->ttl, sizeof(s->ttl)) < 0) return "IP_MULTICAST_TTL"; /* This defines where should we send _outgoing_ multicasts */ fill_mreqn(&m, s->iface, s->saddr, IPA_NONE); if (setsockopt(s->fd, SOL_IP, IP_MULTICAST_IF, &m, sizeof(m)) < 0) return "IP_MULTICAST_IF"; /* Is this necessary? */ struct ifreq ifr; strcpy(ifr.ifr_name, s->iface->name); if (setsockopt(s->fd, SOL_SOCKET, SO_BINDTODEVICE, &ifr, sizeof(ifr)) < 0) return "SO_BINDTODEVICE"; return NULL; } static inline char * sysio_join_group(sock *s, ip_addr maddr) { struct ip_mreqn m; /* And this one sets interface for _receiving_ multicasts from */ fill_mreqn(&m, s->iface, s->saddr, maddr); if (setsockopt(s->fd, SOL_IP, IP_ADD_MEMBERSHIP, &m, sizeof(m)) < 0) return "IP_ADD_MEMBERSHIP"; return NULL; } static inline char * sysio_leave_group(sock *s, ip_addr maddr) { struct ip_mreqn m; /* And this one sets interface for _receiving_ multicasts from */ fill_mreqn(&m, s->iface, s->saddr, maddr); if (setsockopt(s->fd, SOL_IP, IP_DROP_MEMBERSHIP, &m, sizeof(m)) < 0) return "IP_DROP_MEMBERSHIP"; return NULL; } #endif #include #include /* For the case that we have older kernel headers */ /* Copied from Linux kernel file include/linux/tcp.h */ #ifndef TCP_MD5SIG #define TCP_MD5SIG 14 #define TCP_MD5SIG_MAXKEYLEN 80 struct tcp_md5sig { struct sockaddr_storage tcpm_addr; /* address associated */ __u16 __tcpm_pad1; /* zero */ __u16 tcpm_keylen; /* key length */ __u32 __tcpm_pad2; /* zero */ __u8 tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* key (binary) */ }; #endif static int sk_set_md5_auth_int(sock *s, sockaddr *sa, char *passwd) { struct tcp_md5sig md5; memset(&md5, 0, sizeof(md5)); memcpy(&md5.tcpm_addr, (struct sockaddr *) sa, sizeof(*sa)); if (passwd) { int len = strlen(passwd); if (len > TCP_MD5SIG_MAXKEYLEN) { log(L_ERR "MD5 password too long"); return -1; } md5.tcpm_keylen = len; memcpy(&md5.tcpm_key, passwd, len); } int rv = setsockopt(s->fd, IPPROTO_TCP, TCP_MD5SIG, &md5, sizeof(md5)); if (rv < 0) { if (errno == ENOPROTOOPT) log(L_ERR "Kernel does not support TCP MD5 signatures"); else log(L_ERR "sk_set_md5_auth_int: setsockopt: %m"); } return rv; } #ifndef IPV6 /* RX/TX packet info handling for IPv4 */ /* Mostly similar to standardized IPv6 code */ #define CMSG_RX_SPACE (CMSG_SPACE(sizeof(struct in_pktinfo)) + CMSG_SPACE(sizeof(int))) #define CMSG_TX_SPACE CMSG_SPACE(sizeof(struct in_pktinfo)) static char * sysio_register_cmsgs(sock *s) { int ok = 1; if ((s->flags & SKF_LADDR_RX) && (setsockopt(s->fd, IPPROTO_IP, IP_PKTINFO, &ok, sizeof(ok)) < 0)) return "IP_PKTINFO"; if ((s->flags & SKF_TTL_RX) && (setsockopt(s->fd, IPPROTO_IP, IP_RECVTTL, &ok, sizeof(ok)) < 0)) return "IP_RECVTTL"; return NULL; } static void sysio_process_rx_cmsgs(sock *s, struct msghdr *msg) { struct cmsghdr *cm; struct in_pktinfo *pi = NULL; int *ttl = NULL; for (cm = CMSG_FIRSTHDR(msg); cm != NULL; cm = CMSG_NXTHDR(msg, cm)) { if (cm->cmsg_level == IPPROTO_IP && cm->cmsg_type == IP_PKTINFO) pi = (struct in_pktinfo *) CMSG_DATA(cm); if (cm->cmsg_level == IPPROTO_IP && cm->cmsg_type == IP_TTL) ttl = (int *) CMSG_DATA(cm); } if (s->flags & SKF_LADDR_RX) { if (pi) { get_inaddr(&s->laddr, &pi->ipi_addr); s->lifindex = pi->ipi_ifindex; } else { s->laddr = IPA_NONE; s->lifindex = 0; } } if (s->flags & SKF_TTL_RX) s->ttl = ttl ? *ttl : -1; return; } /* static void sysio_prepare_tx_cmsgs(sock *s, struct msghdr *msg, void *cbuf, size_t cbuflen) { struct cmsghdr *cm; struct in_pktinfo *pi; if (!(s->flags & SKF_LADDR_TX)) return; msg->msg_control = cbuf; msg->msg_controllen = cbuflen; cm = CMSG_FIRSTHDR(msg); cm->cmsg_level = IPPROTO_IP; cm->cmsg_type = IP_PKTINFO; cm->cmsg_len = CMSG_LEN(sizeof(*pi)); pi = (struct in_pktinfo *) CMSG_DATA(cm); set_inaddr(&pi->ipi_spec_dst, s->saddr); pi->ipi_ifindex = s->iface ? s->iface->index : 0; msg->msg_controllen = cm->cmsg_len; } */ #endif #ifndef IP_MINTTL #define IP_MINTTL 21 #endif #ifndef IPV6_MINHOPCOUNT #define IPV6_MINHOPCOUNT 73 #endif #ifndef IPV6 static int sk_set_min_ttl4(sock *s, int ttl) { if (setsockopt(s->fd, IPPROTO_IP, IP_MINTTL, &ttl, sizeof(ttl)) < 0) { if (errno == ENOPROTOOPT) log(L_ERR "Kernel does not support IPv4 TTL security"); else log(L_ERR "sk_set_min_ttl4: setsockopt: %m"); return -1; } return 0; } #else static int sk_set_min_ttl6(sock *s, int ttl) { if (setsockopt(s->fd, IPPROTO_IPV6, IPV6_MINHOPCOUNT, &ttl, sizeof(ttl)) < 0) { if (errno == ENOPROTOOPT) log(L_ERR "Kernel does not support IPv6 TTL security"); else log(L_ERR "sk_set_min_ttl6: setsockopt: %m"); return -1; } return 0; } #endif #ifndef IPV6_TCLASS #define IPV6_TCLASS 67 #endif int sk_priority_control = 7; static int sk_set_priority(sock *s, int prio) { if (setsockopt(s->fd, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio)) < 0) { log(L_WARN "sk_set_priority: setsockopt: %m"); return -1; } return 0; } bird-1.4.0/sysdep/linux/Modules0000644000103200001440000000006012010156301015402 0ustar feelauserskrt-sys.h netlink.c netlink.Y sysio.h syspriv.h bird-1.4.0/sysdep/linux/netlink.Y0000644000103200001440000000126612175263574015705 0ustar feelausers/* * BIRD -- Linux Netlink Configuration * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ CF_HDR CF_DECLS CF_KEYWORDS(KERNEL, TABLE, KRT_PREFSRC, KRT_REALM) CF_GRAMMAR CF_ADDTO(kern_proto, kern_proto kern_sys_item ';') kern_sys_item: KERNEL TABLE expr { if ($3 <= 0 || $3 >= NL_NUM_TABLES) cf_error("Kernel routing table number out of range"); THIS_KRT->sys.table_id = $3; } ; CF_ADDTO(dynamic_attr, KRT_PREFSRC { $$ = f_new_dynamic_attr(EAF_TYPE_IP_ADDRESS, T_IP, EA_KRT_PREFSRC); }) CF_ADDTO(dynamic_attr, KRT_REALM { $$ = f_new_dynamic_attr(EAF_TYPE_INT, T_INT, EA_KRT_REALM); }) CF_CODE CF_END bird-1.4.0/NEWS0000644000103200001440000002616512244656136012142 0ustar feelausersVersion 1.4.0 (2013-11-25) o BFD protocol (RFC 5880). o BFD support for OSPF and BGP. o New 'allow local as' option for BGP. o Filters allows setting gw, ifname and ifindex. o Filter operator 'delete/filter' extended to bgp_paths. o Filter operator 'len' extended to [e]clists. o BIRD client now allows shorthands for noninteractive commands. o Flag -P for PID file support. o Flag -f added to force BIRD to run in foreground. o Protocol export/import/receive limits are checked during reconfiguration. o Several bugfixes and minor improvements. o Several minor but incompatible changes: - IBGP is multihop by default. - Changes primary address selection on BSD to the first one. - Integers in filters are handled as unsigned. - ISO 8601 time formats used by default. - Import of device routes from kernel protocol allowed. - Last state change now tracks just protocol state change. - Minor changes to default router ID calculation. Version 1.3.11 (2013-07-27) o OSPF stub router option (RFC 3137). o TTL security for OSPF and RIP. o Protocol packet priority and traffic class handling. o Multiple routing tables support for FreeBSD and OpenBSD. o Extends constants to all filter data types. o Implements eval command. o 'bgppath ~ int set' filter operation. o Several bugfixes. Version 1.3.10 (2013-04-30) o Lightweight BIRD client for embedded environments. o Dynamic IPv6 router advertisements. o New 'next hop keep' option for BGP. o Smart default routing table for 'show route export/preexport/protocol'. o Automatic router ID selection could be configured to use address of loopback. o Allows configured global addresses of NBMA neighbors in OSPFv3. o Allows BIRD commands from UNIX shell even in restricted mode. o Route limits inherited from templates can be disabled. o Symbol names enclosed by apostrophes can contain dots. o Several bugfixes. Version 1.3.9 (2013-01-11) o BIRD can be configured to keep and show filtered routes. o Separate receive and import limits. o Several new reconfiguration cmd options (undo, timeout, check). o Configurable automatic router ID selection. o Dragonfly BSD support. o Fixed OSPFv3 vlinks. o Several minor bugfixes. Version 1.3.8 (2012-08-07) o Generalized import and export route limits. o RDNSS and DNSSL support for RAdv. o Include in config file support wildcards. o History deduplication in BIRD client. o New route attributes krt_source, krt_metric. o Different instance ID support for OSPFv3. o Real broadcast mode for OSPFv2. o Several minor bugfixes. Version 1.3.7 (2012-03-22) o Route Origin Authorization basics. o RIPng working again. o Extended clist operations in filters. o Fixes several bugs in BSD iface handling. o Several minor bugfixes and enhancements. Version 1.3.6 (2012-01-20) o Important bugfix in BGP. Version 1.3.5 (2012-01-10) o Protocol templates. o Deterministic MED option for BGP. o Support for link-local addresses in BGP and static protocols. o Several bugfixes. Version 1.3.4 (2011-10-10) o Static recursive routes. o Several bugfixes. Version 1.3.3 (2011-09-11) o OSPF NSSA. o BGP extended communities. o BGP TTL security. o Configuration option "include" added (based on patch from Alexander V. Chernikov). o Some minor bugfixes. Version 1.3.2 (2011-07-08) o Allows run with restricted privileges. o Community list filter operation. o Fixes several problems in filter syntax: - Fixes several conflicts in the grammar. - Fixes a bug in (a..b, c) pair patterns. - Makes pair patterns orthogonal. - Allows term expressions in pair patterns without additional ( ). - Allows several comma separated values in switch cases. o Many bugfixes. Version 1.3.1 (2011-05-02) o Added Linux kernel route attributes krt_prefsrc and krt_realm. o Added BGP option 'med metric' related to MED handling. o Allows to use constants from /etc/iproute2/rt_* files. o Several bugfixes. Version 1.3.0 (2011-03-31) o Proper iBGP (can be used with IGP). o Multipath support (OSPF and static). o L2 link state detection. o IPv6 router advertisements. o Much improved OSPF reconfiguration. o Point-to-MultiPoint interfaces (OSPF). o Minor changes and improvements in config file grammar. o Better community list matching. o Changes default behavior of BGP IPv6 socket to v6only. Use 'listen bgp dual' for the old behavior. o Changes default for handling missing link-local addresses on route servers. Use 'missing lladdr drop' for the old behavior. o Important bugfix for OSPF. o Several minor bugfixes. Version 1.2.5 (2010-10-10) o Several mostly minor bugfixes. Version 1.2.4 (2010-08-03) o Added 'show memory' command. o Important bugfix in IPv6 BGP. o Several minor bugfixes. Version 1.2.3 (2010-06-01) o Pattern matching for community lists. o Many fixes in OSPF protocol (esp. in multi-areas and vlinks). o Several minor bugfixes. Version 1.2.2 (2010-04-10) o Much better BSD kernel support (IPv6, alien routes, ...). o Deep OSPF socket changes, fixes OSPFv2/v3 behavior on BSD. o OSPFv2 in Linux now supports more non-stub IP prefixes on one physical iface. o Export of device routes to the kernel is more restricted. o Routes with strange scope not allowed in BIRD routing tables. o New filterable route attributes bgp_originator_id, bgp_cluster_list and ospf_router_id. o Restricted read-only CLI (option -r). o Pattern matching for 'show protocols' command. o BGP protocol details in 'show protocols all' command. o Configurable syslog name (and default on IPv6 changed). o Statistic counters for pipes were fixed. o Many bugfixes in BGP, OSPF, filters, ... Version 1.2.1 (2010-02-11) o Option 'interpret communities' allows to override implicit handling of well-known communities. o 'configure' command uses route reload when filters change. o Adds router ID of advertising router as OSPF route attribute. o 'show route' command indicates primary route and shows OSPF Router ID. o Configurable date/time formats. o Symbol names can be enclosed by '' and so include hyphen and start with number. o Several minor bugfixes. Version 1.2.0 (2010-01-05) o Implements OSPFv3 (IPv6 support for OSPF). Because the code is shared with OSPFv2 and there were deep changes in it, we suggest caution during upgrade to OSPF users. Some advanced features (like NSSA, vlinks and authentication) are not yet implemented. o Implements MRTdump - binary logging protocol compatible with other routing daemons. Only BGP part of MRTdump is yet implemented. o Changes default value of BGP attribute LOCAL_PREF from 0 to 100. Use 'default bgp_local_pref 0' BGP protocol option for the old behavior. The new value is suggested by RFC 4277. o Changes default mode of pipes from opaque to transparent. Use 'mode opaque' protocol option if the old behavior is needed. Opaque pipe mode is deprecated and might be removed in the future. Version 1.1.7 (2009-12-20) o Implements BGP Route Refresh (RFC 2918). o Implements route reload command. o Deep changes and bugfixes in pipe protocol. o Bugfix in OSPF premature aging of LSA. o Bugfix in OSPF next hop calculation. o Bugfix in core related to route withdraws. o Several minor bugfixes. Version 1.1.6 (2009-11-19) o Implements RFC 5004 - prefer older external routes. o There is a change how route servers handle missing IPv6 link local addresses in next hop atribute - see 'missing lladdr' option. o Several minor features (description field, parse check option). o Several minor bugfixes. Version 1.1.5 (2009-10-29) o Better scalability of BGP. o New accessors for AS path - first and last. o Allows to set protocol-specific router ID. o Allows import kernel 'onlink' routes. o Endianity check in buildsystem changed. Version 1.1.4 (2009-10-02) o BGP passive option. o Several minor bugfixes. Version 1.1.3 (2009-09-11) o Bugfix in core o Bugfix in BGP related to AS2->AS4 conversion. Version 1.1.2 (2009-08-23) o Allow more kernel routing tables in IPv6. o Bugfix in core Version 1.1.1 (2009-08-14) o 'more' style paging in BIRD client. o Important core bug fixed. o Portability to non-x86 related bugfixes. o As usual, miscellaneous bugfixes. Version 1.1.0 (2009-06-28) 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 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. o As usual, miscellaneous bugfixes. Version 1.0.15 (2009-05-25) o FreeBSD and NetBSD port renewed. OpenBSD port introduced. o import/preimport 'show route' modifiers was renamed to export/preexport for consistency with filters. o Minor change in the grammar of 'interface' config option. o Many bugfixes in IPv6 BGP. o As usual, miscellaneous bugfixes. Version 1.0.14 (2009-04-28) o A lot of bugfixes in BGP, OSPF and core. o A bugfix in filters in the pipe protocol. It is recommended to check whether the new behavior of used pipe filters is consistent with expectations. o Reimplementation of prefix sets and a slight change in the meaning of some prefix set patterns. Version 1.0.13 (2009-03-14) o A lot of bugfixes in BGP, OSPF and core o A new syntax for BGP masks Version 1.0.12 (2008-11-12) o new BGP features: BGP MD5, ASN32, BGP route reflector o BGP bugfixes ... Version 1.0.9 (2004-07-15) o Minor bugfix in RIP o A lot of OSPF code rewritten, OSPF supports multiple areas, virtual links, MD5 authentication. It is fully compatible with rfc2329. Version 1.0.8 (2004-06-07) o A lot of bug fixes in RIP, OSPF and BGP (thanx to Andreas Steinmetz) o FreeBSD and NetBSD port introduced o Complete code clean up Version 1.0.7 (2003-08-20) o OSPF bug fixes Version 1.0.6 (2003-04-06) o No more byte order problems in RIP authentication. Thanks to Eric Leblond for a patch. o Fixed interoperability problems with Cisco and Zebra when talking IPv6 BGP. o Handle more primary addresses with different scopes gracefully. IPv6 needs that. o Comparison of prefixes in filters doesn't ignore their lengts. o As usually, OSPF bug fixes. o Documentation building tools now work with recent linuxdoc-tools. Version 1.0.5 (2001-06-09) o Minor cleanups in the libraries. o Removed a couple of warnings when compiling with newer glibc. o OSPF bug fixes. Version 1.0.4 (2000-09-04) o Fixed a serious bug in 1.0.3. Version 1.0.3 (2000-09-03) o OSPF works better on NBMA networks. Some configuration tags added. Version 1.0.2 (2000-08-24) o Minor bug fixes to OSPF. Version 1.0.1 (2000-06-22) o Updated documentation and fixed a couple of bugs. Version 1.0.0 (2000-06-09) o First stable release. Version 0.0.0 (2000-05-13) o First public development release. bird-1.4.0/INSTALL0000644000103200001440000000106211606273733012460 0ustar feelausersHow to install BIRD =================== $ ./configure $ make # make install Default location for configuration file is /usr/local/etc/bird.conf and for control socket is /usr/local/var/run/bird.ctl . You can change that by --sysconfdir and --localstatedir configure options. Requirements ============ For compiling BIRD you need these programs and libraries: - GNU C Compiler - GNU Make - GNU Bison - GNU M4 - Flex - ncurses library - GNU Readline library (2.1 or newer) For compiling BIRD documentation you also need: - Linuxdoc-Tools - LaTeX bird-1.4.0/ChangeLog0000644000103200001440000204440612244656171013214 0ustar feelauserscommit 0bb4e37db317a1290bad24fe430cac6569a9bd8c Author: Ondrej Filip Date: Mon Nov 25 15:16:20 2013 +0100 Release date added. commit e75520c455a1a3fd026a9633c3ad26d865165fee Author: Ondrej Zajicek Date: Mon Nov 25 13:46:29 2013 +0100 NEWS and version update. commit 90eb5e7a8bb60cb637626a3b433caf10cd8d2a03 Author: Ondrej Zajicek Date: Mon Nov 25 13:44:07 2013 +0100 Use ISO 8601 timeformats by default. commit 0c95f85ec59cc970e8f9aa2da56e25dad249bbb8 Author: Ondrej Zajicek Date: Mon Nov 25 11:06:00 2013 +0100 Fixes a reply code. commit 8137fe6d45762844248300de2a030e96042b1975 Author: Ondrej Zajicek Date: Mon Nov 25 02:03:23 2013 +0100 Allows shorthands for birdc noninteractive commands. commit e237b28a4d4b17ab50182ac110f28594967e76dc Author: Ondrej Zajicek Date: Mon Nov 25 01:21:39 2013 +0100 Changes primary addr selection on BSD to respect SIOCGIFADDR ioctl() result. Thanks to Alexander V. Chernikov for the original patch. commit 5ebc92935cb58c78286d91f0831de94cd4ae0f9e Author: Ondrej Zajicek Date: Sun Nov 24 22:22:24 2013 +0100 Last state change should track protocol state change. And not core state change, which is not much relevant (e.g. refeed in BGP). commit c72aca41e5fa55b0efa768e93b55f5c307f84025 Author: Ondrej Zajicek Date: Sun Nov 24 22:12:51 2013 +0100 OSPF ifaces on loopback should be stub. commit e4d179f2c2f213c9190ff4d05979dc33f2c5b2c7 Author: Ondrej Zajicek Date: Sun Nov 24 12:50:53 2013 +0100 Minor changes to default router ID calculation. commit f3e59178506dab9d54cf19ec701f8d9a7fe283f9 Author: Ondrej Zajicek Date: Sun Nov 24 12:37:24 2013 +0100 Enables multihop mode for IBGP by default. This is more consistent with common usage and also with the behavior of other implementations (Cisco, Juniper). Also changes the default for gw mode to be based solely on direct/multihop. commit 52e030e14666ff00a4bb0c700d2c027fbeb87d04 Author: Ondrej Zajicek Date: Sun Nov 24 00:17:02 2013 +0100 Converts filters to unsigned integers. commit 65194bd1eb2e6af217a750fa1e02b6eea66c7130 Author: Ondrej Zajicek Date: Mon Aug 15 02:12:54 2011 +0200 Removes workaround related to import of kernel device routes. Thanks to Benjamin Cama for notification. commit 204e0d5d59279c4245d4d46b86a570b043d683cf Author: Ondrej Filip Date: Sat Nov 23 18:11:55 2013 +0100 Dots added. New release will be 1.4.0. commit d0e33681540c9ad64b15f57a9d39c27658127a31 Author: Ondrej Filip Date: Sat Nov 23 13:27:47 2013 +0100 Added some other features into NEWS file commit d940a2c4d4096f761a750e2df42ab55fd27a7e80 Author: Ondrej Filip Date: Sat Nov 23 13:26:52 2013 +0100 Added a few sentences about symbol names. commit 2b3d52aa421ae1c31e30107beefd82fddbb42854 Author: Ondrej Zajicek Date: Sat Nov 23 01:56:16 2013 +0100 NEWS and version update. commit 77e43c8b72ff77dc7607accb09576c0baab422e0 Author: Ondrej Zajicek Date: Fri Nov 22 22:49:04 2013 +0100 Minor fixes. commit 547d3bf45dd430828d597dfb56624bdc1bd798b3 Author: Ondrej Zajicek Date: Fri Nov 22 22:42:47 2013 +0100 Allows pthreads by default on Linux and FreeBSD only. commit 41f8bf57c4d80cbec89b90b901afa9df4d2d76f1 Author: Ondrej Zajicek Date: Fri Nov 22 21:59:43 2013 +0100 Changes identifiers to avoid use of reserved ones. commit 56027b5cbd7f432d30f7fc99bcf8680c840e6163 Author: Ondrej Zajicek Date: Fri Nov 22 21:58:43 2013 +0100 Minor fix in log_commit() w.r.t. changes in BFD branch. commit 1fba34a7a1e245f08212a31a65030230da8c451d Author: Ondrej Zajicek Date: Fri Nov 22 18:45:57 2013 +0100 Adds check for buffer size in OSPF LSA flood. commit 0aeac9cb7f9887374ce0258c8653f9518529bf08 Merge: 8931425 7c9930f Author: Ondrej Zajicek Date: Fri Nov 22 02:43:41 2013 +0100 Merge commit 'origin/bfd' commit 8931425d02dd8656b48142f608d3119ab6f4a96f Author: Ondrej Zajicek Date: Fri Nov 22 02:12:21 2013 +0100 Fixes problem with RIP on multiple ifaces on BSD. RIP sockets for multiple ifaces collided, because we cannot bind to a specific iface on BSD. Workarounded by SO_REUSEPORT. Thanks to Eugene M. Zheganin for the bugreport. commit 548c329cde371bceef05f86b7f904378a392d89c Author: Ondrej Zajicek Date: Fri Nov 22 01:20:32 2013 +0100 Adds rate limiting to some log messages. commit 64534ea2f4361c247d7a0d1b6b14a02e8e3d6d33 Author: Ondrej Zajicek Date: Thu Nov 21 13:17:42 2013 +0100 Fixes an issue when opposite address is mistaken for broadcast on ptp ifaces on BSDs. Thanks to Lex van Roon for the bugreport and to Alexander V. Chernikov for examining it and locating the problem. commit 7c9930f9c8feb3b08f7a9e94a08807ccbbc096f5 Author: Ondrej Zajicek Date: Thu Nov 21 11:36:49 2013 +0100 Adds a missing file. I forgot to add that to the previous commit. commit f8f2419d4c5b9028b9b3d2d893fe802f18eb239b Author: Ondrej Zajicek Date: Wed Nov 20 13:30:00 2013 +0100 Additional filter test case. commit 4d4979c67c65dceb1ae557707312b83fde4bc8a8 Author: Ondrej Zajicek Date: Wed Nov 20 13:25:33 2013 +0100 Fixes some potential issues with invalid term size in clients. commit 1ec522538fb81a56b068c087d0a842faf7aa7869 Author: Ondrej Zajicek Date: Tue Nov 19 22:33:48 2013 +0100 BFD protocol, ready for release. Supports OSPF and BGP and also statically configured sessions. commit 33be3ba713901befe2df651b869a406df8fc8ace Author: Ondrej Zajicek Date: Mon Oct 21 15:06:09 2013 +0200 Accepts a change of OSPFv3 neighbor's IP address. Thanks to Pierre Pfister for the patch. commit a15dab76f93337b07b4b03a64ac3bac26285dfd9 Author: Ondrej Zajicek Date: Mon Oct 21 14:58:32 2013 +0200 Implements 'allow local as' option. Similar to allowas-in option on other routers. commit f8cc7396cf25328b002394bbd7af679188b03370 Author: Ondrej Zajicek Date: Tue Oct 15 10:57:57 2013 +0200 Forces KRT rescan on syncer startup with multi syncer config. Thanks to Sergey Popovich for the patch. commit 1cd198cf52b3eae677159d81eacca3e0ebe24e71 Author: Ondrej Filip Date: Sat Oct 5 22:45:08 2013 +0200 Flag -f "run in foreground" added as requested by a package maintainter. commit 0e175f9f0fd872e95225355dbdeca49cd35ec0fd Author: Ondrej Zajicek Date: Sat Oct 5 20:12:28 2013 +0200 Fixes some BFD bugs and makes logging thread-safe. commit e7c2380260f20a4a3587b47df97879ef91c69774 Author: Ondrej Zajicek Date: Sat Oct 5 19:30:12 2013 +0200 Implements PID file support. Thanks to Thierry Fournier for the original patch. commit 7ccb36d3308ef57d340e663f0cabd24663f4f62a Author: Ondrej Zajicek Date: Wed Oct 2 14:57:29 2013 +0200 Implements C.len operator for clist and eclist types. Thanks to Sergey Popovich for the original patch. commit 28a10f84cbc3635e59bff348cb1715859dfacade Author: Ondrej Zajicek Date: Wed Oct 2 14:41:37 2013 +0200 Some fixes in filter code. Thanks to Sergey Popovich for original patches. commit 70c5780535fa3bd2360e8208f9273ac6d1741107 Author: Ondrej Zajicek Date: Wed Oct 2 12:10:09 2013 +0200 Minor code cleanups. Thanks to Sergey Popovich for the patch. commit b655596d1d9ad7664d12249c946ba3483b2de3f0 Author: Ondrej Zajicek Date: Wed Oct 2 11:42:46 2013 +0200 Simplifies val_in_range(). Also fixes missing type check for element ~ set. commit ec57bbf67f9e4221fb98f6769f592cedf2eb2d24 Author: Ondrej Filip Date: Mon Sep 30 14:07:34 2013 +0200 Recheck export/import/receive limits during reconfiguration. commit a5fc59587fe864e4fcfb44eb3be57231b4ca339b Author: Ondrej Zajicek Date: Thu Sep 26 22:08:21 2013 +0200 Rewrites static attribute filter code and adds ifname/ifindex attributes. Thanks to Sergey Popovich for the original ifname/ifindex patch. commit 4df2019ebfc0f77feb16b6a33dea6d5ac595f55e Author: Ondrej Zajicek Date: Thu Sep 26 17:36:30 2013 +0200 Fixes build issues without BGP. Thanks to Sergey Popovich for the patch. commit f83ce94d5e410d5e5b921121867321c19451896b Author: Ondrej Zajicek Date: Thu Sep 26 17:33:00 2013 +0200 Fixes missing unregister of kernel table handling code. And some minor fixes. Thanks to Sergey Popovich for the patch. commit f515e22924591542a909db0deb8545386aaa576e Author: Ondrej Zajicek Date: Sun Sep 22 19:15:39 2013 +0200 Allows other than IA_PEER addresses on PtP ifaces on BSD. Also fixes a potential problem with link-local dest_addrs for IA_PEER addresses. Thanks to Alexander V. Chernikov for the suggestion. commit 6a8d3f1c1ffbd964e4d11b452c73e1ea70310af3 Author: Ondrej Zajicek Date: Mon Sep 16 23:57:40 2013 +0200 BFD work in progress. Now it compiles and mostly works. commit e550a37206528be39e4751865b46720885fd64ed Author: Ondrej Filip Date: Fri Sep 13 18:55:02 2013 +0200 Fixes problem with OSPF neighbor router ID change. Thanx to Alexander V. Chernikov commit c404f4b968b69a2c5c1975d04abf7474891d5656 Author: Ondrej Filip Date: Wed Sep 11 01:15:34 2013 +0200 OSPF state machine fix - thanx to Alexander V. Chernikov commit 92f8878cbf5d8ad9e9b909a9dcbb2112de54a542 Author: Ondrej Zajicek Date: Tue Sep 10 13:03:58 2013 +0200 Fixes a bug related to multiple IPs and direct protocol. Multiple IPs in the same IP prefix confuse the direct protocol and could cause withdrawal of a valid prefix. Thanks to Dan Rimal for a bugreport. commit 2a0130f94d2304e316f0ffad8e52fce094559782 Author: Ondrej Zajicek Date: Tue Sep 10 13:01:22 2013 +0200 Fixes a bug in kernel extended attribute processing. The bug caused that krt_prefsrc attribute was not processed when a route received from a kernel protocol was exported to another kernel protocol. Thanks to Sergey Popovich for a bugreport. commit 507e182a60c3704f8a28a0450f1affc2c7c1b66a Author: Ondrej Zajicek Date: Tue Sep 10 12:58:24 2013 +0200 Fixes reconfiguration of global set variables. When global set variables were used, every reconfiguration restarted protocols that use it in filters. Thanks to Sergey Popovich for a bugreport. commit d27e127aa996d500fed21be2bbbe888cafecb830 Merge: bff9ce5 b0a8c7f Author: Ondrej Zajicek Date: Tue Sep 10 12:54:57 2013 +0200 Merge commit 'origin/master' commit bf139664aa2ae9956b520ba4813bb6e03bf1a3e8 Author: Ondrej Zajicek Date: Tue Sep 10 12:09:36 2013 +0200 Initial BFD commit, work in progress. commit b0a8c7fc8547eef21ede33887580b5e867ee742c Author: Ondrej Filip Date: Thu Aug 15 20:26:50 2013 +0200 Wrong change commited - 'route limit' marked as obsolete. commit e628cad0ca9eb7d9bf4141e57201169c46faa661 Author: Ondrej Filip Date: Thu Aug 15 20:20:05 2013 +0200 BGP option 'route limit' is marked as obsolete. 'import limit' should be used instead. commit 6d90e57332e102e261d69a1a05dfaa19fb31d933 Author: Ondrej Filip Date: Thu Aug 15 19:54:18 2013 +0200 Typo in documentation fixed. commit 1f64a487a065cc27c52ab0d3d38b7c82926fea70 Author: Ondrej Filip Date: Thu Aug 15 13:29:33 2013 +0200 Symbol names enclosed by apostrophes can contain colons. commit bff9ce5130d16af2fd802d42bdb2bff00980c9ae Author: Ondrej Zajicek Date: Thu Aug 15 01:06:47 2013 +0200 Extends delete/filter operators to work no bgp_paths. commit 8a112d8ba2e77d79468146ec8f54b3c90b6e68e4 Author: Ondrej Zajicek Date: Tue Aug 13 23:04:06 2013 +0200 Removes strip from make install Thanks to Alexander V. Chernikov for the patch. commit b21955e05800c3ceedfe39eef605da84285296c7 Author: Ondrej Zajicek Date: Tue Aug 13 20:42:43 2013 +0200 Fixes a bug related to mixed up neighbor events in BGP. Neighbor events related to received route next hops got mixed up with sticky neighbor node for an IP of the BGP peer. If a neighbor for a next hop disappears, BGP session is shut down. commit 00192d5ab88ff9eeccbc1bc10cb534976a56963d Author: Ondrej Zajicek Date: Tue Aug 13 20:25:05 2013 +0200 Implements proper setting of 'gw' route attribute. Thanks to Sergey Popovich for the bugreport. commit f8e8fcfabeb206287065f48e800743b0aa797cc2 Author: Ondrej Zajicek Date: Mon Jul 29 13:07:15 2013 +0200 Test commit. commit fd6cbe9053c529df7eac431ff72d3c509ba91ca9 Author: Ondrej Zajicek Date: Mon Jul 29 12:52:38 2013 +0200 Test commit. commit cff430f396b006ef34e756075948dcb6b07fc427 Author: Ondrej Zajicek Date: Mon Jul 29 12:28:03 2013 +0200 Test commit. Also contains minor fixes in doc formatting. commit 50b71c1b96f99ac40e733295daeb03927777b206 Author: Ondrej Filip Date: Sun Jul 28 18:50:40 2013 +0200 Fixed small error in documantation (thanks engels@openit.de). commit 643228bc1cfb6a8f5169ee8ebfe1b75c81cc8543 Author: Ondrej Zajicek Date: Sat Jul 27 00:47:58 2013 +0200 NEWS and version update. commit f4830d8cb801c9124361bcc0c9e33f8f6005c08d Author: Ondrej Zajicek Date: Sat Jul 27 00:38:29 2013 +0200 Documentation update. commit 4ee39ff2ff78f86ce1ec79a77e22120984452549 Author: Ondrej Zajicek Date: Fri Jul 26 11:06:08 2013 +0200 Fixes initial random values for function arguments. Thanks to Javor Kliachev for the bugreport. commit 1103b32e830fbf98d9b3e32c0425b9a589773bf8 Author: Ondrej Zajicek Date: Thu Jul 25 22:33:57 2013 +0200 Allows to define constants of all filter types. commit ac5745134847c044b21c311e5ab11d92d05bacc1 Author: Ondrej Zajicek Date: Thu Jul 25 13:55:24 2013 +0200 Implements RFC 6608 Subcodes for BGP FSM Error. commit 508d936078aecc8fbbb9ca1218104599c4a3cb4a Author: Ondrej Zajicek Date: Thu Jul 25 13:15:32 2013 +0200 Implements eval command and minor CLI cleanups. Implemented eval command can be used to evaluate expressions. The patch also documents echo command and allows to use log classes instead of integer as a mask for echo. commit a0b176e3b2b50d3a30574afa927e0ee8ef65be68 Author: Ondrej Zajicek Date: Wed Jul 24 14:20:46 2013 +0200 Fixes header file name. Thanks to Fritz Grimpen for the patch. commit e1afee279993363ffb4a7005554d0774eb09b764 Author: Ondrej Zajicek Date: Wed Jul 24 14:19:37 2013 +0200 Fixes socket error hook for radv protocol. commit 9135c1f0ca6322bff9648895b5394b97761b4bcb Author: Ondrej Zajicek Date: Wed Jul 24 14:11:12 2013 +0200 Fixes bug in protocol flushing and rtable pruning. When route was propagated to another rtable through a pipe and then the pipe was reconfigured softly in such a way that any subsequent route updates are filtered, then the source protocol shutdown didn't clean up the route in the second rtable which caused stale routes and potential crashes. commit 48b15ef10fede35113af71bd0dbb0b27a5fcb8f5 Author: Ondrej Zajicek Date: Sat Jul 13 01:39:41 2013 +0200 Fixes stuck connection during BGP session shutdown. If TX buffers were full during BGP session shutdown then a protocol waited indefinitely to be able to send notification packet to close the session. commit 354496ace87341428e6005fbc073fbe57b4e6c0e Author: Ondrej Zajicek Date: Thu Jul 11 13:50:44 2013 +0200 Some fixes for TTL security. commit cc31b75a8fd7949533c12db2c3e9d67eeaf46d10 Author: Ondrej Zajicek Date: Tue Jul 9 23:27:10 2013 +0200 Implements 'bgppath ~ int set' filter op. commit c01a94663cc18f53fd741c5d44387eead9ca88af Author: Ondrej Zajicek Date: Sun Jul 7 12:11:42 2013 +0200 Implements multiple routing table support for FreeBSD and OpenBSD. Inspired by the patch from Alexander V. Chernikov. commit c6964c305b425b98aaf0492806a28b578d799d83 Author: Ondrej Zajicek Date: Sat Jun 29 22:55:41 2013 +0200 Makes krt.c much more readable. commit 6ac4f87a2d661c739e55a63577e7bccf696c7abd Author: Ondrej Zajicek Date: Wed Jun 26 14:35:39 2013 +0200 Documentation for TTL security. commit 70e212f913b6ce9d343d6c401b4f1712986a5f8c Author: Ondrej Zajicek Date: Tue Jun 25 15:33:00 2013 +0200 Implements TTL security for OSPF and RIP. Interfaces for OSPF and RIP could be configured to use (and request) TTL 255 for traffic to direct neighbors. Thanks to Simon Dickhoven for the original patch for RIPng. commit ef4a50be10c6dd0abffd957132cd146029c3d79d Author: Ondrej Zajicek Date: Mon Jun 24 16:37:30 2013 +0200 Better packet priority and traffic class handling. Implements support for IPv6 traffic class, sets higher priority for OSPF and RIP outgoing packets by default and allows to configure ToS/DS/TClass IP header field and the local priority of outgoing packets. commit fad04c750ca6906fb095f1b45958dec0ac8e210c Author: Ondrej Zajicek Date: Thu Jun 13 11:27:14 2013 +0200 Fixes problems with kernel routes multiple routing tables. Temporary dummy routes created by a kernel protocol during routing table scan get mixed with real routes propagated from another kernel protocol through a pipe. commit f623ab9875cad2d129f708e95021d3a252930000 Author: Ondrej Zajicek Date: Tue Jun 11 12:12:11 2013 +0200 Implements OSPF stub router option (RFC 3137). Also fixes OSPFv3 routing table calculcation w.r.t. errata 2078 to RFC 5340. commit 924868543c2010f3ef2cfcb7ba6bac5988ab3264 Author: Ondrej Zajicek Date: Tue May 28 10:48:14 2013 +0200 Fixes crash with vlinks. commit 9810d055628877232f811d684567e203381e10dc Author: Ondrej Zajicek Date: Tue May 28 10:44:44 2013 +0200 Fixes problems with routing table scans on some platforms. Negative bit shifts are definitely undefined oprations. commit 9c99d753fd672bd9839715ee325ef01cca993dbf Author: Ondrej Zajicek Date: Thu May 9 11:11:06 2013 +0200 Fixes a problem with BGP neighbors, link-local addresses and locking. Thanks to Fritz Grimpen for the bugfix. commit a2017200c71293d0a28a39d1f250ba38d57f6289 Author: Ondrej Zajicek Date: Mon Apr 29 22:33:50 2013 +0200 NEWS and version update. commit 572c6440432e3138ea622cfb5a4ef7580d77ef4a Author: Ondrej Zajicek Date: Mon Apr 29 22:08:05 2013 +0200 Fixes a crash when mrtdump is enabled and interface goes away. Thanks to Peter Christensen for the bugfix. commit 32622d0ea366406f3afa14bb9edb4855d6979786 Merge: efd6d12 a5e9f3d Author: Ondrej Zajicek Date: Tue Apr 23 02:54:13 2013 +0200 Merge branch 'birdcl' commit a5e9f3d26f887deb451a3ea086e52266c117aa0a Author: Ondrej Zajicek Date: Tue Apr 23 02:42:35 2013 +0200 Restructures birdc and birdcl to merge duplicated code. The BIRD client code is restructured that most of the code (including main function) is shared in client.c, while birdc.c and birdcl.c contain just I/O-specific callbacks. This removes all duplicated code from variant-specific files. commit d2c392d44839baaefa48f4a38060be648d3415fb Author: Ondrej Zajicek Date: Fri Apr 19 13:59:08 2013 +0200 Removes unnecessary client subdirectories and updates buildsystem. Renames some files: birdc/client.c -> birdc.c birdcl/client.c -> birdcl.c client_common.c -> common.c commit efd6d12b975441c7e1875a59dd9e0f3db7e958cb Author: Ondrej Zajicek Date: Wed Apr 17 15:09:50 2013 +0200 Adds two new default GCC options. Adds two new default GCC options related to optimizations (-fno-strict-aliasing and -fno-strict-overflow). This should fix some hyperaggressive GCC optimizations. Also updates autoconf option detection. commit 8df02847e8af29863c325b7297e3a2b2ed5f961c Author: Ondrej Zajicek Date: Wed Apr 17 13:06:40 2013 +0200 Fixes a compatibility issue in OSPFv2 PtP links. BIRD used zero netmask in hello packets on all PtP links, not just on unnumbered ones. This patch fixes it and adds option 'ptp netmask' for overriding the default behavior. Thanks to Alexander V. Chernikov for the original patch. commit cd3b02d198093abbbe671f647e4deb2470eb9cf1 Author: Ondrej Zajicek Date: Tue Apr 16 17:53:22 2013 +0200 Allows IP of loopback to be used in automatic router ID selection. Thanks to Alexander V. Chernikov for the patch. commit 8bd9b930c320f09d3b3792b5f991cf702e9d55be Author: Ondrej Zajicek Date: Tue Apr 16 17:40:44 2013 +0200 Fixes a bug in IPv6 BGP next hop processing. BGP next hop attributes with empty link-local IPv6 addresses were not handled properly. Thanks to Sergey Popovich for the bugfix. commit 48bc232f08141d26691237c3d79db587ce16932b Author: Ondrej Zajicek Date: Tue Apr 16 17:27:34 2013 +0200 Implements 'next hop keep' option for BGP. This option allows to keep the received next hop even in cases when the route is sent to an interface with a different subnet. commit 9ff5257357d9975654279db17bbc8525583ba1cc Author: Ondrej Zajicek Date: Tue Apr 16 16:22:31 2013 +0200 Better handling of global addresses as configured NBMA neighbors in OSPFv3. Configured NBMA neighbors in OSPFv3 should be link-local addresses, old behavior was to silently ignore global ones. The patch allows BIRD to accept global ones, but adds a warning and a documentation notice. Thanks to Wilco Baan Hofman for the bugreport. commit 568d9c9faeab70951d8e9bfea521e1b38a9a3d1c Author: Tomas Hlavacek Date: Sat Apr 6 22:07:32 2013 +0200 Fix birdcl async message handling Fix handling of async messafe in the bird light client. The async message may occure at the any moment so we need the client to liste for the message from server when it waits for user input. commit ce1348537455e5482a283f7a4cae734d13dcf34e Author: Tomas Hlavacek Date: Tue Mar 19 18:02:40 2013 +0100 Fix birdcl questionmark handling Fix handling of questionmark handling in the bird light client. The questionmark should display help when it is the last non-blank character on command line. Otherwise the questionmark does not have any special meaning and it could be a part of a pattern. commit 8322ecde124188a9408b54afead4666bb954e5a5 Author: Tomas Hlavacek Date: Sun Feb 24 23:47:22 2013 +0100 Add lightweight client - birdcl Restructure client/ subdir. Add two different flavors of client. The full featured birdc client code is in client/birdc/. The new light client birtcl is in client/birdcl/. Common sources of both clients are directly in client/. Rework on-line auto-completion in client/command.c to conditionally turn off ncurses-specific code. Add lightweight client without libreadline and ncurses dependencies - birdcl. The birdcl lacks support of history, on-line auto-completion and there are different implementations of "more" functionality and help on '?' press. New client operates in canonical terminal mode (apart from "more" display) and therefore all commands have to be executed by a return key including help commands (called by '?' character in the end of the line). Apart from these limitations the interaction style should be the same as for the full client - birdc. Build of birdcl is always on (independent on --enable-client parameter). commit e454916149d4efe66732fdd0388181813cab6ed0 Author: Tomas Hlavacek Date: Wed Jan 23 17:14:53 2013 +0100 Pull out independent routines from client_full.c Pull out routines for interacting with the server and interpreting internal commands which are not dependent on libreadline and ncurses libraries. This is a preparation step for a new lightweight birdc client. commit 5c2c4ea8b1e924fce433094e744c0467da55aaab Author: Tomas Hlavacek Date: Wed Jan 23 15:51:04 2013 +0100 Rename client/client.c to client_full.c Rename client/client.c to client-full.c and change the Makefile accordingly. This is a preparation step for introducing a new lightweight client which should reuse as much code as possible from the old one but it should not depend on external libraries. Signed-off-by: Tomas Hlavacek commit a9fc659b840e13323aa43e92eb8f39ceb19b5ed6 Author: Ondrej Filip Date: Tue Feb 26 14:29:53 2013 +0100 Small typos fixed. commit de41dcd13d6f9d4785c80e6234ac38f2a15f5429 Author: Ondrej Filip Date: Tue Feb 26 14:13:11 2013 +0100 Redundant lines removed. commit e667622a35722ec007137e678f4f70841562e57f Author: Ondrej Filip Date: Mon Feb 25 10:39:46 2013 +0100 Default rounting table for 'show route export/preexport/protocol' is the one related to a respective protocol. commit a9c38203bdcad92f7ac0a8a912241d2acb483f2c Author: Ondrej Filip Date: Sun Feb 24 00:43:08 2013 +0100 Allow 1 sec RIP update. commit 04ddefb357b2b8759be16633f7bb1df49b0405ea Author: Ondrej Filip Date: Fri Feb 22 07:15:27 2013 +0100 Use BIRD's ASSERT instead of assert.h commit 2bf59bf4d3e4fcaff489d3445134e5e2e2af9cf6 Author: Ondrej Filip Date: Thu Feb 21 00:44:59 2013 +0100 Hotfix to solve an issue with delaying timers reported by Aleksey Chudov. commit 9d969be5f2d867704e82bd7d6c8049623d50708f Author: Ondrej Filip Date: Thu Feb 14 23:35:51 2013 +0100 I still believe that 0 == NULL, however this patch will make Santiago happy. :-) commit 4c2abee74e64f64fba61aad6e2b66e3895820003 Author: Ondrej Filip Date: Tue Feb 12 13:15:01 2013 +0100 Allow submitting BIRD commands from UNIX shell even in restricted mode. commit 8c4da7e01ded3f06cbf873e67c5ae1cf70cf280b Author: Ondrej Filip Date: Sun Feb 10 19:17:38 2013 +0100 Symbol names enclosed by apostrophes can contain DOTs. commit 0bc3542ab6e0a96342e35ead8ff1c52f980facc2 Author: Ondrej Filip Date: Sun Feb 10 19:06:56 2013 +0100 Route limits can be disabled - this makes sense for protocol templates commit 155134f3960bc06a18c8c7d9a97181b786d77a3a Author: Ondrej Filip Date: Sun Feb 10 19:04:08 2013 +0100 A few semicolons added to decrease a number of warnings. commit c6a2fe64bed8dc67af0e868052b055aa0f45cdf2 Author: Ondrej Zajicek Date: Sat Feb 9 00:53:04 2013 +0100 Fixes handling of iface routes in static proto during reconfiguration. During reconfiguration, iface routes were installed even when iface was down. commit 36da2857bc911924a250a234f38cf58c3b21f1bc Author: Ondrej Zajicek Date: Fri Feb 8 23:58:27 2013 +0100 Implements router advertisements activated by received routes. The RAdv protocol could be configured to change its behavior based on availability of routes, e.g., do not announce router lifetime when a default route is not available. commit d214ae4fdc1e323f89efb8a80c068fef4a45758f Author: Ondrej Zajicek Date: Sat Jan 12 21:26:42 2013 +0100 Fix missing documentation for one option. commit 13d4dd138d5dc6c884ded280f9244fac707c4f32 Author: Ondrej Zajicek Date: Fri Jan 11 14:53:20 2013 +0100 NEWS update. commit b662290f40ea0fa0b1a1ba283e50e833724f2050 Author: Ondrej Zajicek Date: Thu Jan 10 13:07:33 2013 +0100 Separate import and receive limits. They have different behavior w.r.t. filtered routes that are kept. commit 79b4e12e6032faf6bb1f3feac385bd36ee53019e Author: Ondrej Zajicek Date: Thu Dec 27 12:56:23 2012 +0100 Implements interface masks for choosing router id. Router ID could be automatically determined based of subset of ifaces/addresses specified by 'router id from' option. The patch also does some minor changes related to router ID reconfiguration. Thanks to Alexander V. Chernikov for most of the work. commit a92cf57dd6ba021a495fe7268c86dc8e6aeecbb2 Author: Ondrej Zajicek Date: Wed Dec 26 12:40:48 2012 +0100 Implements undo command and optional timeout for configuration Several new configure command variants: configure undo - undo last reconfiguration configure timeout - configure with scheduled undo if not confirmed in timeout configure confirm - confirm last configuration configure check - just parse and validate config file commit 80a9cadc76101157707aecc0b482ad88ad702fc3 Author: Ondrej Zajicek Date: Tue Nov 27 02:08:04 2012 +0100 Changes static route targets drop/reject to blackhole/unreachable. To be consistent with rest of BIRD and Linux. Old names are also allowed for compatibility. commit b31774eeb01a2f63e4ce4dc83f36ffd17879593e Author: Ondrej Zajicek Date: Tue Nov 27 01:30:09 2012 +0100 Removes some nonsense. commit 3e40f3e795e39f0b92445fd5295382220077c77f Author: Ondrej Zajicek Date: Tue Nov 27 01:25:47 2012 +0100 Fixes setting of route attributes of type router id. commit c93c02088a026b83f452fbd260135ba4c8da7ecf Author: Ondrej Zajicek Date: Fri Nov 16 13:30:54 2012 +0100 NEWS and version update. commit 70577529244d6d920b75d95e797156e05141db30 Author: Ondrej Zajicek Date: Fri Nov 16 13:29:16 2012 +0100 Fixes route tracing w.r.t. kept filtered routes. commit cf3a704b6a2263aba6bb6adb4c2c9dd93b72f470 Author: Ondrej Zajicek Date: Fri Nov 16 02:34:12 2012 +0100 Updates the documentation. commit 6cadbf325bfcf25a04d869778abb443f9e1b6119 Author: Ondrej Zajicek Date: Thu Nov 15 14:08:20 2012 +0100 Change unnamed ptp link description on OSPFv2. Although it is a slight deviation from the standard, it has no ill consequences for OSPFv2 and the change fixes a compatibility issue with some broken implementations. commit 15550957957f3c790f3bec3f6b8721559ea25969 Author: Ondrej Zajicek Date: Thu Nov 15 01:29:01 2012 +0100 Changes 'rejected' to 'filtered' in one of the last patches. commit e16469bc4d182428687a5ef5f2fb4707afa15abd Author: Ondrej Filip Date: Mon Nov 12 13:48:29 2012 +0100 AS# in bgp.agreggator was a signed integer - fixed. commit 227af52fb5be09c841fbd9f86e7bb3992b981a4a Author: Ondrej Zajicek Date: Sat Nov 10 16:18:12 2012 +0100 Fixes OSPF reconfigure w.r.t. downed ifaces. commit a55a90faec5cce09cee65f484e3731207af00335 Author: Ondrej Zajicek Date: Sat Nov 10 14:54:35 2012 +0100 Peer address of stub iface should be announced in OSPF Router LSA. commit cf98be7b6743e45dde9e0458664cc0762bf08867 Author: Ondrej Zajicek Date: Sat Nov 10 14:26:13 2012 +0100 Allows rejected routes to be kept and examined. When 'import keep rejected' protocol option is activated, routes rejected by the import filter are kept in the routing table, but they are hidden and not propagated to other protocols. It is possible to examine them using 'show route rejected'. commit dd4da6f640fb581cbd7d1ca537bf382558492b8e Author: Ondrej Zajicek Date: Wed Oct 31 17:14:35 2012 +0100 Fixes another bug in OSPFv3 vlinks. commit 8249ad9b304ea88b29e3aea76ebe49bb50348aaa Author: Ondrej Zajicek Date: Mon Oct 29 20:39:03 2012 +0100 Fixes sorting in OSPF show state. commit e4404cef0be10e639566986a2f8c1906c9f37de1 Author: Ondrej Zajicek Date: Mon Oct 29 20:29:31 2012 +0100 Fixes several bugs related to OSPFv3 vlinks. commit 0343d066dab077d1391640c53198199b16bef993 Author: Ondrej Zajicek Date: Wed Aug 29 12:42:49 2012 +0200 Fixes a bug in primary IP selection. commit 8ecbaf9c70b802a1200ad37f2bfd4bc64173c5fe Author: Ondrej Zajicek Date: Thu Aug 16 13:09:26 2012 +0200 Fixes a bug with neighbor cache and overlapping IP prefixes. When there are overlapping IP prefixes and one disappears, neighbors associated with it was removed even if there is another covering IP prefix. commit d760229ab897fa1bf1fd0fe7019cc2431d21a1cc Author: Ondrej Filip Date: Wed Aug 8 14:10:31 2012 +0200 DragonFly support add - thanks to john@marino.st commit 60c412b9368fd7c3b0a8df2200f02140adcb0cf3 Merge: 3fe1d9e 94e2f1c Author: Ondrej Filip Date: Tue Aug 7 11:15:23 2012 +0200 Merge branch 'master' of ssh://git.nic.cz/bird commit 94e2f1c111721d6213ea65cac5c53036e38e3973 Author: Ondrej Zajicek Date: Tue Aug 7 11:06:57 2012 +0200 NEWS and version update. commit c06de722ddf36f3d6aaabfd4ae9d74a3ea72bbf9 Author: Ondrej Zajicek Date: Mon Aug 6 11:09:13 2012 +0200 Some minor fixes. commit 5400c0e7f982757418a0aeb892459b52fbbcffc3 Author: Ondrej Zajicek Date: Mon Aug 6 02:42:24 2012 +0200 Fixes BGP subcode during global shutdown. commit bbcfd5a0485a8df9568d8da0fc524e272e3e7601 Author: Ondrej Zajicek Date: Thu Jul 26 13:59:50 2012 +0200 Fixes default route in OSPF multiple area setting. commit 48cf5e84e6ed17578e4ad43c5ef54d6ff7d825c4 Author: Ondrej Zajicek Date: Tue Jul 24 20:12:14 2012 +0200 Documentation update, commit 0e224d598579626e03d3727d5901ba2d654ac521 Author: Ondrej Zajicek Date: Sun Jul 22 12:35:04 2012 +0200 RDNSS and DNSSL documentation for RAdv. commit 36415e4b1dd769458cced44525ee74d26d15f9c6 Author: Ondrej Zajicek Date: Fri Jul 20 19:56:57 2012 +0200 Allows to redefine master table. commit c4b76d7b19cf48ddbcbe913c22ef7f1e8429f5ea Author: Ondrej Zajicek Date: Wed Jul 18 19:35:30 2012 +0200 Rename sk_new() to avoid name collision with OpenSSL. commit 4be266a9831799dcc2e67e83fc83d9db43828a64 Author: Ondrej Zajicek Date: Wed Jul 18 19:29:33 2012 +0200 Implements wildcard matching in config file include. Also fixes some minor bugs in include. Thanks Kelly Cochran for suggestion and draft patch. commit abced4a91495e27fe86b142bc1967cec53bab3dc Merge: fc06fb6 7617026 Author: Ondrej Zajicek Date: Mon Jul 16 14:44:45 2012 +0200 Merge branch 'rt-accepted' Conflicts: nest/config.Y nest/rt-table.c proto/bgp/bgp.c commit 761702644397886bd3c1be10fd55c01485b7c454 Merge: 26822d8 553e405 Author: Ondrej Zajicek Date: Mon Jul 16 10:41:29 2012 +0200 Merge commit 'origin/rt-accepted' into rt-accepted commit 26822d8fe1376b2ffd902a3b5caa47f81a88e74e Author: Ondrej Zajicek Date: Wed Jul 4 21:31:03 2012 +0200 Finalize RA_ACCEPTED handling. commit fc06fb62443c135773ee4c05ed83925cc47b046d Author: Ondrej Zajicek Date: Sat Jul 7 10:40:00 2012 +0200 Implements RDNSS and DNSSL support for RAdv. commit 3fe1d9e4a40663b93b59f5b6f9d61af9dc6a8ae6 Merge: 72b2db8 95127cb Author: Ondrej Filip Date: Tue May 15 23:40:37 2012 +0200 Merge branch 'master' of ssh://git.nic.cz/bird commit 95127cbbb76e8870e029454a5313bc4b6ce69a4a Author: Ondrej Zajicek Date: Mon May 14 11:47:41 2012 +0200 Real broadcast mode for OSPFv2. commit 0ec031f7400fbacdd86b40ae1870c58715a7f108 Author: Ondrej Zajicek Date: Fri May 11 18:52:59 2012 +0200 Allows to set instance ID for OSPFv3 interfaces. commit 47c447c42e0bfa1836d951d1e6c1a2236d39dcbb Author: Ondrej Zajicek Date: Fri May 4 23:05:47 2012 +0200 Minor cleanups. commit b7f3df79054aca327654c1fb4739c4ff02e59e6e Author: Ondrej Zajicek Date: Fri May 11 12:01:27 2012 +0200 Fixes a bug in RA_ACCEPTED handling. commit 72b2db8db7534c52e928618410ec1f18787752c8 Merge: 2795700 95616c8 Author: Ondrej Filip Date: Fri May 11 00:01:29 2012 +0200 Merge branch 'master' of ssh://git.nic.cz/bird commit 95616c820248018f4999972cad315f2da60e4960 Author: Ondrej Zajicek Date: Fri May 4 16:38:25 2012 +0200 Cleanup in sysdep KRT code, part 4. Adding some files that was accidentally removed (instead of moved) in cleanup part 2. commit 064e7be5cd4dffd564b4ea41ba6d843492a55c97 Author: Ondrej Zajicek Date: Fri May 4 00:20:23 2012 +0200 History deduplication in birdc. commit e14bd38087ed8ef1945dd0a3878cc560478145f0 Author: Ondrej Zajicek Date: Thu May 3 14:04:56 2012 +0200 Fixes flushing of device routes. commit ab188fb76d7822350724b182106a19995a73d719 Author: Ondrej Zajicek Date: Thu May 3 12:25:15 2012 +0200 Implements build options to specify socket dir and suffix. commit 2795700c3158fa52b6cf957e9d0b9ad4a27c67a5 Merge: 1f85226 bf42207 Author: Ondrej Filip Date: Wed May 2 11:10:40 2012 +0200 Merge branch 'master' of ssh://git.nic.cz/bird commit 7a2c48dafce9420a23fd57408c31eecfc20c4fe0 Author: Ondrej Zajicek Date: Mon Apr 30 22:34:06 2012 +0200 Cleanup in sysdep KRT code, part 3. Just one more renaming, old krt_set_notify() to krt_replace_rte(). commit f1aceff59bbf942bc11c2e9a4c51e381c06f2b20 Author: Ondrej Zajicek Date: Mon Apr 30 22:21:52 2012 +0200 Cleanup in sysdep KRT code, part 2. Remove support for historic Linux kernels, merge krt-iface, krt-set and krt-scan stub headers. commit 396dfa9042305f62da1f56589c4b98fac57fc2f6 Author: Ondrej Zajicek Date: Mon Apr 30 15:31:32 2012 +0200 Cleanup in sysdep KRT code, part 1. OS-dependent functions renamed to be more consistent, prepared to merge krt-set and krt-scan headers. Name changes: struct krt_if_params -> struct kif_params struct krt_if_status -> struct kif_status struct krt_set/scan_params -> struct krt_params struct krt_set/scan_status -> struct krt_status krt_if_params_same -> kif_sys_reconfigure krt_if_copy_params -> kif_sys_copy_config krt_set/scan_params_same -> krt_sys_reconfigure krt_set/scan_copy_params -> krt_sys_copy_config krt_if_scan -> kif_do_scan krt_set_notify -> krt_do_notify krt_scan_fire -> krt_do_scan krt_if_ -> kif_sys_ krt_scan_ -> krt_sys_ krt_set_ -> krt_sys_ commit 182a78957d60a4c91c1ff8d1ff0f09b1b64b70ba Author: Ondrej Zajicek Date: Sun Apr 29 01:35:52 2012 +0200 Allows some modifications of dest attribute in filters. commit bf42207332e8e502d636038f1ec44aaea6ec50e0 Author: Ondrej Zajicek Date: Sat Apr 28 13:03:48 2012 +0200 Changes keyword 'exceed' to 'action'. commit ab758e4fb205346946f2d828236bd23efc2a419e Author: Ondrej Zajicek Date: Sat Apr 28 12:59:40 2012 +0200 Some fixes in route export limits. commit d494df63ac3061accdff348511a565c021411b28 Author: Ondrej Zajicek Date: Fri Apr 27 00:04:51 2012 +0200 Some minor fixes. commit 1f85226ecb76d3803b8fe37eb0891c45a6557dcd Merge: 92f8f7e d9b77cc Author: Ondrej Filip Date: Thu Apr 26 17:03:53 2012 +0200 Merge branch 'master' of ssh://git.nic.cz/bird commit d9b77cc28115e5c1ef64c69722c9d1fd1392dcd1 Author: Ondrej Zajicek Date: Tue Apr 24 23:39:57 2012 +0200 Implements generalized export limits. And also fixes some minor bugs in limits. commit 3589546af4baa4d349409a318f8c9658dd11b3cc Merge: 7d0a31d cca9706 Author: Ondrej Zajicek Date: Tue Apr 24 23:37:01 2012 +0200 Merge commit 'origin/master' commit 92f8f7e3a3a5a42768c18c1f3d4d8f9f98150c61 Author: Ondrej Filip Date: Tue Apr 24 16:31:17 2012 +0200 Small bug in detection of class-A networks. commit cca970666a90af02eaeb6848bbfc3d5a2222fa21 Author: Ondrej Filip Date: Sun Apr 22 14:03:07 2012 +0200 Small typo in programmer's documentation. commit 7d0a31deed92971e274aa0314e12619f93c850c9 Author: Ondrej Zajicek Date: Sat Apr 21 21:05:36 2012 +0200 Fixes in generalized import limits. commit 334a0ed24d015e106558cc9eeef301c6f0d21aec Author: Ondrej Zajicek Date: Fri Apr 20 21:04:55 2012 +0200 Fixes missing device attributes when exporting routes to kernel. Thanks to Howden Nick for the bugreport. commit 9b2b502be521b58a736f7b78644e89ee01b4418b Author: Ondrej Zajicek Date: Fri Apr 20 21:04:55 2012 +0200 Fixes missing device attributes when exporting routes to kernel. Thanks to Howden Nick for the bugreport. commit f93e6f338e59e02b0cddea85e7d367948d9cf3f2 Author: Ondrej Filip Date: Thu Apr 19 17:14:16 2012 +0200 Small clean up in debug texts commit 553e4054609e7aa8dcb92849c92a6fea73354f0e Author: Ondrej Filip Date: Thu Apr 19 17:12:13 2012 +0200 Small clean up in debug texts commit ebecb6f6a11bb418dd054cf12a2673ca0d9eac37 Author: Ondrej Zajicek Date: Sun Apr 15 15:28:29 2012 +0200 Implements generalized import hooks. Thanks to Alexander V. Chernikov for the original patch. commit 3e17e380598b9a512bb369f51a4cf55da269f608 Merge: 00a09f3 ae8b300 Author: Ondrej Zajicek Date: Sun Apr 15 15:17:03 2012 +0200 Merge branch 'master' into rt-accepted commit ae8b300164a975597f9b6caea0b205af2e4db30b Merge: d360f12 ed7c4b0 Author: Ondrej Zajicek Date: Sun Apr 15 15:15:05 2012 +0200 Merge commit 'origin/master' commit d360f129e393298ff3e5309ec06a3baf170784fb Author: Ondrej Zajicek Date: Sun Apr 15 15:13:12 2012 +0200 Fix static protocol w.r.t. some recent changes in protocol ahooks. commit 00a09f3c367e79297f827b52ec5f16842db1ac4e Author: Ondrej Zajicek Date: Sun Apr 15 15:07:58 2012 +0200 Implement RA_ACCEPTED mode of route propagation. commit ed7c4b0cd530126b9a794f817f5d1d93556a1bce Author: Ondrej Filip Date: Mon Apr 9 14:19:28 2012 +0200 Small bugfix in error message related to reconfiguration. commit bf2abe2f515d7b7aaed5fb4f37af82169adcd2f2 Merge: fb829de c0adf7e Author: Ondrej Zajicek Date: Fri Mar 30 11:04:12 2012 +0200 Merge branch 'soon' Conflicts: nest/proto.c nest/rt-table.c commit fb829de69052755a31d76d73e17525d050e5ff4d Author: Ondrej Zajicek Date: Wed Mar 28 18:40:04 2012 +0200 Fixes responsiveness for protocol shutdown. When a protocol went down, all its routes were flushed in one step, that may block BIRD for too much time. The patch fixes that by limiting maximum number of routes flushed in one step. commit cb3cf95859d81c711337738f004675f43c8bbb0e Merge: c9df01d 16fc65a Author: Ondrej Zajicek Date: Sun Mar 25 20:59:13 2012 +0200 Merge commit 'origin/master' commit c9df01d3215379c0463dd2a3b0c9b1700d6e2ac3 Author: Ondrej Zajicek Date: Sun Mar 25 19:44:14 2012 +0200 Fixes several minor bugs in kernel syncer. commit 9ba2798c65c02254ec000ab03a76fbbaae1ddc97 Author: Ondrej Zajicek Date: Fri Mar 23 01:17:02 2012 +0100 Adds krt_metric linux route attribute. commit 72aed1a00ba9e18116d6fd907f7e1a36d0a0a583 Author: Ondrej Zajicek Date: Fri Mar 23 00:26:26 2012 +0100 Adds krt_source route attribute. Thanks Jeremie Dimino for the original patch. commit 16fc65acc536d3788efe4c0554a2f52699fedc7f Author: Ondrej Filip Date: Thu Mar 22 14:52:40 2012 +0100 Minor correction commit 89647357af0d8507652f257f1e8f5679fe9a7078 Author: Ondrej Zajicek Date: Thu Mar 22 12:29:02 2012 +0100 NEWS and version update. commit c47d037ecb5b9c835700b152eed7589409a2e42f Author: Ondrej Zajicek Date: Thu Mar 22 11:46:38 2012 +0100 Some minor changes to CLI. commit df27911880bffb88c1eae90e36c755a3ed3d77ad Author: Ondrej Zajicek Date: Mon Mar 19 13:00:00 2012 +0100 Fixes problem with dirname(). Thanks Henrique de Moraes Holschuh for the original patch. commit af582c4811175d9a27ed5d08a4f6d5eaa69ecec7 Author: Ondrej Zajicek Date: Sun Mar 18 17:32:30 2012 +0100 Route Origin Authorization basics. - ROA tables, which are used as a basic part for RPKI. - Commands for examining and modifying ROA tables. - Filter operators based on ROA tables consistent with RFC 6483. commit fd087589f80a435a42cedb87b917c71363b11860 Author: Ondrej Zajicek Date: Fri Mar 16 13:01:12 2012 +0100 Fixes broken vlinks in OSPF. commit 0f808c066f3b5b190de951db042a34a1eb957a16 Author: Ondrej Zajicek Date: Fri Mar 16 12:47:12 2012 +0100 Adds filtering to 'show symbols' command. Thanks Alexander V. Chernikov for the original patch. commit 20ab192beca749166e19118e987b53b5e131d0cf Author: Ondrej Zajicek Date: Fri Mar 16 12:12:26 2012 +0100 Adds filtering to 'show ospf lsadb' command. Thanks Alexander V. Chernikov for the original patch. commit 0888a737b045b48106edbd28ba3cd62fcc8c191e Author: Ondrej Zajicek Date: Thu Mar 15 20:42:29 2012 +0100 Extends set operations in filters. Allows add/filter/delete clist on clist (set algebra on clists). Allows number ~ bgppath match. commit 9f1500f50a0196f912eeb97e77ccf6873e186c29 Author: Ondrej Zajicek Date: Thu Mar 15 13:45:55 2012 +0100 Adds warning for mismatch MTU in OSPF packets. Thanks Alexander V. Chernikov for the original patch. commit 2f9955b5d508698b04ff41e5e38097acdac416b9 Author: Ondrej Zajicek Date: Thu Mar 15 13:12:00 2012 +0100 Fixes TTL for multicast OSPF packets. Thanks Alexander V. Chernikov for the suggestion. commit 8796a8a56edbcd420de724a58947c7aedadf04de Author: Ondrej Zajicek Date: Thu Mar 15 12:50:49 2012 +0100 Fixes name for unnamed filters. Thanks to Alexander V. Chernikov for the suggestion. commit 7d837aa014a78bce2b329cc9f56e8dc799d456e8 Author: Ondrej Zajicek Date: Thu Mar 15 12:43:47 2012 +0100 Fixes documentation - default pipe mode. Thanks to Benjamin Cama for the bugreport. commit e2bf812f3dc84981eac045b617261987c25b5e90 Author: Ondrej Zajicek Date: Thu Mar 15 12:38:08 2012 +0100 Fixes RIPng compatibility. Also probably breaks compatibility with older BIRDs, but RIPng not really worked here. Thanks to Goesta Smekal for the original patch. commit f761503760fba2d4124cc3352f5260c31fac526d Author: Ondrej Zajicek Date: Thu Mar 15 12:23:49 2012 +0100 Fixes RIPng socket and neighbor handling. RIPng did not really work because of link-local addresses. Thanks to Roman Hoog Antink for some notes. commit 117e3c4bbfd4b7f1b2cae6ef9e5cb603fe33307a Author: Ondrej Zajicek Date: Thu Mar 15 12:18:26 2012 +0100 Fixes a bug in pair set intervals. Pair intervals in form (a,b)..(c,d) were mishanded. Thanks to Alexander Shikoff for the bugreport. commit c0adf7e9fc0bb920175a639c6f56ed7b4190f3e4 Author: Ondrej Zajicek Date: Thu Mar 15 11:58:08 2012 +0100 Better support for multitable protocols. The nest-protocol interaction is changed to better handle multitable protocols. Multitable protocols now declare that by 'multitable' field, which tells nest that a protocol handles things related to proto-rtable interaction (table locking, announce hook adding, reconfiguration of filters) itself. Filters and stats are moved to announce hooks, a protocol could have different filters and stats to different tables. The patch is based on one from Alexander V. Chernikov, thanks. commit 46c1a583a5c1ea81e8d8f372bd7f614506a63938 Author: Ondrej Zajicek Date: Fri Feb 3 11:50:51 2012 +0100 Fixes a bug causing crash during soft reconfiguration of export to kernel proto. commit 39c028e9e9e3acf840051f4271fadd4939fde2af Author: Ondrej Zajicek Date: Tue Jan 24 11:31:00 2012 +0100 Assign default protocol preference via proto_config_new(). The patch from Alexander V. Chernikov. commit 09686693d35bd71187847c95c0967d4125215b97 Author: Ondrej Zajicek Date: Mon Jan 23 03:15:12 2012 +0100 Implements handling of BSD iface arrival/departure notifications. Thanks to Alexander V. Chernikov for original patch. commit 732a0a257d180a95a02587203555b8552b6128ac Author: Ondrej Zajicek Date: Mon Jan 23 01:26:40 2012 +0100 Fixes problems with creating/removing/renaming ifaces on BSD. commit 5c78e0e386d4c770b646cab4a8adc3c87987f50f Author: Ondrej Zajicek Date: Sun Jan 22 11:03:30 2012 +0100 Some more verbose warnings. commit bc092571171d00de8b429fec8ba70c39240d7e91 Author: Ondrej Zajicek Date: Sat Jan 21 22:56:16 2012 +0100 Fixes another minor bug in iface scan. Iface flags are not updated in some cases. commit b573755df426156c22d2a4c65e3f502284820166 Author: Ondrej Zajicek Date: Sat Jan 21 22:41:31 2012 +0100 Fixes a bug in BSD iface scan. if_update() should be called always, because periodic iface scan code removes all not-updated ifaces. commit 544f2e1b36fb9473132f77d9c0f6e97d1495bb24 Author: Ondrej Zajicek Date: Fri Jan 20 18:16:35 2012 +0100 NEWS and version update. commit 3ce17142791b2e1a7f0b8e512b5b74224600056c Author: Ondrej Zajicek Date: Fri Jan 20 16:20:03 2012 +0100 Fixes a new bug in BGP route ordering. commit 2c5ca47ad4d18cae162c2ddf85af2dedb89f00a5 Author: Ondrej Filip Date: Tue Jan 10 13:44:06 2012 +0100 New version 1.3.5 commit 4b3a8ff8c6e34f0486b82a10706f1ee0b688048e Author: root Date: Mon Jan 9 16:57:45 2012 +0100 Extend buffer for netlink messages. commit 2c67a564b368bee94f387ba988e8a2e9a76a04ce Author: Ondrej Zajicek Date: Mon Jan 9 03:32:34 2012 +0100 NEWS and version update. commit 8cf8f820fe66af1755e360ea1c5179483766131d Author: Ondrej Zajicek Date: Mon Jan 9 03:20:52 2012 +0100 Show interface for link-local gw in static protocol. commit d7f469c15c1fd8315061f85b87a19946c3ea4700 Author: Ondrej Zajicek Date: Mon Jan 9 02:40:57 2012 +0100 Some minor fixes. commit 3f58437405f8e37e9c14d83274a6b82ffd9583f8 Author: Ondrej Zajicek Date: Sun Jan 8 16:28:33 2012 +0100 Fix for IPv6 addresses on non-multiaccess ifaces on BSD. Thanks Matthias Schiffer for the patch. commit 53ffbff39f054e1302fb296327b9bb1b4f88226c Author: Ondrej Zajicek Date: Sun Jan 8 15:28:27 2012 +0100 Implements support for link-local addresses in BGP. Thanks Matthias Schiffer for the original patch. commit eb1451a3a0c45a4cc62dd0f1f3c3157ec38e2f8e Author: Ondrej Zajicek Date: Sun Jan 8 15:27:04 2012 +0100 Better support for link-local addresses in IO code. commit a03ede64936d0aee1a760a19dc6194b2fdc9c692 Author: Ondrej Zajicek Date: Tue Jan 3 00:42:25 2012 +0100 Fixes a tricky bug in route filtering. Route attributes was used after rta was freed during copy-on-write in filter code. This causes some random crashes, esp. with multipath routes. commit 69a8259c5e438f949bd58b1a2f8e1d12a49f9216 Author: Ondrej Zajicek Date: Sun Jan 1 12:02:20 2012 +0100 Allows sticky link-local neighbors. Allows using NEF_STICKY neighbors with link-local addresses. This is used for static route nexthops, they can be specified like fe80::1%eth0 . commit c32c3f88f0c8788118ed3701c11a5aea2aaf9356 Author: Ondrej Zajicek Date: Thu Dec 22 13:44:43 2011 +0100 Fixes parsing larger numbers on 64bit platforms. commit be4cd99a3688cef19f66e1c8b8e0506ffc1e13fc Author: Ondrej Zajicek Date: Thu Dec 22 13:20:29 2011 +0100 Implements deterministic MED handling. Thanks to Alexander V. Chernikov for many suggestions. commit cf7f0645316f5df0984467cf7001f5466254eaf3 Author: Ondrej Zajicek Date: Mon Dec 12 00:24:15 2011 +0100 Fixes problem with sticky neighbors and iface address changes. Thanks Matthias Schiffer for the bugreport and the original patch. commit 2779d50a24dc1b7c6b4cf83a17af817c02462855 Author: Ondrej Zajicek Date: Thu Nov 17 21:12:23 2011 +0100 Fixes RAdv proto w.r.t. templates. Thanks Alexander V. Chernikov for this. commit 60fd666b796dfa8ba12b44338754ca73b76da2e8 Author: Ondrej Zajicek Date: Thu Nov 10 09:22:20 2011 +0100 Fixes missing header. commit a7f23f581f5e3efe92ec97dfca7d01c66f31ab04 Author: Ondrej Zajicek Date: Mon Nov 7 00:31:23 2011 +0100 Implements protocol templates. Based on the patch from Alexander V. Chernikov. Extended to support almost all protocols. Uses 'protocol bgp NAME from TEMPLATE { ... }' syntax. commit 74add5df17c386bd109ebea7b1dac04d1651ae51 Author: Ondrej Zajicek Date: Thu Oct 27 13:21:24 2011 +0200 Fixes seqnum generation. Thanks Mohammad Amin Shoaie for notification. commit 78e33c29bbbc6f4dd308cd8ef589ce543c3d8d6e Author: Ondrej Zajicek Date: Wed Oct 26 20:06:36 2011 +0200 Some minor fixes in parser. commit 14a8f396e1d8fc5787041eace8ab026fe5a0896c Author: Ondrej Zajicek Date: Wed Oct 26 13:55:24 2011 +0200 Fixes sockets for IPv4 RIP. Thanks Roman Hoog Antink for a suggestion. commit 00a124e3fc218aa39c634bbda244789f2ea0cd3d Author: Ondrej Zajicek Date: Mon Oct 10 02:33:11 2011 +0200 NEWS and version update. commit 9b7fdfc84a516ede415cd1941e5ff1d6312e83ff Author: Ondrej Zajicek Date: Mon Oct 10 01:01:58 2011 +0200 Fixes for include. commit 1cb97af419ee5bff45049f4d3a85acadbb5b1cb9 Author: Ondrej Zajicek Date: Sun Oct 9 17:01:01 2011 +0200 Extend the error message. commit 9491f9f593c1195039cecd1bb2a502363b58c66d Author: Ondrej Zajicek Date: Thu Oct 6 23:01:23 2011 +0200 Use reserved address blocks for documentation (RFC 5737). commit 32f95476a8d60508ca9d24fe20b09899b72de9d7 Author: Ondrej Zajicek Date: Thu Oct 6 22:48:49 2011 +0200 Signal problems with route installation to kernel tables. commit 35c875f0d1eb7c72e0b0ab8a90eb32cbcbfdac02 Author: Ondrej Zajicek Date: Sat Oct 1 09:57:49 2011 +0200 Fixes some error messages and the NSSA gw lookup. Thanks to Alexander V. Chernikov for the patch. commit 736fd7303cb05e910507edaa9310178a23dbcf1e Author: Ondrej Zajicek Date: Tue Sep 27 13:49:32 2011 +0200 Fixes a bug with multiple function arguments. commit bf6d91dc4edf3d08f0de41f71503159b1713fc9a Author: Ondrej Zajicek Date: Sat Sep 24 11:06:42 2011 +0200 Use undefined scope for undefined IPv6 addresses. commit 4116db182d8d80d26902a8b33f82664bb5770066 Author: Ondrej Zajicek Date: Sat Sep 24 02:21:52 2011 +0200 Implements static recursive routes. commit 4271f2b77ed3862a2356475dc18b0cf5c1086364 Author: Ondrej Filip Date: Sun Sep 18 13:52:50 2011 +0200 Fixed problem during 'configure' with EC commit 55b58d8c1f51942c487cc268bd9e2ca214913377 Author: Ondrej Filip Date: Mon Sep 12 12:13:53 2011 +0200 Removed some completed jobs. commit 1e69379e70da3486a601cab7a41ccf7a5825101d Author: Ondrej Filip Date: Sun Sep 11 21:43:24 2011 +0200 NEWS file updated. commit 48ec367aabaaa5328f4072d237001e245a7363df Author: Ondrej Filip Date: Sun Sep 11 21:21:47 2011 +0200 Configuration can include other files. commit a98995273bd8788cf525f44479026d5ce6b7dd52 Author: Ondrej Zajicek Date: Sun Sep 4 13:23:26 2011 +0200 NEWS and version update. commit cb2b586f00f5e7ef9a902b028fc5bfe117890457 Author: Ondrej Zajicek Date: Sun Sep 4 10:39:10 2011 +0200 NetBSD compile fix. commit 51947659abbf9af861aa7dec36fd1c845fb617ab Author: Ondrej Zajicek Date: Sun Sep 4 00:56:02 2011 +0200 Minor changes in BGP protocol info. Shows neighbor IP and ASN even if protocol is down. commit 6c4df70373fa640a7f068d4e1b563621b67c0d2b Author: Ondrej Zajicek Date: Sat Sep 3 21:59:40 2011 +0200 Fixes possible buffer overflow when printing BGP attributes. Thanks to Alexander V. Chernikov for the patch. commit 2918e61046388821c3d4411c602dc5b28ad59329 Author: Ondrej Zajicek Date: Sat Sep 3 21:31:26 2011 +0200 Fixes for OSPF NSSA handling. commit b1b19433602f2a2ff58cfe2c1858ff883eee7b20 Author: Ondrej Zajicek Date: Tue Aug 16 23:05:35 2011 +0200 The generalized TTL security mechanism (RFC 5082) support. Thanks to Alexander V. Chernikov for the patch. commit a52d52fa91ffcbcea58326fc2de476ce5644256f Author: Ondrej Zajicek Date: Mon Aug 15 20:54:58 2011 +0200 Fixes some missing tabs. They unintentionally disappeared in 1.3.2. commit a209d5d8e1bea2b37a7cddebe1f275da4ebde4e3 Author: Ondrej Zajicek Date: Mon Aug 15 02:06:56 2011 +0200 A minor fix in BSD. commit 8815d846bf77e4231f36b64d8e4ac9a3ec2d1504 Author: Ondrej Zajicek Date: Sun Aug 14 15:53:47 2011 +0200 BGP Extended communities documentation. commit 42a0c05408c4151442e6a0ec1c6889acbcfe9c17 Author: Ondrej Zajicek Date: Fri Aug 12 21:03:43 2011 +0200 BGP Extended communities. commit bde872bba745e5596bdb066df6ef323b7cabcfdd Author: Ondrej Zajicek Date: Mon Aug 8 10:57:54 2011 +0200 The documentation update. commit ed317862c2958303cf541fe63f4ea26d00918a9a Author: Ondrej Zajicek Date: Mon Aug 8 01:45:31 2011 +0200 OSPF NSSA support, inter-area LSA translation. commit aca0e79faa391a2841134dac78a499dfdca68bd9 Author: root Date: Fri Jul 29 14:52:28 2011 +0200 Handles missing macro. commit 14272097df989808790673521f643053f898aa8c Author: Ondrej Zajicek Date: Thu Jul 28 13:50:02 2011 +0200 Fixes crash on BSD. commit 4160a9dd9416ee5afd215750bdd6c6e7a4e7ed1f Author: Ondrej Zajicek Date: Fri Jul 22 20:00:24 2011 +0200 OSPF NSSA translator election. commit 41b612c31be05409e69e7365db82b3d1aefc4ca3 Author: Ondrej Zajicek Date: Wed Jul 20 23:40:20 2011 +0200 OSPF NSSA support, part one. commit 9008579b97239564e1dcac855cf726fa9ab7dabd Author: Ondrej Zajicek Date: Wed Jul 20 23:46:03 2011 +0200 Fixes broken multi-area OSPF. commit c49490f8c096ef1379f08e7d70cc24f0c28b80ef Author: Ondrej Zajicek Date: Fri Jul 8 08:58:50 2011 +0200 NEWS and version update. commit beeda6af44e72e3a20fcd2837b231a04354790fa Author: Ondrej Zajicek Date: Thu Jul 7 17:43:39 2011 +0200 Removes timers for stub interfaces. Also fixes some minor bugs. commit 7d4e923603fdb43b6f017e5ef78e37d0891c699c Author: Ondrej Zajicek Date: Wed Jul 6 03:10:02 2011 +0200 Do not open sockets for stub interfaces. commit f796945f04d8be4e71cdf48d919c2035c0a2551d Author: Ondrej Zajicek Date: Sun Jul 3 23:24:38 2011 +0200 Fixes LSA checksum computation for larger LSAs. commit fdf16eb65872b3bee02fb9e25c80ea32cf59f8e9 Author: Ondrej Zajicek Date: Sun Jul 3 19:43:30 2011 +0200 Prints full community lists during 'show route all'. commit 6370d6f61b30b2390727eee8136e0e575dff609f Author: Ondrej Zajicek Date: Sun Jun 26 22:25:09 2011 +0200 Fix route types in rta_show(). commit e08d2ff08e4cff4bec38878e084fee7666caaaf2 Author: Ondrej Zajicek Date: Sun Jun 26 17:09:24 2011 +0200 Adds filter clist operation. commit 35f8c731ea29bd534c74b2d0de089d5683ebcd8d Author: Ondrej Zajicek Date: Sat Jun 25 14:51:16 2011 +0200 Fixes output of BGP timers in 'show protocols all'. commit d8b5a786d27eed72106f88f893c521e67f1bef06 Author: Ondrej Zajicek Date: Sat Jun 25 11:35:54 2011 +0200 IPV6_CHECKSUM should not be used on ICMPv6 sockets. commit 23fd464447c4d0f0efe7b61ca3128bbb1bc1c21c Author: Ondrej Zajicek Date: Mon Jun 20 20:35:59 2011 +0200 Fixes a bug related to protocol enabling and reconfigure. When a protocol was enabled interactively (but disabled in the config file), then reconfigure in some cases forgets to disable it. commit ae85e28cf410cefe4f6e1cdf92510fbf9cea7ae0 Author: Ondrej Zajicek Date: Mon Jun 20 07:37:55 2011 +0200 Fixes a bug in OSPF causing DoS by an invalid packet. commit 61c96d724464ee067e589b72ca9d10a2f7692901 Author: Ondrej Zajicek Date: Tue May 31 17:27:46 2011 +0200 Fixes bug that causes crash with strange BGP updates. commit 5e9bdac28ec95172b0c31641507f6a2fcd2e95fb Author: Ondrej Zajicek Date: Sat May 21 22:48:08 2011 +0200 Fixes a bug with setting preference during show route cmd. If show route cmd was used with a filter that changed preference, BIRD crashed. commit 1155c79209b6a670d0e1f85b2603363ba1132ae0 Author: Ondrej Zajicek Date: Thu May 19 01:20:00 2011 +0200 Fixes compatibility with Mikrotik. commit b54ad333b3c8b486b059f6c0e1afc8c35b64ebea Author: Ondrej Zajicek Date: Mon May 16 12:39:55 2011 +0200 Documentation update. commit e8b89a610443f32b901801668cbae634e13f3e68 Author: Ondrej Zajicek Date: Sun May 15 16:29:44 2011 +0200 Update and document the privilege restriction. commit 1bc2695744c729804af32d48ce68854cba4de8f7 Author: Ondrej Zajicek Date: Tue May 10 02:42:17 2011 +0200 Allows run with restricted privileges. Adds option -u and -g to specify user and group. When different user (than root) is specified, linux capabilities CAP_NET_* are kept. commit 46bb7e0d176a4dc0a47bb406988f92fb29cceaf4 Merge: b8cc390 b7c4898 Author: Ondrej Zajicek Date: Fri May 6 22:09:44 2011 +0200 Merge commit 'origin/master' commit b8cc390e7ed724a9ad605453227d1e4686f3a11b Author: Ondrej Zajicek Date: Fri May 6 22:00:54 2011 +0200 Fixes several problems in filter syntax. - Fixes several conflicts in the grammar. - Fixes a bug in (a..b, c) pair patterns. - Makes pair patterns orthogonal. - Allows term expressions in pair patterns without additional ( ). - Allows several comma separated values in switch cases. commit b7c48981069f25c01c552519e10aec4ebab1f031 Author: Ondrej Filip Date: Thu May 5 14:14:20 2011 +0200 Compilation was failing without OSPF or RIP protocol - FIXED. commit 409e8a6e21d3df0919fd2e131ba9a58222baee50 Author: Ondrej Zajicek Date: Mon May 2 02:06:03 2011 +0200 NEWS and version update. commit a506476acd4baa212f542b257eb5abba733ba4c5 Author: Ondrej Zajicek Date: Sun May 1 17:16:05 2011 +0200 There may be more IP address records with the same IP. commit 5964569c23829ec93fcf671a2582be01c8aebecf Merge: acc93ef d600909 Author: Ondrej Zajicek Date: Fri Apr 29 19:03:19 2011 +0200 Merge commit 'origin/master' commit acc93efd4c754cc995ee8edf52ce0bc45511062e Author: Ondrej Zajicek Date: Thu Apr 28 00:31:37 2011 +0200 Use constants from /etc/iproute2/rt_* files. commit 73272f04af40484b72451f541a986da996b0da58 Author: Ondrej Zajicek Date: Fri Apr 22 16:13:27 2011 +0200 Adds BGP option related to MED handling. Adds option 'med metric' allows to compare MEDs between routes received from different neighbors. commit d600909da9ef0a4b25052c1bf2de83d4e7628b0e Author: Ondrej Filip Date: Wed Apr 13 13:19:37 2011 +0200 Fixed bug FICORA #503685. commit 71ca77169d5d3e67459e46841b8bdb95accd8c2a Author: Ondrej Zajicek Date: Wed Apr 13 12:32:27 2011 +0200 Adds support for several Linux kernel route attributes. commit 4aef102be1e29d3450e53a20a6b2f96d50527139 Author: Ondrej Zajicek Date: Thu Apr 7 11:31:56 2011 +0200 Fixes KRT sync in BSD. When buffer is too small (because of change between sysctls()), needed is *not* changed. commit 489c308a75b121f286cc8637ead8b2bf7bf896ec Author: Ondrej Zajicek Date: Tue Apr 5 11:41:18 2011 +0200 Minor fixes. commit bf27abd6d4a20448f5b4c80e9aa9258dc8670f62 Merge: 4ef0950 a5b84ab Author: Ondrej Zajicek Date: Fri Apr 1 13:56:42 2011 +0200 Merge commit 'origin/master' commit 4ef0950603ffbd515d97359015585b4a7512bc75 Author: Ondrej Zajicek Date: Fri Apr 1 13:54:39 2011 +0200 Fixes a problem with BGP protocols and implicit router IDs. commit d93a43a57d37b7cc5506a823a081d21f515c3820 Author: Ondrej Zajicek Date: Fri Apr 1 12:21:18 2011 +0200 Fix leaked debug message. commit a5b84ab540ff3131938b38ebc82ed8e3ce46f261 Author: Ondrej 'Feela' Filip Date: Thu Mar 31 10:30:58 2011 +0200 NEWS updated. commit eb3786e4ea46ce1abc4ca211346369b36dc17dd7 Author: Ondrej Zajicek Date: Wed Mar 30 02:00:56 2011 +0200 NEWS and version update. (and minor changes in documentation) commit 06fb60c4af38d529d20b662748243b3f4a693c60 Author: Ondrej Zajicek Date: Wed Mar 30 01:09:18 2011 +0200 Fixes some problems in BGP error handling. commit 83696b3913c9f52a3d53db073e1ba0641b60ab07 Author: Ondrej Zajicek Date: Tue Mar 29 02:44:39 2011 +0200 Hide 6to4 route warnings. commit ab164971891c64126097eedca11d2f5586f1d8e7 Author: Ondrej Zajicek Date: Tue Mar 29 01:41:46 2011 +0200 Fixes a nasty bug in OSPF. Sending malformed network prefixes in LSAs causes OSPF to crash just after the LSA is propagated to the other routers. commit 52a43ae3b76f86b697537bc3ad8afdb3b421cf2c Author: Ondrej Zajicek Date: Mon Mar 28 22:46:18 2011 +0200 Minor changes in addresses. Mainly changes IA_UNNUMBERED to IA_PEER and adds IA_HOST. Also do not show broadcast addr in show interfaces. Nobody cares for that. commit c454872f4e81e69a8e9950289ab810fcac3fc922 Author: Ondrej Filip Date: Sun Mar 27 23:27:37 2011 +0200 Avoid using stack. commit 4e712ec3b7cb4678607b2a48a2feaa0658333ab2 Author: Ondrej Filip Date: Sat Mar 26 15:21:35 2011 +0100 Added CZ.NIC copyright. commit 86c038ccae2149645058d4288ff8efb498013522 Author: Ondrej Filip Date: Sat Mar 26 14:38:00 2011 +0100 Documentation about previous commit added. commit 4fc36f394ec0988a18decb2d1916e3cebef18d22 Author: Ondrej Filip Date: Sat Mar 26 14:18:56 2011 +0100 This adds (*,x) functionality. commit d0e9b36d30176a9e18cad6151b20746e1588cdc8 Author: Ondrej Zajicek Date: Wed Mar 23 17:15:11 2011 +0100 Added header file. commit 0aa88530ad3c58a6bdab886cabd9b2a4278486e8 Author: Ondrej Zajicek Date: Wed Mar 23 13:40:46 2011 +0100 Convert && and || to shortcut boolean operators. commit 26d92bb8921ac4e022cdc88bde8fc7bc617f8766 Author: Ondrej Zajicek Date: Wed Mar 23 12:49:53 2011 +0100 A hack to distinguish if..else from else: in case. The old BIRD grammar needs two lookaheads to distinguish if..else from else: in case, which caused the parser to fail on some combinations of both expressions. This patch replaces two tokens 'else' ':' by one token 'else:' to fix that. commit 6bcef22580010aec695fb2b559c7b33ee00261b0 Author: Ondrej Zajicek Date: Sat Mar 19 12:13:59 2011 +0100 Documentation for the router advertisement protocol. commit 8e48831a970a784a979446813191628790d477f1 Author: Ondrej Zajicek Date: Thu Mar 17 15:53:36 2011 +0100 Vastly improved OSPF reconfiguration. Now it can handle a change in iface pattern structure. It can add, remove and reconfigure interfaces, vlinks and areas. commit 93e868c730dc0b1825b2a685e0b066c051b1cb07 Author: Ondrej Zajicek Date: Sun Mar 13 11:33:50 2011 +0100 Implements Router Advertisement protocol. commit 9d67ffb0b4cdfbbf88779ce2b44ba810d1ba85d3 Author: Ondrej Zajicek Date: Sat Jan 8 19:34:12 2011 +0100 Fixes scope for sticky neighbors. commit d32a071da9655c2d05038e721bcf020498263c1e Author: Ondrej Zajicek Date: Sat Jan 8 11:31:12 2011 +0100 Some cleanups in krt_read_ifinfo(). commit dad7ee70c1711b2cbdfd86c615736fe12c0d126a Author: Ondrej Zajicek Date: Sat Jan 8 11:22:38 2011 +0100 Fixes interface names on BSD systems. commit e7b4948cbd3e4cacf4fe0f774b44d1f74029ea6d Author: Ondrej Zajicek Date: Tue Dec 28 01:43:07 2010 +0100 A simplification of the next-hop calculation. Thanks to Joakim Tjernlund for the idea. commit 919f5411c48f509a49400a1293e670f5d5d2bcf1 Author: Ondrej Zajicek Date: Fri Dec 24 18:08:07 2010 +0100 Implements Point-to-MultiPoint interface type for OSPF. commit 39847cda73d8e8536300b74d90d01b6e2f233ef7 Author: Ondrej Zajicek Date: Thu Dec 23 12:24:40 2010 +0100 Add some comments. commit f0160f0e06be883528e5e29edfd509efa14d0c78 Author: Ondrej Zajicek Date: Thu Dec 23 10:25:22 2010 +0100 Fixes a minor memory wasting. commit 8cab377d92b62c028ee7aab49049b7cb6cd53ab9 Author: Ondrej Zajicek Date: Wed Dec 22 23:33:40 2010 +0100 Remove unnecessary check. commit 154e2aeded13f46666a69b7a7241149c43ebc01f Author: Ondrej Zajicek Date: Mon Dec 13 11:17:11 2010 +0100 Fixes string handling in birdc. commit e91f6960bae16314e9429719c2c2321edb484a44 Author: Ondrej Zajicek Date: Tue Dec 7 23:36:48 2010 +0100 Documentation update (multipath). commit 32b4972834352d641f7d2c08a27c18b0babd3790 Author: Ondrej Zajicek Date: Tue Dec 7 23:36:11 2010 +0100 Multipath support for linux kernel protocol. commit 57c574d82a44d10143aba7aaea6d1384d850c079 Author: Ondrej Zajicek Date: Tue Dec 7 23:35:39 2010 +0100 Multipath support for OSPF commit 9852f81064a38d35ff1bd5cc9fab7fc33926c83c Author: Ondrej Zajicek Date: Tue Dec 7 23:34:36 2010 +0100 Multipath support for static protocol. commit 7e95c05d889f22be44aef5051eb07d35a4a8f579 Author: Ondrej Zajicek Date: Tue Dec 7 23:33:55 2010 +0100 Core multipath support. commit 01427d3f2b69a4ae1b616b380d4911a132ec450f Author: Ondrej Zajicek Date: Fri Nov 19 18:03:27 2010 +0100 Remove some runaway debug messages and typos. commit 391931d45686a807d322878d4b3d5c9634e2dbca Author: Ondrej Zajicek Date: Fri Nov 19 13:46:21 2010 +0100 Minor finalizations of link state checks. commit 79f561a173c9ceb824d64aa32d82e43ba62acebc Author: Ondrej Zajicek Date: Sat Nov 13 14:19:55 2010 +0100 Fixes a typo (in OSPF_MAX_PKT_SIZE value). And updates a comment. commit d9e7e1b13d69fa50d1979576c418c579f05463c6 Author: Ondrej Zajicek Date: Sat Nov 13 14:19:23 2010 +0100 Adds support for iface link detection to OSPF. commit fe181e7c63843ad65401cc1e400ae1ac3187122f Author: Ondrej Zajicek Date: Thu Nov 11 12:24:27 2010 +0100 Adds support for iface link check to static protocol. commit f25cb0ef9f6341648513e793a3162b32fc250d2b Author: Ondrej Zajicek Date: Thu Nov 11 10:03:02 2010 +0100 Implements link state detection. Also changes some symbol names (IFF_ADMIN_DOWN -> IFF_SHUTDOWN, IFF_LINK_UP -> IFF_ADMIN_UP). commit 5cdf264f937687aff194574f5fe2badb087337b8 Author: Ondrej Zajicek Date: Wed Nov 10 16:43:11 2010 +0100 Fixes a bug related to implicit backbone on ABR. commit c4443085a198c26a478463429477e7e8a599fa07 Author: Ondrej Zajicek Date: Thu Nov 4 17:25:48 2010 +0100 OSPF tx buffers should have the same size as rx buffers. We should be able to send everything we received. commit d5356072ac18d5b0eb12f14afca6bfbea702dda2 Author: Ondrej Zajicek Date: Thu Nov 4 17:22:43 2010 +0100 Fixes a bug in LSA update of large LSAs. commit d3209d939d4d0d8801432f212edd4302a7d03633 Author: Ondrej Zajicek Date: Wed Nov 3 10:04:46 2010 +0100 Fixes a bug in OSPF. commit fcf5a4f4b3e1a984f65d873e7a5a8c830b1ad9bf Author: Ondrej Zajicek Date: Wed Nov 3 10:02:24 2010 +0100 Change default for BGP IPv6 socket to V6ONLY. Also add a new option 'dual' for the old behavior. commit 5adc02a6f87bda06094ce36eb699884c03760bf5 Author: Ondrej Zajicek Date: Fri Oct 22 11:25:47 2010 +0200 Documentation update. commit ed76033c847939877e4fbfadf06898521aafb740 Author: Ondrej Zajicek Date: Fri Oct 22 08:35:19 2010 +0200 Fixes some typos. commit 938b191b9282b138cbdd30dfc11b78c0467d6380 Author: Ondrej Zajicek Date: Sat Oct 9 01:00:53 2010 +0200 Fixes error handling in ASN expressions. commit 112d71a73f30d26891eda4374bf0f2ab31c5c048 Author: Ondrej Zajicek Date: Fri Oct 8 14:25:53 2010 +0200 Fixes syntactic priority of '.' . Dot in expressions like net.len definitely should have the highhest priority. commit b2b7bbfc690a7ad6a61a8cdf4abe87345057fb2e Author: Ondrej Zajicek Date: Mon Oct 4 19:55:11 2010 +0200 Fixes scope of filter symbols. commit 0d1b3c4c0e3261d1d4261e9aeb9975a01d0ff2f9 Author: Ondrej Zajicek Date: Mon Sep 20 13:01:01 2010 +0200 Changes print-like filter commands to use a log instead of a stderr. And extends the log subsystem to better handle that. commit 2dec1e3471385ea191862c8fe85d76a8e47410de Author: Ondrej Zajicek Date: Wed Sep 15 02:01:23 2010 +0200 Fixes a bug in pair sets. commit a58022a64ee8aa2fc46816020723dfbf4bfd08d9 Author: Ondrej Zajicek Date: Sat Sep 11 20:14:53 2010 +0200 Fixes a bug in community set delete. commit 4ca93a50675489a6a5ef9369c24806cc3cbff45e Author: Ondrej Zajicek Date: Wed Sep 8 12:08:38 2010 +0200 Fixes a one byte buffer overflow. commit 948c865fac85f91dd7463195b190d8f133e0f741 Author: Ondrej Zajicek Date: Fri Sep 3 17:15:02 2010 +0200 Fixes a crash in RIP during reconfigure. commit 3cb6c83f1a2eb563e459ce34d0f4850cc9dd4776 Author: Ondrej Zajicek Date: Fri Sep 3 16:32:00 2010 +0200 Fixes a memory leak in RIP. commit faf58cec4d0c0d3c1fddee6faf2f57a1362477bb Author: Ondrej Zajicek Date: Sun Aug 22 14:43:53 2010 +0200 Fixes a bug in NBMA on an iface with multiple IP addresses. commit ac4a1eedfc515e041877d48fd5f64ee4e3b30532 Author: Ondrej Zajicek Date: Fri Aug 13 14:30:36 2010 +0200 Change default for handling missing link-local addresses on route servers. commit dcc71a7fb7e507acc2e0b417e6c9d1940448908e Author: Ondrej Zajicek Date: Thu Aug 12 10:22:40 2010 +0200 Supports unique local unicast addresses. commit 0ef69b1c4a255360e1fa76dffd7a0cb97ea1e9dc Author: Ondrej Filip Date: Mon Aug 9 14:09:53 2010 +0200 Typo in doc. commit 265d06dcbc138c7373ec7b341fcd628eb87e4c4b Author: Ondrej Zajicek Date: Wed Aug 4 15:27:11 2010 +0200 Fixes IPv6 build. commit 373d3dbe8dfbce21af72618c0f912dd0e23a6f3c Author: Ondrej Zajicek Date: Wed Aug 4 13:53:52 2010 +0200 Fixes build on Sparc. commit 946dc15c928d9a48cdcc857bc80f4fabf9a4e2bf Author: Ondrej Filip Date: Tue Aug 3 17:35:34 2010 +0200 Documentation update and improvement of tests related to expressions in sets. commit e0e8c04a83bbe24cdcf3836ca171ce60db299b1f Author: Ondrej Filip Date: Tue Aug 3 15:23:30 2010 +0200 Small typo in documentation. commit edaec901e12c2f0756ab44f7493e999145d7dff9 Author: Ondrej Filip Date: Tue Aug 3 15:22:29 2010 +0200 Even set of number can be made by expressions. commit 4733b49ed6ec11669061e15680417961d13c7a61 Author: Ondrej Filip Date: Tue Aug 3 15:14:26 2010 +0200 Syntax of sets improved. commit 2c9033afd5ce5e99255d248fb065e94534405da7 Author: Ondrej Zajicek Date: Tue Aug 3 08:26:47 2010 +0200 Do not allow interdependent recursive routes. commit f428631cd6f48c5155bd1b7724e9bb8a545fda12 Author: Ondrej Zajicek Date: Tue Aug 3 01:12:43 2010 +0200 Ignore warning when BGP peer is unreachable. commit b74f45f8a05444dca16f0995c7d201ea592ce299 Author: Ondrej Zajicek Date: Tue Aug 3 00:59:13 2010 +0200 Documentation update. commit ba5e5940aa1f11128c76a3964823bda22e47ab04 Author: Ondrej Zajicek Date: Mon Aug 2 13:11:53 2010 +0200 Adds igp_metric attribute. commit d395fe48553062413a85fd04cda0752f933e70c6 Author: Ondrej Zajicek Date: Sat Jul 31 11:37:30 2010 +0200 Fixes bug in OSPF ext-LSA origination. commit d1e146f2f8da303af7bbe0cec363cc15c58c37fd Author: Ondrej Zajicek Date: Sat Jul 31 01:04:32 2010 +0200 Implements IGP metric comparison for BGP routes. commit ac3ac49a71d4b290cfb28aecafc8ac4a69df7a64 Author: Ondrej Zajicek Date: Wed Jul 28 13:13:34 2010 +0200 Adds route resolvability test. commit 1b180121a90ef98f3adce1a355d48d64c6fc3c4f Author: Ondrej Zajicek Date: Wed Jul 28 11:45:35 2010 +0200 Use link-local addresses in recursive next hops for IPv6 BGP. commit c477f48916d74c2db6156145851f9536ae0a0a6c Author: Ondrej Zajicek Date: Tue Jul 27 18:20:12 2010 +0200 Hostcache should use trie to filter relevant route changes. commit 7f0d245a5e6d2d789e1fce4b5388ea69aba3b428 Author: Ondrej Zajicek Date: Tue Jul 27 17:17:11 2010 +0200 Minor changes in prefix trie. commit f2b76f2c45bb8e7c1f13f6d4924e10f0c6b12778 Author: Ondrej Zajicek Date: Mon Jul 26 16:39:27 2010 +0200 For hostentry cache, replace FIB with a hash table using (IP, dep table) as a key. commit 852b7062e33b9886eb869fac8b9354497c49b126 Author: Ondrej Zajicek Date: Thu Jul 22 15:09:35 2010 +0200 Fixes a buffer overflow in TX code of IPv6 BGP. commit 7873e9828ff7ba7203fd30ffa7d50859d583d4ca Author: Ondrej Zajicek Date: Wed Jul 14 19:03:23 2010 +0200 Fixes the documentation. commit 087cecd0e2db0ec1e630fde67ec560578264bf32 Author: Ondrej Zajicek Date: Tue Jul 13 12:48:23 2010 +0200 Adds some options and documentation related to recursive next hops. commit f038f0a6385d7b81f57254e3c9bf84021a6b040d Author: Ondrej Zajicek Date: Mon Jul 12 21:39:10 2010 +0200 Fixes missing check in reconfiguration. commit 9be9a264137cdd881f339c37d1a1918527924254 Author: Ondrej Zajicek Date: Mon Jul 12 17:39:39 2010 +0200 Implements proper multihop BGP. Also does some incompatible changes to config file syntax, like removing 'via IP' from multihop option. commit cfe34a316e35a209fcd814ccf3523c262e8d4b0a Author: Ondrej Zajicek Date: Mon Jul 5 17:50:19 2010 +0200 Implements hostcache and recursive next hops. Hostcache is a structure for monitoring changes in a routing table that is used for routes with dynamic/recursive next hops. This is needed for proper iBGP next hop handling. commit 824de84d48eff6cbd0c550309fbd0bbf7740cb14 Author: Ondrej Zajicek Date: Wed Jun 2 22:25:39 2010 +0200 Do not start with huge OSPF FIBs. Most OSPF instances don't need 64k FIB fields. This change halves resident memory usage on small OSPF networks. commit acb60628f53ba1fc29d1a554683acdb03f961c6f Author: Ondrej Zajicek Date: Wed Jun 2 22:20:40 2010 +0200 Implements command that shows memory usage. commit 4461b8979143bd13024663622c419646a1db0c85 Author: Ondrej Filip Date: Wed Jun 2 12:11:20 2010 +0200 Minor bug that appears only in debug mode. commit 9ef239946b7298a679a9b155606257738bb52347 Author: Ondrej Zajicek Date: Mon May 31 20:41:40 2010 +0200 NEWS and version update. commit a34b09349e809a6d8f696fb0897c0bfdc3b66159 Author: Ondrej Zajicek Date: Mon May 31 11:35:29 2010 +0200 Disable BGP protocol when cannot open listening socket. commit 9b061f7ea5933f70c200bb3b3a7be5a2e472e805 Author: Ondrej Zajicek Date: Fri May 28 11:16:39 2010 +0200 Minor fixes. commit 691057f03310e712428e19214ae48462d0f258e1 Author: Ondrej Zajicek Date: Wed May 26 16:09:22 2010 +0200 Support loopback/dummy addresses. commit e0a62ad0f8be198bf8afb1f6900f138dfe12d4fb Author: Ondrej Zajicek Date: Wed May 26 12:32:30 2010 +0200 Fixes a bug in duplicit configured stubnets. If there was the same configured stubnet on local and remote router, the remote route always won regardless of its cost. commit 52572e94ec75728c114f47db37aaf220c1af29d6 Author: Ondrej Zajicek Date: Sun May 23 12:34:09 2010 +0200 Check for OSPF seqnum wraparound and handle it. commit ba5c0057ed01fb006b7a6fb1bd8c21f0c9ae12be Author: Ondrej Zajicek Date: Sat May 22 22:47:24 2010 +0200 Extends pair set syntax, matching and deleting against clist. Expressions like (123,*) can be used in pair set literals, clists can be matched against pair sets (community ~ pairset) and pair sets can be used to specify items to delete from clists (community.delete(pairset)). commit 6d04ef8987f6f5483d353d393ef66dae4b887f30 Author: Ondrej Zajicek Date: Fri May 21 16:40:09 2010 +0200 Comment update. commit 87a9abeac976180ade1c7619545e610d743994b5 Author: Ondrej Zajicek Date: Fri May 21 15:17:49 2010 +0200 Fixes interface scan on Linux 2.4.x in IPv6 mode. commit 002b6423188abdd62c5a494069fd299b96863a79 Author: Ondrej Zajicek Date: Fri May 21 11:51:39 2010 +0200 Fixes bug on Linux 2.4.x - kernel sync does not work until restart of kernel protocol. Which was, actually, a bug in timers - on older kernel, monotonic timer is missing and the other implementation started with now == 0, which collides with usage 0 as a special value in timer->expires field. commit c1cefd7bea79201c58c7c0fa8e192be3cc5ed771 Author: Ondrej Zajicek Date: Sun May 16 11:03:59 2010 +0200 Do not remove old static route if it is in new config with different gw. commit 7ff5803becec14da870d3997d78e3963fa5ec6e6 Author: Ondrej Zajicek Date: Sun May 16 10:27:20 2010 +0200 Do not originate summary or external LSA if it already here and not changed. commit 475977242ac5bb9ff8826c2dd8c9a1a180320de2 Author: Ondrej Zajicek Date: Fri May 14 16:54:39 2010 +0200 Handle EPIPE as a common connection close event. commit 0267f49fb2e44525aa2777bcb9900c4bb2db41e1 Author: Ondrej Zajicek Date: Fri May 14 15:24:53 2010 +0200 Do not add community if it is already in clist. commit ee7408c2be2cd514ba6eefc5589e57a6056198dc Author: Ondrej Zajicek Date: Fri May 7 15:54:27 2010 +0200 Fixes a bug in LSA flooding. LSAs are sometimes prematurely removed from LS retransmission lists. commit 54818e9beb6bfcbcb5dcc2b175dca9d174012e6c Author: Ondrej Zajicek Date: Mon May 3 00:10:48 2010 +0200 A minor bugfix in OSPF ext-LSA processing. commit 506fa1a73eab0c6426f68cd7784c6712898b88f3 Author: Ondrej Zajicek Date: Sun May 2 22:41:40 2010 +0200 Merge several fixes suggested by Joakim Tjernlund. commit 6384c7d7aa85d1e593eca30cda48f6677b023cb0 Author: Ondrej Zajicek Date: Sun May 2 19:58:34 2010 +0200 OSPF: most of summary LSA orig./flush logic rewritten. Fixes many bugs in the old code and makes it much cleaner. commit ba321706578de8402d50214a9e79a65835cdd821 Author: Ondrej Zajicek Date: Wed Apr 28 00:39:57 2010 +0200 Better support for /31 networks. commit 48b0814ace2d05f9fef093d9f309bfa186a6f365 Author: Ondrej Zajicek Date: Tue Apr 27 18:29:01 2010 +0200 A fix in OSPFv3 next_hop calculation. commit 96599c957baa9c82bde91d610ce4f519aead05e9 Merge: ba13017 9d1ee13 Author: Ondrej Filip Date: Tue Apr 27 11:28:44 2010 +0200 Merge branch 'master' of ssh://git.nic.cz/projects/bird/GIT/bird commit ba130172549ef2313f713e048083432f74e7d03d Author: Ondrej Filip Date: Tue Apr 27 11:27:54 2010 +0200 Avoid warning if not compiled with pipes. commit 9d1ee1388771a3caa6c23163571a80457adfab2c Author: Ondrej Zajicek Date: Mon Apr 26 19:08:57 2010 +0200 Neighbors on OSPF broadcast networks should be identified by IP address, not RID. Allows simple support for multiple interfaces to the same network. commit 4e5fb4b60c59db3248fd12db2bc6f0424d798122 Author: Ondrej Zajicek Date: Sun Apr 25 20:12:34 2010 +0200 Skip LSA host<->network endianity conversions on big endians. commit c1b51598d49ff737b926bd8ad2e308a5a15ce3a2 Author: Ondrej Zajicek Date: Sun Apr 25 19:13:49 2010 +0200 Implements changes in checksum alg suggested by Joakim Tjernlund. commit 0ea8fb4abe5acad0b8f470bbdc5cc929b6a58ced Author: Ondrej Zajicek Date: Sat Apr 24 15:18:21 2010 +0200 Fixes and enhancements in 'show ospf state' command. Now it shows a distance, option to change showing reachable/all network nodes and better handling of AS-external LSAs in multiple areas. The command 'show ospf topology' was changed to not show stubnets in both OSPFv2 and OSPFv3 (previously it displayed stubnets in OSPFv2). commit 1d44ddf20f3ecef864d4bd20355251839fcd10ee Merge: 3b89a23 6bc414d Author: Ondrej Zajicek Date: Wed Apr 21 21:52:10 2010 +0200 Merge commit 'origin/master' into new commit 3b89a2327ba385abf2a8321a5a900faba3765612 Author: Ondrej Zajicek Date: Wed Apr 21 21:50:38 2010 +0200 Fixes several problems in OSPF vlink implementation. commit 6bc414d619e1d8710990e89e5085d18e2d5c544c Author: Ondrej Filip Date: Mon Apr 19 16:10:20 2010 +0200 It seems that prefixes /31 and /127 are valid and used in this strange world. commit 607d991424006c083be63878b6a606e76679e1ce Author: Ondrej Zajicek Date: Wed Apr 14 15:35:08 2010 +0200 Fixes build on newer Linux systems. commit dcc6049444f5e12e0d0fcc4cfbb244c08b4c20b0 Author: Ondrej Zajicek Date: Wed Apr 14 14:46:21 2010 +0200 Fixes IPv6 build on older systems. commit 6e8067609673afef9eb9e786f4e43a73a3b544f0 Author: Ondrej Zajicek Date: Sun Apr 11 12:22:47 2010 +0200 Fixes next hop calculation on NBMA and parallel PTP links. commit 7969ea3b41db05294c78a5e0ec0bd3c29ae8c549 Author: Ondrej Zajicek Date: Sun Apr 11 10:19:54 2010 +0200 Fixes a bug in OSPF on NBMA interfaces. A very tricky bug. OSPF on NBMA interfaces probably never really worked. When a packet was sent to multiple destinations, the checksum was calculated multiple times from a packet with already filled checksum field (from previous calculation). Therefore, many packets were sent with an invalid checksum. commit d759c1a6f834cd8a8a7c264d159b9ceb246aec2a Author: Ondrej Zajicek Date: Fri Apr 9 17:42:39 2010 +0200 NEWS and version update. commit de14a7c7aa9225cbc9f837fac9e332a99a99ed69 Author: Ondrej Zajicek Date: Fri Apr 9 00:56:47 2010 +0200 Ignore routes with next-hop 127.0.0.1 on BSD. commit a9f380fe83187a95ead715e516696024e73f3fb7 Author: Ondrej Zajicek Date: Thu Apr 8 18:41:17 2010 +0200 On BSD, consider unmarked non-device routes as alien. commit 6b5a8649a48d7616efbc798095eee2c10563b4e6 Author: Ondrej Zajicek Date: Thu Apr 8 17:56:56 2010 +0200 Do not export empty community list attribute in BGP. commit 0277cc0baf1439a779f4c3ed8b2a77f29f5cfed7 Author: Ondrej Zajicek Date: Thu Apr 8 17:47:14 2010 +0200 Revert "Fixes behavior of defined() on bgp_community attribute." This reverts commit 74e9331fe0892c4c96b4c4d7db3f14bb7e9d928e. commit 646b24d93249199ee59fdecd685532212b506bda Author: Ondrej Zajicek Date: Wed Apr 7 23:15:56 2010 +0200 Minor changes. commit 44d4ab7a960cf143c43d1645f2985cc9d74e3077 Author: Ondrej Zajicek Date: Wed Apr 7 11:00:36 2010 +0200 Configurable syslog name. Also fixes a bug in syslog initialization. commit b8113a5e92cb19a0910041d5708f4eafeb713b54 Author: Ondrej Zajicek Date: Wed Apr 7 00:19:23 2010 +0200 Implements BGP 'show protocols' info details. commit c429d4a4ba2cc8778634461e8adea33e0f0ae022 Author: Ondrej Zajicek Date: Sun Apr 4 15:41:31 2010 +0200 Restrict export of device routes to the kernel protocol. In usual configuration, such export is already restricted with the aid of the direct protocol but there are some races that can circumvent it. This makes it harder to break kernel device routes. Also adds an option to disable this restriction. commit d2d2b5d2ae43f608d03304d280367b658650138b Author: Ondrej Zajicek Date: Sat Apr 3 12:03:52 2010 +0200 Ignore some kernel messages. commit 44aa101cd0716daf1b9f0d9ca5ec1814386c1e0d Author: Ondrej Zajicek Date: Sat Apr 3 11:42:18 2010 +0200 Fixes related to routes with link-local gw on BSD. commit 46a82e9c2c04c432775c7db5ab5d5cc0301b2a94 Author: Ondrej Zajicek Date: Sat Apr 3 10:45:21 2010 +0200 Fixes missing header. commit e60d55becdd9b2eeb36ac16daedae2ab54d05b0c Author: Ondrej Zajicek Date: Fri Apr 2 19:03:18 2010 +0200 Fixes OSPFv3 route generation for local stub networks. commit e7b09e4ab99fc850480480bbb577ffa36a6c5cd7 Author: Ondrej Zajicek Date: Fri Apr 2 16:11:46 2010 +0200 Use SO_BINDTODEVICE also in Linux/IPv6. commit 97ab4c34986139b2419c563a3de7ddfe41727d07 Author: Ondrej Zajicek Date: Fri Apr 2 11:36:38 2010 +0200 Fixes link-local addresses on BSD. commit bed417288e989c48a1362bb1177f436a2e2f9f4f Author: Ondrej Zajicek Date: Fri Apr 2 11:31:20 2010 +0200 Minor fixes to previous patches. commit 126683feeda03ffb5a4ce23611e59a4598382d49 Author: Ondrej Zajicek Date: Mon Mar 29 19:29:03 2010 +0200 Filter language updates; new route attributes and datatype. - Adds bgp_originator_id and bgp_cluster_list route attributes. - Adds dotted quad filter datatype (for router IDs, used by bgp_originator_id and ospf_router_id route attributes). - Fixes pair ~ pair set matching. - Documentation updates. commit eb0f129fcedcecbee85403095abad8f59b82683c Merge: b1c030b 48cff37 Author: Ondrej Zajicek Date: Fri Mar 26 18:53:31 2010 +0100 Merge branch 'socket2' into new commit 48cff379a718998cd984d60fb6f8b48cb961c0f1 Author: Ondrej Zajicek Date: Fri Mar 26 16:21:29 2010 +0100 Added some comments. commit af157fa3dbe2bba0674eb7634efd3ade6c89d604 Author: Ondrej Zajicek Date: Fri Mar 26 14:48:01 2010 +0100 Disable multiple OSPF pseudointerfaces on BSD. commit b1c030b0ba59eed6da5271ed592d6b93ed088518 Author: Ondrej Zajicek Date: Wed Mar 24 16:39:18 2010 +0100 Adds autoconf test for -Wno-pointer-sign compliler option. commit 4d9a0d1f02134235bf686caf49af44232590c456 Author: Ondrej Zajicek Date: Wed Mar 24 10:39:14 2010 +0100 Update lastmod in 'ignored' case only for RIP routes. commit 885b3d6127ae2c5c4f17d9dba95ffe67bdf7a688 Author: Ondrej Zajicek Date: Fri Mar 19 19:23:34 2010 +0100 Fixes LLS compatibility. commit 5d53b80770b4927b5a8205ee0e57f80454b0abf5 Author: Ondrej Zajicek Date: Fri Mar 19 18:46:56 2010 +0100 Allow iface pattern matching code to match peer address on ptp links. commit aa4612480424ad2fede0cd4ae4c7a893f61c6c0f Author: Ondrej Zajicek Date: Fri Mar 19 09:41:18 2010 +0100 Clear local variables in filters and functions. Fixes crash when used uninitialized variables. This problem was surprisingly tricky to fix. commit 74e9331fe0892c4c96b4c4d7db3f14bb7e9d928e Author: Ondrej Zajicek Date: Thu Mar 18 00:10:35 2010 +0100 Fixes behavior of defined() on bgp_community attribute. commit 1528d30aebc462a13861d7cdb827e74556f3aa91 Author: Ondrej Zajicek Date: Wed Mar 17 23:17:55 2010 +0100 Fixes unterminated string for atomic_aggr attribute formatting. commit 97e46d28fff1aa27d7d15e113cc3a52ae20934c7 Author: Ondrej Zajicek Date: Wed Mar 17 12:19:22 2010 +0100 Adds check for no protocol and some minor CLI fixes. - Adds check to deny config file with no specified protocol to prevent loading of empty config file. - Moves CLI init before config parse to receive immediate error message when cannot open control socket. - Fixes socket name path check and other error handling in CLI init. commit 4e3bfd9006ba3033a814a392f9bf4bbca060c8a9 Merge: e8da1bd cda2dfb Author: Ondrej Zajicek Date: Mon Mar 15 00:39:45 2010 +0100 Merge commit 'origin/master' into new commit e8da1bd0b5f83991d37bc7e8364101c3faa78b3b Author: Ondrej Zajicek Date: Mon Mar 15 00:34:44 2010 +0100 Fixes missing cases in filters. commit 0aad2b9292f8e5ff32d048378faf80d2d0bfbb80 Author: Ondrej Zajicek Date: Sun Mar 14 16:36:59 2010 +0100 Temporary OSPF commit - sockets. commit 54305181f6ee3af57dd3d15d53ea2e851b36ed23 Merge: e7b76b9 afa9f66 Author: Ondrej Zajicek Date: Thu Mar 11 18:55:59 2010 +0100 Merge branch 'new' into socket2 commit e7b76b976084006e430543f4b872f624326dbfe6 Author: Ondrej Zajicek Date: Thu Mar 11 18:07:24 2010 +0100 Temoporary OSPF commit - socket changes. commit afa9f66c27e2f96b92059131def53cc7b2497705 Author: Ondrej Zajicek Date: Wed Mar 10 01:04:09 2010 +0100 Adds support for PTP links on BSD. commit cda2dfb7a9e03543eaf407ee26e5046fc589ef29 Author: Ondrej Filip Date: Mon Mar 8 00:05:37 2010 +0100 Arnold from DE-CIX suggested to have this formulation more precise. commit 53434e44a95fe9334f4bdf5e0da987929addffb1 Author: Ondrej Zajicek Date: Sat Feb 27 16:00:07 2010 +0100 Better flushing of interfaces. When device protocol goes down, interfaces should be flushed asynchronously (in the same way like routes from protocols are flushed), when protocol goes to DOWN/HUNGRY. This fixes the problem with static routes staying in kernel routing table after BIRD shutdown. commit 3075824dbd4bb654e98614dfd9992ceec0428beb Author: Ondrej Zajicek Date: Fri Feb 26 14:09:24 2010 +0100 Comparing cluster list length should be later in bgp_rte_better(). commit 212ff335828fbe28311fcbae6154cf2495a44d0e Author: Ondrej Zajicek Date: Fri Feb 26 13:55:22 2010 +0100 Fixes signedness in format route attributes. commit ff2857b03db854f99902766ad842aaa5fa29ec3c Author: Ondrej Zajicek Date: Fri Feb 26 10:55:58 2010 +0100 Many changes in (mainly) kernel syncers. - BSD kernel syncer is now self-conscious and can learn alien routes - important bugfix in BSD kernel syncer (crash after protocol restart) - many minor changes and bugfixes in kernel syncers and neighbor cache - direct protocol does not generate host and link local routes - min_scope check is removed, all routes have SCOPE_UNIVERSE by default - also fixes some remaining compiler warnings commit e81b440f6878605edd19ed62441648ac71260881 Author: Ondrej Zajicek Date: Sun Feb 21 14:34:53 2010 +0100 Fix configure to enable warnings and fix most of them. commit 9e43ccf07b96597ef098955a07383d826938cd2d Merge: e285bd2 89534cd Author: Ondrej Zajicek Date: Sun Feb 21 10:15:49 2010 +0100 Merge commit 'origin/master' into new commit e285bd236e9cd42e3f92db3a35b5ec2d307c7a48 Author: Ondrej Zajicek Date: Sun Feb 21 10:14:41 2010 +0100 Fixes installation (missing /usr/local/var/run). commit e0a45fb42163a6bfdeeee44bd0a6a7461552e10f Author: Ondrej Zajicek Date: Sun Feb 21 09:57:26 2010 +0100 Restricted read-only CLI. Also adds support for executing commands using birdc . commit 89534cdae500cc82d9081088be90013e4121542d Author: Ondrej Filip Date: Sat Feb 20 21:14:02 2010 +0100 'rr client id' is not expression but ID (like router id). commit a68066538fde600941ea43c40d777e14cfac0ee7 Author: Ondrej Filip Date: Sat Feb 20 21:09:40 2010 +0100 Minor typos in configuration example. commit e304fd4bcf5813b581a39078a25a5cf6916b9f29 Author: Ondrej Zajicek Date: Sat Feb 20 00:03:31 2010 +0100 Implements pattern match for 'show protocols' command. And generally consolidates protocol commands. commit dfd48621d1a54f2beb461fe3847fc4b2a535675e Author: Ondrej Zajicek Date: Wed Feb 17 21:53:07 2010 +0100 Replaces the algorithm for building balanced trees. Changes the time complexity of the algorithm from O(n^2) to O(n*log(n)). This speeds up loading of huge DEC-IX config from 128 s to 15 s. It also makes the code significantly simpler. commit 14f6aca48037a0653e6bcfa27a4da48e8f962198 Author: Ondrej Zajicek Date: Wed Feb 17 11:29:48 2010 +0100 Changes right recursion to left in the grammar of the case expression. commit dca75fd7c207f0bfc627cb6b74a484da3b27e05f Author: Ondrej Zajicek Date: Sat Feb 13 12:26:26 2010 +0100 Removes phantom protocol from the pipe design. It seems that by adding one pipe-specific exception to route announcement code and by adding one argument to rt_notify() callback i could completely eliminate the need for the phantom protocol instance and therefore make the code more straightforward. It will also fix some minor bugs (like ignoring debug flag changes from the command line). commit 9db74169be76f658df2207d1ec99eac48fa36f5f Author: Ondrej Zajicek Date: Sat Feb 13 10:44:46 2010 +0100 Fixes protocol statistics for pipes. commit c83876265eeae3591bfe90375503728e633cb807 Author: Ondrej Zajicek Date: Thu Feb 11 22:27:06 2010 +0100 Fixes a tricky bug in the pipe protocol. When uncofiguring the pipe and the peer table, the peer table was unlocked when pipe protocol state changed to down/flushing and not to down/hungry. This leads to the removal of the peer table before the routes from the pipe were flushed. The fix leads to adding some pipe-specific hacks to the nest, but this seems inevitable. commit a2ea1bac601ca79946e2a215dac9427c526cedab Author: Ondrej Zajicek Date: Thu Feb 11 21:19:20 2010 +0100 Moves errno.h include. commit 2af25a971a28ccac05d2385669e8b103c0328f7d Author: Ondrej Zajicek Date: Thu Feb 11 11:12:58 2010 +0100 Fixes a crash caused by missing error hook on BGP listening socket. Error happened when too many BGP connections arrived in one moment (ECONNABORTED). commit 353729f513aa6a1f9e7f66083a0f9d2117fe2be5 Author: Ondrej Zajicek Date: Thu Feb 11 10:23:35 2010 +0100 Temporary OSPF commit - socket changes. commit fa5a99c766dde2a4ac3d44596ff5396a0efd1cc8 Author: Ondrej Filip Date: Wed Feb 10 23:09:23 2010 +0100 NEWS version update. commit 75f8861898d53f43cb23dbba9c776bce223c18c8 Author: Ondrej Zajicek Date: Wed Feb 10 16:18:17 2010 +0100 NEWS and version update. commit fae9be7782a161bdf93c83884d62941a34cbe518 Merge: 7d19666 0efd646 Author: Ondrej Zajicek Date: Wed Feb 10 14:59:26 2010 +0100 Merge commit 'origin/master' into new commit 7d1966689f3f748d8bfa36eef64ced6a750ecb47 Author: Ondrej Zajicek Date: Wed Feb 10 14:57:16 2010 +0100 RTF_CLONING is removed in FreeBSD 8. commit 0efd646278987df023586d85817a848c2bb39a1d Author: Ondrej Filip Date: Wed Feb 10 12:30:14 2010 +0100 Define symbols as text between ''. commit c27b2449d1f57e780974ed13fbd572a48e2a3602 Author: Ondrej Zajicek Date: Mon Feb 8 16:01:03 2010 +0100 Shows source (Router ID) for OSPF routes and adds such attribute. A sad thing is that we does not have a 'router_id' filter type, so it must be given as decimal number in filters. commit 5a56f27cd00c2cad661aed9b54696699e800883c Author: Ondrej Zajicek Date: Mon Feb 8 12:42:09 2010 +0100 Adds asterisk to the primary route in 'show route' cmd. And also fixes a minor bug. commit aa80826e4af4e6e0a6de5604ab5ce7991f2a8b4e Author: Ondrej Zajicek Date: Sun Feb 7 09:49:34 2010 +0100 Unnumbered OSPF interfaces should be always in the point-to-point mode. commit 76b53a4e207696c535a45f4358a8e047ca936e45 Author: Ondrej Zajicek Date: Sat Feb 6 22:57:51 2010 +0100 Adds some log messages related to configure. Also fixes a bug in the previous patch. commit ebae4770c949de41c64c9efbeaaef44adfb25790 Author: Ondrej Zajicek Date: Sat Feb 6 19:19:09 2010 +0100 Modifies configure to just reload protocols when filters change. Before this change, protocols were restarted in that case. commit c37e78510f2ac4d9bb4c44eddf33352eda72fd0f Author: Ondrej Zajicek Date: Wed Feb 3 00:19:24 2010 +0100 Makes date/time formats configurable. commit 44f26560ec9f108039e6736d6de929f899bf20ea Author: Ondrej Zajicek Date: Tue Feb 2 10:14:21 2010 +0100 Workaround for some broken BGP implementations that skip initial KEEPALIVE. commit 5f47c4c11ed8da3415c4c8c247bf52ab6a48255d Author: Ondrej Zajicek Date: Tue Feb 2 00:03:46 2010 +0100 Changes right-recursion to left-recursion in a filter grammar. Because we don't want to have a limit on a function/filter length. commit 1a7a4e59a22f903a0be791f229e86ab881593851 Merge: 4167702 1960d20 Author: Ondrej Zajicek Date: Thu Jan 28 16:00:16 2010 +0100 Merge commit 'origin/master' into new commit 41677025ee67fcccd34493f9b205037dd68811c9 Author: Ondrej Zajicek Date: Thu Jan 28 15:59:18 2010 +0100 Changes 'ignore communities' to 'interpret communities'. commit 1960d20350c5191b089f0a233d99969a0ff23ef6 Author: Ondrej Filip Date: Wed Jan 27 23:45:36 2010 +0100 Priority for '||' and '&&' fixed. commit 7515dafc006f8b71bc15aa7ed9749c7d4fb00153 Author: Ondrej Filip Date: Wed Jan 27 22:26:45 2010 +0100 Allow multiple || and && statements. commit 6cb8f742f1adf99881334b8ae21c398d98571aa1 Author: Ondrej Zajicek Date: Wed Jan 27 17:22:57 2010 +0100 Better handling of well-known communities. Process well-known communities before the export filter (old behavior is to process these attributes after, which does not allow to send route with such community) and just for routes received from other BGP protocols. Also fixes a bug in next_hop check. commit a3062085827db3115961eacd9d945ac202728174 Author: Ondrej Zajicek Date: Wed Jan 13 14:53:33 2010 +0100 Comment update. commit 974363c172e026b00be5f78ec585dda1e402b6f6 Merge: 99f5fc1 844e0f6 Author: Ondrej Zajicek Date: Fri Jan 8 22:20:09 2010 +0100 Merge commit 'origin/master' into new commit 99f5fc14cd457f71973bc2264566284049ccfb2c Author: Ondrej Zajicek Date: Fri Jan 8 22:19:41 2010 +0100 A partial vlink fix. commit 844e0f65dbab98f71f2a5631277a720613d4d7a5 Merge: 3242ab4 fc33143 Author: Ondrej Filip Date: Fri Jan 8 21:19:03 2010 +0100 Merge branch 'master' of ssh://git.nic.cz/projects/bird/GIT/bird commit 3242ab437f47f34d6734726003d647d0f493a163 Author: Ondrej Filip Date: Fri Jan 8 21:06:06 2010 +0100 Typo in documentation. commit fc33143f02642cc775a704dec37446e0b4343a43 Author: Ondrej Zajicek Date: Fri Jan 8 17:22:51 2010 +0100 A fix for broken multi-area OSPF commit 0741e68750fdda754790b6de7739e06310bdf723 Author: Ondrej Zajicek Date: Fri Jan 8 10:21:51 2010 +0100 Socket table update. commit 538dd2e486c3cc95ffebbdf73c934ddc71d70e09 Author: Ondrej Filip Date: Fri Jan 8 01:14:34 2010 +0100 Cryptographic auth can be used also on virtual links. commit 5f47fd85e341d94e2cbf46801cc14be06fb65dd8 Author: Ondrej Filip Date: Fri Jan 8 01:13:58 2010 +0100 Small typo. commit 6901fd0685f75ad5e95ea252039eec9e8926cd6a Author: Ondrej Filip Date: Thu Jan 7 23:42:11 2010 +0100 More information about vlinks. commit 18722dc98c57af6bfa2d9b967417b65db263e5ca Author: Ondrej Filip Date: Thu Jan 7 23:03:19 2010 +0100 Bugfix in DBG call. commit 3127b81755de4a09475df71072964e292c6994a7 Author: Ondrej Filip Date: Thu Jan 7 22:54:39 2010 +0100 Be a little bit more verbose on virtual links. commit cf0858c2174c6bf0a4f63b914d06a2342c433b09 Author: Ondrej Zajicek Date: Thu Jan 7 22:43:06 2010 +0100 A fix of a previous fix. commit ba39197c11db085c4bc062e45fd9c74f42b41ca0 Author: Ondrej Zajicek Date: Thu Jan 7 22:22:10 2010 +0100 Fixes vlinks for OSPFv2. commit 29bfbae7936beb401d944daf0f0106aa8a92ef50 Author: Ondrej Zajicek Date: Thu Jan 7 16:24:36 2010 +0100 Debugging change leaked to repository. commit 3034b384dd9e6c78e686a294b1f80775fdb3e392 Author: Ondrej Zajicek Date: Thu Jan 7 11:46:11 2010 +0100 A minor fix in OSPF. commit 861f223a531be17d2e3e7abc0246be3057b809a0 Author: Ondrej Zajicek Date: Wed Jan 6 23:20:43 2010 +0100 BSD compatibility fix. commit 0c75411bec2f4e37bfdb4c7162631a22898052c1 Author: Ondrej Zajicek Date: Wed Jan 6 16:57:20 2010 +0100 NEWS, version and documentation update. commit cf31112f0d7618464097f71228f84bd534f1bc0f Author: Ondrej Zajicek Date: Sun Jan 3 12:17:52 2010 +0100 Implements MRTdump feature. commit 610bb3cff05f6d5b09c77724bc97295b809d15e2 Author: Ondrej Zajicek Date: Tue Dec 22 10:49:39 2009 +0100 Show command cleanups. commit 0ad19261bf551ef49a1565e21e384ec749ec16d4 Merge: c4ae538 67b24e7 Author: Ondrej Zajicek Date: Tue Dec 22 01:34:01 2009 +0100 Merge commit 'origin/master' into new commit 67b24e7c1991de345dcb14173943a28d499f6f85 Author: Ondrej Filip Date: Mon Dec 21 16:29:23 2009 +0100 Wrong switch name in configuration example. commit c4ae53858be1bce6798f31ee2fb46775a607085f Author: Ondrej Zajicek Date: Mon Dec 21 11:53:58 2009 +0100 Change default mode of pipes to transparent. Opaque pipes are obsolete and should disappear in the future. commit fbcb7d5faf419057ccbe2340f3714f8885495c51 Author: Ondrej Zajicek Date: Mon Dec 21 11:50:42 2009 +0100 Change default LOCAL_PREF attribute to 100 (suggested value by RFC 4277). commit ba9a122142a3d42137c129fabaef097702d44801 Merge: 0225ea4 c4199e3 Author: Ondrej Zajicek Date: Sun Dec 20 22:57:44 2009 +0100 Merge branch 'ospf3' into new commit c4199e30313c88c0911060a5b5f3cc181ceedb37 Merge: f2d7da7 ea7ada3 Author: Ondrej Zajicek Date: Sun Dec 20 22:56:09 2009 +0100 Merge branch 'dev' into ospf3 commit 053dc3d81fe6470966bc35a852e791de0c00ee68 Author: Ondrej 'Feela' Filip Date: Sun Dec 20 16:18:22 2009 +0100 Typo corrected. commit ea7ada3809ed672bd9d2f9e5742f42b238cc5389 Author: Ondrej Zajicek Date: Sun Dec 20 14:59:12 2009 +0100 Fixes a new bug in the pipe protocol soft reconfiguration. Also updates route reload for pipes. commit 1a5178587ff63234d1b323fca965acb4a42cb9e2 Author: Ondrej Zajicek Date: Sun Dec 20 12:13:15 2009 +0100 Fixes unnecessary pipe restart during configure. commit 6877ff73a61d1924bc8940f7b646f52f7b34eca0 Author: Ondrej Zajicek Date: Sat Dec 19 18:45:46 2009 +0100 NEWS and version update. commit 0225ea4eddb44bd9dd4f112e512325cbf80134d3 Merge: 43c1cec f2d7da7 Author: Ondrej Zajicek Date: Tue Dec 15 00:32:13 2009 +0100 Merge branch 'ospf3' into new commit f2d7da742bd683b8eaecb1be8e3b04618171c796 Author: Ondrej Zajicek Date: Tue Dec 15 00:30:07 2009 +0100 Fixes export of routes with link-local gw. commit 43c1ceccb9caf8c4f63f191346c2f33889b4ad22 Author: Ondrej Zajicek Date: Mon Dec 14 23:31:25 2009 +0100 Remove bgp_as4_support variable. commit 13a7395704deeeff2d86910d8bcf9a6f32a7b207 Author: Ondrej Zajicek Date: Mon Dec 14 23:08:48 2009 +0100 Minor doc update. commit f75747073e45c3129568c4936c2f34fa618db41e Author: Ondrej Zajicek Date: Mon Dec 14 21:17:15 2009 +0100 Implements route reload for OSPF. commit 63542845dfb6d2277f93f77ad9ca3ad8bbaddd09 Merge: 34a877c 8a7fb88 Author: Ondrej Zajicek Date: Mon Dec 14 20:37:32 2009 +0100 Merge branch 'dev' into ospf3 Conflicts: proto/ospf/lsreq.c proto/ospf/lsupd.c proto/ospf/rt.c commit 34a877ccac25d38172716d3d2488449c870cad0b Author: Ondrej Zajicek Date: Mon Dec 14 17:29:33 2009 +0100 Minor updates. commit 8a7fb8858fa87bce6f2f15ee2bbb77704b5fff4e Author: Ondrej Zajicek Date: Mon Dec 14 01:32:37 2009 +0100 Finishes 'route reload' feature. commit 28008482a97c0ac70e648759fe37bad0633ed9f7 Author: Ondrej Zajicek Date: Sat Dec 12 01:35:51 2009 +0100 Minor fixes in OSPF. commit 8a70a13e7e79afa6818b10cf64d4f1ae4cf89e4b Author: Ondrej Zajicek Date: Fri Dec 11 01:20:53 2009 +0100 Implements protocol-specific Router ID for OSPF. And fixes one minor bug. commit be2d38b7e977c1f72ed9cd52f8e3e85130c0aaa1 Author: Ondrej Zajicek Date: Fri Dec 11 00:31:56 2009 +0100 Temporary OSPFv3 commit. commit 9807690b413f3a1d29d064761cc99ed5261cfb58 Author: Ondrej Zajicek Date: Sun Dec 6 22:05:50 2009 +0100 Fixes link-back check. commit b76aeb823446616b746b52b5c8152f4c5a73b242 Author: Ondrej Zajicek Date: Fri Dec 4 22:20:13 2009 +0100 Fixes next hop handling. commit 98955023926734c7ecf79f9b8d004baff5225a78 Author: Ondrej Zajicek Date: Thu Dec 3 23:20:02 2009 +0100 Fixes OSPFv2 build. commit bb3c7c6d22c48cd78b4c5b77a78ff1b92adca053 Author: Ondrej Zajicek Date: Thu Dec 3 18:56:39 2009 +0100 Fixes some log messages. commit 69fbf9a25190e0149dcc31e830e952c586fe2024 Author: Ondrej Zajicek Date: Thu Dec 3 18:25:14 2009 +0100 Minor fix in LSA update. commit a421ec33cb9029899122d0ab63bab0fa268348d2 Author: Ondrej Zajicek Date: Wed Dec 2 22:22:40 2009 +0100 Fixes silly bug. commit 11361a101517c2c87e3d35d2c63cacb3ddb97724 Author: Ondrej Zajicek Date: Wed Dec 2 22:19:47 2009 +0100 Implements route re-feed. This can be used to re-feed routes to protocol after soft change in export filters. commit 11787b8473ae1685d43dad809592fabc64eb8f46 Author: Ondrej Zajicek Date: Wed Dec 2 17:26:16 2009 +0100 Fixes some problems in pipes. For transparent pipes, loop detection works correctly now. Pipes are now more symmetric - in both directions filtering is done in do_rte_announce(). commit e8b29bdc8dc34d4a0358458907a5d8ac29011d28 Author: Ondrej Zajicek Date: Wed Dec 2 14:33:34 2009 +0100 Fixes one missing log message. commit 4b84bd4554b2a9331055bfd8d02a0bab0d10df92 Author: Ondrej Zajicek Date: Sun Nov 29 10:29:33 2009 +0100 Fixes some crashes in OSPFv2. commit e4a810b0ce3d7904e87a210c44c36eda7cba7a3e Author: Ondrej Zajicek Date: Sun Nov 29 10:09:25 2009 +0100 Temporary commit. commit a6250a7d1013442ad4feb0d67128a707f2c6880b Author: Ondrej Zajicek Date: Thu Nov 26 23:23:29 2009 +0100 Fix -p option. commit bf47fe4b2e40ccfcfe6af2d86548d06cdf9739c5 Author: Ondrej Zajicek Date: Thu Nov 26 20:47:59 2009 +0100 Implements BGP route refresh. commit 5e6f568115511e2bcf43c60dfdcbd7a35cb04b93 Merge: 069bfcb 1f8be1e Author: Ondrej Zajicek Date: Tue Nov 24 17:19:23 2009 +0100 Merge commit 'origin/master' into dev commit 069bfcb53cef012c063a27e5af93d620be2917bd Author: Ondrej Zajicek Date: Tue Nov 24 17:15:20 2009 +0100 Fixes serious bug in core related to route filtering. If protocol announces a route, route is accepted by import filter to routing table, and later it announces replacement of that route that is rejected by import filter, old route remains in routing table. commit 717e4c4d8173a8dbae2956f1703ff6d4365a9d34 Author: Ondrej Zajicek Date: Fri Nov 20 09:29:29 2009 +0100 Fixes in the documentation. commit 1f8be1e46f666e79072cc5f800c2dba91788368b Author: Ondrej Filip Date: Thu Nov 19 23:15:58 2009 +0100 Added word 'IPv6' to underline, that this problem was not IPv4 related. commit 6a72a276f6a677a8adec9566867023d76ac7da7e Author: Ondrej Zajicek Date: Thu Nov 19 12:53:55 2009 +0100 New version. commit a4644ed6ab32c098b755bdac03498634b2794409 Author: Ondrej Zajicek Date: Thu Nov 19 11:44:17 2009 +0100 Implement option to exit after config file parsing. commit 3f9b7bfe9ff050430a5886b22a5ab11b5f253048 Author: Ondrej Zajicek Date: Wed Nov 18 20:32:36 2009 +0100 Implements option that controls IPv6 BGP next hops when lladdr is missing. commit 62aa96caa28180f76c8aff0c49dd21128e396153 Author: Ondrej Zajicek Date: Tue Nov 17 15:50:29 2009 +0100 Adds some documentation to the description option. commit e04555c04545278cfe3aeae85d707b1d78e5abeb Author: Ondrej Zajicek Date: Tue Nov 17 15:45:05 2009 +0100 Implement description field of protocol. commit d0e2d6d1e05455cf1ec4e71135edaa659fe96dac Author: Ondrej Zajicek Date: Tue Nov 17 14:17:23 2009 +0100 Show both IPv6 next hop addresses in BGP. commit 3228c72cc030f409914134440a7e55bbcfc9ff6a Author: Ondrej Zajicek Date: Tue Nov 17 11:41:29 2009 +0100 Implements RFC 5004 - prefer older external routes. commit cbf8b08d622695f360bcdd80d61eb4add967749e Author: Ondrej Zajicek Date: Tue Nov 17 10:31:33 2009 +0100 Temporary OSPFv3 devel commit commit 2eece54a04d95f534b935ccac4c3959b25516bd5 Author: Ondrej Zajicek Date: Sun Nov 15 14:24:20 2009 +0100 Fixes bug related to reconfiguration with bgp_path first/last operators. commit 653b4015f137d9590147f8774ec686031696f81c Author: Ondrej Zajicek Date: Fri Nov 13 14:54:43 2009 +0100 After shutdown, BIRD should have exit code 0. commit d3f36e5978e85a926c497e2aa2cbdf319776ebb5 Author: Ondrej Zajicek Date: Fri Nov 13 14:43:29 2009 +0100 Fixes BIRD socket unlink. commit 4ac7c8341c660db654821ed2dc0273645dc19645 Author: Ondrej Zajicek Date: Mon Nov 9 23:22:53 2009 +0100 Use IPv6 checksums in OSPFv3. commit 3f22fa9e74c8643d3e4f7e3a7b4f2aa992ad09f5 Merge: a6bc04d b7c0e93 Author: Ondrej Zajicek Date: Mon Nov 9 22:54:39 2009 +0100 Merge branch 'dev' into ospf3 commit b7c0e93ebd40cdc4f6e89067a3e5f7293263c7f9 Merge: 7965e17 f1f1e89 Author: Ondrej Zajicek Date: Mon Nov 2 16:27:17 2009 +0100 Merge commit 'origin/master' into dev commit 7965e17d67e8e2e68d96a8471f4828c0dc0d0b21 Author: Ondrej Zajicek Date: Mon Nov 2 16:25:05 2009 +0100 Fixes build in Debian GNU/kFreeBSD. commit f1f1e899b708e0e2ebaba46444fad650648ccb93 Author: Ondrej 'Feela' Filip Date: Mon Nov 2 15:59:01 2009 +0100 Version 1.1.5 commit a6bc04d59130c49a1dbfadffa4285b11e2ff4939 Author: Ondrej Zajicek Date: Thu Oct 29 23:57:42 2009 +0100 Implements better checks on incoming packets and LSAs in OSPF. commit 9d4d38d1a5d67f5485d2b2fa439c879583dfdcb0 Author: Ondrej Zajicek Date: Wed Oct 28 22:39:24 2009 +0100 Fixes some problems related to link-local routes in KRT interface. commit b5332824ea4108d62cb559205391fd2c530348e4 Author: Ondrej Zajicek Date: Wed Oct 28 20:33:08 2009 +0100 New version. commit e6ff7a08e4e7808e1175c3c3bc830d93c0454b19 Author: Ondrej Zajicek Date: Tue Oct 27 22:25:36 2009 +0100 Replaces local endianity testing macro with the common one. That makes it easier to integrate BIRD to crosscompiling buildsystems. commit 9727681a38d3a7c474892e167c0e5a4e0cfac844 Author: Ondrej Zajicek Date: Sun Oct 25 20:02:28 2009 +0100 Implements proper handling of summary/external LSA IDs. commit bff74c7aa3ce4d407cb18b48c9df7b670c3c7a3d Author: Ondrej Zajicek Date: Tue Oct 20 19:04:28 2009 +0200 Allows importing 'onlink' routes. commit 988992446d3aaaef9c19902d94cd1908a963fd80 Author: Ondrej Zajicek Date: Thu Oct 15 11:57:25 2009 +0200 Implement command to show LSA db. commit b66abe8ef986698caccd08b38a991330f0791075 Author: Ondrej Zajicek Date: Thu Oct 15 00:28:04 2009 +0200 Reimplements 'show ospf state' for OSPFv3 and fixes some bugs. commit 4cdd078453d585ac97a183ea1f3951d85f1b8784 Author: Ondrej Zajicek Date: Mon Oct 12 23:31:42 2009 +0200 Implements protocol-specific router id and updates documentation. commit 52b9b2a1786140c38af03de570b0cc96c835c1d3 Author: Ondrej Zajicek Date: Mon Oct 12 20:44:58 2009 +0200 Rename as_path_get_last/as_path_get_first to be consistent. commit ea89da381fc682155e7d08d6ad3d4ac8aa5fe115 Author: Ondrej Zajicek Date: Sun Oct 11 18:56:16 2009 +0200 Workaround for stupid callback scheduler. There is no reak callback scheduler and previous behavior causes bad things during hard congestion (like BGP hold timeouts). Smart callback scheduler is still missing, but main loop was changed such that it first processes all tx callbacks (which are fast enough) (but max 4* per socket) + rx callbacks for CLI, and in the second phase it processes one rx callback per socket up to four sockets (as rx callback can be slow when there are too many protocols, because route redistribution is done synchronously inside rx callback). If there is event callback ready, second phase is skipped in 90% of iterations (to speed up CLI during congestion). commit 7ea5b00f42bd3d1fdafb0be349e3ebbcdf3ea466 Author: Ondrej Zajicek Date: Thu Oct 8 15:23:24 2009 +0100 First and last accessors to as_paths. commit d82fc18d75e4ebf615657cb5d98f000c728b13e4 Author: Ondrej Zajicek Date: Wed Oct 7 21:10:29 2009 +0100 Implement proper LSA ID generation. commit 43c7a1ffa07dda2a9f37c046e1cd9a75242db2b7 Author: Ondrej Zajicek Date: Wed Sep 30 18:48:38 2009 +0200 New version. commit aa7088fe2646e53b5168f7ea4e5bd098f891951c Author: Ondrej Zajicek Date: Wed Sep 30 16:34:47 2009 +0200 Fixes one previous commit. commit a5bf5f781cf921bd1e092b7f9ae6ccdbf7424428 Author: Ondrej Zajicek Date: Thu Sep 24 23:14:44 2009 +0200 Show bad peer AS number in log in decimal. commit be6e39ebbf7ed107abde6fc1a18e8827ca47a7c1 Author: Ondrej Zajicek Date: Thu Sep 24 22:12:11 2009 +0200 Passive option. commit 2d507e64b7d7029906aac30dbea317795b5339de Author: Ondrej Zajicek Date: Thu Sep 24 19:08:14 2009 +0200 Do not allow gateway routes with NULL iface. commit 54fe0d9230be440d9f627ff7f94a202e6117e1b9 Author: Ondrej Zajicek Date: Fri Sep 18 13:59:04 2009 +0200 Fixes setting of IP addresses to route attributes (NEXT_HOP). commit db96fccb31bc0436ec182ff825f592d6c16dc930 Author: Ondrej Zajicek Date: Fri Sep 18 01:11:09 2009 +0200 Fixes bug in filter rta copy-on-write. Filters should try to copy-on-write just cached rtas. commit 46eb80d5d50a2b284cae19444149d57d857a8e02 Author: Ondrej Zajicek Date: Thu Sep 17 17:52:36 2009 +0200 Fixes headers for uintptr_t (and build on NetBSD). commit f4c6ca8c9c7ca7c0d481e6059396beed6adc768d Author: Ondrej Zajicek Date: Thu Sep 17 13:35:37 2009 +0200 Fixes preference bounds. commit 0781e9c62cd34175eb4e3bc61ffe785d08538727 Author: Ondrej Zajicek Date: Thu Sep 17 12:40:02 2009 +0200 Fixes preference in transparent pipes. commit 9f0ba7b1c7a0754c473b8ab202f572c9c8363285 Author: Ondrej Zajicek Date: Thu Sep 17 12:18:03 2009 +0200 Implements proper RID handling in OSPFv3. commit 5eb4d0180ed92cee31d962fbc4d0175a7e1d5933 Author: Ondrej Filip Date: Fri Sep 11 12:20:30 2009 +0200 New release 1.1.3 commit c15e569065e80f91b4c9c77b86640aac72aa0a47 Author: Ondrej Zajicek Date: Tue Sep 8 17:06:47 2009 +0200 Make endianity swapping simpler. commit be862406627da3bd1facea9309b3f32e67422eab Author: Ondrej Zajicek Date: Tue Sep 8 13:45:02 2009 +0200 Temporary OSPFv3 development commit. Finally, it is working. commit 29bcd04e75a4d145bee500b8aef79052974b1981 Author: Ondrej Filip Date: Sun Sep 6 21:26:46 2009 +0200 Update of config.sub & config.guess commit daeeb8e982a3463f4a866e805b64f214d9f44160 Author: Ondrej Zajicek Date: Fri Sep 4 11:24:08 2009 +0200 Clear memory allocated by ralloc(). This also fixes bug that timer->recurrent was not cleared in tm_new() and unexpected recurrence of startup timer in BGP confused state machine and caused crash. commit f9c799a00e705b1420b214628c2bb2a30bf491d9 Author: Ondrej Zajicek Date: Fri Sep 4 11:06:51 2009 +0200 Temporary OSPFv3 development commit (changing multicast support). commit d2ceaf4ec82837239a35ace00399ce3aa845849e Author: Ondrej Zajicek Date: Fri Aug 28 13:45:43 2009 +0200 Temporary OSPFv3 development commit commit 05198c12f48c9d4a65ee6d1d4117bd8067a71131 Author: Ondrej Zajicek Date: Thu Aug 27 19:01:04 2009 +0200 Some cleanups. commit 061ab802a67cfc336785f6daeecdcbd4910734ed Author: Ondrej Zajicek Date: Thu Aug 27 18:25:46 2009 +0200 Temporary OSPFv3 development commit commit 949bd34e81ee99370decdabefa51c9c11ffe915b Author: Ondrej Zajicek Date: Tue Aug 25 19:01:37 2009 +0200 Fixes bug related to AS2->AS4 conversion. commit b49e6f5a65d437cb7e7bdefe8397e0f550496012 Author: Ondrej Zajicek Date: Tue Aug 25 16:42:14 2009 +0200 Temporary OSPFv3 development commit commit a0c405501fa6a0df8472f1598256e725cec753fd Author: Ondrej Filip Date: Sun Aug 23 23:04:59 2009 +0200 Version 1.1.2 commit d2f8d0a509d96d752c86f8807e7f6644467e5af5 Author: Ondrej Filip Date: Sun Aug 23 23:03:31 2009 +0200 Version 1.1.2 commit 2ef58837dcb7b78edc193bc9ef1da316bba86998 Merge: 86975e5 5516a66 Author: Ondrej Zajicek Date: Fri Aug 21 09:46:49 2009 +0200 Merge commit 'origin/master' into dev commit 86975e584eeabbc4f3111f2d100f05ca00579d31 Author: Ondrej Zajicek Date: Fri Aug 21 09:43:31 2009 +0200 Allow more kernel routing tables in IPv6. commit fee78355b480294f28c3c6814953297dca92d4a0 Author: Ondrej Zajicek Date: Fri Aug 21 09:31:35 2009 +0200 Fixes bug in eattr binary search. commit c3226991a061415fa83b757cbff678111c586e58 Author: Ondrej Zajicek Date: Fri Aug 21 09:27:52 2009 +0200 Temporary OSPFv3 development commit commit 5516a66d492497ba8776212defb3117ed1dbfbf8 Author: Ondrej Filip Date: Sun Aug 16 22:41:07 2009 +0200 Ondrej Zajicek add to the team. commit 87d7fd9725ded186f6fa331d68a1e9df5d1982cf Author: Ondrej Filip Date: Sun Aug 16 22:36:41 2009 +0200 Bugfix - each protocol can be compiled separately. commit c5be5a163c2a7b640cb3d0942de44ec87de0f25b Author: Ondrej Zajicek Date: Wed Aug 12 10:26:42 2009 +0200 NEWS and version update. commit 9c46ad8e2fba592d28d19757d39bc090fc5b0d47 Author: Ondrej Zajicek Date: Wed Aug 12 10:16:32 2009 +0200 Count number of lines (and not messages) in 'more'. commit c0973621bc1e06cb6176dc2dfd97bec637861edd Author: Ondrej Zajicek Date: Tue Aug 11 15:49:56 2009 +0200 Fixes another bug in rte_recalculate(). Previous bugfix revealed another hidden bug here. commit ac07aacd2cdb5cf69a3bfdbc0e078cb0ae96c0db Author: Ondrej Zajicek Date: Tue Aug 11 11:03:37 2009 +0200 Replace assert with log. Although it is true unless there is a bug in BIRD, this assert is not needed (code below does not require that assumption), so we should not crash. commit 024e633c16cf21ae94d7e023e057e59080f92175 Author: Ondrej Zajicek Date: Tue Aug 11 10:54:50 2009 +0200 Fixes bug that caused losing of some routes. When update changes preferred route in such a way that it ceased to be preferred, the new route was linked to wrong place and lost. commit e75d3c74a8f665a6e7dc0cc743a68e980e7c10da Author: Ondrej Zajicek Date: Mon Aug 10 14:36:30 2009 +0200 Flex does not need the output of Bison. commit ea9097eaad7dfccd5a88480d748781d947b25cc8 Author: Ondrej Zajicek Date: Mon Aug 10 14:13:28 2009 +0200 Fixes parallel runs of Bison. Previous version of Makefile executed Bison two times (in parallel), because of two specified targets. I am not sure wheter this is the best fix. Previon commit f2cfc509960741bd587cf92f7d154d06fbb2c9a4 Author: Ondrej Zajicek Date: Mon Aug 10 13:59:56 2009 +0200 Compilation and dependency generation should be serialized. commit 581b59907ca5b79b44cc0654e57c34ab77883a96 Author: Ondrej Zajicek Date: Mon Aug 10 13:57:08 2009 +0200 Clean files generated by Bison and Flex. commit 5b1f877e6edfb3b541d444ae5b1ffd025dd9fbd6 Author: Ondrej Zajicek Date: Mon Aug 10 12:04:25 2009 +0200 Fixes typo in Makefile commit b92c8e30191dd757c76239076eda82d0065f2348 Merge: 54d70d3 71a9574 Author: Ondrej Zajicek Date: Mon Aug 10 10:16:00 2009 +0200 Merge branch 'master' into dev commit 71a9574a515613cded23b20f260a88784bcd4286 Author: Ondrej Filip Date: Sun Aug 9 19:43:42 2009 +0200 Makefile changed to make it work with 'make -jN' where N>1 commit 0ac39033c7470f7301bb108f8e777c7ce6af273f Author: Ondrej Filip Date: Sun Aug 9 19:43:15 2009 +0200 Missing dependency added. commit 0d328932be54a6756c6b43b0cd6d8d314a5b7fe2 Author: Ondrej Filip Date: Thu Jul 30 18:39:41 2009 +0200 Symbols PASSWORDS and BROADCAST not declared for OSPF commit 54d70d3ebb20c36f483cde9d7d5b877772d4884e Author: Ondrej Zajicek Date: Thu Jul 23 22:21:17 2009 +0200 Fixes compiler warning in OFFSETOF(). commit 3aab39f589c352e30e9db92346b579dd561482b3 Author: Ondrej Zajicek Date: Thu Jul 23 16:51:28 2009 +0200 Use %R in OSPF when appropriate. commit 2f6483cd312ffd7ef055099ce801fb8f437d9abe Author: Ondrej Zajicek Date: Thu Jul 23 16:06:25 2009 +0200 Adds %R printf directive for Router ID. commit f0333f44a5a4bec9f3978a90cf7eda1b0a2ec151 Author: Ondrej Zajicek Date: Wed Jul 15 01:47:29 2009 +0200 Implements 'more' feature to birdc. Also does some code restructuring. commit 6baef17ecf1ed994cfc8038bc610e8b7ff88506a Author: Ondrej Zajicek Date: Tue Jul 14 14:18:54 2009 +0200 Fixes bug in CLI TX buffer management. commit 70670bf317a612a1700ffbd0dbc8d92614e0caf2 Author: Ondrej Zajicek Date: Thu Jul 9 15:42:39 2009 +0200 Fixed bug related to reconfiguration of BGP with MD5 passwords. commit dd7b4a13848f5a92b403a563e8e27a3cbdfc937f Merge: d1abbea bffd4c0 Author: Ondrej Zajicek Date: Mon Jul 6 23:10:33 2009 +0200 Merge branch 'master' into dev commit d1abbeacfb5a099418f53b583625ac97b1c62059 Author: Ondrej Zajicek Date: Mon Jul 6 19:07:01 2009 +0200 Fixes memory alignment problems on Sparc64. Not quite standard construction, i should add some autoconf macro. Not tested yet. commit 2389c46fe314867f99bbdfa1f6c9ff92d433d754 Author: Ondrej Zajicek Date: Sun Jul 5 21:18:55 2009 +0200 Another pile of ipa_from_u32() calls. commit b082c1bfcc53b10012a427aa3b4b8281fe2f496c Author: Ondrej Zajicek Date: Sun Jul 5 20:26:51 2009 +0200 Fixes OSPF on big-endians. Hmm, #ifdef is not very typo-safe. commit f9bdcad4694cf80690982dfc58d28f91216c8bd0 Author: Ondrej Zajicek Date: Sun Jul 5 19:01:54 2009 +0200 Fixes type mismatch in OSPF printf statements. Mixing ip_addr and u32 does bad things on Ultrasparc. Although both have the same size. Fascinating. It was not catched by compiler because of varargs. commit bffd4c0b3900b28cfa84131752d44277866cb413 Author: Ondrej Filip Date: Sun Jun 28 10:03:24 2009 +0200 Small typos. commit f1684ae6c05a52e1757c709dfbbedb5fc8ae1e07 Author: Ondrej Filip Date: Sun Jun 28 09:43:29 2009 +0200 New release 1.1.0! commit ef86b8465ff7d8e81038f37103594eb9c66d9c58 Author: Ondrej Filip Date: Sat Jun 27 18:56:26 2009 +0200 Unused file removed. commit 2d785e8d6a646a878c970583aa54a15209fa0e6e Author: Ondrej Zajicek Date: Fri Jun 26 13:33:41 2009 +0200 Fixes bug on TCP passive socket binding on BSD. BGP on BSD was bound to random port. I am surprised that nobody noticed it already. commit 5004d02cb9df1f3ee231632a8e89929f4eb4f088 Merge: 1876e18 99355da Author: Ondrej Zajicek Date: Fri Jun 26 01:06:12 2009 +0200 Merge branch 'master' into dev commit 1876e18d32fa4b21888aae2c984b1b61338c3e60 Author: Ondrej Zajicek Date: Thu Jun 25 15:44:43 2009 +0200 Minor bugfix. commit 200ede8226a4173b2405bcd1c98cf20604c33545 Author: Ondrej Zajicek Date: Thu Jun 25 14:42:25 2009 +0200 NEWS and version update. commit d72cdff411d0bf4ddecaea5d0fc6d4341b4cb3f1 Author: Ondrej Zajicek Date: Tue Jun 23 11:08:30 2009 +0200 Replace 'bind' option with 'listen' option. To be consistent with other daemons. commit da95a7a7dad6ebf572adfb448dfc1a5c8400e6ab Author: Ondrej Zajicek Date: Tue Jun 23 11:00:38 2009 +0200 Fixes bug in ORIGIN check. commit 29c430f8569b90e1962d92a26f96fad7e72d27ec Author: Ondrej Zajicek Date: Tue Jun 23 10:50:57 2009 +0200 Changes handling of AS_PATH_CONFED_* segments in AS_PATH. Although standard says that if we receive AS_PATH_CONFED_* (and we are not a part of a confederation) segment, we should drop session, nobody does that and it is unwise to do that. Now we drop session just in case that peer ASN is in AS_PATH_CONFED_* segment (to detect peer that considers BIRD as a part of its confederation). commit 4323099da9e6e8d53072595009731da9b39e9f19 Author: Ondrej Zajicek Date: Sat Jun 20 00:59:32 2009 +0200 Fixes bug in scheduling of callback by main loop. If other side of a socket is sending data faster than BIRD is processing, BIRD does not schedule any other callbacks (events, timers, rx/tx callbacks). commit 2757985709f0a132427d4f440ec913b6a0064f80 Author: Ondrej Zajicek Date: Sat Jun 20 00:40:21 2009 +0200 Documentation update commit bf1aec970e9ac0600266fe7a045847a62f18ac3b Author: Ondrej Zajicek Date: Fri Jun 19 23:49:34 2009 +0200 Adds support for soft reconfiguration. commit 789772ed4586213d6a7fbb867b9296a01ce1b9c0 Author: Ondrej Zajicek Date: Thu Jun 18 19:20:07 2009 +0200 Implements option that changes BGP listening socket parametres. commit 1b3b3e34ecbc281a13d4ca0b99e891ee9c4d5cac Author: Ondrej Zajicek Date: Thu Jun 18 14:32:44 2009 +0200 Minor bugfixes. commit 6f5603badc12dbbf440e8f85b1165cc8f5d671c7 Author: Ondrej Zajicek Date: Thu Jun 11 20:51:13 2009 +0200 Documentation update. commit 386752028143e78d0a617216d86f95af4024346d Author: Ondrej Zajicek Date: Thu Jun 11 17:25:38 2009 +0200 Implements an option that allows to change a set of stub networks. commit 3d15dcdb1cc91c694aa9319b86bb37510d7ed12b Author: Ondrej Zajicek Date: Wed Jun 10 23:45:08 2009 +0200 Changes OSPF to generate stub networks for non-primary addresses. Also does some reorganization in RT LSA announcement. commit b99d378698641b9821e4b708a90761aeb9bf6cc4 Author: Ondrej Zajicek Date: Sun Jun 7 00:38:38 2009 +0200 Minor BGP changes related to error wait time. commit 723826267101cfbb918125f0f270166cd309229d Author: Ondrej Zajicek Date: Sat Jun 6 18:56:33 2009 +0200 Fixes bug related to startup delay change. commit dd91e467657b2dba84df308d0dc74d268bbfa228 Author: Ondrej Zajicek Date: Sat Jun 6 18:16:22 2009 +0200 Differentiate between error delay and connect/reconnect delay. The difference is here to reject incoming connections in the first case. commit 2a04b045e480bbf75229f0177abbd7f84d3b7089 Author: Ondrej Zajicek Date: Thu Jun 4 13:38:18 2009 +0200 Adds route limit documentation. commit 72b28a041df18f0da2e6a85360d6935c6a2db471 Author: Ondrej Zajicek Date: Thu Jun 4 13:31:09 2009 +0200 Implements import route limits. commit 925fe2d3de0e12c644f91f94d13bf388aeda9b57 Author: Ondrej Zajicek Date: Thu Jun 4 01:22:56 2009 +0200 Implements route statistics and fixes some minor bugs. commit 99355da18f8598e93d0e55167582da9687eae082 Author: Ondrej Filip Date: Tue Jun 2 12:01:24 2009 +0200 Inlude DESTDIR in install to make life of packagers easier. commit 26978ec419217fccfbb8901033703ede886e78b7 Author: Ondrej Filip Date: Tue Jun 2 11:36:07 2009 +0200 Clean also ipv6 bird.ctl commit de8f238fdb85bdba8ce4b5988584403cf5dbcd1e Author: Ondrej Filip Date: Tue Jun 2 11:00:12 2009 +0200 Error in test fixed. commit dc16584ac2be1c097acbf8a0b2f6d412214f2a01 Author: Ondrej Filip Date: Tue Jun 2 00:28:08 2009 +0200 Small change to make BIRD's IPv6 packaging easier commit c07c65d6d079eaf4525f03f5d126d51caa2595d6 Author: Ondrej Zajicek Date: Mon Jun 1 23:18:45 2009 +0200 Escaped debbuging message removed. commit 92a72a4cbdd010f69e8d054019770e55a47637e0 Author: Ondrej Zajicek Date: Mon Jun 1 19:32:41 2009 +0200 Adds support for dynamic pair and bgp mask expressions. commit f429d4348275030a9f488046c4021aa377ad1a79 Author: Ondrej Zajicek Date: Mon Jun 1 16:20:48 2009 +0200 Removes some remnant of '|' bgp path separator. commit f98e2915794e8641f0704b22cbd9b574514f5b23 Author: Ondrej Zajicek Date: Mon Jun 1 14:07:13 2009 +0200 The pipe cleanup. commit 2d45e09f58c4ce857e10c241cf0e89b51b9ec49c Author: Ondrej Zajicek Date: Mon Jun 1 12:10:10 2009 +0200 Adds opaque/transparent pipe mode selection. commit 23ac9e9a9eefe13918ee7f21a1d0f271a44d9efd Author: Ondrej Zajicek Date: Sun May 31 15:24:27 2009 +0200 Changes pipes to transfer all routes between routing table, not just optimal routes. commit 23e563d86b412632644bdc4a886b0b7fb60e5175 Author: Ondrej Zajicek Date: Sat May 30 00:35:35 2009 +0200 Fixes buggy prefix ~ prefix matching. commit 9be1086d2970633fb5af2a1faaae16d5a1cf48ea Author: Ondrej Filip Date: Fri May 29 23:08:28 2009 +0200 New type variable 'V' defined in filters. This type is checked only for name, never for value in function filter_same() commit 43de796b8a10f561d8b3ef64a86e5ce70de01eb5 Author: Ondrej Filip Date: Fri May 29 23:04:54 2009 +0200 Function pm_path_compare() checked just length of the bgpmasks commit d59405ec6652e95f4825492c7322536bb7044db0 Author: Ondrej Filip Date: Fri May 29 23:02:36 2009 +0200 Typo in warning fixed. commit 874b868544c3a6ba45ace062091cc3aee007b719 Author: Ondrej Zajicek Date: Fri May 29 22:49:30 2009 +0200 Implements primary address selection base on 'primary' option. commit 51f4469f03759642870a45634d9b53054e3deb92 Author: Ondrej Zajicek Date: Fri May 29 17:36:37 2009 +0200 Fixes problems with rewriting of kernel device routes. commit 6f68f066b63e992321ec1873a15c233f567b9aca Author: Ondrej Zajicek Date: Fri May 29 13:32:24 2009 +0200 Add 'primary' configuration option. commit 7c3d06b087946cbea4affa4a814e72b7a3556833 Merge: f571473 4c2507d Author: Ondrej Zajicek Date: Thu May 28 13:58:51 2009 +0200 Merge branch 'dev' into ospf commit a6c9f0648db56175ee9e077e2ca631b678552835 Author: Ondrej Filip Date: Thu May 28 13:37:04 2009 +0200 Missing boolean comparison added. commit 4c2507da687cdad1b9d147c1655e5ac46aaaa511 Author: Ondrej Filip Date: Tue May 26 10:43:59 2009 +0200 Warning for BSD system and TCP-MD5. commit 0c8c86c825f9cebf4c1d9f8d9cd57b2fad84d35b Author: Ondrej Zajicek Date: Mon May 25 01:41:20 2009 +0200 Adds INSTALL file. commit f571473ef3f78f6e38558d306d4d16ce7797e26c Author: Ondrej Zajicek Date: Sun May 24 17:55:33 2009 +0200 Hello packets on PTP networks should have zero netmask. This also ensures that misconfigured routers (one side ptp and one side broadcast) do not make adjacency. commit 8cc598a5205dbe46f5f249fa4f2de0586438965d Author: Ondrej Zajicek Date: Sun May 24 17:51:27 2009 +0200 Ignore Hello packets from different IP network (than primary). commit 050ceb867fbb96395c6f7d3207acbb5fe57b8d1c Author: Ondrej Zajicek Date: Fri May 22 18:41:52 2009 +0200 Update versions. commit 0c51083e97a4288219b29e82be65f399d085adee Author: Ondrej Zajicek Date: Fri May 22 18:08:54 2009 +0200 NEWS update. commit ea2ae6dd0ae3f5dd8cd41c1e5a1170a163027725 Author: Ondrej Zajicek Date: Fri May 22 17:12:15 2009 +0200 Change import/preimport to export/preexport to be consistent with filters. commit d72a0ac2396471ffb2b3a580ee986f950e4d23ae Author: Ondrej Zajicek Date: Fri May 22 15:16:53 2009 +0200 Fixes serious bug in route attribute handing. ea_same() sometimes returns true for different route attributes, which caused that hash table in BGP does not work correctly and some routes were sent with different attributes. commit 80f0d6764aa2c54eabdc1b41321a46e8cbcce2b9 Author: Ondrej Zajicek Date: Fri May 22 13:37:07 2009 +0200 Fixes type mismatch on BSD systems. commit d0c64519e798132b73ae5769b9246acb77b4c5aa Author: Ondrej Zajicek Date: Fri May 22 01:13:07 2009 +0200 Ugly hack for finding readline on NetBSD commit 8de11deb9107b0bcfc7bf3922ee7edff3dbcd73a Author: Ondrej Zajicek Date: Fri May 22 00:26:30 2009 +0200 Better checks for M4 in configure. commit 6c84554b671fce473fe333ab3d8b548a0768882b Merge: f434d19 4d176e1 Author: Ondrej Zajicek Date: Thu May 21 09:26:59 2009 +0200 Merge branch 'master' into dev commit f434d19174cb2d3054a00248ca609aa87bf8c263 Author: Ondrej Zajicek Date: Wed May 13 22:04:44 2009 +0200 Documentation updates commit 4d176e14509c71823a539b3c8b6103e254296d4f Author: Ondrej Filip Date: Mon May 11 02:01:11 2009 +0200 'show route protocol

' added to CLI. commit ef9c9ab9b64a6f3b5154e5340ffdcd1d211ec4c5 Author: Ondrej Filip Date: Mon May 11 01:32:49 2009 +0200 OpenBSD port related changes. commit dd8d2acd3c4ed7d7eb56ca9dbb7c9a6d43e2a869 Author: Ondrej Filip Date: Sun May 10 19:23:05 2009 +0200 Fixed bug in cli help. commit e755986a342b9a35cb7dd52e055066b1168aef12 Author: Ondrej Zajicek Date: Sun May 10 13:15:17 2009 +0200 Fixes in documentation. commit 19e10907c197ef123fafdd8a2783f9eb5f4a6f72 Author: Ondrej Zajicek Date: Fri May 8 14:37:06 2009 +0200 Fixes communication on netlink sockets Independent sessions on netlink sockets mixed state in some common variables. commit 20e94fb85b7097b57089e3912475ac881fd5528d Author: Ondrej Zajicek Date: Wed May 6 22:02:45 2009 +0200 A change in OSPF and RIP interface patterns. Allows to add more interface patterns to one common 'options' section like: interface "eth3", "eth4" { options common to eth3 and eth4 }; Also removes undocumented and unnecessary ability to specify more interface patterns with different 'options' sections: interface "eth3" { options ... }, "eth4" { options ... }; commit 10ab65a8c9eb846655feacd22c29747743a65328 Author: Ondrej Zajicek Date: Wed May 6 15:18:52 2009 +0200 Fixes one recently introduced IPv6 BGP compatibility problem. commit 2b70f0742e808053f87315433a2a64c749c3ec1d Author: Ondrej Filip Date: Mon May 4 18:17:46 2009 +0200 Linux specific TCP-MD5 handling moved to sysdep/linux/sysio.h FreeBSD coded added. BSD cannot set BGP passwords itself. This has to be done by external command. commit 1bc4b2cc840eb3f48c7e245528ef79c2b0ba50e7 Author: Ondrej Filip Date: Mon May 4 17:49:56 2009 +0200 Syntax error fix for systems without CONFIG_SELF_CONSCIOUS (KRT_ALLOW_LEARN) commit b7a735ea9d14ceb5c31712fbe122b54f0d7ec6e7 Author: Ondrej Zajicek Date: Wed Apr 29 22:17:40 2009 +0200 Allow 'third party' BGP updates for originated routes. commit 4827b69ff43661f4f34d437999b0edaac76f7355 Author: Ondrej Zajicek Date: Wed Apr 29 18:58:24 2009 +0200 Fixes BGP IPv6 link local next hop handling. When sending 'third party' BGP update, Bird used bogus link local addresses instead of addresses it received before. commit ad440a570b37e8674ef35f3a18df48f0eb2579eb Author: Ondrej Zajicek Date: Tue Apr 28 18:11:56 2009 +0200 Fixes handling of 'next hop self' and 'source address' configuration options. commit a6ee026693a9c24c71dcf846abd32508782e0249 Author: Ondrej Filip Date: Tue Apr 28 11:56:33 2009 +0200 Typo in gendist script. commit f8fbda6fb0c30fdc6e5182679e7bf1eb2fb9c8e9 Author: Ondrej Filip Date: Tue Apr 28 11:53:12 2009 +0200 Small formatting typo in documentation. commit 73841442d916490fa6a9b5967dbb1f797ca3dac1 Author: Ondrej Filip Date: Tue Apr 28 10:20:50 2009 +0200 Gendist script adapted to git. commit 11e0568f8b7a51584c7d0fa60368050dfba17193 Author: Ondrej Zajicek Date: Tue Apr 28 09:46:59 2009 +0200 NEWS and version update commit 64cf11f544257cae443d899111be1299b1ec0684 Author: Ondrej Zajicek Date: Thu Apr 23 23:15:07 2009 +0200 Fixes BGPv6 bug - missing endianity conversion. Also removes code skipping SNPAs (obsoleted by newer RFCs, should be ignored). commit f307842ad85396f8186fa049d551b6cde9925484 Author: Ondrej Zajicek Date: Thu Apr 23 14:44:02 2009 +0200 Fixes BGPv6 bug - mandatory attributes weren't validated; commit 8f0c887a52fb19cee14725f66d435cebf2010390 Author: Ondrej Zajicek Date: Thu Apr 23 14:16:05 2009 +0200 Fixe bug in BGPv6 that causes to send invalid network withdraws. commit b9539e78d8ebfa9e13d7b61ec9278b76abefdac3 Author: Ondrej Zajicek Date: Thu Apr 23 12:36:24 2009 +0200 Fixes bug in BGPv6 causing crash by checking missing attributes. commit e366625c0ef21d02caf2dab1935862ace1e10fed Author: Ondrej Zajicek Date: Fri Apr 17 18:43:11 2009 +0200 Fixes mixed-up messages on netlink socket Under specific circumstances there might be two mixed-up netlink sessions (one for scan, the other for route change request). This patch separates netlink scans and requests to two fds (and seq counters). This should fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428865 commit c8a6b9a3d199444fd45879dd5cc5ececd9624822 Author: Ondrej Zajicek Date: Fri Apr 17 01:48:36 2009 +0200 Rewrite of buggy AS path matching. Old AS path maching supposes thath AS number appears only once in AS path, but that is not true. It also contains some bugs related to AS path sets. New code does not use any assumptions about semantic structure of AS path. It is asymptotically slower than the old code, but on real paths it is not significant. It also allows '?' for matching one arbitrary AS number. commit 024c310b537abc3ddbac3054de71fd759d422824 Author: Ondrej Zajicek Date: Wed Apr 8 20:15:01 2009 +0200 Fixes broken cryptographic authentication in OSPF Cryptographic authentication in OSPF is defective by design - there might be several packets independently sent to the network (for example HELLO, LSUPD and LSACK) where they might be reordered and that causes crypt. sequence number error. That can be workarounded by not incresing sequence number too often. Now we update it only when last packet was sent before at least one second. This can constitute a risk of replay attacks, but RFC supposes something similar (like time in seconds used as CSN). commit b722fe7ebdf7e11f097ed0a85302769de2ac10fb Author: Ondrej Zajicek Date: Mon Apr 6 16:53:06 2009 +0200 Fixes bug in OSPF packet retransmission. If a DBDES packet from a master to a slave is lost, then the old code does not retransmit it and instead send a next one with the same sequence number. That leads to silent desynchronization of LSA databases. commit 8298d780be5a5b00c31c10a37a5f3a1353d6e234 Author: Ondrej Zajicek Date: Mon Apr 6 16:17:47 2009 +0200 Better OSPF packet tracing log messages. Replaces old OSPF packet tracing messages with uniform messages with packet dumps. commit bcb81251b4e37b96743aa1cdf790f30ef41a465e Author: Ondrej Zajicek Date: Tue Mar 31 21:30:58 2009 +0200 Documentation update commit c60cdd8c3926a1b3d9156327e8aae64986084ff4 Author: Ondrej Zajicek Date: Tue Mar 31 21:17:00 2009 +0200 Cleanup changes commit b1a597e0c3821c791a41278454e74261cf1b95fb Author: Ondrej Zajicek Date: Tue Mar 31 12:55:57 2009 +0200 Reimplementation of prefix sets. Prefix sets were broken beyond any repair and have to be reimplemented. They are reimplemented using a trie with bitmasks in nodes. There is also change in the interpretation of minus prefix pattern, but the old interpretation was already inconsistent with the documentation and broken. There is also some bugfixes in filter code related to set variables. commit 1733d080c9f60de69e843f22e138f27240a8176c Author: Ondrej Zajicek Date: Wed Mar 25 19:15:26 2009 +0100 Minor text updates. commit 40b65f947aed065c03c5f2d5c66c6c794a5aadda Author: Ondrej Zajicek Date: Wed Mar 25 19:05:52 2009 +0100 Fixes bug in pipe route filtering. Routes comming through pipe from primary to secondary table were filtered by both EXPORT and IMPORT filters, but they should be only filtered by EXPORT filters. commit 4d7d0cb137b700a17751b5a565539357304f9080 Author: Ondrej Zajicek Date: Wed Mar 25 18:29:17 2009 +0100 Fixes minor bug in pipe. Missing macro leads to not calling some of protocol's callbacks. commit 3d574679b8cceb1362bb973e7dfe9981fc93b79b Author: Ondrej Zajicek Date: Fri Mar 20 12:58:21 2009 +0100 Fix bugs related to kernel table synchronization. KRF_INSTALLED flag was not cleared during reconfiguration that lead to not removing routes during reconfigure when export rules changed. We also should not try to remove routes we didi not installed, on Linux this leads to warnings (as kernel checks route source field and do not allow to remove non-bird routes) but we should not rely on it. commit 48d79d521cc13f11eafa129a4216512403b83115 Author: Ondrej Zajicek Date: Wed Mar 18 20:30:21 2009 +0100 Better handling of AS4 optional attribute errors AS4 optional attribute errors were handled by session drop (according to BGP RFC). This patch implements error handling according to new BGP AS4 draft (*) - ignoring invalid AS4 optional attributes. (*) http://www.ietf.org/internet-drafts/draft-chen-rfc4893bis-02.txt commit eb875dbbe1afaceaf3645384f2a35c98b4c5b5f6 Author: Ondrej Zajicek Date: Sat Mar 14 22:18:49 2009 +0100 Documentation fixes. commit ad586334d51a0aef9de868e9586198e402576599 Author: Ondrej Zajicek Date: Sat Mar 14 14:01:39 2009 +0100 Path related documentation update commit cf1860349182503523975fb8084d514407a75fb4 Author: Ondrej Zajicek Date: Sat Mar 14 12:43:10 2009 +0100 New syntax for bgp_path commit f16ad72ed76c398f081b97b09d56f4b199822464 Author: Ondrej Zajicek Date: Fri Mar 13 14:19:03 2009 +0100 Update NEWS commit e8ba557c7f66aaf02dd24f554fba8b3607c2b3d5 Author: Ondrej Zajicek Date: Fri Mar 13 12:49:44 2009 +0100 Update capability handshake options Add 'capabilities' option, change default behavior to advertise ipv4, add some checks and ignore incoming capabilities when capabilities are disabled. commit e3299ab14877de6ce688050e550c44cd4e85b212 Author: Ondrej Zajicek Date: Thu Mar 5 11:52:47 2009 +0100 Added Cisco and Quagga capability workaround option. commit 82a79586e5810af2f0338cb4c5982e085b5c5292 Author: Ondrej Zajicek Date: Fri Feb 27 15:24:46 2009 +0100 Better handling of too long attributes This patch extends the length for attributes from 1024 to 2048 (because both AS_PATH and AS4_PATH attributes take 2+4 B per AS). If there is not enough space for attributes, Bird skips that route group. Old behavior (skipping remaining attributes) leads to skipping required attributes and session drop. commit cb5303927188de9504a6e18aedec299956a22b6f Author: Ondrej Zajicek Date: Thu Feb 26 14:23:54 2009 +0100 Rate limit for most abundant log messages commit a9dc5e1ef2fd08c53bceb54690f6dac83ddf0c81 Author: Ondrej Zajicek Date: Wed Feb 25 16:28:21 2009 +0100 Fixes another bug in packet retransmissions. When slave was in full state, it didn't retransmit lost packets. That leads to OSPF connection locked in states loading-full. commit 82ba9032be9cf1210ffffd01245b99ce5d9b6b1b Author: Ondrej Zajicek Date: Sat Feb 21 22:46:50 2009 +0100 Fixes crash during some expressions Bird crashed when 'bgp_path.len' was used for routes that does not came from BGP. commit cd17c651a60c30837b683f8ca6e07139dc57d882 Author: Ondrej Zajicek Date: Sat Feb 21 17:47:56 2009 +0100 Add format for BGP_AGGREGATOR attribute commit 25cb9f1d0165df5e86956021cc3e6ee87730ef3b Author: Ondrej Zajicek Date: Sat Feb 21 16:20:45 2009 +0100 Fix bug in empty bgp mask handling commit e312bb4014d5b4ccc706c737f4362ac6ca1046ee Author: Ondrej Zajicek Date: Thu Feb 12 21:53:44 2009 +0100 Documentation update commit d901db3fb72860d4669793bfb1af3a9aa7a27b91 Author: Ondrej Zajicek Date: Thu Feb 12 19:46:51 2009 +0100 Fixes bug in packet retransmissions. When packet was lost during dbdes exchange, slave did not retransmit it. That leads to OSPF connection locked in states exchange-exstart. commit b807ef9a15db2a5db14f68011923975dfc472f49 Author: Ondrej Zajicek Date: Thu Feb 12 13:43:06 2009 +0100 Fixes bug in protocol state machine Scheduling flush must be done before resource pool freeing as it frees some allocated list nodes from a global list. commit 80ac7dc18145baa04a05eee3a69d325087cb9472 Author: Ondrej Zajicek Date: Thu Feb 12 13:41:34 2009 +0100 Do not use ? for client-side help when in new BGP path syntax commit f9491630390da4de138961354433635729668b7d Author: Ondrej Zajicek Date: Tue Jan 27 17:35:00 2009 +0100 New syntax for bgp_path commit 11ec0f1a5171c556dec09e90c20af12f45a6d902 Author: Ondrej Zajicek Date: Fri Jan 16 12:49:51 2009 +0100 Fixes compilation on older systems. Older kernel headers (the ones in Debian Sarge) does not have __kernel_sockaddr_storage . commit e3c460bc9034b30743dd861ddbdbc026cd2997b5 Author: Ondrej Zajicek Date: Fri Jan 16 12:08:07 2009 +0100 Fixes some past config grammar update that caused password related regression. commit 3b108f18e8c151d9c570fd418fc822c1e9ad5e79 Author: Ondrej Zajicek Date: Fri Jan 16 10:58:52 2009 +0100 One null-pointer dereference bugfix hidden in whitespace changes commit 0dd7ccc7669834495c637f5055f2cd783367f8f9 Author: Ondrej Zajicek Date: Tue Jan 13 19:25:27 2009 +0100 Fix typo. commit 0844b65d13d7a5928d425e9adaf28de63550a542 Author: Ondrej Zajicek Date: Tue Jan 13 19:15:49 2009 +0100 Fix OSPF protocol error recovery behavior. When OSPF neighbor state drops down to EXSTART, clear LSA request and retransmit lists, as specified by RFC. I hope that this will prevent oscillations between EXSTART and LOADING states, which sometimes happened. It also contains related fix from Yury Shevchuk that properly resets DB summary list iterator. commit f15cb99c79034fbd98d90b104bd6267e6c2fec81 Author: Ondrej Zajicek Date: Mon Jan 12 23:42:51 2009 +0100 Add check detecting packet overwrite in TX buffer. commit 02a9eeeb8547b3f0940a0295df8a78ce2181ec30 Author: Ondrej Zajicek Date: Mon Jan 12 14:40:21 2009 +0100 Slist update commit 23d6702952841184d364a5520dbe6be7a1a5d14b Author: Ondrej Zajicek Date: Sun Jan 11 12:14:27 2009 +0100 Some fixes and update of OSPF debug messages commit 0e9617e400d54f6f5119a24e7380b7719c2fc3dd Author: Ondrej Zajicek Date: Sun Jan 11 10:51:54 2009 +0100 Move check for NULL before usage of variable. commit f20907adf60960f63b797f4423b4790e8591e99c Author: Ondrej Zajicek Date: Sun Jan 11 10:47:41 2009 +0100 Fixes bug in OSPF Checksum was not recalculated when LSA was changed and packets with bad checksum were sent. commit 330aecead80140b0016d6de56dad1d193be774c8 Author: Ondrej Zajicek Date: Thu Dec 25 17:49:57 2008 +0100 Bugfix in interpret Missing cases in filter code interpret leads to crash when bgp_next_hop attr was queried. commit 083c43e22efb5353a258827a9e6f2f995cfe822d Author: Ondrej Zajicek Date: Thu Dec 25 11:55:27 2008 +0100 fixes some 64-bit related bugs. Filter code used 'aux' integer field of 'symbol' struct to store ptr to next symbol and both 'aux2' and 'def' fields for value. Changed to just 'def' for value and 'aux2' for ptr to next symbol. Also another minor bugfix. commit 165a62272720071ca5e9ed1badfddc78b7a7af10 Author: Ondrej Zajicek Date: Wed Dec 24 17:24:41 2008 +0100 Adds support for fallback to capabilityless BGP connect When capability related error is received, next connect will be without capabilities. Also cease error subcodes descriptions (according to [RFC4486]) are added. commit 591211557f4106ed9e877fa9b80eb56ffb99fef3 Author: Ondrej Zajicek Date: Wed Dec 24 12:18:10 2008 +0100 Fixes bug related to reconfiguration of BGP. BGP keeps its copy of configuration ptr and didn't update it during reconfiguration. But old configuration is freed during reconfiguration. That leads to unnecessary reset of BGP connection during reconfiguration (old conf is corrupted and therefore different) and possibly other strange behavior. commit 11b32d911715cbfb3ce4c87685b1388e4b0de1c4 Author: Ondrej Zajicek Date: Fri Dec 19 01:34:39 2008 +0100 Major changes to BGP Fixes two race conditions causing crash of Bird, several unhandled cases during BGP initialization, and some other bugs. Also changes handling of startup delay to be more useful and implement reporting of last error in 'show protocols' command. commit b933281ed5efb9ad9375c3ea41ee2412b9f89c15 Author: Ondrej Zajicek Date: Thu Dec 18 23:26:08 2008 +0100 Fixes nasty bug in event processing. WALK_LIST_DELSAFE (in ev_run_list) is not safe with regard to deletion of next node. When some events are rescheduled during event execution, it may lead to deletion of next node and some events are skipped. Such skipped nodes remain in temporary list on stack and the last of them contains 'next' pointer to stack area. When this event is later scheduled, it damages stack area trying to remove it from the list, which leads to random crashes with funny backtraces :-) . commit 35164c501722f07beef21178b19090fa9d1930cd Author: Ondrej Zajicek Date: Fri Dec 12 17:48:03 2008 +0100 rx_hook may be cleaned in some callback so we check it before executing sk_read(). commit d6a836f8d673a117fd19136d24e98fa9bbc4b27e Author: Ondrej Zajicek Date: Mon Dec 8 12:24:55 2008 +0100 Fixes core state machine. The core state machine was broken - it didn't free resources in START -> DOWN transition and might freed resources after UP -> STOP transition before protocol turned down. It leads to deadlock on olock acquisition when lock was not freed during previous stop. The current behavior is that resources, allocated during DOWN -> * transition, are freed in * -> DOWN transition, and flushing (scheduled in UP -> *) just counteract feeding (scheduled in * -> UP). Protocol fell down when both flushing is done (if needed) and protocol reports DOWN. BTW, is thera a reason why neighbour cache item acquired by protocol is not tracked by resource mechanism? commit fbde6c39084637c2f3f4d31261a44dbf367958d1 Author: Ondrej Zajicek Date: Sat Nov 22 01:12:22 2008 +0100 Fixes race condition leading to memory corruption and crash. When protocol started, feeding was scheduled. If protocol got down before feeding was executed, then function responsible for connecting protocol to kernel routing tables was called after the function responsible for disconnecting, then resource pool of protocol was freed, but freed linked list structures remains in the list. commit 35f983f88912eadb1e0b25d800693256cbee33ce Author: Ondrej Zajicek Date: Fri Nov 21 18:17:03 2008 +0100 Fixes segfault with multiple routing tables. commit 661ec5db7fa047d883997d0b2cbdd71659f80777 Author: Ondrej Zajicek Date: Fri Nov 21 13:05:12 2008 +0100 I am not sure whether this is proper fix for a problem that birdc shows only parts of larger outputs (for example 'show route all'). It seems that birdc reads (from bird) and writes (to stdout) everything but during execution of some readline code some already written output disappeared (although it is fflush()ed and tcdrain()ed). As birdc reads from stdin when select said there are some data, O_NONBLOCK for stdin is unnecessary and when it is removed, i didn't notified this problem. commit eac21b46f7cf0f704c976f2ffdb289837ad100cc Author: Ondrej Zajicek Date: Fri Nov 21 13:01:05 2008 +0100 This is bug, isn't it? commit e00115904ff7c1854957117d52a6db484050965b Author: Ondrej Zajicek Date: Fri Nov 21 12:59:03 2008 +0100 birdc died during terminal resize because of unhandled EINTR in select loop. commit 44711e0ca2658da080e04ce7e208a78c9b20e927 Author: Ondrej Zajicek Date: Sun Nov 16 22:16:04 2008 +0100 Fix some bugs in filter interpret. commit ebacaf6f7b4418dd283fd3e39b84e48e331a6a66 Author: Ondrej Zajicek Date: Sun Nov 16 11:35:30 2008 +0100 Fix bug in AS path matching commit 258d0ad4ca550895a1ef20fc478c0160be5374f2 Author: Ondrej Zajicek Date: Fri Nov 14 23:03:15 2008 +0100 Fixes feeding of new protocol, only preferred routes are announced. commit 3f670371cfeef155256a8a77ac5581accee13b05 Author: Ondrej Zajicek Date: Fri Nov 14 21:13:56 2008 +0100 OSPF routes appeared with random value of ospf_tag attribute. This patch fixes it. commit e29fa06ece1bf9f9a47f224db797df940556136e Author: Ondrej Zajicek Date: Fri Nov 14 14:50:37 2008 +0100 New read-only route attribute 'proto' added. It returns a string representing a name of the protocol that originated the route. Strings can be compared using = or matched using ~. Routes can be filtered, for example: show route where proto ~ "bgp1*" commit aebe06b40ce730a88cc8a3121be1944b3ddf5765 Author: Ondrej Zajicek Date: Sat Nov 8 23:33:22 2008 +0100 Proper format functions for ORIGINATOR_ID, CLUSTER_LIST commit b21f68b4cd4794c84e5f0eb2c34204c87ccf0e9a Author: Ondrej Zajicek Date: Sat Nov 8 17:24:23 2008 +0100 Fix bugs in OSPF MD5 authentication. First bug is that default values for MD5 password ID changed during reconfigure, Second bug is that BIRD chooses password in first-fit manner, but RFC says that it should use the one with the latest generate-from. It also modifies the syntax for multiple passwords. Now it is possible to just add more 'password' statements to the interface section and it is not needed to use 'passwords' section. Old syntax can be used too. commit 08cca48a149bd6d5210659daf220b6dae87a43b3 Author: Ondrej Zajicek Date: Thu Nov 6 19:13:55 2008 +0100 Uprava configure commit fd91ae3325adfdc83f95a284caa746c000ad7e30 Author: Ondrej Zajicek Date: Wed Nov 5 22:36:49 2008 +0100 Fix problem with local time changes. commit 1389f3699fc643dac6fd4d2f19fb59da3624a2fa Author: Ondrej Zajicek Date: Wed Nov 5 21:39:04 2008 +0100 Fixes bugs in IPv6 code caused by recent commits. commit baa9ef18c62612bd91a8362ef20427046105c113 Author: Ondrej Zajicek Date: Tue Nov 4 14:52:47 2008 +0100 These warnings are so abundant (because char * / byte * mix) that they are completely useless. commit 6c8102e3a8bf8ae4c15d383f0bd31294dd2ef76e Author: Ondrej Zajicek Date: Tue Nov 4 14:51:45 2008 +0100 Ignore messages related to wireless extensions. commit a39b165e45fbfea053fd0237e0d5a3ebdcf40f78 Author: Ondrej Zajicek Date: Sat Nov 1 16:58:40 2008 +0100 Multihop BGP was completely broken, because listening socket has always ttl 1. commit a92fe607173b52cf28256f00399953c623788c35 Author: Ondrej Zajicek Date: Sat Nov 1 12:55:43 2008 +0100 Implementation of route server. commit e16466b379be2b94c84b351a69e63b6de5be9dc5 Author: Ondrej Zajicek Date: Wed Oct 29 14:16:34 2008 +0100 Fix race condition that breaks BGP connections after reconfigure. RFC says that only connections in OpenConfirm and Established state should participate in connection collision detection. The current implementation leads to race condition when both sides are trying to connect at the almost same time, then both sides receive OPEN message by different connections at the almost same time and close the other connection. Both connections are closed and the both sides end in start/idle or start/active state. commit f0ad56f4414fef2781339cfa41704f7bf4c61ad2 Author: Ondrej Zajicek Date: Tue Oct 28 16:10:42 2008 +0100 Fixes some sloppiness of commit a3b70dc499b64f41aa776b5b4afee5c7bfb8dfa6. commit a98fbf0f12b5e83e25afa0f585ca6a4d4ac5f6bf Merge: a3b70dc 1567ede Author: Ondrej Zajicek Date: Mon Oct 27 00:20:22 2008 +0100 Merge branch 'dev' into out commit a3b70dc499b64f41aa776b5b4afee5c7bfb8dfa6 Author: Ondrej Zajicek Date: Mon Oct 27 00:03:30 2008 +0100 Two new informative CLI commands for OSPF. Two new CLI commands for OSPF giving nice informative (and still machine parsable) representation of OSPF network graph (based on datas from the LSA database). The first command (show ospf topology) shows routers, networks and stub networks, The second command (show ospf state) shows also external routes and area-external networks and routers propagated by given area boundary router. commit 68fa95cfec78f1bfe790949bf747d578ad583ec2 Author: Ondrej Zajicek Date: Sun Oct 26 23:55:38 2008 +0100 Check of socket name length commit 52586ccdf17cd9f34f767718d97f8a258da5efdb Author: Ondrej Zajicek Date: Sun Oct 26 23:53:05 2008 +0100 Missing newline. commit a97122a3caff40bf35e6019a9b60d5e5ef35a84f Author: Ondrej Zajicek Date: Sun Oct 26 23:43:13 2008 +0100 Bugfix in LSA origination for PTP OSPF links. The code generating LSAs for PTP OSPF links is buggy. The old behavior is that it generates PTP link if there is a full/ptp neighbor and stub link if there isn't. According to RFC 2328, the correct behavior is to generate stub link in both cases (in the first case together with PTP link). And because of buggy detection of unnumbered networks, for numbered networks the code creates stub links with 0.0.0.0/32. commit 4c94a6c7e78fb75a9952d891db9d47605f8a26e1 Author: Ondrej Zajicek Date: Sun Oct 26 23:23:09 2008 +0100 Do not repeat 'Invalid broadcast address' error message. 'Invalid broadcast address' error is reported only once for an interface and not during every interface scan. commit d7f3b306495327e76aa9ae381c6c7575104e0e24 Author: Ondrej Zajicek Date: Sun Oct 26 23:20:50 2008 +0100 Ignore unknown netlink events. Bird sometimes reported 'bird: nl_parse_link: Malformed message received'. The cause is that bird asynchronously received netlink packet from wireless driver about some wireless event on its link layer. In that case bird shouldn't complain. commit 1567edea8d3da7da08092eef15bb3bd4544c6464 Author: Ondrej Zajicek Date: Sun Oct 26 23:09:46 2008 +0100 Bugfix for routing table breaking bug. Here is a patch fixing a bug that causes breakage of a local routing table during shutdown of Bird. The problem was caused by shutdown of 'device' protocol before shutdown of 'kernel' protocol. When 'device' protocol went down, the route (with local network prefix) From different protocol (BGP or OSPF) became preferred and installed to the kernel routing table. Such routes were broken (like 192.168.1.0/24 via 192.168.1.2). I think it is also the cause of problem reported by Martin Kraus. The patch disables updating of kernel routing table during shutdown of Bird. I am not sure whether this is the best way to fix it, I would prefer to forbid 'kernel' protocol to overwrite routes with 'proto kernel'. The patch also fixes a problem that during shutdown sometimes routes created by Bird remained in the kernel routing table. commit b6bf284a905412cfe107b4967e55649e6194187e Author: Ondrej Zajicek Date: Sun Oct 26 22:59:21 2008 +0100 Bugfixes in MULIT_EXIT_DISC attribute handling. - Old MED handling was completely different from behavior specified in RFCs - for example they havn't been propagated to neighboring areas. - Update tie-breaking according to RFC 4271. - Change default value for 'default bgp_med' configuration option according to RFC 4271. commit 4819c3e17ac22c6810ee80261ac3bffb5127e39d Author: Ondrej Zajicek Date: Sun Oct 26 22:54:23 2008 +0100 Bugfix in LOCAL_PREF attribute handling. commit 1adc17b4b57267e301fcd67309494bbbddbfa718 Author: Ondrej Zajicek Date: Sun Oct 26 22:52:21 2008 +0100 Update of a documentation - new options for AS4, MD5 auth and route reflection. commit ba5ed6f3e4eb4b2899cdad08e2edb99063bfbcee Author: Ondrej Zajicek Date: Sun Oct 26 22:48:02 2008 +0100 Implementation of an option for disabling AS4 support per BGP instance. commit 4847a894bf7d4852325c3f1ea4bb4890054a1f66 Author: Ondrej Zajicek Date: Sun Oct 26 22:45:09 2008 +0100 Implementation of route reflection for BGP commit d51aa2819005a03e4cfb6f62333be6ccadfb3c06 Author: Ondrej Zajicek Date: Sun Oct 26 22:42:39 2008 +0100 Implementation of MD5 authentication of BGP sessions. commit 11cb620266035ffbe17b21c4a174380cb8b6a521 Author: Ondrej Zajicek Date: Sun Oct 26 22:36:08 2008 +0100 Implementation of 4B ASN support for BGP commit 44cb1449edec6a80e063981a955e8025ee87ea65 Author: Martin Mares Date: Sun Oct 26 14:14:37 2008 +0100 The top-level Makefile is a generated file, so remove it from the repo. commit c94d56cb04b15dc32f54e8e39b877a92d7bda8c5 Author: Martin Mares Date: Sun Oct 26 14:11:06 2008 +0100 Updated version number in the README. commit 226cb2bc3ff573c4c027d525a96aa2b10a28b817 Author: Ondrej Filip Date: Mon Aug 25 12:51:06 2008 +0000 Expand ospf dump information. commit 97c6fa02e089e3fb057185fe5937297afc5a11ec Author: Ondrej Filip Date: Mon Aug 25 12:06:20 2008 +0000 Previous patch reverted. :-( commit 73e53eb555a58846c4d2db6464d41d1761a60169 Author: Ondrej Filip Date: Mon Aug 25 12:00:55 2008 +0000 Endianity problem in debug message fix. commit 030e3a79cb9376fa85597fdb8243299cd843ca3a Author: Ondrej Filip Date: Mon Aug 25 11:57:46 2008 +0000 Buffer overflow fix. commit 057021df0d699f9c21368ab0fa51fe821cc9a544 Author: Martin Mares Date: Mon Aug 25 11:19:49 2008 +0000 Fix behavior of ipa_opposite(). It was giving wrong results on /30 networks. commit 6c36c4b66be5c67a8d5cfa9578aa5a85ebebab6d Author: Martin Mares Date: Mon Aug 25 11:14:14 2008 +0000 Updated config.{guess,sub} to a recent version. Patch from the Debian package. commit 3c3271d9fce8cdd614f1d1b24bcebb3599aad930 Author: Ondrej Filip Date: Sun Aug 24 23:24:14 2008 +0000 Close fd of config file after reconfiguration. commit 85ae398a61184d8f7a353eacaa6aefd3422dfd71 Author: Ondrej Filip Date: Sun Aug 24 23:20:46 2008 +0000 The source address configuration in BGP added. commit a456788bce7f9d1e54b19ffbfd35b8fa889c4b47 Author: Ondrej Filip Date: Wed Jun 20 12:32:39 2007 +0000 New version of flex needs argument separated. commit 8411a37e7dc72a5fd2e4fb68d1c557dc89253973 Author: Martin Mares Date: Wed Jun 20 07:33:26 2007 +0000 Detach from the TTY properly. commit 4b1cf69e765b19ebc0cb988be08910c156c76376 Author: Ondrej Filip Date: Wed Mar 16 16:09:28 2005 +0000 Again back to regina.gin.cz. commit c81b4ec36105ff036a7e2423936ab5773011fed1 Author: Ondrej Filip Date: Wed Mar 16 16:08:40 2005 +0000 Yes, we will go for 1.0.12 commit f39e3bfdbff318b3a889f42acfb589e9dfd34c2f Author: Ondrej Filip Date: Tue Mar 15 23:42:41 2005 +0000 Small bugfix in tracing. commit 94c42054ea65d10477afc76f221e3ac345a431eb Author: Ondrej Filip Date: Tue Mar 15 22:06:36 2005 +0000 Added new parametr 'rx buffer '. BIRD is able to receive very large packets (if configured). commit e6ea2e375e4c547ca1b6fc9c313c2b7940acbd77 Author: Ondrej Filip Date: Tue Mar 15 20:51:33 2005 +0000 Maximal packet size in virtual links is 576. commit e300066d5f66b8bd1d5561d63c10a8fbdce3ba8e Author: Ondrej Filip Date: Mon Mar 14 11:24:56 2005 +0000 OSPF can accept larger packets than MTU. commit 427e59939bc72c79f1566167b337927b14cb1715 Author: Ondrej Filip Date: Mon Mar 14 11:07:10 2005 +0000 Look for large packets. commit a2d5b405d41c212993e47d47607df3b708254c97 Author: Ondrej Filip Date: Mon Mar 14 10:59:52 2005 +0000 Bugfix in external routes calculation. commit f735de0290ce9a8f119f3d72bdde5a16dafe27ad Author: Ondrej Filip Date: Mon Feb 21 14:06:22 2005 +0000 Small typos in documentation. commit 129e912924b7726166b9ff5925a9dff84ee511f9 Author: Ondrej Filip Date: Mon Feb 21 10:22:57 2005 +0000 Ftp server change. commit 89478fe3ab6d07b824adbd4c8ed997ccaca5c7b4 Author: Ondrej Filip Date: Mon Feb 21 10:04:37 2005 +0000 Change of ftp servers. commit 39fc85b4c63582b56c4f96de49d0c6aad03c4086 Author: Ondrej Filip Date: Sun Feb 20 19:03:34 2005 +0000 Unused code deleted. commit 63ca37f3139505a1881bf2c343f18d4ed8e22ce4 Author: Ondrej Filip Date: Sun Feb 20 18:56:06 2005 +0000 Cleanup - all unused variables deleted. commit efc9e1b78b9332a0a8dfce31f1ef8efc82edc63d Author: Ondrej Filip Date: Sun Feb 20 17:04:00 2005 +0000 Some tasks are fulfilled. :-) commit 52d61a84989cc40140e7e8b5fc294ac48d4e0245 Author: Ondrej Filip Date: Sun Feb 20 16:54:09 2005 +0000 Intelligent reconfiguration should work again. commit dafaef9ba9e7b46b9ff42b2cb75954a86f920951 Author: Ondrej Filip Date: Sun Feb 20 16:53:06 2005 +0000 Originate default route into stub areas. commit 028a4cfc02f425de34323082d800a39b7bbc51de Author: Ondrej Filip Date: Sun Feb 20 04:28:55 2005 +0000 Let's go for 1.0.11. commit d8c7d9e8846f025e42227c64e992a3a52ca7dfb4 Author: Ondrej Filip Date: Sun Feb 20 04:27:56 2005 +0000 Since now I can also use 'dead interval', not just 'dead counter'. commit 7de7470a2a6c649ce4d4ce52146e84e6638ebf58 Author: Ondrej Filip Date: Sun Feb 20 03:37:47 2005 +0000 Bugfix - count courrectly next hop on single hop virtual link. commit 6eb4b73fe829cf5da56d8990c33e5c7edaa19d77 Author: Ondrej Filip Date: Sun Feb 20 03:30:44 2005 +0000 Time of neighbor's dead was not shown correctly. commit 5506c82ce6123f70220f2d84ff21269bb832bfac Author: Ondrej Filip Date: Fri Feb 18 19:36:32 2005 +0000 Bugfix in previous bugfix. commit 60e04f041303fdafd0abf0dec003a9745345c68a Author: Ondrej Filip Date: Fri Feb 18 18:51:42 2005 +0000 Minor bugfix: Summary LSA for aggregated area was always propagated with metric = 1. Now it's metric of most distant component. commit 27a1e3ac35bd3f6a9b5161eafb5b8178162a37f8 Author: Ondrej Filip Date: Tue Feb 15 16:17:42 2005 +0000 Minor bugfixes in routing table calsulation. commit 8ffc753441cd58acf46783de335062ed9af7a12e Author: Ondrej Filip Date: Tue Feb 15 06:32:31 2005 +0000 Minor changes to keep gcc happy. commit c025b85273178bc7c129bf54e420a91c775a9340 Author: Ondrej Filip Date: Mon Feb 14 23:15:04 2005 +0000 Real write is only in sk_maybe_write. Previous change partially reverted. Thank you MJ. commit 2eef9e887ad82976476ea81aa3a25d97c3956b87 Author: Ondrej Filip Date: Mon Feb 14 21:34:46 2005 +0000 Be more verbose in log. commit 7c49f715593ad7bbe0a4fb86284e2023f7b65bc1 Author: Ondrej Filip Date: Mon Feb 14 21:28:51 2005 +0000 Added s->err_hook wrapper that empties socket. commit 030d3b387edae4a30fb524ed839be020b7b8df8e Author: Ondrej Filip Date: Mon Feb 14 11:58:46 2005 +0000 Small changed to reduce the number of warnings. commit b181f444a6538b03a02296f02928e3c131b251a6 Author: Ondrej Filip Date: Mon Feb 14 11:54:16 2005 +0000 Small changes to reduce number of warnings. commit 75c1c585197f2b4a1b0295d36fe16a4869c21914 Author: Ondrej Filip Date: Mon Feb 14 11:37:40 2005 +0000 Yes, I'd like to go to 1.0.10 commit 5d3f555234d7144272e3081665411d098280d5ad Author: Ondrej Filip Date: Sun Feb 13 23:36:31 2005 +0000 Many bugfixes in routing table calculation and summary LSA origination. commit 0d3effcf8ca3784c36ce6229343ddfd754e405dc Author: Ondrej Filip Date: Sat Feb 12 22:27:55 2005 +0000 Time added in password management. commit 89ba9a18068dc83557e03c58bf280f4dc203271d Author: Ondrej Filip Date: Sat Feb 12 22:22:18 2005 +0000 Bugfix in inter-area route calculation and summary LSA origination. Bugfix of some debugging commands. commit bae7c43ff35482807654519253b1daa0a6518951 Author: Ondrej Filip Date: Sat Feb 12 22:19:46 2005 +0000 Bugfix in password acceptance commit 9912fa51c8dabbbdf068d271ee7bddfb4a8526ef Author: Ondrej Filip Date: Sat Feb 12 22:18:48 2005 +0000 Bugfix - cost of interface can be larger than 0xffff commit 4991756863538cc5168cc5f10b2599c84eafd8bf Author: Ondrej Filip Date: Wed Sep 15 19:33:01 2004 +0000 Dont check netmask field on PTP links. commit 8910351c76af983411e09e04aff86ea5d9940cf1 Author: Ondrej Filip Date: Wed Sep 8 16:06:07 2004 +0000 sort from GNU coreutils 5.2.1 doesn't accept the +- syntax anymore. Hopefully the -k syntax is supported by all other sort versions commit c6dce04bed40959b331a5b79aadd11c3b34d4af5 Author: Ondrej Filip Date: Wed Sep 8 16:04:02 2004 +0000 Bugfix. commit 27e3e5e0c95b068111bf00d7dceb473dc77a93f2 Author: Martin Mares Date: Thu Aug 19 09:15:36 2004 +0000 Do not forget to propagate LDFLAGS from configure. Allows static linking, among other things. commit 7715f9d9edb2cd5a230424881b1d5ec4e842738a Author: Ondrej Filip Date: Tue Aug 10 17:47:32 2004 +0000 Bugfix in config.y commit 56e2a4b776b0d013f71bff9fbf8550442c11df91 Author: Ondrej Filip Date: Thu Aug 5 18:06:30 2004 +0000 Bugfix in OSPF - BIRD sometimes failed during rt calculation with VLINKs. commit 6236beab1ec5ba61487c418119e01a933e1cacee Author: Ondrej Filip Date: Mon Aug 2 22:38:43 2004 +0000 Some more TODOs for OSPF. commit 8d94a524b637dbb1513c23daefa8411dcdc9a054 Author: Ondrej Filip Date: Fri Jul 16 08:27:11 2004 +0000 Added handling of STUB bool. commit 73089070e6e5c94ffac2da4c9e267ae9bcda2164 Author: Ondrej Filip Date: Fri Jul 16 08:01:32 2004 +0000 Typo. commit 002ecc063845243613eb1ff40c3aa2a46c7013a1 Author: Ondrej Filip Date: Fri Jul 16 07:22:43 2004 +0000 Bugfix - bird needed double ';' after rfc1583compat. commit 4e9742bb597225d7cefc0ee08270f76db29b65f1 Author: Ondrej Filip Date: Thu Jul 15 19:46:52 2004 +0000 Added note about *BSD. commit 6b68de07d9a4f1ad122e46dc40c6cdfd8b06ae4b Author: Ondrej Filip Date: Thu Jul 15 17:58:07 2004 +0000 News update to 1.0.9. commit 004cf4fc0ced85dba570173f372c51b1bf71dafe Author: Ondrej Filip Date: Thu Jul 15 17:28:13 2004 +0000 Minor bugfix to compile bird in IPv6. commit b37bb5ce03aed03d8b1bb0346f3277a93ff76da4 Author: Ondrej Filip Date: Thu Jul 15 16:48:12 2004 +0000 Minor bugfix - add interface routes. commit 28e8d862b7952419e6050230cf154d244a5bae51 Author: Ondrej Filip Date: Thu Jul 15 16:42:06 2004 +0000 Minor bugfix in calculation of external routes. commit 86c84d76b706e77ec5977a3c9e300b0fca9f6b10 Author: Ondrej Filip Date: Thu Jul 15 16:37:52 2004 +0000 Huge OSPF database redesign. Since now, all LSAs of all areas are in single database. This avoids duplication of external LSAs and fixes bug in external LSA distribution. commit 777acf91bb0d8ca0f33f367ae5fa00f46dde5a9a Author: Ondrej Filip Date: Wed Jul 14 21:47:39 2004 +0000 Everything is tested and works. I thins it's right time to go to 1.0.9. commit 3b16080c97a2d89c90f7df7a8fda0401ec9abe42 Author: Ondrej Filip Date: Wed Jul 14 21:46:20 2004 +0000 Multiple OSPF areas can be attached. Origination of summary LSA works. Routing table calculation works. Virtual links works. Well, I hope, OSPF is fully compatible with RFC2328!!!! commit a417ad13a117d2458702cbec4aa418ba99981611 Author: Ondrej Filip Date: Tue Jul 13 23:42:14 2004 +0000 Send hello just after interface is up. This makes the adjacency forming faster. Minor code clean up. commit 897999c22a85499e4e8a476e27469201645012fb Author: Ondrej Filip Date: Tue Jul 13 23:31:37 2004 +0000 Send hello as soon as possible after the interface is up. This helps to faster establish the adjacency. commit 490767adfce6207012f54f004babcb2aef7f33f8 Author: Ondrej Filip Date: Tue Jul 13 22:10:14 2004 +0000 Add more reasonable options to LSAs. (But it seems, that it's ignored.) commit fe1489e6c13a405b0c76c36213af4017dd4ea2ec Author: Ondrej Filip Date: Tue Jul 13 22:04:57 2004 +0000 Bugfix: Router was unable to advertise AS external routes. commit 62eee82321a9a0451eea9b41a478444ceb87ecb0 Author: Ondrej Filip Date: Tue Jul 13 21:27:33 2004 +0000 Default tick = 1. The today's CPU is fast enough. commit 35fdf4b6a2c3d8ad11be3a7d2525d653237fa3bf Author: Ondrej Filip Date: Tue Jul 13 21:22:32 2004 +0000 Don't inform us about every ospf_age() commit 16c2d48d8fe10521fd493886cf245c75d843fc69 Author: Ondrej Filip Date: Tue Jul 13 20:53:56 2004 +0000 Bugfix - RIP now updates routes with worse metric. commit bc956fcab678f591137cba2a0ebe80c0812437db Author: Ondrej Filip Date: Tue Jul 13 14:46:14 2004 +0000 MD5 authentication in OSPF works. :-) commit 32d3228d864cb6af8c679a7742f4b0a71c2facc0 Author: Ondrej Filip Date: Tue Jul 13 13:52:54 2004 +0000 Bugfix in simple authentification. commit 12dd8dc8779c13889a6860b769df7e0d68e7764c Author: Ondrej Filip Date: Tue Jul 13 12:21:24 2004 +0000 Bugfix - nasty bug in router LSA origination - Router did not describe all interfaces. commit 621ccdfe5acd2889956ec0f8e96b812acd09f168 Author: Ondrej Filip Date: Tue Jul 13 11:58:50 2004 +0000 Bugfix - options bits were not included in LSAs Bugfix - E bit was not unset on stub areas. commit 9baece57d308d9e0d8eaab9d068471e1884817b8 Author: Ondrej Filip Date: Thu Jul 8 16:56:49 2004 +0000 Syntax bugfix. commit 69b27ed6fd7794d36852764319e4dad19d4b6f87 Author: Ondrej Filip Date: Thu Jul 1 15:01:44 2004 +0000 Length calculation bugfix. commit 02ad2737fd24573d870a5009a624c9b3c49aa176 Author: Ondrej Filip Date: Thu Jul 1 15:01:26 2004 +0000 Password WALK_LIST bugfix. commit bc4ea680cea9eca46cd2c5f41db91c3014f90167 Author: Ondrej Filip Date: Thu Jul 1 15:01:04 2004 +0000 Hello reading bugfix. commit ea357b8b6de387a55930a3fc831b8ccbcef24582 Author: Ondrej Filip Date: Sat Jun 26 22:52:39 2004 +0000 Update of the documentation. (passwords and md5). Option for md5 auth in config. commit 3e2bd0f17aab3d2bd460d5f7aef4d3bc152ea1ab Author: Ondrej Filip Date: Sat Jun 26 20:15:34 2004 +0000 Md5 authentification added (unsested). Packet receiving clean up. commit 5236fb03afecd3d7a6ec6e96712c79a31be32132 Author: Ondrej Filip Date: Sat Jun 26 20:11:14 2004 +0000 Password management redesigned (untested). commit 98ac61766d81d9f20c4a7c7e12859c3b82b24f4c Author: Ondrej Filip Date: Fri Jun 25 16:39:53 2004 +0000 A lot of changes: - metric is 3 byte long now - summary lsa originating - more OSPF areas possible - virtual links - better E1/E2 routes handling - some bug fixes.. I have to do: - md5 auth (last mandatory item from rfc2328) - !!!!DEBUG!!!!! (mainly virtual link system has probably a lot of bugs) - 2328 appendig E commit 5ed68e46d781f8a14d3ef3ffd7fe3afc4a62260e Author: Ondrej Filip Date: Wed Jun 23 23:59:48 2004 +0000 Small typo changes. commit 973cf09c3b311691d063a00f52be7e9b8bdec376 Author: Ondrej Filip Date: Wed Jun 23 21:36:55 2004 +0000 Hotfix to problem with metric change reported by Luca. commit 3fe5f8990764b33cc0245317e90fbbcd0cde84de Author: Ondrej Filip Date: Wed Jun 23 21:34:26 2004 +0000 P->magic used just in LOCAL_DEBUG mode commit 09e4117cc19dd94efbdad6edde9bc7d715a58a9a Author: Ondrej Filip Date: Fri Jun 18 12:54:53 2004 +0000 sk_write bugfix for BSD. commit b4d8a0c280d34e6164a88d0e2f9ebf16fd5a1d68 Author: Ondrej Filip Date: Wed Jun 16 23:01:49 2004 +0000 Some cisco routers send shorter ospf messages in larger packets. Well it's strange, but, actually it's correct. commit 1a61882d370e6aef99ebc11d6bbc4e9dc48c6b95 Author: Ondrej Filip Date: Fri Jun 11 09:36:50 2004 +0000 Better routing table calculation. We are ready to work with multiple OSPF areas. commit b1f7229ad7d0b10fcc1fde6645c8b8ebbb3644a6 Author: Ondrej Filip Date: Fri Jun 11 09:34:48 2004 +0000 Better adjacency building, some minor bugfixes. commit 9a4b87905d727a518af04c16b8d7b603404098b7 Author: Ondrej Filip Date: Fri Jun 11 09:06:08 2004 +0000 Deleted RTS_OSPF_BOUNDARY commit 8bf684eca2de6ffd9ba797cad485e36db0b9548f Author: Ondrej Filip Date: Fri Jun 11 09:05:06 2004 +0000 RTS_OSPF_BONDARY is nonsense, RTS_OSPF_IA must have smaller id than RTS_OSPF_EXT commit 7df86c25fc6c871795265faebe02bf4dcecdd190 Author: Ondrej Filip Date: Wed Jun 9 12:39:49 2004 +0000 Better checking of configuration. commit b7e9c74cba36ed6932dbc30a4b9b0b9f9a06dba5 Author: Ondrej Filip Date: Mon Jun 7 16:51:23 2004 +0000 Used parameter can be marked as unused. :-) Thanx MJ. commit e02652a7d2e1f9bb599dbf9fa5862f03f4188efa Author: Ondrej Filip Date: Mon Jun 7 16:42:48 2004 +0000 Bugfix in RT calculation. commit 6721e2862bf69d3af7dd643cd9f442b76e134d5b Author: Ondrej Filip Date: Mon Jun 7 14:38:35 2004 +0000 Build and run both IPv4 and IPv6. commit ff61673427370c71d0a5f2d0d838f00ff46bbda1 Author: Ondrej Filip Date: Mon Jun 7 14:37:29 2004 +0000 Delete automate*cache. commit bf1b1b605b26202466f58b0572db5918acf8cf22 Author: Ondrej Filip Date: Mon Jun 7 13:07:12 2004 +0000 Let's go for release. commit 541cbe97633281b273ade8045b77834a5b6a1db4 Author: Ondrej Filip Date: Mon Jun 7 12:52:32 2004 +0000 It was too verbose. commit c90ac711bc5d1989dcb093088c74d062b43e9914 Author: Ondrej Filip Date: Mon Jun 7 10:42:24 2004 +0000 Cleanup in show route import

. commit 282997f21e6d40c840433128b198a19e9fdf41fb Author: Ondrej Filip Date: Mon Jun 7 10:00:29 2004 +0000 Some new warnings eliminated. commit 19d9e3033661b49cd4e4771166c45db2f1f24805 Author: Ondrej Filip Date: Mon Jun 7 09:52:15 2004 +0000 Marked unused parameters as unused. commit fb257e43fc23f9e0455444ef67c4be0dae22a713 Author: Ondrej Filip Date: Mon Jun 7 09:09:14 2004 +0000 Deleted some unused code. commit 5e3436d20ffdd95a164ffcb82f584fad76fb94e7 Author: Ondrej Filip Date: Sun Jun 6 19:53:52 2004 +0000 Cleanup in packet.c. Deleted unused parameters. commit d5d9693ce90c190ca7358b4ac71b9d034603a3ae Author: Ondrej Filip Date: Sun Jun 6 18:45:08 2004 +0000 Deleted unused parameters. commit e677d04aeb19e26da30e6a3ae94ad6e183d7af8e Author: Ondrej Filip Date: Sun Jun 6 17:20:16 2004 +0000 RPM is now able to build IPv4 and IPv6 bird. commit 41c8976e29bbf2986b063d1a8c5c8b386fae500e Author: Ondrej Filip Date: Sun Jun 6 17:05:25 2004 +0000 Test old instance of BIRD. commit cd09226078471cf9a2db4e755fbd5f6f137137c9 Author: Ondrej Filip Date: Sun Jun 6 17:03:56 2004 +0000 Be sure, that ospf_area is aged before routing table calculation. commit 933bfdde2a0bc4e31e74a3f9e03174b0287c03fb Author: Ondrej Filip Date: Sun Jun 6 16:14:57 2004 +0000 Keep al lSAs invalidated. commit 54a2178fd4c16189e7e0140c0a885b2cd6d2025e Author: Ondrej Filip Date: Sun Jun 6 16:05:14 2004 +0000 TODO updated. commit b8f17cf1923ff5894b6689479f7fb7d008b8ce44 Author: Ondrej Filip Date: Sun Jun 6 16:00:09 2004 +0000 Small cleanup, indentation and preparation for multiple areas routing table calculation. commit d631698ec8a63270f7ca9bc069508d1313a08f92 Author: Ondrej Filip Date: Sun Jun 6 14:27:11 2004 +0000 Indentation. commit d8d553cadfecab2a2f3d8a69624b5a743bd97ce3 Author: Ondrej Filip Date: Sun Jun 6 14:25:55 2004 +0000 This warning is stupid. commit 2e10a170fe70e405b5d6cb2cb53cd9a15de25b73 Author: Ondrej Filip Date: Sun Jun 6 09:37:54 2004 +0000 Indentation. commit 66261211a9c9abd5e1591f0875d16da1e3975fcb Author: Ondrej Filip Date: Sun Jun 6 09:13:37 2004 +0000 Struct area_net changed. commit b9ed99f738c10c0576a9ab8a70b028a92d0d74a7 Author: Ondrej Filip Date: Sun Jun 6 08:55:33 2004 +0000 Cleanup in iface.c commit a5918961f3a62c55857f811f712f861fa3d35d4f Author: Ondrej Filip Date: Sun Jun 6 08:12:42 2004 +0000 Be more verbose in troubles. commit 66004c91a89479abd3df89404afff62c5d60d4c3 Author: Ondrej Filip Date: Sat Jun 5 15:02:52 2004 +0000 Set size of the buffers. (Thanx MJ.) commit 9831e5916f6956377739f948869d377b091f5c92 Author: Martin Mares Date: Sat Jun 5 09:58:23 2004 +0000 Staticized lots of local functions. commit 598b984d1f04ea71fc04bc89f390f230a3960680 Author: Martin Mares Date: Sat Jun 5 09:58:06 2004 +0000 One less unused variable. commit 2f6de49f8c4d9c7ebd12554d386037e5b063beda Author: Martin Mares Date: Sat Jun 5 09:57:49 2004 +0000 Better prototypes. commit 54c411f6afeafb88649c565d252ab0245266eeee Author: Martin Mares Date: Sat Jun 5 09:57:35 2004 +0000 Add more warnings if --enable-warnings is turned on. (probably requires gcc-3.0 or newer, but I hope it's OK) commit 189dab54a211d2d92148d2aae7130df3a080e7c8 Author: Martin Mares Date: Sat Jun 5 09:29:38 2004 +0000 `defaut' should be `default'. commit 1512813e95a7edd2fad2834221dc1cb79aab6406 Author: Martin Mares Date: Sat Jun 5 09:28:17 2004 +0000 ... and a whole bunch of unused parameters and variables in ospf. commit c91fc9b6064e988e7526ecedd6b9e25f0204c4b7 Author: Martin Mares Date: Sat Jun 5 09:27:49 2004 +0000 ... and in rip (there are even unused functions!). commit 662faa4afc4d2f29bb884d0c7ad0aca9fc7de7c9 Author: Martin Mares Date: Sat Jun 5 09:27:35 2004 +0000 ... in pipe. commit e21423bab8a7cfc1cf5d13ab77ebebfae8ce156e Author: Martin Mares Date: Sat Jun 5 09:27:17 2004 +0000 ... in BGP. commit fab37e81971a08b550c6d63ff11f0bf34f0a9aa2 Author: Martin Mares Date: Sat Jun 5 09:27:02 2004 +0000 One more in the library. commit 6ecd20605c62e91069ecd014374836d8392ae948 Author: Martin Mares Date: Sat Jun 5 09:26:55 2004 +0000 ... and in the filter. commit d7390312d4e322e0dac3fefddd6033cb255933a4 Author: Martin Mares Date: Sat Jun 5 09:26:48 2004 +0000 Unused parameters in the client. commit 6578a60493f9dbf83d6485ac99635094bef2af7d Author: Martin Mares Date: Sat Jun 5 09:11:07 2004 +0000 Marked unused parameters in sysdep code as such. commit 7c103b1ee17a274fa062fcf4b14234b48db8123a Author: Martin Mares Date: Sat Jun 5 09:10:56 2004 +0000 Marked unused parameters in core code as such. commit e98bc2ea9b957287e78bc51e3293fc48a49c26b2 Author: Martin Mares Date: Sat Jun 5 09:05:12 2004 +0000 Renamed log() to log_msg(), but still keeping the old name as a macro. This is done to avoid clashes with gcc-3.3 which has built-in logarithms :) commit 5da8f82feb14512725e09664f6db96f03e3ece8f Author: Martin Mares Date: Sat Jun 5 09:01:12 2004 +0000 A better comment. commit c33d4cad9fbfb0b2a4b3ee699943d9955bcd9e3e Author: Martin Mares Date: Sat Jun 5 08:59:17 2004 +0000 Moved the tests for socket existence here. BTW, where do you exactly set the new buffer sizes? commit 4da25acb0ab964826f133025493a9b80d8bef509 Author: Martin Mares Date: Sat Jun 5 08:56:43 2004 +0000 Cleaned up sk_reallocate() and friends. Also, removed the `if (s)' test, because I believe that as the whole socket interface doesn't accent NULL pointers, sk_reallocate() shouldn't be the only exception. commit c6bdc78befaf5ae9e5e3c58a8df1301d5cafd4e7 Author: Ondrej Filip Date: Fri Jun 4 21:19:47 2004 +0000 Be more verbose. commit 6f3203fabf30b0e5ca7d41b4550efbc5df0b421a Author: Ondrej Filip Date: Fri Jun 4 21:05:43 2004 +0000 cleanup in lsupd.c, indenting, "struct proto" removed... commit 9b7de4c4d13a5701aac446627672e65fce9e1a9d Author: Ondrej Filip Date: Fri Jun 4 20:41:02 2004 +0000 'struct proto' removed Finally, I found the bug reported by Andreas Steinmetz. FIXED. commit 54467ed46b31e29215e50d32b0a757998de29793 Author: Ondrej Filip Date: Fri Jun 4 19:53:36 2004 +0000 Useless logs removed. commit 551e30886d7ed156d3fe98cc9562ffa2c22e4ce3 Author: Ondrej Filip Date: Fri Jun 4 19:21:19 2004 +0000 Bugfix in last patch. commit e7ef86a58cc5393ba764606b0ee6d760e6164f0c Author: Ondrej Filip Date: Fri Jun 4 18:51:29 2004 +0000 OSPF is ready for changing MTU. commit f158bb710b8be65b626f54399c8a5db8df9bd7b6 Author: Ondrej Filip Date: Fri Jun 4 18:24:15 2004 +0000 no comment commit 12bed559ffaccc7093188722899e4ac85521777e Author: Ondrej Filip Date: Fri Jun 4 17:49:25 2004 +0000 dbdes indent an minor changes. commit 85305e5d8f7137dc5ce4572d72e80ad186792b37 Author: Ondrej Filip Date: Fri Jun 4 17:32:38 2004 +0000 typo in README commit 874654076a9e3d2c36a248b3d3a4066dff76276b Author: Ondrej Filip Date: Fri Jun 4 17:31:03 2004 +0000 better log() usage. commit 27f49a2c3c2a86b4822ff1980d751666ed8cee97 Author: Ondrej Filip Date: Fri Jun 4 17:28:41 2004 +0000 lsreq.c indented and small 'struct proto' changes. commit 77539c4471d4b3f19347d2efc99680f815e1c78a Author: Ondrej Filip Date: Fri Jun 4 17:12:27 2004 +0000 hello.* reindented, code cleanup. commit 8e15e048f2e14dcdd9915860feace487e4ae07d5 Author: Ondrej Filip Date: Fri Jun 4 17:05:24 2004 +0000 Deleted useles "struct proto" sending. commit 7a03e29d5c7ff07c907ed0d4c4f1c226eba5941d Author: Ondrej Filip Date: Fri Jun 4 16:56:54 2004 +0000 Better log() usage. commit fb9bf6888c75adb88e5a8818161b89b207cf1f9f Author: Ondrej Filip Date: Fri Jun 4 16:55:53 2004 +0000 Indented. No other change. commit c76ba51a5fc7d61e18213f99d9c09502af0bc192 Author: Ondrej Filip Date: Fri Jun 4 16:30:04 2004 +0000 lsack.c cleaned. Better names for functions and DIRECT acks can be sent in one packet now. commit 28de5133ecdcb5b45dc251123047164fbb940e50 Author: Ondrej Filip Date: Fri Jun 4 15:45:35 2004 +0000 ackd_timer_hook moded to neighbor.c commit d03e8ce00b8fea374bbc06a4eb5254e911557e83 Author: Ondrej Filip Date: Fri Jun 4 15:26:46 2004 +0000 Fatal bug found. Sometimes BIRD did not originate router LSA. FIXED. :-) commit b90f9c526e553f1c30b9b177fc72c382ab333fc7 Author: Ondrej Filip Date: Fri Jun 4 14:23:58 2004 +0000 Initialize iterator on the right place. commit 18b40a40726bf6ec03e496a068faa8d173c27dd8 Author: Ondrej Filip Date: Fri Jun 4 14:23:21 2004 +0000 This can happen now. commit f9fdabe4f68685e6244e88524b2526958c56e44d Author: Ondrej Filip Date: Fri Jun 4 14:22:30 2004 +0000 Small reversing of previous patch. commit 3df1e80464ce5e6cea1b9a9500d1adbfe59cd564 Author: Ondrej Filip Date: Fri Jun 4 14:21:08 2004 +0000 Don't repeat "Sheduling rt calc....." commit d6c28f3ada7d2da8e762a1ed8e4fb70dfce2ca6f Author: Ondrej Filip Date: Fri Jun 4 14:03:30 2004 +0000 Code and comments cleanup. commit 39e517d47c6070dd81bb7d6f57358ea98e462f03 Author: Ondrej Filip Date: Fri Jun 4 12:53:10 2004 +0000 hello.c and hello.h cleaned up. No design changes. commit 591656cdd5b13a4626dfb26e45dd02690cdb450c Author: Ondrej Filip Date: Thu Jun 3 08:18:49 2004 +0000 Added source addr for multicast socket. commit 7d72aadb8acfac16e9b637e6ebb5ce288ebf1d77 Author: Ondrej Filip Date: Thu Jun 3 08:18:14 2004 +0000 CONFIG_SKIP_MC_BIND added. BSD hates it, Linux needs it. commit cb4dd4e2f78f806438bfb8163b783ac7b2f43b2d Author: Ondrej Filip Date: Wed Jun 2 15:14:49 2004 +0000 Deleted useless rfree. (Socked was freed by cli_free()) commit 9b133458891724da2fd22f2a16ae19376e225ca0 Author: Ondrej Filip Date: Wed Jun 2 09:14:03 2004 +0000 Hotfix for router's parent without nexthop. It will probably work perfect, but I need to eliminate such situation. commit f9625e9acabbdc5834f528e6fe1b87b8f4ce4968 Author: Ondrej Filip Date: Tue Jun 1 14:06:25 2004 +0000 Bugfix in external routes calculation. commit 7048461df113b335b9cfc56c517bc5802ef7b6c8 Author: Ondrej Filip Date: Tue Jun 1 13:58:39 2004 +0000 Code clean up. commit e8bf6c0766dba95c4b7ebb8b29dad31392f212b7 Author: Ondrej Filip Date: Tue Jun 1 13:44:53 2004 +0000 Easier cleanup of an interface. commit c9f6cf8a05aba6a79bfb57120ca48adcf8e3949d Author: Ondrej Filip Date: Tue Jun 1 13:29:08 2004 +0000 Don't free socket's resources. commit 035f6acbfec1e06a207217ae81153b67ced995f3 Author: Ondrej Filip Date: Tue Jun 1 13:12:10 2004 +0000 Patch from Andreas Steinmetz commit 8281ff201e1eebe35cb8e7716565361bed77a6cd Author: Ondrej Filip Date: Tue Jun 1 12:57:13 2004 +0000 Reverting last patch. commit 77772dbc6555dfb9aa76c812bcd1792ab503cbe1 Author: Ondrej Filip Date: Tue Jun 1 10:55:10 2004 +0000 Caching loopback interface. commit a8bb459a3f8769501726ef25e696ea127014383f Author: Ondrej Filip Date: Tue Jun 1 10:53:30 2004 +0000 log->DBG commit 1554cc02826794007c113bc336ed574bb771343f Author: Ondrej Filip Date: Tue Jun 1 10:45:28 2004 +0000 Minor changes caused by MJ's comment. commit b613b9928bdb1df3bd541d318d7f9c1bf492dfbc Author: Ondrej Filip Date: Tue Jun 1 10:32:02 2004 +0000 #ifdef CONFIG_UNIX_DONTROUTE added. commit 7fdd338c3600aa4e7a0ae3d5ce270b5a1f8ccc0c Author: Ondrej Filip Date: Tue Jun 1 10:28:25 2004 +0000 ALIGN -> BIRD_ALIGN commit 22122d4d4c43c2c64a37aae597b4d439a6bfa268 Author: Ondrej Filip Date: Tue Jun 1 10:10:09 2004 +0000 Now, only one AC_OUTPUT is used. commit 402a9fa78a9849dbbefcbea81cd9cf7c8ab87c22 Author: Ondrej Filip Date: Tue Jun 1 09:10:11 2004 +0000 Useles log()s deleted. commit e85bd57a0e106c7ae3fc44dccf9bac89e2f9939e Author: Ondrej Filip Date: Tue Jun 1 09:07:16 2004 +0000 bzero has 2 arguments. commit b88a1d4040df6bcd49eefe1c2c1ba8fa66ad0d43 Author: Ondrej Filip Date: Tue Jun 1 08:59:47 2004 +0000 memset -> bzero commit fa643be1cc6973923a46ac52a20ccec2ec5e3f18 Author: Martin Mares Date: Mon May 31 22:24:42 2004 +0000 Updated the distribution script. commit bb68ad2fd34dc6ab8723ae1c9c37f9dc19ed85ea Author: Martin Mares Date: Mon May 31 22:22:21 2004 +0000 Documented the pxlen parameter. commit 3810eccf6bc5af413d883fd298d59e0d7bdb96ea Author: Martin Mares Date: Mon May 31 22:16:54 2004 +0000 Added a simple utility for converting CVS log messages to a reasonable changelog format. commit ea0ac8f69aec4eff8109eb3d74cc0ca5a330fa58 Author: Martin Mares Date: Mon May 31 22:00:18 2004 +0000 Move CLI socket to the newly created CLI's pool. (thanks to Andreas for the original idea) commit 38a608c55af7654f23c9a16129ab6211aac3b7ab Author: Martin Mares Date: Mon May 31 21:48:19 2004 +0000 Rewritten the I/O loop. All socket operations are now safe, meaning that you can delete the socket from anywhere in the hooks and nothing should break. Also, the receive/transmit buffers are now regular xmalloc()'ed buffers, not separate resources which would need shuffling around between pools. sk_close() is gone, use rfree() instead. commit 206f59dfa8e59e32f4aef12dacb0804581b9f602 Author: Martin Mares Date: Mon May 31 21:02:09 2004 +0000 Added UNUSED. commit 6a57bb311018570b6ee7beccafd2075108e346cb Author: Martin Mares Date: Mon May 31 20:57:38 2004 +0000 Killed a couple of unused variables. We really should compile with warnings enabled. commit d83faf8dc441259183d87c6669e76e4addc61b21 Author: Martin Mares Date: Mon May 31 20:53:22 2004 +0000 static declarations don't belong to includes. (And most of them were redundant anyway.) commit 7deffd845a0f2bfe4cebbb01e0505314af32693a Author: Martin Mares Date: Mon May 31 20:51:45 2004 +0000 Need for tcdrain(). commit 9f387e11a319ea55104c6e8362f9820bf1b00097 Author: Martin Mares Date: Mon May 31 20:49:11 2004 +0000 Make the check for work with recent libc's. commit 0757bcb728c8bd56fa03ea296862d62e05f6ba09 Author: Martin Mares Date: Mon May 31 20:35:19 2004 +0000 One space more. commit 2cc37815ae1f194c5a0c51e5761377caea9cc164 Author: Martin Mares Date: Mon May 31 18:47:19 2004 +0000 Added rmove() (by Andreas, tweaked by me). commit 0077aab4f9041e4d05d2d6916edfb0e15738cb37 Author: Martin Mares Date: Mon May 31 18:16:42 2004 +0000 The code was broken for external /29 to /32 routes. Assuming that you have one machine publishing a route to 10.1.1.3/32 and another one publishing a route to 10.1.1.4/32. If the first machine went down the route to 10.1.1.4/32 was wrongly killed by the old code, leading either to missing routes or worse to bug()s like "Router parent does not have next hop" or just segfaults. The patch fixes this but in the long term a redesign is required here. Note that the patch doesn't worse the situation, instead it prevents the problems stated. The redesign is required to handle multiple routes to small subnets properly. (by Andreas) Feela, I think that this is at least a good temporary fix, but it's of course up to you to decide. commit 4ef3dccfa112faddf79fed76a539353b705702b5 Author: Martin Mares Date: Mon May 31 18:13:14 2004 +0000 The OSPF authentication type was sent in host byte order instead of of network byte order thus breaking interoperability with other routing daemons on litte endian machines. The patch fixes this but note that this breaks compatability with older bird installations using OSPF and password authentication (Andreas) commit 3cb96cd343196baabf847f5d670711162e66e298 Author: Martin Mares Date: Mon May 31 18:11:16 2004 +0000 The initial sequence number for RIP md5 authentication was always zero. Bad as when bird e.g. was running for two weeks and then restarted it would take another two weeks until the peers of this router would accept data again from this router, as the sequence number would be too low. Changed to use the the current system time as the starting sequence number which is a more sane start value. (by Andreas, cleaned up by me) commit 277a34eff195fe39a63db59731f5f2c8d54abdb2 Author: Martin Mares Date: Mon May 31 18:08:50 2004 +0000 Small correction to va_start/va_end in cli_printf (va_end was missing). (Andreas) commit 5f2a6a9ff324d846c86ffafb60ae5a4c01d06313 Author: Martin Mares Date: Mon May 31 17:55:30 2004 +0000 Fix handling on full pipe to client in bird. Prevent packet overflows for even only medium sized route table output. Fix a strange garbled output problem in the client. The latter seems to be caused by some library doing tcflush while there is still command output pending. So the best fix here is to do fflush and then tcdrain. Note that this problem occurs only under certain load situations and is not too easy to reproduce. (by Andreas) commit a4ffe2739d1a3efb45f209b63b2b6faa558e43a9 Author: Martin Mares Date: Mon May 31 17:53:02 2004 +0000 Bird's control socket should be in /var/run and the convention for --localstatedir is /var. The control socket pathname creation is thus corrected here. (Andreas) commit 03e3d184b2d8fac4c82408b1ac1738cb7af5680e Author: Martin Mares Date: Mon May 31 17:44:39 2004 +0000 Fix bison input for current build tools, otherwise bison or the compiler will abort the build. (by Andreas) commit 4a02013767ab05b9cf7567c09e5fad59c9bd1c10 Author: Martin Mares Date: Mon May 31 17:42:38 2004 +0000 Make RIP nolisten mode actually work. The socket is required for sending, the received data has to be discarded instead. (patch by Andreas Steinmetz modified by me) commit 1bd897dd33a49bd03f661e84687f8bba25af2983 Author: Ondrej Filip Date: Mon May 31 17:27:21 2004 +0000 Changed of comments. commit 10af3676ea4268452776acd7b06a95c72d71f2e0 Author: Ondrej Filip Date: Mon May 31 17:16:47 2004 +0000 Grrr, committing too fast. #include "alloca.h" -> #include "lib/alloca.h" commit 7dbd4fd332bb614db858944da86b29c86d9b1d81 Author: Ondrej Filip Date: Mon May 31 17:13:58 2004 +0000 alloca.h added commit 0e6eef620d4b838fc558711cd2d5572ec7a576c2 Author: Ondrej Filip Date: Mon May 31 17:07:05 2004 +0000 Use #include "alloca.h" commit c222500d8e098f0504405724b56676a2efc0861f Author: Ondrej Filip Date: Mon May 31 17:00:22 2004 +0000 Previous change was mistake. commit 6f18235aad187ed9e2afbb166b34c5cc3765b430 Author: Ondrej Filip Date: Mon May 31 16:42:12 2004 +0000 Useless include deleted. commit f54fa9e15dce42b8c80b7ea95ab2653cc5be4e4e Author: Martin Mares Date: Mon May 31 16:10:01 2004 +0000 Updated copyright notices. Also testing whether syncmail works. commit 73219ecfecbf2851e1a3b6c4a1084b2eaa6d159c Author: Ondrej Filip Date: Mon May 31 15:13:56 2004 +0000 Delete autom4te.cache in 'make distclean'. commit 6de62923120c1dba8461aed8aed95eff433fcf4a Author: Ondrej Filip Date: Mon May 31 15:08:29 2004 +0000 Better readline checking. commit 012279f395a7cb87a3085b6c4674777da7ee9661 Author: Ondrej Filip Date: Mon May 31 13:59:03 2004 +0000 Some include added. commit d93fb7e6b9a1d2964bc926ca9ed7ab11f5003c1d Author: Ondrej Filip Date: Mon May 31 13:58:38 2004 +0000 #ifndef ALIGN - it is defined on *BSD commit a60277b9997a891fdc5d62e07ac96885c009f531 Author: Ondrej Filip Date: Mon May 31 13:35:06 2004 +0000 Added RTD_NONE /* Just for internal use */ commit 0c745adc8003ac816be15e2246fa4685e127d120 Author: Ondrej Filip Date: Mon May 31 13:34:20 2004 +0000 #ifdef ALLOCA_H commit bd62eeca27aba7da34a65a8f039d1b011115ddca Author: Ondrej Filip Date: Mon May 31 13:32:58 2004 +0000 Small change to compile client on FreeBSD. commit b1a1fabac70201e9b05aeb9fd6af703f0fbffdb4 Author: Ondrej Filip Date: Mon May 31 13:25:00 2004 +0000 *BSD port added. (Tested on FreeBSD and NetBSD) commit 781aa475aaa7503d4a86f0d4b8771cd027d30c04 Author: Ondrej Filip Date: Mon May 31 13:22:49 2004 +0000 Minor bug fix in neighbor state machine. commit de259a41e3175d4080d5a33a39f0279308a25b56 Author: Ondrej Filip Date: Mon May 31 10:38:44 2004 +0000 Minor bug in configuration. commit 7cb37e6fd2d9fb5723d6f680d0e064e4ba9c6091 Author: Ondrej Filip Date: Mon May 31 10:26:18 2004 +0000 Added some more test (alloca.h, sa_len) etc. Add AC_OUTPUT before AC_OUTPUT_COMMANDS commit caeb02ea19b8b3b04bc9705d5270954bfc21cab6 Author: Ondrej Filip Date: Wed May 19 12:30:58 2004 +0000 Bug in DBDES receiving fixed. commit 502ded521508a402910b2bf8f23f2e34f79f91cb Author: Martin Mares Date: Sat Dec 6 16:41:11 2003 +0000 Fix reporting of RIP socket errors. Thanks to Eric Leblond for the patch. commit 37299f1e442f5ca23fd9124d9645096c5a6f7536 Author: Ondrej Filip Date: Tue Sep 30 17:05:55 2003 +0000 OSPF was not able to be built stand-alone. commit 00bd27a1cc8eee6df626a7441cc548e82bf42c4c Author: Ondrej Filip Date: Sun Sep 14 13:41:24 2003 +0000 Endianity problem fixed. Thanx to Sörös József commit 35a86ceb4082d8d31e6949f8d454eaa28c498a86 Author: Ondrej Filip Date: Wed Sep 3 17:31:23 2003 +0000 This prevents infinite loop when bird has more that 60 neighbors. Thanks to Rani Assaf commit bf135bcb1feca7b9ee35342c239ed3a66415d854 Author: Ondrej Filip Date: Mon Sep 1 08:46:07 2003 +0000 Prepared for release 1.0.8. commit c11007bc423188872d37e277fe4637094a40d90f Author: Ondrej Filip Date: Tue Aug 26 10:41:02 2003 +0000 Endian-related bug fixes sent by Krzysztof Szuster commit 1d1a3c1c2a72ef91b785f5ed08ca5ab3f001b14e Author: Ondrej Filip Date: Sat Aug 23 10:47:46 2003 +0000 Minor OSPF changes for faster startup. commit baa5dd6ccc14eb6bc43fad37a2bfe88ad190c0fa Author: Ondrej Filip Date: Sat Aug 23 10:42:41 2003 +0000 Many spelling mistakes fixed. Thanks you Harry Moyes. commit c197d44e1790ab1738cf9e438c2c91bd74e9b94e Author: Martin Mares Date: Wed Aug 13 22:07:55 2003 +0000 This probably IS the memory leak we're looking for. Alien routes weren't correctly disposed of. commit 13b75bacf7221eb655dcbed54e3c3605bea5169e Author: Martin Mares Date: Wed Aug 13 20:04:39 2003 +0000 protocol->import_control() could potentially call rte_cow() as well. AFAIK it doesn't happen in any of our protocol, but better be sure. commit 2adab6ae9cc586871a8854e51452839cb1dd1db0 Author: Martin Mares Date: Wed Aug 13 19:31:22 2003 +0000 This was a potential memory leak, but not the one Feela observed. This one could happen when an import filter of some protocol modified the rte (so that it would be rte_cow()ed) and later rejected it. commit b77834b3f41e551adc045d23f387533d428349ae Author: Martin Mares Date: Sun Apr 6 21:36:35 2003 +0000 Slept for a year :-) commit c153ee91373438095ae6ec18e2dfb9f334d2dfe6 Author: Martin Mares Date: Sun Apr 6 19:52:22 2003 +0000 Nobody is perfect. Me twice :) commit 8edd56bded8ffc7fabbce690133892de6dcd5f62 Author: Martin Mares Date: Sun Apr 6 19:49:17 2003 +0000 Oops, forgot to change some paths. commit d02b7a738eb94d031b106319f3af259717c80fe0 Author: Martin Mares Date: Sun Apr 6 19:49:02 2003 +0000 More news. commit f2c642e0e5c266f8b955cfa5aec785c3f96c5ed5 Author: Martin Mares Date: Sun Apr 6 19:46:42 2003 +0000 We're 1.0.6 now. commit 0e41e34a231198498289e367b93b3e9b99d5eb2e Author: Martin Mares Date: Sun Apr 6 19:45:55 2003 +0000 Avoid problems with copying a directory to itself. commit f240a133b32db88c98ad5a7f9d72fdb909311af6 Author: Martin Mares Date: Sun Apr 6 19:42:28 2003 +0000 Releasing version 1.0.6. commit 9c7631235ac174ebd33a3e04e07211b3ae8501f6 Author: Martin Mares Date: Sun Apr 6 19:35:50 2003 +0000 Updated the documentation building tools to work with a recent linuxdoc-tools package. Note that this is (and always was) a terrible hack and we really should replace it with something reasonable which wouldn't need changing every time linuxdoc-tools evolve. I also needed to include a patched version of LinuxDocTools.pm, because the original one explicitly refused to work with a non-linuxdoc DTD. The authors of linuxdoc recommend to use sgmltools-lite in such cases, but it would mean rewritting our formatting rules to the DSSSL language which I don't dare to speak about here :) commit a9aa5887f3b9b43d9a3a5617ef9176da936ce35f Author: Martin Mares Date: Sun Apr 6 18:55:37 2003 +0000 Added release history. commit 8cf76fa8536e52a5c90d500ac1d74f49d87e905d Author: Martin Mares Date: Sun Apr 6 18:38:01 2003 +0000 Bug fixes to authentication code by Eric Leblond . commit d85e1f0e2f389d273ff14e89faced390b76d842b Author: Martin Mares Date: Thu Feb 27 10:48:30 2003 +0000 Prefix comparison bug (hopefully) fixed. commit 6ea8ca1469a9c9150a4e0be9f8e6ab025eee990a Author: Martin Mares Date: Sun Feb 23 10:22:04 2003 +0000 Updated a comment. commit abf06173a3d84559dd26d2a78a1e5df9656a4d80 Author: Martin Mares Date: Sat Feb 22 23:06:32 2003 +0000 Current Linux kernels don't remember rtm_protocol for IPv6 routes and supply RTPROT_BOOT instead. Work around that. commit 11d4474c17e76e9811dcb32f555fa1c6f3684fab Author: Martin Mares Date: Sat Feb 22 22:47:45 2003 +0000 Better selection of link-local NLRI addresses, at least for our own address. Need to do it better for the other neighbors -- the current solution works only if they use the standard 64+64 global addresses and the interface identifier in lower 64 bits is the same as for the link-scope addresses. commit 7b7a7b43a6915efbe9180f07cd1284a39efacf02 Author: Martin Mares Date: Sat Feb 22 22:39:06 2003 +0000 There can be multiple primary addresses with different scopes and only the highest scope one has IA_PRIMARY set, so report the remaining ones as "Unselected". commit 8001948b43c9367e86473630f58527249d7da04f Author: Martin Mares Date: Sat Feb 22 22:38:15 2003 +0000 Report link-scope addresses as well. commit 8c92bf6a0ddc21f2fa19c195a73d43837f60fc23 Author: Martin Mares Date: Sat Feb 22 10:40:35 2003 +0000 Temporary fix for BGP protocol capability announcement for IPv6 mode. commit 60a72ed49b36aea732d3584527040a7b3b0e72e0 Author: Martin Mares Date: Sat Feb 22 10:25:22 2003 +0000 Fixed length check miscalculation in IPv6 receive path. commit 47f18ac39a313cf213b43320557239c5d0855a11 Author: Martin Mares Date: Wed Nov 13 08:47:19 2002 +0000 ABS should be a macro. commit 7d875e094bbbb9d4b234e31fe08f31510ac1d7d0 Author: Martin Mares Date: Wed Nov 13 08:47:06 2002 +0000 Added missing includes. commit de10a974f2e2e8a11b6a6852cd770c1096e1c25d Author: Martin Mares Date: Wed Nov 13 08:46:12 2002 +0000 Added missing semicolons. commit 59b96d7b4d8a055aa77917099b358cfc7b5e0731 Author: Martin Mares Date: Wed Nov 13 08:45:24 2002 +0000 Don't use obsolete functions which are no longer declared in the header. commit a19cd811000902facceff5a30facf7dba9cb2095 Author: Martin Mares Date: Wed Nov 13 08:30:56 2002 +0000 Added missing #include and wondering how could it ever compile. commit 19bd5c8e2c0fd47ff27668b8c45acc79f4d703b4 Author: Pavel Machek Date: Sat Sep 21 13:57:48 2002 +0000 Password does not need to be null-terminated, do not print garbage in such case. Thanks to silvio@big.net. commit 4ca0d0847e015bbecf6db3cec8f3ce57c2d8035c Author: Ondrej Filip Date: Wed Apr 3 15:41:05 2002 +0000 Small typo fixed. commit 53a50af50427e2fedc4bbfeca7a5934a798a3827 Author: Martin Mares Date: Sun Mar 10 12:32:12 2002 +0000 Applied Pavel's fix for broadcast/multicast mode. commit e59e310e6435c6c72b585c6f4b5e6c9bbd006553 Author: Ondrej Filip Date: Mon Mar 4 15:54:39 2002 +0000 Age LSA DB after LSA origination and before routing table calculation. commit 025b0e856a85dcae755e97922febc190145ba89c Author: Ondrej Filip Date: Mon Mar 4 15:52:40 2002 +0000 New trace added. commit b78696282de32a202a9bed304f8edf044833f36f Author: Ondrej Filip Date: Fri Dec 7 17:34:09 2001 +0000 Bugfix in router importation. commit 30c34a10797c2773a0b99e71b22f111ee2a7f980 Author: Ondrej Filip Date: Fri Dec 7 17:10:49 2001 +0000 Small bugfix in RIP documentation. commit 8e32493c56a49f10a6949985d5b0bb4dbcbe204d Author: Ondrej Filip Date: Tue Aug 21 17:00:15 2001 +0000 Removed some useless (hope!) code in next hop calculation. commit 68db89a2ce35a96aef827f4e86c5dfd82842f9d7 Author: Ondrej Filip Date: Tue Aug 21 16:44:57 2001 +0000 Finally, next hop problem fixed. commit 37da55168cdb0f562266eff4b821f6e576d93931 Author: Ondrej Filip Date: Tue Aug 21 15:03:42 2001 +0000 Useless trace. commit e8ab16803065894497dd306c941b0815fac5b25a Author: Ondrej Filip Date: Tue Aug 21 15:00:29 2001 +0000 Hope, bug in next hop calculation for stub routes fixed. commit e43ae6330eaf349eafe6820465c85266eef80e07 Author: Martin Mares Date: Sun Aug 19 11:15:24 2001 +0000 Fix %I format strings. commit 30b773041c37d10649a16d5f28af00a25871aac7 Author: Martin Mares Date: Sun Aug 19 11:11:44 2001 +0000 IP address formatting now uses the same rules as formatting of strings with two exceptions: o Any non-zero field width is automatically replaced by standard IP address width. This hides dependences on IPv4/IPv6. o %#I generates hexadecimal form of the address. Therefore |%I| generates unpadded format, |%1I| full size flush-right, and |%-1I| full size flush-left format. commit 16319aebd30da5161bed95d72094250228a7f61c Author: Ondrej Filip Date: Sun Aug 12 00:09:47 2001 +0000 Dokumented switch network. commit c926eee72471d8127ff833548b0ce1f8cb6de276 Author: Ondrej Filip Date: Sun Aug 12 00:04:42 2001 +0000 Area networks added into configuration. commit b2bdb4065667f466575b831f4a3166bd309d9d14 Author: Ondrej Filip Date: Sat Aug 11 16:22:29 2001 +0000 Changed definition of stub area. commit 85062e8a600cc7896b8bcaf3960bb782aa9f2ff0 Author: Ondrej Filip Date: Sat Aug 11 14:40:51 2001 +0000 Bugfix in B-bit setting in router LSA. commit 78e2c6ccf16b41bc19a4cd69f959c8ae47e68b9d Author: Ondrej Filip Date: Sat Aug 11 14:01:54 2001 +0000 I will not originate the same lsa before MINLSINTERVAL. commit 5fc7c5c51344a8cc1fae2cc9077c2c331c1e419a Author: Martin Mares Date: Fri Aug 3 08:44:51 2001 +0000 Don't loop forever when trying to skip an out-sequence netlink reply. commit 24c00cb11915edb8c13dbc21f245a73fc34689ed Author: Ondrej Filip Date: Tue Jun 12 21:10:30 2001 +0000 Install route into main routing table just if it's necessary. commit c48b33292b6d39cdacd642565907c0d5b90adc68 Author: Ondrej Filip Date: Sat Jun 9 15:13:38 2001 +0000 Yes, 1.0.5 released. commit 87c450dffcbcc76270c95b4c923838445cd6816b Author: Ondrej Filip Date: Sat Jun 9 14:56:01 2001 +0000 Added comments. commit e9d3c3aaea24724c285027154bd9f5ddef8394e0 Author: Ondrej Filip Date: Sat Jun 9 14:55:10 2001 +0000 Bug in next-hop calculation fixed. (For dual connected neighbors.) commit ea31425a6191f0b3e181f8a1c7368fc4dfca24b4 Author: Ondrej Filip Date: Mon Apr 9 19:15:03 2001 +0000 Patch from David Rohleder thanx. commit 01b776e117d21ccfef996fd91c014c6e14a458a7 Author: Martin Mares Date: Tue Mar 6 13:40:39 2001 +0000 Fixed vs. problems. commit 27e993fb4ecc310a83da3a74b21b15c32c207a09 Author: Martin Mares Date: Tue Feb 20 09:49:19 2001 +0000 Fixed duplicity in log category numbering. Thanks to Zheng Yuan for spotting this. commit 4d04187465fdeb3fb755b4d01ec640bbe0e36eb9 Author: Martin Mares Date: Fri Jan 19 20:30:08 2001 +0000 Added paper for my talk about BIRD at SLT 2001. commit 0766e962e9a9539ceccd23090e5bb8e1301fce8c Author: Martin Mares Date: Wed Jan 17 08:32:28 2001 +0000 Bug fix from Zheng Yuan . commit a2d01907c5b24bab78cc055fa23354597bd44a03 Author: Martin Mares Date: Mon Jan 15 09:24:16 2001 +0000 Added an explanatory comment. commit 8c6ce98b9d9b5c4970e902cf667c1ffb64f04a62 Author: Martin Mares Date: Mon Jan 8 11:13:01 2001 +0000 Fixed infinite recursion in password_same. Pavel, please check. commit 32749f493fdaea31f70d8586597febacd2c511d9 Author: Ondrej Filip Date: Thu Dec 14 01:04:51 2000 +0000 Hmm, nasty bug, LSUPD was not well flooded via PTP interfaces. :-( commit 501c5bb03fabd3d5721cfd8c82298f729d79e7a3 Author: Ondrej Filip Date: Tue Nov 21 23:47:51 2000 +0000 Small bugfix in ext routes calculation. commit a5096a1bdebe217eb0d04a95489562ac132f4552 Author: Ondrej Filip Date: Wed Nov 8 22:46:54 2000 +0000 Yet another nasty bugfix of iface_patts_equal(). commit 0639f7263a9a73cce6948cad23cd2d4858d36c5b Author: Ondrej Filip Date: Wed Nov 8 17:06:35 2000 +0000 Bugfix in iface_patts_equal. When both patterns were NULL strcmp it sigfaulted. commit 482bbc7396268fce66e8ecb59f248bc51229cdc9 Author: Ondrej Filip Date: Sat Sep 9 19:21:01 2000 +0000 Minor rpm changes to make RedHat happy. commit 52fa3e386948b13b928ff9be778a7de62a00ceb3 Author: Ondrej Filip Date: Mon Sep 4 21:21:34 2000 +0000 Fixed many bugs in rt calculation and interface adding. Now it seems to be OK, I'm going to advertise 1.0.4. commit b02e40111ea8d97bf1c3bfa25970ee0d828cd7bc Author: Ondrej Filip Date: Mon Sep 4 19:42:17 2000 +0000 I allocate struct ifa before unlocking. So route exported to OSPF are correct. I work also with interfaces that have some problems with socket opening. I declare them as stub. commit fdb19982020abeddf2d9eb73efae92ae2cc58d93 Author: Ondrej Filip Date: Sun Sep 3 22:18:40 2000 +0000 Serious bug in ext lsa origination found. Going for 1.0.4. commit f02e4258b9bb7f823ddfbfb88284c868502b1433 Author: Ondrej Filip Date: Sun Sep 3 18:27:21 2000 +0000 Some misspells. commit 43dff480efcc85bf32327b07c3c53c9c68cb3941 Author: Ondrej Filip Date: Sun Sep 3 18:13:00 2000 +0000 Version 1.0.3. commit 19e930a9bbcc2dfdb87c8ada1a54ac4563a0cad6 Author: Ondrej Filip Date: Sun Sep 3 17:53:12 2000 +0000 Version 1.0.3 released. commit f82e9bc3744f9ff5aa05d08a18fd03e46fb08b6f Author: Ondrej Filip Date: Sun Sep 3 16:21:14 2000 +0000 Another atrey->atrey.karlin.mff.cuni.cz commit 1e972b5524ff1ad28f4013632253a851c3559fc9 Author: Ondrej Filip Date: Sun Sep 3 16:16:33 2000 +0000 Log some unusual situation. commit 76460860ece8ce43a42da7cb2342e57f553b646c Author: Ondrej Filip Date: Sun Sep 3 06:54:35 2000 +0000 Small bugfix. (Use atrey.karlin.... instead of atrey.) commit e3bc10fdc49266db827af4e4062e639862037eb6 Author: Ondrej Filip Date: Sat Sep 2 08:54:40 2000 +0000 Added stub interface. (Interface which is propagated to OSPF but it does not sends nor listens packets.) I added some new options, please look at it and look into doc if it's OK. commit 5ddec4e6cfef8e5867d7440693894517f955e96f Author: Ondrej Filip Date: Sat Sep 2 07:58:05 2000 +0000 Reconfigure poll interval. commit 7cedbf217e8ce8a8669f31b1ee38e5f9ccb4eefd Author: Ondrej Filip Date: Sat Sep 2 00:15:07 2000 +0000 Reconfiguration for new options. commit e7e2878b744f415df9fcef291da67975da4dfc29 Author: Ondrej Filip Date: Sat Sep 2 00:14:46 2000 +0000 More examples. commit a190e7200bf37ba834c776a28583bf897b4377f5 Author: Ondrej Filip Date: Sat Sep 2 00:03:36 2000 +0000 Added hellos on NBMA networks. (I don't violate RFC now.) commit 94e2bbcc72f69edbcb3ce66ffa52998f374243c5 Author: Ondrej Filip Date: Mon Aug 28 14:32:11 2000 +0000 Better ospf metric explanation. commit 5a063efeea11a80e865e9fa4b5e13c4ca8514b51 Author: Ondrej Filip Date: Mon Aug 28 13:51:13 2000 +0000 Bugfix in ext lsa importing. commit 8b6b49239f409571486ae9589bcd57f706421517 Author: Ondrej Filip Date: Fri Aug 25 12:26:03 2000 +0000 Minor bug. It does not work on non RH systems. Thanx to Craig Bourne commit 6cf7e97abe05ee8943f8a2d300e1c46038b95df1 Author: Ondrej Filip Date: Thu Aug 24 20:08:00 2000 +0000 Added files for RPM building. commit a24e3157628ade4c0c0c380094bec898b630b2ee Author: Ondrej Filip Date: Wed Aug 23 06:51:26 2000 +0000 Released as version 1.0.2. commit 9e2920824e13739a9169153f0164e6a4fe4adc1d Author: Ondrej Filip Date: Fri Aug 18 16:47:27 2000 +0000 Typo. commit f321a61f77262d33dd43d50136c8116ebf8139c6 Author: Ondrej Filip Date: Fri Aug 18 16:44:37 2000 +0000 Fixed bug in nex hop calculation of external routes. commit 88aa2af7effa3752d033ccab5e18fb1303603585 Author: Ondrej Filip Date: Fri Aug 18 16:36:54 2000 +0000 Just formatting. commit 28a6e1aa0ee17cee6aaad67d7433cb8038062582 Author: Ondrej Filip Date: Thu Aug 17 19:42:52 2000 +0000 Stupid bug in next hop calculation of external routes. commit 1eec76077814fbe06879026809759dd5f5b8655f Author: Ondrej Filip Date: Wed Aug 16 20:18:19 2000 +0000 Typo in rte_better. commit 059fc1e94abcd658e9340313ffd080c5829ba8ef Author: Ondrej Filip Date: Wed Aug 16 19:37:04 2000 +0000 My calculation of external routes violated rfc. :-( commit d6a7e2fb8590660c00e984ff41d2e668d2ead69b Author: Ondrej Filip Date: Wed Aug 16 19:03:06 2000 +0000 Bug in rte_better. commit e7894eceded6ea1f757829a8845863c57660c9dd Author: Martin Mares Date: Mon Jun 26 20:02:30 2000 +0000 Added slides for our presentation, but don't export them to the distribution tarball -- they are in Czech and therefore of no use to almost anybody :( commit 2084109a3734227f0dcc21f3c8915a983ad9d586 Author: Martin Mares Date: Wed Jun 21 22:11:29 2000 +0000 Include CVS ChangeLog in the distribution commit fc12a680b1102ae1b620180417ef8b0272b11bed Author: Martin Mares Date: Wed Jun 21 22:08:46 2000 +0000 Released as version 1.0.1. commit ad3907559c196ee39906d527ea4f3372beb6e6c5 Author: Pavel Machek Date: Wed Jun 21 19:40:46 2000 +0000 RIP bugfix commit 2836ce3951bbdda62c3dddd509669127f46e776d Author: Martin Mares Date: Wed Jun 21 09:58:09 2000 +0000 Check broadcast address sanity before believing it. commit bcbdcbb6ae7256e01165220bb3b2d5b72850f665 Author: Martin Mares Date: Tue Jun 20 07:49:08 2000 +0000 Don't accept incoming connections when the neighbor is not up. commit f9eb8f7e066970d56a814128fd49170348a7fbd8 Author: Martin Mares Date: Mon Jun 19 23:50:02 2000 +0000 If compiled with --enable-debug, don't even try to log to syslog unless the user forces it in the config file. commit 972fdb45323b75af254cfe6c912c52d3596a230a Author: Ondrej Filip Date: Mon Jun 19 15:12:50 2000 +0000 Routing table calculation clean up. commit ca00d4a13a7207da1ea3acf1f0e38ddc27669a4d Author: Martin Mares Date: Sun Jun 18 19:49:32 2000 +0000 Fix numbering of routing tables in IPv6 version. commit 4daf03e5138dea8e5c409ab20a07f35667caa89e Author: Martin Mares Date: Fri Jun 16 23:12:47 2000 +0000 Use our own SUN_LEN if libc doesn't provide it. commit 365211d5886ec59a543e9fbc2151d6218561c18c Author: Ondrej Filip Date: Tue Jun 13 19:03:41 2000 +0000 Bugfix in logging. commit dd44b2ce90950033c5c5419db67a1d53fb177f71 Author: Martin Mares Date: Fri Jun 9 07:52:57 2000 +0000 bird-1.0.0 has been released. commit 5ddf4a58f9c4173acefa1df92ccd3da90230a863 Author: Martin Mares Date: Fri Jun 9 07:32:57 2000 +0000 During initialization, log to both syslog and stderr. When a configuration file has been read and it doesn't specify any logging, log to syslog only (if syslog is not available, then stderr). commit 0b3bf4b1d898b4e438fe4959a63fc16211baff12 Author: Martin Mares Date: Fri Jun 9 07:30:22 2000 +0000 Use SUN_LEN() for length of UNIX domain addresses. This should fix problems with connection to clients on libc5 machines. commit 0e376168c570507c8cb64b143eff0049442e201e Author: Martin Mares Date: Fri Jun 9 06:54:01 2000 +0000 Shut up an uninitialized variable warning. commit 1aa2a9c8351d6121124831f503306ff6869bbf39 Author: Martin Mares Date: Fri Jun 9 06:49:43 2000 +0000 Added a `What is missing' section. commit 4386360bd9f71b159497ac3b671b4e3d117a6b73 Author: Martin Mares Date: Fri Jun 9 06:46:58 2000 +0000 Before building distribution tarballs, make distclean first. commit 2d176ac5d22b08c25ac277821e3daef3a6f2ae23 Author: Martin Mares Date: Fri Jun 9 06:45:48 2000 +0000 Released as 1.0.0, but marked it as a BETA version. commit 99955b54be850fad280a556ca80dc21374d2c5b7 Author: Martin Mares Date: Fri Jun 9 06:31:43 2000 +0000 Proper building and installation of documentation in the Makefiles. commit a012cbb16f3d73ca7ffafe6f7933de7369e2ee48 Author: Ondrej Filip Date: Thu Jun 8 19:16:21 2000 +0000 Nasty bug in LSA refreshing. I didn't refesh my own copy! :-( commit 135857e5777a4f1762fa6d948bb9d6b72e101c91 Author: Ondrej Filip Date: Thu Jun 8 19:14:08 2000 +0000 Acknoledge your own premature aged LSA. commit 054a352475437d924e473c95b5d3ad01ae4ab161 Author: Ondrej Filip Date: Thu Jun 8 19:02:31 2000 +0000 Don't send dbdes before rtlsa origination. commit 4bb18dd2daa1e13ab4f9aaff2ddc4875c4776559 Author: Pavel Machek Date: Thu Jun 8 16:57:41 2000 +0000 Fix i_same for 'c' instruction. commit 89e7de98e455071c5ff3796765fb6fd6860a63c6 Author: Martin Mares Date: Thu Jun 8 15:44:52 2000 +0000 Updated distribution README. commit d4f72db31a512eafbb8aff4e5c1226fa59879382 Author: Martin Mares Date: Thu Jun 8 15:22:06 2000 +0000 When distcleaning, clean up doc as well. commit 96264d4d2f22c652f6cef84ff6226352e1457cce Author: Pavel Machek Date: Thu Jun 8 14:06:20 2000 +0000 Final version of documentation (famous last words) commit 66701947c43d34f89be59fe9845efd7c65f64454 Author: Martin Mares Date: Thu Jun 8 12:56:59 2000 +0000 Fixes. commit 6567e6cf5081542dfeb2c1f2493873c4fabb012f Author: Martin Mares Date: Thu Jun 8 12:42:34 2000 +0000 Missing parameters... commit 1632f1fe32b9f13bf7746586bcbad70ffafe4697 Author: Pavel Machek Date: Thu Jun 8 12:38:16 2000 +0000 More spellchecking and typographic changes. commit 725270cb1da0672128675924844531e56c6ea64e Author: Martin Mares Date: Thu Jun 8 12:37:21 2000 +0000 Fixes for the programmer's manual. commit 8d56febe64769c19a06c2c0f3ff121d25eceaa5b Author: Ondrej Filip Date: Thu Jun 8 12:04:57 2000 +0000 HASH_DEF_ORDER back to 6. commit 2a56bb3bd66a9b52dd6c2e2626630b4eaa79d04b Author: Martin Mares Date: Thu Jun 8 11:05:19 2000 +0000 Set margins. commit 5a64ac70361e9dacfe155492cd52ae88eedcd75c Author: Ondrej Filip Date: Thu Jun 8 11:00:15 2000 +0000 Introduction to configuration of OSPF. commit c62d1c19a924668ccf5315ca8882ea041581e3bf Author: Martin Mares Date: Thu Jun 8 10:48:51 2000 +0000 ... as well there. commit 49569a8b53b7494b19344f5fc9cd659f68477ba4 Author: Martin Mares Date: Thu Jun 8 10:48:35 2000 +0000 Oops! Configuration compiles now. commit a460184532f36f75bc9727886faf07c2bde2d7f5 Author: Pavel Machek Date: Thu Jun 8 10:30:55 2000 +0000 Tiny fixes. commit 86598d87be6b572d3ca9731a72bc820889f5265c Author: Martin Mares Date: Thu Jun 8 10:27:01 2000 +0000 Updated. commit a5a947d4d8f86dd1180d76f0803402383df0dcab Author: Pavel Machek Date: Thu Jun 8 10:26:19 2000 +0000 Fixing error messages. commit ca77641d0787be514cae6a622e26e6a58af11d12 Author: Pavel Machek Date: Thu Jun 8 10:25:56 2000 +0000 Use `switch' for `disabled'. commit ec423cc725d4b097e596dbadd84f3dea40deb0b8 Author: Martin Mares Date: Thu Jun 8 10:25:02 2000 +0000 Updated CLI helps. commit 5a203dac615369806dc6eee0418ea39c597bea41 Author: Pavel Machek Date: Thu Jun 8 10:24:42 2000 +0000 Docs updates. commit b178d92a0ba1dc198f05dc8252c826e9bd62c5cf Author: Pavel Machek Date: Thu Jun 8 08:24:32 2000 +0000 Better messages commit 099c017fca667bbb59cff65be2ac58c82f8fb3a8 Author: Ondrej Filip Date: Thu Jun 8 02:28:04 2000 +0000 Still some endianity bugs. commit 59ba3342968fdd2a016b192559a64439281e25bf Author: Ondrej Filip Date: Thu Jun 8 02:04:45 2000 +0000 I forgot some endianity operations. commit 423230f2f1080c6a4f6d05b6d7705cfaee500f48 Author: Ondrej Filip Date: Thu Jun 8 01:49:19 2000 +0000 Ehm, my (B)DR election was based on router id, but RFC says ip! commit 17e29574bcf0e03e3243a48e784b0248925cc5b4 Author: Ondrej Filip Date: Wed Jun 7 23:48:33 2000 +0000 Better algoritmus of LSA aging. commit 25a3f3da7a2312e5ae21ada2aeccc412e2d1d867 Author: Ondrej Filip Date: Wed Jun 7 23:34:43 2000 +0000 I mark all LSA as in distance INFINITY in process of aging. I don't have to WALK twice through it. commit 1186369bbd45ab901eccc313708cc20f9dbf0f42 Author: Ondrej Filip Date: Wed Jun 7 23:23:37 2000 +0000 Doc. commit 37c3e558ab31a5e6088cef063dcd1e267238be74 Author: Ondrej Filip Date: Wed Jun 7 23:05:32 2000 +0000 Simple explanation, how LSA are kept in database. commit 87f0d22ef84826f6dc6d0a1ae7ba8020b6e52573 Author: Ondrej Filip Date: Wed Jun 7 22:57:59 2000 +0000 Minor change. commit c2553b1b3e1ff61e24b9435b897ef942abcec006 Author: Ondrej Filip Date: Wed Jun 7 22:56:52 2000 +0000 Minor changes. commit eee9cefd8c13184e45878ce8e2ef12fcdece3ded Author: Ondrej Filip Date: Wed Jun 7 22:53:51 2000 +0000 Doc commit e9ab0b4212dc0939d782c991c86c362e09eb279f Author: Ondrej Filip Date: Wed Jun 7 22:31:47 2000 +0000 Doc in lsalib.c + related minor changes. commit d5e4b51865c9532a9b886e942d30bb64dc87a675 Author: Ondrej Filip Date: Wed Jun 7 22:10:46 2000 +0000 Doc commit 351feeb51472602c83ec847f1feba10d68a5d57b Author: Ondrej Filip Date: Wed Jun 7 21:56:32 2000 +0000 Doc. commit b4af36e0d8eeb6a032b2ce2464aae76a04117827 Author: Ondrej Filip Date: Wed Jun 7 21:50:16 2000 +0000 Removed some FIXMEs simply deleting them. commit 7ab3ff6a287d6adc8f1d371d9da1504de502c8a6 Author: Ondrej Filip Date: Wed Jun 7 21:46:22 2000 +0000 Doc in neighbor.c and some tiny changes related to. commit cadbb827f99fc24da9227dce545aa1185bab7916 Author: Ondrej Filip Date: Wed Jun 7 21:12:00 2000 +0000 A copyright change. commit 6f58dc64c9084aca66850b88d907cecf9b00c88d Author: Ondrej Filip Date: Wed Jun 7 20:50:08 2000 +0000 Doc commit 89755a86237c786878a2d0c5e527559c8a4c0b6d Author: Ondrej Filip Date: Wed Jun 7 20:30:27 2000 +0000 Introdution into OSPF. commit 64722c9852a8ea4bdc7db0304351850a8106300e Author: Pavel Machek Date: Wed Jun 7 15:27:16 2000 +0000 Added brief description of client features. Grammar really is not good place to write help from, so please check this. commit 3e82b32d3637a3a3d2eb935dc7036b32bc3fecd4 Author: Pavel Machek Date: Wed Jun 7 14:45:55 2000 +0000 Progdocs updates commit 074a166d9441a2b03931751dbc181e0d462a9d7c Author: Pavel Machek Date: Wed Jun 7 14:39:34 2000 +0000 Better explanation for if/case, and RFC pointers for rip. Still searching for RIPv2 rfc number! commit 8dcf2544996af34f3c3d71116844352427787324 Author: Pavel Machek Date: Wed Jun 7 14:16:11 2000 +0000 Even better documentation of filters. commit 7aa99d22bcabb48cfc737055942715d8efd47f6b Author: Martin Mares Date: Wed Jun 7 14:12:44 2000 +0000 Updated. commit f06a219a2445bc9ff86071fdbb9b97e51b412c31 Author: Ondrej Filip Date: Wed Jun 7 14:12:13 2000 +0000 Better explanation of OSPF attributes. But it's still not perfect. commit 4e8ec66698e0e644f56c18b3f58393d9f5ae49a7 Author: Martin Mares Date: Wed Jun 7 14:08:14 2000 +0000 Spelling. commit 07f29765a58ee72fc79d74b28dbfead24e0b5baf Author: Pavel Machek Date: Wed Jun 7 14:06:37 2000 +0000 RIPv6 now works. commit 76c7efec63ffd2431ce5f6bd2299763f741ac37c Author: Ondrej Filip Date: Wed Jun 7 14:01:18 2000 +0000 Better example for OSPF configuration. commit 907503adb6d0b0763ff92266e2fbc522d77f5476 Author: Pavel Machek Date: Wed Jun 7 14:00:17 2000 +0000 Comment fix. commit 18b4d6bf278485f86ae5b636f3155fb36735ff1e Author: Pavel Machek Date: Wed Jun 7 13:58:49 2000 +0000 rip ipv6 bugfix commit 3ca3e999ecf00cc6ab8a52a73a7ead26e83a75b7 Author: Martin Mares Date: Wed Jun 7 13:54:24 2000 +0000 Spelling and style corrections to the OSPF section. commit 771ae456a5ff0e12379047b737da31b0be4059ea Author: Pavel Machek Date: Wed Jun 7 13:54:06 2000 +0000 Better progdocs for filters commit fa6c2405e2bab551245e1af7ed19b550b8bbef79 Author: Ondrej Filip Date: Wed Jun 7 13:46:13 2000 +0000 Now I can change cost of interface without OSPF restart. commit 6316555eea2b9b232a622fdb9aceaa4de1e23f59 Author: Martin Mares Date: Wed Jun 7 13:32:10 2000 +0000 Minor tagging fixes in OSPF docs. commit 25696edb03e08f562d1993ae38ec9ae43942347d Author: Pavel Machek Date: Wed Jun 7 13:30:02 2000 +0000 Full list of possible values in attributes, better operators description. commit 088bc8add198b27456269ca7e536d6bc77ca285b Author: Ondrej Filip Date: Wed Jun 7 13:28:54 2000 +0000 Bugfix in <>. commit 58f7d004fddd2cccdb019be59b6cc7a8abe50510 Author: Martin Mares Date: Wed Jun 7 13:25:53 2000 +0000 Fixes to the progdoc. commit 38203d789a872077ec174a63a448568725e4715f Author: Ondrej Filip Date: Wed Jun 7 13:19:48 2000 +0000 Originate rt lsa before sending first dbdes. commit 0c69604c8d0c9618e6cc94c98da993439d90dde6 Author: Pavel Machek Date: Wed Jun 7 13:15:48 2000 +0000 SGML syntax fix. commit 8fd12e6b27e713b0b7b24f3f7d9efd57038b1be6 Author: Ondrej Filip Date: Wed Jun 7 12:35:43 2000 +0000 OSPF user documentation added. commit 2e9b24211a523c754b9437d6b742d6df304d8aeb Author: Martin Mares Date: Wed Jun 7 12:29:08 2000 +0000 Spelling fixes to progdoc. commit e403aa89e50471eb6f2838117887b1207627ae3a Author: Martin Mares Date: Wed Jun 7 12:27:30 2000 +0000 Updated TODO file. commit cf0fca30353a9966c793647f7c9d10b0b56678a9 Author: Martin Mares Date: Wed Jun 7 12:27:18 2000 +0000 Added `progspell' target which runs ispell on the progdoc SGML file with all function, variable and structure names removed. commit 1ae494a7e1fb7dde3ffc4e5dd7df31a1bf8dd6bf Author: Martin Mares Date: Wed Jun 7 11:55:36 2000 +0000 Avoid SEGV's in tracing. commit 8cd5c52fcb7d429f41601f7be114168cb2371072 Author: Ondrej Filip Date: Wed Jun 7 01:19:16 2000 +0000 Removed useless trace. commit 3df89cefc19d08f621afac0ff485dba3591a39a0 Author: Ondrej Filip Date: Wed Jun 7 01:18:36 2000 +0000 #define SIZE_OF_IP_HEADER commit bd457b8d2162034e03ac2bb62484d8b238fd556f Author: Ondrej Filip Date: Wed Jun 7 01:03:53 2000 +0000 Some minor changes: Typo: transit delay!=transmit delay Zero checks etc. commit edc34dc9121c188f7794d404fb112c8b162e968a Author: Ondrej Filip Date: Wed Jun 7 00:56:11 2000 +0000 Reconfiguration hook. It will survive many timer and constat changes. commit 1532a244da43b25fb78b7b3a67a344fa4ac542d4 Author: Pavel Machek Date: Tue Jun 6 20:54:05 2000 +0000 mj's fixes to rip documentation. commit a7c9f7c065907e310ce1954821f2a8fc61c0261b Author: Pavel Machek Date: Tue Jun 6 20:35:59 2000 +0000 Batch of mj's corrections (config + filters) commit a63a9ce609864e6ba3e76a1c47fd6423b532dec1 Author: Ondrej Filip Date: Tue Jun 6 12:50:02 2000 +0000 Better dumping neighbors' states on PTP interface. commit a00c7a18f561bf46533dac46ee56227ebdf1be08 Author: Martin Mares Date: Tue Jun 6 11:58:25 2000 +0000 Typos in Static section. commit 02357f960e6a2946add25652c009fa8dfe847f68 Author: Pavel Machek Date: Tue Jun 6 11:53:22 2000 +0000 Merged mj's changes, up-to "import filter". commit 41ad16e2d5dc03f6620b94f8e531373788e11db9 Author: Ondrej Filip Date: Tue Jun 6 11:50:48 2000 +0000 Added IP protocols. commit a852c139dc90febae40be055050ed30490d823b8 Author: Pavel Machek Date: Tue Jun 6 11:05:12 2000 +0000 Don't let example overflow, and new chapter for "about routing tables". commit ee4880c82fcefe61cccb8ec729905a2b19706d33 Author: Ondrej Filip Date: Tue Jun 6 02:54:41 2000 +0000 Some '\n' deleted. commit 064b1d893243bc187980f53292414583ff3b4630 Author: Ondrej Filip Date: Tue Jun 6 02:50:49 2000 +0000 Tracing. commit bd37f45c10be697403e59c957273d172b3d3ed8e Author: Ondrej Filip Date: Tue Jun 6 02:43:32 2000 +0000 Deleted some debug() commit abcbfd0400eeb514c63376b50d3948581c20ca4c Author: Ondrej Filip Date: Tue Jun 6 02:34:57 2000 +0000 Tracing. commit 531a48d8c5c168329640ccb21cd062dbb7b6f5a2 Author: Ondrej Filip Date: Tue Jun 6 02:32:14 2000 +0000 Tracing in LS ack. commit 992705f65a9feb04ed0e918d06ad283928aca13a Author: Ondrej Filip Date: Tue Jun 6 02:27:08 2000 +0000 Tracing in topology commit d3995c498d92d7ce54fb2fcb6904e4e41f7588dc Author: Ondrej Filip Date: Tue Jun 6 02:16:39 2000 +0000 Tracing in LSUPD. commit f14032efdd87bca5c2839be01ffe66797976c7bc Author: Ondrej Filip Date: Tue Jun 6 02:09:58 2000 +0000 First part of tracing. commit 51cff78b2571e24963d3a81694f854605eb75eac Author: Ondrej Filip Date: Tue Jun 6 01:46:32 2000 +0000 Allocate OSPF areas before interfaces. commit c1824c4d4c7753246ba26d27c7a3b7be3006d46b Author: Ondrej Filip Date: Tue Jun 6 01:23:03 2000 +0000 Simple autentication added. commit fef1badfcfb0519cca10f3561e5cb79ef9f9e969 Author: Ondrej Filip Date: Tue Jun 6 01:00:34 2000 +0000 All die() renamed to bug(). commit 80787d418bd028f59e34ffb08c1c221992fe3b41 Author: Ondrej Filip Date: Tue Jun 6 00:52:35 2000 +0000 Dummy reconfigure added. commit f8f1e1f110c3ff1aec03a9fa918257cf4d29e916 Author: Ondrej Filip Date: Tue Jun 6 00:46:00 2000 +0000 Interface locks added. commit 7d68e18b414bbdef9a5472006e8674a3d74e5a00 Author: Ondrej Filip Date: Tue Jun 6 00:21:06 2000 +0000 Added NBMA into examples. commit b131e163c292aac09dc7f73924de0fad6547743d Author: Ondrej Filip Date: Tue Jun 6 00:16:31 2000 +0000 Some useles variable deleted. commit 3301b9d1c57b4e76d32f1244e3da33012e70d20d Author: Ondrej Filip Date: Tue Jun 6 00:16:03 2000 +0000 Some useless variable deleted. commit eb436e16fd85340d3403a033ee86f973428a2f08 Author: Ondrej Filip Date: Tue Jun 6 00:08:27 2000 +0000 NBMA networks seems to work, but this should be better. :-) commit e5b5d18c1c8b33e76e954c0696e056fc11701631 Author: Ondrej Filip Date: Mon Jun 5 23:44:26 2000 +0000 NBMA networks should work now. commit 5c18880e35f668d33a993be5b2854547a08d9199 Author: Martin Mares Date: Mon Jun 5 21:26:11 2000 +0000 Avoid sentence containing a colon to start new doc subsection. commit ab698fc57c9898790964df7f9f59329e1f8930ba Author: Ondrej Filip Date: Mon Jun 5 21:09:03 2000 +0000 Added example of OSPF configuration. commit a13eaf219acf5b90af09b914a2182e23d5812aee Author: Martin Mares Date: Mon Jun 5 21:02:57 2000 +0000 Define element which initializes different formatting for the programmer's guide (\raggedbottom etc.). Also, omit "\usepackage{t1enc}", so that bullets work now. commit 854128a5ed540f230933cdc2c787e94d2658647b Author: Martin Mares Date: Mon Jun 5 21:01:58 2000 +0000 Don't print empty synopses of functions. commit 3b580a23ad32e8445c419932d6f7715cdc2a0687 Author: Ondrej Filip Date: Mon Jun 5 20:57:53 2000 +0000 Bugfix in NET LSA flushing. Configuration now works! :-) Better "show ospf" Some minor bugfixes. commit f1aa23d4b3949ccd7c86f9a4e87eda63149b5f6d Author: Martin Mares Date: Mon Jun 5 20:24:42 2000 +0000 Minor tweaks of spacing. commit 4bb9ce56bbf42ac09fc8293d8419835b6f178e83 Author: Ondrej Filip Date: Mon Jun 5 19:45:06 2000 +0000 Reset inactim timer if you receive any packet from neighbor. commit 496c819f26f67593797f0b861e153399c1d63a86 Author: Ondrej Filip Date: Mon Jun 5 19:35:48 2000 +0000 Removed some FIXMEs by deleting them. commit 3585d400e03a4e43def868b492df440ae52a29bb Author: Ondrej Filip Date: Mon Jun 5 19:31:55 2000 +0000 Don't info about DR and BDR on non-MA networks. commit 2debcb9eb0d76362003726ca8b0f5f43ee275dee Author: Martin Mares Date: Mon Jun 5 19:17:37 2000 +0000 Move TeX trickery for typesetting of function descriptions to where it belongs. commit fdb0c540a82d9732d4d1d36c83e186f36d756d08 Author: Ondrej Filip Date: Mon Jun 5 19:12:22 2000 +0000 PTP link in RTLSA was not announced correctly. commit 1605f043aa65b2434eb29d994f622bd79d0f2be7 Author: Martin Mares Date: Mon Jun 5 19:08:27 2000 +0000 Avoid using style combinations such as italic typewriter font. commit 8441f179253777b3e4bf3461ac847b33ddb098a4 Author: Martin Mares Date: Mon Jun 5 18:40:25 2000 +0000 Unless a filter specifies otherwise, all external routes have type 2 metric 10000. commit f8032bbdb150221e84f0bd7de825cf3e9f15aa66 Author: Martin Mares Date: Mon Jun 5 18:32:51 2000 +0000 Simplified the grammar and fixed several minor bugs (e.g., `INTERFACE "eth0" };' was a valid entry). commit 44fc1888cf284d863c897b861942612acf36f52f Author: Ondrej Filip Date: Mon Jun 5 18:09:49 2000 +0000 First calculate checksum and then send refreshed LSA! commit aba5e89f9310bb33c7362b02108e640983ad0819 Author: Ondrej Filip Date: Mon Jun 5 18:09:15 2000 +0000 Better checksum checking. commit 4c5f93d76bd0636407a185c175fe73411ae79a32 Author: Pavel Machek Date: Mon Jun 5 17:13:36 2000 +0000 Better documentation. There are functions whose description is good when reading source but whose documentation does not belong to progdocs. commit 22080a8640f268247a4cf74c9e76f958a05c4b69 Author: Pavel Machek Date: Mon Jun 5 16:42:54 2000 +0000 Make rip example fit on page. commit 8798c811762f463b662108643d7c4c869deb7f98 Author: Pavel Machek Date: Mon Jun 5 16:36:16 2000 +0000 Docs updates: make prog.dvi do not overflow in .dvi include filter documentation in the system commit eb2c99a132c87c5560edc77909edfab2df44f0a2 Author: Ondrej Filip Date: Mon Jun 5 16:32:29 2000 +0000 Yet another change, now flushing of net lsa seems to be perfect. :-) commit b458ce83d7cdc507aa18e5fed2ab206847bc317e Author: Martin Mares Date: Mon Jun 5 16:19:27 2000 +0000 Print out function synopsis as a part of the declaration. Also, reverted my previous hack for `&' and replaced it by just disabling the `& -> &' conversions. commit 2a5d7caa951d37c50d52ebef8ef269fa587dec5e Author: Ondrej Filip Date: Mon Jun 5 16:13:50 2000 +0000 I calculated next hop of parent instead of actual LSA. :-( commit 07b7100292fb87169ad5f18285927c39697f6998 Author: Ondrej Filip Date: Mon Jun 5 15:44:11 2000 +0000 Don;t send packet over downed interface. commit 8b79c4ccd597b90222f57eb3dfadeb24f39db7bd Author: Pavel Machek Date: Mon Jun 5 15:41:44 2000 +0000 Add safety check. commit 98da26a0a0ee9dd8f7030dcaf6f733adf8b8ad2c Author: Pavel Machek Date: Mon Jun 5 15:41:29 2000 +0000 Better error messages commit 49222deffff154ad7c287efd4a6847cc545cda6b Author: Ondrej Filip Date: Mon Jun 5 15:06:26 2000 +0000 Bug in comment. It didn't compile. commit b093c328f5b352e3d059cb14cceed1e4daa1b9dc Author: Pavel Machek Date: Mon Jun 5 12:52:57 2000 +0000 Updates to both programmers and users doc commit 73275d855dcc8a184bc19f3750c8775a59111260 Author: Martin Mares Date: Mon Jun 5 12:49:04 2000 +0000 Documented all the sysdeps (only briefly, I admit). Except for Filters, RIP and OSPF, the progdocs are complete. commit 525fa2c1f0e955455bed3fdb397aceb1e6e69a57 Author: Martin Mares Date: Mon Jun 5 12:19:12 2000 +0000 Documented sockets, events and timers. commit 10304bed435034cf8432b1c6262f7e7f0d84d49c Author: Martin Mares Date: Mon Jun 5 11:46:40 2000 +0000 Split random number functions off io.c, so that they can be documented separately. commit 5cc1e1f805934952f38ceb2ca6947c6d2e704937 Author: Martin Mares Date: Mon Jun 5 11:41:41 2000 +0000 Documented memory resources. commit 9238b06a2c6faac8b16e990821c91affde4072c4 Author: Martin Mares Date: Mon Jun 5 10:01:09 2000 +0000 Spelling. commit 42b3daa09cda8a4b80661177d3bf74b9258b0b88 Author: Martin Mares Date: Mon Jun 5 09:51:24 2000 +0000 Description of protocol module moved to where it belongs. If documentation of standard modules is stored in their source, such auxilliary files should be as well. commit ac272c0067cc7f04e74f0418bc0c9ce63a657175 Author: Ondrej Filip Date: Mon Jun 5 05:06:53 2000 +0000 Bug in LSA origination. commit dc2548d2ccc45722f0dcaa861dd3b45a397d2cac Author: Ondrej Filip Date: Mon Jun 5 05:06:22 2000 +0000 Premature age LSA if you're NOT dr. commit 88048fb3c970842a16c65b1566ba817871a04eb5 Author: Ondrej Filip Date: Mon Jun 5 03:46:19 2000 +0000 Small patch to better hash type=2 LSAs. commit 273fd2c16475d3d1275a4fe17443c3ba2b93fbc4 Author: Ondrej Filip Date: Mon Jun 5 02:23:20 2000 +0000 Many bugfixes (I don't remember all of them): Added link ID calculation for external routes with same prefix but different mask. Bugfix in NET lsa origination. Bugfix in NET hashing. Bugfix in LSA installing. commit 2d37d36c676e16b92ac38a60d3c269efeeaf07ac Author: Martin Mares Date: Sun Jun 4 20:06:42 2000 +0000 Updated the TODO list with our last-minute stuff. Moved the rest to "Various ideas". commit e24ddd9bef7e3d3490a8ee7667cd25069b40fe81 Author: Martin Mares Date: Sun Jun 4 20:00:35 2000 +0000 Don't set precedence and TTL for the dummy socket. commit 13e9bac33fc99e71efddf1790ce1e7dfdc09dfa8 Author: Martin Mares Date: Sun Jun 4 19:57:04 2000 +0000 One more newline less... :) commit df49d4e14b7c24f8ca958870fd1e9ddc84df1f1b Author: Martin Mares Date: Sun Jun 4 19:56:06 2000 +0000 Removed lots of trailing newlines in log messages. Please note that the only calls which don't add newlines automatically (i.e., don't print a full line of output) are debug() and DBG(). commit 201187c55837587d8f88775cd957d9c8e423c254 Author: Martin Mares Date: Sun Jun 4 19:55:11 2000 +0000 debug -> DBG commit bf3eb98eb829adc8bee4a210cfcefe29ba0524a1 Author: Martin Mares Date: Sun Jun 4 19:30:55 2000 +0000 Use nested scopes properly. Updated according to cf_define_symbol() changes. The rest of code doesn't need changing since it doesn't use nesting. commit 04dc62a0116941d2f1510216539ae8c11c5f1cb3 Author: Martin Mares Date: Sun Jun 4 19:30:13 2000 +0000 Nested scopes could never have worked. My fault I wrote such a buggy code, Pavel's fault that he's never tested shadowing of declarations in the filters. cf_define_symbol() has been modified to check the scope of the symbol it's given and it if it's an already defined symbol, but in a different scope, a copy is created in the current scope and redefined to the new meaning, the consequence being that it cf_define_symbol() now returns the new symbol you need to use when assigning aux and aux2. commit dab66519160042f1fb62a285e3a947233ce74e70 Author: Ondrej Filip Date: Sun Jun 4 19:21:23 2000 +0000 Install newer lsa even if nothing in its body change. commit 67cc9135bfd515149ecca62f32026cd6e2a390b0 Author: Ondrej Filip Date: Sun Jun 4 19:20:28 2000 +0000 Many bugs in ext lsa origination. commit ce8f0c083a5f46e001dff759e924910c415cfb48 Author: Ondrej Filip Date: Sun Jun 4 19:19:36 2000 +0000 Schedule RT calcualtion if you delete LSA by premature aging. commit f7667ba1c4c7a35266ae5018b059a14a01f7f907 Author: Martin Mares Date: Sun Jun 4 18:46:30 2000 +0000 When cloning a rte and replacing its rta, remember to free the old one so that we don't leak memory. Thanks go to the resource tracking system for quickly discovering the source of leakages. commit 7722938d63d206ebc0e1da732009e1e9f2cd9d72 Author: Martin Mares Date: Sun Jun 4 18:34:39 2000 +0000 Added library progdocs. commit 102e3e0e0277e7b123c7c1ae3635c4a8fb55c900 Author: Ondrej Filip Date: Sun Jun 4 17:51:52 2000 +0000 Just to be sure, that rt calculation cannot start beforeorigination of rt LSA. commit 83e50ffc472c8869d58a7d1da27846bd727a8cfd Author: Ondrej Filip Date: Sun Jun 4 17:33:15 2000 +0000 Bug in debugging. commit 71f7d043a6f03b5d5cd0701bb679b914b1bf47d1 Author: Ondrej Filip Date: Sun Jun 4 17:10:52 2000 +0000 :-) No bison does not have any comment to my code. :-) commit 54e55169da71a6e6e2d8f9fbc0123297301217d7 Author: Martin Mares Date: Sun Jun 4 17:06:18 2000 +0000 BGP documented. commit 3560cf8e0b68ce0cac5a9af2aadbc09d4f529e7c Author: Ondrej Filip Date: Sun Jun 4 16:36:57 2000 +0000 Clean up. commit e7811248685520ceff362b8bc7f090067ca42114 Author: Ondrej Filip Date: Sun Jun 4 16:17:39 2000 +0000 Another clean up. commit 47f8e0c2169bba2dd209f1c7ed89f1d605d36b3e Author: Martin Mares Date: Sun Jun 4 16:16:08 2000 +0000 Document. commit 3b31c538333156770ddb74a7a27f271784745144 Author: Martin Mares Date: Sun Jun 4 16:15:37 2000 +0000 Documented all the trivial protocols. commit 2a863dd6e18a43fe3de5b1f3651e816f6fc27bb1 Author: Ondrej Filip Date: Sun Jun 4 16:12:01 2000 +0000 Small change to make bison happy. commit 58f9453776dff92b4ee4c81f6ca3601b6ee9f041 Author: Martin Mares Date: Sun Jun 4 15:22:20 2000 +0000 Moved parser docs to cf-lex.l, so that the parser compiles. commit cdb898cfd40fe866a1835689814113075b7b5a67 Author: Martin Mares Date: Sat Jun 3 18:23:27 2000 +0000 Minor changes to the progdocs. commit 06607335ef73bc0ffeb377a420e6438b531a4ea7 Author: Martin Mares Date: Sat Jun 3 18:23:00 2000 +0000 Documentation. commit 899fc0abfe8400425860d0e9e4d6cc7fd338978c Author: Martin Mares Date: Sat Jun 3 18:22:43 2000 +0000 `|' now works as it should. commit 2e130b5cadb970b7f4f743e69cd459b5b42cf208 Author: Martin Mares Date: Sat Jun 3 17:02:30 2000 +0000 Recognize `|xxxx|' as verbatim text and typeset it using . commit c0b2f6463fd7464ce6fe4d9dc67f37e61bface11 Author: Martin Mares Date: Sat Jun 3 16:56:00 2000 +0000 cf_symbol_class_name now recognizes SYM_IPA. commit 3d675cdbe7287d3024d041ce4e28dacf7ca527cc Author: Martin Mares Date: Sat Jun 3 14:40:39 2000 +0000 More documentation. commit aaaff77605879ffd80f8980f06ea66329e9aaea8 Author: Ondrej Filip Date: Sat Jun 3 09:50:31 2000 +0000 More conf. items defined. commit a789d814ddd8473fdb85bedb02014f6cb6435373 Author: Ondrej Filip Date: Sat Jun 3 08:42:04 2000 +0000 Multiple items in area {} :-) commit 89d6782dd1a7775a292db3b2b622c8a48dbd757c Author: Ondrej Filip Date: Sat Jun 3 01:29:00 2000 +0000 interface {} added. commit b36a0a799c751864f65bc3384df301448b54f3bf Author: Ondrej Filip Date: Fri Jun 2 19:55:55 2000 +0000 area {} added to config. commit 7e602d5ea74206236373230a4620736370b3cc9c Author: Martin Mares Date: Fri Jun 2 17:42:21 2000 +0000 Killed several bugs in kernel-doc. The most painful one was that it was unable to recognize structure markers `&'. commit a7ed3e557fd1f8c4e56fef9a5238091181c01186 Author: Martin Mares Date: Fri Jun 2 17:41:43 2000 +0000 New TODO list. commit ddbcb927f255ef4720e87b7f14339add37e705ce Author: Martin Mares Date: Fri Jun 2 17:24:11 2000 +0000 Documented protocol hooks. commit 371adba6deb0add48fd4d03d40d4e098590689fc Author: Martin Mares Date: Fri Jun 2 17:23:53 2000 +0000 Use for chapters, for sections and for subsections. commit 6cba2d5eeb522cbf6f1cc28c38fc2c445f41d1e6 Author: Martin Mares Date: Fri Jun 2 17:22:43 2000 +0000 Typographical enhancements. Now, the documentation is typeset using a modified book style. Please look at this version and tell me your opinion. Especially I don't feel happy about the spacing and (not) indenting of paragraphs. Also, I've removed things like "fax" and "letter" from the LaTeX mapping file. commit 3fa5722defc340571a6518d5556b1e354f05ce18 Author: Ondrej Filip Date: Fri Jun 2 15:05:41 2000 +0000 First option into config added. :-) commit 62924172aef9cf5308fd21d3ad5f6572b977c268 Author: Ondrej Filip Date: Fri Jun 2 13:52:50 2000 +0000 Flush LSA when receive aged one. commit 3c6269b8fec71fa22d5b087cae0e9ef86ff2b351 Author: Martin Mares Date: Fri Jun 2 13:42:36 2000 +0000 Added documentation on protocols. Protocol hooks deserve an extra chapter (to come soon). commit e4ba0ec1977e9925ec67f9442067e5ff7cb36111 Author: Ondrej Filip Date: Fri Jun 2 13:27:34 2000 +0000 Bugfix in receiving of aged LSA. commit 9a8f20fc0fda1cf910fe8ca21e850ab1524c4355 Author: Martin Mares Date: Fri Jun 2 12:41:25 2000 +0000 Better description of the route distribution process. commit 2eac33f774a2075cff3d28f7fdb36e0482e48f35 Author: Ondrej Filip Date: Fri Jun 2 12:34:28 2000 +0000 Better LSA Aging. commit 3ce8c61000da58261750af2b6e60dbf2fca2abcf Author: Martin Mares Date: Fri Jun 2 12:29:55 2000 +0000 Documentation on routing tables and route attributes. commit 566a0eede7094519df07418116beeb7f3f976c7a Author: Martin Mares Date: Fri Jun 2 12:29:24 2000 +0000 Removed rta_find() since nobody uses it and it's more convenient to use ea_find() directly. commit ece612e12808325b1b7eb24d060a42343549238f Author: Ondrej Filip Date: Fri Jun 2 11:24:38 2000 +0000 sh interface "iface" dumpped all. commit 7a5582ac0045b80274de3183eca9b71eb52f2e6b Author: Ondrej Filip Date: Fri Jun 2 11:00:14 2000 +0000 Better dumping, if I get strange lsack. commit 3488634cba08aeda19a733f7c76aef7a54a4e0ec Author: Ondrej Filip Date: Fri Jun 2 10:21:02 2000 +0000 Handle "show ospf *" even if protocol is down. commit a489f0ce8ba44df0894a2bd102660fed1bed5ac6 Author: Ondrej Filip Date: Fri Jun 2 09:57:22 2000 +0000 Silly bug in sh interface. Now I test ALL interfaces. :-) commit 489f800b45d6d2d1a1fc9b371a015563cea9722d Author: Ondrej Filip Date: Fri Jun 2 09:53:26 2000 +0000 Speedup loading process. commit 75317ab8e522b5dceb87b204e09d8ad919ac8558 Author: Martin Mares Date: Fri Jun 2 09:51:26 2000 +0000 Spelling fixes. commit f8e2d916b6cbe42131bfefbc5a2cd0ddfaf8131b Author: Martin Mares Date: Fri Jun 2 09:46:35 2000 +0000 Minor fixes. commit 92e8be8c898932bf959e722acfbb33d154b8fcc4 Author: Ondrej Filip Date: Fri Jun 2 09:42:24 2000 +0000 Bugfix in lsreq receiving. commit cd4fecb66affe468928abd87cadef4ff9a991d0b Author: Martin Mares Date: Fri Jun 2 09:35:17 2000 +0000 Made it *compile* !!! commit 64ba9f7bcc4bb3b53c0cab303c230855a1443a42 Author: Pavel Machek Date: Fri Jun 2 08:01:12 2000 +0000 Do not try to divide by zero. commit 326e33f521f7796cbdde4a36a67bb4c7ffd25c1b Author: Pavel Machek Date: Fri Jun 2 07:59:26 2000 +0000 Results of complete reading of documentation. commit c4f0f0140863c743b1d63c3bc94cb8e85417a4ad Author: Ondrej Filip Date: Thu Jun 1 17:52:21 2000 +0000 Added show ospf interface. show ospf neighbors now knows "". commit 58740ed4c587a230bf1406eca52cbc84bcb1c5c3 Author: Martin Mares Date: Thu Jun 1 17:12:19 2000 +0000 Documentation. commit 658d272bb635b5efeeed883dec5af9dddf12397f Author: Martin Mares Date: Thu Jun 1 17:11:10 2000 +0000 Better handling of parameterless functions. commit 725774926676352d2a065cbeb95a81b95bfcfa3e Author: Ondrej Filip Date: Thu Jun 1 16:45:10 2000 +0000 Some other reply codes allocated. commit 4ab4e9778f35f8a123ee6bbc2387b9870859b707 Author: Ondrej Filip Date: Thu Jun 1 16:26:59 2000 +0000 show ospf implemented. commit cf318e3cd3206ad6a459a01e29e8494a100a67eb Author: Martin Mares Date: Thu Jun 1 16:17:29 2000 +0000 Removed comments about workings of the old neighbor cache which are (1) obsolete and (2) replaced by the progdoc. commit 1f495723c355b66383ab391fdba84aae7e9226eb Author: Martin Mares Date: Thu Jun 1 16:16:49 2000 +0000 Documented. commit ce4aca093a267da3dcd07b25f4390d393fd3c259 Author: Martin Mares Date: Thu Jun 1 16:16:18 2000 +0000 FIB documentation. I've changed the init callback type to a typedef to work around a bug in kernel-doc I'm too lazy to hunt now. commit a783e259d8d710208280126177487cc790418515 Author: Ondrej Filip Date: Thu Jun 1 15:53:06 2000 +0000 Cisco-like "show ospf neighbors" implemented. commit b594ad238692738352cd8827d71038a356b0d5a5 Author: Martin Mares Date: Thu Jun 1 15:13:23 2000 +0000 tm_format_reltime() works with both past and future timestamps. commit c23f40b1458e448ec9e7c974a2c486f2eccff871 Author: Martin Mares Date: Thu Jun 1 15:04:25 2000 +0000 Use instead of . commit a9aa4c1ebb5ccdb2c6c7672267ad32670261a10b Author: Martin Mares Date: Thu Jun 1 13:13:49 2000 +0000 Inactive sticky neighbors have no scope. commit 23df5e4cf3b0ff10e7484fc5ca40cb5ea638078b Author: Martin Mares Date: Thu Jun 1 13:00:39 2000 +0000 Print route tag in hexadecimal and omit it if it's zero. commit bc00185e5a2d51d965465f117722fd4189437d24 Author: Martin Mares Date: Thu Jun 1 13:00:19 2000 +0000 Updated to new neighbor cache. commit 491cd43b777e46a301ae2a8f5400acaeb28b8ca5 Author: Martin Mares Date: Thu Jun 1 12:59:50 2000 +0000 Updated RIP to new neighbor cache semantics. When presented with next hop equal to a local address, just ignore the route (as it is usually just an external route exported by us echoed by some RIP peer), when given an invalid next hop, moan to the log. commit 4a91150175268d49a1c17131838e5afad925788b Author: Martin Mares Date: Thu Jun 1 12:58:41 2000 +0000 Updated for new scope handling. Also, provide proper address scopes in struct ifa. commit 0f32f2a65a086561fdfd31d4efdea839ec9ce573 Author: Martin Mares Date: Thu Jun 1 12:58:04 2000 +0000 Modified the neighbor cache to remember local addresses as well. neighbor->scope now contains proper address scope which is zero (SCOPE_HOST) for local addresses, higher (SCOPE_LINK, ..., SCOPE_UNIVERSE) for remote ones. commit 56ca7acd3afd0df7928b3adfe4a8db8b29b89fb2 Author: Martin Mares Date: Thu Jun 1 12:55:26 2000 +0000 BGP: RFC 2842 has replaced the cap-draft. commit df968040f6b0f9eb83aa9c9eb4b4d6dcee6a384a Author: Ondrej Filip Date: Thu Jun 1 12:17:08 2000 +0000 Print tag unsigned rather then signed. commit c52c7e764576fed027defa0c06a056f89912787a Author: Ondrej Filip Date: Thu Jun 1 12:08:14 2000 +0000 Calculate checksum when reflooding (after min ls_refresh). commit 5f4aee76a2e26a6947f47273d510edc524716a45 Author: Pavel Machek Date: Thu Jun 1 08:43:29 2000 +0000 Added && and ||. commit 1877dab21715eb23addb3391afbd8dbf571f833d Author: Pavel Machek Date: Thu Jun 1 08:34:30 2000 +0000 Allow case net { 62.0.0.0/8+: 10.0.0.0/8+: else: reject; } commit 1895e81e0532f732f501036402bbdd1825885cfd Author: Pavel Machek Date: Thu Jun 1 08:32:49 2000 +0000 Allow matching on enums: if !(scope ~ [ SCOPE_HOST, SCOPE_SITE ]) then { print "Failed in test"; quitbird; } commit 42542c56c23174bfaefb1b949b90ed72afbea8fd Author: Ondrej Filip Date: Thu Jun 1 00:32:08 2000 +0000 Cleanup. commit d27d0efe17a197ae41e25bc56526d5fc4ac4a93e Author: Ondrej Filip Date: Thu Jun 1 00:22:48 2000 +0000 Very stuping bug. (I took me 4 hours to find it!) I just wrote "=!" instead of "!=". :-((((((( commit 2983460bc0adabe357ba839972ea8d09c97c32a4 Author: Martin Mares Date: Wed May 31 22:39:06 2000 +0000 Both `help' command and the `unknown command' error message now tell the user to press `?' if he wants help. commit 2f5e5ff9d6e91e7a3e478b316d6b2d23003ad80e Author: Martin Mares Date: Wed May 31 22:28:36 2000 +0000 Before configuration file is read, log to _both_ syslog and stderr. commit c184d9d0bdded559fb9d19accd17b88963e46669 Author: Pavel Machek Date: Wed May 31 21:51:04 2000 +0000 Documentation update commit 0b1cad81623e85f1f1b9ef3652cdc389641496e5 Author: Pavel Machek Date: Wed May 31 21:50:13 2000 +0000 Complain when filter does not end in accept nor reject. commit b5958826cc5fc75b5f99c51559d1ffedea5884b4 Author: Ondrej Filip Date: Wed May 31 18:55:57 2000 +0000 Ehm, some other "down" steps. commit 3f6953a103b9a846625a0d51e30b6dc59eedc7f0 Author: Ondrej Filip Date: Wed May 31 18:45:16 2000 +0000 Some bugs in cleanup after iface down. commit 489b21555e59d39d1c26dd3051f077c6f0a07c85 Author: Ondrej Filip Date: Wed May 31 18:36:51 2000 +0000 Why does not work "sk_close(sk);rfree(sk);"? commit 46962be628c1bd1d9c2badeea181ff6f87f0cb29 Author: Ondrej Filip Date: Wed May 31 18:31:53 2000 +0000 Better debugging. Safe neigh_list deleting. commit 3728267827e83bc095956b16256feae9e28adce7 Author: Ondrej Filip Date: Wed May 31 18:21:42 2000 +0000 And finally, Premature aging works. :-) commit 31ee3d5f214666a4b2da328dc894a5a9089acc87 Author: Ondrej Filip Date: Wed May 31 15:51:39 2000 +0000 Another step to make premature aging better. commit a9eeefd63ab7886bc2a5b8f0f7a2d1ec69a9c831 Author: Ondrej Filip Date: Wed May 31 15:28:13 2000 +0000 Warning destroyed. :-) commit 82364f4db8fff969932989bfcc5be89c73b15174 Author: Ondrej Filip Date: Wed May 31 15:24:29 2000 +0000 Flood my LSA (if exists) after old one is flushed. commit 0822995cb31b596d1fe9e8bb67f7e9d1c184694e Author: Ondrej Filip Date: Wed May 31 15:04:45 2000 +0000 Set E2 metric for internal routes to LSINFINITY. commit 9a04d0307e85913554122a2dd0397486b5ef702c Author: Ondrej Filip Date: Wed May 31 14:52:22 2000 +0000 Delete _all_ ext routes from unreachable neighbor. commit 528932368ac5c5ffe6ee3412fc8e9e1cb9cbd7db Author: Ondrej Filip Date: Wed May 31 14:43:42 2000 +0000 Stuping bug in net LSA origination. Now, I should survive loss of my only neighbor. commit 1c1f1b6c0a9012aaf0d3b94275895cb87b5ff695 Author: Martin Mares Date: Wed May 31 14:27:49 2000 +0000 This should be enough from the SGMLtools distribution to make the SGMLtools happy. The only symlink you need now is dist/birddoc -> dist/sgmltool. I'm convinced it could be avoided by renaming the directory instead, but I'd rather avoid it due to CVS pecularities. commit 1885aa8ce33e6617d45dbc2f5ee2852bf5f72e88 Author: Martin Mares Date: Wed May 31 14:25:27 2000 +0000 Clean LaTeX .aux and .toc files as well. commit fcdddff5f3f5c9f2a15377a9dd08f105a3b696a0 Author: Martin Mares Date: Wed May 31 14:24:21 2000 +0000 Formatting of progdoc works in both HTML and LaTeX. The LaTeX output still has somewhat weird spacing, but it will be hopefully easy to fix. commit d1660fd3f38c29739ff36c86c6010d65fb90c608 Author: Ondrej Filip Date: Wed May 31 14:21:56 2000 +0000 Sort cleanup in aging. commit 70a383198ae08bed395f2a083c1bea5b37447705 Author: Ondrej Filip Date: Wed May 31 14:06:33 2000 +0000 LSArt origination and routing table calculation is now not doing so often. Instead of calculation I just schedule it latter. commit aa185265f1cb310c053edb1a3bde28b4dab94964 Author: Martin Mares Date: Wed May 31 13:54:00 2000 +0000 Updated headings and copyrights. commit 38cf78a97a1541cf80a5b10c08ab25d564654516 Author: Martin Mares Date: Wed May 31 13:30:58 2000 +0000 Added the introduction chapter of progdoc. commit 3caca73fd9c05121b9748793df5f1378af3a8ce5 Author: Martin Mares Date: Wed May 31 13:30:29 2000 +0000 Spelling check and update of LocalWords. commit fc741dab27913b9c5f9a97642158b5011a9c4700 Author: Ondrej Filip Date: Wed May 31 13:20:25 2000 +0000 Handle better next hop in external LSA. commit e0bbb7b7ef1aabbf037190225ebac11f7812ae84 Author: Ondrej Filip Date: Wed May 31 12:52:12 2000 +0000 Very ancient bug in (B)DR election, I didn't fill correctly my own IP. commit a7a3a0a383a9dadcd93d876e7d9b43f870f20941 Author: Ondrej Filip Date: Wed May 31 12:07:09 2000 +0000 Added tagging of external LSA. commit fec5bec0b5f0e114a635c99a731e922ce735ff81 Author: Martin Mares Date: Wed May 31 11:36:21 2000 +0000 Make documentation targets available from the top-level makefile as well, but not with separate object tree yet. commit 46527a939e97a8a0d6d023ad7853e5e9a2df1ea9 Author: Martin Mares Date: Wed May 31 11:35:47 2000 +0000 Modified the Makefile to work in the source tree. From now, you can just `make userdocs' in doc, no need to use ugly scripts. Also, `make progdocs' builds the programmer's documentation in HTML, LaTeX version to come later. commit fcb5f4a725c9edecca7d4646c633e42f66ab53b6 Author: Martin Mares Date: Wed May 31 11:30:18 2000 +0000 Updated all the Doc files to new format. commit 6be13de762cebc9fc5f977e0e3423a9e2ae23a95 Author: Martin Mares Date: Wed May 31 11:29:56 2000 +0000 New progdoc script generating SGML output. commit c9c3611734cfb8265586ad8447483cbba9727617 Author: Martin Mares Date: Wed May 31 11:29:22 2000 +0000 Added new output format `bird' which creates birddoc SGML. commit 3fc259549595c952befbe589764ae0bc1ae82728 Author: Martin Mares Date: Wed May 31 11:28:52 2000 +0000 Added tags for markup of programmer's documentation. commit c92795e934758a32472ebc5766ff0f61b1c1409c Author: Martin Mares Date: Wed May 31 11:28:07 2000 +0000 Moved old TeX documents to old/ to make them not interfere with doc building. commit a2a3ced83eea3919639adafbdacb7ec11011f9cb Author: Martin Mares Date: Wed May 31 10:07:27 2000 +0000 Added Pipe documentation. commit 0884f492232bb81366c04982bf4935307d273c26 Author: Ondrej Filip Date: Tue May 30 23:29:23 2000 +0000 Ehm, in had this in code: "break; i--;" :-( commit 3b0b2cb61f4e9c3bfbb4770b941c5aba56d9e70e Author: Martin Mares Date: Tue May 30 22:48:14 2000 +0000 IPv6: Absolutize link-scope addresses of incoming packets. IPv6 socket interface is hopefully right now. commit cfa6ab0593a02c3d4d0d959c771f72430f1adf67 Author: Martin Mares Date: Tue May 30 22:47:33 2000 +0000 Added ipa_absolutize() which converts link-scope addresses to global scope ones according to prefix assigned to the corresponding interface. commit 69a20d2effb651e475b8ab8b04ee1a04a76db07f Author: Martin Mares Date: Tue May 30 21:46:21 2000 +0000 Recognize `!'. commit 5919c66e8fdd87ee7e5c5a1e0ce01893e0ce103d Author: Martin Mares Date: Tue May 30 21:25:32 2000 +0000 Route attributes for OSPF. commit 2cec475b8fbaa6cb0865ceacd900ffb678818330 Author: Martin Mares Date: Tue May 30 21:24:53 2000 +0000 Removed several unused local variables. commit 2f71123158973d770eee1dea64b46a4774bcf9a5 Author: Martin Mares Date: Tue May 30 21:24:15 2000 +0000 Killed bug in merging of dynamic attributes. commit caab3bb374d2671982d068c0fb0aa6217691d5bd Author: Martin Mares Date: Tue May 30 21:23:49 2000 +0000 Better formatting of protocol status. commit 36032dedc619a39d45d6abe79d27110a98751ba9 Author: Pavel Machek Date: Tue May 30 19:20:02 2000 +0000 Added section about client. commit 3e8645560624ac70ccc6d5f96fabcdae0a87cf4d Author: Ondrej Filip Date: Tue May 30 18:21:51 2000 +0000 Added \n in debug. commit 7e1c7efae2762752ef897bfa215b299127412b66 Author: Ondrej Filip Date: Tue May 30 17:57:06 2000 +0000 Stupig bug in debugging. commit 3dd8f983b649c83f50d44ca2093ab1f931eaba4d Author: Ondrej Filip Date: Tue May 30 17:51:22 2000 +0000 You can decide if add LSA into lsrth during flood_lsa(). commit 3d410fdfa1a6fc20952cf94b39ebff197a3c065a Author: Ondrej Filip Date: Tue May 30 17:49:25 2000 +0000 Reflood your old lsa. commit 13b02be25a41d7a505f7a888f948220a15edcf8a Author: Ondrej Filip Date: Tue May 30 17:00:17 2000 +0000 Don't run rt calculation twice. commit b477a9a855f75486c2e03bb7b68faba7923bc511 Author: Ondrej Filip Date: Tue May 30 16:49:48 2000 +0000 Don't send empty LS upd. (And better debugging.) commit e1e31816c4e6931465936afa39f5773cf4591b35 Author: Ondrej Filip Date: Tue May 30 16:48:42 2000 +0000 Aging delta changed. (Ehm, aging is very dirty I'll have to change it.) commit 1b128de364e5a1931c1cc61b04c1e44960007025 Author: Ondrej Filip Date: Tue May 30 16:13:59 2000 +0000 Better shutdown. commit 935ceabea43714e4abae7ecaac0f072e8a4ecb15 Author: Ondrej Filip Date: Tue May 30 16:08:29 2000 +0000 Don't send empty LS update. commit a548a7e167d50587aac4549d32924c95dc329e99 Author: Ondrej Filip Date: Tue May 30 15:05:47 2000 +0000 Bug in direct ack (via update). commit 4513280611d6c4e3409bf75139a9bd844843d462 Author: Ondrej Filip Date: Tue May 30 15:04:52 2000 +0000 Bug in socket closing. commit ef6f26b417060f9ac6c26224469b909a0c3aa933 Author: Ondrej Filip Date: Tue May 30 15:01:51 2000 +0000 Bug in lsa comparision. commit 2aa476a535c878a412bb732eae16d97848f07ff3 Author: Ondrej Filip Date: Tue May 30 13:39:06 2000 +0000 Yeah, the endianity bug found. commit 76e2514328a71abd1ed37b9b32421d2ab924b4c0 Author: Ondrej Filip Date: Tue May 30 13:25:47 2000 +0000 Better dumping. commit 7b099bf9a73b4a81f74d90fa8f413c9ebd85f384 Author: Pavel Machek Date: Tue May 30 11:50:17 2000 +0000 Recovering after change linuxdoc->birddoc commit 068b41272e8fbb81882a187dcef6d5f3d4e43ed2 Author: Pavel Machek Date: Tue May 30 11:27:42 2000 +0000 Don't say too bad things about our concurence. commit e9df1bb64786b24a230686310aeb4850b93fa5bb Author: Pavel Machek Date: Tue May 30 11:23:47 2000 +0000 Small change in working to make it obvious we are free software. commit 1cb10462c33731817f61ffbdd2e42c538baf0e0f Author: Pavel Machek Date: Tue May 30 11:22:12 2000 +0000 Date removed. commit f3b33928ce43794d499dc0e1fbbeb623572042d1 Author: Pavel Machek Date: Tue May 30 11:15:19 2000 +0000 Tried to change garbagetime -> garbage time to be more consistent. commit 24e1e2005b0728bfc404f248efb7d17b34cb0910 Author: Pavel Machek Date: Tue May 30 11:09:09 2000 +0000 Another testbed for filters. commit 04c3a83c60253d5c71500194a19160538c0da034 Author: Ondrej Filip Date: Tue May 30 11:07:31 2000 +0000 Better inicialisation. commit 0dc4431cde1eeb06d9b4d7dbf18242919ce2811a Author: Pavel Machek Date: Tue May 30 11:07:22 2000 +0000 Access to all attributes we should be able to access seems to work. commit 5970fcda8c4eb2cfe69c04d50429855c7c57bb6d Author: Ondrej Filip Date: Tue May 30 10:53:48 2000 +0000 Some exchange between init() and start(). commit 26c09e1d25abff7fb88959dc6fbaa7ae5eb295ad Author: Pavel Machek Date: Tue May 30 10:42:39 2000 +0000 Added read-only access to all required fields in rta. commit 2d6627a7a5e52f8314520f9aefd82040e24849cb Author: Pavel Machek Date: Tue May 30 10:42:00 2000 +0000 Fixed bug in RIP docs. commit 73232f6b18222d73b38eae58e2c4c90062202709 Author: Ondrej Filip Date: Tue May 30 10:36:57 2000 +0000 Better rt dumping. commit 2bdb5e0083b6f24d29d74bb5e62cd13d724ba54f Author: Pavel Machek Date: Tue May 30 10:23:04 2000 +0000 Cleaning static attributes commit 05dbc97b13534eb886945d1f291aaba34238c99c Author: Ondrej Filip Date: Tue May 30 10:20:14 2000 +0000 Bug in rt_notify. commit fe613ecded2fca875a146e1c07713f131e85f7ff Author: Pavel Machek Date: Tue May 30 10:13:32 2000 +0000 Access to few more attributes is needed. commit f7876c36602015dbf6d7aa3d73fda5ad1c2f6c5a Author: Pavel Machek Date: Tue May 30 10:13:15 2000 +0000 More todo in documentation. commit 298f2530ec05ee86c52f2fbce306ac186a3f6dd8 Author: Pavel Machek Date: Tue May 30 10:13:02 2000 +0000 Moved description of filters to programmers docs. commit 9e85a5e6f26866a255577ff10786c12a64cba624 Author: Martin Mares Date: Mon May 29 22:16:04 2000 +0000 Delay user input whereever appropriate. commit 4761efdb43aa128fa0326963d88debe8fb942c84 Author: Martin Mares Date: Mon May 29 22:10:18 2000 +0000 Tracing of CLI connections/commands can be now controlled by `debug commands ' in the configuration. Level 0 means no tracing, 1 means connections only, 2 includes all commands. commit 26eee1c33ac90ccbc5753afac06d34980fade2b8 Author: Martin Mares Date: Mon May 29 22:09:29 2000 +0000 Updated TODO. commit 7294f68b3b3474183434ae05b43a344f1bfce6db Author: Martin Mares Date: Mon May 29 22:08:04 2000 +0000 `path metric' and `disable after error' are switches, not numeric clauses. commit e67af42805c16093bb720a1bd04ad8932e86e49e Author: Martin Mares Date: Mon May 29 21:58:35 2000 +0000 Support --version and --help. commit 5459fac61f3a645c636bdf32c140f4d7083034d2 Author: Martin Mares Date: Mon May 29 21:03:27 2000 +0000 Added BGP documentation. commit 56ab03c71f35c6c360b58b88f9e524c97714fdf6 Author: Martin Mares Date: Mon May 29 13:47:18 2000 +0000 Added introduction to BGP. commit 0e4789c2c3a8f217f01a4e472c8dd45db609c34b Author: Martin Mares Date: Mon May 29 13:13:58 2000 +0000 Added Kernel protocol documentation. commit d9d41c60426ab1896bc689cd2a26c51f49e27e3a Author: Martin Mares Date: Mon May 29 12:46:27 2000 +0000 Capitalize properly in Install section. BTW, what about configure options and similar things? commit 4f88ac47c671af2221061b793fa495a78994e44a Author: Pavel Machek Date: Mon May 29 12:23:49 2000 +0000 Reduce number of chapters -- having subchapter for 2 lines of code looks ugly in output. commit 0e694e041a99860454fe0a74eb83133d89896d62 Author: Martin Mares Date: Mon May 29 12:18:30 2000 +0000 Minor fixes as requested by Pavel. commit 440439e3cc2ce7a9e6b36e6801f37c42cce1a729 Author: Pavel Machek Date: Mon May 29 12:05:56 2000 +0000 Really short installation section added. commit 04a22949d7f63d6979642e41ded0f61d7a477980 Author: Martin Mares Date: Mon May 29 12:05:21 2000 +0000 Renamed the DTD from linuxdoc to birddoc. Pavel, please check whether it builds in your environment as well. commit 897cd7aa559033aae99281e569a5153a22a952f9 Author: Martin Mares Date: Mon May 29 12:03:28 2000 +0000 Tried to write a better introduction. commit 9d8934891405348ad925d8421b673ea979f256eb Author: Pavel Machek Date: Mon May 29 11:53:24 2000 +0000 Docs updates. commit 79a2b697e3c94a787d72db4ed85b78928d3240c2 Author: Martin Mares Date: Mon May 29 11:30:25 2000 +0000 Added description of Static, Device and Direct protocols. commit 98627595fb4223991d60f809bbeac98cf34aabfb Author: Pavel Machek Date: Mon May 29 11:22:43 2000 +0000 Better description of how route is selected. commit d247d261e55bec7fadfef89c39ca3257816af771 Author: Pavel Machek Date: Mon May 29 11:22:30 2000 +0000 Info about client. (Mj, if you tell me that's trivial, what about you writing it?) commit 2f647f3f9f51effbb63aee5bb2c45d054b7922e4 Author: Pavel Machek Date: Mon May 29 11:13:51 2000 +0000 Added "what is router" to introduction. commit 1b55b1a3640da3ec2b032dcea3f4f7cbdff82303 Author: Martin Mares Date: Mon May 29 10:32:37 2000 +0000 Spelling fixes. Added skeleton for subchapters on all the protocols. Each subchapter should contain: Introduction (brief intro to the protocol, where should it be used, references to the relevant standards) Configuration Attributes Example Added a more detailed description of RIP attributes. commit e9d6b1d19fc35e611aa5a6020c0b531dee96d77d Author: Ondrej Filip Date: Sun May 28 20:11:56 2000 +0000 Kosmetic change in debugging. commit f7c0525edcffc6c85d0e526c4c9741b06fc521d2 Author: Ondrej Filip Date: Sun May 28 19:16:04 2000 +0000 get_route_info() added. commit d150c6379c03a9df98ff5dd53a6442a10713b571 Author: Pavel Machek Date: Sun May 28 19:11:08 2000 +0000 Documentation update. commit cdc25e8db7bfb38a9aca71abc5c202c25f4b0732 Author: Ondrej Filip Date: Sun May 28 19:07:39 2000 +0000 To find out a type of route (external, inter/intra area) commit 4414d9a57a0dae3da0e0e0d924bf8cab89070716 Author: Ondrej Filip Date: Sun May 28 18:49:33 2000 +0000 get_status() implemented. commit d5f029df482e596ccdbac341f605f6f809229db1 Author: Ondrej Filip Date: Sun May 28 18:34:20 2000 +0000 Just added some debug(). commit 4bd28fb68e6e691aee87cec41f219224e2dd69dc Author: Ondrej Filip Date: Sat May 27 15:36:02 2000 +0000 Better shutdown. (Flush my own router LSA and send 1WAY to every neighbor.) Ext LSA originating and flushing added. commit e8085abaa76c32bb325e378dfe2851bc98602c1e Author: Ondrej Filip Date: Sat May 27 14:17:35 2000 +0000 Originating of external LSA. commit 2d5b999236c20d293006af0b4d94af7ae04dd2a7 Author: Ondrej Filip Date: Fri May 26 19:04:18 2000 +0000 Import control implemented. commit 216fd83c4b213ea3774d2c536ae089ea1e81b443 Author: Pavel Machek Date: Thu May 25 16:28:08 2000 +0000 Spell checking. commit 9b24a6fb94049691075dfcdc00e2a0ae244c2325 Author: Pavel Machek Date: Thu May 25 16:17:54 2000 +0000 Text version generated from lynx looks as ugly as hell, sgml is much better at generating nice output. Unfortunately, sgml output contains a^ha highlight some printers do not like. commit d26524fa0c06f6716d5e226b18d7d4770924c6d4 Author: Pavel Machek Date: Thu May 25 15:28:24 2000 +0000 Add section about routing tables. commit ad9074e9ba2f2c1fa7e681b5f79f9049e5c640f8 Author: Pavel Machek Date: Thu May 25 15:20:40 2000 +0000 Cleaned up warnings. commit 69477cad708235f2ab79796dc62c06d3c879111c Author: Pavel Machek Date: Thu May 25 15:11:13 2000 +0000 Add section about utility functions in filters commit 4a5bb2bf1bbbb7d2bba7776af481a13a58ec39ae Author: Pavel Machek Date: Thu May 25 15:01:08 2000 +0000 Description of types needed for BGP. commit 9a09a64bb4160a5bb79cdf91bd95b7f77966f62e Author: Pavel Machek Date: Thu May 25 14:58:38 2000 +0000 Use ? in path matching to avoid /* trap. commit ba1dda495ad29cd86260533828ce38c7d327f045 Author: Pavel Machek Date: Thu May 25 14:50:46 2000 +0000 SGML correctness fix. commit 0e5373fd823d174d0cdd7820fc94cdbe4b0db5a3 Author: Pavel Machek Date: Thu May 25 12:33:42 2000 +0000 Some more documentation, plus minor fixes. commit 72282e2a1b52552eadd61a86659119db8478427d Author: Pavel Machek Date: Thu May 25 12:33:15 2000 +0000 Fixed comment not to be misleading. commit 416e3ee4b07d9ed30ada45eee736d877efe139db Author: Martin Mares Date: Sat May 20 11:00:14 2000 +0000 Get Linux version from , not `uname -r`. commit 2eca3b3a9ce8ea405f81cb1dbf55b79d3b2d3c18 Author: Martin Mares Date: Fri May 19 19:49:33 2000 +0000 Routing table garbage collector gets really called. commit 0ba8a6147d2a6ca4611c9e87e6b9d640d94966b4 Author: Martin Mares Date: Fri May 19 19:40:12 2000 +0000 Fixed a very nasty bug in FIB iterators. commit d2a7c0e9b2b51287cca6bf9f9ef513cbe29d4dbd Author: Martin Mares Date: Fri May 19 18:05:19 2000 +0000 Don't print trace messages about null updates. commit 3ced9b349daeb64357136311e436401c246d7777 Author: Martin Mares Date: Fri May 19 18:05:01 2000 +0000 Fixed freeing of non-embedded extended attributes. commit 075898dea7ee73b49462af3d3ab0269fd46afcc4 Author: Martin Mares Date: Fri May 19 18:03:53 2000 +0000 No more problems when protocols gets disabled during feeding. commit dc6405d27e1ecedf6289039c7b3ed94c50683b2d Author: Martin Mares Date: Fri May 19 17:21:42 2000 +0000 Latest changes by Pavel have removed the error messages printed after unsuccessful socket open, but replaced them by segmentatio fault! Grrrrrrrrr. commit e66e6c2119e9de2f8012e587eafe752723706265 Author: Pavel Machek Date: Fri May 19 16:57:40 2000 +0000 If community list is not defined, act as it is empty. commit 9511a483b1b735d8bf9f671d494b363da5719ecc Author: Pavel Machek Date: Fri May 19 16:44:25 2000 +0000 Less error messages in case sk_open fails. commit eb4097e4e47db23403c4050b43ea5136ffbe4b41 Author: Pavel Machek Date: Fri May 19 16:22:53 2000 +0000 Added name of protocol to messages being logged. commit af0b25d20d1476d81696fb0241a815fb45168f53 Author: Pavel Machek Date: Fri May 19 15:59:21 2000 +0000 More updates. commit 242352b7a7f1b181b6e42dc77b998005d3f07c78 Author: Pavel Machek Date: Fri May 19 14:13:49 2000 +0000 Improve docs of log statment, improve markup. commit 8af8a87375f3a609583866a5f50487baebe38e2e Author: Pavel Machek Date: Fri May 19 14:05:55 2000 +0000 Descriptive lists rendered better in TeX. commit a0dd1c74334fa22588f9d1c8cb73013f1940b974 Author: Pavel Machek Date: Fri May 19 13:58:39 2000 +0000 Some spellchecking, and use right tags for right things. commit 5e88d7302599b7ac521624c77adf0b3c72601670 Author: Martin Mares Date: Fri May 19 11:01:41 2000 +0000 BGP now reports originating AS and origin type in get_route_info(). commit f49528a3dfa034415527824cbbd0762f3829f0cd Author: Martin Mares Date: Fri May 19 11:01:06 2000 +0000 Added as_path_get_first(). commit f7ad556f2017075abaef659bf018a0ce215b13b3 Author: Martin Mares Date: Fri May 19 11:00:47 2000 +0000 Commented out the `inserting entry which is already there' message since it's pretty normal: during feeding of the protocol, a new route can appear which will be announced normally and then repeated by the feeding process. commit 76dfda9e74580b6c07206b7afbbdafeea36ad08f Author: Martin Mares Date: Fri May 19 10:59:47 2000 +0000 Fixed a buglet in asynchronous feeding and increased maximum number of routes allowed per feeding phase. commit ac5d801217b4b85a5f716ace25f7f9ac48dfee0f Author: Martin Mares Date: Fri May 19 10:46:26 2000 +0000 Asynchronous feeding of protocols. commit 0850ce22d76c80c4f6a10fd0139d4cc903716bfa Author: Ondrej Filip Date: Wed May 17 21:20:47 2000 +0000 Smal debug bugfix. commit 6d5e703dc9ac387d72005f3b5da82e80275d5fc6 Author: Pavel Machek Date: Wed May 17 20:23:05 2000 +0000 Minor cleaning commit 00c1f79a79281c16beec132d945db480daca958d Author: Ondrej Filip Date: Wed May 17 20:01:25 2000 +0000 rte_same implemented. commit bbd76b421a1975560084e50669db9cacd61d2b58 Author: Ondrej Filip Date: Wed May 17 19:27:51 2000 +0000 rte_better implemented. commit 9f0d45d634ac38d54ed92c5726fbaed65850e15f Author: Pavel Machek Date: Wed May 17 12:14:05 2000 +0000 Finished cleanng up mess: multiplication reinstalled. commit 4ee2178935b1f4cdd465e290c13f6580901cec8d Author: Ondrej Filip Date: Wed May 17 00:28:45 2000 +0000 Don't die, if you receive strange LSA. commit 7f6b3cf247c0df8d10e9ed29a5ff6a6af5e1cf8f Author: Ondrej Filip Date: Wed May 17 00:28:11 2000 +0000 Typo in comment. commit 18a0c0bb763d918f3a06bfeb2be2b1051a7f4629 Author: Ondrej Filip Date: Tue May 16 23:59:38 2000 +0000 Downing of interface should work. commit 8fb0c2c298fbfa133cf783a1547bc3b1c84fe466 Author: Ondrej Filip Date: Tue May 16 23:24:50 2000 +0000 Calculation of external routes finally works. commit 31834faaf3ab055242e3a9998a37029b56f54d8a Author: Ondrej Filip Date: Tue May 16 22:43:30 2000 +0000 Ehmm, removed 'if(1 || ...' so I can test the second part . commit b1c9d871614874092e397ae505799be82284713d Author: Martin Mares Date: Tue May 16 22:37:53 2000 +0000 Fixed the horrible mess Pavel has created with his last commit. commit 508c36ab7981a8e50d1235c2c443491e4b04aa01 Author: Ondrej Filip Date: Tue May 16 22:34:49 2000 +0000 Routing table calculation for ext LSAs having next-hop=!0.0.0.0 commit a96a979d5b2b3a7ef02d878e9598d3268cb4c8a7 Author: Pavel Machek Date: Tue May 16 18:50:51 2000 +0000 Line numbers for runtime errors (what's wrong with cvs? I could not commit this from home) commit 7581b81bd7a77b5baebbd43833c00574d543c62e Author: Pavel Machek Date: Tue May 16 18:47:06 2000 +0000 More additions to documentation and spellchecking. commit e5a47266d0d6b8614c5199ea513de029b35552b0 Author: Martin Mares Date: Tue May 16 15:08:52 2000 +0000 Turned off LOCAL_DEBUG. commit e79671a72ccd392debcce1cdc05e46747eaf37e2 Author: Martin Mares Date: Tue May 16 15:08:43 2000 +0000 Fixed incorrect error message about router ID syntax. commit 5b846de6a6361b3c8aac84438e7b332c972f2a08 Author: Pavel Machek Date: Tue May 16 15:05:05 2000 +0000 Interface dummy is too strange for me... but psst, that's secret. commit be77b6890c5f6b956553c0432554e5912a30528f Author: Martin Mares Date: Tue May 16 15:02:33 2000 +0000 Poisoning: take there... commit d6796e7b546bd0a28b85666a95eda039eabc5c5f Author: Pavel Machek Date: Tue May 16 15:02:27 2000 +0000 Don't segfault when someone adds passwords. commit 2f2663bdb735ca155c32b0e12da814e62bbf9e9d Author: Pavel Machek Date: Tue May 16 15:00:15 2000 +0000 Password same now actually works commit 898fdd85dc4568816ac0436c1b012f2fb35ef3e4 Author: Pavel Machek Date: Tue May 16 14:58:06 2000 +0000 Rip should now reconfigure itself only if needed. commit 60de3356ab9b1996a84e3ba2865176a078b6d0ca Author: Pavel Machek Date: Tue May 16 14:24:33 2000 +0000 Resolved shift/reduce conflict commit e2f4f275646d21de363c32ff3c8fb4f492f07c04 Author: Martin Mares Date: Tue May 16 13:53:44 2000 +0000 Oops, the poison was too deadly... commit b8e60d3562277762ec372424482b22c024e657d6 Author: Martin Mares Date: Tue May 16 13:51:31 2000 +0000 Added poisoning of free'd objects when we're debugging. commit df9f0fb30a7046872eff21624a315d5fd56e938f Author: Martin Mares Date: Tue May 16 13:43:26 2000 +0000 Don't log state changes if nothing user-visible has changed. commit f990fc61e0dd13ae90c9bbff811736dfd52988b0 Author: Martin Mares Date: Tue May 16 13:36:38 2000 +0000 When in persist mode, don't delete routes from kernel tables even if they cease to exist in our routing tables due to protocols having shut down. commit c5a06f65ee20328b8d0f2276287e223e4fd4a595 Author: Pavel Machek Date: Mon May 15 12:27:45 2000 +0000 Allow other operations than +. commit f4ab23174688920e44bb4cae6e8b4f280a066e28 Author: Martin Mares Date: Mon May 15 12:19:28 2000 +0000 bgp_get_status: If protocol is down, don't print BGP state. commit cbfd671f114a96095f021662ad1cf0eaa6d089c1 Author: Pavel Machek Date: Mon May 15 12:19:26 2000 +0000 Allow accessing defined symbols. commit cc590a11a7a285463dff89d0bd677d0762dd8e45 Author: Martin Mares Date: Mon May 15 12:15:18 2000 +0000 Changed syntax of expressions. Each `expr' can be now either a numeric literal or a symbol or parenthesised filter expression. commit 6be662d917822e9a23b0abd613e170c1d42bfdbe Author: Pavel Machek Date: Mon May 15 12:07:09 2000 +0000 Use new eval mechanism for testing filters. commit e3f2d5fce3e339bb34f14d7b2569c1bd43b741ba Author: Martin Mares Date: Mon May 15 11:48:23 2000 +0000 Cleanup of configuration. o Use `expr' instead of `NUM' and `ipa' instead of `IPA', so that defined symbols work everywhere. o `define' now accepts both numbers and IP addresses. o Renamed `ipa' in filters to `fipa'. Pavel, please update filters to accept define'd symbols as well. commit 3b1c523d79763b22e0fe06862ff349fd94e816b1 Author: Martin Mares Date: Mon May 15 10:53:56 2000 +0000 Got rid of startup functions and filters_postconfig(). By the way, how do you expect pointers to fit in an int? commit 1c20608e02109ef0839e0168d100c75f0cc65fd9 Author: Martin Mares Date: Mon May 15 10:49:38 2000 +0000 Added f_eval_int() and EVAL configuration command. commit 9449c91ab2eb962b17989125c712f805f82a092b Author: Martin Mares Date: Sat May 13 11:42:42 2000 +0000 Added `show route for ' which looks up route leading to given network. commit 56d6c530eba46dde7280d6743fea7e750f2d5635 Author: Martin Mares Date: Sat May 13 11:42:06 2000 +0000 Added fib_route() which does (although very slow) lookup of longest-match routing in a FIB. commit d3abfbc68d7f921b2547b39a6baa9bee6c89b78d Author: Martin Mares Date: Sat May 13 11:41:26 2000 +0000 Added prefix_or_ipa. commit 758458be054ebdf4cd77620faf214f2b491a49dc Author: Martin Mares Date: Sat May 13 11:17:49 2000 +0000 Unified parsing of prefixes. Had to rename `prefix' in filters to `fprefix'. commit 02bd064ab76f163313261dad5c273cb376be2a75 Author: Martin Mares Date: Sat May 13 11:02:02 2000 +0000 Adapted to new rt_notify semantics. commit e4bfafa1008918cf904ede023feb18fa4cb7d524 Author: Martin Mares Date: Sat May 13 11:01:41 2000 +0000 Manual enable/disable works right. commit 08f0290a1ebf94624c4eb4cbcb10e2b35a846432 Author: Martin Mares Date: Sat May 13 11:00:37 2000 +0000 Changed semantics of the rt_update hook. The attribute list we pass now contains all attributes, not just the temporary ones. This avoids having to merge the lists inside protocols or doing searches on both of them. Also, do filtering of routes properly. (I'd like to avoid it, but it's needed at least in the krt protocol.) commit bfd7117846271a5e54271ee5248addd7e10ad021 Author: Pavel Machek Date: Fri May 12 10:57:36 2000 +0000 Documentation fixes suggested by mj commit 7e681ef3603862829c3bbf6b5c81c69c34faeb81 Author: Ondrej Filip Date: Fri May 12 00:22:43 2000 +0000 Calculation of external routes works. :-) commit be2bb403414b2d8cd608b710a29992b2c8a4c8b0 Author: Ondrej Filip Date: Thu May 11 22:02:53 2000 +0000 Minor changes. commit 5da1f935374b2e0435b67cc4d867369d522e62ff Author: Ondrej Filip Date: Thu May 11 22:00:55 2000 +0000 Bugfix in flooding. (bad size) Better debugging. More robust in receiving. commit c8d1f3feb2e2ca12aee76b1ce907dfff31c1012b Author: Ondrej Filip Date: Thu May 11 22:00:16 2000 +0000 Better debugging. More robust. commit 7a42e6ce899ceec7329212b9ceca4f15387fc280 Author: Ondrej Filip Date: Thu May 11 17:14:57 2000 +0000 Bugfix in network LSA originating. commit 67edcf392f74e1c79ea521d583df7ca365caea0b Author: Martin Mares Date: Thu May 11 16:55:26 2000 +0000 Updated README, generating the first alpha release. commit 0e5aa966cca94152363b2d8e9c1b316c04d90adb Author: Martin Mares Date: Thu May 11 16:30:56 2000 +0000 Multicast problems should be gone, although the fix is Linux only and we'll need to figure out something better when working on new ports. commit 28323d9ddbdcfa35c6dec139da4eefca584b143e Author: Martin Mares Date: Thu May 11 15:05:13 2000 +0000 Several minor RIP changes (Pavel, please check as usually): o Use FIB_ITERATE_INIT instead of calling the function fit_init() which is explictly marked as private in route.h. o When printing trace messages, don't spit out protocol name twice. o Some messages are a bit more verbose. o Added a bunch of FIXME's. o When running in broadcast mode, don't forget to bind the local end of the socket to the same broadcast address, so that we don't get the broadcasts looped back via different interface. I'm just going to look up the same problem for multicasts. commit 109c2f6cf350069c12abb7d182da6458ff56c1c7 Author: Martin Mares Date: Thu May 11 12:30:06 2000 +0000 If a broadcast address is missing, go fake one. commit 2138d3b4d84058338ad4010eff8da62afa6531ab Author: Martin Mares Date: Thu May 11 12:20:07 2000 +0000 Use correct flags for the LOCAL_PREF attribute. When an invalid attribute is found, copy the entire attribute to the data section of the NOTIFICATION message. commit 6e06e6eef098859da95ff56a8ee9b4c75467901a Author: Pavel Machek Date: Thu May 11 12:00:35 2000 +0000 Critical files from linuxdoc1 distribution checked in. commit 0e7a720a1c8119912c00edf893702857c0d39d04 Author: Pavel Machek Date: Thu May 11 11:54:03 2000 +0000 Use instead of in bird.sgml, fix url references. commit 7692aad10c22a58a6f83d82fc0b11db94cc777f9 Author: Pavel Machek Date: Thu May 11 10:47:33 2000 +0000 Don't include Rules: they are not needed and break stand-alone make of documentation. commit ec21aecfddde3be2b061850a050108265dfbf194 Author: Pavel Machek Date: Thu May 11 10:33:18 2000 +0000 Fixed nasty segfault in rip. commit 10f5c47d2e3d9fdeb2dd4ade1d09a1e06b53a7f6 Author: Pavel Machek Date: Thu May 11 09:41:16 2000 +0000 Some more paranoia into rip_insert and rip_delete commit 94d1a6c9dc9ac578cb88428462ab41f113ca4e23 Author: Pavel Machek Date: Thu May 11 09:36:55 2000 +0000 Unused variable killed. commit 394920a09c6163d2b98896802526c79c82f52d20 Author: Ondrej Filip Date: Wed May 10 23:42:37 2000 +0000 Test better lsa size. commit 31dca4353460b7a8bfb272e63ceac46deb3a6944 Author: Ondrej Filip Date: Wed May 10 23:42:13 2000 +0000 Be more verbose. commit 74ac7cdb1afe1e23a130b290f4a366268073f62c Author: Ondrej Filip Date: Wed May 10 23:41:52 2000 +0000 Bugfix in (B)DR election. commit ff73f1d63d2d1e49737ea2471dc5cb92e9591847 Author: Ondrej Filip Date: Wed May 10 23:41:18 2000 +0000 More robust tests in packet receiving. commit 13741548a6a75479577ea991bad1e38a4fba6320 Author: Ondrej Filip Date: Wed May 10 15:04:21 2000 +0000 Some better lsa checking added. commit a9c41c854802d1a8d44e666548423589022111c8 Author: Ondrej Filip Date: Wed May 10 14:29:00 2000 +0000 Out dump deleted. commit 2a41c8d9fcd2907a531c7306e174f51218486d57 Author: Pavel Machek Date: Wed May 10 13:42:50 2000 +0000 use password_same utility function commit 45a48e2de21cbf1a48c6f478ed068e48f20f918b Author: Pavel Machek Date: Wed May 10 13:42:46 2000 +0000 password_same utility function commit a3f657ac764ff38a5829f27a0dccbf6220043a1a Author: Ondrej Filip Date: Wed May 10 13:35:49 2000 +0000 Ever test possibility of forming of adjacency. commit 3e474192745e7e92d27cad7ffa16a8395e884cf2 Author: Pavel Machek Date: Wed May 10 13:23:21 2000 +0000 Inlined metric and mode into struct rip_interface to make reconfig work. reconfigure is conservative but should work. commit 30aa02d70df2275d2289d9b736d879b9951bcaee Author: Pavel Machek Date: Wed May 10 13:05:39 2000 +0000 rip_reconfigure done right commit b8524e9be4f1d15f4cd2cd365d7842eff8d5a499 Author: Pavel Machek Date: Wed May 10 12:48:06 2000 +0000 ipa_same does not exist. commit 0bff946c0a29469b669939813e5a2861c1f010fb Author: Pavel Machek Date: Wed May 10 12:46:47 2000 +0000 Nicer messages from rip. commit 6f3849774ffe35e445e33ba03f041c1a84ba35f1 Author: Pavel Machek Date: Wed May 10 12:38:05 2000 +0000 Use ea_get_int instead of ea_find. commit c7e46aae66861ce282e9b1a0140fa422763094ce Author: Ondrej Filip Date: Wed May 10 12:37:43 2000 +0000 Destroying of neighbor moved from 'hello' to 'neighbor' and improved. commit 7f5f44bb9248f05f397617f3874feef26bbb0b0b Author: Pavel Machek Date: Wed May 10 12:32:45 2000 +0000 Reconfigure hook copied from bgp. commit 84a1305437ddd893771c43d1a9bff32260a56789 Author: Pavel Machek Date: Wed May 10 12:26:09 2000 +0000 Send first udpate sooner. commit 14758d87c48e9d829f58ace0736b0c5b3c7dc6ae Author: Pavel Machek Date: Wed May 10 12:23:06 2000 +0000 Only announce change to main routing table if it is better than current. commit 353f3261385267fd07b634284989a760fc37b79d Author: Ondrej Filip Date: Wed May 10 12:22:00 2000 +0000 Better dumping. commit 5e50f0a0289517e64e026cb27e886d49e6044aca Author: Pavel Machek Date: Wed May 10 11:57:56 2000 +0000 Don't touch used memory. commit e8bd039da8de22de85bd135617b4a8ce9c979585 Author: Ondrej Filip Date: Wed May 10 11:52:39 2000 +0000 Bugfix in ip_addr endianity. commit be3b6dc574c26ab3292fb2ceb94809242bea3d79 Author: Pavel Machek Date: Wed May 10 11:48:34 2000 +0000 Killed unused variable. commit 28950169e7ac82ceb9a6d72fe2789714b4073eb2 Author: Ondrej Filip Date: Wed May 10 11:48:21 2000 +0000 Bug in (B)DR election fixed. commit d9f89e011498ec54006a026d9e0dd963db663ab0 Author: Pavel Machek Date: Wed May 10 11:40:30 2000 +0000 You can now say "mode multicast". commit 65a9c57175b60048d5501b2c951d5e46b3909fcb Author: Ondrej Filip Date: Wed May 10 11:22:08 2000 +0000 Change u32 to ip_addr in ext lsa. commit aa1e082c6779505e9ca24ba9f9d6cdfd4c647b06 Author: Ondrej Filip Date: Wed May 10 10:47:17 2000 +0000 Calculation of external routes. commit 4bfe4e8551722533cc99c776b3b70818ef59bf24 Author: Pavel Machek Date: Wed May 10 06:56:42 2000 +0000 Fix segfaults by using new ea_get_int. commit c0100454cf37833d23fdb9d24412de659f683c12 Author: Pavel Machek Date: Wed May 10 06:54:40 2000 +0000 Added more convient interface for ea_find. What is special about int default;? Compiler chokes on that! commit fe95ab68164f0c9f18e65f7965ac4d93b24bef97 Author: Ondrej Filip Date: Tue May 9 21:52:58 2000 +0000 FIXME's removed by deleting them. :-) commit 32fa4a5a461eb1af4146d9985663d90fcddd9697 Author: Ondrej Filip Date: Tue May 9 21:06:48 2000 +0000 Premature aging of self-originated LSA received in flooding. commit 3b8b1bd03709d2fa2eab8ec81321717e3b58dcaf Author: Ondrej Filip Date: Tue May 9 19:38:34 2000 +0000 Better dumping. commit a3ae6246c29ecceefc1e867c7b5f73a5b3c857c9 Author: Ondrej Filip Date: Tue May 9 19:38:16 2000 +0000 Bugfix in lsrt slist adding. commit b224ca32cfb5268db4984b5a640ab8a73852059b Author: Ondrej Filip Date: Tue May 9 19:36:32 2000 +0000 Flushing of old LSAs added. commit 850fda2518d6e91ca8e126ff91adad62fd507276 Author: Ondrej Filip Date: Tue May 9 18:35:57 2000 +0000 Backup seen is not called so often. commit cd22a62b3ce3aa4cf8985337657ec9750176aa49 Author: Ondrej Filip Date: Tue May 9 18:20:39 2000 +0000 Don't send flushed LSAs. commit 9669362f0577dbda0d7b9495d0c2fec11fa866f1 Author: Ondrej Filip Date: Tue May 9 18:17:34 2000 +0000 Many bugfixes. (I added one entry twice to slist.) Debug cleanup. Retransmiting of unacknolegded LSAs commit 5f743d969739d6dca12b51561baac3131e160429 Author: Ondrej Filip Date: Tue May 9 13:56:47 2000 +0000 Many bugfixes. Actually, how could this ever work? :-) commit 5d608eba1636e307624300fdd47b9024be92d39a Author: Ondrej Filip Date: Tue May 9 12:31:38 2000 +0000 Bug fix in sending updates. commit 0e1b949be7f71d038e871dac159b424e76978bff Author: Ondrej Filip Date: Tue May 9 12:18:41 2000 +0000 Bugfix in testing of possibility of adjacency. commit 432996f40fceb58cd5ee5026eb4f7018ef6af1ef Author: Ondrej Filip Date: Tue May 9 12:03:57 2000 +0000 Better dumping. commit 54ac9d2e03c6ae44b4e183c9bcf963196218c477 Author: Ondrej Filip Date: Tue May 9 12:02:48 2000 +0000 Bugfix in hello. commit 4057093fa40248c5b607039481576a6c5e4e902b Author: Ondrej Filip Date: Tue May 9 11:52:44 2000 +0000 Small cleanup. commit 551d44438275e9ebc9e7590814f413ac7d0cccd6 Author: Ondrej Filip Date: Tue May 9 11:29:52 2000 +0000 Sorry, it didn't compile. :-( commit b29c620f90d429b868038984a5427470f00aebac Author: Ondrej Filip Date: Tue May 9 11:27:31 2000 +0000 Another bugfix in neighbor state machine. commit 279a3b76d193944431a992a1ac43543fe15ab903 Author: Ondrej Filip Date: Tue May 9 10:47:10 2000 +0000 Small bug in neighbor state machine. commit fafe44b651f68d0a588cac94ddada8a1270adb97 Author: Ondrej Filip Date: Tue May 9 00:03:08 2000 +0000 Just added declaration of AS Ext routes calculation. commit 43e75f38e7b8716efb3729ee56fd4a879e03c1dc Author: Ondrej Filip Date: Mon May 8 23:46:31 2000 +0000 Do not stop lsrr_timer in FULL state. Use it for retransmition. commit ed4a53c6a5685d04fe2b0cceda83860324f4892c Author: Ondrej Filip Date: Mon May 8 22:50:37 2000 +0000 Some changes in debugging. commit 9bacea42112216e604bd55e3027e019e131304dd Author: Ondrej Filip Date: Mon May 8 22:49:58 2000 +0000 Fixed some FIXME's by deleting them. :-) commit 8a3049f6f139622c6976502d931c746449a1fe48 Author: Ondrej Filip Date: Mon May 8 22:42:56 2000 +0000 Useless '\n' in log() commit eae4fcf2539703d0dbd47e29ab24be29e0ddc2ff Author: Ondrej Filip Date: Mon May 8 22:40:55 2000 +0000 Stopping RXMT timer when going to lower state than EXSTART. commit d8033f2238922f3c63c247e924f1e31659d821ef Author: Martin Mares Date: Mon May 8 22:37:16 2000 +0000 Generated first public alpha release. Unless you object, I'll announce it today (9.5.) at noon. commit 8aecbf160adb15eef3f66d750745928f66f8a310 Author: Martin Mares Date: Mon May 8 22:33:50 2000 +0000 New example config. commit c976342828d5de3d16b59d623f4f7fb03f52acc9 Author: Martin Mares Date: Mon May 8 22:33:38 2000 +0000 Implemented debugging function rlookup() which you can call from gdb to see what resource does the address given as a parameter belong to. commit 0521e4f68490d5ef5cc6ba6b2b4e4edf7cf6aa1a Author: Martin Mares Date: Mon May 8 22:33:02 2000 +0000 rt_prune: Don't kill routes from protocols in FS_FEEDING state. If debugging, call fib_check() on the table's fib. commit c09d1e8df2d5d1ebfb4ce3dfbe93347a83acd99d Author: Martin Mares Date: Mon May 8 22:32:17 2000 +0000 KEEPALIVE TIME ought to set keepalive time, not connect retry time :) commit 5ff0a270cb411d423a78ed13604a5f2b25d4b289 Author: Martin Mares Date: Mon May 8 22:31:58 2000 +0000 In non-debug mode, set default logging to syslog only, not stderr. commit 4524331a3d758106f4ffa6a54a60aeae45341789 Author: Martin Mares Date: Mon May 8 22:31:34 2000 +0000 Fixed type in daemonization code. commit fc0ca2d8e1ab6a71a81f5f12c04f02d670d22348 Author: Ondrej Filip Date: Mon May 8 22:28:42 2000 +0000 Typo in debug. commit a6fdf9c6ac58e2d95d84c58102af8d5f3a70958a Author: Ondrej Filip Date: Mon May 8 22:27:25 2000 +0000 Grrr, useless debug. commit 5ee479aac9e488e15245905c598e778eb787dfe1 Author: Ondrej Filip Date: Mon May 8 22:26:11 2000 +0000 Small typo. commit 0ebb8b64f384d57889271389abe9b8926dde7af8 Author: Ondrej Filip Date: Mon May 8 22:24:22 2000 +0000 Bugfix in new neighbor allocation. commit 77fbd315dfa2dd6b8252cf13386d8b8480234bcc Author: Ondrej Filip Date: Mon May 8 22:10:10 2000 +0000 Better debug output. commit b57a45b81a74c091bbc71966a7c6aacebaf34e57 Author: Ondrej Filip Date: Mon May 8 22:03:29 2000 +0000 Next hop calculation improved. (I ignored stub networks advertised by my neighbors. commit 158b99c912ef5c5cef22fd3e343341cbb52eb105 Author: Ondrej Filip Date: Mon May 8 22:02:45 2000 +0000 Better logging. (%d->%I) commit 8abbde02d46830168b79a1df6c18c3ffaea49b9e Author: Martin Mares Date: Mon May 8 19:11:49 2000 +0000 Several simplifications of the fib iterators. commit 0bcba21e893efb9853a68b04674e4bde9da5a1b8 Author: Martin Mares Date: Mon May 8 19:10:36 2000 +0000 When not debugging, daemonize automatically. commit 33a368ad594822239bfbaa2eab50c76171e09b9e Author: Martin Mares Date: Mon May 8 14:58:00 2000 +0000 Implemented `show route count' which is `show route stats' with exception that it doesn't print the routes themselves. commit 0c3588bf5e43936ea0f1e630dea500912b598c60 Author: Martin Mares Date: Mon May 8 14:53:22 2000 +0000 Don't crash when the socket gets closed between updates. Also, this time not only update `remains', but update it right :) commit 6b5ab87581ba496ad0a9c12ef66f1372e1459685 Author: Martin Mares Date: Mon May 8 14:51:57 2000 +0000 Added `--disable-memcheck' switch which avoids linking of efence/dmalloc, so that we can run in debugging mode with large routing tables. commit e48dae3ed70daf52ad93c4fdc73270ab1510661f Author: Martin Mares Date: Mon May 8 14:51:26 2000 +0000 Stop feeding the protocol if it suddenly shuts down. commit 9ff8f334edec974b16497e1e74172977e0fff221 Author: Martin Mares Date: Mon May 8 14:32:19 2000 +0000 Update `remains' counter correctly. commit d69e5ff2ad8b552c22770e4c85bd7c5afafe2816 Author: Martin Mares Date: Mon May 8 14:29:30 2000 +0000 Use PATH_CONTROL_SOCKET instead of tacking on "bird.ctl" manually. commit cd44b466515578583d46dcb1a0abdae6e658a166 Author: Martin Mares Date: Mon May 8 14:24:19 2000 +0000 Forgot to add a spiky comment :) commit f9254d2349c7e2e3c110f7850e402d1c11624940 Author: Martin Mares Date: Mon May 8 14:19:47 2000 +0000 Autoconf is *evil*. The sysconfdir and similar variables are unusable in C includes as they contain substitutions specific to make. Worked around by creating sysconf/paths.h which is created from the Makefile instead of by the configure script. commit 0bf7386b33fecac40be43f8db5b0ba0356123fd2 Author: Martin Mares Date: Mon May 8 14:18:33 2000 +0000 Updated TODO. commit c0760ab0fc880778f23c71a7874aa38f90e28925 Author: Martin Mares Date: Mon May 8 13:56:11 2000 +0000 Debugging compilation is no longer default. This means that the configuration file is expected in $prefix/etc etc. Use --enable-debug to request debugging. commit d8508f70b0325cd283bc1551c455cdc3aab011fe Author: Martin Mares Date: Mon May 8 13:54:59 2000 +0000 `make install' now works. commit 93d6bf38a6c07b8281e11280d5cdbb721d19f7c8 Author: Martin Mares Date: Mon May 8 13:26:30 2000 +0000 The bgp_list is gone. Incomming connections are now handled in a much more straightforward manner by scanning the active configuration for matching protocols. commit 5d86aefb6c4a8e298ee79dc9cbf7c07196d56b5b Author: Martin Mares Date: Mon May 8 13:12:14 2000 +0000 Really free attributes. commit 818ff1e2b7b8eb8e707608e76ead94e5c6bd442c Author: Martin Mares Date: Mon May 8 12:38:00 2000 +0000 When reporting a bug(), call abort() instead of exit(), so that we can analyse the core. commit c304392e65a3d6554e97bce00146fe5f2bcb64b1 Author: Martin Mares Date: Mon May 8 12:37:39 2000 +0000 Some less socket error messages. commit 507eea4c8b4c52a5ddf232bc180a7a42cf29f074 Author: Martin Mares Date: Mon May 8 12:37:24 2000 +0000 Don't generate corrupted packets when sending only route deletes. commit 9cbf43eb8a7e0186144e95d7b244e0c69b0e9189 Author: Martin Mares Date: Mon May 8 12:09:10 2000 +0000 Don't report refused connections. commit b6c9d8eb2e255b65f29efd1acfd35a4277b3bf14 Author: Martin Mares Date: Mon May 8 12:05:55 2000 +0000 Removed the `async' switch which was used for debugging only anyway. Don't moan when netlink reports lost packets. commit d0126f0bf0098104cd99fedd61a4bdbe7f7b3f1f Author: Martin Mares Date: Mon May 8 11:40:30 2000 +0000 bugs_in_attr_cache_hashing--; commit 79681f4a19d0eca6e40d919a387099f5646f29bc Author: Martin Mares Date: Mon May 8 11:04:22 2000 +0000 Link the instance to the global BGP list as soon as possible. commit 94e935d8a2e02f18e3731624720e8f84be5e9f15 Author: Martin Mares Date: Mon May 8 11:02:53 2000 +0000 Incoming buffer must be at least 8KB long. commit 916c8c0abacfd5ba93353fec9dba84a81845c95e Author: Martin Mares Date: Mon May 8 10:40:00 2000 +0000 Use preferences properly. commit 1151401e2b8b4434bbd1419ff33a48f2848d600d Author: Martin Mares Date: Mon May 8 10:38:51 2000 +0000 Don't crash when reporting deleted routes. Set preferences correctly. commit 92ef4fa719058af80a9dbb39e3d2fbd9314e8a1a Author: Martin Mares Date: Mon May 8 10:38:25 2000 +0000 Preference is a configurable parameter. commit 0117d004945afdfb6cc9a62db4561cd4eddee24a Author: Martin Mares Date: Mon May 8 10:37:45 2000 +0000 Fixed `show route primary'. commit 18c031fae8945409b0ff1139d88092ba19ec2780 Author: Martin Mares Date: Mon May 8 10:13:59 2000 +0000 Debugged printing and pruning of neighbor cache entries. commit 0d3070824da904bd0f3f576b353b738bfa15a53a Author: Martin Mares Date: Sun May 7 11:32:34 2000 +0000 Don't count networks with no routes (they are not displayed at all and will be removed during the next garbage collection pass). commit 23693958aa95edf5baaeaa5baa55725dc4895681 Author: Martin Mares Date: Sun May 7 11:28:59 2000 +0000 Implemented `show route <...> stats'. commit 6998bb9ee345a0e8b558fc87133f1c2a442b7096 Author: Martin Mares Date: Sun May 7 11:28:34 2000 +0000 Squashed one bug in fib_rehash(). No more routes disappearing as if struct by a lightning :) commit 891cec854f84674317fa152b71254fc52d893826 Author: Martin Mares Date: Sun May 7 11:27:23 2000 +0000 Killed one more reference to RTS_RIP_EXT. commit acfce55c8637988954543c60597cd2f1525ba6ec Author: Martin Mares Date: Sun May 7 10:41:45 2000 +0000 Setup of incoming connection is now a separate function. commit ce1da96ee7efc9310f138e4234495557cdef59e2 Author: Martin Mares Date: Sat May 6 22:57:39 2000 +0000 Added commands `show route protocol

' and `show route import

' which show the routing table as exported to the protocol given resp. as returned from its import control hook. To get handling of filtered extended attributes right (even in the old `show route where ' command), the get_route_info hook gets an attribute list and all protocol specific rte attributes are contained there as temporary ones. Updated RIP to do that. Added ea_append() which joins two ea_list's. commit 84f070020500de40e69e6d00df9d41ecc90a3b23 Author: Martin Mares Date: Sat May 6 21:46:09 2000 +0000 IPv6 support compiles on both glibc 2.0 and 2.1. commit 498c33395f99743206088770c441222c76493378 Author: Martin Mares Date: Sat May 6 21:42:19 2000 +0000 Cosmetic fixes. commit 0b7610985cd44435ab40dd2e78646f400db908c5 Author: Martin Mares Date: Sat May 6 21:31:41 2000 +0000 Fixed silly bug in previous commit. commit 67be5b23cd80646c2aa5a9c6a3d373ceecb275b6 Author: Martin Mares Date: Sat May 6 21:21:19 2000 +0000 When rte_update is called for an identical route, don't announce anything. Please implement the rte_same hook in your protocols. It should just compare your metrics stored directly in rte, the rest is done by the core. commit ab1129c1bdea41ff06fd21390cde5667d07f6e65 Author: Martin Mares Date: Fri May 5 17:17:42 2000 +0000 Added skeleton Doc files for the whole developer's documentation. commit b177724896b75159dbc8e203ac0e5a134229ae90 Author: Martin Mares Date: Fri May 5 17:15:56 2000 +0000 Connected the `doc' subtree to global makefiles. All documentation is built in obj/doc (resp. doc/ if you do a stand-alone build). Use `make docs' to make the whole documentation or `make userdocs' resp. `make progdocs' for user manual resp. developer's guide. commit c7d7794bb9a71be58d06c6c9ea67943d3e33a566 Author: Martin Mares Date: Fri May 5 17:14:44 2000 +0000 Added a tool for processing of developer documentation. Everything is controlled by Doc files in source directories (see the corresponding programmer's manual entry for the format and look at Doc and lib/Doc for an example). Currently it generates HTML indices and calls kernel-doc to generate per-section HTML files. commit 249d238c14cafa812db02ea3090b34c58b183cf6 Author: Pavel Machek Date: Fri May 5 09:39:08 2000 +0000 First attempt at documenting configuration. commit beaf86e13c6b9595bc979b5ed9669e3e43f793cd Author: Martin Mares Date: Thu May 4 21:23:10 2000 +0000 Removed RTS_RIP_EXT. commit 9a220cabbc28a4e54f814aa5d596696a15e6544d Author: Martin Mares Date: Thu May 4 20:52:28 2000 +0000 #ifdef out lots of debugging information. The long resource/routing table dump printed upon startup is gone now and if you wish to see it, just send bird SIGUSR1 or use the `debug' commands. commit b3acb10632ce9fa492a92ced1e533f0bf5edee21 Author: Martin Mares Date: Thu May 4 20:49:45 2000 +0000 Updated. commit 2a149b18cca3b20063be398e8098dfa8e1e2705d Author: Martin Mares Date: Thu May 4 20:38:44 2000 +0000 Unused variables in IPv6 code. commit 93a786cb034fdd18b8131a16a6ea3d1cd9bd00de Author: Martin Mares Date: Thu May 4 20:30:36 2000 +0000 Removed a lot of unused variables. Please try compiling your code with --enable-warnings to see them. (The unused parameter warnings are usually bogus, the unused variable ones are very useful, but gcc is unable to control them separately.) commit c817b9916f1134f687ba53220d607e6e193cf651 Author: Martin Mares Date: Thu May 4 20:18:46 2000 +0000 Added --enable-ipv6 which tells configure to select the right configuration for IPv6 automatically. Added --enable-warnings which turns off some more warnings. Default protocol list now depends on --enable-ipv6. commit 9b63e3a58afe17b98eb7722e352984574846c22c Author: Pavel Machek Date: Thu May 4 20:08:34 2000 +0000 Spelling fixes. commit cf3d6470d7c8d401b162516ed7446c1d3866d5d3 Author: Martin Mares Date: Thu May 4 20:02:56 2000 +0000 IPv6 BGP support finished. Also simplified the BGP stuff a bit. commit 6db8c5a63b341d0913afa44457a93a8e83529fb2 Author: Martin Mares Date: Thu May 4 20:02:19 2000 +0000 pxlen works even in IPv6 mode. commit 5dc4b0aae20ef7e6b862af29a3135e018147ce97 Author: Pavel Machek Date: Thu May 4 10:03:53 2000 +0000 Display examples more nicely commit 1d9622e10ddc3baf2cd4f81bc2fa95593b4d3e85 Author: Martin Mares Date: Thu May 4 09:08:28 2000 +0000 Switched off LOCAL_DEBUG. commit 1c1da87b271ee3db0045f31612d99894531ada54 Author: Martin Mares Date: Thu May 4 09:03:31 2000 +0000 Receive-only IPv6 BGP. commit d345cda5a1cea03a09e5a37c999e88c5177c8a9e Author: Ondrej Filip Date: Thu May 4 01:23:03 2000 +0000 Bugfix in Network lsa originating Bugfix in ntohlsab() and htonlsab() For calculating of rt I use my own fib. I delete routes! ;-) commit 9e48d717cf681dcc3cfaaee4358b5c6fa3aa409e Author: Ondrej Filip Date: Wed May 3 22:36:12 2000 +0000 Test for "flushing" added. commit a02c6c184b513fe1886c86533e696045e960515b Author: Ondrej Filip Date: Wed May 3 22:23:41 2000 +0000 Cleanup of code. Some arguments of functions were useless. commit ad5453b540b3c9d7430dcff9a3674d9db8ab999c Author: Ondrej Filip Date: Wed May 3 22:12:33 2000 +0000 Testing if I can flush LSA from database. commit 9bc1808a27b35499d2438d731ade6d2cba8aa355 Author: Ondrej Filip Date: Wed May 3 00:08:48 2000 +0000 Better rt and net originating. commit 0bf2f2039e1fc95fe0fa3ee231711212f1f2b128 Author: Ondrej Filip Date: Tue May 2 23:09:44 2000 +0000 Originating of network LSA. commit 92bbd812e332c9948d737e95526c571ff371d394 Author: Ondrej Filip Date: Tue May 2 22:34:35 2000 +0000 OSPF added to default protocols. commit 249fdef7a10ce507bd224ad9be48a86f09d8f21c Author: Ondrej Filip Date: Tue May 2 22:31:48 2000 +0000 Adding InfTransDelay for outgoing lsa. commit c45f48fba5a0904f9c3512c3b42c38183fef348b Author: Ondrej Filip Date: Tue May 2 22:19:41 2000 +0000 Aging of lsa database added. commit a92847e78fabd637938f324c78d5eb41538a5692 Author: Ondrej Filip Date: Tue May 2 19:27:57 2000 +0000 Route calculation for stub networks. commit 53943a002265d8e2b6a887eaa497a01840675693 Author: Martin Mares Date: Tue May 2 16:10:04 2000 +0000 Defined format specifier `%M' which behaves as `%m', but takes the error code as an argument. Use it in socket hooks where we really shouldn't rely on errno containing the right value or even existing. commit 85368cd4b7244535f6ce56a27f6d22ddfa2bf4e6 Author: Martin Mares Date: Tue May 2 16:07:41 2000 +0000 Full protocol tracing. commit 85a291ff3055f0b10ffc199138c67305f5b3fc98 Author: Martin Mares Date: Tue May 2 15:21:51 2000 +0000 IPv6 address classification fixes. commit d1a74339d4edb717fbe98d412bd5e4ad03bb20a2 Author: Martin Mares Date: Tue May 2 12:51:39 2000 +0000 Handle redistribution of unknown attributes correctly. commit 85195f1a53eb350cd32ecba69c208dbece6fb776 Author: Ondrej Filip Date: Sun Apr 30 22:14:31 2000 +0000 Many small changes and bug fixes. Routing table calculation works. I'm waiting for rt lookup to add stub networks. commit 2337ade7546254eb48a22a1e195cc7999e684d21 Author: Pavel Machek Date: Sun Apr 30 18:47:48 2000 +0000 Moved documentation to top of file, where it belongs. commit c6c56264361e102691fe42134ab585f631f83898 Author: Ondrej Filip Date: Sun Apr 30 11:31:05 2000 +0000 Sync with nest's rt table and some minor improvements. commit e80e9d0da5d737b7f6e65358067f62a6ac85f4fe Author: Ondrej Filip Date: Sun Apr 30 09:32:41 2000 +0000 RT calculation strongly simplified. Now, I don't need any memory allocation. :-) commit 8c62d6e3b631d58f46d87c36826cb29f8dadeb15 Author: Pavel Machek Date: Sat Apr 29 17:48:38 2000 +0000 Minor documentation update. commit 468f2347fc0ea3e0eb6513ccd0433d0b48f2c739 Author: Ondrej Filip Date: Sat Apr 29 15:57:14 2000 +0000 Calculating of nexts hop(s) added. commit 9c1a55deeeb5aa5cd2f18b109fabb50947c308ab Author: Pavel Machek Date: Sat Apr 29 15:45:30 2000 +0000 IpV6 now actually compiles. Mj, could you provide example of static config for ipv6 that is _not_ rejected by checks? I tried this and got rejected. route 62:168::/32 via 62:169::; route 1:2::/32 via 1:3::; commit 46cdc7e20faaf922431a157bcb0f82a45b7aa2d2 Author: Martin Mares Date: Fri Apr 28 15:15:36 2000 +0000 Updated TODO. commit cea636640005c9ee9b628ce07a2d467c132941fe Author: Martin Mares Date: Fri Apr 28 15:13:29 2000 +0000 The `bgp_origin' attribute is now an enum. commit a412f01ea84709b9af0113acc5aa2ce3dad1d292 Author: Martin Mares Date: Fri Apr 28 15:12:03 2000 +0000 Include CF_HDR section in keywords.h as well, so that protocol symbols can be used in definition of ENUM's. commit 2edb31b097018be00f29cb7647432c4c2c8b99ba Author: Martin Mares Date: Fri Apr 28 15:11:10 2000 +0000 Split CF_HDR section to CF_HDR (only includes) and CF_DEFINES (defines, C declarations etc.). commit decc99fbbdba3394a5c611e2914b4d74aa6742a9 Author: Pavel Machek Date: Fri Apr 28 10:15:57 2000 +0000 Killed fixme: I already fixed it. commit a769a180d77b88fbfc77cae3e895a320007f6e30 Author: Pavel Machek Date: Fri Apr 28 10:14:59 2000 +0000 Provide rip_get_attr, how do I test it? commit 6c0a7174af459d62a52e97d15da29528169a68f9 Author: Pavel Machek Date: Fri Apr 28 09:55:52 2000 +0000 Add sample documentation to rip. commit e83b42deb4405729d9f53448bdbcea05e7d15e8f Author: Pavel Machek Date: Fri Apr 28 09:55:36 2000 +0000 Include proto/rip/rip.c in documentation system. commit ff95080f9272c4a0123ab05dff608a43cf3c15b7 Author: Pavel Machek Date: Fri Apr 28 09:48:28 2000 +0000 Cleanup of dead code + example documentation for two functions. commit 602b1445e3bfa24b1ce9cd1d148e4aa5cb742cf4 Author: Pavel Machek Date: Fri Apr 28 09:48:01 2000 +0000 Documentation-generating tool taken from linux-2.3.99-pre6, and makefile to actually use it. commit f94557dec5714f8415aa9e74615b5c821f45808f Author: Martin Mares Date: Thu Apr 27 22:40:19 2000 +0000 Some more fixes for attributeless UPDATEs. commit f75e3bbc01f2b711d1a2479eddd9ea35f8cfff47 Author: Martin Mares Date: Thu Apr 27 22:35:08 2000 +0000 Fixed a couple of nasty CLI bugs which were triggered on long or multi-part outputs. It took a whole evening to hunt them down, but now the CLI seems to work fine. Now I run three BGP connections with several thousand routes! commit 54896cbdba42a2ccd83c7f23c8ba14bed37a8b73 Author: Martin Mares Date: Thu Apr 27 22:31:11 2000 +0000 Path attribute can be missing if we process a packet with empty NLRI section. commit 8f6accb5bb26d534576e086894c107387f67906a Author: Martin Mares Date: Thu Apr 27 22:28:49 2000 +0000 Event handlers no longer return re-queue flag. Instead of using it, just call ev_schedule() on the same handler which should work perfectly now. commit 987de54578ce4053d737c64ea924a32f46a441a7 Author: Martin Mares Date: Thu Apr 27 19:44:27 2000 +0000 Fixed stupid bug in as_path_format(). commit 9165888ad24bdefed6a705219c767558d5091cec Author: Martin Mares Date: Thu Apr 27 19:41:10 2000 +0000 Handle connect errors correctly. commit 2add26dfa9c1da1e7fd6248de593c60cf0eba9ca Author: Ondrej Filip Date: Wed Apr 26 20:16:36 2000 +0000 Stub networks done. commit 5904a51266d82482392bad5d6d17a3be54c65596 Author: Ondrej Filip Date: Wed Apr 26 14:03:56 2000 +0000 Nets are used before routers. commit 5db9bae28676d743f53636d74997c85039d09278 Author: Martin Mares Date: Wed Apr 26 13:26:31 2000 +0000 IBGP fixes. commit e1ddd9937759bc22b7241e48400d17840a101d9d Author: Martin Mares Date: Wed Apr 26 13:26:11 2000 +0000 Changed handling of incoming connections, so that we can send data from the send hook without worrying about existence of socket buffers. Also, don't forget to copy peer addresses. commit dfa9a53a66e5747ddbeedfa0a47fa2ca9fc93b99 Author: Ondrej Filip Date: Wed Apr 26 12:54:23 2000 +0000 Routing table calculation. Dijkstra done. commit 0cadd5f531a82578ea6323f730cf8204b755895f Author: Martin Mares Date: Wed Apr 26 12:33:37 2000 +0000 Removed several FIXME's. commit dbf3939a53192c093f9f367edb15bf613126e347 Author: Martin Mares Date: Wed Apr 26 12:32:07 2000 +0000 Better formatting of router ID's. commit ebd3720f8335cecd671382c23fe61f03b7e2acaa Author: Martin Mares Date: Wed Apr 26 12:30:41 2000 +0000 Fixed several bugs in protocol state machine. Reconfigurations and restarts of BGP seem to work now. commit c010f4cb3771536fc62e534549e22c725285bbd2 Author: Pavel Machek Date: Wed Apr 26 11:33:03 2000 +0000 Use right address for ripv6. commit 7f704c06d86c58985e964e05df57d14b92e0cd05 Author: Pavel Machek Date: Wed Apr 26 11:07:57 2000 +0000 Cleanup in preparation for ipv6. commit b0c9c21c2926921843bbbade72e65831280906a8 Author: Pavel Machek Date: Wed Apr 26 09:38:07 2000 +0000 Small cleanup. commit 98347659463cb68cbd751148e19c62cfb109a32b Author: Pavel Machek Date: Wed Apr 26 09:37:07 2000 +0000 Whitespace changes. commit 2e5a8735f4be2c2514ae3a67960ea4ac3f06e364 Author: Pavel Machek Date: Wed Apr 26 09:36:47 2000 +0000 filter_same should now work with path masks. commit f71bded6e97a3eeb4dc58458d042cbe1af631380 Author: Pavel Machek Date: Wed Apr 26 09:30:12 2000 +0000 Bugfix in i_same (comparing of paths still does not work). commit 7a86a8b08db03f002a672d1e8a6481ad52114d1e Author: Pavel Machek Date: Wed Apr 26 08:03:50 2000 +0000 Added code for testing filters. commit 471bd6c30bb0d172699ea7af8f8b9356c8fe48b3 Author: Pavel Machek Date: Wed Apr 26 07:47:47 2000 +0000 Marked place where new enums belong. commit 94d9dfa47a14609e7057f26614b4094dddc8439d Author: Pavel Machek Date: Wed Apr 26 07:31:45 2000 +0000 Startup renamed to __startup: it is internal function and mj already uses word startup in other context. commit 6fd766c17eedf4897e2dff712f0e06bb84dd3d8a Author: Martin Mares Date: Tue Apr 25 23:08:31 2000 +0000 Implemented automatic restart after error with all the timers needed. commit 8573314326a36cc8c9aa1755e7ad6c51617015c8 Author: Martin Mares Date: Tue Apr 25 23:08:03 2000 +0000 Avoid printing of error messages on Cease notifications. commit 00c0c18aea40dd39efc275e24ad9d5e12a873a32 Author: Martin Mares Date: Tue Apr 25 23:07:47 2000 +0000 Allow sk_close(NULL). commit b3155b3399d84bb2dae8441171aa73236d790048 Author: Martin Mares Date: Tue Apr 25 22:01:19 2000 +0000 Randomize timers properly. commit 42532f084640645cfde9af7c0aa69a36b1de91ad Author: Martin Mares Date: Tue Apr 25 21:58:17 2000 +0000 Support dynamic reconfiguration. commit 41b26cfb552a4a441490779344326ff85819252b Author: Martin Mares Date: Tue Apr 25 21:56:46 2000 +0000 Don't forget to set filter pointers in struct proto when reconfiguring. commit 99f70c78e11f99f73a142ffcb8b65bd142c0a36c Author: Martin Mares Date: Tue Apr 25 21:31:15 2000 +0000 Use the same attribute names as in filters. commit 684c25d98fbfd7cc9275f401d8d451135615af8d Author: Martin Mares Date: Tue Apr 25 21:21:52 2000 +0000 When sending BGP attributes, re-create the flags, so that attributes added by filters which get the flags wrong are fixed automagically. commit efcece2da3054d9a0e5b5d2233549b3323428023 Author: Martin Mares Date: Tue Apr 25 21:13:25 2000 +0000 Better reporting of both local and remote errors. commit a47a01083b6ff9196f39136d68ed32ac70b31d15 Author: Martin Mares Date: Tue Apr 25 13:32:17 2000 +0000 Real parsing of BGP OPEN options including capability negotiation. commit 8b258e4e659cd8bacf0f7e3997d30b43561ac3e6 Author: Martin Mares Date: Fri Apr 21 13:01:28 2000 +0000 LOCAL_PREF is now always present and exported over all ibgp connections [draft] Allow setting of address of the local end of the TCP connection. Several bug fixes. commit 2a9e064d7b41ae6e944dd9fbcb18b89e8fda0dba Author: Martin Mares Date: Fri Apr 21 12:25:35 2000 +0000 If no NLRI's are present in an UPDATE message, parse the attributes, but don't check presence of mandatory attributes. [draft-09] commit f380aa60faa41872b78155f899518b25933d18b9 Author: Martin Mares Date: Thu Apr 20 23:05:41 2000 +0000 IPv6 compiles with glibc 2.1. commit f33c6c66020da3b10b27fba5585d20702b173c6f Author: Martin Mares Date: Thu Apr 20 22:55:32 2000 +0000 Use xmalloc() instead of malloc(). commit 7787ace61ae41060e599ce52e8f0017750d350da Author: Martin Mares Date: Thu Apr 20 22:54:22 2000 +0000 Synced to draft-ietf-idr-bgp4-09. commit 9bc6ab404190db53c9c9dbc183f6fc6fa3e704fb Author: Martin Mares Date: Thu Apr 20 22:34:50 2000 +0000 Fixed reporting of unknown options. commit 7d6eebae3b87cac2d09fd5201b603d4fd969fe06 Author: Pavel Machek Date: Thu Apr 20 10:25:51 2000 +0000 Create syntax sugar for add/delete/prepend, so xyzzy.prepend(123) is possible. That means that milestone 3 was reached. commit 77f37ae0994774f6402499e0a79287d85afa6edf Author: Pavel Machek Date: Thu Apr 20 10:24:41 2000 +0000 Test new syntax of add() and delete(). commit 5f532adde20300ecab63d3e521fb0dfbfb33df2b Author: Martin Mares Date: Wed Apr 19 13:54:35 2000 +0000 Temporarily ignore unknown options. commit f381cdce5225c0652bf9182ac40a1a54436c9692 Author: Martin Mares Date: Wed Apr 19 13:54:17 2000 +0000 The ATOMIC_AGGREGATE parameter is optional transitive. commit e0d6a7bda446d96dc3d56f65afed1872f20407cb Author: Martin Mares Date: Wed Apr 19 13:28:56 2000 +0000 Delay fetching of router ID. commit 035044b1d946c50efd4b59a8869198a0300c8151 Author: Martin Mares Date: Wed Apr 19 12:51:14 2000 +0000 Select the right source address and don't check port numbers. commit 85c92555efcd67d2671a8aef1bf7c3f4acc2b21d Author: Ondrej Filip Date: Tue Apr 18 22:11:05 2000 +0000 Grr, another patch to make it compile. commit 740d16d972d8e2accdb7a2f92048de302c9e966c Author: Ondrej Filip Date: Tue Apr 18 22:07:58 2000 +0000 Another ack bugfix. (Bad test for MIN_LS_ARRIVAL.) commit 84228eee273e2a689f4479d9a91f6b0a32c19b44 Author: Ondrej Filip Date: Tue Apr 18 21:40:11 2000 +0000 LS ack bugfix. (I didn't remove LSA from LSret hash.) commit 19fc4c763e745d56c8d80d04d6813766c1cfa04a Author: Ondrej Filip Date: Tue Apr 18 21:13:56 2000 +0000 LS ack. commit 26116eac93b51c503f5448d9f583847a51bef68d Author: Ondrej Filip Date: Tue Apr 18 20:34:19 2000 +0000 Better LS Ack dumping. commit 48f5a61f694faceb7cdc41e291f0da9411000c45 Author: Ondrej Filip Date: Tue Apr 18 19:56:43 2000 +0000 Bugfix in neighbor dumping. commit 9eada7ca03c6c4111e759b0910a1a654a7f3216e Author: Ondrej Filip Date: Tue Apr 18 19:44:16 2000 +0000 Fixed the serious bug in LSack. Oh, I'm an idiot. I sent LSACK, but in header was LSUPD. :-( commit 9eea604769662479891020b5a0fb282faa6dc36f Author: Ondrej Filip Date: Tue Apr 18 19:31:42 2000 +0000 Multicast open socket for (B)DR bugfix. commit 79f036ef6e9b2204528a41079c59a3a9ae9d50f5 Author: Ondrej Filip Date: Tue Apr 18 19:22:49 2000 +0000 Dump changes. commit 4472402551a1cc8d760a4e980fdcd7a417e0796a Author: Ondrej Filip Date: Tue Apr 18 18:29:50 2000 +0000 Many %u changer into %I. commit 89929e9daad0df36a289e7ae7d70dbc648c3b6b3 Author: Ondrej Filip Date: Tue Apr 18 18:21:10 2000 +0000 Many %u changed into %I and dump cleanup. commit 1508ee8b537aceba98d3af619ba0cded4d2fce9d Author: Ondrej Filip Date: Tue Apr 18 18:01:26 2000 +0000 Iface chstate run only if something really change. commit dd100e40c60811324b450ef7c078f0e992b2ded6 Author: Ondrej Filip Date: Tue Apr 18 17:58:16 2000 +0000 Better dumping in neighbor chstate. commit 8914e37dc028c89488d07556a511d8b49d38856f Author: Ondrej Filip Date: Tue Apr 18 17:54:06 2000 +0000 Better chstate dumping. commit 284c43ff66e8b5879945d2c4e1a285354bd38ddf Author: Ondrej Filip Date: Tue Apr 18 17:36:46 2000 +0000 Sending of ACK disabled, since I'll find bug. commit 023f5e86eba76a79dd90d5a4546ae8b200ccf023 Author: Ondrej Filip Date: Tue Apr 18 17:00:56 2000 +0000 Another LSack update. It's still NOT correct and it surely kills gated or Cyclades OSPF implementation. :-) commit 67315ef64e3655c65cfab032d637fe29d3cf91b2 Author: Ondrej Filip Date: Tue Apr 18 01:06:16 2000 +0000 Some lsack work. There is something very worng. :-( It locked my network. commit 2a0925948de20bd391d2c27a08ffdf2b4350e5c3 Author: Ondrej Filip Date: Mon Apr 17 21:10:40 2000 +0000 Listening on AllDRouters for DR and BACKUP added. commit 38130b863ffcab6b45484e4e5f1eca1dd933bb1a Author: Ondrej Filip Date: Mon Apr 17 20:42:42 2000 +0000 Small change in LSA originating. commit 52276996063bc4a0fbcb642f5075df1cde7ce684 Author: Pavel Machek Date: Mon Apr 17 16:51:28 2000 +0000 Few bugs removed from sgml, makefile added. commit f9b8bcca4eb1fdd8067a66a845b585af61335e3c Author: Pavel Machek Date: Mon Apr 17 16:49:05 2000 +0000 Bird.html will now be autogenerated. commit d37f899ba4e88b56a824fd44e7d81455c099bcba Author: Pavel Machek Date: Mon Apr 17 16:48:22 2000 +0000 First version of sgml documentation commit 0150e5211adabcbde55a76506f0f1a5901214b52 Author: Pavel Machek Date: Mon Apr 17 14:12:02 2000 +0000 Cleaned up mess with types in e,a and e,S. Dynamic attributes should now work. commit 74a7da482b1a537aaa97b4b5d6f6815887150f26 Author: Martin Mares Date: Mon Apr 17 13:41:50 2000 +0000 Adding of dynamic attributes is hopefully correct now. commit 8f10985e1ef77c7d44c8912cf92f99e5c4502cbd Author: Martin Mares Date: Mon Apr 17 13:14:48 2000 +0000 Added BGP to the default list of protocols we build. commit bd2d8190dd79645174beeef1a306c8df53db3b60 Author: Martin Mares Date: Mon Apr 17 13:13:08 2000 +0000 Honor standard communities (no_export, no_advertise, no_export_subconfed) when exporting routes. commit 56a2bed46bf7713cd773b0fd0c097bcfc6345cc1 Author: Martin Mares Date: Mon Apr 17 12:46:07 2000 +0000 Don't import/export MED and LOCAL_PREF on external links. Added real comparison of BGP routes (inspired by the Cisco one). Default local preference and default MED are now settable. Defined filter keywords for all BGP attributes we know. commit 3bbc4ad6ad63d55b1d7845b53865963db79c2e16 Author: Pavel Machek Date: Mon Apr 17 12:40:38 2000 +0000 Special hack for atomic_aggr. commit 708711c37306d6bc3a83935a4d4065814d9c4215 Author: Pavel Machek Date: Mon Apr 17 12:38:24 2000 +0000 Community lists can be now accessed as dynamical attributes. Mj: please create such dynamic atribute for bgp. commit 913ce95b083b2d61e498c63fce3e8f2d5b974cfb Author: Pavel Machek Date: Mon Apr 17 11:52:32 2000 +0000 EAF_ORIGINATED done right. commit 700bbe60fb941534937ad11ca71968224889fa87 Author: Martin Mares Date: Mon Apr 17 11:49:41 2000 +0000 The previous fix for spacing was (a) totally out of context, (b) wrong. Please *read* the code when trying to change it. Also killed a couple of type clashes. commit 2bd2de0188f6a0c1c9482cfc15e35c2b1b81c81a Author: Pavel Machek Date: Mon Apr 17 11:49:21 2000 +0000 pair ~ community list matching works. commit 5a2455886db55ae2d1eb8934c7686b4f6586f83c Author: Pavel Machek Date: Mon Apr 17 11:42:34 2000 +0000 Put space between entries so they are separated. FIXME: should use format as in filters. commit 4444ed2b26ae07dabbcc3e511798e2d7df3a2846 Author: Pavel Machek Date: Mon Apr 17 11:42:08 2000 +0000 It is good idea to separate entries in list _somehow_. Adding/deleting to community lists from filters now works. commit 991c36b509ad5bb96b4a28d0ec53813628e393a4 Author: Pavel Machek Date: Mon Apr 17 11:37:05 2000 +0000 Use EAF_ORIGINATED as mj wanted. mj: check this! commit 9c400ec9dd0ee74f1f350ead87dcd7366dbab7b1 Author: Pavel Machek Date: Mon Apr 17 11:34:38 2000 +0000 Int sets moved to core. It is now possible to have variable of type clist. commit e3558ab14ee60c8c9792bc3ed54d9f0c3eaa8ea8 Author: Martin Mares Date: Mon Apr 17 11:25:15 2000 +0000 Normalize community sets when exporting. Set PARTIAL bits correctly. commit 51a183af78a330cca46f12dcbff79bb045c4c854 Author: Martin Mares Date: Mon Apr 17 11:23:05 2000 +0000 Define EAF_ORIGINATED and propagate it properly when merging attribute lists. commit 4b03f64b341db7b73eedc00bc5321fedf349a236 Author: Martin Mares Date: Mon Apr 17 11:22:24 2000 +0000 Aesthetical tweaks (asterisk spells `asterisk' etc.) commit 159fa4cea9fb8f36db8335755248e0fac81fb050 Author: Pavel Machek Date: Mon Apr 17 11:20:00 2000 +0000 Finish moving of path matching. Use int_set_print from core for printing community lists. commit 2a40efa5e6252eb5a5dbe5e82dcd9c67ad7838a9 Author: Pavel Machek Date: Mon Apr 17 11:11:33 2000 +0000 as_path_match moved to a-path.c commit 684c6f5a0e134426159be7dbd514271aea9f4d3d Author: Pavel Machek Date: Mon Apr 17 11:06:39 2000 +0000 Path_getlen moved to nest and length was made callable from filters. commit ecd25633bdc3e491a0eca44c63c158eeff388f13 Author: Pavel Machek Date: Mon Apr 17 10:54:01 2000 +0000 Use printing routine from nest/ instead of our own. commit 4b641bab521c4fbabf931c3eac7704e8e2cab298 Author: Pavel Machek Date: Mon Apr 17 10:50:03 2000 +0000 Path matching now actually works, including / * 1 2 3 * /. commit e399b6f6ad91e6f94081dfe694740451100c7a7f Author: Pavel Machek Date: Mon Apr 17 10:42:28 2000 +0000 Path and path matching seem to work, now. commit 1ed2fe960929081065e75a7fb4322f28a76c508b Author: Martin Mares Date: Mon Apr 17 10:19:15 2000 +0000 Send and receive communities. commit c6add07fa6ca8366fbdcfcd9bc2872c129378366 Author: Martin Mares Date: Mon Apr 17 10:18:55 2000 +0000 Printing of AS paths and community sets. commit afc54517db6946e9cfb62bbdc855954316152c62 Author: Pavel Machek Date: Mon Apr 17 10:16:47 2000 +0000 Prepend and creation of empty path should work, but it has strange syntax for now. commit f421cfdd80cfce7d1ec4759c603e47071eb028f8 Author: Martin Mares Date: Mon Apr 17 09:37:31 2000 +0000 Sending of update messages works! commit c0668f36967ce651e452a476b786b7604038a556 Author: Martin Mares Date: Mon Apr 17 07:53:29 2000 +0000 Created nest/a-path.c and a-set.c which should contain general operations on AS paths and community sets. Moved as_path_prepend() there. Pavel, please move the other functions as well. commit ebff007f08965d83dba5840ee02171d09ac2598d Author: Ondrej Filip Date: Wed Apr 12 15:37:52 2000 +0000 LSack receiving bugfix. commit 4bf41ac8b1d7edb4754c579b714d1c71dc421b4e Author: Ondrej Filip Date: Wed Apr 12 15:20:13 2000 +0000 LS Ack receiving done. commit 58313b24c8e31f02f242b7d090b54aab8295ce04 Author: Ondrej Filip Date: Wed Apr 12 14:49:20 2000 +0000 Stupid "+1"-bug fixed. commit c8f685cb9d88e447d6057f92bcbb1e0df441ca35 Author: Martin Mares Date: Wed Apr 12 14:14:47 2000 +0000 Made last Pavel's changes compile. commit 0a40e97328180576577da26a5ce8933f616d84f1 Author: Pavel Machek Date: Wed Apr 12 14:12:37 2000 +0000 as_path_prepend is usable outside bgp. commit c2b28c99103a643dd29ad48152999d6dac7722fe Author: Martin Mares Date: Wed Apr 12 14:09:26 2000 +0000 Real bucket lists. commit a2d157463accf02e2db9fd3dd174b7e46dae8938 Author: Pavel Machek Date: Wed Apr 12 14:05:37 2000 +0000 One less shift/reduce conflict. commit ac7a2145ccd5cfc54788b0218cc253e3b1721b76 Author: Pavel Machek Date: Wed Apr 12 14:02:04 2000 +0000 f_new_dynamic_attr gets third argument, type as filters know it. commit 12d5677aa3e6217edc7d5508ac3dbbf87edc8624 Author: Martin Mares Date: Wed Apr 12 13:56:04 2000 +0000 Define BGP_PATH. commit 2803c9ddbeca3ece264e618b3a63669e25f4dd85 Author: Martin Mares Date: Wed Apr 12 13:55:53 2000 +0000 Minor updates by Pavel. commit 66d573d4903801c45011de36b6b593f1cde9ea73 Author: Martin Mares Date: Wed Apr 12 13:55:30 2000 +0000 Attribute type hack. commit 10a53608860724c47596948f2fd426d4eca8224d Author: Pavel Machek Date: Wed Apr 12 13:31:39 2000 +0000 Filters now know type path. It is possible to declare variable of type path, but it is not possible to write constant of type path. It should be possible to print paths and match them. commit 775063494694d247b340bb1145e509e31af27802 Author: Martin Mares Date: Wed Apr 12 13:21:23 2000 +0000 Introduced `ARRAY_SIZE' macro to replace all the sizeof(a)/sizeof(*a) constructs. commit dcab78904794156483878b4b8cd924e30a71bcdd Author: Pavel Machek Date: Wed Apr 12 13:07:53 2000 +0000 Renamed f_path to f_path_mask -- which is what it really is. Use linklist instead of array of signed integers for path mask. commit c3edb89ec141355de58fbade353d4b2182c62c1e Author: Pavel Machek Date: Wed Apr 12 12:49:53 2000 +0000 Path masks are needed for filters. commit 77de68825caae7a9cb1275b0020e49fa9cb27e29 Author: Pavel Machek Date: Wed Apr 12 12:10:37 2000 +0000 BGP_PATH masks now actually work as data type. commit 78c6217c1e9f8a46026cecf6a6369b72d5d883b0 Author: Pavel Machek Date: Wed Apr 12 10:34:45 2000 +0000 Path printing is now much nicer: not having to put it backward simplifies it. (Sorry for previous commit, cvs is naughty). commit f7d534cf2e8932869b049bd64677bb0a67e362c1 Author: Pavel Machek Date: Wed Apr 12 10:34:02 2000 +0000 Path printing is now much nicer. commit b475c543b420b65bac90992df99a0fe6c9da7c88 Author: Martin Mares Date: Mon Apr 10 22:08:32 2000 +0000 Fix comments. commit 9196e9f8f951f7cbd372b9243dd10fc761f2fbe6 Author: Pavel Machek Date: Mon Apr 10 16:36:40 2000 +0000 Commit fixes. commit 7f77e2500218c197ba56a473d587dedda7309029 Author: Pavel Machek Date: Mon Apr 10 15:07:43 2000 +0000 Functions for matching paths added, tested lightly. Functions for working with community lists added, they compile. This should not be definitive place for this stuff. commit 73e03bce66e3e8d167f00813d942ef35bfd105e2 Author: Pavel Machek Date: Mon Apr 10 14:45:00 2000 +0000 As usuall, most important info was missing. commit ae8f5584990ce3bfb5b0bec2f7a1c052e45860df Author: Martin Mares Date: Mon Apr 10 12:39:51 2000 +0000 Implemented outgoing attribute cache. commit 6f57dcc07cdf54133bd57aeaec7446f59f2c91cd Author: Martin Mares Date: Mon Apr 10 12:39:29 2000 +0000 Export ea_same() and ea_hash(). commit f2cb1d708dc5de4167a3dc12b50001391d01f5f0 Author: Martin Mares Date: Mon Apr 10 12:38:15 2000 +0000 Dropped CPU_NEEDS_ALIGN_* as unaligned.h no longer uses them. commit 48e842cc98b1436da57c8682c6c8414ba379ed7c Author: Martin Mares Date: Mon Apr 10 11:21:40 2000 +0000 Use neighbor cache to track direct route to the peer or multihop destination. Calculate next_hop properly based on the local address we get from the neighbor entry. commit 287111fed1c8e9eb135df1108ea747e02b30e9e9 Author: Martin Mares Date: Mon Apr 10 10:40:00 2000 +0000 Fix stupid bug in neighbor cache. commit ef2c708dfac4c8b4b5ab0ed8b71842da5c7ab3d7 Author: Martin Mares Date: Sun Apr 9 22:05:02 2000 +0000 More BGP progress... For Pavel: You can use bgp_path_prepend() for prepending AS numbers to AS paths. commit d3feceff105fbcee7a9976812156aea7517c44e6 Author: Martin Mares Date: Sun Apr 9 22:04:12 2000 +0000 BGP doesn't need any inline attributes. commit 3d0ea3a7c3e3b14bd0b9602d6b14518c907d8789 Author: Pavel Machek Date: Fri Apr 7 09:02:17 2000 +0000 Fix of comment. commit 2c971094ebf73c2a2cfc5927095a0c6fd3c15836 Author: Ondrej Filip Date: Wed Apr 5 00:51:25 2000 +0000 LSA flooding done. commit 10000b96a89d1ab4425e29164c3694aa26622b1c Author: Ondrej Filip Date: Tue Apr 4 22:27:19 2000 +0000 Small clean up. (Duplicate #defines.) commit f1f7faceb445fdfa2b2a013b791882afd68ae421 Author: Ondrej Filip Date: Tue Apr 4 22:22:08 2000 +0000 "Bug in hashing" fixed. Ehm it was bug in lsrql node removing. commit d8852b362c015db38abf180888e77900f35089de Author: Ondrej Filip Date: Tue Apr 4 15:55:55 2000 +0000 LSupdate processing improved. Now there is some bug in hashing. :-( commit 921a93f2176723d235989efe882050c0265bea84 Author: Ondrej Filip Date: Tue Apr 4 00:32:17 2000 +0000 Flooding work continues. commit 8496b2e41a81f8281da0e0c3e4bbb72a57d3bf21 Author: Ondrej Filip Date: Mon Apr 3 22:31:07 2000 +0000 Minor change in area list. Now I use MJ's lists. commit 394acced118df7360e480920c65ca260c5b8c44f Author: Ondrej Filip Date: Sun Apr 2 20:41:33 2000 +0000 Work on lsupdates continues. Some checksum cleanup. commit db9fb727699a6244afcff28dcc2320a3e66ee269 Author: Ondrej Filip Date: Sun Apr 2 19:04:23 2000 +0000 lsa_cmp moved into lsalib.c commit 10be74da202b20a7d502724ef8e7a9787b7eba0a Author: Martin Mares Date: Sat Apr 1 10:21:11 2000 +0000 Formatting of dynamic attributes (except for paths and communities which will be added soon). commit dad177d7e045ed07181da02ccd619f8f943a5c80 Author: Martin Mares Date: Sat Apr 1 10:20:12 2000 +0000 RIP: Set attribute class. commit 3991d84e8fa9118a43149d4d3304726eb786bd46 Author: Martin Mares Date: Sat Apr 1 10:19:47 2000 +0000 Changed initialization of protocol list -- now we call proto_build() instead of calling the protocols manually. Implemented printing of dynamic attributes in `show route all'. Each protocol can now register its own attribute class (protocol->attr_class, set to EAP_xxx) and also a callback for naming and formatting of attributes. The callback can return one of the following results: GA_UNKNOWN Attribute not recognized. GA_NAME Attribute name recognized and put to the buffer, generic code should format the value. GA_FULL Both attribute name and value put to the buffer. Please update protocols generating dynamic attributes to provide the attr_class and formatting hook. commit f8809249906811683e7e8d2a7b8cdcccde86742a Author: Martin Mares Date: Sat Apr 1 09:17:33 2000 +0000 BGP now handles incoming routes (IPv4 only). commit 85810613993913831822b84ab7a9792a88fc7a8f Author: Martin Mares Date: Sat Apr 1 09:16:42 2000 +0000 When tracing, always print incoming part of the trace before the outgoing one. Avoid buffer overflows in `show routes' command. commit 798df5b1ab6b497d8d9d6d51764f5aef4eb2d567 Author: Martin Mares Date: Sat Apr 1 09:15:55 2000 +0000 When processing ACCEPT/REJECT carrying no message, don't print trailing newline. I hope the fix is correct, but please check. commit b157361533412de2123787a412e6e463c0b2f13a Author: Martin Mares Date: Sat Apr 1 09:15:10 2000 +0000 SOURCE should really refer to rta->source, not rta->gw. Please check that all rta attributes are available, I guess that at least rta->dest is missing. commit 499cb346f6fb29f9157e12942484c8b4362597c3 Author: Ondrej Filip Date: Sat Apr 1 02:45:49 2000 +0000 LSA checksum works. But it's very uneficient on little endian systems. commit ac4b4683aee8e5aa566b0b5f99bd940bc10d9b71 Author: Martin Mares Date: Fri Mar 31 23:40:00 2000 +0000 Removal of useless includes continues... commit 3cf4a2e2b03d00adce703cd1dc961eea77b7a57b Author: Martin Mares Date: Fri Mar 31 23:35:59 2000 +0000 Removed lots of superfluous includes. Use debug() instead of printf(). commit a37410cbddfadca651c795e9817f66c54374a943 Author: Martin Mares Date: Fri Mar 31 23:33:03 2000 +0000 Use bsprintf() instead of sprintf(). commit 221135d6bf256c85b4aeb08881d6262f6eaadff4 Author: Martin Mares Date: Fri Mar 31 23:30:21 2000 +0000 Include "lib/string.h" instead of . It should give us bzero() and other non-portable functions on all systems. commit c00d31befab5a7e932231f7a8050547c72c94631 Author: Martin Mares Date: Fri Mar 31 23:21:37 2000 +0000 Parsing of BGP attributes. commit 08732b71784b640aebbea88d4452f4c5987d0a09 Author: Martin Mares Date: Fri Mar 31 23:21:19 2000 +0000 Fixed bug in processing of dynamic attributes. commit 65e55e9cca38828980123ea64fe203d799a20810 Author: Ondrej Filip Date: Fri Mar 31 01:40:12 2000 +0000 Checksum changes. Bug is still NOT fixed. :-( commit 9f940976d10e6295f78adf4afb1868a7ed6cac73 Author: Ondrej Filip Date: Fri Mar 31 01:14:41 2000 +0000 Some bug fixes. LSA checksum is still bad. I'll fix it later. commit f45fd3164bf2f9342e12e867f8d68c7fc77d3177 Author: Ondrej Filip Date: Fri Mar 31 00:21:41 2000 +0000 Sending of lspd as responce to lsreq done. commit 14a7921c83f0ecfc8793b3a38e4ac16ae9bd75d3 Author: Ondrej Filip Date: Thu Mar 30 20:18:51 2000 +0000 LSA structure changes. (Len added.) commit de769e24c01ff0c4aa573d9b4cec833dcae182d2 Author: Ondrej Filip Date: Thu Mar 30 20:00:42 2000 +0000 Skeleton structures and files added. commit 95eb1dba3ffe810bd876546ca4580af3bccdf181 Author: Ondrej Filip Date: Thu Mar 30 19:37:26 2000 +0000 Add hashing to link state request list. commit 76915ec9798a2c067ef05c6fb94cea58af12128e Author: Ondrej Filip Date: Thu Mar 30 19:21:17 2000 +0000 Minor changes. commit 973399ae2c21b41983a35fe71657fb41351d99e6 Author: Martin Mares Date: Thu Mar 30 18:44:23 2000 +0000 Basic analysis of UPDATE packets. commit b552ecc4d7ddb1b960aa26b96ebea95a3af72043 Author: Martin Mares Date: Thu Mar 30 17:39:48 2000 +0000 Connection state machine works. commit ce0603a6eda81b97d6db021c91b86cb4c920eb04 Author: Ondrej Filip Date: Thu Mar 30 16:22:58 2000 +0000 Better list manipulation. commit 3fdbafb6f49946f15d0c10d311dd35479bf6c0f1 Author: Martin Mares Date: Thu Mar 30 10:44:20 2000 +0000 More BGP. This time it connects, but the state machine still isn't complete. commit 320f41735795b51c51a9f5c976a2335a9ec96e32 Author: Martin Mares Date: Thu Mar 30 10:43:37 2000 +0000 Defined sk_close() which closes the socket safely even if called from socket hook. Replaces the SK_DELETED hack. Squashed a couple of bugs in handling of TCP sockets. commit 3a6337ecb2f6e5c8454a8416214c60432611aaa6 Author: Martin Mares Date: Thu Mar 30 08:50:46 2000 +0000 Use FF_FORCE_TMPATTR where appropriate. commit 3076b5aedc1d348413276b361806053e80dca7c6 Author: Martin Mares Date: Thu Mar 30 08:50:30 2000 +0000 Renamed FF_OUTGOING to FF_FORCE_TMPATTR which much better fits the semantics. Call rte_cow() instead of rte_do_cow(), so that COW works properly. Stripped "\n" off several (de)bug messages. commit 6d2b32114feadb283cb988daa7ed80142aa8c4d1 Author: Ondrej Filip Date: Thu Mar 30 00:18:59 2000 +0000 LSreq initial work. commit 3ee2310c5dccebe2b63098ab478b5b1d61e4fcb2 Author: Martin Mares Date: Wed Mar 29 22:57:46 2000 +0000 Avoid conflicts with libraries defining their own xmalloc by defining xmalloc to bird_xmalloc internally. commit 2560c8860eeed2e352c394aec920a4f696563e6c Author: Ondrej Filip Date: Wed Mar 29 17:51:40 2000 +0000 Slave bug fix. commit 910e557b47f52bf38aa923a69249670d71befc02 Author: Ondrej Filip Date: Wed Mar 29 17:18:06 2000 +0000 Many changes in dbdes sending & receiving. EXDONE caused. commit 315648af8ed75c91e0dd82748a933963b9e0c4ec Author: Ondrej Filip Date: Wed Mar 29 13:02:58 2000 +0000 RXMT timer handling bug fix. commit 3fba20968816a9dbd4565fd6806f29d72d73f638 Author: Ondrej Filip Date: Wed Mar 29 12:47:07 2000 +0000 Some FIXME added. commit 96501dfe5f6fd7a2837aee910c78f147e54e4f0b Author: Ondrej Filip Date: Wed Mar 29 12:45:37 2000 +0000 Sending of DBdes bug fixed. commit 04c6319a630e9e18bc45da5e5b1c1f11d726c261 Author: Ondrej Filip Date: Wed Mar 29 12:32:25 2000 +0000 IMMS reverted to bits. Outgoing packets dumping added. Cisco does not set inteface MTU. Hmm.... commit 0a06a9b8b3dbd59c850303c49eea97c12e1ac0ff Author: Pavel Machek Date: Wed Mar 29 09:02:00 2000 +0000 f_run gets one more parameter to distinguish between in and out modes. commit 8d2e3eba92e339f0635e0cb2fbfb49482b26295a Author: Pavel Machek Date: Wed Mar 29 08:58:06 2000 +0000 Cross-protocol issues solved better commit 963ea03d872db30e1a0d0216e488b1960590af2d Author: Ondrej Filip Date: Wed Mar 29 00:34:28 2000 +0000 DBdes sending/receiving changes. commit d0031c5ee94b29b7a5419a0504c160e424d970b0 Author: Pavel Machek Date: Mon Mar 27 12:21:11 2000 +0000 Use neigh_connected_to in rip, and behave more correctly w.r.t. whotoldme and nexthop. commit 200accf396b869267fd707b56afddb27d8479acc Author: Martin Mares Date: Mon Mar 27 12:16:37 2000 +0000 if_connected() is again private. Introduced neigh_connected_to() to serve the same purpose efficiently. commit 6480dd08803bc46bcd19b466ac6c499699d17448 Author: Pavel Machek Date: Sun Mar 26 21:31:57 2000 +0000 I broke compilation. Sorry. commit 8c86f96fa6f783326455f8a8d88a242cd8dd9f1b Author: Pavel Machek Date: Sun Mar 26 18:01:27 2000 +0000 Split horizont done right. Locks done better. commit 697711be2cf6b5da140b8c12c301affa53488021 Author: Pavel Machek Date: Sun Mar 26 18:00:45 2000 +0000 if_connected is usefull outside of neighbour cache. commit 9ee07ca53fd94ad72b7cb2776cc15f13a026a910 Author: Pavel Machek Date: Fri Mar 24 10:08:20 2000 +0000 FIXME was actually already resolved commit 772f489932cf24d7a408835ac67f7b4f4d85a1eb Author: Pavel Machek Date: Thu Mar 23 12:08:40 2000 +0000 Minor change to make code more readable. commit ff8ed6328595c77e8b0ed3ed4cea3fb4d9bb141d Author: Pavel Machek Date: Wed Mar 22 14:26:03 2000 +0000 Rip now tries to lock interface. Fixed fatal errors which caused segfault at startup. Fixed fatal errors in rip which caused it not to send more than first update. commit ba4466701aed032f947272dead47b3abc7bb7a3f Author: Pavel Machek Date: Wed Mar 22 14:23:40 2000 +0000 Format of dates changed, so rip authentication is now commented out. commit 72a6ef11fe6589d0f4d5158c207ff8a0669becc3 Author: Martin Mares Date: Tue Mar 21 15:53:50 2000 +0000 Construction of BGP packets. commit a8f944cb6e6c75c1aac2500ccf1f3905c4c3fd7a Author: Martin Mares Date: Tue Mar 21 15:51:30 2000 +0000 Wrote real version of unaligned data access functions (needed for BGP). commit c01e37416d09a92bf838250a15fe99fdc48bc010 Author: Martin Mares Date: Mon Mar 20 21:50:17 2000 +0000 Started work on BGP. Wrote main part of the connection handling code. commit 1cf716f0751ce1d146d6d5114cb36686844d4817 Author: Martin Mares Date: Mon Mar 20 21:49:21 2000 +0000 Handle EINPROGRESS properly. Set IP_DONTROUTE sockopt only if sk->ttl == 1. commit 267a2c0ebd980c16c1cf01044b0ee44095f34b9e Author: Martin Mares Date: Mon Mar 20 20:52:18 2000 +0000 Added missing newline in debug output. commit ca97b489de8cca61d1affa49983b7cdc1c81cf96 Author: Martin Mares Date: Mon Mar 20 18:45:03 2000 +0000 Define new data types for BGP. commit 2638249d34cc7f600fba25edd29538c00a3aca31 Author: Martin Mares Date: Sun Mar 19 22:09:07 2000 +0000 Bare skeleton of the BGP. commit 349e21bb0bb7584fb18c19859d876893c3130947 Author: Martin Mares Date: Sun Mar 19 21:59:24 2000 +0000 Protocol tracing: Don't dump core on filtered out routes. commit 856b87d1e4c44608df5debd8e4246a3c4026bbcb Author: Pavel Machek Date: Mon Mar 13 13:31:00 2000 +0000 Cleanup, mostly debugging messages. commit abf2be7d0cabc3c8c021b6f6784cf63610571715 Author: Martin Mares Date: Sun Mar 12 23:04:04 2000 +0000 Add internal commands of the client to the command list. commit 971b2310ae4d367d608e34e9465ad5d2c65e505d Author: Martin Mares Date: Sun Mar 12 22:55:09 2000 +0000 Commands which failed expansions are to be stored to history, too. commit f098e072bec8d5858afbf713635217ea84c7e45d Author: Martin Mares Date: Sun Mar 12 22:53:05 2000 +0000 Fixed a bunch of FIXME's by removing them :) commit 432709027680d7791b325b2c2116c658eba21c8d Author: Martin Mares Date: Sun Mar 12 22:44:54 2000 +0000 Made `show status' show uptime and time of last reconfiguration. commit 7a88832e78cbc18db109c091d74f6d27284cff44 Author: Martin Mares Date: Sun Mar 12 22:43:13 2000 +0000 Added tm_format_datetime(). commit 81ce667b7b7c38e109984602cf4e5ecbec80f7f1 Author: Martin Mares Date: Sun Mar 12 22:40:07 2000 +0000 Don't crash when filter_same() gets called on FILTER_ACCEPT or FILTER_REJECT. commit a92bebe0ec3545b1f99909d20224977aa6da1827 Author: Martin Mares Date: Sun Mar 12 21:58:51 2000 +0000 Yet another LOCAL_DEBUG turned off. commit 832fa033b7ecacf3225d7aa8c86e30484a07d946 Author: Martin Mares Date: Sun Mar 12 21:54:39 2000 +0000 Cleaned up debugging in kernel syncer. Netlink has still LOCAL_DEBUG turned on, but after some testing I'll gag it. commit e68dd11c43ebec527da69da7b093ae90ef6d6ea9 Author: Martin Mares Date: Sun Mar 12 21:47:25 2000 +0000 Use do { } while(0) instead of empty DBG if not debugging. commit 6b9fa320806ce8a734d865ebcb8052ba0e50c527 Author: Martin Mares Date: Sun Mar 12 21:01:38 2000 +0000 Great cleanup of debug messages. LOCAL_DEBUG turned off in most modules, several debug() calls converted to DBG(). commit 6a9f28b0b9254ba21c36126d6f10388815840001 Author: Martin Mares Date: Sun Mar 12 20:50:35 2000 +0000 Added tracing of interface events. commit b0a47440e33e7a270205130b01d59faadb6b6726 Author: Martin Mares Date: Sun Mar 12 20:49:08 2000 +0000 Oops, got `<' and `>' markers in trace output reversed. commit cfd46ee4c5b0d3689f8f9d094a68bc4b732cd0af Author: Martin Mares Date: Sun Mar 12 20:30:53 2000 +0000 Added debugging of communication between protocols and routing tables. Just ask for "debug routes" if you want to see the routes and "debug filters" if you want even the rejected ones. commit c8d5ffafb7c7e644048691221ca9d56ec68925a0 Author: Pavel Machek Date: Fri Mar 10 20:21:12 2000 +0000 Fix <=, >=, != commit ce17d4c165cadb09d391e34cda1b796a125ef012 Author: Ondrej Filip Date: Thu Mar 9 22:38:05 2000 +0000 LSA DB is completely redesigned. Now it should be faster and it needs less memory. commit af834f8630eb0078c723fb9b0af053dba6725d5e Author: Pavel Machek Date: Thu Mar 9 16:38:51 2000 +0000 Categorized TRACE() messages in rip commit cb822c0777657703e546bc99a7e5b646abe83d3f Author: Pavel Machek Date: Thu Mar 9 15:12:41 2000 +0000 Rip tracing: still need config hunk to set p->debug. commit 38466dbdacc706d7a6abcf348c448bd9f8fb01d4 Author: Pavel Machek Date: Thu Mar 9 14:59:10 2000 +0000 log() classes done right commit 995e5894cd9872603bc7c0ffd79fef96e4839006 Author: Pavel Machek Date: Thu Mar 9 14:47:43 2000 +0000 1 less shift/reduce conflict print now takes arguments separated by , [ 1.2.3.0/24 .. 3.4.5.0/8 ] is now forbidden [ 1.2.3.0/8 ] now actually works commit e4a73dbfcbb24a6a01ca960b641ce29d5045b3ba Author: Pavel Machek Date: Thu Mar 9 13:21:40 2000 +0000 CONST() is now gone commit 30147b89ff3a389ad40096505f3d1a5ba1705736 Author: Ondrej Filip Date: Wed Mar 8 12:50:28 2000 +0000 Sending of DBDes. (Checksum and length calculation NOT done.) commit 839380d7ecd133531ead2403c6dbc74950dad13c Author: Martin Mares Date: Tue Mar 7 21:50:21 2000 +0000 Added debugging of protocol state transitions. commit f30b86f9d5004a3e159c385269e76efc71b1566a Author: Martin Mares Date: Tue Mar 7 21:50:03 2000 +0000 Added configuration of default protocol debugging flags. commit 3eb0b586ca93b1d0d34f935cac8524e02f708126 Author: Martin Mares Date: Tue Mar 7 21:04:36 2000 +0000 No longer echoes commands before sending them. commit 3cbfcafecdf4f3dd1b201e0adf849f9959284c87 Author: Martin Mares Date: Tue Mar 7 21:04:14 2000 +0000 DBG calls debug() if defined(LOCAL_DEBUG) || defined(GLOBAL_DEBUG). commit 96d8e3bff242d5c9d0eb75fa04a21f6c09d8dbcf Author: Martin Mares Date: Tue Mar 7 20:49:48 2000 +0000 Added protocol debugging flags (protocol.h: D_xxx), parsing of them in configuration files and commands for manipulating them. Current debug message policy: o D_STATES, D_ROUTES and D_FILTERS are handled in generic code. o Other debug flags should be handled in the protocols and whenever the flag is set, the corresponding messages should be printed using calls to log(L_TRACE, ...), each message prefixed with the name of the protocol instance. These messages should cover the whole normal operation of the protocol and should be useful for an administrator trying to understand what does the protocol behave on his network or who is attempting to diagnose network problems. If your messages don't fit to the categories I've defined, feel free to add your own ones (by adding them to protocol.h and on two places in nest/config.Y), but please try to keep the categories as general as possible (i.e., not tied to your protocol). o Internal debug messages not interesting even to an experienced user should be printed by calling DBG() which is either void or a call to debug() depending on setting of the LOCAL_DEBUG symbol at the top of your source. o Dump functions (proto->dump etc.) should call debug() to print their messages. o If you are doing any internal consistency checks, use ASSERT or bug(). o Nobody shall ever call printf() or any other stdio functions. Also please try to log any protocol errors you encounter and tag them with the appropriate message category (usually L_REMOTE or L_AUTH). Always carefully check contents of any message field you receive and verify all IP addresses you work with (by calling ipa_classify() or by using the neighbour cache if you want to check direct connectedness as well). commit c801e1fbabee49838287a9e96814d3d0bf84ffa2 Author: Martin Mares Date: Tue Mar 7 20:09:35 2000 +0000 Renamed command `shutdown' to `down', so that `s' can be used as an abbreviation for `show'. commit 3549667925d04fa6a46ea35f56a9d3c741634d6a Author: Martin Mares Date: Sun Mar 5 22:48:30 2000 +0000 Implemented real slab allocator. If you suspect it from being buggy, just #define FAKE_SLAB at the top of lib/slab.c to bypass it. commit 9f4929e749d945c727f245ed7ef30c557124c352 Author: Martin Mares Date: Sat Mar 4 22:30:44 2000 +0000 Renamed EAF_INLINE to EAF_TEMP to make the name reflect the real meaning. commit b9626ec6eaf299b889f52d017d025f356b43371a Author: Martin Mares Date: Sat Mar 4 22:21:06 2000 +0000 Garbage collector events and counters are now per table and one day they can be made configurable if it turns out to be useful. commit 16c07e3d519b87a2166a513dd4edd8dab3bc3d19 Author: Martin Mares Date: Sat Mar 4 21:27:57 2000 +0000 Removed bogus comment. commit 54fb7701a21693eb7a51342eb98d663dd7324e8a Author: Martin Mares Date: Sat Mar 4 21:26:35 2000 +0000 Fixed display of short continued messages in verbose mode. commit c7814f01fc5fb51ae4054833ea8074ab9bcc86de Author: Martin Mares Date: Sat Mar 4 21:26:19 2000 +0000 Enabled short continuations. commit a58dad62383855ad1a60d4ec5406c38d24874506 Author: Martin Mares Date: Sat Mar 4 21:19:10 2000 +0000 Please *think* when defining operator priorities. (-: num_of_parser_conflicts -= 42 :-) commit ee76a92a80a0241421f57fe332c251255d2af4f8 Author: Martin Mares Date: Sat Mar 4 21:09:14 2000 +0000 Implemented real attribute cache. commit d4d7562806b7306d6e5ed9b759906e264b743dc5 Author: Pavel Machek Date: Thu Mar 2 22:23:18 2000 +0000 Avoid being exponential, do not allow ! = commit c8518ae136d94dc9576531a311947ba13213aea0 Author: Martin Mares Date: Wed Mar 1 15:05:43 2000 +0000 Removed RTF_EXTERIOR and RTF_TAGGED (unused). commit 85053fce04a2cba09332a6eb667f09f9c4182392 Author: Martin Mares Date: Wed Mar 1 14:51:47 2000 +0000 Reimplemented neighbor cache. Now uses real hashing. commit 7293c5dd8175aac4650cb48c68c7dd278a74371e Author: Martin Mares Date: Wed Mar 1 14:49:07 2000 +0000 Added proto->hash_key which contains randomly generated hash key used for calculation of hash functions depending on proto. commit 62ab789de5f5ace97a93fce551469f0229ba8c92 Author: Pavel Machek Date: Wed Mar 1 14:42:59 2000 +0000 Added type parameter to f_new_dynamic_attr. commit 31e79264a21df1acdbfbb66af40e05073b115a2c Author: Pavel Machek Date: Wed Mar 1 14:31:31 2000 +0000 tmp_attrs fixed. I do not know if it is right since mj ingores talk once started :-(. commit 4ebbbd4079cbf6295367b9c7a555c1b668fa0d8c Author: Martin Mares Date: Wed Mar 1 12:15:20 2000 +0000 Changed comments regarding hash function. commit 14a6c2a705fce9143e721b8da167dcbaa053c936 Author: Martin Mares Date: Wed Mar 1 12:03:43 2000 +0000 IP_PREC_INTERNET_CONTROL for IPv6 (see the comment). commit 4c1b4e1a582ea8d13943c46ad87588d5743439cb Author: Martin Mares Date: Wed Mar 1 11:48:11 2000 +0000 If the user has specified identical preferences for instances of different protocols, break the tie by comparing addresses, so we keep the ordering unambiguous. commit aee539f241dd233eb9e716e11ee2c449ab482a75 Author: Martin Mares Date: Wed Mar 1 11:42:13 2000 +0000 Made `datetime' more user friendly. Now it should be a quoted string of type "dd-mm-yyyy". commit db1326aa5e39711d88d305ac08a0afa137ab77f0 Author: Martin Mares Date: Wed Mar 1 11:32:23 2000 +0000 Dynamic attributes are now declared in per-protocol grammar files instead of filter/config.Y. Bird now compiles even if you disable RIP. Removed RTA and IMPOSSIBLE tokens (unused). Removed superfluous comment in filter.h. I've tried to do my best, but Pavel, please check these changes. commit 2ca3d9a8fc25be6f7d41d8a6ff50a70612c11c93 Author: Martin Mares Date: Wed Mar 1 11:30:16 2000 +0000 Defined INVALID_TOKEN which is a token guaranteed to be never generated. commit d07bab399735ee80205637f8e180e7595e0c0a67 Author: Martin Mares Date: Wed Mar 1 11:29:30 2000 +0000 ipa_opposite hack is not applicable in IPv6. commit ef0883a12fc699fbcef61f56fe8445f5e2ac1bb7 Author: Martin Mares Date: Tue Feb 29 23:20:55 2000 +0000 Adapted RIP to new interface flags. Pavel, please verify it's right. commit 6a636392d33627944df9d5a9573932cdc0bf6da5 Author: Martin Mares Date: Tue Feb 29 23:19:52 2000 +0000 Rewrote interface type detection logic. The `unnumbered' flag is now per address, not per interface (hence it's ifa->flags & IA_UNNUMBERED) and should be set reliably. IF_MULTIACCESS should be fixed now, but it isn't wise to rely on it on interfaces configured with /30 prefix. commit e69e4ed9349ee28262fe74f70e7e52c181d5d098 Author: Martin Mares Date: Sun Feb 27 22:00:19 2000 +0000 Support expansion of command abbreviations. Client considered finished (modulo bugs). commit de30342f97490e3a3626c4a5fbf3352d1d0aa9c8 Author: Ondrej Filip Date: Fri Feb 25 19:19:41 2000 +0000 Router LSA & area adding. commit b786df7035f43bb5eb4f7bca980e3bf684e527b7 Author: Ondrej Filip Date: Fri Feb 25 14:26:54 2000 +0000 Memory allocation in ospf_area changed. commit 2d496d2028e1283384f1c9d243f96eb59c42297e Author: Pavel Machek Date: Fri Feb 25 11:15:26 2000 +0000 Get rid of 'ab'-s, added return to functions. commit df0cf75dc849f5182d75328f4d4189a2d6048b57 Author: Martin Mares Date: Thu Feb 24 18:46:24 2000 +0000 Hmmm, libreadline 2.1 seems to be the oldest version we work with. commit 1d4ba6583afa5e6d4118aca0d0a645342d575b68 Author: Martin Mares Date: Thu Feb 24 18:43:23 2000 +0000 Moan loudly if libreadline is an old version which doesn't support callbacks. commit ab56f6b16fd9401565a066122be3231dccd24fb6 Author: Ondrej Filip Date: Thu Feb 24 00:26:10 2000 +0000 Area work and router LSA starts when interface goes up. commit ea28da044af9a35407724ba091d9a823c1cfe7e7 Author: Ondrej Filip Date: Wed Feb 23 23:23:19 2000 +0000 Small change for debugging. commit 91808fffc22e37b6d558f22db911ad0a3277d694 Author: Ondrej Filip Date: Wed Feb 23 23:14:18 2000 +0000 Structures for router LSA added. commit 6fa948d6c5abd0620836f66c654354ce38936f3a Author: Ondrej Filip Date: Wed Feb 23 23:13:27 2000 +0000 Better debugging. commit e6fcf113eca687d4dd888ef41033114ec8be82b9 Author: Ondrej Filip Date: Wed Feb 23 23:13:10 2000 +0000 Better debuging. commit fae0396ea4fd9d2530086eef77b8a11b6640d640 Author: Martin Mares Date: Thu Feb 17 23:37:16 2000 +0000 Completion works. Unfortunately, we have to access a couple of internal symbols of libreadline :-( commit 0223d4fff11badc03470b4320fa9dfe28afd1bed Author: Martin Mares Date: Thu Feb 17 22:00:13 2000 +0000 Client: Online help works (Cisco style: just press `?' at the end of a line). commit c51f132d582632037b4ef064fbd32d785af245fc Author: Martin Mares Date: Tue Feb 15 12:18:37 2000 +0000 First usable version of the client. No command completion and similar nifty features yet, but it works. commit 973304bc2b274ffaa6e27612256f6cea4a3a40c1 Author: Martin Mares Date: Mon Feb 14 17:32:50 2000 +0000 Don't make dependencies in client directory if the client is not configured in. commit 4bf6de87379a3458b59275373b9e88611baabb88 Author: Ondrej Filip Date: Tue Feb 8 22:43:10 2000 +0000 Hash table structure redesigned. commit 316d7bd7d16ea7ea26831bb7100dd0ac3c63084e Author: Ondrej Filip Date: Tue Feb 8 22:13:12 2000 +0000 Other LS struct added. commit d3cb698053e14b3d35750d92389c34b71503bfc6 Author: Ondrej Filip Date: Tue Feb 8 19:24:22 2000 +0000 LSA type changed from u16 to u8. commit c7b915d68c9475ba3a23c99ec7f796ec0a53978b Author: Ondrej Filip Date: Tue Feb 8 19:12:42 2000 +0000 Malloc() changed to cfg_alloc(). commit 9a4037d40891321a2f091cb1f1003bb1ee725136 Author: Pavel Machek Date: Mon Jan 31 17:44:22 2000 +0000 filter_same() implemented. Don't bet on it, yet. commit 70844a6a46305080d7ada79936fb272beb411cf4 Author: Pavel Machek Date: Wed Jan 26 21:28:53 2000 +0000 Updated docs about filters, and added fixme. commit bd215f8bab7e0d94fa482b47ff8d5971cd5ab799 Author: Pavel Machek Date: Wed Jan 26 14:12:18 2000 +0000 Do not send empty packets in rip. commit 8660913ba83d66491caf407a7e6eb16a4eeda2d0 Author: Pavel Machek Date: Wed Jan 26 12:07:18 2000 +0000 Output made prettier. commit 7211be1cffdee84fd15e8b6b2a07a644948f1455 Author: Martin Mares Date: Thu Jan 20 13:13:30 2000 +0000 Configure, link and use the readline library. commit 9fac310d1a4e46f4bcc70177e59cbf93763ef479 Author: Martin Mares Date: Wed Jan 19 15:07:00 2000 +0000 Put client on a stony ground. The whole client is going to be system-specific (the current version UNIX-specific) anyway, so it's useless to try splitting it to sysdep and generic part. Instead of this, configure script decides (based on system type and user's wish) what (if any) client should be built and what autoconfiguration it requires. Also, the client provides its own die/bug/... functions. commit f50b9e48b93e3f69423a0e6e5fef273ba2022958 Author: Martin Mares Date: Wed Jan 19 14:37:56 2000 +0000 Generate a list of all commands and their help texts for the client to use. commit 4b87e256eba51a8711c24fbae501ac7975b4ecd3 Author: Martin Mares Date: Wed Jan 19 12:30:19 2000 +0000 Split off general commands to cmds.c. Added `show symbols' command which dumps whole symbol table together with symbol types etc. commit f5ad9f87a389c1167a8468d0190bcf6d3cc33cf6 Author: Martin Mares Date: Wed Jan 19 11:52:32 2000 +0000 Killed a couple of bugs in the neighbor cache. Manual disable/enable/restart/shutdown/reconfiguration of protocols no longer hangs on loops in neighbor lists :) commit 3ea1ba632b3cdb5005a9339fd5e74d5f93631a48 Author: Martin Mares Date: Tue Jan 18 11:01:03 2000 +0000 Killed protocol->priority. Protocol startup should be clean and hack-free now. It seems everything still works (except for disable/enable/restart which hangs sometimes, but it's another story). commit 54aaa89ada2d048c64a5afd58844bc395b1a3cfe Author: Martin Mares Date: Tue Jan 18 10:42:45 2000 +0000 protocol->startup_counter no longer exists. commit aa8761de9471dbe28149d990bdbc851c744f4e2b Author: Martin Mares Date: Tue Jan 18 10:39:30 2000 +0000 Kernel route syncer now supports dynamic reconfiguration. Also it doesn't depend on the startup counter hack now and uses a zero-time timer instead to make itself scheduled after normal protocol startup. commit fb89b1a4ced5f3d847ecbc1d4b86a0cb47564ef7 Author: Martin Mares Date: Mon Jan 17 12:40:00 2000 +0000 Removed point-to-point tunnel hack as it breaks ordinary PtP interfaces. I'll find a better solution soon. commit 295ae16d4ddf4b714e716a0a1537f40c54f1119c Author: Martin Mares Date: Mon Jan 17 12:38:50 2000 +0000 Static protocol supports full dynamic reconfiguration. commit 471cc0be651a8db7068a65963ecfd4cc45f97ab1 Author: Martin Mares Date: Mon Jan 17 12:38:07 2000 +0000 Moved initlialization of protocol lists to global init. Argh. commit d272fe22dddcb5c293d6aac18d36e3e3e66406a5 Author: Martin Mares Date: Mon Jan 17 11:52:50 2000 +0000 Separated `official protocol names' used in status dumps from name templates used for automatic generation of instance names. protocol->name is the official name protocol->template is the name template (usually "name%d"), should be all lowercase. Updated all protocols to define the templates, checked that their configuration grammar includes proto_name which generates the name and interns it in the symbol table. commit f7fcb752520759ab3aed274ca608e8e6f96665c8 Author: Martin Mares Date: Mon Jan 17 11:17:33 2000 +0000 Reconfiguration for device protocol. commit 0ec90e9fc6f6bec2d0b64f6b9711a6d3edb4bd52 Author: Martin Mares Date: Mon Jan 17 00:20:45 2000 +0000 Pipe protocol supports reconfiguration. commit 88dc89f9918f524d9ca143d409c261a4a8230555 Author: Martin Mares Date: Mon Jan 17 00:20:17 2000 +0000 Device protocol supports reconfiguration. commit 26368f656c2398acc4d3ed55879d2f371cecf75b Author: Martin Mares Date: Mon Jan 17 00:19:58 2000 +0000 Don't forget changing proto->name to point to name in new configuration (to avoid the name being freed with the old config). Also remember to add proto_pipe to protocol_list. commit ca0edc53956ecd493055ba1625754ee75d58a9c7 Author: Martin Mares Date: Sun Jan 16 23:36:53 2000 +0000 When a quoted string is encountered, don't forget to copy it to the config pool before passing it to the parser. commit 99278e10421a2e6703e77f91e6ef436eaf660405 Author: Martin Mares Date: Sun Jan 16 23:36:19 2000 +0000 Wording changes. commit f14a4becbe77cfb3c2e4243d6fc383b0acd8956f Author: Martin Mares Date: Sun Jan 16 23:30:06 2000 +0000 Reworked proto lists -- each proto is now in two lists: the global one (proto_list) and per-type one (original lists). A lot of things simplified. Implemented `disable', `enable' and `restart' CLI commands. commit 30a6108cccac93048440113211df2eed1fb541b1 Author: Martin Mares Date: Sun Jan 16 17:49:32 2000 +0000 Added filter_same() for comparision of two filters. Pavel, please implement this as soon as possible. commit bf8558bc9cab35f31bccd6a55e51f121370765c4 Author: Martin Mares Date: Sun Jan 16 17:40:26 2000 +0000 Converted shutdown to a kind of reconfiguration, it's no more handled as a exception in protocol state machines. Introduced a `shutdown' CLI command. Killed few reconfiguration bugs. commit ebc793a5f552bb676014f771d81c074b7dd4345d Author: Martin Mares Date: Sun Jan 16 17:39:16 2000 +0000 No more problems when events get scheduled during event processing. commit 50fe90edf3deab409ea7887c131bfe6ce89fa556 Author: Martin Mares Date: Sun Jan 16 16:44:50 2000 +0000 First attempt on dynamic reconfiguration. There are still lots of bugs and problems to solve, but the hardest part works. commit 394aec8fdd112a81da1e2f6f0e09ee74256dc24e Author: Martin Mares Date: Sun Jan 16 16:40:57 2000 +0000 Don't forget to set proto->min_scope = SCOPE_HOST. commit 150875747813977ddf12474fa10a771090586402 Author: Ondrej Filip Date: Wed Jan 5 00:03:47 2000 +0000 Preparing for building LS databaze. Huh, why is it so complicated? :-( Adding definition of some constants. commit 7a7c1d9f34b95263d3bc100dec6cf3b94f1a9802 Author: Pavel Machek Date: Mon Dec 20 19:14:06 1999 +0000 Few more entries for bird documentation commit c8c0f62444a048e9d0986463ee1bfcdfc06df7c8 Author: Pavel Machek Date: Sat Dec 18 20:41:19 1999 +0000 This is first version of documentation. Be sure to take a close look at it, and it would be very nice if you wrote at least introductions to your chapters... commit 60d7d10e6f19483545760f2241312758dd72a2ad Author: Pavel Machek Date: Sat Dec 18 20:39:53 1999 +0000 Added fixme. commit 476e10842503b51331a7994b6e25c91b20eb8e71 Author: Martin Mares Date: Thu Dec 16 13:51:43 1999 +0000 Minor cleanups. commit e693ddff874890a9e5c990f6ca75d2e2358d065a Author: Martin Mares Date: Thu Dec 16 13:23:32 1999 +0000 Handle cases when SIOCGIFINDEX is defined, but doesn't work (new glibc with 2.0 kernels). commit 3f996d46df3cf1bdbefe0b0b0f5245c76b12756b Author: Martin Mares Date: Thu Dec 16 13:14:32 1999 +0000 Added missing semicolon. rip.h compiles in IPv6 mode, rip.c still doesn't. commit a2867cd957c9282d47440a1f42a6b823f5c9e4b2 Author: Martin Mares Date: Thu Dec 16 13:14:02 1999 +0000 Better order of includes. set_inaddr() moved to sysio.h. commit 12a9d139eecea7e7fb5e73e82a2531c70894d4c8 Author: Martin Mares Date: Thu Dec 16 13:13:22 1999 +0000 ipv6_compare() accepts non-lvalue arguments as well. This makes filters compile with IPv6. commit 67ece6df42b20ecc524cf3e5c14e8b541afec860 Author: Martin Mares Date: Thu Dec 16 13:06:13 1999 +0000 Tried to clean up multicast handling. Now we don't try to guess multicast abilities depending on definedness of symbols and use hard-wired system-dependent configuration defines instead. Please test whereever you can. commit ccdc33975648647270bf33511ec5bbab4d634634 Author: Martin Mares Date: Thu Dec 16 12:59:09 1999 +0000 Avoid touching F_MODIFY, it no longer exists. commit 6aea8905c4f0c2b0da6061b445894496e473145d Author: Martin Mares Date: Thu Dec 16 12:18:33 1999 +0000 TODO entries and FIXME's. commit d46ffc97ffc9ae753f999614bb69033b1f44df6d Author: Martin Mares Date: Thu Dec 16 12:18:19 1999 +0000 Kicked off F_MODIFY (not generated nor used) commit f545d38707bf01aa9db3915d782a547f89f92c1d Author: Martin Mares Date: Thu Dec 9 18:54:20 1999 +0000 Added universal locking mechanism which will solve problems with protocols wanting to use the same port on the same interface during reconfiguration time. How to use locks: In the if_notify hook, just order locks for the interfaces you want to work with and do the real socket opening after the lock hook function gets called. When you stop using the socket, close it and rfree() the lock. Please update your protocols to use the new locking mechanism. commit 30bc402ebb324749f9468f8ff196545bb0a58442 Author: Martin Mares Date: Wed Dec 8 15:12:54 1999 +0000 Temporary work-arounds for multicast problems. Needs further investigation. commit 0da472d7e867e31c49fccc4ee45df3ef47c29c9b Author: Martin Mares Date: Wed Dec 8 14:16:13 1999 +0000 Except for special protocols (nowadays only the kernel syncer), don't export host and link scope routes. commit dff1f5791794102e4e6880516545145c5036873f Author: Pavel Machek Date: Wed Dec 8 13:33:44 1999 +0000 Added hooks for show route. Fixed passing metrics around routing tables. commit dc82daaa9b0d88dca8684a7a766b253853ee7023 Author: Martin Mares Date: Wed Dec 8 13:20:19 1999 +0000 - Path to control socket is selectable via command-line option. - die() when control socket open failed. commit 4d4de35f002e3d7a780462b834f01eeb0f70239a Author: Pavel Machek Date: Wed Dec 8 12:51:45 1999 +0000 Fix timing and fix endianity in metrics. commit 2e18b87dcf5d4029d11bc46b37d601aae4f97174 Author: Pavel Machek Date: Wed Dec 8 12:51:26 1999 +0000 Disallow rta.net syntax. commit 3df563fa4c3c0acca181ce09dbb05452720e90e8 Author: Pavel Machek Date: Wed Dec 8 12:51:15 1999 +0000 Put rip options into config file. commit 9b47eb8530263b5ebd4a41f9ef3dab982775fc44 Author: Pavel Machek Date: Wed Dec 8 12:50:57 1999 +0000 Make bird.conf that does not crash machine when you run bird as root. commit 6c14255dd666c362f19f193a41a31f66310a34ea Author: Pavel Machek Date: Wed Dec 8 10:15:51 1999 +0000 Make rta. syntax optional. commit febe526303996d48a667cd077f5703ca91f43219 Author: Pavel Machek Date: Wed Dec 8 10:15:40 1999 +0000 Separated bird.conf and bird.conf for testing filters. commit f78056fb2cf4554d5dcc50b5e0e79bc09ae825cf Author: Martin Mares Date: Mon Dec 6 13:51:04 1999 +0000 Allow logging to stderr as well. commit 4ab5331c6370ba83dc7b228f9a94ccc1c64a973e Author: Martin Mares Date: Mon Dec 6 13:50:50 1999 +0000 Added type `g' for void (general) pointer. commit a0c37b45e59f024fc24b65ffbaf2c9e0f1996938 Author: Martin Mares Date: Mon Dec 6 13:45:56 1999 +0000 Logging is now configurable. You can define multiple log outputs (to both files and syslog) and assign lists of message categories to each of them. commit 7c0cc76ed76100ef8492f13eeec1e061d52b9be0 Author: Martin Mares Date: Mon Dec 6 13:44:45 1999 +0000 Moved initialization of protocol list to proto.c. Added sysdep configuration hooks. commit a9c986f98116fef5c35d956e7a867be0735f3268 Author: Martin Mares Date: Mon Dec 6 13:43:47 1999 +0000 Added tracked_fopen() which is a fopen registered in resource database. Will be used for log files. commit 34350a52700955d50895058d01b5407aea970e9b Author: Martin Mares Date: Mon Dec 6 12:34:45 1999 +0000 Implemented echoing of log messages to CLI connections. Just try `echo all'. commit f3792601dfe85c3017c984a6de5722d0e9da8a16 Author: Martin Mares Date: Sat Dec 4 23:28:56 1999 +0000 Don't forget to send an OK reply after dumping debug information. commit 305a01f57bd97906000c36bb154d63bc90012ef7 Author: Martin Mares Date: Sat Dec 4 23:17:29 1999 +0000 Added DEBUG commands. Removed CLI tests, real commands now serve as much better examples. commit feed82267663c6826da896309de180417bd0b39f Author: Martin Mares Date: Fri Dec 3 11:41:23 1999 +0000 Implemented `show static'. It's a relatively good example of how to write show commands for other protocols. commit 02c1fbddd462fecc6887a44ef67202870bcae7be Author: Martin Mares Date: Fri Dec 3 11:40:45 1999 +0000 Added proto_get_named() to be used in CLI commands to get protocol instance of a given protocol with optionally given name. See `show static' for an example. commit 28e01f85c65c536837227829f645818dfa6a2652 Author: Martin Mares Date: Fri Dec 3 11:10:50 1999 +0000 Renamed SHOW PROTOCOLS VERBOSE to SHOW PROTOCOLS ALL to be consistent with the other commands. commit 430da60fa29196cf8715e09e1d81c7ea0b672f05 Author: Martin Mares Date: Thu Dec 2 14:04:44 1999 +0000 Implemented `show route where ' command. Pavel, please check my addition to filter/config.Y. commit f2c6c80a2422b87a2947b7324ad14309198d64a4 Author: Martin Mares Date: Thu Dec 2 14:03:25 1999 +0000 I tried to turn on the YYERROR_VERBOSE switch, but bison is buggy as hell, so it doesn't even compile. Turned it again off and added a comment on it. commit efe51e38632dd7875af6789536be9ccfefd758c9 Author: Martin Mares Date: Thu Dec 2 12:04:39 1999 +0000 Avoid `default rule can be matched' warning in CLI state. commit 9c3726afd2edabf42f11f21cf787061db6c5a33a Author: Martin Mares Date: Wed Dec 1 15:17:24 1999 +0000 Updated TODO file. commit 730f2e2c8c29b3461caa096fa514cbf71f84e51b Author: Martin Mares Date: Wed Dec 1 15:10:21 1999 +0000 Added dumping of routing tables (`show route'). This includes filtering. commit 04a60c689aeb10fafa9919bcff5f8391e0f3a158 Author: Martin Mares Date: Wed Dec 1 15:08:32 1999 +0000 Added get_route_info and show_route_data hooks to struct protocol. Please implement them. commit f611f0ee824a6b363dc675e8f6ac963f20e7d007 Author: Martin Mares Date: Wed Dec 1 15:07:56 1999 +0000 Reset temporary parser data before parsing, not afterwards. This enables deferred CLI command handlers to store their temporary data in the CLI parsing pool. commit 2ad6dcdb2c949904643eabbbf6d0029045e8ea45 Author: Martin Mares Date: Wed Dec 1 15:07:06 1999 +0000 Make ACCEPT/REJECT actually return the result... commit e7f76bae8ccfe405ce3032aaa3a5e9228e5feb98 Author: Pavel Machek Date: Wed Dec 1 13:44:42 1999 +0000 Stupid bug (essentially while(1) loop) occuring sometimes during start of bird fixed. commit 7e1f99719e01af86006bc5c9b9a472516ec85a2c Author: Pavel Machek Date: Wed Dec 1 12:54:23 1999 +0000 accept should behave as return, not running any commands after it. commit 639e62855495fcf461c177373d8f5eb0d5d87332 Author: Pavel Machek Date: Wed Dec 1 12:52:57 1999 +0000 Actually check sequence numbers. commit 3daf783f95790682025ef03ac5b2f486943e6214 Author: Martin Mares Date: Wed Dec 1 12:01:41 1999 +0000 Implemented get_status for the pipe protocol (reports name of the other side of the pipe). Please do so for your protocols as well. commit 9685deb910c9e7400915209c1924e100b1feb5d5 Author: Martin Mares Date: Wed Dec 1 12:00:15 1999 +0000 `show protocols' now shows time of last state change and protocol-dependent status information (obtained via newly introduced hook protocol->get_status). commit 5954dcfab74c8d8a2774f259c9940c1d87e76518 Author: Martin Mares Date: Wed Dec 1 11:59:24 1999 +0000 Introduced new protocol-dependent integer field `aux' to struct neighbor. commit afa8937ac8433a7cb430a14f7613e8d0555f1149 Author: Martin Mares Date: Wed Dec 1 11:59:00 1999 +0000 Added tm_format_reltime() for formatting of relative time quantities. commit 6781e5213b3c910317a68aaee7ee53e81ee93948 Author: Pavel Machek Date: Wed Dec 1 11:39:58 1999 +0000 FIXME's cleaned up: I have actually fixed things without killing comments. There are no urgent FIXME's in filters. Perhaps we should start with documentation? commit f2ed663aea02ac38621ecfe91cd1f37f4a56dc4d Author: Martin Mares Date: Wed Dec 1 10:28:39 1999 +0000 Use linux-22 configuration with all 2.2.x and 2.3.x kernels. This means you need to have your kernel compiled with netlink routing messages enabled. If it doesn't work for you, use --with-sysconfig=linux-21 and let me know what's going wrong. commit 1d2664a4d4455470e0b6c7fc50d232283e39e1e0 Author: Martin Mares Date: Tue Nov 30 14:04:09 1999 +0000 Remember protocol instance in proto_config and use that for `show protocols '. commit c9aae7f47fd7ad71b80cbc86c01a26c504ba08d0 Author: Martin Mares Date: Tue Nov 30 14:03:36 1999 +0000 Lexer supports fallback symbol tables and uses them to recognize symbols from global config when parsing CLI commands. cf_lex_init_tables() is now called automatically inside the lexer. commit f0474f207061151183bb85d59f09422e7bb7e2ee Author: Martin Mares Date: Tue Nov 30 14:02:27 1999 +0000 Use TIME_INFINITY for initialization of password entries instead of 2000000000 (BTW who wrote that???) commit 487d1afa523706d8b0caec63492f4a2b6cef3bce Author: Martin Mares Date: Tue Nov 30 14:01:39 1999 +0000 Moved TIME_INFINITY to timer.h, so that it's publicly available. commit 0d3e6bceeeec4ebf007e02374f799cd1fb21f20c Author: Martin Mares Date: Tue Nov 30 12:57:14 1999 +0000 `show interfaces' and `show protocols' works. commit 10b5baaef32076369b06b4318cc61e6fa11e5493 Author: Martin Mares Date: Tue Nov 30 12:56:52 1999 +0000 Don't use continuation shortcuts until real client is written. commit 163b2073465b1d2f90d23832456e79463fdec308 Author: Ondrej Filip Date: Tue Nov 30 10:35:26 1999 +0000 Inicialisation of Topology Graph (TG). commit ae97b946e99bef043613d210489a926fe4807ec1 Author: Martin Mares Date: Thu Nov 25 15:35:30 1999 +0000 Added few basic commands: show status, show interfaces [summary], show protocols (incomplete). commit 35793769273f7286aafa0455547d1d7cfeef3931 Author: Martin Mares Date: Thu Nov 25 15:34:51 1999 +0000 cli_msg() moved to cli.h, so that it can be used outside the parser. commit ea32afb765381e642a525409a8f6cdff99aa0225 Author: Martin Mares Date: Thu Nov 25 15:34:20 1999 +0000 Added ip_scope_text() for translating of scopes to strings. commit 1a509a6310cb2a5211bf3ac9fd963f06d9109cb1 Author: Pavel Machek Date: Thu Nov 25 15:03:12 1999 +0000 md5 authentication seems to work. commit d3702d57fd5357e9a11ada6c46769a79da8e547a Author: Pavel Machek Date: Thu Nov 25 14:54:08 1999 +0000 Bugfixes: select right password for password authentication, do not try to process authentication blocks as datablocks, make it possible to add data at end of packet. Password authentication should actually work. commit 4aa885a53c479c774aab5befe55a1714b89cdc9e Author: Pavel Machek Date: Thu Nov 25 13:42:49 1999 +0000 Filters: fix rta access to use ->aux field. commit 7e61cac325aae2628d668673f60853608e072e66 Author: Pavel Machek Date: Thu Nov 25 13:38:25 1999 +0000 Triggered updates should now actually work. Fixed metric=16 -> time it out logic. commit 774f149959030b66faca7a97dfb4d1703a84e0d7 Author: Pavel Machek Date: Thu Nov 25 12:01:45 1999 +0000 Fix timeouts. Triggered updates are not done, yet. commit 455ca441d99184e1514415bd7acb25f82d01366e Author: Pavel Machek Date: Wed Nov 24 12:16:31 1999 +0000 Check that prefixes are really prefixes + fix config file to comply. (:-( 1.2.3.4/8 looks nicer than 1.0.0.0/8). commit 8f013d9ca443d4ff39af7560039f108efa9ef474 Author: Pavel Machek Date: Wed Nov 24 12:09:58 1999 +0000 Sorry, previous commit did not even compile. commit 48f9e0195488db0a515e4e5140d402fe4fe7d927 Author: Pavel Machek Date: Wed Nov 24 12:04:32 1999 +0000 Filters: write access to dynamic attributes should actually work. It would be nice to find method of testing such beasts. commit 99bbd23b229419403f673c626001eb0f35cc3a4e Author: Martin Mares Date: Thu Nov 18 14:41:43 1999 +0000 More CLI plans... commit 8d24b6899d0aba52fef8c48921ce4d1481ee212c Author: Martin Mares Date: Thu Nov 18 14:41:29 1999 +0000 Allow EA type to be set to 'undefined' which overrides all further definitons of that EA in the same list and causes ea_find() to fail unless you add EA_ALLOW_UNDEF to the second argument. ea_sort (resp. ea_do_prune()) removes all undef'd attributes from the list. I hope this works :) commit f31156ca217226ad110cc46e6365d70e64c527e0 Author: Pavel Machek Date: Thu Nov 18 14:29:10 1999 +0000 Filters: first parts of extended attributes being read-write. It can not actually work since I do not do rta/rte cow, yet. commit c7b43f33ae8d583ead531d76ed81f1b5deb507f3 Author: Pavel Machek Date: Thu Nov 18 14:01:36 1999 +0000 Split inst->code into inst->code and inst->aux. Both are only 16 bit, so aux is suitable for storing type but not much more. commit da40b6f753f4dd48dbcaebbe6174decb28705ab8 Author: Martin Mares Date: Thu Nov 18 13:42:51 1999 +0000 DEF_PREF_UKR and DEF_PREF_SINK removed. commit 346a12c2109b99d907e7ebeb3560992e92a6c26b Author: Pavel Machek Date: Thu Nov 18 13:21:52 1999 +0000 You can now print enum. commit 4364b47e48ddedb841e8ec8db25c8b4fa878a911 Author: Ondrej Filip Date: Wed Nov 17 15:50:41 1999 +0000 ospf.c and ospc.h splitted into various files. commit bff1db76292b194bbbf0c476d960f40aa0ea47ce Author: Martin Mares Date: Wed Nov 17 14:58:21 1999 +0000 Added skeleton of command tree. Please inspect. commit 2af2636a691da37c73ba032ece29dee1dd20fff7 Author: Ondrej Filip Date: Wed Nov 17 13:28:51 1999 +0000 Another bugfix. (In EXCHANGE state.) commit e17baa31088766f7f278be6754d0acc6e8380e4e Author: Ondrej Filip Date: Wed Nov 17 13:15:01 1999 +0000 Fixed bug receiving dbdes packets in EXSTART state. commit 62a463954815748d0d82da0e30651e6eea7bc9cf Author: Martin Mares Date: Wed Nov 17 12:14:44 1999 +0000 Added some temporary examples of how to define CLI commands (search for CF_CLI). To define a new command, just add a new rule to the gramar: CF_CLI(COMMAND NAME, arguments, help-args, help-text) { what-should-the-command-do } ; where are appended to the RHS of the rule, is the argument list as shown in the help and is description of the command for the help. is a C code snippet to be executed. It should not take too much time to execute. If you want to print out a lot of information, you can schedule a routine to be called after the current buffer is flushed by making cli->cont point to the routine (see the TEST LONG command definition for an example); if the connection is closed in the meantime, cli->cleanup gets called. You can access `struct cli' belonging to the connection you're currently servicing as this_cli, but only during parse time, not from routines scheduled for deferred execution. Functions to call inside command handlers: cli_printf(cli, code, printf-args) -- print text to CLI connection, is message code as assigned in doc/reply_codes or a negative one if it's a continuation line. cli_msg(code, printf-args) -- the same for this_cli. Use 'sock -x bird.ctl' for connecting to the CLI until a client is written. commit 30770df2ab33ffbfd75a9478265ac5e1a1db98d9 Author: Martin Mares Date: Wed Nov 17 12:04:24 1999 +0000 If the main event queue is not empty, call select() with zero timeout, so that the events are ran again after the FD's are checked. This allows us to schedule I/O checks between processing of user commands. commit 84a7d7f77c05578d9ebfff90672e73f021999d25 Author: Martin Mares Date: Wed Nov 17 12:01:11 1999 +0000 ev_run() now returns whether the event has been requeued or not. ev_run_list() now returns number of events which remain in the list. commit ffb59d243a350ed525850e864b38af0ecb0ffea5 Author: Martin Mares Date: Wed Nov 17 12:00:21 1999 +0000 Command line interface now works. commit ea9bb932a31e5df14e3a1a5f580e62b6aedc0247 Author: Martin Mares Date: Wed Nov 17 11:16:15 1999 +0000 Commented out nexthop selection, see the comment. commit 7d509304b58d7ebf1d53e36a8e656830b409e1e8 Author: Martin Mares Date: Mon Nov 15 11:36:22 1999 +0000 An example of how to define enums. commit fd54b602665f71879087faeb0b733fefa9c964bb Author: Martin Mares Date: Mon Nov 15 11:36:09 1999 +0000 ENUM's are now recognized as constants. commit 944f008af7a46144e38f963097e8e4cce493e2a7 Author: Martin Mares Date: Mon Nov 15 11:35:41 1999 +0000 Defined CF_ENUM. commit cbc31830079fb5e49c14c3de446b10ed8da99ce0 Author: Martin Mares Date: Mon Nov 15 11:34:51 1999 +0000 SYM_STAT is gone. commit 4515bdba4f56b298e62150ffe24608ba1a42e7da Author: Pavel Machek Date: Thu Nov 11 13:55:39 1999 +0000 Fixed order of arguments for function call. Enumeration types should work once CF_ENUM() is ready. Created test.conf for testing of filters. (I'm currently thinking about ./tests in root directory which will just fire all available tests...) commit 4ed8718a19747bba95ff86fb8d3c6ea357b50101 Author: Pavel Machek Date: Thu Nov 11 13:27:59 1999 +0000 Shift/reduce conflict goes away _and_ if/then/else works. commit 986e34131dbd2bca668c2b0a6ebb25de6848fc0a Author: Ondrej Filip Date: Wed Nov 10 16:06:12 1999 +0000 Sending DBDES packet in EXSTART done. commit 1183b6b2297f03113d31dc73ef0edc8fc7ef0b7e Author: Pavel Machek Date: Wed Nov 10 13:59:13 1999 +0000 Enums do not work, this is testcase. commit cb8034f42cfaa2753152fa1d776cc618d07fedda Author: Pavel Machek Date: Wed Nov 10 13:44:29 1999 +0000 First try on enumerational types. Mj's noassoc removed: this brings back shift/reduce conflict but it makes parser actually work. Mj please check it. IF/THEN/ELSE still will not work. commit 2f702671b46fa2ea01021170f685f554e4012782 Author: Pavel Machek Date: Wed Nov 10 13:07:18 1999 +0000 No more shift/reduce conflicts. commit 4995564570f9779686f767ec98034ce58d836203 Author: Martin Mares Date: Wed Nov 10 13:05:57 1999 +0000 Shift/reduce conflicts in IF/THEN/ELSE rules solved. commit f453665704cc8d946f86057e67151ef27419e280 Author: Pavel Machek Date: Wed Nov 10 12:44:07 1999 +0000 Enumerational types, defined keyword added. commit 6ba36f06ae10ea7efd60c30f8ef40d6143c69ef6 Author: Martin Mares Date: Wed Nov 10 12:27:01 1999 +0000 Added LSA hashing table (parts of code stolen from rt-fib.c, but heavily simplified since we don't need asynchronous walking). commit 3918b1b050701dee217fa9bc8c4c44d47cb84124 Author: Pavel Machek Date: Wed Nov 10 11:52:36 1999 +0000 Added timeout for routes (which means proper expiring of routes) added few fixmes. commit 024dcaaea253e1f69f4325edebec4a9b5618caea Author: Martin Mares Date: Wed Nov 10 10:48:19 1999 +0000 Added project status report for KSVI. commit a5b583f20abfbf8181b46c08947df7043c213113 Author: Pavel Machek Date: Thu Nov 4 14:39:51 1999 +0000 FIXME's updated. One fixme is remaining for correct RIPv4. Wow. commit 7bf19253d0c33e6accd5b36a5b221f6d1d9cadcc Author: Pavel Machek Date: Thu Nov 4 14:26:18 1999 +0000 Reject packets which are not authenticated. Set correct nexthop on outgoing packets. commit 3c989eb4a784c34870e9d66d5be3c976d8f03797 Author: Pavel Machek Date: Thu Nov 4 14:05:40 1999 +0000 Fixed comments about shift/reduce conflicts. commit ae3e1af2a86c428f473ef0270151cead16cc0e8e Author: Pavel Machek Date: Thu Nov 4 14:03:45 1999 +0000 Add possibility of local variables. commit f30b25f9625d5542ace217bb6b3610d0a09f228a Author: Pavel Machek Date: Thu Nov 4 14:03:36 1999 +0000 Use local variables to test that functionality. commit df8b85e33f6df0567127efdd80acf98ba6f3ffea Author: Martin Mares Date: Thu Nov 4 13:53:47 1999 +0000 Silly bug. commit c8f61a01ea1862d0c0a3ec4cc15c5d49e1366725 Author: Martin Mares Date: Thu Nov 4 13:51:52 1999 +0000 Symbols are not scoped. commit 91447965fed2728a1f877e21f7f58aab4c0022c7 Author: Pavel Machek Date: Thu Nov 4 13:33:30 1999 +0000 Possibility to access first extended attributes. commit 2727bb7c5bbdac54661a5097f86d979799095db8 Author: Martin Mares Date: Thu Nov 4 13:29:43 1999 +0000 Renamed attr->attrs to attr->eattrs. commit 6dc7a0cb39d712c7670a113d5a66e9e868eb9872 Author: Pavel Machek Date: Wed Nov 3 22:23:01 1999 +0000 Filters now do not allow function (int arg; int arg2; ). commit e5005be2b415ebd9bdea28a3515961f4eb904501 Author: Pavel Machek Date: Wed Nov 3 22:21:26 1999 +0000 You should not follow next two times. commit ecc3cf6f50768284b9660b5717190107e742404f Author: Ondrej Filip Date: Wed Nov 3 12:59:38 1999 +0000 Working on db des receiving. Preparing for building LDA database. commit 03b7bd14de501891ea8ae1d914e1da0b1f4147d5 Author: Martin Mares Date: Sun Oct 31 17:48:21 1999 +0000 Started a list of CLI reply codes. commit bc2fb68098faaf09393437a7743285d2af71d102 Author: Martin Mares Date: Sun Oct 31 17:47:47 1999 +0000 Parse CLI commands. We use the same parser as for configuration files (because we want to allow filter and similar complex constructs to be used in commands and we should avoid code duplication), only with CLI_MARKER token prepended before the whole input. Defined macro CF_CLI(cmd, args, help) for defining CLI commands in .Y files. The first argument specifies the command itself, the remaining two arguments are copied to the help file (er, will be copied after the help file starts to exist). This macro automatically creates a skeleton rule for the command, you only need to append arguments as in: CF_CLI(STEAL MONEY, <$>, [[Steal <$> US dollars or equivalent in any other currency]]): NUM { cli_msg(0, "%d$ stolen", $3); } ; Also don't forget to reset lexer state between inputs. commit b9672a845f7ff7d2441e21746566eacc51f274b7 Author: Martin Mares Date: Sun Oct 31 15:43:44 1999 +0000 The CLI I/O functions work as desired. commit 7d3aab1c1643e8b2bcff7f856e0d4455fa0ba4b4 Author: Martin Mares Date: Fri Oct 29 12:10:10 1999 +0000 First steps of the Command Line Interface: I/O routines. commit b93abffae4ad5767625b35c9a09513e9d27a5256 Author: Martin Mares Date: Fri Oct 29 12:09:29 1999 +0000 Implemented unix-domain sockets. commit 0d70292d88276a9883ab8bc15b00e6a2e2fe4487 Author: Martin Mares Date: Fri Oct 29 12:08:49 1999 +0000 Events now return a value. If it's non-zero, the event is re-queued for processing in next event cycle. This can be used to prevent background actions (hint: user commands) from hogging the CPU for too long time. commit 92af6f309b9283482384bd9bbd0351cd71e3cf1d Author: Martin Mares Date: Fri Oct 29 10:08:27 1999 +0000 Simplify handling of free chunks. commit 54165b1315dd09b0ea97705367b73086131c1ed8 Author: Martin Mares Date: Fri Oct 29 10:08:09 1999 +0000 Configure PATH_CONTROL_SOCKET. autoconf.h is now written to obj/sysdep, the source tree is hopefully completely read-only now. commit ed6081502ad814289b9b7b5537658c3b1ad435e5 Author: Martin Mares Date: Fri Oct 29 09:44:44 1999 +0000 Added skeleton of the client. Does nothing, but at least compiles. commit 41be4444f2f548c5cc135593b2c820180a22ff99 Author: Pavel Machek Date: Thu Oct 28 21:03:36 1999 +0000 switch() { } done right. commit c2250f91c749f563229ad624bbd03053c1d671d0 Author: Ondrej Filip Date: Tue Oct 19 16:13:06 1999 +0000 Minor changes and bug fixes. Preparing for Exchange and higher states. commit 96f1b8ba10f7787fc7cf0e0430a85766200707a5 Author: Ondrej Filip Date: Mon Oct 18 21:48:51 1999 +0000 Huge changes. Neighbor and interface state machines rewritten. It should be cleaner now, I'm preparing for file splitting. Maybe I added some minor bugs. :-( commit f942a589ef627f5b2604955cbfdbe91fa706f29d Author: Pavel Machek Date: Tue Oct 12 13:04:50 1999 +0000 FIXME's for rip added. Will we ever able to generate packets saying "route 1.2.3.4 using someone else"? commit 89dc383a8ce26bfe49250e5063bcadec22ff42c6 Author: Martin Mares Date: Tue Oct 12 07:46:08 1999 +0000 Changed syntax of ip_class_mask, the old one was stupid. commit d3dd620b96c5960207b9321b416423b8130a4df7 Author: Pavel Machek Date: Tue Oct 12 06:27:42 1999 +0000 Filters: permit variables of prefix types, cleanup around variables. TODO list added, hopefully complete. Use new features of filters in bird.conf commit c79ec2ec1962394f1550afa10a8b396f0e4dfc52 Author: Pavel Machek Date: Mon Oct 11 14:19:29 1999 +0000 Untested IPv6 support added. I do not know if it compiles in IPV6 mode. commit 720d911d777f64872df923e102ebc509113885f0 Author: Pavel Machek Date: Thu Oct 7 14:10:08 1999 +0000 Added constants of type prefix and pair, added their printing commit 4872cef4dfcadab405d0393a21f9136852d7b9c4 Author: Pavel Machek Date: Thu Oct 7 14:09:50 1999 +0000 Added examples of pairs and prefixes commit c9f8c1a855cfdde2095cd792289dbce2b7a06371 Author: Pavel Machek Date: Thu Oct 7 13:38:26 1999 +0000 FIXME's added. Hopefully fixme list is now complete for filters. commit f782b72c538b5728f6c3f531a25f669f0bf99b2c Author: Martin Mares Date: Sat Oct 2 11:06:44 1999 +0000 Failure to set socket TOS is not a fatal error. commit 507cb9e58b947ad8c6ad1c73706a08010d90f4cc Author: Martin Mares Date: Sat Oct 2 10:55:19 1999 +0000 Don't forget to free large blocks. commit ac40c888c21c72ae7f6c3d329dd2ba5417eec009 Author: Pavel Machek Date: Sat Oct 2 10:44:48 1999 +0000 Obvious bugs in authentication fixed. commit 7db7b7db603a2d852066c313da76c72673a204fa Author: Pavel Machek Date: Wed Sep 29 14:24:58 1999 +0000 Case arg { 1: printf "one"; } works. You can not use two commands after one label, yet. commit 4caa2231fc75ed351b9a9f20a97a81ce5d4421d0 Author: Pavel Machek Date: Wed Sep 29 14:23:11 1999 +0000 Make configuration use new case statement. commit 2c1d1cc765238aef0e8bfdbc1d8bc954fa0fc222 Author: Ondrej Filip Date: Wed Aug 25 18:44:50 1999 +0000 DD packet receiving in ExStart. commit 1af664158d20e9887ca11b63fc062a63f333297a Author: Ondrej Filip Date: Tue Aug 24 18:32:26 1999 +0000 A structure for receiving DD seq packets added. commit e3121112ab8cda4b4e413a801e5626f9ffb02ca8 Author: Ondrej Filip Date: Tue Aug 24 14:42:51 1999 +0000 Preparing to send DD packets. commit 2981814066543b72e292b7b36ca41bfa1cc2554c Author: Pavel Machek Date: Fri Aug 20 09:59:39 1999 +0000 Few FIXME's removed from auth, few FIXME's added to filter. commit bce8a34b128f1c0495f3f7a28d832d9c2b4a9543 Author: Pavel Machek Date: Wed Aug 18 13:19:33 1999 +0000 Few fixme's fixed in rip (will not crash any more on request for sending routing table - hopefully). Next few steps in md5 authentication (not yet complete). commit f651941402079052fbdabf64092e7dd4a6a8cafe Author: Martin Mares Date: Tue Aug 17 20:47:40 1999 +0000 Added a function for generating 32-bit random numbers. commit b332fcdfc8f0b1ac7111a63c55f72ba4b00b8035 Author: Ondrej Filip Date: Mon Aug 16 10:32:05 1999 +0000 Better dumping. commit 032df28048c1c3d64716d3876ea759660d9d3cf0 Author: Ondrej Filip Date: Tue Aug 10 12:06:45 1999 +0000 Small bux fixes. A neigh_chstate added. commit a7d388d23e26bdc94aefc3788b6be6c278f6dc5b Author: Ondrej Filip Date: Mon Aug 9 18:59:37 1999 +0000 Multiple "hton problems" fixed. Now we're in EXSTART state. commit 2be22ddb4cf4c7a88a0c424f0de7c968e5c326a1 Author: Ondrej Filip Date: Mon Aug 9 18:49:50 1999 +0000 "My own IP problem" fixed. commit a4c2ee717cf42bb53688c18840bd7294b6bf61dd Author: Ondrej Filip Date: Mon Aug 9 18:34:08 1999 +0000 Bug fix in checksum calculation. commit b1693b8f749ccc683a2a78dc3129e56e500bc73f Author: Ondrej Filip Date: Mon Aug 9 18:11:51 1999 +0000 Bug in election fixed. commit e83dc0d7e78fd31b435b36424beb790bf55881a8 Author: Ondrej Filip Date: Mon Aug 9 17:58:01 1999 +0000 (Backup) Designated Router election added. commit 8c51f96acff1cfb05d1cf05f4355fce655c32599 Author: Ondrej Filip Date: Mon Aug 9 13:03:28 1999 +0000 Some interface state machine changes. I found some problem in RFC, trying to conntact authors. commit 55e06729b173b24ce0c243db7e96094f10071eaf Author: Martin Mares Date: Tue Aug 3 19:57:43 1999 +0000 Forgot to do a `cvs add', grr. commit d7975d261f8a30efcdbd9fad6ba47419a6ac6c39 Author: Martin Mares Date: Tue Aug 3 19:38:48 1999 +0000 Ouch, how could I write this? commit 4532a89e31734a457d4debe56df713d66e31cdd6 Author: Martin Mares Date: Tue Aug 3 19:37:37 1999 +0000 Taught Netlink how to behave in IPv6 world. commit 4f22c9818554087d8f5ab51b8666a7a48d1f4329 Author: Martin Mares Date: Tue Aug 3 19:36:51 1999 +0000 Support for IPv6 sockets. How nice one doesn't have to ifdef around ten years of API evolution :-) commit dce267832a0468ed5e596f0b0733b926af7ead3a Author: Martin Mares Date: Tue Aug 3 19:36:06 1999 +0000 Basic support for IPv6. The system-dependent part doesn't work yet, but the core routines are there and seem to be working. o lib/ipv6.[ch] written o Lexical analyser recognizes IPv6 addresses and when in IPv6 mode, treats pure IPv4 addresses as router IDs. o Router ID must be configured manually on IPv6 systems. o Added SCOPE_ORGANIZATION for org-scoped IPv6 multicasts. o Fixed few places where ipa_(hton|ntoh) was called as a function returning converted address. commit 707ef833783ef731c56baae1c0dc7b7a9e7321ff Author: Martin Mares Date: Tue Aug 3 19:35:01 1999 +0000 Pruned the TODO list. commit 9c11ec9efca2fc75495cf8dcb28a959ba22b01fa Author: Martin Mares Date: Tue Aug 3 19:34:26 1999 +0000 Implemented a Table-to-Table protocol a.k.a The Pipe. commit 8c943173ced1fb85c627a8ba1c3d7360eab7d22b Author: Martin Mares Date: Tue Aug 3 19:33:45 1999 +0000 Allow announces of rte's to protocols in FS_FEEDING state. Else, we would get chicken-egg problems in the table-to-table protocol. commit 7de45ba4a01bfdc986a4b597c04ad39d9b97a58a Author: Martin Mares Date: Tue Aug 3 19:33:22 1999 +0000 Kernel route syncer supports multiple tables. The changes are just too extensive for lazy me to list them there, but see the comment at the top of sysdep/unix/krt.c. The code got a bit more ifdeffy than I'd like, though. Also fixed a bunch of FIXME's and added a couple of others. :) commit 9d8856897f92ad74be140adafaac41f9df6edf31 Author: Martin Mares Date: Tue Aug 3 19:31:54 1999 +0000 Protocol engine bug fixes: o Make proto_config->table always point to the right table even if it should be the default one. o When shutting down, kill protocol in reverse order of their priority. o When stopping a protocol down, disconnect it from routing tables immediately instead of waiting for the delayed protocol flush event. Also added a protocol instance counter (used by KRT code in very magic ways). commit b6628a8c98fa53c1b293221ad0f7e0611cb0b76d Author: Martin Mares Date: Tue Aug 3 19:31:30 1999 +0000 Added macros for walking lists backwards. commit 9a706f32afe703a44e605e92cc50cc77d4e91088 Author: Martin Mares Date: Tue Aug 3 19:31:11 1999 +0000 Added missing structure declarations. commit 8edf2361f9c4bd745a1249db3f66dfc079dd2ca1 Author: Martin Mares Date: Tue Aug 3 19:30:49 1999 +0000 Cleaned up handling of interface patterns: o Parsing of interface patterns moved to generic code, introduced this_ipatt which works similarly to this_iface. o Interface patterns now support selection by both interface names and primary IP addresses. o Proto `direct' updated. o RIP updated as well, it also seems the memory corruption bug there is gone. commit 9273035403ace754e5b405b2c5efba7d55c28e78 Author: Martin Mares Date: Tue Aug 3 19:30:20 1999 +0000 Changes to interface handling on traditional Unices: o Aliases are interpreted as secondary addresses. o When the system doesn't supply interface indices, generate our ones. commit 5e13ffe6f4e229974238bb2ea96ea2ce8282b7ed Author: Martin Mares Date: Tue Aug 3 19:29:57 1999 +0000 Faster checksum function. commit 913f7dc9f2dca8bebf8daebcce006b96f55ae6db Author: Martin Mares Date: Tue Aug 3 19:29:27 1999 +0000 Added functions for parsing and formatting of dates. commit 6542ece91a783e999f61cc51cbe18c8b4c96a36c Author: Pavel Machek Date: Thu Jul 1 09:11:21 1999 +0000 Function calling in filters works - somehow. Calling syntax is currently very ugly, beware. Variables are not really local - that needs to be fixed. commit 39369d6fbe4b3f73c8110b14623f367c8ffded50 Author: Ondrej Filip Date: Wed Jun 2 16:31:13 1999 +0000 Fixed stupid bug with hello vs inactim timers. commit bae0f7dbb111e2c8fbb8a94b59de6e241020ad66 Author: Ondrej Filip Date: Tue Jun 1 17:29:56 1999 +0000 Neigbor deleting done. (I have some problems with timers, so it does not send hello.) commit cd70d93470498c0b68a084be5aeab5dd45a0df60 Author: Ondrej Filip Date: Tue Jun 1 16:35:18 1999 +0000 Detecting of new neighbor added. It starts inactivity timer. commit bd7f1081f24aa6ca4cdba004478742b730644a91 Author: Martin Mares Date: Tue Jun 1 15:31:43 1999 +0000 Grrr, the "obvious fix" to multicasting code from yesterday was fundamentally wrong. Reversed. commit 3e1f30610e109b3eff7e3d8b420c4b7988bd3152 Author: Martin Mares Date: Tue Jun 1 13:57:24 1999 +0000 Defined IP_PREC_INTERNET_CONTROL and made all (well, both :)) protocols use it when creating sockets. commit 9de840bdbd59669a129f68f1ff3595b34439ec09 Author: Pavel Machek Date: Mon May 31 20:34:48 1999 +0000 Set corectly destination address for RIP multicast. Broadcasting & multicasting rip actually works [broadcasting is kind of hard to turn it on, through]. commit b94bbe00278b0c6e84f34875367d85d34d08621b Author: Pavel Machek Date: Mon May 31 20:30:16 1999 +0000 Added FIXME: mode broadcast randombly corrupts memory. Small cleaning and bugfixes. commit c7208da0b72dc7e4ff512edbecc62a99b0392c5a Author: Martin Mares Date: Mon May 31 20:28:46 1999 +0000 Fix potential multicasting bug. commit 9607536dbf7c50f9c2fc7a670eab51e5c313d10f Author: Pavel Machek Date: Mon May 31 19:43:08 1999 +0000 Kill duplicity between rif and rif_patt. commit 72efa4b6f82222f91b63b9f61bbc88e458096ea7 Author: Pavel Machek Date: Mon May 31 19:37:16 1999 +0000 Small fixes to rip. commit bf97bd28276af42aa59ea29b926b4848ae14e149 Author: Pavel Machek Date: Mon May 31 19:22:40 1999 +0000 Cleanup of warnings commit 91c7c7416b4a18ac2b9e872c2a1a6391cf8b3dc8 Author: Pavel Machek Date: Mon May 31 19:16:22 1999 +0000 Incoming side of authentication done but untested. Right handling of filters in rip. commit 2e6197d634a14533899915477032f082e675e35f Author: Pavel Machek Date: Mon May 31 19:15:52 1999 +0000 Added password_strncpy() which pads destination with zeros. commit 9c9e49ac392dfdbff97be579842028a4eb1d0dec Author: Pavel Machek Date: Mon May 31 19:15:32 1999 +0000 Added extended attributes for rip. commit c72b09c8508d71b9a0a998c2dabe475d54b4d014 Author: Ondrej Filip Date: Mon May 31 19:07:31 1999 +0000 IP socket priority (sock->tos) added. Constant taken from tcpdump of CISCO and gated. commit 35ff423d54ebabffc5ab9dd757dfa2a1a70e9676 Author: Ondrej Filip Date: Mon May 31 18:56:20 1999 +0000 Some RX_Hello checks added. commit bb027be1e232ca2207a03a8e001441965cc07801 Author: Martin Mares Date: Mon May 31 18:55:35 1999 +0000 Added extra argument to rt_update hook which contains a pointer to the temporary attribute list. commit 75b84c34e3434209517f2ebc8160f39d33e3735e Author: Ondrej Filip Date: Mon May 31 18:24:54 1999 +0000 Sending and receving of hello pkts works. No I will start building neighbor database. commit 4a4911a36a865525f5de86ea8b575164ea9a855a Author: Martin Mares Date: Mon May 31 17:39:44 1999 +0000 Added missing quotes. commit 10915c9650d4b63b12140effc68718e2aecd01d3 Author: Pavel Machek Date: Mon May 31 17:12:38 1999 +0000 Modified rip to new password handling in nest. Now it at least compiles. commit 900d5470ae2cada4d37ed62f8bf2ce64c84349cd Author: Pavel Machek Date: Mon May 31 17:12:00 1999 +0000 Added PASSIVE option to paswwords. commit 139ca21d05df71b59a72af126d063170421cf9f7 Author: Martin Mares Date: Mon May 31 13:21:07 1999 +0000 Added sk_send_buffer_empty(). commit fd5f8704bb7c2e9845a7c4785ace83a2b77d2c57 Author: Pavel Machek Date: Wed May 26 14:37:47 1999 +0000 Make rip use newly defined password lists. commit 858a717796d7aa48fe9b22a6b035fec9edbb5a2a Author: Pavel Machek Date: Wed May 26 14:37:07 1999 +0000 Change format of passwords (less ;'s) and fix password.h to allow multiple inclusions. commit 7eb01479c92cd2f615993f2112aa5986f3e2b0ad Author: Pavel Machek Date: Wed May 26 14:36:34 1999 +0000 Example of password list usage. commit 1a2ded450ecfbb8ccb7f459d7265fc5333d13420 Author: Pavel Machek Date: Wed May 26 14:24:57 1999 +0000 Skeleton for password handling, currently I only build structures and do nothing more advanced for them commit 9d79fec8dc7c5a3b7e590c00df7eadcef9e80144 Author: Pavel Machek Date: Wed May 26 14:24:32 1999 +0000 Added notion of datetime commit 6bd08d017b5cb2608a81c0c7c9fe8fb5da73ba60 Author: Pavel Machek Date: Wed May 26 14:22:41 1999 +0000 Better date/time input methods need to be done commit 903a3f3928a5d7c223ff4c0087343cf214f8478d Author: Ondrej Filip Date: Mon May 24 21:49:22 1999 +0000 struct ospf_neigbor corrected. commit c76674f0e98d356ea235ea76fd55d71a3673b123 Author: Ondrej Filip Date: Mon May 24 21:17:16 1999 +0000 struct ospf_neigbor added. Neigbor state machine implementation can start. commit 65112dd270dbfa598c1f8a5074bf7224b9e1469c Author: Ondrej Filip Date: Mon May 24 18:22:00 1999 +0000 ifa->time split into wait_timer and hello_timer. I will send hello in WAITING state. commit daeb60393d011f8ee1326e212b310983276b6ba1 Author: Ondrej Filip Date: Mon May 24 17:37:45 1999 +0000 Small bug in ipv4_skip_header. commit b9f8590025fd5d6dd360f759c5a219d69b975123 Author: Ondrej Filip Date: Mon May 24 17:29:05 1999 +0000 IP header test added. commit 4b0d57e53120e404e00f7d252119e45288ceeb71 Author: Martin Mares Date: Fri May 21 14:29:44 1999 +0000 Added CONFIG_MULTIPLE_TABLES whereever appropriate. commit 1c3c9dceb385198199c6c0190f3011d106142b67 Author: Martin Mares Date: Fri May 21 14:29:23 1999 +0000 Removed one unused structure field. commit a70693ca9bc935513d1bfa9b3a49459d27927657 Author: Martin Mares Date: Fri May 21 14:28:44 1999 +0000 Don't forget to export CPPFLAGS to GCC. :) commit a07e9d82352d0060ff4f00aa8d0a2575cafc781a Author: Martin Mares Date: Fri May 21 14:09:06 1999 +0000 Added --with-sysinclude to allow explicitly setting where kernel includes reside, so that you can easily switch between 2.0 and 2.2 ones. Check existence of for linux-22 configs to make sure we're using the correct set of includes. commit 4f1a6d27b9a44f61329bc7b6779a0c645362e181 Author: Martin Mares Date: Mon May 17 20:16:53 1999 +0000 Kill remaining master_table relics in KRT code. Make all protocols pass routing table to rte_update and rte_discard. commit 0e02abfd5770062768eeb4c75061b7d2f656489d Author: Martin Mares Date: Mon May 17 20:14:52 1999 +0000 From now we support multiple tables. The master_table variable is definitely gone. Both rte_update() and rte_discard() have an additional argument telling which table should they modify. Also, rte_update() no longer walks the whole protocol list -- each table has a list of all protocols connected to this table and having the rt_notify hook set. Each protocol can also freely decide (by calling proto_add_announce_hook) to connect to any other table, but it will be probably used only by the table-to-table protocol. The default debugging dumps now include all routing tables and also all their connections. commit 4107df1d1b7454a16e6f45ea55aae13b01c9f566 Author: Martin Mares Date: Mon May 17 20:06:19 1999 +0000 Implemented two new symbol handling functions: o cf_define_symbol() -- it assigns a meaning to a symbol, bailing out if it already has one. o cf_find_symbol() -- finds symbol by name and creates it if not found. Also modified filter/config.Y to make use of the first function. commit b23c5e0ff4e9071b2568bf2f7d437bc13273d17d Author: Martin Mares Date: Fri May 14 18:03:09 1999 +0000 Added ip_skip_header() and modified OSPF to use it. commit 11ce4490fac7d0446802738f5fb8fd68c36bd30b Author: Ondrej Filip Date: Fri May 14 08:50:25 1999 +0000 *** empty log message *** commit 67ff91302f21f6a40201bcc8a01c9c76eaaf1ed1 Author: Ondrej Filip Date: Fri May 14 08:46:06 1999 +0000 Netmask checking for hello packets added. commit 7426ee3d49fab13428f198c78c8b7f3da131382e Author: Ondrej Filip Date: Thu May 13 09:18:36 1999 +0000 Checksum control added. commit 296ecb56eb4d1951d23d74d502d2c48a42eb6eee Author: Ondrej Filip Date: Tue May 11 15:34:33 1999 +0000 OSPF RX implementation starts.... commit 1b16029c12a501752388523ebfe2981e7d7d7ed3 Author: Pavel Machek Date: Tue May 11 09:53:45 1999 +0000 Mensi updaty do ripu. Pridana passwd autentikace (netestovano). commit f7103dfcfe174d39c8aa10eb100550e3ec213981 Author: Ondrej Filip Date: Tue May 11 09:50:02 1999 +0000 Better logging output. Added 'struct proto *' info 'struct ospf iface'. commit 1a54d44a23de7b0bf0dfe62dd3d09d8167e5a597 Author: Martin Mares Date: Mon May 10 21:37:39 1999 +0000 Added packet checksumming code. Watch the comments for an explanation. commit a2697f02ac5109e749bff4d07bee6cedd0ab650b Author: Martin Mares Date: Fri May 7 13:46:16 1999 +0000 Netlink support for secondary interface addresses. commit 9a158361da249e0eab1e0f7bd2c7dbe9f32eddfa Author: Martin Mares Date: Thu May 6 21:38:11 1999 +0000 I rewrote the interface handling code, so that it supports multiple addresses per interface (needed for example for IPv6 support). Visible changes: o struct iface now contains a list of all interface addresses (represented by struct ifa), iface->addr points to the primary address (if any). o Interface has IF_UP set iff it's up and it has a primary address. o IF_UP is now independent on IF_IGNORED (i.e., you need to test IF_IGNORED in the protocols; I've added this, but please check). o The if_notify_change hook has been simplified (only one interface pointer etc.). o Introduced a ifa_notify_change hook. (For now, only the Direct protocol does use it -- it's wise to just listen to device routes in all other protocols.) o Removed IF_CHANGE_FLAGS notifier flag (it was meaningless anyway). o Updated all the code except netlink (I'll look at it tomorrow) to match the new semantics (please look at your code to ensure I did it right). Things to fix: o Netlink. o Make krt-iface interpret "eth0:1"-type aliases as secondary addresses. commit ec8b579e9c9703601bf745745b620103fe2e2477 Author: Martin Mares Date: Tue Apr 27 16:03:17 1999 +0000 Recognize site scope for IPv4 addresses (prefixes reserved for private networks). Removed old #ifndef logic which was used to avoid IPv4/IPv6 clashes before conditionals in Modules lists were introduced. commit 59e2188cb7020e43e25c9d5bdcd011f341ddfc1d Author: Ondrej Filip Date: Tue Apr 27 13:04:33 1999 +0000 Just changes of comments. commit 6376a961332552e2bc178d647f1e5cfa01a1ac32 Author: Ondrej Filip Date: Tue Apr 27 12:56:52 1999 +0000 Hello timer implemented. commit 93bde8dce23ae10476263a84cc40bbe186263fdc Author: Ondrej Filip Date: Thu Apr 22 13:12:28 1999 +0000 Work on hello continues. commit 36bbfc704c7d2153537751e24413db9b9c97bc58 Author: Pavel Machek Date: Mon Apr 19 18:41:56 1999 +0000 Updated filters: they now actually see IP/pxlen of net being filtered, gateway, and who told us, so they can do usefull jobs from now on. commit afbc41ab3d4f07f7dc4dbc6c769fe7fa1567f357 Author: Pavel Machek Date: Wed Apr 14 21:11:24 1999 +0000 SImplify code a tiny bit. commit b11d8a4f59b3559779938b0a37914a7bc8c07a6b Author: Ondrej Filip Date: Wed Apr 14 15:13:44 1999 +0000 Redesigned struct ospf_iface & new struct ospf_sock. commit b31568a516142e905712bad498914fb6a82dc25b Author: Ondrej Filip Date: Wed Apr 14 12:47:18 1999 +0000 Small bug fix in memcpy. commit 4c5e5e3a1c438cb2e92535e3fabc458aa0d6deb3 Author: Martin Mares Date: Wed Apr 14 12:29:47 1999 +0000 Multicasts once again: When using SO_BINDTODEVICE, don't specify IP address of the interface. commit 1b50a1e4be2b54bd4ccadfaeaf558aea15255de4 Author: Martin Mares Date: Wed Apr 14 11:39:07 1999 +0000 Next attempt to get SO_BINDTODEVICE work :) commit 36154beb705cdaf03f9ee050798d9e653ded6ca5 Author: Martin Mares Date: Wed Apr 14 11:21:02 1999 +0000 Use SO_BINDTODEVICE if we're using old multicast API (i.e., struct ip_mreq and not ip_mreqn). This should get multicasts on unnumbered PtP links work. commit 9da4d143402efd16bec286e3723b42386b20968b Author: Martin Mares Date: Wed Apr 14 11:09:55 1999 +0000 A couple of OSPF fixes: o ((flags & IF_CHANGE_UP) == IF_CHANGE_UP) -> (flags & IF_CHANGE_UP) o bcopy -> memcpy (bcopy is unportable) o Ifdeffed out add_tail(&(ifa->sk_list),NODE mcsk) -- the node in socket structure is for internal use by the resource manager only. (Now, the debugging dump of open sockets looks sane :-)). commit 1ab4dee0288e4ad6c8fbefae3aa64ca873cf4500 Author: Martin Mares Date: Wed Apr 14 10:49:31 1999 +0000 Removed redeclaration of `idval', so that it compiles :) commit 4c630a6dd7e02cbbe1cca2c626feb86801ee4d03 Author: Ondrej Filip Date: Tue Apr 13 21:46:20 1999 +0000 Added wait timer for eligible BCAST & NBMA interface. commit 55e7732a5a5fe47752eafe6024ba473bd7959e45 Author: Ondrej Filip Date: Tue Apr 13 19:27:44 1999 +0000 Change in ospf_iface. (My bad understanding of lists manipulation.) commit aec76c6e8e5702144522f0061bc102d26e10b97c Author: Ondrej Filip Date: Tue Apr 13 18:21:53 1999 +0000 IPv6 changes. commit 43fc099b98594fb3ac6a56a90fd00f42fc98f742 Author: Pavel Machek Date: Tue Apr 13 11:40:04 1999 +0000 Sets of IP addresses should work, now. (From now on it is also possible to write if 1.2.3.4 < 1.2.3.5, but I'm not sure if it is good for anything.) commit 24eaae9e5d0b154ec47d9d4e13649fb066814ef1 Author: Ondrej Filip Date: Tue Apr 13 00:46:34 1999 +0000 Small change to stop using loopback. commit cb2e8c49706c14ea662df44cd3911c1f9db4b4a8 Author: Ondrej Filip Date: Tue Apr 13 00:24:05 1999 +0000 A small init change to avoid core dump. commit 5b1a92e6d4350bcecff4f78b9cfabfb98ca7ce2a Author: Ondrej Filip Date: Mon Apr 12 23:54:21 1999 +0000 Not all I mean serious. Almost everything will change. Changes: struct ospf_iface draft, various constants added... commit 2f5d154466e8d76f4054561a361bb45f157c29a6 Author: Martin Mares Date: Mon Apr 12 20:26:06 1999 +0000 Added ipa_compare as requested. commit 38506f71b0bea5580987e999a7b1a69f58aec7ec Author: Pavel Machek Date: Mon Apr 12 19:58:18 1999 +0000 Sets of integers now actually work. Sets of IP will work as soon as compare function is ready. commit 01bd7759b260b379089acf28cc47bd49572ebd22 Author: Martin Mares Date: Mon Apr 12 18:07:05 1999 +0000 Ignore alias interfaces (some day, we will treat them as pure secondary interface addresses). commit 08e2d6259a71c5e43ac0083ea6d81357678f99eb Author: Martin Mares Date: Mon Apr 12 18:01:07 1999 +0000 Removed TOS support. This simplifies many things a lot. commit 170c984a9ef1bde00711f405b03d24a2e151501c Author: Martin Mares Date: Mon Apr 12 17:27:21 1999 +0000 Cosmetic message fix. commit 113694892e9669a1ae3dd44274f27c862c6c293a Author: Martin Mares Date: Mon Apr 12 17:21:11 1999 +0000 Use $(CC) instead of gcc even when generating dependencies. commit 620c4f90c9437362bf17180e6dbbf14c4e480e40 Author: Martin Mares Date: Mon Apr 12 17:20:50 1999 +0000 Oops, a typo in previous struct ip_mreqn changes... commit 61fb537c6273c50deb7d33f8af246993eab4bc4d Author: Martin Mares Date: Mon Apr 12 15:27:56 1999 +0000 Use `struct ip_mreqn' instead of `struct ip_mreq' for multicast operations on 2.1/2.2 kernels. This allows passing of real interface indexes instead of referencing interfaces by their IP addresses which fails badly in presence of unnumbered interfaces. Unfortunately, this structure is not visible with glibc 2.0 as it provides its own networking headers :-( Both libc5 and glibc 2.1 should be OK. commit 5a99ade413b97a780758f5c8f927604ad6c8e57b Author: Martin Mares Date: Mon Apr 12 14:57:46 1999 +0000 Fixed a couple of bugs in handling of multicast sockets. See comments in lib/socket.h for a detailed guide on how to use them. commit bad631e04806287e99e2464c0fdc884f9efa1e71 Author: Pavel Machek Date: Mon Apr 12 12:07:15 1999 +0000 Oops, typo. commit 8ba2cc064b823274e8af043bf0676bfc252e810a Author: Pavel Machek Date: Mon Apr 12 12:01:59 1999 +0000 In case no startup function is defined, don't try to launch it. commit ed9a82369ffc660ec20d9b7fa64188a450267672 Author: Martin Mares Date: Sun Apr 11 19:28:16 1999 +0000 Added new target "tags" to generate a tag table for Emacs. Also made "depend" work before the tree is compiled first time. commit 2db3b2887ea93c9946956a9a5ce5a06f0ef783c3 Author: Pavel Machek Date: Sat Apr 10 09:45:08 1999 +0000 Decrease number of warnings. commit 49ed70b48e3b66c4dd71315e842733d69204698e Author: Martin Mares Date: Wed Apr 7 14:25:56 1999 +0000 Portability fixes. commit 23b1539bf90bfb6b35d9a2be0a2b6b1e311c1460 Author: Pavel Machek Date: Wed Apr 7 12:11:08 1999 +0000 Filters upgraded - a bit. Moved code to filter.c because it is where it belongs. (f-util.c stays there for auxiliary and non-important things.) commit 7976a574b692f747d833d899caf0fbbf702714c1 Author: Martin Mares Date: Tue Apr 6 21:31:03 1999 +0000 ip_pton: Avoid modification of the string we're converting. commit e2dc2f30efd65cf3da4db150fae695978388e247 Author: Martin Mares Date: Mon Apr 5 20:25:03 1999 +0000 Routing table core changes to support full route filtering: o Introduced rte_cow() which should be used for copying on write the rte's in filters. Each rte now carries a flag saying whether it's a real route (possessing table linkage and other insignia) or a local copy. This function can be expected to be fast since its fast-path is inlined. o Introduced rte_update_pool which is a linear memory pool used for all temporary data during rte_update. You should not reference it directly -- instead use a pool pointer passed to all related functions. o Split rte_update to three functions: rte_update The front end: handles all checking, inbound filtering and calls rte_recalculate() for the final version of the route. rte_recalculate Update the table according to already filtered route. rte_announce Announce routing table changes to all protocols, passing them through export filters and so on. The interface has _not_ changed -- still call rte_update() and it will do the rest for you automagically. o Use new filtering semantics to be explained in a separate mail. commit 9e0e485e50ea74c4f1c5cb65bdfe6ce819c2cee2 Author: Martin Mares Date: Mon Apr 5 20:17:59 1999 +0000 Added some new protocol hooks (look at the comments for better explanation): make_tmp_attrs Convert inline attributes to ea_list store_tmp_attrs Convert ea_list to inline attributes import_control Pre-import decisions commit 5056c559c4eb253a4eee10cf35b694faec5265eb Author: Martin Mares Date: Mon Apr 5 20:15:31 1999 +0000 Changed syntax of attaching filters to protocols to hopefully the final version: EXPORT for outbound routes (i.e., those announced by BIRD to the rest of the world). IMPORT for inbound routes (i.e., those imported by BIRD from the rest of the world). where is one of: ALL pass all routes NONE drop all routes FILTER use named filter FILTER { } use explicitly defined filter For all protocols, the default is IMPORT ALL, EXPORT NONE. This includes the kernel protocol, so that you need to add EXPORT ALL to get the previous configuration of kernel syncer (as usually, see doc/bird.conf.example for a bird.conf example :)). commit 63a381dbf5e37c2740982d07988cea983c699816 Author: Martin Mares Date: Mon Apr 5 20:10:31 1999 +0000 Several filter changes. (Pavel, please check if they are OK.) o Changed parameters of f_run. Changed rtein+rteout pair to rte pointer passed by reference, added ea_list of temporary attrs again passed by reference and finally added a pointer to memory pool for storing temporary data (new ea_lists's, temporary rta's etc.). o Re-ordered result codes, so that all accepts come before all rejects. o Introduced FILTER_ACCEPT and FILTER_REJECT dummy values (will be used in protocol configurations). o Added filter_name() which returns name of a filter or ACCEPT/REJECT for the dummies. commit d4ff748224fc18e460e74ab14d70d01fd50e4b92 Author: Martin Mares Date: Mon Apr 5 20:06:02 1999 +0000 Use a more reasonable pool chunk size: 4080 bytes seem to be a good approximation of a integral fraction of page size even if both malloc overhead and chunk header space is counted. commit c10421d3d4b5f23dc953c887332bdb6e80ae0540 Author: Martin Mares Date: Sat Apr 3 13:05:18 1999 +0000 More changes to the kernel syncer. o Now compatible with filtering. o Learning of kernel routes supported only on CONFIG_SELF_CONSCIOUS systems (on the others it's impossible to get it semantically correct). o Learning now stores all of its routes in a separate fib and selects the ones the kernel really uses for forwarding packets. o Better treatment of CONFIG_AUTO_ROUTES ports. o Lots of internal changes. commit 69ec9087ad3fb631f46275220909a876deadb6b5 Author: Martin Mares Date: Sat Apr 3 13:01:58 1999 +0000 Added new protocol hook for dumping of protocol-dependent route attributes. Please implement in all protocols. commit 73c7bed168890399981f70e1d0be35d8cde01fed Author: Martin Mares Date: Sat Apr 3 13:00:52 1999 +0000 Defined CONFIG_SELF_CONSCIOUS whenever the kernel scanner is able to distinguish between our own routes and alien ones. commit fe662dfd782619fd6505a1456b973b2525ab6ebf Author: Martin Mares Date: Fri Apr 2 13:38:54 1999 +0000 Fixed `too many interfaces' cases. commit 0498d92f955f011ceb70e1124f25ac567c359005 Author: Pavel Machek Date: Fri Apr 2 11:45:55 1999 +0000 Believe it or not, printf()'s does not work too much without this one. commit 8cda9cdbcf445ebe828b7bf89dcb4c7f83937756 Author: Martin Mares Date: Thu Apr 1 19:23:59 1999 +0000 Argh, the fix was wrong. commit e4241f24f2ebc796a9cfb03db2a9502f5ebd9c0c Author: Martin Mares Date: Thu Apr 1 15:35:15 1999 +0000 Portability fixes. commit abae6e9cd3f041648eaa85fad2f861515b67c1ce Author: Martin Mares Date: Thu Apr 1 15:33:52 1999 +0000 First few FreeBSD portability fixes. commit 6accdf4f437ef2a3251df917f2b83fe985e64961 Author: Martin Mares Date: Mon Mar 29 20:46:00 1999 +0000 Updated the TODO list. commit fb71b23e6004d18480dcfdfbc2e7da7bbc4eb400 Author: Martin Mares Date: Mon Mar 29 20:33:45 1999 +0000 Remember that we can run device syncer without kernel syncer and vice versa now. commit 78d5ec15043ab67fdf31feabe4a83129488625fe Author: Martin Mares Date: Mon Mar 29 20:28:25 1999 +0000 Please don't commit debugging code which makes BIRD exit before anything actually starts to happen. Grrr. commit e4912e3594c9211c8a147f1dcd4eeaf3b0095ed0 Author: Martin Mares Date: Mon Mar 29 20:26:32 1999 +0000 Prefer `gm4' over `m4' (due to BSD et al.). commit ba92164871f65bb9adcfa66b901d1a7b86697a86 Author: Pavel Machek Date: Mon Mar 29 20:21:28 1999 +0000 Update of filters towards new interface. commit 5bc512aa3a0d3e4ca378fff3316b75c131f17637 Author: Martin Mares Date: Mon Mar 29 20:14:33 1999 +0000 Clarify resource dumps and include them in the main debugging dump. commit 3f2a21fd348e49cf3ca98750b14e14dd04b3209b Author: Martin Mares Date: Mon Mar 29 20:14:00 1999 +0000 Don't try to delete interface routes on CONFIG_AUTO_ROUTES systems. commit 6c02d83f4d225abc03f99fb80299f1ba10ac174a Author: Martin Mares Date: Mon Mar 29 19:56:32 1999 +0000 Added FIXME: If a strange interface appears, ignore it instead of only writing an error message... commit f5c687f7911501ac1efd8163fade4862dc65456c Author: Martin Mares Date: Mon Mar 29 19:35:47 1999 +0000 Added lp_flush() which flushes contents of a linear pool, leaving all the memory available for subsequent allocations from the same pool. Both flushing and re-using the memory costs just few instructions. commit f54801ffedf3d6342b37c1560502bfc24e7fe64a Author: Martin Mares Date: Mon Mar 29 19:14:43 1999 +0000 Moved all system-dependent #include's containing endianity conversion functions to sysdep header endian.h. commit 6134024815adf2541293008f848dce4e8a21d061 Author: Martin Mares Date: Mon Mar 29 19:13:36 1999 +0000 #define NULL if not defined by system includes. commit 7f400d1c620e80461e61384c7d0b8893edb92695 Author: Martin Mares Date: Mon Mar 29 19:04:14 1999 +0000 After today's lengthy discussions about filter syntax, let's clean up whitespace/semicolon rules for whole config file: o All non-zero amounts of whitespace are equivalent to single space (aka `all the whitespace has been born equal' ;-)). o Comments count as whitespace. o Whitespace has no syntactic signifance (it can only separate lexical elements). o Consequence: line ends are no longer treated as `;'s. o Every declaration must be terminated by an explicit `;' unless or by a group enclosed in `{' and `}'. commit 1127ac6ec7eff52d4ccbc4d836a63fa6513f6d48 Author: Martin Mares Date: Sat Mar 27 22:51:05 1999 +0000 Cleaned up system configuration files -- removed few obsolete parameters, documented the remaining ones (sysdep/cf/README). Available configurations: o linux-20: Old Linux interface via /proc/net/route (selected by default on pre-2.1 kernels). o linux-21: Old Linux interface, but device routes handled by the kernel (selected by default for 2.1 and newer kernels). o linux-22: Linux with Netlink (I play with it a lot yet, so it isn't a default). o linux-ipv6: Prototype config for IPv6 on Linux. Not functional yet. commit 7dc4827c968053e45bcb7f145e9986eeb20c993b Author: Martin Mares Date: Fri Mar 26 21:50:43 1999 +0000 Added everything protocols need to know about multiple routing tables, i.e. struct proto now contains field 'table' pointing to routing table the protocol is attached to. Use this instead of &master_table. Modified all protocols except the kernel syncer to use this field. commit 7e5f5ffdda7232048c4baf3fdec358afb494a29d Author: Martin Mares Date: Fri Mar 26 21:44:38 1999 +0000 Moved to a much more systematic way of configuring kernel protocols. o Nothing is configured automatically. You _need_ to specify the kernel syncer in config file in order to get it started. o Syncing has been split to route syncer (protocol "Kernel") and interface syncer (protocol "Device"), device routes are generated by protocol "Direct" (now can exist in multiple instances, so that it will be possible to feed different device routes to different routing tables once multiple tables get supported). See doc/bird.conf.example for a living example of these shiny features. commit 739ebd8e82b090ed91b3ebe77509ecd6784eca9a Author: Martin Mares Date: Fri Mar 26 21:38:02 1999 +0000 Allow different instances of the same protocol with identical preferences. commit 4ba84ebc8285c3a5c556fc769101cc29cb3d3708 Author: Martin Mares Date: Fri Mar 26 21:37:29 1999 +0000 Slightly better generator of default protocol instance names. commit 241b7311ec5a091b7f3e1a1f2a776f3ef403c500 Author: Martin Mares Date: Fri Mar 26 21:35:28 1999 +0000 Don't compile OSPF by default. commit b5239f223874b87dd7c9de4d624cdf1230022111 Author: Martin Mares Date: Fri Mar 26 21:33:36 1999 +0000 Don't try to manipulate neighbor lists for copied interface structures. This avoids few nasty references to free memory. commit f79a749d0b9a5a7509db9ad6c547bbabc0457675 Author: Martin Mares Date: Wed Mar 24 09:23:34 1999 +0000 Removed our declaration of RTPROT_BIRD since Alexey has assigned us a real protocol number in 2.2.4 kernel. commit 421838ffef49338218dd85ff5efd1d5396ab7ccf Author: Martin Mares Date: Wed Mar 17 15:01:07 1999 +0000 rte_update: Check sanity of incoming entries. Throw out (and log) all routes to bogus prefixes and non-local routes to host scope addresses. commit 529c414953c24c326d9063a8f06fa652f0dfbc30 Author: Martin Mares Date: Wed Mar 17 14:31:26 1999 +0000 Allow input and output filters (only accept/reject style as we didn't define modifying filters yet) to be attached to protocol instances. commit e0f2e42f4f420f7bbdda3d4656c9dda585f1297a Author: Martin Mares Date: Wed Mar 17 14:29:39 1999 +0000 A couple of filter tweaks: o Introduced struct filter which serves as an external reference to filter. Using struct symbol for this is unwise since it doesn't allow extra information attached to the filter and it also forces all filters to be named. o Implemented config rule 'filter' which matches either named filter or an embedded unnamed filter (`{ }'). o Fixed totally bogus comment at the top of filter.h. o Added a missing prototype for f_run() to filter.h. commit c612a3be310069b9fbbcfef931bb546d536a716f Author: Martin Mares Date: Wed Mar 17 13:13:18 1999 +0000 Removed the `rta_same' hook since it's no longer needed (all protocols needing some local information should use extended attrs and cached rta's). commit b77ae37d11aa6e16dce31f50ca42ea30714a793e Author: Martin Mares Date: Wed Mar 17 13:09:09 1999 +0000 Implemented extended route attributes and all related functions. commit 9a38757c6ab87bf64ebc22b25b1410a3a09e6b10 Author: Pavel Machek Date: Wed Mar 17 13:05:25 1999 +0000 Initialize pointers to functions so that code is actually alive. commit 3c7ad64c57de77763357684fab919b2fc082a759 Author: Pavel Machek Date: Wed Mar 17 13:04:33 1999 +0000 Compilation fix for mj. commit 29df5739c455a954598c809c2e930abc41c8488e Author: Pavel Machek Date: Wed Mar 17 10:20:23 1999 +0000 Don't segfault on unknown interface. commit d36d838df5f726e1f6845fe0e6e5c188426ac00d Author: Pavel Machek Date: Wed Mar 17 10:19:07 1999 +0000 accept & reject should now work commit c1f8dc9149d3868e5a0f4e4ad97759fb3b177bec Author: Ondrej Filip Date: Tue Mar 9 22:27:43 1999 +0000 Yes, joining the crew. Sorry for being late. Added dummy functions for OSPF. commit 2575593e0fa9fb84a4cc481928c32519b3fea2cd Author: Pavel Machek Date: Tue Mar 9 14:45:27 1999 +0000 Resolved conflicts, you no longer need to wrap constants in const() commit 1aa5cf1c6171393d4be4447eada173d4e1eb983a Author: Pavel Machek Date: Tue Mar 9 14:44:43 1999 +0000 Added '=' to operator list commit b7005824453583d1459b49c5a424b50e2ea9a2c8 Author: Pavel Machek Date: Mon Mar 8 20:30:06 1999 +0000 Filters are now a tiny bit stronger (if is actually working ;-) commit 111213f0b66cff8f562f7d9117c9080a9882129e Author: Martin Mares Date: Thu Mar 4 19:00:31 1999 +0000 Fixed processing of !krt_capable() routes. Converted device route decisions to the krt_capable mechanism as well. commit e16155ae4aaee5d9ba7b6940f8312b36707718e4 Author: Martin Mares Date: Thu Mar 4 18:36:18 1999 +0000 KRT: Implemented asynchronous route / interface state notifications (via Netlink). Tweaked kernel synchronization rules a bit. Discovered locking bug in kernel Netlink :-) Future plans: Hunt all the bugs and solve all the FIXME's. commit 2253c9e239253d2094b4b1cabd97d296af885afb Author: Martin Mares Date: Thu Mar 4 14:23:32 1999 +0000 Although there are still heaps of FIXME's, Netlink works. To build BIRD with Netlink support, just configure it with ./configure --with-sysconfig=linux-21 After it will be tested well enough, I'll probably make it a default for 2.2 kernels (and rename it to linux-22 :)). commit f81dc8564ae6c17638d7e3970b9980d0d00fc78a Author: Martin Mares Date: Thu Mar 4 11:40:05 1999 +0000 Converted some mb_alloc/bzero pairs to mb_allocz. commit 8fe48f1377c8b501e9b090748b195c62f5b582d2 Author: Martin Mares Date: Thu Mar 4 11:39:24 1999 +0000 Initialize allocated struct proto :-) commit 7a2105becdbadf20c1b4e4d2359e339c90610825 Author: Martin Mares Date: Thu Mar 4 11:36:26 1999 +0000 Use dmalloc instead of EFence when available (dmalloc has lot of improvements over EFence and also hopefully smaller memory overhead, but sadly it's non-free for commercial use). If the DMALLOC_OPTIONS environment variable is not set, switch on `reasonable' checks by default. Also introduced mb_allocz() for cleared mb_alloc(). commit aa64578641c15b137172acc927d9d7af5914576b Author: Martin Mares Date: Wed Mar 3 20:57:29 1999 +0000 Netlink scans routes... commit 51ad41f2fc0c95179cb4ba65e568d2b84de32a28 Author: Martin Mares Date: Wed Mar 3 20:56:33 1999 +0000 EFence helped to find using of already free rte's in rt_prune(). commit 53b7a2982adf5d09a1cfddbc12cf172e0700fc55 Author: Martin Mares Date: Wed Mar 3 20:55:35 1999 +0000 Fix several things I broke today. commit 0e889c52542508dd49433bed1785072cb7799009 Author: Martin Mares Date: Wed Mar 3 20:40:51 1999 +0000 Added a hack forcing protocols with priority>0 to be started up immediately. Grrr, need to find a real solution some day. commit 2d14045224f2233aed386eddf155d10a81892c3f Author: Martin Mares Date: Wed Mar 3 19:49:56 1999 +0000 Rewrote the kernel syncer. The old layering was horrible. The new kernel syncer is cleanly split between generic UNIX module and OS dependent submodules: - krt.c (the generic part) - krt-iface (low-level functions for interface handling) - krt-scan (low-level functions for routing table scanning) - krt-set (low-level functions for setting of kernel routes) krt-set and krt-iface are common for all BSD-like Unices, krt-scan is heavily system dependent (most Unices require /dev/kmem parsing, Linux uses /proc), Netlink substitues all three modules. We expect each UNIX port supports kernel routing table scanning, kernel interface table scanning, kernel route manipulation and possibly also asynchronous event notifications (new route, interface state change; not implemented yet) and build the KRT protocol on the top of these primitive operations. commit b2280748ad5087b5dab54dd4e423053ffe1f2387 Author: Martin Mares Date: Wed Mar 3 19:33:54 1999 +0000 Introduced protocol priority (all 'normal' protocols should use the default zero priority). No more "kernel syncer initialized before device routes" problems. commit 84c7e1943f0dbf896b1dd8d02a21120aa00463f4 Author: Pavel Machek Date: Tue Mar 2 19:49:28 1999 +0000 Add interface for running filters (please comment!), avoid bison warnings commit 05a845ed8e623c51025058037d0ca25db712ae68 Author: Pavel Machek Date: Tue Mar 2 19:49:22 1999 +0000 Avoid segfault commit 7972248d5d7f404a65fd630b2af712703aca0746 Author: Martin Mares Date: Tue Mar 2 18:37:02 1999 +0000 Netlink module supports interface scan on startup. Working on more. commit e35ef181a41384446aca614522a7cbb10606dd5b Author: Martin Mares Date: Tue Mar 2 18:36:09 1999 +0000 o The if_change_too_big_p change was too high-spirited. Fixed. o Introduced if_find_by_index() o Recognizing two types of interface updates: full update (starting with if_start_update(), ending with if_end_update(), guaranteed to see all existing interfaces) and a partial update (only if_update(), usually due to asynchronous interface notifications). commit bcbd8cc3be670a96e1405b896cff4be0912ba379 Author: Martin Mares Date: Tue Mar 2 17:28:06 1999 +0000 Interface logic changes: o Introduced IF_LINK_UP flag corresponding to real link state. o Allowed addressless interfaces. o IF_UP is now automatically calculated and set iff the interface is administratively up, has link up and has an IP address assigned. It may be IF_IGNORED, though (as in case of the loopback). o Any changes which include up/down transition are considered small enough to not provoke artificial upping and downing of the interface. o When an interface disappears (i.e., it wasn't seen in the last scan), we announce this change only once. o IF_LOOPBACK implies IF_IGNORE. commit 25287d6f7e687c77704816e565529960c65e3250 Author: Martin Mares Date: Tue Mar 2 17:20:07 1999 +0000 Don't try to install static routes to disconnected neighbors. commit eab0d1e5e5e89d82e435d224f5faf1a16524c69c Author: Martin Mares Date: Tue Mar 2 16:39:41 1999 +0000 Latest changes broke out-of-tree compilation. commit 3d8ef0c9ef7878292ef314a0f5f34390d74f4e9f Author: Pavel Machek Date: Tue Mar 2 13:15:35 1999 +0000 I just don't like files enclosed in <>. commit e834074dd43cabd10ca9811191a212f86b8f6ed7 Author: Martin Mares Date: Mon Mar 1 22:42:47 1999 +0000 If we are compiling with debugging enabled and libefence is available, link it to get debugging malloc. commit b982b6db2bc9df396d4cd329e23c5b3199a409a2 Author: Martin Mares Date: Mon Mar 1 22:31:27 1999 +0000 Implemented netlink protocol parsing functions. More to come tomorrow. commit b4b3b39e20a669ab3f33f71474e937b5e9ce6d26 Author: Martin Mares Date: Mon Mar 1 22:30:33 1999 +0000 Added SK_MAGIC type sockets for internal use by system dependent code, especially for netlink communication. commit c748cdb9ec8b7de5daaf759825bc428cd0bcd400 Author: Pavel Machek Date: Mon Mar 1 21:18:01 1999 +0000 Hopefully ended translating to new interface commit bdb95a21a45bce1754bf54de3e7423cf8eebf9ee Author: Martin Mares Date: Mon Mar 1 20:17:46 1999 +0000 Added skeletal version of Linux netlink interface. It doesn't work yet, but the framework is there and I'll try finish it soon. commit ea3582a6f66223dfd2c0dd6c597dc40b48033fd5 Author: Martin Mares Date: Mon Mar 1 20:15:14 1999 +0000 Include "config.h" instead of "autoconf.h" in all Modules lists to make defines in the static portion of configuration includes available as well. commit 1b769b08c195f7d95525131f65e5794c3c09a335 Author: Martin Mares Date: Mon Mar 1 20:13:54 1999 +0000 Renamed struct rtattr to struct rta to make things more consistent and avoid namespace clashes with . Other files should not be affected since they use 'rta' directly. commit 025d14cd5a0909b534762e5a50bfef97c2b4c9ee Author: Martin Mares Date: Mon Mar 1 19:05:58 1999 +0000 Use traditional Unix route/iface interface only when CONFIG_NETLINK is not defined. Also moved declarations of Unix iface logic to krt.h. commit 12be9b8c1870ab8813d29350a2e2743f8e144642 Author: Martin Mares Date: Mon Mar 1 17:51:29 1999 +0000 Pruned the TODO list. commit 293e313ec91d4d23d6333e8cd852d425079cee68 Author: Pavel Machek Date: Mon Feb 15 13:34:43 1999 +0000 More rip fixes (config data moved to struct rip_proto_config), still not tested. commit b5fe3dc21c930e1d9864e342a75785efe862bd24 Author: Martin Mares Date: Sat Feb 13 22:13:04 1999 +0000 Cleaned up TODO file. That's all for today, midnight gets closer. commit 45090fecd97c97cceb677257c6e8c26044065d13 Author: Martin Mares Date: Sat Feb 13 22:02:21 1999 +0000 Synced example config with new options. commit d88e99a92ae688cc7f6534af4c2555fe6f6709f6 Author: Martin Mares Date: Sat Feb 13 21:59:48 1999 +0000 Implemented static device routes. Expect for reconfiguration issues, the static protocol is complete now. commit d1f7eab6b5f1bd86a47402cb8fdb5cbcedc8947f Author: Martin Mares Date: Sat Feb 13 21:58:53 1999 +0000 Parameter order for the proto->if_notify hook was different in the include file and different in reality. Decided to use the same order as we do for proto->rt_notify (i.e., first new value and second the old one). commit 726141746b7f86b02a902bd6b316792e4be0380c Author: Martin Mares Date: Sat Feb 13 21:34:33 1999 +0000 '#' comments in config files are equivalent to end of line, therefore also to implicit ';'. commit 5996da6a1d2eb11ac45d9d578618b9350e58593d Author: Martin Mares Date: Sat Feb 13 21:29:01 1999 +0000 Implemented garbage collection of routing tables to delete orphaned network nodes having no routes attached. Such cleanup must be done from event handler since most functions manipulating the routing tables expect network entries won't disappear from under their hands and it's also probably faster when done asynchronously. commit f4a0a64e02c13b2b467f9c1a29222f817b54ce2d Author: Martin Mares Date: Sat Feb 13 21:00:25 1999 +0000 Static protocol doesn't need any shutdown function. Everything gets disposed by the core: neighbors, rte's, etc's... commit 3fb4ca2ce2b5750d38a5e31023d2873c9942cc78 Author: Martin Mares Date: Sat Feb 13 20:57:47 1999 +0000 Don't send any neighbor notifications to protocols being flushed. commit 783f8b689a29aaffbe75e964fdd09a3c219ea81c Author: Martin Mares Date: Sat Feb 13 20:55:08 1999 +0000 When protocols go down, prune the neighbor list. commit 013a9b91fe495371cbf9a5690613de45b634e3af Author: Martin Mares Date: Sat Feb 13 20:46:03 1999 +0000 When shutting down, remove all routes (except for RTS_INHERIT and RTS_DEVICE routes) from kernel routing tables unless the "persist" switch is set. commit 0a2e9d9f5685fb4ca63e02fd3645194bb6de79d7 Author: Martin Mares Date: Sat Feb 13 20:19:24 1999 +0000 Moved sanity check of protocol state during annoucements to rte_announce. commit f4aabcee62890b7c3e999e188ab72752fbb20b79 Author: Martin Mares Date: Sat Feb 13 20:15:36 1999 +0000 Perform gracious shutdown upon receipt of SIGTERM. Finally we can test the whole protocol shutdown code... :) commit 7f3d1a0850ff7f240b2f240db6d44b3a5dee6d48 Author: Martin Mares Date: Sat Feb 13 19:57:19 1999 +0000 Squashed one bug in timing of route scans. commit 4c9dd1e4b95e273eacc900abb63db4b8bafaf34b Author: Martin Mares Date: Sat Feb 13 19:43:21 1999 +0000 Synchronize signals to the main select/event/timer loop. Parse command line options. commit 1a54b1c6ac5177a1ef21f799f6cf28f355c5bbe9 Author: Martin Mares Date: Sat Feb 13 19:15:28 1999 +0000 Implemented real cleanup and pruning of routing table on protocol shutdown. commit ab749558a2a4356c38ed760649ef7d62daa48223 Author: Martin Mares Date: Sat Feb 13 19:14:16 1999 +0000 Pass new argument to FIB_ITERATE_END. commit 2569bc40731081ac70ee328a7df37109399b53c6 Author: Martin Mares Date: Sat Feb 13 19:13:51 1999 +0000 Fixed bug in FIB_ITERATE_END: it assumed the control variable is named "z". I've added an argument specifying name of the variable. Renamed "again" label in FIB_ITERATE_* to "fis_again" to avoid name clashes. commit 4e9498cbb171d52e2f3015d3e9d6c7b1b7205e27 Author: Martin Mares Date: Sat Feb 13 18:42:00 1999 +0000 config->router_id works again. commit 67bd949a520151a5ab50090d02617adc4960868c Author: Martin Mares Date: Thu Feb 11 22:59:06 1999 +0000 Real implementation of protocol state machines. Delayed startup/shutdown should work now. Initial feeding of protocols by interfaces/routes is done from the event queue to prevent unwanted recursion. commit 14dea0ed25cd0385ce35cf66ff309a78960b18ca Author: Martin Mares Date: Thu Feb 11 22:51:15 1999 +0000 Run the event queue before writing SIGUSR dumps. commit 64011f898c1bc99183a57f21d6e099c8f4496a09 Author: Martin Mares Date: Thu Feb 11 22:45:54 1999 +0000 struct proto again contains instance name (a copy of proto->cf->name). commit 3b15402fd4055cb5bd66cd9ac1106ceecff9f760 Author: Martin Mares Date: Thu Feb 11 22:18:36 1999 +0000 Grrr, forgot to commit the event routines themselves :| commit e8f73195fa68b027fdcb89f239107c2d4902bd9a Author: Martin Mares Date: Thu Feb 11 21:18:26 1999 +0000 Added simple event scheduling system to avoid recursive calling of various callbacks. Events are just another resource type objects (thus automatically freed and unlinked when the protocol using them shuts down). Each event can be linked in at most one event list. For most purposes, just use the global event list handled by the following functions: ev_schedule Schedule event to be called at the next event scheduling point. If the event was already scheduled, it's just re-linked to the end of the list. ev_postpone Postpone an already scheduled event, so that it won't get called. Postponed events can be scheduled again by ev_schedule(). You can also create custom event lists to build your own synchronization primitives. Just use: ev_init_list to initialize an event list ev_enqueue to schedule event on specified event list ev_postpone works as well for custom lists ev_run_list to run all events on your custom list ev_run to run a specific event and dequeue it commit edf62ba13fa6a74447d7ad44b23acbee964731bc Author: Pavel Machek Date: Mon Feb 8 22:50:32 1999 +0000 Propagate depend into all subdirectories; make rip compile after latest mj's changes. commit ed245f967f76d29d6a4ce971ba4287ba6a7031f7 Author: Martin Mares Date: Fri Feb 5 21:39:21 1999 +0000 Synced Linux sysdeps to new interface. commit 10d807d000155a6257f6fbad88eb72a8bf9045da Author: Martin Mares Date: Fri Feb 5 21:38:50 1999 +0000 Synced kernel interface to new interface. commit e9e3dc265971fbf985c5df09cb1d98494c386581 Author: Martin Mares Date: Fri Feb 5 21:38:22 1999 +0000 Modified static router to use new interface. commit 31b3e1bbf5bc823ec5cf6d88931132f00e6c52b9 Author: Martin Mares Date: Fri Feb 5 21:37:34 1999 +0000 Implemented new configuration/reconfiguration interface and defined protocol state machines. Full explanation will follow soon. commit c4c63eecc37a744c53c23da89b1ba09b9640cb6e Author: Martin Mares Date: Fri Feb 5 21:29:19 1999 +0000 Added several parentheses to MIN/MAX macros. commit 292099d55f1131d75efec647d3780e7a1a665fdf Author: Pavel Machek Date: Wed Feb 3 12:28:16 1999 +0000 Few fixes in parsing of filters commit 294c182eb1dd02d0ae8658acb4a21db5d2977f3c Author: Martin Mares Date: Sat Jan 23 21:08:59 1999 +0000 Replaced the old ugly ipv6 compilation hack by a conditional in Modules. commit 2c2f67bd83c267c1dbee68c6ed7d67f9be77e566 Author: Martin Mares Date: Sat Jan 23 21:08:36 1999 +0000 Filter all `Modules' files through C preprocessor, so that they can reference BIRD configuration. By the way: Do you know GCC by default does `#define unix 1'? commit ca3d562b24d5a3e303ab00d276496fb38b7382ee Author: Pavel Machek Date: Fri Jan 15 18:13:55 1999 +0000 filters_init() renamed to filters_postconfig(). commit c9b6670608577521c883db4bccd75b871568b7f7 Author: Martin Mares Date: Fri Jan 15 18:04:28 1999 +0000 Original `expr' is back, filter expressions renamed to `term'. In the future, we'll allow any filter term in place of `expr' and we'll just evaluate it immediately, but not now as we have no evaluation routines. commit 3169cf699175a2489712eee955a9ee9890ef00c9 Author: Martin Mares Date: Fri Jan 15 17:18:41 1999 +0000 Added bird.conf to .cvsignore and created an example configuration file. If you want to run bird now, just copy doc/bird.conf.example as bird.conf and edit it to suit your needs. commit e3a39a9ee70bf7060f9de38268885b637bc1a65a Author: Martin Mares Date: Fri Jan 15 16:59:26 1999 +0000 Killed duplicate %type for expr. commit ca6dfded2c22c74298ff595e59afe4672151889b Author: Pavel Machek Date: Fri Jan 15 16:52:14 1999 +0000 Make filters actually compiled. commit b9d70dc84e488212328103438bdf4e369c7d27a1 Author: Pavel Machek Date: Fri Jan 15 16:49:17 1999 +0000 Filters, second try. This time they have their own directory. commit b79f9215b99c7a54dbb2639c972dda497d141133 Author: Martin Mares Date: Fri Jan 15 16:40:14 1999 +0000 Propagate "depend" target to real top-level Makefile. commit 489b6b5e003f4a8a7856688ab0372b2ca59c84d9 Author: Pavel Machek Date: Fri Jan 15 16:13:51 1999 +0000 #if 1 that creeped into cvs killed. commit eeb05158acd0cb8def7aa155c2c718f608e6a5ae Author: Pavel Machek Date: Fri Jan 15 14:42:55 1999 +0000 Be a tiny bit more verbose. commit 72380a3447d2c54730a4a32495e5dd964c34f57e Author: Pavel Machek Date: Fri Jan 15 14:41:51 1999 +0000 Filters added. They are unable to do anything interesting for now (with exception of printing integers to screen), but they exist. commit 41183888ee8addbd7887936e3b41974f5824d8ae Author: Pavel Machek Date: Fri Jan 15 14:40:50 1999 +0000 Properly initialize filters. Also bumped version to 0.0.0 as it actually does something. commit cceb3e7d2fafcf3acee1db1d762ed697863b6f3b Author: Martin Mares Date: Tue Jan 12 20:36:18 1999 +0000 Fixed trivial bug in naming of `depend' file. Argh. commit 663683a575cb170c656db06770b490037ecf3db7 Author: Pavel Machek Date: Tue Jan 12 16:50:38 1999 +0000 Make it compile again (stupid makefiles!), make quiet option work (multicast/broadcast options are currently unimplemented). commit 77cedad1f6de8fcd0e59f280d08437ab3216428e Author: Pavel Machek Date: Tue Jan 12 16:41:34 1999 +0000 Keep protocol data out of iface_patt. commit 50e89a6ea26caba59c7d4dd512fdc12c09cee64c Author: Pavel Machek Date: Tue Jan 12 16:40:55 1999 +0000 Patterns expanded in the right way commit 18fff6a1979725c1ed839d9a10285e22dc0b8214 Author: Martin Mares Date: Sun Jan 10 00:26:11 1999 +0000 Initialize only protocols which are compiled in :) commit b296730cb6b72ff84ba04fa58a6c7198f3a831e0 Author: Martin Mares Date: Sun Jan 10 00:25:50 1999 +0000 Few last-minute bug fixes. commit 49e7e5ee0b2848f5bf120a962e2e7eb11b86566a Author: Martin Mares Date: Sun Jan 10 00:18:32 1999 +0000 New makefiles. Includes support for out-of-source-tree builds. commit 2f9bcf9713523f6fefecd143cc2aa2a8dda7f27f Author: Martin Mares Date: Sat Jan 9 15:02:11 1999 +0000 First step of "autoconfization". Created a configure script which guesses most system-dependent parameters and determines name of system configuration file (sysdep/cf/...) with the remaining ones. To compile BIRD, you now need to do: autoconf # Create configure from configure.in ./configure # Run configure script make # Compile everything Configuration files: sysdep/config.h Master config file sysdep/autoconf.h Parameters determined by configure script sysdep/cf/*.h Fixed system configuration we're unable to guess. Makefiles are still the original ones, but this will change soon. commit 6996f459c6d8e6205bbacd83e3656b47635f7d6d Author: Pavel Machek Date: Tue Dec 22 19:41:04 1998 +0000 Bird now uses fib structure instead of linklist. commit 1d7c44b7119d30874563c9f8bbac25273ecabb57 Author: Pavel Machek Date: Tue Dec 22 19:20:43 1998 +0000 Oops, previous modification for passing NULL to fib_init() did not compile :-(. commit ce45fc128783ea7b93bd7ebd5ac4eec763adbb40 Author: Pavel Machek Date: Tue Dec 22 18:55:49 1998 +0000 Allow NULL to init_fib(). commit 852fc0af31ed885e355bb1d14ce0e4468830c359 Author: Martin Mares Date: Sun Dec 20 14:29:06 1998 +0000 log(), die() and bug() messages shound NOT contain trailing newlines. commit 08c69a7720af32a82b8e2b4b9ea3742074b3b8ee Author: Martin Mares Date: Sun Dec 20 14:27:37 1998 +0000 die() -> bug() where appropriate. commit ee969ea7f4c4f40020e4209b167da04d04aba52c Author: Martin Mares Date: Sun Dec 20 14:26:57 1998 +0000 Added #if 0 to rip_postconfig(), so that it doesn't crash whole daemon when RIP is unconfigured. die() -> bug() commit 98e87c8628f9b0a0a96bc46879b65a78b756a718 Author: Martin Mares Date: Sun Dec 20 14:24:35 1998 +0000 Finer grained logging levels: #define L_DEBUG "\001" /* Debugging messages */ #define L_INFO "\002" /* Informational messages */ #define L_WARN "\003" /* Warnings */ #define L_ERR "\004" /* Errors */ #define L_AUTH "\005" /* Authorization failed etc. */ #define L_FATAL "\006" /* Fatal errors */ #define L_TRACE "\002" /* Protocol tracing */ #define L_INFO "\003" /* Informational messages */ #define L_REMOTE "\004" /* Remote protocol errors */ #define L_WARN "\004" /* Local warnings */ #define L_ERR "\005" /* Local errors */ #define L_AUTH "\006" /* Authorization failed etc. */ #define L_FATAL "\007" /* Fatal errors */ #define L_BUG "\010" /* BIRD bugs */ Introduced bug() which is like die(), but with level L_BUG. Protocols should _never_ call die() as it should be used only during initialization and on irrecoverable catastrophic events like out of memory. Also introduced ASSERT() which behaves like normal assert(), but it calls bug() when assertion fails. When !defined(DEBUGGING), it gets ignored. commit e440395d7d3c503692321e2f6ec4e42bf758acb1 Author: Martin Mares Date: Sun Dec 20 14:01:37 1998 +0000 When printing a routing table, fib_check() it. commit 3ab001b97402bc01a4777cf1cb60ce940d50ffe3 Author: Martin Mares Date: Sun Dec 20 14:01:20 1998 +0000 Rewrote fib functions to make them insert/delete/asynchronous-walk safe. This is implemented in a way similar to lib/slists.h, but it took some more effort to make rehashing not disturb the readers. We do it by just taking _highest_ k bits of ipa_hash as our hash value and sorting each box by whole ipa_hash(). Consult FIB_ITERATE_* macros in nest/route.h. Implemented fib_check() debugging function and also rewrote the rehashing algorithm to use better thresholds and not to waste time by rehashing forth and back. commit a6f250f5c6d079badc4a1274b19a21a52de6acec Author: Martin Mares Date: Sun Dec 20 13:57:49 1998 +0000 New hash functions according to benchmarks posted yesterday. (The IPv6 version has not been benchmarked yet due to insufficient test data.) Now ipa_hash() returns a uniformely distributed 16-bit value. commit a05406e69c699c8b6f43bf58f47b8b0385113083 Author: Martin Mares Date: Sun Dec 20 13:56:27 1998 +0000 Implemented deletion/insertion/asynchronous-walk lists. For example of their use, look at comments in lib/slists.h. commit 29ad2c9ee11df80c780c4e3f0fd217783af1d727 Author: Martin Mares Date: Sat Dec 19 21:53:28 1998 +0000 Variance estimation fixed. commit 87b60bf7e8ad12b3efd3d6f37df0d029f50d2d91 Author: Martin Mares Date: Sat Dec 19 11:51:47 1998 +0000 Added several tools for fib hashing function analysis. It turned out we can use very simple function which is monotonic with respect to re-hashing: n ^= n >> 16; n ^= n << 10; h = (n >> (16 - o)) & ((1 << o) - 1); where o is table order. Statistical analysis for both backbone routing table and local OSPF routing tables gives values near theoretical optimum for uniform distribution (see ips.c for formulae). The trick is very simple: We always calculate a 16-bit hash value n and use o most significant bits (this gives us monotonity wrt. rehashing if we sort the chains by the value of n). The first shift/xor pair reduces the IP address to a 16-bit one, the second pair makes higher bits of the 16-bit value uniformly distributed even for tables containing lots of long prefixes (typical interior routing case with 24-bit or even longer prefixes). commit 02933ddbbec94f1bb01c0b9e5198fe272c1f5025 Author: Pavel Machek Date: Wed Dec 9 20:08:57 1998 +0000 debug() -> DBG() in rip. commit 06fa1453cdc419acd0c037ac82f49b4d8e77cfbd Author: Pavel Machek Date: Wed Dec 9 15:22:40 1998 +0000 Initial multicast support (can not work, but skeleton is there) commit 8e66a0ebb927f40c9fcb48bbf5f2d811d7b7c7f3 Author: Martin Mares Date: Tue Dec 8 18:37:58 1998 +0000 Hopefully finished kernel syncer (krt) rewrite: o Interface syncing is now a part of krt and it can have configurable parameters. Actually, the only one is scan rate now :) o Kernel routing table syncing is now synchronized with interface syncing (we need the most recent version of the interface list to prevent lots of routes to non-existent destinations from appearing). Instead of its own timer, we just check if it's route scan time after each iface list scan. o Syncing of device routes implemented. o CONFIG_AUTO_ROUTES should control syncing of automatic device routes. o Rewrote krt_remove_route() to really remove routes :) o Better diagnostics. o Fixed a couple of bugs. commit 980297d2899a5aec6609d1f7b44626e52e6e4417 Author: Martin Mares Date: Tue Dec 8 18:31:31 1998 +0000 Fixed a couple of bugs in static protocol. All static routes except device ones seem to work well. commit 618533af91051b7b26ac19816e89cd81352b0f13 Author: Martin Mares Date: Tue Dec 8 18:30:35 1998 +0000 Added source RTS_DUMMY for temporary routes. They should never appear in the main table. commit f39e4713c270752d7bbfcc8115a7ea7f589c3997 Author: Martin Mares Date: Tue Dec 8 16:20:13 1998 +0000 Rewritten kernel syncer. Now uses the rta trickery I've introduced yesterday and does things "the right way". Few things are still missing (device routes etc.), I'll add them later in the evening. commit 04925e9040330afc92f8001e6a19ae2146e36782 Author: Martin Mares Date: Mon Dec 7 21:59:15 1998 +0000 Minor rte/rta interface changes: o rte can now contain a pointer to both cached and uncached rta. Protocols which don't need their own attribute caching can now just fill-in a rta, link it to rte without any calls to attribute cache and call rte_update() which will replace rte->attrs by a cached copy. o In order to support this, one of previously pad bytes in struct rta now holds new attribute flags (RTAF_CACHED). If you call rte_update() with uncached rta, you _must_ clear these flags. In other cases rta_lookup() sets it appropriately. o Added rte_free() which is useful when you construct a rte and then the circumstances change and you decide not to use it for an update. (Needed for temporary rte's in kernel syncer...) commit cdc6bfa70f730c3741537cc21cdd0a5d13ed2af9 Author: Martin Mares Date: Mon Dec 7 10:16:15 1998 +0000 Comparison of kernel reject routes fixed. commit 12df4d909bdfa9e99dd0dd1b9fd690ce85b87dc5 Author: Martin Mares Date: Mon Dec 7 10:15:42 1998 +0000 KRF_* flags moved to krt.h as they are internal to kernel syncer, fib->pad0,pad1 renamed to x0,x1 and in case of struct net x0 is reserved for kernel syncing as well. commit f6bd206607d9fcad3572841813d7376bd2df4952 Author: Martin Mares Date: Sun Dec 6 23:13:31 1998 +0000 All static routes except for device ones should work and appear/disappear when their destination comes on/off link. Deserves better testing :) See example in bird.conf. commit 78d06cf2bc8ec8b9850802fc9d34afe4d1782c6c Author: Martin Mares Date: Sun Dec 6 23:11:47 1998 +0000 Removed protocol-specific data in rte for protocol static since no such data ever existed. commit 436965d25e840ef5f9614ed55181f5bf8c765d3b Author: Martin Mares Date: Sun Dec 6 23:11:18 1998 +0000 Aesthetic fix for neighbor cache debug dump. commit 89d2355d3d16ac51ad5861d91b17eaa65713f80b Author: Martin Mares Date: Sun Dec 6 23:10:45 1998 +0000 Added new rule for prefix length / netmask. commit cc12cf05c789ef85d72cf19e9b52f0c4982542f7 Author: Martin Mares Date: Sun Dec 6 23:10:28 1998 +0000 cf_error() now accepts any format strings instead of just an error message. Also added extra kludge to get rid of collisions of REJECT symbols. commit a1bf6440b5c27f7fb829eb25f6ac1c2629eb72eb Author: Martin Mares Date: Sun Dec 6 18:21:23 1998 +0000 Added skeleton of static route protocol. commit 980ffedbb04bf3beedf147fc7dfed40cdbf968aa Author: Martin Mares Date: Sun Dec 6 17:40:42 1998 +0000 Kernel syncer is now configurable. It will probably need some more options, but at least basic tuning is possible now. commit 0846203e896d8ab009217968e391b5e13ea3c4c6 Author: Martin Mares Date: Sun Dec 6 17:39:08 1998 +0000 Fixed bug in CF_ADDTO. How it's possible it has ever worked? commit 166b9c4912f1a52d7910c630280cf5a076eb1990 Author: Martin Mares Date: Sun Dec 6 17:38:42 1998 +0000 Added rule "bool" for boolean switches. commit b35d72ac668c52ef0755cedba89bdca54bd995ac Author: Martin Mares Date: Sun Dec 6 11:59:18 1998 +0000 Name cleanups as suggested by Pavel: - cfg_strcpy() -> cfg_strdup() - mempool -> linpool, mp_* -> lp_* [to avoid confusion with memblock, mb_*] Anyway, it might be better to stop ranting about names and do some *real* work. commit 2d9290e973b9cfc909057a0409152e020d1c29db Author: Pavel Machek Date: Fri Dec 4 11:45:51 1998 +0000 Rip now has configurable per-interface metric (please rewiev), and few more configurable parameters. To do that, union was added into iface_patt. commit 9b999c393c6f89a73d5fe0f4e152b77ca0afb1b2 Author: Pavel Machek Date: Tue Dec 1 16:17:10 1998 +0000 Infinity is now configurable ammount. commit 50d8424ad1f40f9979214c1d6cbf8e290ba9a5cb Author: Martin Mares Date: Sun Nov 29 22:03:58 1998 +0000 Added configuration of the device internal protocol. This is primarily intended to serve as an example of interface pattern list use. As a side effect, you can disable generating of device routes by disabling this protocol. commit 66efdf962a343c7cf5aef475f35f9e3864cb4fdd Author: Martin Mares Date: Sun Nov 29 22:01:33 1998 +0000 Handle disabled protocol instances. commit ed45f2e126680c7197be2058f9c162f1d5019eeb Author: Martin Mares Date: Sun Nov 29 22:01:03 1998 +0000 Added functions for manipulating interface name pattern lists: o iface_patt_match(list, iface) -- match interface against list o iface_patts_equal(a, b, c) -- compare whether two pattern lists are equal or not. c(x,y) is called for comparison of protocol-dependent data. commit 49e4a4d1fd64da045182f6ccd38753feb364f9c5 Author: Martin Mares Date: Sun Nov 29 21:59:37 1998 +0000 Created new functions for allocating configuration data: o cfg_alloc(size) -- generic memory allocation o cfg_allocu(size) -- unaligned memory allocation o cfg_allocz(size) -- zeroed memory allocation o cfg_strcpy(str) -- allocate a copy of a string Also fixed a bug in lexing of string literals. commit 5cd462f291b45a6a33168cdfbc4ba55ee068af65 Author: Martin Mares Date: Sun Nov 29 14:51:47 1998 +0000 `wc -l TODO` decreased. commit dee929d86844b1956b1c0f1d2c0289a787ab9226 Author: Martin Mares Date: Sun Nov 29 14:47:24 1998 +0000 Added function for shell-like pattern matching. Will be used for matching interface names in protocol-to-iface bindings. commit bd5d0d62f10c65d56e1900014be5989a3feb8380 Author: Martin Mares Date: Sun Nov 29 14:40:39 1998 +0000 Allow setting debug value and `disabled' flag in protocol definition. commit 0cf86f0fc34c7daf020a9189279644af89e273a1 Author: Martin Mares Date: Sun Nov 29 14:38:34 1998 +0000 Renamed `DEBUG' symbol to `DEBUGGING' to prevent collisions with token names and include files. commit 7af99789c78894fa2c7ffce3d7172d6a46c1c0e3 Author: Martin Mares Date: Fri Nov 27 21:34:03 1998 +0000 Oops, forgot to remove a debugging kludge. commit 0b62c3a7c7548cd447b4f18e0346cc9e74862ab3 Author: Martin Mares Date: Fri Nov 27 21:32:45 1998 +0000 Trivial 15-line bison excercise: Implemented expressions including user-defined numeric symbols. Whenever possible, use `expr' instead of `NUM' to get full express ion power :-) commit c74c0e3cdf008988a8873d3f76c0d71b29ab8673 Author: Martin Mares Date: Fri Nov 27 21:09:57 1998 +0000 First attempt at protocol configuration (now done only for RIP). commit 93fb60d54ca7ce3efec1cc0b39fb0840d055ccd1 Author: Martin Mares Date: Fri Nov 27 21:08:37 1998 +0000 Fixed few misspellings and exported instance init as rip_init_instance(). commit 8450be97d6ffb052fce95292d39c3f67afbcdc1c Author: Martin Mares Date: Fri Nov 27 21:07:02 1998 +0000 Added generator of default names. commit 906b0170a41cc0d8ea11c7bae0a9fea3d18fe6d1 Author: Martin Mares Date: Fri Nov 27 19:39:16 1998 +0000 Experimental config file. commit b4712244a0fb49b32dc58d28523f122d8ed2cae8 Author: Martin Mares Date: Fri Nov 27 19:38:30 1998 +0000 Dummy grammar for RIP configuration. Now empty, but must be here since it's referenced in the makefiles. commit da87782278cdb38a90f5236fbbc4928c9ca2ee15 Author: Martin Mares Date: Fri Nov 27 19:37:57 1998 +0000 Parser fragment for the core. Now handles only router ID setting. commit 70591fa06481e7935dcf66ec79812c470c71f4c8 Author: Martin Mares Date: Fri Nov 27 19:37:07 1998 +0000 Compile and use the new configuration code by default. commit f142750d3420d482d7e9344c71777fdd37754114 Author: Martin Mares Date: Fri Nov 27 19:36:06 1998 +0000 Base of the parser. commit 82fc7be7bbb9af40d0abf8477f7af25e1423da1a Author: Martin Mares Date: Fri Nov 27 19:35:50 1998 +0000 Lexical analyser. commit fe7cec12e8589b7d6af6033cb80804fbcbe7c0b8 Author: Martin Mares Date: Fri Nov 27 19:35:10 1998 +0000 Replaced nest/confile.h by conf/conf.h, added a lot of new definitions. commit ce6ca80926c0ce87c9a08ea4f4236b1a95846086 Author: Martin Mares Date: Fri Nov 27 19:33:53 1998 +0000 This script takes configuration fragments and generates full Bison grammar from them. commit 882c588a4060739a4820941cd1c6014bd10ab0db Author: Martin Mares Date: Fri Nov 27 19:33:26 1998 +0000 This script takes configuration fragments and extracts keyword list from them. commit d2ed2579fa365fa36b7882ef847b9e640290c05e Author: Martin Mares Date: Fri Nov 27 19:31:41 1998 +0000 Now merges configuration fragments (*.Y) as well. commit dfeef5d8bb9fe19cb44d4121fd8324179a38b7a0 Author: Martin Mares Date: Fri Nov 27 19:29:27 1998 +0000 Implemented ip_pton() commit a3afae585af9a544f919a95509107aae33fbe53c Author: Martin Mares Date: Fri Nov 27 19:29:00 1998 +0000 Removed prototype of rp_free() since this function has never existed. commit 3cef8c706ccfbc17d8af6aed7820c9231d908214 Author: Martin Mares Date: Fri Nov 27 19:28:29 1998 +0000 Added path to config file. commit 4254dc45e77b4c2d45178c7a5ce1e9bff19b8bf7 Author: Martin Mares Date: Sat Nov 21 10:25:34 1998 +0000 Killed bug in processing of 'h' prefix. Patch taken from linux-2.1.129. commit 9158ca99f740d5b1b50d233e0f64e61504dc6fdf Author: Martin Mares Date: Mon Nov 16 21:41:21 1998 +0000 Complain loudly if the logging buffer would overflow. commit 53a416d376a16b2091dce898a16600b0cd27c348 Author: Martin Mares Date: Mon Nov 16 21:40:35 1998 +0000 Implemented snprintf and similar functions. It took a lot of thinking, but the modifications were relatively simple and straightforward. commit c3e9b2ab2448bce4a6fe6a5be9c8de8beecc8e17 Author: Pavel Machek Date: Mon Oct 26 15:35:19 1998 +0000 RIP now includes notion of interface, and is correctly talking to itself on second host. Split horizont is broken. commit dafd580ed94f38c95a84d8d00d3a57c7c194d6db Author: Martin Mares Date: Mon Oct 26 15:24:32 1998 +0000 Previous fix was wrong. commit db6984c43c47bfb549394f6571f024df301b19ee Author: Martin Mares Date: Mon Oct 26 15:01:04 1998 +0000 rte_update: Doesn't loop forever when multiple routes point to the same destination. commit dc7c7494e372febc44ae7d1f4ed618a6fe8bf45e Author: Pavel Machek Date: Tue Oct 20 16:45:53 1998 +0000 RIP _NOW_ actually talks to itself (workaround core bug: send data from other port than we receive at), few FIXME's added. commit 756b86dea31f2b94b1fbc1d95098f1a177b2817e Author: Martin Mares Date: Tue Oct 20 16:39:04 1998 +0000 Learn static device routes from the kernel (temporary until we can make such things configurable). commit feb6abe009aa13b3cd0ce22e6333163fb7561c16 Author: Pavel Machek Date: Tue Oct 20 16:12:43 1998 +0000 RIP now actually talks to itself. commit 8ca8683c705c76dc155521204ef098e6fe547696 Author: Martin Mares Date: Tue Oct 20 15:47:02 1998 +0000 Beware the NULL route, my son... The bugs that bite, the BIRDs that crash :-) commit acc62f5e1d4a100ec0be5c73e928a041aa9a4f9d Author: Martin Mares Date: Tue Oct 20 15:17:38 1998 +0000 Insert/remove hooks return void, not int. commit a0762910a62085d875b5bf5e1494c4fdde6f603f Author: Martin Mares Date: Tue Oct 20 15:13:18 1998 +0000 Added pointer to network to RTE. The complications with passing NET separately aren't worth 4 bytes per RTE. rte_discard and rte_dump don't need net * as parameter. commit b6903c948b2325f11cfb07f2df0590708920b987 Author: Martin Mares Date: Mon Oct 19 18:18:12 1998 +0000 Updated TODO. commit 7d8329078066b5682a0330b20dbdf74c7a01cbac Author: Martin Mares Date: Mon Oct 19 18:13:36 1998 +0000 Generate router_id automatically if possible (standard "smallest of local regular interface addresses" rule). Protocols should NOT rely on router_id existence -- when router ID is not available, the router_id variable is set to zero and protocols requiring valid router ID should just refuse to start, reporting such error to the log. commit 08045252553478457f923a9f941675df9992f507 Author: Martin Mares Date: Mon Oct 19 17:52:29 1998 +0000 Basic kernel routing table syncing implemented. Learning of routes installed by other programs or the kernel itself is not supported yet, but it's not needed for development of other protocols. commit 567e6c62208d3bb05b58b8ed08c2be29d6542f2b Author: Martin Mares Date: Mon Oct 19 17:48:45 1998 +0000 Use (SOCK_DGRAM,IPPROTO_IP) socket instead of (SOCK_STREAM,IPPROTO_TCP). This is exactly what Linux ifconfig does and seems to be the preferred way. commit 4cf45766bac4b1e3f5196f7e36d012cb7c010dc1 Author: Martin Mares Date: Mon Oct 19 17:47:50 1998 +0000 Exporting fill_in_sockaddr() for use by other unix-dependent code. commit 36f2caf147fb80e2b3db59d367e07f5d143f3710 Author: Martin Mares Date: Mon Oct 19 17:46:45 1998 +0000 Fixed generation of device routes for unnumbered point-to-point links. commit f184ea6f7e1233403d06fa4615cb9f27f9d9a839 Author: Martin Mares Date: Mon Oct 19 17:45:29 1998 +0000 Proto struct now contain (down | starting | up) state. commit 16a8ba30a97d82f8e43385d1a9b116fdb16746a8 Author: Martin Mares Date: Sun Oct 18 22:25:56 1998 +0000 We parse /proc/net/route and flag RT entries according to it. More to come today in the morning... commit 4c45595e3bb9f0b605e3102742831dad8915b309 Author: Martin Mares Date: Sun Oct 18 22:24:41 1998 +0000 o FIB flags now available for FIB users. o struct network: FIB flags used for kernel syncing. o struct network: `next' field deleted (historical relic). commit ab3a76a382745e0195b213c6d87ddc0e3cabd690 Author: Martin Mares Date: Sun Oct 18 22:22:28 1998 +0000 Added ipa_from_u32 and ipa_from_u32 for use in the kernel sync code (IPv4 only). Don't ever think of using it in routing protocols. commit 7e7790c61f14dff300d7c5464fdd47e4c15a0731 Author: Martin Mares Date: Sun Oct 18 12:50:43 1998 +0000 Since almost every UNIX system requires different techniques for reading the kernel routing table as opposed to modifying it which is approximately the same on non-netlink systems, I've split the kernel routing table routines to read and write parts. To be implemented later ;-) commit 8b1688177b2b3c6a3740f792997f3057b9bff0da Author: Martin Mares Date: Sun Oct 18 12:48:15 1998 +0000 * Please distinguish between DGB() and debug(). commit 3629bcf0c7ff8ccc56baabc4769f90635d1a7864 Author: Martin Mares Date: Sun Oct 18 12:26:02 1998 +0000 Preconfig, postconfig and init hooks can be NULL. commit 0432c0173bb4d234e8ba8e4afea0a8e708e119d8 Author: Martin Mares Date: Sun Oct 18 11:53:21 1998 +0000 Split protocol init to building of protocol list and real protocol init. Added kernel route table syncer skeleton. commit 05e56feb57b8e313a2328dbe82e2c2a70ff5115a Author: Martin Mares Date: Sun Oct 18 11:50:36 1998 +0000 Removed global pointer to proto_dev. commit 5b22683d2f27fcc5954cc9d4d58e55e539414d53 Author: Martin Mares Date: Sun Oct 18 11:13:16 1998 +0000 After contemplating about RIP route timeouts for a long time, I've implemented protocol callbacks for route insertion and deletion from the central table. RIP should maintain its own per-protocol queue of existing routes, scan it periodically and call rte_discard() for routes that have timed out. commit 570ce189d77fc40841e8e9f8f86ea3c3840aa450 Author: Martin Mares Date: Sun Oct 18 10:49:46 1998 +0000 Implemented `route last modified' time. commit 2a900b1b1565d778f19c10b087aea558f067bba7 Author: Martin Mares Date: Sat Oct 17 11:26:28 1998 +0000 Fixed misleading comment. commit 7f3d198df118dc218bb2049f1cc0597ec62864bc Author: Martin Mares Date: Sat Oct 17 11:24:13 1998 +0000 Each protocol now hears even its own routes and needs to make its own loop detection. This is needed since both RIP and OSPF handle multiple neighbors and they need to redistribute routes learned from each neighbor to the remaining ones. commit 47b793064c25c8adcab48cacc018be1675f2448a Author: Martin Mares Date: Sat Oct 17 11:05:18 1998 +0000 Solve chicken-and-egg problems with protocol startup. We now queue all inactive protocols and don't send route/interface updates to them and when they come up, we resend the whole route/interface tables privately. Removed the "scan interface list after protocol start" work-around. commit d92882be9b1bfcc1a8e8a7bd552bdec4831694aa Author: Martin Mares Date: Sat Oct 17 11:02:39 1998 +0000 WALK_LIST_DELSAFE now actually works (it really couldn't since it didn't reference list head at all). commit c05ea56f8eb15dfe3c9d18496deaa926e0cf8aac Author: Pavel Machek Date: Sat Oct 17 10:25:22 1998 +0000 rip should now correctly listen, but entries will not time out. commit 8333431c4d0d7dcf065938e21440b4ce20cb8f8f Author: Pavel Machek Date: Thu Oct 15 15:12:24 1998 +0000 Rip: rip_rta_same added. commit 93f1c532e99cddb5575075313c0707bcd4758f07 Author: Martin Mares Date: Wed Oct 14 13:38:17 1998 +0000 Moved scanning of interfaces, so that they get initialized after all routing protocol instances. commit cf3934c5691ec4a00d54b863576916f9a1dd1f1a Author: Pavel Machek Date: Wed Oct 14 13:27:53 1998 +0000 Lists: unneccessary test killed, make code friendly to non-gcc. commit c93214d442644c9667d69f904d57aef6b4ddd47e Author: Martin Mares Date: Tue Oct 13 19:57:33 1998 +0000 o There are cases when SIOCGIFINDEX is defined, but it doesn't work. When this happens, don't reject the whole interface, just mark it as index 0. o Removed Pavel's comment about EFAULT and SIGSEGV. EFAULT is a valid return code for cases where the buffer is too small. o Commented out the smart interface list size logic temporarily as it seems Linux 2.0 SIOCGIFCONF doesn't react to ifc_req==NULL sanely. Replaced it by exponential stepping. commit fdf33cde1cd14a2a0215d6d459489e258fe20789 Author: Pavel Machek Date: Tue Oct 13 14:59:46 1998 +0000 Strange, on atrey ioctl() does not fill structure, and bird segfaults on it. Now we "only" die(). commit 21580e304f612b276a90d2a90f4fb86569609255 Author: Pavel Machek Date: Tue Oct 13 14:32:18 1998 +0000 I prefer to have broken drivers than completely stupid ones... Linus Torvalds Rip now uses main routing table properly: entries are stored directly into main routing table and we are relying on core to call our's compare. That unfortunately broke garbage collecting (and probably many more things). It compiles. commit 1d941de47a90fb9ca39d7acf6aa396447d1fc7df Author: Pavel Machek Date: Wed Oct 7 19:33:50 1998 +0000 RIP now somehow listens to main routing table (dont expect it to work) commit 8c43696da0c0680820aa949da35e823e68162788 Author: Martin Mares Date: Mon Aug 31 21:13:42 1998 +0000 Route update hook now gets network prefix as well as updated route attributes. commit bf65d27deaa0bacd801ec06a3257dda03a53fee2 Author: Pavel Machek Date: Thu Jul 30 07:43:45 1998 +0000 Bird's info are now understood by ripquery. commit 279f4c7b7b2ebe13793649f191040042a8c4c014 Author: Pavel Machek Date: Tue Jul 28 21:44:11 1998 +0000 Rip now includes code to reply, but it is currently broken. commit 48b41d58112737f87f1217414291e61f5430f611 Author: Pavel Machek Date: Tue Jul 28 21:42:08 1998 +0000 Do not segfault on iface == NULL. commit a872b0f7dae38cfef574d0d3b30609e968cdf95b Author: Pavel Machek Date: Mon Jul 20 20:05:40 1998 +0000 Reversed buggy patch. commit c25e90efed6bc76d05370403839640ed05017506 Author: Martin Mares Date: Wed Jul 15 19:42:23 1998 +0000 Added comment explaining `now'. commit 1be52eea5777f082b02e0f484620e692017b16a2 Author: Martin Mares Date: Fri Jul 10 08:39:34 1998 +0000 Removed format specification attributes for log() and debug() until GCC is fixed to handle custom formats. commit 786d0bb9e7c5db5104e3fd0ff7fdfbd1e19844ea Author: Martin Mares Date: Fri Jul 10 08:38:29 1998 +0000 Added ipa_class_mask() which guesses netmask for classful addressing. For pure A/B/C class addresses it just returns the class netmask, for subnets it tries to guess subnet mask. Please make sure the address you pass to this function is really a valid host address (i.e., call ipa_validate() first). commit 28a9a189d71ef3b05daa21d60277149edb8e98ad Author: Martin Mares Date: Fri Jul 10 08:32:18 1998 +0000 Replaced remaining references of clock_t by bird_clock_t. commit a103373f6147f27e4ac71e5903563e57ce52902c Author: Pavel Machek Date: Thu Jul 9 19:39:04 1998 +0000 Commiting RIP. RIP should somehow listen, will not reply. I needed to commit it so that whole thing compiles. commit 86b0023033a25cdc6ab5480e03893f516184a2a5 Author: Pavel Machek Date: Thu Jul 9 19:37:39 1998 +0000 Making SIGUSR1 dump also all protocols. commit 87d2be86e5f8af0e2f01e7fb711bd282e29e376b Author: Pavel Machek Date: Thu Jul 9 19:36:52 1998 +0000 Adding proto_dump_all() function commit cf3527e2f4f1f4009fa332e6284b8904c24d0d43 Author: Pavel Machek Date: Thu Jul 9 19:36:05 1998 +0000 Adding MIN()/MAX() macros commit aea2dcabdc4ed80172ac8d4f5c4d31bc8607d1e7 Author: Pavel Machek Date: Thu Jul 9 19:35:23 1998 +0000 Adding walk list which permits you to delete entries. commit 962ba482fd7bba97cf13a96105503efff4dcb88a Author: Martin Mares Date: Wed Jun 17 14:36:02 1998 +0000 Use '%I' instead of dirty address printing hacks. commit d997534f65903e8078efe2f8ceb19941692598f7 Author: Martin Mares Date: Wed Jun 17 14:34:13 1998 +0000 Oops, forgot '%m'... commit 9556f225853748d5fee9a21e179b8fd5da2d3c42 Author: Martin Mares Date: Wed Jun 17 14:33:29 1998 +0000 debug() and log() use the new printf. Feel free to use new formatting sequences for all output. commit ecacdfa434acf8af38ed8c1c0c8e71dab400b0f4 Author: Martin Mares Date: Wed Jun 17 14:31:36 1998 +0000 Added local version of sprintf (bsprintf and bvsprintf) offering few new format strings: %I IP address %#I IP address in hexadecimal %1I IP address padded to full length %m strerror(errno) commit 97d858c590998786d4d8a16b5c1f657800d74736 Author: Martin Mares Date: Wed Jun 17 14:28:46 1998 +0000 ip_ntop() and ip_ntox() for IPv4. commit 6b5e06abb57528a091fd171dff379634fa7c4dad Author: Martin Mares Date: Wed Jun 17 14:26:30 1998 +0000 Added function for converting of IP addresses to printable form. commit 620a355a15d65a8a2980f98b2de3e7d04c3dab62 Author: Martin Mares Date: Thu Jun 4 20:30:11 1998 +0000 Now sending IF_CHANGE_CREATE when a new interface appears and IF_CHANGE_UP only if it's really up. commit 236d4eb8ce5dc894e97bcf1f561186d41c361cea Author: Martin Mares Date: Thu Jun 4 20:29:44 1998 +0000 FIB_WALK and friends are now slightly more friendly. commit 66e53309acceb0fd7e56faf54e1cc733a5477c67 Author: Martin Mares Date: Thu Jun 4 20:29:05 1998 +0000 Dumping of _static_ attributes implemented. commit b1e4f81485c15bacfff6040a1295bee31479a875 Author: Martin Mares Date: Thu Jun 4 20:28:43 1998 +0000 We have full interface routes now. commit 0cdbd3975a1ebc5e6705d23ed90388269c24b42e Author: Martin Mares Date: Thu Jun 4 20:28:19 1998 +0000 Handle route deletion without segfaults. A bit more debug dumps. commit 5331da6a4d0c77e70d134fa40b5061b00ab593b0 Author: Martin Mares Date: Thu Jun 4 20:27:49 1998 +0000 Fixed processing of timers. commit fd50083df499dd7aa4dd3eec97171003da300250 Author: Martin Mares Date: Wed Jun 3 08:43:44 1998 +0000 Killed socket debug code. Initialize config pool and protocols. More to come later... commit c5ffa447598bc24cf1b674553bc4d3cc80a831d1 Author: Martin Mares Date: Wed Jun 3 08:42:16 1998 +0000 Skeleton of device route protocol. As it's tightly coupled with our kernel, it sits here instead of `proto/dev'. commit d9f330c5ffe03c05b7e6541a06adac657f24407b Author: Martin Mares Date: Wed Jun 3 08:40:10 1998 +0000 Protocol hooks. All of them may be NULL. commit 7f4a39886c128bfc2e39987180eb1482ee04d553 Author: Martin Mares Date: Wed Jun 3 08:38:53 1998 +0000 Basic protocol operations. commit a5f1a60e0254871c3285aabde372f5a6790c19c3 Author: Martin Mares Date: Wed Jun 3 08:38:06 1998 +0000 Changed protocol declarations a bit. commit 33beab4f6c7904204a5116b4eb4cbed5f859f24a Author: Martin Mares Date: Wed Jun 3 08:36:34 1998 +0000 Added configuration pool. commit c5fd704e48333fb8e690d78a3be1303f6c2638c7 Author: Martin Mares Date: Wed Jun 3 08:35:40 1998 +0000 Protocols will reside in directory `proto'. commit 869c695998f0bc3b80d8500d88a53fb169c21bc1 Author: Martin Mares Date: Mon Jun 1 21:41:32 1998 +0000 Synced to new interface code. commit 4cc78c5082344f0d237a5cdfb05e53dfd04ffd8b Author: Martin Mares Date: Mon Jun 1 21:41:11 1998 +0000 - Rewrote whole interface logic. Removed support for multiple addresses per interface since it makes much trouble everywhere. Instead, we understand secondary addresses as subinterfaces. - In case interface addresses or basic flags change, we simply convert it to a down/up sequence. - Implemented the universal neighbour cache. (Just forget what did previous includes say of neighbour caching, this one is brand new.) commit 0fe3b28b68f10a32f3fe43e8221559a72be5ca28 Author: Martin Mares Date: Mon Jun 1 21:36:58 1998 +0000 Added ipa_xor() and ipa_in_net(). commit af847acc27978cf48721aafbacab70e48f42ede7 Author: Martin Mares Date: Tue May 26 21:46:38 1998 +0000 Whee, multicast sockets work! Implemented recurrent timers. commit 140f03410500420a4b44e62a98896a29c99a2b00 Author: Martin Mares Date: Tue May 26 21:44:54 1998 +0000 Added CONFIG_AUTO_ROUTES (automatic device route creation) and CONFIG_ALL_MULTICAST (all interfaces capable of multicasting, not depending on IFF_MULTICAST flag). commit fe82105e5dc2077c16da802f721160443e0c6fc2 Author: Martin Mares Date: Tue May 26 21:43:45 1998 +0000 Debug messages. commit 8a48ecb8b15e827f779d4b9fb080dff280b99872 Author: Martin Mares Date: Tue May 26 21:42:05 1998 +0000 Implemented scanning of network interfaces. Mostly very ugly code due to terrible kernel interface (SIOGIFCONF and friends). commit b1487ee909ebd4cfc59f30d3678cb6667d4a72c8 Author: Martin Mares Date: Tue May 26 21:38:06 1998 +0000 Added generic functions for unaligned data access. commit ed68a5c6a4da7050995934adb07612dea1cf6644 Author: Martin Mares Date: Tue May 26 21:37:37 1998 +0000 Resource pools are now named. commit d5417b379f05541418fb4f1ac87100ba8106b0c6 Author: Martin Mares Date: Tue May 26 21:36:48 1998 +0000 Added ipa_opposite(). commit 5222c46ceb8035f2292c3a91f6ee85fbbed82c5e Author: Martin Mares Date: Tue May 26 21:36:17 1998 +0000 DBG now calls debug() instead of sending it to log(). commit d804db0dabf944495071fe6b62a9d836f78997af Author: Martin Mares Date: Sun May 24 15:00:48 1998 +0000 Added few socket declarations. commit b5d9ee5c878b41ffbc138be171d700992e9d78c7 Author: Martin Mares Date: Sun May 24 14:50:18 1998 +0000 Added UNIX implementation of both timers and sockets. Timers should work, sockets were tested only in TCP mode. main.c now contains some test cases for socket code. commit 6d45cf21be3f979ba4e8a1a5f557663618fadfb3 Author: Martin Mares Date: Sun May 24 14:49:14 1998 +0000 Added debug dump function, but it's still empty :( commit ded3ee6dddae06c1cabc3a2d34e3139eb0eb338f Author: Martin Mares Date: Sun May 24 14:48:52 1998 +0000 protos_init, not proto_init. commit b53499cdaa21994f5d92afed23fdf85c2b7fe134 Author: Martin Mares Date: Sun May 24 14:48:09 1998 +0000 Added interface index (used only by OS-dependent code since ifindexes itself are OS-dependent). commit d4bc8dc00037e868771fb259a1e7b9ae5e92ed5a Author: Martin Mares Date: Sun May 24 14:46:20 1998 +0000 Staticized some variables and functions. commit 315aba32b3c5744a040331d653218d15a55455a5 Author: Martin Mares Date: Sun May 24 14:44:25 1998 +0000 Fixed path to includes. commit a2ccbb0b97c1eac3a68f01b7786822a66aaaefa2 Author: Martin Mares Date: Sun May 24 14:40:29 1998 +0000 Implemented timers. Using bird_clock_t for absolute time from now... commit 235562ca5ac1db2e2ea026bff42c8c2a898b44db Author: Martin Mares Date: Sun May 24 09:20:59 1998 +0000 Point-to-point links: added address of the opposite end. commit 480effedac0ae45a4f01ce32bac962db08ba5a3d Author: Martin Mares Date: Sun May 24 09:19:26 1998 +0000 Added declarations of all our socket functions. commit 2326b001d6f28e69b88c3c19795d8c0999f07db1 Author: Martin Mares Date: Wed May 20 11:54:33 1998 +0000 Added routing table and routing attribute code. commit 3994080eb1a86f085498bee1f36cbdb52b30191d Author: Martin Mares Date: Fri May 15 13:43:59 1998 +0000 Fixed path to includes. commit 25697773b529d80278679978b7416ca9c87e15e9 Author: Martin Mares Date: Fri May 15 07:56:13 1998 +0000 The library is now glued together from generic and OS-dependent parts by the `mergedirs' script. Few more IP address manipulation functions and some fixes. commit 62aa008abd627c6862310daf65ffd337a920bdbb Author: Martin Mares Date: Fri May 15 07:54:32 1998 +0000 Parts of routing table code. Data structure declarations should be complete now. commit 18c8241a91bd9208879666f1a1a13f454e66d75b Author: Martin Mares Date: Sun May 3 16:43:39 1998 +0000 BIRD library: The story continues. Complete resource manages and IP address handling. commit a8b6038225d18155883e330c96b2bc2e44153e1e Author: Martin Mares Date: Sun May 3 16:42:45 1998 +0000 Next attempt on data structures... commit 6032aa6ade49545d7c8b6025cf6e6373eb7c910c Author: Martin Mares Date: Sun May 3 16:42:08 1998 +0000 Added new subdir for UNIX-dependent files. Now contains only functions for logging, but it will change soon. commit 1feea03e7463d8eaeb00d5df6c2cd3e8e20f2bcd Author: Martin Mares Date: Tue Apr 28 14:39:34 1998 +0000 Changed #include to #include "x/y" for our local includes, so that gcc -MM can be used to separate them from the system ones. Added automatic generation of dependencies. commit c40e05a0dffa33a8724e56121a2b6dcdfa9183e0 Author: Martin Mares Date: Thu Apr 23 14:01:15 1998 +0000 Added IP address manipulation macros, interface declarations and logging. commit 481f69854a788bd2bea5c6938e038ec6e21c491b Author: Martin Mares Date: Thu Apr 23 08:09:39 1998 +0000 Added few route attributes. commit 58ef912c6babf1866193ab04674a5866dd761f13 Author: Martin Mares Date: Wed Apr 22 12:58:34 1998 +0000 First look at data structures. More to come tomorrow... commit b60f7489148d021cb541414b8788f795ec4378fa Author: Martin Mares Date: Fri Mar 20 18:30:55 1998 +0000 Added banner presented to KSVI. bird-1.4.0/aclocal.m40000644000103200001440000001047512244117701013266 0ustar feelausersdnl ** Additional Autoconf tests for BIRD configure script dnl ** (c) 1999 Martin Mares AC_DEFUN(BIRD_CHECK_INTEGERS, [AC_CHECK_SIZEOF(char, 0) AC_CHECK_SIZEOF(short int, 0) AC_CHECK_SIZEOF(int, 0) AC_CHECK_SIZEOF(long int, 0) AC_CHECK_SIZEOF(long long int, 0) for size in 1 2 4 8; do bits=`expr $size "*" 8` AC_MSG_CHECKING([for $bits-bit type]) if test $ac_cv_sizeof_int = $size ; then res=int elif test $ac_cv_sizeof_char = $size ; then res=char elif test $ac_cv_sizeof_short_int = $size ; then res="short int" elif test $ac_cv_sizeof_long_int = $size ; then res="long int" elif test $ac_cv_sizeof_long_long_int = $size ; then res="long long int" else AC_MSG_RESULT([not found]) AC_MSG_ERROR([Cannot find $bits-bit integer type.]) fi AC_MSG_RESULT($res) AC_DEFINE_UNQUOTED(INTEGER_$bits, $res) done ]) dnl BIRD_CHECK_ENDIAN is unused and obsolete AC_DEFUN(BIRD_CHECK_ENDIAN, [AC_CACHE_CHECK([CPU endianity], bird_cv_c_endian,[ AC_TRY_RUN([ #include unsigned int x = 0x12345678; unsigned char *z = (unsigned char *) &x; int main(void) { FILE *f = fopen("conftestresult", "w"); if (!f) return 10; fprintf(f, "%02x %02x %02x %02x", *z, *(z+1), *(z+2), *(z+3)); fclose(f); exit(0); } ],[ endian=`cat conftestresult` if test "$endian" = "12 34 56 78" ; then bird_cv_c_endian=big-endian elif test "$endian" = "78 56 34 12" ; then bird_cv_c_endian=little-endian fi ],[endian="test program failed"],[endian="not available, we're cross compiling"]) if test -z "$bird_cv_c_endian" ; then AC_MSG_RESULT($endian) AC_MSG_ERROR([Cannot determine CPU endianity.]) fi ]) case $bird_cv_c_endian in big-endian) AC_DEFINE(CPU_BIG_ENDIAN) ;; little-endian) AC_DEFINE(CPU_LITTLE_ENDIAN) ;; esac ]) AC_DEFUN(BIRD_CHECK_STRUCT_ALIGN, [AC_CACHE_CHECK([usual alignment of structures],bird_cv_c_struct_align,[ AC_TRY_RUN([ #include struct { char x; long int y; } ary[2]; int main(void) { FILE *f = fopen("conftestresult", "w"); if (!f) return 10; fprintf(f, "%d", sizeof(ary)/2); fclose(f); exit(0); } ],[ bird_cv_c_struct_align=`cat conftestresult` ],[ AC_MSG_RESULT([test program failed]) AC_MSG_ERROR([Cannot determine structure alignment]) ],[bird_cv_c_struct_align=16]) ]) AC_DEFINE_UNQUOTED(CPU_STRUCT_ALIGN, $bird_cv_c_struct_align) ]) AC_DEFUN(BIRD_CHECK_TIME_T, [AC_CACHE_CHECK([characteristics of time_t], bird_cv_type_time_t, [ AC_TRY_RUN([ #include #include #include int main(void) { FILE *f = fopen("conftestresult", "w"); if (!f) return 10; fprintf(f, "%d-bit ", sizeof(time_t)*CHAR_BIT); if ((time_t) -1 > 0) fprintf(f, "un"); fprintf(f, "signed"); fclose(f); exit(0); } ],[bird_cv_type_time_t=`cat conftestresult` ],[ AC_MSG_RESULT([test program failed]) AC_MSG_ERROR([Cannot determine time_t size and signedness.]) ],[bird_cv_type_time_t="32-bit signed"]) ]) case "$bird_cv_type_time_t" in *64-bit*) AC_DEFINE(TIME_T_IS_64BIT) ;; esac case "$bird_cv_type_time_t" in *unsigned*) ;; *) AC_DEFINE(TIME_T_IS_SIGNED) ;; esac ]) AC_DEFUN(BIRD_CHECK_STRUCT_IP_MREQN, [AC_CACHE_CHECK([for struct ip_mreqn], bird_cv_struct_ip_mreqn,[ AC_TRY_COMPILE([#include ],[struct ip_mreqn x; ],[bird_cv_struct_ip_mreqn=yes ],[bird_cv_struct_ip_mreqn=no ])]) if test "$bird_cv_struct_ip_mreqn" = yes ; then AC_DEFINE(HAVE_STRUCT_IP_MREQN) fi ]) AC_DEFUN(BIRD_CHECK_PTHREADS, [ bird_tmp_cflags="$CFLAGS" CFLAGS="$CFLAGS -pthread" AC_CACHE_CHECK([whether POSIX threads are available], bird_cv_lib_pthreads, [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[pthread_t pt; pthread_create(&pt, NULL, NULL, NULL); pthread_spinlock_t lock; pthread_spin_lock(&lock); ]])], [bird_cv_lib_pthreads=yes], [bird_cv_lib_pthreads=no])]) CFLAGS="$bird_tmp_cflags" ]) AC_DEFUN(BIRD_CHECK_GCC_OPTION, [ bird_tmp_cflags="$CFLAGS" CFLAGS="$3 $2" AC_CACHE_CHECK([whether CC supports $2], $1, [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], [$1=yes], [$1=no])]) CFLAGS="$bird_tmp_cflags" ]) AC_DEFUN(BIRD_ADD_GCC_OPTION, [ if test "$$1" = yes ; then CFLAGS="$CFLAGS $2" fi ]) # BIRD_CHECK_PROG_FLAVOR_GNU(PROGRAM-PATH, IF-SUCCESS, [IF-FAILURE]) # copied autoconf internal _AC_PATH_PROG_FLAVOR_GNU m4_define([BIRD_CHECK_PROG_FLAVOR_GNU], [# Check for GNU $1 case `"$1" --version 2>&1` in *GNU*) $2;; m4_ifval([$3], [*) $3;; ])esac ])# bird-1.4.0/tools/0000755000103200001440000000000012244117701012557 5ustar feelausersbird-1.4.0/tools/config.sub0000755000103200001440000010224011606273733014552 0ustar feelausers#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-17' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: bird-1.4.0/tools/cvslog0000755000103200001440000000264711606273733014024 0ustar feelausers#!/usr/bin/perl # Process `cvs log' output to get a resonable changelog # (c) 2003--2004 Martin Mares use Digest::MD5; use POSIX; my %names= ( 'mj' => 'Martin Mares ', 'feela' => 'Ondrej Filip ', 'pavel' => 'Pavel Machek ' ); while () { chomp; /^$/ && next; /^[?]/ && next; /^RCS file: / || die; $_ = ; chomp; my ($file) = /^Working file: (.*)$/ or die; #print "$file\n"; do { $_ = or die; } while (!/^description:/); $_ = ; for(;;) { /^======/ && last; if (/^------/) { $_ = ; next; } /^revision / || die; $_ = ; my ($author) = /;\s*author:\s*([^;]+)/ or die; my ($yy,$mm,$dd,$HH,$MM,$SS) = /^date: (....)\/(..)\/(..) (..):(..):(..);/ or die; my $t = POSIX::mktime($SS,$MM,$HH,$dd,$mm-1,$yy-1900) or die; my $T = sprintf("%06d", int(($t + 1800)/3600)); $d = ""; while ($_ = ) { /^(-----|=====)/ && last; $d .= " $_"; } my $id = "$T:" . Digest::MD5::md5_hex($d); if (!defined $msg{$id}) { $date{$id} = "$yy-$mm-$dd $HH:$MM:$SS"; $msg{$id} = $d; $files{$id} = ""; $author{$id} = $author; } $files{$id} .= " * $file\n"; #print "\t$id\n"; } } foreach $id (sort keys %date) { if (!exists ($names{$author{$id}})) { die "Unknown commiter $author{$id}"; } print "### ", $date{$id}, " ", $names{$author{$id}}, "\n\n"; print $files{$id}, "\n"; print $msg{$id}, "\n"; } bird-1.4.0/tools/mergedirs0000755000103200001440000000225711606273733014505 0ustar feelausers#!/bin/sh if [ -z "$4" ] ; then echo "Usage: mergedirs " exit 1 fi cpp=${CPP:-gcc -E} SRCDIR=$1 shift SRCREL=$1 case $SRCDIR in /*) ;; *) SRCREL="../$SRCREL" ;; esac shift OBJDIR=$1 LIBDIR=$OBJDIR/lib CONFDIR=$OBJDIR/conf shift echo "Merging system-dependent modules ($@)" MODULES=`for a in $@ ; do cat $SRCDIR/sysdep/config.h $SRCDIR/$a/Modules | $cpp -U unix -D MACROS_ONLY -I $OBJDIR - | sed "/^[ ]*\$/d;/^#/d;s@\\(.*\\)@\\1 $a/\\1@" done | sort -k1,1 -u | cut -d ' ' -f 2` rm -rf $LIBDIR $CONFDIR mkdir -p $LIBDIR $CONFDIR for a in $MODULES ; do b=`basename $a` case $b in *.h) ln -s $SRCREL/$a $LIBDIR/$b ;; *.c) OBJ=`echo $b | sed 's/\.c$/\.o/'` OBJS="$OBJS $OBJ" SRCS="$SRCS \\ $b" ln -s $SRCREL/$a $LIBDIR/$b ;; *.Y) CONFS="$CONFS\$(srcdir)/$a " ln -s $SRCREL/$a $CONFDIR/$b ;; *) echo "$b: Unknown file type" exit 1 ;; esac done cat >$LIBDIR/Makefile <$CONFDIR/Makefile "s|@CONFS@|$CONFS|" CONFS=`cd $SRCDIR ; ls conf/*.[chl]` for a in $CONFS ; do ln -s $SRCREL/$a $CONFDIR/ done bird-1.4.0/tools/progdoc0000755000103200001440000000211411606273733014151 0ustar feelausers#!/usr/bin/perl $srcdir = $ARGV[0]; open(OUT, ">prog.sgml") || die "Cannot create output file"; include("doc/prog-head.sgml"); process(""); include("doc/prog-foot.sgml"); close OUT; exit 0; sub include { my $f = shift @_; open(IN, "$srcdir/$f") || die "Unable to find $f"; while () { print OUT; } close IN; } sub process { my $dir = shift @_; print "$dir/Doc\n"; open(IN, "$srcdir/$dir/Doc") || die "Unable to read $dir/Doc"; my @docfile = ; close IN; foreach $_ (@docfile) { chomp; /^#/ && next; /^([A-Z]+)\s*(.*)/ || die "Parse error: $_"; $cmd = $1; $arg = $2; if ($cmd eq "C") { process("$dir/$arg"); } elsif ($cmd eq "H") { push @stack, "H"; print OUT "$arg\n"; } elsif ($cmd eq "S") { print " $arg\n"; open(DOC, "cd $srcdir/$dir ; $srcdir/doc/kernel-doc -bird $arg |") || die "Unable to start kernel-doc"; while () { print OUT; } close DOC; } elsif ($cmd eq "D") { print " $arg\n"; include("$dir/$arg"); } else { die "Unknown command: $cmd"; } } } bird-1.4.0/tools/Rules.in0000644000103200001440000000317612137564446014225 0ustar feelausers# Makefile fragments for the BIRD Internet Routing Daemon # (c) 1999--2000 Martin Mares srcdir=@srcdir_rel_mf@ srcdir_abs := $(shell cd $(srcdir) ; pwd) objdir=@objdir@ exedir=@exedir@ protocols=@protocols@ static-dirs := nest filter $(addprefix proto/,$(protocols)) static-dir-paths := $(addprefix $(srcdir)/,$(static-dirs)) dynamic-dirs := lib conf dynamic-dir-paths := $(dynamic-dirs) client-dirs := client client-dir-paths := $(client-dirs) doc-dirs := doc doc-dir-paths := $(doc-dirs) all-dirs:=$(static-dirs) $(dynamic-dirs) $(client-dirs) $(doc-dirs) clean-dirs:=$(all-dirs) proto sysdep CPPFLAGS=-I$(root-rel) -I$(srcdir) @CPPFLAGS@ CFLAGS=$(CPPFLAGS) @CFLAGS@ LDFLAGS=@LDFLAGS@ LIBS=@LIBS@ CLIENT_LIBS=@CLIENT_LIBS@ CC=@CC@ M4=@M4@ BISON=@BISON@ FLEX=@FLEX@ RANLIB=@RANLIB@ INSTALL=@INSTALL@ INSTALL_PROGRAM=@INSTALL_PROGRAM@ INSTALL_DATA=@INSTALL_DATA@ prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ sbindir=@sbindir@ sysconfdir=@sysconfdir@ localstatedir=@localstatedir@ docdir=@prefix@/doc ifdef source objs := $(subst .c,.o,$(source)) ifdef dir-name src-path := $(srcdir)/$(dir-name)/ endif all: cd $(root-rel) && make ifdef lib-dest subdir: $(lib-dest) $(lib-dest): $(objs) rm -f $@ ar rcs $@ $^ $(RANLIB) $@ else subdir: all.o all.o: $(objs) # $(LD) -r -o $@ $^ # Changed to $(CC) because $(LD) has problems with crosscompiling $(CC) -nostdlib -r -o $@ $^ endif %.o: $(src-path)%.c $(CC) $(CFLAGS) -o $@ -c $< ifndef source-dep source-dep := $(source) endif depend: $(CC) $(CPPFLAGS) -MM $(addprefix $(src-path),$(source-dep)) >depend ifneq ($(wildcard depend),) include depend endif endif bird-1.4.0/tools/Makefile.in0000644000103200001440000000610112244117701014622 0ustar feelausers# Makefile for the BIRD Internet Routing Daemon # (c) 1999--2000 Martin Mares include Rules .PHONY: all daemon birdc birdcl subdir depend clean distclean tags docs userdocs progdocs all: sysdep/paths.h .dep-stamp subdir daemon birdcl @CLIENT@ daemon: $(exedir)/bird birdc: $(exedir)/birdc birdcl: $(exedir)/birdcl bird-dep := $(addsuffix /all.o, $(static-dirs)) conf/all.o lib/birdlib.a $(bird-dep): sysdep/paths.h .dep-stamp subdir birdc-dep := client/birdc.o client/all.o lib/birdlib.a $(birdc-dep): sysdep/paths.h .dep-stamp subdir birdcl-dep := client/birdcl.o client/all.o lib/birdlib.a $(birdcl-dep): sysdep/paths.h .dep-stamp subdir export client := @CLIENT@ depend: sysdep/paths.h .dir-stamp set -e ; for a in $(dynamic-dirs) ; do $(MAKE) -C $$a $@ ; done set -e ; for a in $(static-dirs) $(client-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; done subdir: sysdep/paths.h .dir-stamp .dep-stamp set -e ; for a in $(dynamic-dirs) ; do $(MAKE) -C $$a $@ ; done set -e ; for a in $(static-dirs) $(client-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; done $(exedir)/bird: $(bird-dep) $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(exedir)/birdc: $(birdc-dep) $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(CLIENT_LIBS) $(exedir)/birdcl: $(birdcl-dep) $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) .dir-stamp: sysdep/paths.h mkdir -p $(static-dirs) $(client-dirs) $(doc-dirs) touch .dir-stamp .dep-stamp: $(MAKE) depend touch .dep-stamp docs: userdocs progdocs userdocs progdocs: .dir-stamp $(MAKE) -C doc -f $(srcdir_abs)/doc/Makefile $@ sysdep/paths.h: echo >sysdep/paths.h "/* Generated by Makefile, don't edit manually! */" echo >>sysdep/paths.h "#define PATH_CONFIG_FILE \"@CONFIG_FILE@\"" echo >>sysdep/paths.h "#define PATH_CONTROL_SOCKET \"@CONTROL_SOCKET@\"" if test -n "@iproutedir@" ; then echo >>sysdep/paths.h "#define PATH_IPROUTE_DIR \"@iproutedir@\"" ; fi tags: cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) $(client-dirs) -name *.[chY]` install: all $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) $(DESTDIR)/@runtimedir@ $(INSTALL_PROGRAM) $(exedir)/bird $(DESTDIR)/$(sbindir)/bird@SUFFIX@ $(INSTALL_PROGRAM) $(exedir)/birdcl $(DESTDIR)/$(sbindir)/birdcl@SUFFIX@ if test -n "@CLIENT@" ; then \ $(INSTALL_PROGRAM) $(exedir)/birdc $(DESTDIR)/$(sbindir)/birdc@SUFFIX@ ; \ fi if ! test -f $(DESTDIR)/@CONFIG_FILE@ ; then \ $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)/@CONFIG_FILE@ ; \ else \ echo "Not overwriting old bird@SUFFIX@.conf" ; \ fi install-docs: $(INSTALL) -d $(DESTDIR)/$(docdir) $(INSTALL_DATA) $(srcdir)/doc/{bird,prog}{,-*}.html $(DESTDIR)/$(docdir)/ clean: find . -name "*.[oa]" -o -name core -o -name depend -o -name "*.html" | xargs rm -f rm -f conf/cf-lex.c conf/cf-parse.* conf/commands.h conf/keywords.h rm -f $(exedir)/bird $(exedir)/birdcl $(exedir)/birdc $(exedir)/bird.ctl $(exedir)/bird6.ctl .dep-stamp distclean: clean rm -f config.* configure sysdep/autoconf.h sysdep/paths.h Makefile Rules rm -rf .dir-stamp $(clean-dirs) bird-1.4.0/tools/Makefile-top.in0000644000103200001440000000101011606273733015425 0ustar feelausers# Makefile for in place build of BIRD # (c) 1999--2000 Martin Mares objdir=@objdir@ all depend tags install install-docs: $(MAKE) -C $(objdir) $@ docs userdocs progdocs: $(MAKE) -C doc $@ clean: $(MAKE) -C $(objdir) clean find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name depend -or -name ".#*" | xargs rm -f distclean: clean $(MAKE) -C doc distclean rm -rf $(objdir) autom4te.cache rm -f config.* configure sysdep/autoconf.h sysdep/paths.h Makefile bird-1.4.0/tools/install-sh0000755000103200001440000001124311606273733014575 0ustar feelausers#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. # # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" tranformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 bird-1.4.0/tools/gendist0000755000103200001440000000202611606273733014153 0ustar feelausers#!/bin/sh # # Generate BIRD Distribution Archive # (c) 2000--2004 Martin Mares # set -e AC=`if [ -x /usr/bin/autoconf2.50 ] ; then echo autoconf2.50 ; else echo autoconf ; fi` $AC ./configure make distclean $AC rm -rf autom4te*cache ( cd doc ; make docs ; make clean ) VERSION=`sed $T/$REL/ChangeLog mv $T/$REL/doc/*.ps $T/$DREL/doc rm -f $T/$REL/bird.conf* rm -rf $T/$REL/.git/ rm -rf `find $T/$REL -name CVS -o -name tmp` $T/$REL/{misc,rfc,doc/slides} ( cd $T ; tar czvvf $REL.tar.gz $REL ) ( cd $T ; tar czvvf $DREL.tar.gz $DREL ) rm -rf $T/$REL $T/$DREL echo -n "OK? " read OK echo Uploading to Atrey... scp $T/$REL.tar.gz $T/$DREL.tar.gz atrey.karlin.mff.cuni.cz:~ftp/pub/bird/ echo Uploading to Trubka... scp $T/$REL.tar.gz $T/$DREL.tar.gz bird.network.cz:~ftp/pub/bird/ echo Done. bird-1.4.0/tools/config.guess0000755000103200001440000013226411606273733015120 0ustar feelausers#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-27' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd | genuineintel) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: bird-1.4.0/TODO0000644000103200001440000000330311732627752012123 0ustar feelausersCore ~~~~ - socket open failure should not be fatal - &&,||: priorities - static: allow specifying a per-route filter program for setting route attributes? Globals ~~~~~~~ - right usage of DBG vs. debug - logging and tracing; use appropriate log levels - check incoming packets and log errors!! - check log calls for trailing newlines and log levels followed by comma - check if all protocols set proper packet priorities and TTL's. - try compiling with -Wunused - does everybody test return value of sk_open? - protocols: implement CLI hooks and per-procotol CLI commands - protocols: implement reconfigure hook - protocols: use locking - check use of system includes and sprintf() Various ideas ~~~~~~~~~~~~~ - client: Ctrl-R eats one more enter - bgp: timing of updates? - netlink: import Linux route attributes to our rta's, so that they can be filtered? - config: executable config files - filters: user defined attributes? - io: use poll if available - route recalculation timing and flap dampening [see RFC2439 for algorithms] - aggregate engine: standard route aggregation and summarization [RFC2519] - aggregate engine: injection of manually configured pseudo-static routes - generate default route if any working BGP connection exists (aggregate engine again?) - generate default route to IGP's (aggregate engine yet another time?) - look at RFC 2386 (QoS-based routing) - cli: show tables? OSPF ~~~~ - check incoming packets using neighbor cache - RFC2328 appendix E: Use a better algorithm - automatic generation of external route tags (RFC1403) - RFC2370 opaque LSA's - Limit export rate of external LSAs (like Gated does) - Bugfix in link state retransmission list (aging) - Graceful OSPF restart - RFC3623 bird-1.4.0/nest/0000755000103200001440000000000012244656136012402 5ustar feelausersbird-1.4.0/nest/attrs.h0000644000103200001440000000704612244117701013705 0ustar feelausers/* * BIRD Internet Routing Daemon -- Attribute Operations * * (c) 2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_ATTRS_H_ #define _BIRD_ATTRS_H_ #include /* a-path.c */ #define AS_PATH_SET 1 /* Types of path segments */ #define AS_PATH_SEQUENCE 2 #define AS_PATH_CONFED_SEQUENCE 3 #define AS_PATH_CONFED_SET 4 #define AS_PATH_MAXLEN 10000 #define AS_TRANS 23456 /* AS_TRANS is used when we need to store 32bit ASN larger than 0xFFFF * to 16bit slot (like in 16bit AS_PATH). See RFC 4893 for details */ struct f_tree; struct adata *as_path_prepend(struct linpool *pool, struct adata *olda, u32 as); int as_path_convert_to_old(struct adata *path, byte *dst, int *new_used); int as_path_convert_to_new(struct adata *path, byte *dst, int req_as); void as_path_format(struct adata *path, byte *buf, unsigned int size); int as_path_getlen(struct adata *path); int as_path_getlen_int(struct adata *path, int bs); int as_path_get_first(struct adata *path, u32 *orig_as); int as_path_get_last(struct adata *path, u32 *last_as); int as_path_contains(struct adata *path, u32 as, int min); int as_path_match_set(struct adata *path, struct f_tree *set); struct adata *as_path_filter(struct linpool *pool, struct adata *path, struct f_tree *set, u32 key, int pos); #define PM_ASN 0 #define PM_QUESTION 1 #define PM_ASTERISK 2 #define PM_ASN_EXPR 3 struct f_path_mask { struct f_path_mask *next; int kind; uintptr_t val; }; int as_path_match(struct adata *path, struct f_path_mask *mask); /* a-set.c */ /* Extended Community subtypes (kinds) */ #define EC_RT 0x0002 #define EC_RO 0x0003 #define EC_GENERIC 0xFFFF /* Transitive bit (for first u32 half of EC) */ #define EC_TBIT 0x40000000 static inline int int_set_get_size(struct adata *list) { return list->length / 4; } static inline int ec_set_get_size(struct adata *list) { return list->length / 8; } static inline u32 *int_set_get_data(struct adata *list) { return (u32 *) list->data; } static inline u32 ec_hi(u64 ec) { return ec >> 32; } static inline u32 ec_lo(u64 ec) { return ec; } static inline u64 ec_get(const u32 *l, int i) { return (((u64) l[i]) << 32) | l[i+1]; } /* RFC 4360 3.1. Two-Octet AS Specific Extended Community */ static inline u64 ec_as2(u64 kind, u64 key, u64 val) { return ((kind | 0x0000) << 48) | (key << 32) | val; } /* RFC 5668 4-Octet AS Specific BGP Extended Community */ static inline u64 ec_as4(u64 kind, u64 key, u64 val) { return ((kind | 0x0200) << 48) | (key << 16) | val; } /* RFC 4360 3.2. IPv4 Address Specific Extended Community */ static inline u64 ec_ip4(u64 kind, u64 key, u64 val) { return ((kind | 0x0100) << 48) | (key << 16) | val; } static inline u64 ec_generic(u64 key, u64 val) { return (key << 32) | val; } int int_set_format(struct adata *set, int way, int from, byte *buf, unsigned int size); int ec_format(byte *buf, u64 ec); int ec_set_format(struct adata *set, int from, byte *buf, unsigned int size); int int_set_contains(struct adata *list, u32 val); int ec_set_contains(struct adata *list, u64 val); struct adata *int_set_add(struct linpool *pool, struct adata *list, u32 val); struct adata *ec_set_add(struct linpool *pool, struct adata *list, u64 val); struct adata *int_set_del(struct linpool *pool, struct adata *list, u32 val); struct adata *ec_set_del(struct linpool *pool, struct adata *list, u64 val); struct adata *int_set_union(struct linpool *pool, struct adata *l1, struct adata *l2); struct adata *ec_set_union(struct linpool *pool, struct adata *l1, struct adata *l2); #endif bird-1.4.0/nest/password.c0000644000103200001440000000150411606273733014407 0ustar feelausers/* * BIRD -- Password handling * * (c) 1999 Pavel Machek * (c) 2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ #include "nest/bird.h" #include "nest/password.h" #include "lib/string.h" struct password_item *last_password_item = NULL; struct password_item * password_find(list *l, int first_fit) { struct password_item *pi; struct password_item *pf = NULL; if (l) { WALK_LIST(pi, *l) { if ((pi->genfrom < now_real) && (pi->gento > now_real)) { if (first_fit) return pi; if (!pf || pf->genfrom < pi->genfrom) pf = pi; } } } return pf; } void password_cpy(char *dst, char *src, int size) { bzero(dst, size); memcpy(dst, src, (strlen(src) < (unsigned) size ? strlen(src) : (unsigned) size)); } bird-1.4.0/nest/rt-attr.c0000644000103200001440000005074612244117701014145 0ustar feelausers/* * BIRD -- Route Attribute Cache * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Route attribute cache * * Each route entry carries a set of route attributes. Several of them * vary from route to route, but most attributes are usually common * for a large number of routes. To conserve memory, we've decided to * store only the varying ones directly in the &rte and hold the rest * in a special structure called &rta which is shared among all the * &rte's with these attributes. * * Each &rta contains all the static attributes of the route (i.e., * those which are always present) as structure members and a list of * dynamic attributes represented by a linked list of &ea_list * structures, each of them consisting of an array of &eattr's containing * the individual attributes. An attribute can be specified more than once * in the &ea_list chain and in such case the first occurrence overrides * the others. This semantics is used especially when someone (for example * a filter) wishes to alter values of several dynamic attributes, but * it wants to preserve the original attribute lists maintained by * another module. * * Each &eattr contains an attribute identifier (split to protocol ID and * per-protocol attribute ID), protocol dependent flags, a type code (consisting * of several bit fields describing attribute characteristics) and either an * embedded 32-bit value or a pointer to a &adata structure holding attribute * contents. * * There exist two variants of &rta's -- cached and un-cached ones. Un-cached * &rta's can have arbitrarily complex structure of &ea_list's and they * can be modified by any module in the route processing chain. Cached * &rta's have their attribute lists normalized (that means at most one * &ea_list is present and its values are sorted in order to speed up * searching), they are stored in a hash table to make fast lookup possible * and they are provided with a use count to allow sharing. * * Routing tables always contain only cached &rta's. */ #include "nest/bird.h" #include "nest/route.h" #include "nest/protocol.h" #include "nest/iface.h" #include "nest/cli.h" #include "nest/attrs.h" #include "lib/alloca.h" #include "lib/resource.h" #include "lib/string.h" pool *rta_pool; static slab *rta_slab; static slab *mpnh_slab; struct protocol *attr_class_to_protocol[EAP_MAX]; static inline unsigned int mpnh_hash(struct mpnh *x) { unsigned int h = 0; for (; x; x = x->next) h ^= ipa_hash(x->gw); return h; } int mpnh__same(struct mpnh *x, struct mpnh *y) { for (; x && y; x = x->next, y = y->next) if (!ipa_equal(x->gw, y->gw) || (x->iface != y->iface) || (x->weight != y->weight)) return 0; return x == y; } static struct mpnh * mpnh_copy(struct mpnh *o) { struct mpnh *first = NULL; struct mpnh **last = &first; for (; o; o = o->next) { struct mpnh *n = sl_alloc(mpnh_slab); n->gw = o->gw; n->iface = o->iface; n->next = NULL; n->weight = o->weight; *last = n; last = &(n->next); } return first; } static void mpnh_free(struct mpnh *o) { struct mpnh *n; while (o) { n = o->next; sl_free(mpnh_slab, o); o = n; } } /* * Extended Attributes */ static inline eattr * ea__find(ea_list *e, unsigned id) { eattr *a; int l, r, m; while (e) { if (e->flags & EALF_BISECT) { l = 0; r = e->count - 1; while (l <= r) { m = (l+r) / 2; a = &e->attrs[m]; if (a->id == id) return a; else if (a->id < id) l = m+1; else r = m-1; } } else for(m=0; mcount; m++) if (e->attrs[m].id == id) return &e->attrs[m]; e = e->next; } return NULL; } /** * ea_find - find an extended attribute * @e: attribute list to search in * @id: attribute ID to search for * * Given an extended attribute list, ea_find() searches for a first * occurrence of an attribute with specified ID, returning either a pointer * to its &eattr structure or %NULL if no such attribute exists. */ eattr * ea_find(ea_list *e, unsigned id) { eattr *a = ea__find(e, id & EA_CODE_MASK); if (a && (a->type & EAF_TYPE_MASK) == EAF_TYPE_UNDEF && !(id & EA_ALLOW_UNDEF)) return NULL; return a; } /** * ea_get_int - fetch an integer attribute * @e: attribute list * @id: attribute ID * @def: default value * * This function is a shortcut for retrieving a value of an integer attribute * by calling ea_find() to find the attribute, extracting its value or returning * a provided default if no such attribute is present. */ int ea_get_int(ea_list *e, unsigned id, int def) { eattr *a = ea_find(e, id); if (!a) return def; return a->u.data; } static inline void ea_do_sort(ea_list *e) { unsigned n = e->count; eattr *a = e->attrs; eattr *b = alloca(n * sizeof(eattr)); unsigned s, ss; /* We need to use a stable sorting algorithm, hence mergesort */ do { s = ss = 0; while (s < n) { eattr *p, *q, *lo, *hi; p = b; ss = s; *p++ = a[s++]; while (s < n && p[-1].id <= a[s].id) *p++ = a[s++]; if (s < n) { q = p; *p++ = a[s++]; while (s < n && p[-1].id <= a[s].id) *p++ = a[s++]; lo = b; hi = q; s = ss; while (lo < q && hi < p) if (lo->id <= hi->id) a[s++] = *lo++; else a[s++] = *hi++; while (lo < q) a[s++] = *lo++; while (hi < p) a[s++] = *hi++; } } } while (ss); } static inline void ea_do_prune(ea_list *e) { eattr *s, *d, *l, *s0; int i = 0; /* Discard duplicates and undefs. Do you remember sorting was stable? */ s = d = e->attrs; l = e->attrs + e->count; while (s < l) { s0 = s++; while (s < l && s->id == s[-1].id) s++; /* s0 is the most recent version, s[-1] the oldest one */ if ((s0->type & EAF_TYPE_MASK) != EAF_TYPE_UNDEF) { *d = *s0; d->type = (d->type & ~EAF_ORIGINATED) | (s[-1].type & EAF_ORIGINATED); d++; i++; } } e->count = i; } /** * ea_sort - sort an attribute list * @e: list to be sorted * * This function takes a &ea_list chain and sorts the attributes * within each of its entries. * * If an attribute occurs multiple times in a single &ea_list, * ea_sort() leaves only the first (the only significant) occurrence. */ void ea_sort(ea_list *e) { while (e) { if (!(e->flags & EALF_SORTED)) { ea_do_sort(e); ea_do_prune(e); e->flags |= EALF_SORTED; } if (e->count > 5) e->flags |= EALF_BISECT; e = e->next; } } /** * ea_scan - estimate attribute list size * @e: attribute list * * This function calculates an upper bound of the size of * a given &ea_list after merging with ea_merge(). */ unsigned ea_scan(ea_list *e) { unsigned cnt = 0; while (e) { cnt += e->count; e = e->next; } return sizeof(ea_list) + sizeof(eattr)*cnt; } /** * ea_merge - merge segments of an attribute list * @e: attribute list * @t: buffer to store the result to * * This function takes a possibly multi-segment attribute list * and merges all of its segments to one. * * The primary use of this function is for &ea_list normalization: * first call ea_scan() to determine how much memory will the result * take, then allocate a buffer (usually using alloca()), merge the * segments with ea_merge() and finally sort and prune the result * by calling ea_sort(). */ void ea_merge(ea_list *e, ea_list *t) { eattr *d = t->attrs; t->flags = 0; t->count = 0; t->next = NULL; while (e) { memcpy(d, e->attrs, sizeof(eattr)*e->count); t->count += e->count; d += e->count; e = e->next; } } /** * ea_same - compare two &ea_list's * @x: attribute list * @y: attribute list * * ea_same() compares two normalized attribute lists @x and @y and returns * 1 if they contain the same attributes, 0 otherwise. */ int ea_same(ea_list *x, ea_list *y) { int c; if (!x || !y) return x == y; ASSERT(!x->next && !y->next); if (x->count != y->count) return 0; for(c=0; ccount; c++) { eattr *a = &x->attrs[c]; eattr *b = &y->attrs[c]; if (a->id != b->id || a->flags != b->flags || a->type != b->type || ((a->type & EAF_EMBEDDED) ? a->u.data != b->u.data : !adata_same(a->u.ptr, b->u.ptr))) return 0; } return 1; } static inline ea_list * ea_list_copy(ea_list *o) { ea_list *n; unsigned i, len; if (!o) return NULL; ASSERT(!o->next); len = sizeof(ea_list) + sizeof(eattr) * o->count; n = mb_alloc(rta_pool, len); memcpy(n, o, len); n->flags |= EALF_CACHED; for(i=0; icount; i++) { eattr *a = &n->attrs[i]; if (!(a->type & EAF_EMBEDDED)) { unsigned size = sizeof(struct adata) + a->u.ptr->length; struct adata *d = mb_alloc(rta_pool, size); memcpy(d, a->u.ptr, size); a->u.ptr = d; } } return n; } static inline void ea_free(ea_list *o) { int i; if (o) { ASSERT(!o->next); for(i=0; icount; i++) { eattr *a = &o->attrs[i]; if (!(a->type & EAF_EMBEDDED)) mb_free(a->u.ptr); } mb_free(o); } } static int get_generic_attr(eattr *a, byte **buf, int buflen UNUSED) { if (a->id == EA_GEN_IGP_METRIC) { *buf += bsprintf(*buf, "igp_metric"); return GA_NAME; } return GA_UNKNOWN; } static inline void opaque_format(struct adata *ad, byte *buf, unsigned int size) { byte *bound = buf + size - 10; int i; for(i = 0; i < ad->length; i++) { if (buf > bound) { strcpy(buf, " ..."); return; } if (i) *buf++ = ' '; buf += bsprintf(buf, "%02x", ad->data[i]); } *buf = 0; return; } static inline void ea_show_int_set(struct cli *c, struct adata *ad, int way, byte *pos, byte *buf, byte *end) { int i = int_set_format(ad, way, 0, pos, end - pos); cli_printf(c, -1012, "\t%s", buf); while (i) { i = int_set_format(ad, way, i, buf, end - buf - 1); cli_printf(c, -1012, "\t\t%s", buf); } } static inline void ea_show_ec_set(struct cli *c, struct adata *ad, byte *pos, byte *buf, byte *end) { int i = ec_set_format(ad, 0, pos, end - pos); cli_printf(c, -1012, "\t%s", buf); while (i) { i = ec_set_format(ad, i, buf, end - buf - 1); cli_printf(c, -1012, "\t\t%s", buf); } } /** * ea_show - print an &eattr to CLI * @c: destination CLI * @e: attribute to be printed * * This function takes an extended attribute represented by its &eattr * structure and prints it to the CLI according to the type information. * * If the protocol defining the attribute provides its own * get_attr() hook, it's consulted first. */ void ea_show(struct cli *c, eattr *e) { struct protocol *p; int status = GA_UNKNOWN; struct adata *ad = (e->type & EAF_EMBEDDED) ? NULL : e->u.ptr; byte buf[CLI_MSG_SIZE]; byte *pos = buf, *end = buf + sizeof(buf); if (p = attr_class_to_protocol[EA_PROTO(e->id)]) { pos += bsprintf(pos, "%s.", p->name); if (p->get_attr) status = p->get_attr(e, pos, end - pos); pos += strlen(pos); } else if (EA_PROTO(e->id)) pos += bsprintf(pos, "%02x.", EA_PROTO(e->id)); else status = get_generic_attr(e, &pos, end - pos); if (status < GA_NAME) pos += bsprintf(pos, "%02x", EA_ID(e->id)); if (status < GA_FULL) { *pos++ = ':'; *pos++ = ' '; switch (e->type & EAF_TYPE_MASK) { case EAF_TYPE_INT: bsprintf(pos, "%u", e->u.data); break; case EAF_TYPE_OPAQUE: opaque_format(ad, pos, end - pos); break; case EAF_TYPE_IP_ADDRESS: bsprintf(pos, "%I", *(ip_addr *) ad->data); break; case EAF_TYPE_ROUTER_ID: bsprintf(pos, "%R", e->u.data); break; case EAF_TYPE_AS_PATH: as_path_format(ad, pos, end - pos); break; case EAF_TYPE_INT_SET: ea_show_int_set(c, ad, 1, pos, buf, end); return; case EAF_TYPE_EC_SET: ea_show_ec_set(c, ad, pos, buf, end); return; case EAF_TYPE_UNDEF: default: bsprintf(pos, "", e->type); } } cli_printf(c, -1012, "\t%s", buf); } /** * ea_dump - dump an extended attribute * @e: attribute to be dumped * * ea_dump() dumps contents of the extended attribute given to * the debug output. */ void ea_dump(ea_list *e) { int i; if (!e) { debug("NONE"); return; } while (e) { debug("[%c%c%c]", (e->flags & EALF_SORTED) ? 'S' : 's', (e->flags & EALF_BISECT) ? 'B' : 'b', (e->flags & EALF_CACHED) ? 'C' : 'c'); for(i=0; icount; i++) { eattr *a = &e->attrs[i]; debug(" %02x:%02x.%02x", EA_PROTO(a->id), EA_ID(a->id), a->flags); if (a->type & EAF_TEMP) debug("T"); debug("=%c", "?iO?I?P???S?????" [a->type & EAF_TYPE_MASK]); if (a->type & EAF_ORIGINATED) debug("o"); if (a->type & EAF_EMBEDDED) debug(":%08x", a->u.data); else { int j, len = a->u.ptr->length; debug("[%d]:", len); for(j=0; ju.ptr->data[j]); } } if (e = e->next) debug(" | "); } } /** * ea_hash - calculate an &ea_list hash key * @e: attribute list * * ea_hash() takes an extended attribute list and calculated a hopefully * uniformly distributed hash value from its contents. */ inline unsigned int ea_hash(ea_list *e) { u32 h = 0; int i; if (e) /* Assuming chain of length 1 */ { for(i=0; icount; i++) { struct eattr *a = &e->attrs[i]; h ^= a->id; if (a->type & EAF_EMBEDDED) h ^= a->u.data; else { struct adata *d = a->u.ptr; int size = d->length; byte *z = d->data; while (size >= 4) { h ^= *(u32 *)z; z += 4; size -= 4; } while (size--) h = (h >> 24) ^ (h << 8) ^ *z++; } } h ^= h >> 16; h ^= h >> 6; h &= 0xffff; } return h; } /** * ea_append - concatenate &ea_list's * @to: destination list (can be %NULL) * @what: list to be appended (can be %NULL) * * This function appends the &ea_list @what at the end of * &ea_list @to and returns a pointer to the resulting list. */ ea_list * ea_append(ea_list *to, ea_list *what) { ea_list *res; if (!to) return what; res = to; while (to->next) to = to->next; to->next = what; return res; } /* * rta's */ static unsigned int rta_cache_count; static unsigned int rta_cache_size = 32; static unsigned int rta_cache_limit; static unsigned int rta_cache_mask; static rta **rta_hash_table; static void rta_alloc_hash(void) { rta_hash_table = mb_allocz(rta_pool, sizeof(rta *) * rta_cache_size); if (rta_cache_size < 32768) rta_cache_limit = rta_cache_size * 2; else rta_cache_limit = ~0; rta_cache_mask = rta_cache_size - 1; } static inline unsigned int rta_hash(rta *a) { return (a->proto->hash_key ^ ipa_hash(a->gw) ^ mpnh_hash(a->nexthops) ^ ea_hash(a->eattrs)) & 0xffff; } static inline int rta_same(rta *x, rta *y) { return (x->proto == y->proto && x->source == y->source && x->scope == y->scope && x->cast == y->cast && x->dest == y->dest && x->flags == y->flags && x->igp_metric == y->igp_metric && ipa_equal(x->gw, y->gw) && ipa_equal(x->from, y->from) && x->iface == y->iface && x->hostentry == y->hostentry && mpnh_same(x->nexthops, y->nexthops) && ea_same(x->eattrs, y->eattrs)); } static rta * rta_copy(rta *o) { rta *r = sl_alloc(rta_slab); memcpy(r, o, sizeof(rta)); r->uc = 1; r->nexthops = mpnh_copy(o->nexthops); r->eattrs = ea_list_copy(o->eattrs); return r; } static inline void rta_insert(rta *r) { unsigned int h = r->hash_key & rta_cache_mask; r->next = rta_hash_table[h]; if (r->next) r->next->pprev = &r->next; r->pprev = &rta_hash_table[h]; rta_hash_table[h] = r; } static void rta_rehash(void) { unsigned int ohs = rta_cache_size; unsigned int h; rta *r, *n; rta **oht = rta_hash_table; rta_cache_size = 2*rta_cache_size; DBG("Rehashing rta cache from %d to %d entries.\n", ohs, rta_cache_size); rta_alloc_hash(); for(h=0; hnext; rta_insert(r); } mb_free(oht); } /** * rta_lookup - look up a &rta in attribute cache * @o: a un-cached &rta * * rta_lookup() gets an un-cached &rta structure and returns its cached * counterpart. It starts with examining the attribute cache to see whether * there exists a matching entry. If such an entry exists, it's returned and * its use count is incremented, else a new entry is created with use count * set to 1. * * The extended attribute lists attached to the &rta are automatically * converted to the normalized form. */ rta * rta_lookup(rta *o) { rta *r; unsigned int h; ASSERT(!(o->aflags & RTAF_CACHED)); if (o->eattrs) { if (o->eattrs->next) /* Multiple ea_list's, need to merge them */ { ea_list *ml = alloca(ea_scan(o->eattrs)); ea_merge(o->eattrs, ml); o->eattrs = ml; } ea_sort(o->eattrs); } h = rta_hash(o); for(r=rta_hash_table[h & rta_cache_mask]; r; r=r->next) if (r->hash_key == h && rta_same(r, o)) return rta_clone(r); r = rta_copy(o); r->hash_key = h; r->aflags = RTAF_CACHED; rt_lock_hostentry(r->hostentry); rta_insert(r); if (++rta_cache_count > rta_cache_limit) rta_rehash(); return r; } void rta__free(rta *a) { ASSERT(rta_cache_count && (a->aflags & RTAF_CACHED)); rta_cache_count--; *a->pprev = a->next; if (a->next) a->next->pprev = a->pprev; a->aflags = 0; /* Poison the entry */ rt_unlock_hostentry(a->hostentry); mpnh_free(a->nexthops); ea_free(a->eattrs); sl_free(rta_slab, a); } /** * rta_dump - dump route attributes * @a: attribute structure to dump * * This function takes a &rta and dumps its contents to the debug output. */ void rta_dump(rta *a) { static char *rts[] = { "RTS_DUMMY", "RTS_STATIC", "RTS_INHERIT", "RTS_DEVICE", "RTS_STAT_DEV", "RTS_REDIR", "RTS_RIP", "RTS_OSPF", "RTS_OSPF_IA", "RTS_OSPF_EXT1", "RTS_OSPF_EXT2", "RTS_BGP" }; static char *rtc[] = { "", " BC", " MC", " AC" }; static char *rtd[] = { "", " DEV", " HOLE", " UNREACH", " PROHIBIT" }; debug("p=%s uc=%d %s %s%s%s h=%04x", a->proto->name, a->uc, rts[a->source], ip_scope_text(a->scope), rtc[a->cast], rtd[a->dest], a->hash_key); if (!(a->aflags & RTAF_CACHED)) debug(" !CACHED"); debug(" <-%I", a->from); if (a->dest == RTD_ROUTER) debug(" ->%I", a->gw); if (a->dest == RTD_DEVICE || a->dest == RTD_ROUTER) debug(" [%s]", a->iface ? a->iface->name : "???" ); if (a->eattrs) { debug(" EA: "); ea_dump(a->eattrs); } } /** * rta_dump_all - dump attribute cache * * This function dumps the whole contents of route attribute cache * to the debug output. */ void rta_dump_all(void) { rta *a; unsigned int h; debug("Route attribute cache (%d entries, rehash at %d):\n", rta_cache_count, rta_cache_limit); for(h=0; hnext) { debug("%p ", a); rta_dump(a); debug("\n"); } debug("\n"); } void rta_show(struct cli *c, rta *a, ea_list *eal) { static char *src_names[] = { "dummy", "static", "inherit", "device", "static-device", "redirect", "RIP", "OSPF", "OSPF-IA", "OSPF-E1", "OSPF-E2", "BGP", "pipe" }; static char *cast_names[] = { "unicast", "broadcast", "multicast", "anycast" }; int i; cli_printf(c, -1008, "\tType: %s %s %s", src_names[a->source], cast_names[a->cast], ip_scope_text(a->scope)); if (!eal) eal = a->eattrs; for(; eal; eal=eal->next) for(i=0; icount; i++) ea_show(c, &eal->attrs[i]); } /** * rta_init - initialize route attribute cache * * This function is called during initialization of the routing * table module to set up the internals of the attribute cache. */ void rta_init(void) { rta_pool = rp_new(&root_pool, "Attributes"); rta_slab = sl_new(rta_pool, sizeof(rta)); mpnh_slab = sl_new(rta_pool, sizeof(struct mpnh)); rta_alloc_hash(); } /* * Documentation for functions declared inline in route.h */ #if 0 /** * rta_clone - clone route attributes * @r: a &rta to be cloned * * rta_clone() takes a cached &rta and returns its identical cached * copy. Currently it works by just returning the original &rta with * its use count incremented. */ static inline rta *rta_clone(rta *r) { DUMMY; } /** * rta_free - free route attributes * @r: a &rta to be freed * * If you stop using a &rta (for example when deleting a route which uses * it), you need to call rta_free() to notify the attribute cache the * attribute is no longer in use and can be freed if you were the last * user (which rta_free() tests by inspecting the use count). */ static inline void rta_free(rta *r) { DUMMY; } #endif bird-1.4.0/nest/locks.h0000644000103200001440000000321211606273733013663 0ustar feelausers/* * BIRD Object Locks * * (c) 1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_LOCKS_H_ #define _BIRD_LOCKS_H_ #include "lib/resource.h" #include "lib/event.h" /* * The object locks are used for controlling exclusive access * to various physical resources like UDP ports on specific devices. * When you want to access such resource, you ask for a object lock * structure, fill in specification of the object and your function * you want to have called when the object is available and invoke * olock_acquire() afterwards. When the object becomes free, the lock * manager calls your function. To free the object lock, just call rfree * on its resource. */ struct object_lock { resource r; ip_addr addr; /* Identification of a object: IP address */ unsigned int type; /* ... object type (OBJLOCK_xxx) */ struct iface *iface; /* ... interface */ unsigned int port; /* ... port number */ void (*hook)(struct object_lock *); /* Called when the lock succeeds */ void *data; /* User data */ /* ... internal to lock manager, don't touch ... */ node n; /* Node in list of olocks */ int state; /* OLOCK_STATE_xxx */ list waiters; /* Locks waiting for the same resource */ }; struct object_lock *olock_new(pool *); void olock_acquire(struct object_lock *); void olock_init(void); #define OBJLOCK_UDP 1 /* UDP port */ #define OBJLOCK_TCP 2 /* TCP port */ #define OBJLOCK_IP 3 /* IP protocol */ #define OLOCK_STATE_FREE 0 #define OLOCK_STATE_LOCKED 1 #define OLOCK_STATE_WAITING 2 #define OLOCK_STATE_EVENT 3 /* waiting for unlock processing */ #endif bird-1.4.0/nest/cmds.h0000644000103200001440000000067312175263574013512 0ustar feelausers/* * BIRD Internet Routing Daemon -- CLI Commands Which Don't Fit Anywhere Else * * (c) 2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ struct sym_show_data { int type; /* Symbols type to show */ struct symbol *sym; }; struct f_inst; void cmd_show_status(void); void cmd_show_symbols(struct sym_show_data *sym); void cmd_show_memory(void); void cmd_eval(struct f_inst *expr); bird-1.4.0/nest/a-path.c0000644000103200001440000002251512244117701013713 0ustar feelausers/* * BIRD -- Path Operations * * (c) 2000 Martin Mares * (c) 2000 Pavel Machek * * Can be freely distributed and used under the terms of the GNU GPL. */ #include "nest/bird.h" #include "nest/route.h" #include "nest/attrs.h" #include "lib/resource.h" #include "lib/unaligned.h" #include "lib/string.h" #include "filter/filter.h" // static inline void put_as(byte *data, u32 as) { put_u32(data, as); } // static inline u32 get_as(byte *data) { return get_u32(data); } #define put_as put_u32 #define get_as get_u32 #define BS 4 struct adata * as_path_prepend(struct linpool *pool, struct adata *olda, u32 as) { struct adata *newa; if (olda->length && olda->data[0] == AS_PATH_SEQUENCE && olda->data[1] < 255) /* Starting with sequence => just prepend the AS number */ { int nl = olda->length + BS; newa = lp_alloc(pool, sizeof(struct adata) + nl); newa->length = nl; newa->data[0] = AS_PATH_SEQUENCE; newa->data[1] = olda->data[1] + 1; memcpy(newa->data + BS + 2, olda->data + 2, olda->length - 2); } else /* Create new path segment */ { int nl = olda->length + BS + 2; newa = lp_alloc(pool, sizeof(struct adata) + nl); newa->length = nl; newa->data[0] = AS_PATH_SEQUENCE; newa->data[1] = 1; memcpy(newa->data + BS + 2, olda->data, olda->length); } put_as(newa->data + 2, as); return newa; } int as_path_convert_to_old(struct adata *path, byte *dst, int *new_used) { byte *src = path->data; byte *src_end = src + path->length; byte *dst_start = dst; u32 as; int i, n; *new_used = 0; while (src < src_end) { n = src[1]; *dst++ = *src++; *dst++ = *src++; for(i=0; i 0xFFFF) { as = AS_TRANS; *new_used = 1; } put_u16(dst, as); src += 4; dst += 2; } } return dst - dst_start; } int as_path_convert_to_new(struct adata *path, byte *dst, int req_as) { byte *src = path->data; byte *src_end = src + path->length; byte *dst_start = dst; u32 as; int i, t, n; while ((src < src_end) && (req_as > 0)) { t = *src++; n = *src++; if (t == AS_PATH_SEQUENCE) { if (n > req_as) n = req_as; req_as -= n; } else // t == AS_PATH_SET req_as--; *dst++ = t; *dst++ = n; for(i=0; idata; byte *e = p + path->length; byte *end = buf + size - 16; int sp = 1; int l, isset; while (p < e) { if (buf > end) { strcpy(buf, " ..."); return; } isset = (*p++ == AS_PATH_SET); l = *p++; if (isset) { if (!sp) *buf++ = ' '; *buf++ = '{'; sp = 0; } while (l-- && buf <= end) { if (!sp) *buf++ = ' '; buf += bsprintf(buf, "%u", get_as(p)); p += BS; sp = 0; } if (isset) { *buf++ = ' '; *buf++ = '}'; sp = 0; } } *buf = 0; } int as_path_getlen(struct adata *path) { return as_path_getlen_int(path, BS); } int as_path_getlen_int(struct adata *path, int bs) { int res = 0; u8 *p = path->data; u8 *q = p+path->length; int len; while (pdata; u8 *q = p+path->length; int len; while (pdata; if ((path->length == 0) || (p[0] != AS_PATH_SEQUENCE) || (p[1] == 0)) return 0; else { *last_as = get_as(p+2); return 1; } } int as_path_contains(struct adata *path, u32 as, int min) { u8 *p = path->data; u8 *q = p+path->length; int num = 0; int i, n; while (pdata; u8 *q = p+path->length; int i, n; while (plength; u8 *p = path->data; u8 *q = path->data + len; u8 *d, *d2; int i, bt, sn, dn; u8 buf[len]; d = buf; while (p 0) { /* Nonempty block, set block header and advance */ d[0] = bt; d[1] = dn; d = d2; } } int nl = d - buf; if (nl == path->length) return path; struct adata *res = lp_alloc(pool, sizeof(struct adata) + nl); res->length = nl; memcpy(res->data, buf, nl); return res; } struct pm_pos { u8 set; u8 mark; union { char *sp; u32 asn; } val; }; static int parse_path(struct adata *path, struct pm_pos *pos) { u8 *p = path->data; u8 *q = p + path->length; struct pm_pos *opos = pos; int i, len; while (p < q) switch (*p++) { case AS_PATH_SET: pos->set = 1; pos->mark = 0; pos->val.sp = p; len = *p; p += 1 + BS * len; pos++; break; case AS_PATH_SEQUENCE: len = *p++; for (i = 0; i < len; i++) { pos->set = 0; pos->mark = 0; pos->val.asn = get_as(p); p += BS; pos++; } break; default: bug("as_path_match: Invalid path component"); } return pos - opos; } static int pm_match(struct pm_pos *pos, u32 asn) { if (! pos->set) return pos->val.asn == asn; u8 *p = pos->val.sp; int len = *p++; int i; for (i = 0; i < len; i++) if (get_as(p + i * BS) == asn) return 1; return 0; } static void pm_mark(struct pm_pos *pos, int i, int plen, int *nl, int *nh) { int j; if (pos[i].set) pos[i].mark = 1; for (j = i + 1; (j < plen) && pos[j].set && (! pos[j].mark); j++) pos[j].mark = 1; pos[j].mark = 1; /* We are going downwards, therefore every mark is new low and just the first mark is new high */ *nl = i + (pos[i].set ? 0 : 1); if (*nh < 0) *nh = j; } /* AS path matching is nontrivial. Because AS path can * contain sets, it is not a plain wildcard matching. A set * in an AS path is interpreted as it might represent any * sequence of AS numbers from that set (possibly with * repetitions). So it is also a kind of a pattern, * more complicated than a path mask. * * The algorithm for AS path matching is a variant * of nondeterministic finite state machine, where * positions in AS path are states, and items in * path mask are input for that finite state machine. * During execution of the algorithm we maintain a set * of marked states - a state is marked if it can be * reached by any walk through NFSM with regard to * currently processed part of input. When we process * next part of mask, we advance each marked state. * We start with marked first position, when we * run out of marked positions, we reject. When * we process the whole mask, we accept iff final position * (auxiliary position after last real position in AS path) * is marked. */ int as_path_match(struct adata *path, struct f_path_mask *mask) { struct pm_pos pos[2048 + 1]; int plen = parse_path(path, pos); int l, h, i, nh, nl; u32 val = 0; /* l and h are bound of interval of positions where are marked states */ pos[plen].set = 0; pos[plen].mark = 0; l = h = 0; pos[0].mark = 1; while (mask) { /* We remove this mark to not step after pos[plen] */ pos[plen].mark = 0; switch (mask->kind) { case PM_ASTERISK: for (i = l; i <= plen; i++) pos[i].mark = 1; h = plen; break; case PM_ASN: val = mask->val; goto step; case PM_ASN_EXPR: val = f_eval_asn((struct f_inst *) mask->val); goto step; case PM_QUESTION: step: nh = nl = -1; for (i = h; i >= l; i--) if (pos[i].mark) { pos[i].mark = 0; if ((mask->kind == PM_QUESTION) || pm_match(pos + i, val)) pm_mark(pos, i, plen, &nl, &nh); } if (nh < 0) return 0; h = nh; l = nl; break; } mask = mask->next; } return pos[plen].mark; } bird-1.4.0/nest/rt-roa.c0000644000103200001440000002357711732627752013773 0ustar feelausers/* * BIRD -- Route Origin Authorization * * * Can be freely distributed and used under the terms of the GNU GPL. */ #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/route.h" #include "nest/cli.h" #include "lib/lists.h" #include "lib/resource.h" #include "lib/event.h" #include "lib/string.h" #include "conf/conf.h" pool *roa_pool; static slab *roa_slab; /* Slab of struct roa_item */ static list roa_table_list; /* List of struct roa_table */ struct roa_table *roa_table_default; /* The first ROA table in the config */ static inline int src_match(struct roa_item *it, byte src) { return !src || it->src == src; } /** * roa_add_item - add a ROA entry * @t: ROA table * @prefix: prefix of the ROA entry * @pxlen: prefix length of the ROA entry * @maxlen: max length field of the ROA entry * @asn: AS number field of the ROA entry * @src: source of the ROA entry (ROA_SRC_*) * * The function adds a new ROA entry to the ROA table. If the same ROA * is already in the table, nothing is added. @src field is used to * distinguish different sources of ROAs. */ void roa_add_item(struct roa_table *t, ip_addr prefix, byte pxlen, byte maxlen, u32 asn, byte src) { struct roa_node *n = fib_get(&t->fib, &prefix, pxlen); // if ((n->items == NULL) && (n->n.x0 != ROA_INVALID)) // t->cached_items--; struct roa_item *it; for (it = n->items; it; it = it->next) if ((it->maxlen == maxlen) && (it->asn == asn) && src_match(it, src)) return; it = sl_alloc(roa_slab); it->asn = asn; it->maxlen = maxlen; it->src = src; it->next = n->items; n->items = it; } /** * roa_delete_item - delete a ROA entry * @t: ROA table * @prefix: prefix of the ROA entry * @pxlen: prefix length of the ROA entry * @maxlen: max length field of the ROA entry * @asn: AS number field of the ROA entry * @src: source of the ROA entry (ROA_SRC_*) * * The function removes a specified ROA entry from the ROA table and * frees it. If @src field is not ROA_SRC_ANY, only entries from * that source are considered. */ void roa_delete_item(struct roa_table *t, ip_addr prefix, byte pxlen, byte maxlen, u32 asn, byte src) { struct roa_node *n = fib_find(&t->fib, &prefix, pxlen); if (!n) return; struct roa_item *it, **itp; for (itp = &n->items; it = *itp; itp = &it->next) if ((it->maxlen == maxlen) && (it->asn == asn) && src_match(it, src)) break; if (!it) return; *itp = it->next; sl_free(roa_slab, it); // if ((n->items == NULL) && (n->n.x0 != ROA_INVALID)) // t->cached_items++; } /** * roa_flush - flush a ROA table * @t: ROA table * @src: source of ROA entries (ROA_SRC_*) * * The function removes and frees ROA entries from the ROA table. If * @src is ROA_SRC_ANY, all entries in the table are removed, * otherwise only all entries from that source are removed. */ void roa_flush(struct roa_table *t, byte src) { struct roa_item *it, **itp; struct roa_node *n; FIB_WALK(&t->fib, fn) { n = (struct roa_node *) fn; itp = &n->items; while (it = *itp) if (src_match(it, src)) { *itp = it->next; sl_free(roa_slab, it); } else itp = &it->next; } FIB_WALK_END; // TODO add cleanup of roa_nodes } /* byte roa_check(struct roa_table *t, ip_addr prefix, byte pxlen, u32 asn) { struct roa_node *n = fib_find(&t->fib, &prefix, pxlen); if (n && n->n.x0 == ROA_UNKNOWN) return ROA_UNKNOWN; if (n && n->n.x0 == ROA_VALID && asn == n->cached_asn) return ROA_VALID; byte rv = roa_match(t, n, prefix, pxlen, asn); if (rv != ROA_INVALID) { if (!n) { if (t->cached_items >= t->cached_items_max) n = fib_get(&t->fib, &prefix, pxlen); t->cached_items++; } n->cached_asn = asn; n->n.x0 = rv; } return rv; } */ /** * roa_check - check validity of route origination in a ROA table * @t: ROA table * @prefix: network prefix to check * @pxlen: length of network prefix * @asn: AS number of network prefix * * Implements RFC 6483 route validation for the given network * prefix. The procedure is to find all candidate ROAs - ROAs whose * prefixes cover the give network prefix. If there is no candidate * ROA, return ROA_UNKNOWN. If there is a candidate ROA with matching * ASN and maxlen field greater than or equal to the given prefix * length, return ROA_VALID. Otherwise return ROA_INVALID. If caller * cannot determine origin AS, 0 could be used (in that case ROA_VALID * cannot happen). */ byte roa_check(struct roa_table *t, ip_addr prefix, byte pxlen, u32 asn) { struct roa_node *n; ip_addr px; byte anything = 0; int len; for (len = pxlen; len >= 0; len--) { px = ipa_and(prefix, ipa_mkmask(len)); n = fib_find(&t->fib, &px, len); if (!n) continue; struct roa_item *it; for (it = n->items; it; it = it->next) { anything = 1; if ((it->maxlen >= pxlen) && (it->asn == asn) && asn) return ROA_VALID; } } return anything ? ROA_INVALID : ROA_UNKNOWN; } static void roa_node_init(struct fib_node *fn) { struct roa_node *n = (struct roa_node *) fn; n->items = NULL; } static inline void roa_populate(struct roa_table *t) { struct roa_item_config *ric; for (ric = t->cf->roa_items; ric; ric = ric->next) roa_add_item(t, ric->prefix, ric->pxlen, ric->maxlen, ric->asn, ROA_SRC_CONFIG); } static void roa_new_table(struct roa_table_config *cf) { struct roa_table *t; t = mb_allocz(roa_pool, sizeof(struct roa_table)); fib_init(&t->fib, roa_pool, sizeof(struct roa_node), 0, roa_node_init); t->name = cf->name; t->cf = cf; cf->table = t; add_tail(&roa_table_list, &t->n); roa_populate(t); } struct roa_table_config * roa_new_table_config(struct symbol *s) { struct roa_table_config *rtc = cfg_allocz(sizeof(struct roa_table_config)); cf_define_symbol(s, SYM_ROA, rtc); rtc->name = s->name; add_tail(&new_config->roa_tables, &rtc->n); return rtc; } /** * roa_add_item_config - add a static ROA entry to a ROA table configuration * * Arguments are self-explanatory. The first is the ROA table config, rest * are specifying the ROA entry. */ void roa_add_item_config(struct roa_table_config *rtc, ip_addr prefix, byte pxlen, byte maxlen, u32 asn) { struct roa_item_config *ric = cfg_allocz(sizeof(struct roa_item_config)); ric->prefix = prefix; ric->pxlen = pxlen; ric->maxlen = maxlen; ric->asn = asn; ric->next = rtc->roa_items; rtc->roa_items = ric; } /** * roa_init - initialize ROA tables * * This function is called during BIRD startup. It initializes * the ROA table module. */ void roa_init(void) { roa_pool = rp_new(&root_pool, "ROA tables"); roa_slab = sl_new(roa_pool, sizeof(struct roa_item)); init_list(&roa_table_list); } void roa_preconfig(struct config *c) { init_list(&c->roa_tables); } /** * roa_commit - commit new ROA table configuration * @new: new configuration * @old: original configuration or %NULL if it's boot time config * * Scan differences between @old and @new configuration and modify the * ROA tables according to these changes. If @new defines a previously * unknown table, create it, if it omits a table existing in @old, * delete it (there are no references, only indirect through struct * roa_table_config). If it exists in both configurations, update the * configured ROA entries. */ void roa_commit(struct config *new, struct config *old) { struct roa_table_config *cf; struct roa_table *t; if (old) WALK_LIST(t, roa_table_list) { struct symbol *sym = cf_find_symbol(t->name); if (sym && sym->class == SYM_ROA) { /* Found old table in new config */ cf = sym->def; cf->table = t; t->name = cf->name; t->cf = cf; /* Reconfigure it */ roa_flush(t, ROA_SRC_CONFIG); roa_populate(t); } else { t->cf->table = NULL; /* Free it now */ roa_flush(t, ROA_SRC_ANY); rem_node(&t->n); fib_free(&t->fib); mb_free(t); } } /* Add new tables */ WALK_LIST(cf, new->roa_tables) if (! cf->table) roa_new_table(cf); roa_table_default = EMPTY_LIST(new->roa_tables) ? NULL : ((struct roa_table_config *) HEAD(new->roa_tables))->table; } static void roa_show_node(struct cli *c, struct roa_node *rn, int len, u32 asn) { struct roa_item *ri; for (ri = rn->items; ri; ri = ri->next) if ((ri->maxlen >= len) && (!asn || (ri->asn == asn))) cli_printf(c, -1019, "%I/%d max %d as %u", rn->n.prefix, rn->n.pxlen, ri->maxlen, ri->asn); } static void roa_show_cont(struct cli *c) { struct roa_show_data *d = c->rover; struct fib *fib = &d->table->fib; struct fib_iterator *it = &d->fit; struct roa_node *rn; unsigned max = 32; FIB_ITERATE_START(fib, it, f) { rn = (struct roa_node *) f; if (!max--) { FIB_ITERATE_PUT(it, f); return; } if ((d->mode == ROA_SHOW_ALL) || net_in_net(rn->n.prefix, rn->n.pxlen, d->prefix, d->pxlen)) roa_show_node(c, rn, 0, d->asn); } FIB_ITERATE_END(f); cli_printf(c, 0, ""); c->cont = c->cleanup = NULL; } static void roa_show_cleanup(struct cli *c) { struct roa_show_data *d = c->rover; /* Unlink the iterator */ fit_get(&d->table->fib, &d->fit); } void roa_show(struct roa_show_data *d) { struct roa_node *rn; ip_addr px; int len; switch (d->mode) { case ROA_SHOW_ALL: case ROA_SHOW_IN: FIB_ITERATE_INIT(&d->fit, &d->table->fib); this_cli->cont = roa_show_cont; this_cli->cleanup = roa_show_cleanup; this_cli->rover = d; break; case ROA_SHOW_PX: rn = fib_find(&d->table->fib, &d->prefix, d->pxlen); if (rn) { roa_show_node(this_cli, rn, 0, d->asn); cli_msg(0, ""); } else cli_msg(-8001, "Network not in table"); break; case ROA_SHOW_FOR: for (len = d->pxlen; len >= 0; len--) { px = ipa_and(d->prefix, ipa_mkmask(len)); rn = fib_find(&d->table->fib, &px, len); if (!rn) continue; roa_show_node(this_cli, rn, 0, d->asn); } cli_msg(0, ""); break; } } bird-1.4.0/nest/rt-dev.c0000644000103200001440000000554612244117701013747 0ustar feelausers/* * BIRD -- Direct Device Routes * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Direct * * The Direct protocol works by converting all ifa_notify() events it receives * to rte_update() calls for the corresponding network. */ #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/iface.h" #include "nest/protocol.h" #include "nest/route.h" #include "nest/rt-dev.h" #include "conf/conf.h" #include "lib/resource.h" #include "lib/string.h" static void dev_ifa_notify(struct proto *p, unsigned c, struct ifa *ad) { struct rt_dev_config *P = (void *) p->cf; if (!EMPTY_LIST(P->iface_list) && !iface_patt_find(&P->iface_list, ad->iface, ad->iface->addr)) /* Empty list is automagically treated as "*" */ return; if (ad->flags & IA_SECONDARY) return; if (ad->scope <= SCOPE_LINK) return; if (c & IF_CHANGE_DOWN) { net *n; DBG("dev_if_notify: %s:%I going down\n", ad->iface->name, ad->ip); n = net_find(p->table, ad->prefix, ad->pxlen); if (!n) { DBG("dev_if_notify: device shutdown: prefix not found\n"); return; } rte_update(p->table, n, p, p, NULL); } else if (c & IF_CHANGE_UP) { rta *a, A; net *n; rte *e; DBG("dev_if_notify: %s:%I going up\n", ad->iface->name, ad->ip); bzero(&A, sizeof(A)); A.proto = p; A.source = RTS_DEVICE; A.scope = SCOPE_UNIVERSE; A.cast = RTC_UNICAST; A.dest = RTD_DEVICE; A.iface = ad->iface; A.eattrs = NULL; a = rta_lookup(&A); n = net_get(p->table, ad->prefix, ad->pxlen); e = rte_get_temp(a); e->net = n; e->pflags = 0; rte_update(p->table, n, p, p, e); } } static struct proto * dev_init(struct proto_config *c) { struct proto *p = proto_new(c, sizeof(struct proto)); p->ifa_notify = dev_ifa_notify; return p; } static int dev_reconfigure(struct proto *p, struct proto_config *new) { struct rt_dev_config *o = (struct rt_dev_config *) p->cf; struct rt_dev_config *n = (struct rt_dev_config *) new; return iface_patts_equal(&o->iface_list, &n->iface_list, NULL); } static void dev_copy_config(struct proto_config *dest, struct proto_config *src) { struct rt_dev_config *d = (struct rt_dev_config *) dest; struct rt_dev_config *s = (struct rt_dev_config *) src; /* * We copy iface_list as ifaces can be shared by more direct protocols. * Copy suffices to be is shallow, because new nodes can be added, but * old nodes cannot be modified (although they contain internal lists). */ cfg_copy_list(&d->iface_list, &s->iface_list, sizeof(struct iface_patt)); } struct protocol proto_device = { name: "Direct", template: "direct%d", preference: DEF_PREF_DIRECT, init: dev_init, reconfigure: dev_reconfigure, copy_config: dev_copy_config }; bird-1.4.0/nest/iface.c0000644000103200001440000004264212244656136013625 0ustar feelausers/* * BIRD -- Management of Interfaces and Neighbor Cache * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Interfaces * * The interface module keeps track of all network interfaces in the * system and their addresses. * * Each interface is represented by an &iface structure which carries * interface capability flags (%IF_MULTIACCESS, %IF_BROADCAST etc.), * MTU, interface name and index and finally a linked list of network * prefixes assigned to the interface, each one represented by * struct &ifa. * * The interface module keeps a `soft-up' state for each &iface which * is a conjunction of link being up, the interface being of a `sane' * type and at least one IP address assigned to it. */ #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/iface.h" #include "nest/protocol.h" #include "nest/cli.h" #include "lib/resource.h" #include "lib/string.h" #include "conf/conf.h" static pool *if_pool; list iface_list; /** * ifa_dump - dump interface address * @a: interface address descriptor * * This function dumps contents of an &ifa to the debug output. */ void ifa_dump(struct ifa *a) { debug("\t%I, net %I/%-2d bc %I -> %I%s%s%s\n", a->ip, a->prefix, a->pxlen, a->brd, a->opposite, (a->flags & IF_UP) ? "" : " DOWN", (a->flags & IA_PRIMARY) ? "" : " SEC", (a->flags & IA_PEER) ? "PEER" : ""); } /** * if_dump - dump interface * @i: interface to dump * * This function dumps all information associated with a given * network interface to the debug output. */ void if_dump(struct iface *i) { struct ifa *a; debug("IF%d: %s", i->index, i->name); if (i->flags & IF_SHUTDOWN) debug(" SHUTDOWN"); if (i->flags & IF_UP) debug(" UP"); else debug(" DOWN"); if (i->flags & IF_ADMIN_UP) debug(" LINK-UP"); if (i->flags & IF_MULTIACCESS) debug(" MA"); if (i->flags & IF_BROADCAST) debug(" BC"); if (i->flags & IF_MULTICAST) debug(" MC"); if (i->flags & IF_LOOPBACK) debug(" LOOP"); if (i->flags & IF_IGNORE) debug(" IGN"); if (i->flags & IF_TMP_DOWN) debug(" TDOWN"); debug(" MTU=%d\n", i->mtu); WALK_LIST(a, i->addrs) { ifa_dump(a); ASSERT((a != i->addr) == !(a->flags & IA_PRIMARY)); } } /** * if_dump_all - dump all interfaces * * This function dumps information about all known network * interfaces to the debug output. */ void if_dump_all(void) { struct iface *i; debug("Known network interfaces:\n"); WALK_LIST(i, iface_list) if_dump(i); debug("Router ID: %08x\n", config->router_id); } static inline unsigned if_what_changed(struct iface *i, struct iface *j) { unsigned c; if (((i->flags ^ j->flags) & ~(IF_UP | IF_SHUTDOWN | IF_UPDATED | IF_ADMIN_UP | IF_LINK_UP | IF_TMP_DOWN | IF_JUST_CREATED)) || i->index != j->index) return IF_CHANGE_TOO_MUCH; c = 0; if ((i->flags ^ j->flags) & IF_UP) c |= (i->flags & IF_UP) ? IF_CHANGE_DOWN : IF_CHANGE_UP; if ((i->flags ^ j->flags) & IF_LINK_UP) c |= IF_CHANGE_LINK; if (i->mtu != j->mtu) c |= IF_CHANGE_MTU; return c; } static inline void if_copy(struct iface *to, struct iface *from) { to->flags = from->flags | (to->flags & IF_TMP_DOWN); to->mtu = from->mtu; } static inline void ifa_send_notify(struct proto *p, unsigned c, struct ifa *a) { if (p->ifa_notify) { if (p->debug & D_IFACES) log(L_TRACE "%s < %s address %I/%d on interface %s %s", p->name, (a->flags & IA_PRIMARY) ? "primary" : "secondary", a->prefix, a->pxlen, a->iface->name, (c & IF_CHANGE_UP) ? "added" : "removed"); p->ifa_notify(p, c, a); } } static void ifa_notify_change_dep(unsigned c, struct ifa *a) { struct proto *p; DBG("IFA change notification (%x) for %s:%I\n", c, a->iface->name, a->ip); WALK_LIST(p, active_proto_list) ifa_send_notify(p, c, a); } static inline void ifa_notify_change(unsigned c, struct ifa *a) { neigh_ifa_update(a); ifa_notify_change_dep(c, a); } static inline void if_send_notify(struct proto *p, unsigned c, struct iface *i) { if (p->if_notify) { if (p->debug & D_IFACES) log(L_TRACE "%s < interface %s %s", p->name, i->name, (c & IF_CHANGE_UP) ? "goes up" : (c & IF_CHANGE_DOWN) ? "goes down" : (c & IF_CHANGE_MTU) ? "changes MTU" : (c & IF_CHANGE_LINK) ? "changes link" : (c & IF_CHANGE_CREATE) ? "created" : "sends unknown event"); p->if_notify(p, c, i); } } static void if_notify_change(unsigned c, struct iface *i) { struct proto *p; struct ifa *a; if (i->flags & IF_JUST_CREATED) { i->flags &= ~IF_JUST_CREATED; c |= IF_CHANGE_CREATE | IF_CHANGE_MTU; } DBG("Interface change notification (%x) for %s\n", c, i->name); #ifdef LOCAL_DEBUG if_dump(i); #endif if (c & IF_CHANGE_UP) neigh_if_up(i); if (c & IF_CHANGE_DOWN) WALK_LIST(a, i->addrs) { a->flags = (i->flags & ~IA_FLAGS) | (a->flags & IA_FLAGS); ifa_notify_change_dep(IF_CHANGE_DOWN, a); } WALK_LIST(p, active_proto_list) if_send_notify(p, c, i); if (c & IF_CHANGE_UP) WALK_LIST(a, i->addrs) { a->flags = (i->flags & ~IA_FLAGS) | (a->flags & IA_FLAGS); ifa_notify_change_dep(IF_CHANGE_UP, a); } if ((c & (IF_CHANGE_UP | IF_CHANGE_DOWN | IF_CHANGE_LINK)) == IF_CHANGE_LINK) neigh_if_link(i); if (c & IF_CHANGE_DOWN) neigh_if_down(i); } static unsigned if_recalc_flags(struct iface *i, unsigned flags) { if ((flags & (IF_SHUTDOWN | IF_TMP_DOWN)) || !(flags & IF_ADMIN_UP) || !i->addr) flags &= ~IF_UP; else flags |= IF_UP; return flags; } static void if_change_flags(struct iface *i, unsigned flags) { unsigned of = i->flags; i->flags = if_recalc_flags(i, flags); if ((i->flags ^ of) & IF_UP) if_notify_change((i->flags & IF_UP) ? IF_CHANGE_UP : IF_CHANGE_DOWN, i); } /** * if_delete - remove interface * @old: interface * * This function is called by the low-level platform dependent code * whenever it notices an interface disappears. It is just a shorthand * for if_update(). */ void if_delete(struct iface *old) { struct iface f = {}; strncpy(f.name, old->name, sizeof(f.name)-1); f.flags = IF_SHUTDOWN; if_update(&f); } /** * if_update - update interface status * @new: new interface status * * if_update() is called by the low-level platform dependent code * whenever it notices an interface change. * * There exist two types of interface updates -- synchronous and asynchronous * ones. In the synchronous case, the low-level code calls if_start_update(), * scans all interfaces reported by the OS, uses if_update() and ifa_update() * to pass them to the core and then it finishes the update sequence by * calling if_end_update(). When working asynchronously, the sysdep code * calls if_update() and ifa_update() whenever it notices a change. * * if_update() will automatically notify all other modules about the change. */ struct iface * if_update(struct iface *new) { struct iface *i; unsigned c; WALK_LIST(i, iface_list) if (!strcmp(new->name, i->name)) { new->addr = i->addr; new->flags = if_recalc_flags(new, new->flags); c = if_what_changed(i, new); if (c & IF_CHANGE_TOO_MUCH) /* Changed a lot, convert it to down/up */ { DBG("Interface %s changed too much -- forcing down/up transition\n", i->name); if_change_flags(i, i->flags | IF_TMP_DOWN); rem_node(&i->n); new->addr = i->addr; memcpy(&new->addrs, &i->addrs, sizeof(i->addrs)); memcpy(i, new, sizeof(*i)); i->flags &= ~IF_UP; /* IF_TMP_DOWN will be added later */ goto newif; } if_copy(i, new); if (c) if_notify_change(c, i); i->flags |= IF_UPDATED; return i; } i = mb_alloc(if_pool, sizeof(struct iface)); memcpy(i, new, sizeof(*i)); init_list(&i->addrs); newif: init_list(&i->neighbors); i->flags |= IF_UPDATED | IF_TMP_DOWN; /* Tmp down as we don't have addresses yet */ add_tail(&iface_list, &i->n); return i; } void if_start_update(void) { struct iface *i; struct ifa *a; WALK_LIST(i, iface_list) { i->flags &= ~IF_UPDATED; WALK_LIST(a, i->addrs) a->flags &= ~IF_UPDATED; } } void if_end_partial_update(struct iface *i) { if (i->flags & IF_TMP_DOWN) if_change_flags(i, i->flags & ~IF_TMP_DOWN); } void if_end_update(void) { struct iface *i; struct ifa *a, *b; WALK_LIST(i, iface_list) { if (!(i->flags & IF_UPDATED)) if_change_flags(i, (i->flags & ~IF_ADMIN_UP) | IF_SHUTDOWN); else { WALK_LIST_DELSAFE(a, b, i->addrs) if (!(a->flags & IF_UPDATED)) ifa_delete(a); if_end_partial_update(i); } } } void if_flush_ifaces(struct proto *p) { if (p->debug & D_EVENTS) log(L_TRACE "%s: Flushing interfaces", p->name); if_start_update(); if_end_update(); } /** * if_feed_baby - advertise interfaces to a new protocol * @p: protocol to feed * * When a new protocol starts, this function sends it a series * of notifications about all existing interfaces. */ void if_feed_baby(struct proto *p) { struct iface *i; struct ifa *a; if (!p->if_notify && !p->ifa_notify) /* shortcut */ return; DBG("Announcing interfaces to new protocol %s\n", p->name); WALK_LIST(i, iface_list) { if_send_notify(p, IF_CHANGE_CREATE | ((i->flags & IF_UP) ? IF_CHANGE_UP : 0), i); if (i->flags & IF_UP) WALK_LIST(a, i->addrs) ifa_send_notify(p, IF_CHANGE_CREATE | IF_CHANGE_UP, a); } } /** * if_find_by_index - find interface by ifindex * @idx: ifindex * * This function finds an &iface structure corresponding to an interface * of the given index @idx. Returns a pointer to the structure or %NULL * if no such structure exists. */ struct iface * if_find_by_index(unsigned idx) { struct iface *i; WALK_LIST(i, iface_list) if (i->index == idx && !(i->flags & IF_SHUTDOWN)) return i; return NULL; } /** * if_find_by_name - find interface by name * @name: interface name * * This function finds an &iface structure corresponding to an interface * of the given name @name. Returns a pointer to the structure or %NULL * if no such structure exists. */ struct iface * if_find_by_name(char *name) { struct iface *i; WALK_LIST(i, iface_list) if (!strcmp(i->name, name)) return i; return NULL; } struct iface * if_get_by_name(char *name) { struct iface *i; if (i = if_find_by_name(name)) return i; /* No active iface, create a dummy */ i = mb_allocz(if_pool, sizeof(struct iface)); strncpy(i->name, name, sizeof(i->name)-1); i->flags = IF_SHUTDOWN; init_list(&i->addrs); init_list(&i->neighbors); add_tail(&iface_list, &i->n); return i; } struct ifa *kif_choose_primary(struct iface *i); static int ifa_recalc_primary(struct iface *i) { struct ifa *a = kif_choose_primary(i); if (a == i->addr) return 0; if (i->addr) i->addr->flags &= ~IA_PRIMARY; if (a) { a->flags |= IA_PRIMARY; rem_node(&a->n); add_head(&i->addrs, &a->n); } i->addr = a; return 1; } void ifa_recalc_all_primary_addresses(void) { struct iface *i; WALK_LIST(i, iface_list) { if (ifa_recalc_primary(i)) if_change_flags(i, i->flags | IF_TMP_DOWN); } } static inline int ifa_same(struct ifa *a, struct ifa *b) { return ipa_equal(a->ip, b->ip) && ipa_equal(a->prefix, b->prefix) && a->pxlen == b->pxlen; } /** * ifa_update - update interface address * @a: new interface address * * This function adds address information to a network * interface. It's called by the platform dependent code during * the interface update process described under if_update(). */ struct ifa * ifa_update(struct ifa *a) { struct iface *i = a->iface; struct ifa *b; WALK_LIST(b, i->addrs) if (ifa_same(b, a)) { if (ipa_equal(b->brd, a->brd) && ipa_equal(b->opposite, a->opposite) && b->scope == a->scope && !((b->flags ^ a->flags) & IA_PEER)) { b->flags |= IF_UPDATED; return b; } ifa_delete(b); break; } #ifndef IPV6 if ((i->flags & IF_BROADCAST) && !ipa_nonzero(a->brd)) log(L_ERR "Missing broadcast address for interface %s", i->name); #endif b = mb_alloc(if_pool, sizeof(struct ifa)); memcpy(b, a, sizeof(struct ifa)); add_tail(&i->addrs, &b->n); b->flags = (i->flags & ~IA_FLAGS) | (a->flags & IA_FLAGS); if (ifa_recalc_primary(i)) if_change_flags(i, i->flags | IF_TMP_DOWN); if (b->flags & IF_UP) ifa_notify_change(IF_CHANGE_CREATE | IF_CHANGE_UP, b); return b; } /** * ifa_delete - remove interface address * @a: interface address * * This function removes address information from a network * interface. It's called by the platform dependent code during * the interface update process described under if_update(). */ void ifa_delete(struct ifa *a) { struct iface *i = a->iface; struct ifa *b; WALK_LIST(b, i->addrs) if (ifa_same(b, a)) { rem_node(&b->n); if (b->flags & IF_UP) { b->flags &= ~IF_UP; ifa_notify_change(IF_CHANGE_DOWN, b); } if (b->flags & IA_PRIMARY) { if_change_flags(i, i->flags | IF_TMP_DOWN); ifa_recalc_primary(i); } mb_free(b); return; } } u32 if_choose_router_id(struct iface_patt *mask, u32 old_id) { #ifndef IPV6 struct iface *i; struct ifa *a, *b; b = NULL; WALK_LIST(i, iface_list) { if (!(i->flags & IF_ADMIN_UP) || (i->flags & IF_SHUTDOWN)) continue; WALK_LIST(a, i->addrs) { if (a->flags & IA_SECONDARY) continue; if (a->scope <= SCOPE_LINK) continue; /* Check pattern if specified */ if (mask && !iface_patt_match(mask, i, a)) continue; /* No pattern or pattern matched */ if (!b || ipa_to_u32(a->ip) < ipa_to_u32(b->ip)) b = a; } } if (!b) return 0; u32 id = ipa_to_u32(b->ip); if (id != old_id) log(L_INFO "Chosen router ID %R according to interface %s", id, b->iface->name); return id; #else return 0; #endif } /** * if_init - initialize interface module * * This function is called during BIRD startup to initialize * all data structures of the interface module. */ void if_init(void) { if_pool = rp_new(&root_pool, "Interfaces"); init_list(&iface_list); neigh_init(if_pool); } /* * Interface Pattern Lists */ int iface_patt_match(struct iface_patt *ifp, struct iface *i, struct ifa *a) { struct iface_patt_node *p; WALK_LIST(p, ifp->ipn_list) { char *t = p->pattern; int pos = p->positive; if (t) { if (*t == '-') { t++; pos = !pos; } if (!patmatch(t, i->name)) continue; } if (p->pxlen == 0) return pos; if (!a) continue; if (ipa_in_net(a->ip, p->prefix, p->pxlen)) return pos; if ((a->flags & IA_PEER) && ipa_in_net(a->opposite, p->prefix, p->pxlen)) return pos; continue; } return 0; } struct iface_patt * iface_patt_find(list *l, struct iface *i, struct ifa *a) { struct iface_patt *p; WALK_LIST(p, *l) if (iface_patt_match(p, i, a)) return p; return NULL; } static int iface_plists_equal(struct iface_patt *pa, struct iface_patt *pb) { struct iface_patt_node *x, *y; x = HEAD(pa->ipn_list); y = HEAD(pb->ipn_list); while (x->n.next && y->n.next) { if ((x->positive != y->positive) || (!x->pattern && y->pattern) || /* This nasty lines where written by me... :-( Feela */ (!y->pattern && x->pattern) || ((x->pattern != y->pattern) && strcmp(x->pattern, y->pattern)) || !ipa_equal(x->prefix, y->prefix) || (x->pxlen != y->pxlen)) return 0; x = (void *) x->n.next; y = (void *) y->n.next; } return (!x->n.next && !y->n.next); } int iface_patts_equal(list *a, list *b, int (*comp)(struct iface_patt *, struct iface_patt *)) { struct iface_patt *x, *y; x = HEAD(*a); y = HEAD(*b); while (x->n.next && y->n.next) { if (!iface_plists_equal(x, y) || (comp && !comp(x, y))) return 0; x = (void *) x->n.next; y = (void *) y->n.next; } return (!x->n.next && !y->n.next); } /* * CLI commands. */ static void if_show_addr(struct ifa *a) { byte opp[STD_ADDRESS_P_LENGTH + 16]; if (ipa_nonzero(a->opposite)) bsprintf(opp, ", opposite %I", a->opposite); else opp[0] = 0; cli_msg(-1003, "\t%I/%d (%s%s, scope %s)", a->ip, a->pxlen, (a->flags & IA_PRIMARY) ? "Primary" : (a->flags & IA_SECONDARY) ? "Secondary" : "Unselected", opp, ip_scope_text(a->scope)); } void if_show(void) { struct iface *i; struct ifa *a; char *type; WALK_LIST(i, iface_list) { if (i->flags & IF_SHUTDOWN) continue; cli_msg(-1001, "%s %s (index=%d)", i->name, (i->flags & IF_UP) ? "up" : "DOWN", i->index); if (!(i->flags & IF_MULTIACCESS)) type = "PtP"; else type = "MultiAccess"; cli_msg(-1004, "\t%s%s%s Admin%s Link%s%s%s MTU=%d", type, (i->flags & IF_BROADCAST) ? " Broadcast" : "", (i->flags & IF_MULTICAST) ? " Multicast" : "", (i->flags & IF_ADMIN_UP) ? "Up" : "Down", (i->flags & IF_LINK_UP) ? "Up" : "Down", (i->flags & IF_LOOPBACK) ? " Loopback" : "", (i->flags & IF_IGNORE) ? " Ignored" : "", i->mtu); if (i->addr) if_show_addr(i->addr); WALK_LIST(a, i->addrs) if (a != i->addr) if_show_addr(a); } cli_msg(0, ""); } void if_show_summary(void) { struct iface *i; byte addr[STD_ADDRESS_P_LENGTH + 16]; cli_msg(-2005, "interface state address"); WALK_LIST(i, iface_list) { if (i->addr) bsprintf(addr, "%I/%d", i->addr->ip, i->addr->pxlen); else addr[0] = 0; cli_msg(-1005, "%-9s %-5s %s", i->name, (i->flags & IF_UP) ? "up" : "DOWN", addr); } cli_msg(0, ""); } bird-1.4.0/nest/cmds.c0000644000103200001440000000467712244117701013500 0ustar feelausers/* * BIRD Internet Routing Daemon -- CLI Commands Which Don't Fit Anywhere Else * * (c) 2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include "nest/bird.h" #include "nest/route.h" #include "nest/cli.h" #include "conf/conf.h" #include "nest/cmds.h" #include "lib/string.h" #include "lib/resource.h" #include "filter/filter.h" extern int shutting_down; extern int configuring; void cmd_show_status(void) { byte tim[TM_DATETIME_BUFFER_SIZE]; cli_msg(-1000, "BIRD " BIRD_VERSION); tm_format_datetime(tim, &config->tf_base, now); cli_msg(-1011, "Router ID is %R", config->router_id); cli_msg(-1011, "Current server time is %s", tim); tm_format_datetime(tim, &config->tf_base, boot_time); cli_msg(-1011, "Last reboot on %s", tim); tm_format_datetime(tim, &config->tf_base, config->load_time); cli_msg(-1011, "Last reconfiguration on %s", tim); if (shutting_down) cli_msg(13, "Shutdown in progress"); else if (configuring) cli_msg(13, "Reconfiguration in progress"); else cli_msg(13, "Daemon is up and running"); } void cmd_show_symbols(struct sym_show_data *sd) { int pos = 0; struct symbol *sym = sd->sym; if (sym) cli_msg(1010, "%-8s\t%s", sym->name, cf_symbol_class_name(sym)); else { while (sym = cf_walk_symbols(config, sym, &pos)) { if (sd->type && (sym->class != sd->type)) continue; cli_msg(-1010, "%-8s\t%s", sym->name, cf_symbol_class_name(sym)); } cli_msg(0, ""); } } static void print_size(char *dsc, size_t val) { char *px = " kMG"; int i = 0; while ((val >= 10000) && (i < 3)) { val = (val + 512) / 1024; i++; } cli_msg(-1018, "%-17s %4u %cB", dsc, (unsigned) val, px[i]); } extern pool *rt_table_pool; extern pool *rta_pool; extern pool *roa_pool; extern pool *proto_pool; void cmd_show_memory(void) { cli_msg(-1018, "BIRD memory usage"); print_size("Routing tables:", rmemsize(rt_table_pool)); print_size("Route attributes:", rmemsize(rta_pool)); print_size("ROA tables:", rmemsize(roa_pool)); print_size("Protocols:", rmemsize(proto_pool)); print_size("Total:", rmemsize(&root_pool)); cli_msg(0, ""); } void cmd_eval(struct f_inst *expr) { struct f_val v = f_eval(expr, this_cli->parser_pool); if (v.type == T_RETURN) { cli_msg(8008, "runtime error"); return; } buffer buf; LOG_BUFFER_INIT(buf); val_format(v, &buf); cli_msg(23, "%s", buf.start); } bird-1.4.0/nest/rt-table.c0000644000103200001440000016056512244117701014263 0ustar feelausers/* * BIRD -- Routing Tables * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Routing tables * * Routing tables are probably the most important structures BIRD uses. They * hold all the information about known networks, the associated routes and * their attributes. * * There are multiple routing tables (a primary one together with any * number of secondary ones if requested by the configuration). Each table * is basically a FIB containing entries describing the individual * destination networks. For each network (represented by structure &net), * there is a one-way linked list of route entries (&rte), the first entry * on the list being the best one (i.e., the one we currently use * for routing), the order of the other ones is undetermined. * * The &rte contains information specific to the route (preference, protocol * metrics, time of last modification etc.) and a pointer to a &rta structure * (see the route attribute module for a precise explanation) holding the * remaining route attributes which are expected to be shared by multiple * routes in order to conserve memory. */ #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/route.h" #include "nest/protocol.h" #include "nest/cli.h" #include "nest/iface.h" #include "lib/resource.h" #include "lib/event.h" #include "lib/string.h" #include "conf/conf.h" #include "filter/filter.h" #include "lib/string.h" #include "lib/alloca.h" pool *rt_table_pool; static slab *rte_slab; static linpool *rte_update_pool; static list routing_tables; static void rt_format_via(rte *e, byte *via); static void rt_free_hostcache(rtable *tab); static void rt_notify_hostcache(rtable *tab, net *net); static void rt_update_hostcache(rtable *tab); static void rt_next_hop_update(rtable *tab); static inline void rt_schedule_gc(rtable *tab); /* Like fib_route(), but skips empty net entries */ static net * net_route(rtable *tab, ip_addr a, int len) { ip_addr a0; net *n; while (len >= 0) { a0 = ipa_and(a, ipa_mkmask(len)); n = fib_find(&tab->fib, &a0, len); if (n && rte_is_valid(n->routes)) return n; len--; } return NULL; } static void rte_init(struct fib_node *N) { net *n = (net *) N; N->flags = 0; n->routes = NULL; } /** * rte_find - find a route * @net: network node * @p: protocol * * The rte_find() function returns a route for destination @net * which belongs has been defined by protocol @p. */ rte * rte_find(net *net, struct proto *p) { rte *e = net->routes; while (e && e->attrs->proto != p) e = e->next; return e; } /** * rte_get_temp - get a temporary &rte * @a: attributes to assign to the new route (a &rta; in case it's * un-cached, rte_update() will create a cached copy automatically) * * Create a temporary &rte and bind it with the attributes @a. * Also set route preference to the default preference set for * the protocol. */ rte * rte_get_temp(rta *a) { rte *e = sl_alloc(rte_slab); e->attrs = a; e->flags = 0; e->pref = a->proto->preference; return e; } rte * rte_do_cow(rte *r) { rte *e = sl_alloc(rte_slab); memcpy(e, r, sizeof(rte)); e->attrs = rta_clone(r->attrs); e->flags = 0; return e; } static int /* Actually better or at least as good as */ rte_better(rte *new, rte *old) { int (*better)(rte *, rte *); if (!rte_is_valid(old)) return 1; if (!rte_is_valid(new)) return 0; if (new->pref > old->pref) return 1; if (new->pref < old->pref) return 0; if (new->attrs->proto->proto != old->attrs->proto->proto) { /* * If the user has configured protocol preferences, so that two different protocols * have the same preference, try to break the tie by comparing addresses. Not too * useful, but keeps the ordering of routes unambiguous. */ return new->attrs->proto->proto > old->attrs->proto->proto; } if (better = new->attrs->proto->rte_better) return better(new, old); return 0; } static void rte_trace(struct proto *p, rte *e, int dir, char *msg) { byte via[STD_ADDRESS_P_LENGTH+32]; rt_format_via(e, via); log(L_TRACE "%s %c %s %I/%d %s", p->name, dir, msg, e->net->n.prefix, e->net->n.pxlen, via); } static inline void rte_trace_in(unsigned int flag, struct proto *p, rte *e, char *msg) { if (p->debug & flag) rte_trace(p, e, '>', msg); } static inline void rte_trace_out(unsigned int flag, struct proto *p, rte *e, char *msg) { if (p->debug & flag) rte_trace(p, e, '<', msg); } static rte * export_filter(struct announce_hook *ah, rte *rt0, rte **rt_free, ea_list **tmpa, int silent) { struct proto *p = ah->proto; struct filter *filter = ah->out_filter; struct proto_stats *stats = ah->stats; ea_list *tmpb = NULL; rte *rt; int v; rt = rt0; *rt_free = NULL; /* If called does not care for eattrs, we prepare one internally */ if (!tmpa) { struct proto *src = rt->attrs->proto; tmpb = src->make_tmp_attrs ? src->make_tmp_attrs(rt, rte_update_pool) : NULL; tmpa = &tmpb; } v = p->import_control ? p->import_control(p, &rt, tmpa, rte_update_pool) : 0; if (v < 0) { if (silent) goto reject; stats->exp_updates_rejected++; if (v == RIC_REJECT) rte_trace_out(D_FILTERS, p, rt, "rejected by protocol"); goto reject; } if (v > 0) { if (!silent) rte_trace_out(D_FILTERS, p, rt, "forced accept by protocol"); goto accept; } v = filter && ((filter == FILTER_REJECT) || (f_run(filter, &rt, tmpa, rte_update_pool, FF_FORCE_TMPATTR) > F_ACCEPT)); if (v) { if (silent) goto reject; stats->exp_updates_filtered++; rte_trace_out(D_FILTERS, p, rt, "filtered out"); goto reject; } accept: if (rt != rt0) *rt_free = rt; return rt; reject: /* Discard temporary rte */ if (rt != rt0) rte_free(rt); return NULL; } static void do_rt_notify(struct announce_hook *ah, net *net, rte *new, rte *old, ea_list *tmpa, int refeed) { struct proto *p = ah->proto; struct proto_stats *stats = ah->stats; /* * First, apply export limit. * * Export route limits has several problems. Because exp_routes * counter is reset before refeed, we don't really know whether * limit is breached and whether the update is new or not. Therefore * the number of really exported routes may exceed the limit * temporarily (routes exported before and new routes in refeed). * * Minor advantage is that if the limit is decreased and refeed is * requested, the number of exported routes really decrease. * * Second problem is that with export limits, we don't know whether * old was really exported (it might be blocked by limit). When a * withdraw is exported, we announce it even when the previous * update was blocked. This is not a big issue, but the same problem * is in updating exp_routes counter. Therefore, to be consistent in * increases and decreases of exp_routes, we count exported routes * regardless of blocking by limits. * * Similar problem is in handling updates - when a new route is * received and blocking is active, the route would be blocked, but * when an update for the route will be received later, the update * would be propagated (as old != NULL). Therefore, we have to block * also non-new updates (contrary to import blocking). */ struct proto_limit *l = ah->out_limit; if (l && new) { if ((!old || refeed) && (stats->exp_routes >= l->limit)) proto_notify_limit(ah, l, PLD_OUT, stats->exp_routes); if (l->state == PLS_BLOCKED) { stats->exp_routes++; /* see note above */ stats->exp_updates_rejected++; rte_trace_out(D_FILTERS, p, new, "rejected [limit]"); new = NULL; if (!old) return; } } if (new) stats->exp_updates_accepted++; else stats->exp_withdraws_accepted++; /* Hack: We do not decrease exp_routes during refeed, we instead reset exp_routes at the start of refeed. */ if (new) stats->exp_routes++; if (old && !refeed) stats->exp_routes--; if (p->debug & D_ROUTES) { if (new && old) rte_trace_out(D_ROUTES, p, new, "replaced"); else if (new) rte_trace_out(D_ROUTES, p, new, "added"); else if (old) rte_trace_out(D_ROUTES, p, old, "removed"); } if (!new) p->rt_notify(p, ah->table, net, NULL, old, NULL); else if (tmpa) { ea_list *t = tmpa; while (t->next) t = t->next; t->next = new->attrs->eattrs; p->rt_notify(p, ah->table, net, new, old, tmpa); t->next = NULL; } else p->rt_notify(p, ah->table, net, new, old, new->attrs->eattrs); } static void rt_notify_basic(struct announce_hook *ah, net *net, rte *new, rte *old, ea_list *tmpa, int refeed) { // struct proto *p = ah->proto; struct proto_stats *stats = ah->stats; rte *new_free = NULL; rte *old_free = NULL; if (new) stats->exp_updates_received++; else stats->exp_withdraws_received++; /* * This is a tricky part - we don't know whether route 'old' was * exported to protocol 'p' or was filtered by the export filter. * We try to run the export filter to know this to have a correct * value in 'old' argument of rte_update (and proper filter value) * * FIXME - this is broken because 'configure soft' may change * filters but keep routes. Refeed is expected to be called after * change of the filters and with old == new, therefore we do not * even try to run the filter on an old route, This may lead to * 'spurious withdraws' but ensure that there are no 'missing * withdraws'. * * This is not completely safe as there is a window between * reconfiguration and the end of refeed - if a newly filtered * route disappears during this period, proper withdraw is not * sent (because old would be also filtered) and the route is * not refeeded (because it disappeared before that). */ if (new) new = export_filter(ah, new, &new_free, &tmpa, 0); if (old && !refeed) old = export_filter(ah, old, &old_free, NULL, 1); /* FIXME - This is broken because of incorrect 'old' value (see above) */ if (!new && !old) return; do_rt_notify(ah, net, new, old, tmpa, refeed); /* Discard temporary rte's */ if (new_free) rte_free(new_free); if (old_free) rte_free(old_free); } static void rt_notify_accepted(struct announce_hook *ah, net *net, rte *new_changed, rte *old_changed, rte *before_old, ea_list *tmpa, int feed) { // struct proto *p = ah->proto; struct proto_stats *stats = ah->stats; rte *new_best = NULL; rte *old_best = NULL; rte *new_free = NULL; rte *old_free = NULL; rte *r; /* Used to track whether we met old_changed position. If before_old is NULL old_changed was the first and we met it implicitly before current best route. */ int old_meet = old_changed && !before_old; /* Note that before_old is either NULL or valid (not rejected) route. If old_changed is valid, before_old have to be too. If old changed route was not valid, caller must use NULL for both old_changed and before_old. */ if (new_changed) stats->exp_updates_received++; else stats->exp_withdraws_received++; /* First, find the new_best route - first accepted by filters */ for (r=net->routes; rte_is_valid(r); r=r->next) { if (new_best = export_filter(ah, r, &new_free, &tmpa, 0)) break; /* Note if we walked around the position of old_changed route */ if (r == before_old) old_meet = 1; } /* * Second, handle the feed case. That means we do not care for * old_best. It is NULL for feed, and the new_best for refeed. * For refeed, there is a hack similar to one in rt_notify_basic() * to ensure withdraws in case of changed filters */ if (feed) { if (feed == 2) /* refeed */ old_best = new_best ? new_best : (rte_is_valid(net->routes) ? net->routes : NULL); else old_best = NULL; if (!new_best && !old_best) return; goto found; } /* * Now, we find the old_best route. Generally, it is the same as the * new_best, unless new_best is the same as new_changed or * old_changed is accepted before new_best. * * There are four cases: * * - We would find and accept old_changed before new_best, therefore * old_changed is old_best. In remaining cases we suppose this * is not true. * * - We found no new_best, therefore there is also no old_best and * we ignore this withdraw. * * - We found new_best different than new_changed, therefore * old_best is the same as new_best and we ignore this update. * * - We found new_best the same as new_changed, therefore it cannot * be old_best and we have to continue search for old_best. */ /* First case */ if (old_meet) if (old_best = export_filter(ah, old_changed, &old_free, NULL, 1)) goto found; /* Second case */ if (!new_best) return; /* Third case, we use r instead of new_best, because export_filter() could change it */ if (r != new_changed) { if (new_free) rte_free(new_free); return; } /* Fourth case */ for (r=r->next; rte_is_valid(r); r=r->next) { if (old_best = export_filter(ah, r, &old_free, NULL, 1)) goto found; if (r == before_old) if (old_best = export_filter(ah, old_changed, &old_free, NULL, 1)) goto found; } /* Implicitly, old_best is NULL and new_best is non-NULL */ found: do_rt_notify(ah, net, new_best, old_best, tmpa, (feed == 2)); /* Discard temporary rte's */ if (new_free) rte_free(new_free); if (old_free) rte_free(old_free); } /** * rte_announce - announce a routing table change * @tab: table the route has been added to * @type: type of route announcement (RA_OPTIMAL or RA_ANY) * @net: network in question * @new: the new route to be announced * @old: the previous route for the same network * @tmpa: a list of temporary attributes belonging to the new route * * This function gets a routing table update and announces it * to all protocols that acccepts given type of route announcement * and are connected to the same table by their announcement hooks. * * Route announcement of type RA_OPTIMAL si generated when optimal * route (in routing table @tab) changes. In that case @old stores the * old optimal route. * * Route announcement of type RA_ANY si generated when any route (in * routing table @tab) changes In that case @old stores the old route * from the same protocol. * * For each appropriate protocol, we first call its import_control() * hook which performs basic checks on the route (each protocol has a * right to veto or force accept of the route before any filter is * asked) and adds default values of attributes specific to the new * protocol (metrics, tags etc.). Then it consults the protocol's * export filter and if it accepts the route, the rt_notify() hook of * the protocol gets called. */ static void rte_announce(rtable *tab, unsigned type, net *net, rte *new, rte *old, rte *before_old, ea_list *tmpa) { if (!rte_is_valid(old)) old = before_old = NULL; if (!rte_is_valid(new)) new = NULL; if (!old && !new) return; if (type == RA_OPTIMAL) { if (new) new->attrs->proto->stats.pref_routes++; if (old) old->attrs->proto->stats.pref_routes--; if (tab->hostcache) rt_notify_hostcache(tab, net); } struct announce_hook *a; WALK_LIST(a, tab->hooks) { ASSERT(a->proto->core_state == FS_HAPPY || a->proto->core_state == FS_FEEDING); if (a->proto->accept_ra_types == type) if (type == RA_ACCEPTED) rt_notify_accepted(a, net, new, old, before_old, tmpa, 0); else rt_notify_basic(a, net, new, old, tmpa, 0); } } static inline int rte_validate(rte *e) { int c; net *n = e->net; if ((n->n.pxlen > BITS_PER_IP_ADDRESS) || !ip_is_prefix(n->n.prefix,n->n.pxlen)) { log(L_WARN "Ignoring bogus prefix %I/%d received via %s", n->n.prefix, n->n.pxlen, e->sender->proto->name); return 0; } c = ipa_classify_net(n->n.prefix); if ((c < 0) || !(c & IADDR_HOST) || ((c & IADDR_SCOPE_MASK) <= SCOPE_LINK)) { log(L_WARN "Ignoring bogus route %I/%d received via %s", n->n.prefix, n->n.pxlen, e->sender->proto->name); return 0; } return 1; } /** * rte_free - delete a &rte * @e: &rte to be deleted * * rte_free() deletes the given &rte from the routing table it's linked to. */ void rte_free(rte *e) { if (e->attrs->aflags & RTAF_CACHED) rta_free(e->attrs); sl_free(rte_slab, e); } static inline void rte_free_quick(rte *e) { rta_free(e->attrs); sl_free(rte_slab, e); } static int rte_same(rte *x, rte *y) { return x->attrs == y->attrs && x->flags == y->flags && x->pflags == y->pflags && x->pref == y->pref && (!x->attrs->proto->rte_same || x->attrs->proto->rte_same(x, y)); } static inline int rte_is_ok(rte *e) { return e && !rte_is_filtered(e); } static void rte_recalculate(struct announce_hook *ah, net *net, rte *new, ea_list *tmpa, struct proto *src) { struct proto *p = ah->proto; struct rtable *table = ah->table; struct proto_stats *stats = ah->stats; static struct rate_limit rl_pipe; rte *before_old = NULL; rte *old_best = net->routes; rte *old = NULL; rte **k; k = &net->routes; /* Find and remove original route from the same protocol */ while (old = *k) { if (old->attrs->proto == src) { /* If there is the same route in the routing table but from * a different sender, then there are two paths from the * source protocol to this routing table through transparent * pipes, which is not allowed. * * We log that and ignore the route. If it is withdraw, we * ignore it completely (there might be 'spurious withdraws', * see FIXME in do_rte_announce()) */ if (old->sender->proto != p) { if (new) { log_rl(&rl_pipe, L_ERR "Pipe collision detected when sending %I/%d to table %s", net->n.prefix, net->n.pxlen, table->name); rte_free_quick(new); } return; } if (new && rte_same(old, new)) { /* No changes, ignore the new route */ if (!rte_is_filtered(new)) { stats->imp_updates_ignored++; rte_trace_in(D_ROUTES, p, new, "ignored"); } rte_free_quick(new); #ifdef CONFIG_RIP /* lastmod is used internally by RIP as the last time when the route was received. */ if (src->proto == &proto_rip) old->lastmod = now; #endif return; } *k = old->next; break; } k = &old->next; before_old = old; } if (!old) before_old = NULL; if (!old && !new) { stats->imp_withdraws_ignored++; return; } int new_ok = rte_is_ok(new); int old_ok = rte_is_ok(old); struct proto_limit *l = ah->rx_limit; if (l && !old && new) { u32 all_routes = stats->imp_routes + stats->filt_routes; if (all_routes >= l->limit) proto_notify_limit(ah, l, PLD_RX, all_routes); if (l->state == PLS_BLOCKED) { /* In receive limit the situation is simple, old is NULL so we just free new and exit like nothing happened */ stats->imp_updates_ignored++; rte_trace_in(D_FILTERS, p, new, "ignored [limit]"); rte_free_quick(new); return; } } l = ah->in_limit; if (l && !old_ok && new_ok) { if (stats->imp_routes >= l->limit) proto_notify_limit(ah, l, PLD_IN, stats->imp_routes); if (l->state == PLS_BLOCKED) { /* In import limit the situation is more complicated. We shouldn't just drop the route, we should handle it like it was filtered. We also have to continue the route processing if old or new is non-NULL, but we should exit if both are NULL as this case is probably assumed to be already handled. */ stats->imp_updates_ignored++; rte_trace_in(D_FILTERS, p, new, "ignored [limit]"); if (ah->in_keep_filtered) new->flags |= REF_FILTERED; else { rte_free_quick(new); new = NULL; } /* Note that old && !new could be possible when ah->in_keep_filtered changed in the recent past. */ if (!old && !new) return; new_ok = 0; goto skip_stats1; } } if (new_ok) stats->imp_updates_accepted++; else if (old_ok) stats->imp_withdraws_accepted++; else stats->imp_withdraws_ignored++; skip_stats1: if (new) rte_is_filtered(new) ? stats->filt_routes++ : stats->imp_routes++; if (old) rte_is_filtered(old) ? stats->filt_routes-- : stats->imp_routes--; if (table->config->sorted) { /* If routes are sorted, just insert new route to appropriate position */ if (new) { if (before_old && !rte_better(new, before_old)) k = &before_old->next; else k = &net->routes; for (; *k; k=&(*k)->next) if (rte_better(new, *k)) break; new->next = *k; *k = new; } } else { /* If routes are not sorted, find the best route and move it on the first position. There are several optimized cases. */ if (src->rte_recalculate && src->rte_recalculate(table, net, new, old, old_best)) goto do_recalculate; if (new && rte_better(new, old_best)) { /* The first case - the new route is cleary optimal, we link it at the first position */ new->next = net->routes; net->routes = new; } else if (old == old_best) { /* The second case - the old best route disappeared, we add the new route (if we have any) to the list (we don't care about position) and then we elect the new optimal route and relink that route at the first position and announce it. New optimal route might be NULL if there is no more routes */ do_recalculate: /* Add the new route to the list */ if (new) { new->next = net->routes; net->routes = new; } /* Find a new optimal route (if there is any) */ if (net->routes) { rte **bp = &net->routes; for (k=&(*bp)->next; *k; k=&(*k)->next) if (rte_better(*k, *bp)) bp = k; /* And relink it */ rte *best = *bp; *bp = best->next; best->next = net->routes; net->routes = best; } } else if (new) { /* The third case - the new route is not better than the old best route (therefore old_best != NULL) and the old best route was not removed (therefore old_best == net->routes). We just link the new route after the old best route. */ ASSERT(net->routes != NULL); new->next = net->routes->next; net->routes->next = new; } /* The fourth (empty) case - suboptimal route was removed, nothing to do */ } if (new) new->lastmod = now; /* Log the route change */ if (p->debug & D_ROUTES) { if (new_ok) rte_trace(p, new, '>', new == net->routes ? "added [best]" : "added"); else if (old_ok) { if (old != old_best) rte_trace(p, old, '>', "removed"); else if (rte_is_ok(net->routes)) rte_trace(p, old, '>', "removed [replaced]"); else rte_trace(p, old, '>', "removed [sole]"); } } /* Propagate the route change */ rte_announce(table, RA_ANY, net, new, old, NULL, tmpa); if (net->routes != old_best) rte_announce(table, RA_OPTIMAL, net, net->routes, old_best, NULL, tmpa); if (table->config->sorted) rte_announce(table, RA_ACCEPTED, net, new, old, before_old, tmpa); if (!net->routes && (table->gc_counter++ >= table->config->gc_max_ops) && (table->gc_time + table->config->gc_min_time <= now)) rt_schedule_gc(table); if (old_ok && p->rte_remove) p->rte_remove(net, old); if (new_ok && p->rte_insert) p->rte_insert(net, new); if (old) rte_free_quick(old); } static int rte_update_nest_cnt; /* Nesting counter to allow recursive updates */ static inline void rte_update_lock(void) { rte_update_nest_cnt++; } static inline void rte_update_unlock(void) { if (!--rte_update_nest_cnt) lp_flush(rte_update_pool); } static inline void rte_hide_dummy_routes(net *net, rte **dummy) { if (net->routes && net->routes->attrs->source == RTS_DUMMY) { *dummy = net->routes; net->routes = (*dummy)->next; } } static inline void rte_unhide_dummy_routes(net *net, rte **dummy) { if (*dummy) { (*dummy)->next = net->routes; net->routes = *dummy; } } /** * rte_update - enter a new update to a routing table * @table: table to be updated * @ah: pointer to table announce hook * @net: network node * @p: protocol submitting the update * @src: protocol originating the update * @new: a &rte representing the new route or %NULL for route removal. * * This function is called by the routing protocols whenever they discover * a new route or wish to update/remove an existing route. The right announcement * sequence is to build route attributes first (either un-cached with @aflags set * to zero or a cached one using rta_lookup(); in this case please note that * you need to increase the use count of the attributes yourself by calling * rta_clone()), call rte_get_temp() to obtain a temporary &rte, fill in all * the appropriate data and finally submit the new &rte by calling rte_update(). * * @src specifies the protocol that originally created the route and the meaning * of protocol-dependent data of @new. If @new is not %NULL, @src have to be the * same value as @new->attrs->proto. @p specifies the protocol that called * rte_update(). In most cases it is the same protocol as @src. rte_update() * stores @p in @new->sender; * * When rte_update() gets any route, it automatically validates it (checks, * whether the network and next hop address are valid IP addresses and also * whether a normal routing protocol doesn't try to smuggle a host or link * scope route to the table), converts all protocol dependent attributes stored * in the &rte to temporary extended attributes, consults import filters of the * protocol to see if the route should be accepted and/or its attributes modified, * stores the temporary attributes back to the &rte. * * Now, having a "public" version of the route, we * automatically find any old route defined by the protocol @src * for network @n, replace it by the new one (or removing it if @new is %NULL), * recalculate the optimal route for this destination and finally broadcast * the change (if any) to all routing protocols by calling rte_announce(). * * All memory used for attribute lists and other temporary allocations is taken * from a special linear pool @rte_update_pool and freed when rte_update() * finishes. */ void rte_update2(struct announce_hook *ah, net *net, rte *new, struct proto *src) { struct proto *p = ah->proto; struct proto_stats *stats = ah->stats; struct filter *filter = ah->in_filter; ea_list *tmpa = NULL; rte *dummy = NULL; rte_update_lock(); if (new) { new->sender = ah; stats->imp_updates_received++; if (!rte_validate(new)) { rte_trace_in(D_FILTERS, p, new, "invalid"); stats->imp_updates_invalid++; goto drop; } if (filter == FILTER_REJECT) { stats->imp_updates_filtered++; rte_trace_in(D_FILTERS, p, new, "filtered out"); if (! ah->in_keep_filtered) goto drop; /* new is a private copy, i could modify it */ new->flags |= REF_FILTERED; } else { if (src->make_tmp_attrs) tmpa = src->make_tmp_attrs(new, rte_update_pool); if (filter && (filter != FILTER_REJECT)) { ea_list *old_tmpa = tmpa; int fr = f_run(filter, &new, &tmpa, rte_update_pool, 0); if (fr > F_ACCEPT) { stats->imp_updates_filtered++; rte_trace_in(D_FILTERS, p, new, "filtered out"); if (! ah->in_keep_filtered) goto drop; new->flags |= REF_FILTERED; } if (tmpa != old_tmpa && src->store_tmp_attrs) src->store_tmp_attrs(new, tmpa); } } if (!(new->attrs->aflags & RTAF_CACHED)) /* Need to copy attributes */ new->attrs = rta_lookup(new->attrs); new->flags |= REF_COW; } else stats->imp_withdraws_received++; recalc: rte_hide_dummy_routes(net, &dummy); rte_recalculate(ah, net, new, tmpa, src); rte_unhide_dummy_routes(net, &dummy); rte_update_unlock(); return; drop: rte_free(new); new = NULL; tmpa = NULL; goto recalc; } /* Independent call to rte_announce(), used from next hop recalculation, outside of rte_update(). new must be non-NULL */ static inline void rte_announce_i(rtable *tab, unsigned type, net *n, rte *new, rte *old) { struct proto *src; ea_list *tmpa; rte_update_lock(); src = new->attrs->proto; tmpa = src->make_tmp_attrs ? src->make_tmp_attrs(new, rte_update_pool) : NULL; rte_announce(tab, type, n, new, old, NULL, tmpa); rte_update_unlock(); } void rte_discard(rtable *t, rte *old) /* Non-filtered route deletion, used during garbage collection */ { rte_update_lock(); rte_recalculate(old->sender, old->net, NULL, NULL, old->attrs->proto); rte_update_unlock(); } /* Check rtable for best route to given net whether it would be exported do p */ int rt_examine(rtable *t, ip_addr prefix, int pxlen, struct proto *p, struct filter *filter) { net *n = net_find(t, prefix, pxlen); rte *rt = n ? n->routes : NULL; if (!rte_is_valid(rt)) return 0; rte_update_lock(); /* Rest is stripped down export_filter() */ struct proto *src = rt->attrs->proto; ea_list *tmpa = src->make_tmp_attrs ? src->make_tmp_attrs(rt, rte_update_pool) : NULL; int v = p->import_control ? p->import_control(p, &rt, &tmpa, rte_update_pool) : 0; if (v == RIC_PROCESS) v = (f_run(filter, &rt, &tmpa, rte_update_pool, FF_FORCE_TMPATTR) <= F_ACCEPT); /* Discard temporary rte */ if (rt != n->routes) rte_free(rt); rte_update_unlock(); return v > 0; } /** * rte_dump - dump a route * @e: &rte to be dumped * * This functions dumps contents of a &rte to debug output. */ void rte_dump(rte *e) { net *n = e->net; debug("%-1I/%2d ", n->n.prefix, n->n.pxlen); debug("KF=%02x PF=%02x pref=%d lm=%d ", n->n.flags, e->pflags, e->pref, now-e->lastmod); rta_dump(e->attrs); if (e->attrs->proto->proto->dump_attrs) e->attrs->proto->proto->dump_attrs(e); debug("\n"); } /** * rt_dump - dump a routing table * @t: routing table to be dumped * * This function dumps contents of a given routing table to debug output. */ void rt_dump(rtable *t) { rte *e; net *n; struct announce_hook *a; debug("Dump of routing table <%s>\n", t->name); #ifdef DEBUGGING fib_check(&t->fib); #endif FIB_WALK(&t->fib, fn) { n = (net *) fn; for(e=n->routes; e; e=e->next) rte_dump(e); } FIB_WALK_END; WALK_LIST(a, t->hooks) debug("\tAnnounces routes to protocol %s\n", a->proto->name); debug("\n"); } /** * rt_dump_all - dump all routing tables * * This function dumps contents of all routing tables to debug output. */ void rt_dump_all(void) { rtable *t; WALK_LIST(t, routing_tables) rt_dump(t); } static inline void rt_schedule_gc(rtable *tab) { if (tab->gc_scheduled) return; tab->gc_scheduled = 1; ev_schedule(tab->rt_event); } static inline void rt_schedule_hcu(rtable *tab) { if (tab->hcu_scheduled) return; tab->hcu_scheduled = 1; ev_schedule(tab->rt_event); } static inline void rt_schedule_nhu(rtable *tab) { if (tab->nhu_state == 0) ev_schedule(tab->rt_event); /* state change 0->1, 2->3 */ tab->nhu_state |= 1; } static void rt_prune_nets(rtable *tab) { struct fib_iterator fit; int ncnt = 0, ndel = 0; #ifdef DEBUGGING fib_check(&tab->fib); #endif FIB_ITERATE_INIT(&fit, &tab->fib); again: FIB_ITERATE_START(&tab->fib, &fit, f) { net *n = (net *) f; ncnt++; if (!n->routes) /* Orphaned FIB entry */ { FIB_ITERATE_PUT(&fit, f); fib_delete(&tab->fib, f); ndel++; goto again; } } FIB_ITERATE_END(f); DBG("Pruned %d of %d networks\n", ndel, ncnt); tab->gc_counter = 0; tab->gc_time = now; tab->gc_scheduled = 0; } static void rt_event(void *ptr) { rtable *tab = ptr; if (tab->hcu_scheduled) rt_update_hostcache(tab); if (tab->nhu_state) rt_next_hop_update(tab); if (tab->gc_scheduled) rt_prune_nets(tab); } void rt_setup(pool *p, rtable *t, char *name, struct rtable_config *cf) { bzero(t, sizeof(*t)); fib_init(&t->fib, p, sizeof(net), 0, rte_init); t->name = name; t->config = cf; init_list(&t->hooks); if (cf) { t->rt_event = ev_new(p); t->rt_event->hook = rt_event; t->rt_event->data = t; t->gc_time = now; } } /** * rt_init - initialize routing tables * * This function is called during BIRD startup. It initializes the * routing table module. */ void rt_init(void) { rta_init(); rt_table_pool = rp_new(&root_pool, "Routing tables"); rte_update_pool = lp_new(rt_table_pool, 4080); rte_slab = sl_new(rt_table_pool, sizeof(rte)); init_list(&routing_tables); } static inline int rt_prune_step(rtable *tab, int step, int *max_feed) { static struct rate_limit rl_flush; struct fib_iterator *fit = &tab->prune_fit; DBG("Pruning route table %s\n", tab->name); #ifdef DEBUGGING fib_check(&tab->fib); #endif if (tab->prune_state == 0) return 1; if (tab->prune_state == 1) { FIB_ITERATE_INIT(fit, &tab->fib); tab->prune_state = 2; } again: FIB_ITERATE_START(&tab->fib, fit, fn) { net *n = (net *) fn; rte *e; rescan: for (e=n->routes; e; e=e->next) if (e->sender->proto->flushing || (step && e->attrs->proto->flushing)) { if (*max_feed <= 0) { FIB_ITERATE_PUT(fit, fn); return 0; } if (step) log_rl(&rl_flush, L_WARN "Route %I/%d from %s still in %s after flush", n->n.prefix, n->n.pxlen, e->attrs->proto->name, tab->name); rte_discard(tab, e); (*max_feed)--; goto rescan; } if (!n->routes) /* Orphaned FIB entry */ { FIB_ITERATE_PUT(fit, fn); fib_delete(&tab->fib, fn); goto again; } } FIB_ITERATE_END(fn); #ifdef DEBUGGING fib_check(&tab->fib); #endif tab->prune_state = 0; return 1; } /** * rt_prune_loop - prune routing tables * * The prune loop scans routing tables and removes routes belonging to * flushing protocols and also stale network entries. Returns 1 when * all such routes are pruned. It is a part of the protocol flushing * loop. * * The prune loop runs in two steps. In the first step it prunes just * the routes with flushing senders (in explicitly marked tables) so * the route removal is propagated as usual. In the second step, all * remaining relevant routes are removed. Ideally, there shouldn't be * any, but it happens when pipe filters are changed. */ int rt_prune_loop(void) { static int step = 0; int max_feed = 512; rtable *t; again: WALK_LIST(t, routing_tables) if (! rt_prune_step(t, step, &max_feed)) return 0; if (step == 0) { /* Prepare for the second step */ WALK_LIST(t, routing_tables) t->prune_state = 1; step = 1; goto again; } /* Done */ step = 0; return 1; } void rt_preconfig(struct config *c) { struct symbol *s = cf_find_symbol("master"); init_list(&c->tables); c->master_rtc = rt_new_table(s); } /* * Some functions for handing internal next hop updates * triggered by rt_schedule_nhu(). */ static inline int rta_next_hop_outdated(rta *a) { struct hostentry *he = a->hostentry; if (!he) return 0; if (!he->src) return a->dest != RTD_UNREACHABLE; return (a->iface != he->src->iface) || !ipa_equal(a->gw, he->gw) || (a->dest != he->dest) || (a->igp_metric != he->igp_metric) || !mpnh_same(a->nexthops, he->src->nexthops); } static inline void rta_apply_hostentry(rta *a, struct hostentry *he) { a->hostentry = he; a->iface = he->src ? he->src->iface : NULL; a->gw = he->gw; a->dest = he->dest; a->igp_metric = he->igp_metric; a->nexthops = he->src ? he->src->nexthops : NULL; } static inline rte * rt_next_hop_update_rte(rtable *tab, rte *old) { rta a; memcpy(&a, old->attrs, sizeof(rta)); rta_apply_hostentry(&a, old->attrs->hostentry); a.aflags = 0; rte *e = sl_alloc(rte_slab); memcpy(e, old, sizeof(rte)); e->attrs = rta_lookup(&a); return e; } static inline int rt_next_hop_update_net(rtable *tab, net *n) { rte **k, *e, *new, *old_best, **new_best; int count = 0; int free_old_best = 0; old_best = n->routes; if (!old_best) return 0; for (k = &n->routes; e = *k; k = &e->next) if (rta_next_hop_outdated(e->attrs)) { new = rt_next_hop_update_rte(tab, e); *k = new; rte_announce_i(tab, RA_ANY, n, new, e); rte_trace_in(D_ROUTES, new->sender->proto, new, "updated"); /* Call a pre-comparison hook */ /* Not really an efficient way to compute this */ if (e->attrs->proto->rte_recalculate) e->attrs->proto->rte_recalculate(tab, n, new, e, NULL); if (e != old_best) rte_free_quick(e); else /* Freeing of the old best rte is postponed */ free_old_best = 1; e = new; count++; } if (!count) return 0; /* Find the new best route */ new_best = NULL; for (k = &n->routes; e = *k; k = &e->next) { if (!new_best || rte_better(e, *new_best)) new_best = k; } /* Relink the new best route to the first position */ new = *new_best; if (new != n->routes) { *new_best = new->next; new->next = n->routes; n->routes = new; } /* Announce the new best route */ if (new != old_best) { rte_announce_i(tab, RA_OPTIMAL, n, new, old_best); rte_trace_in(D_ROUTES, new->sender->proto, new, "updated [best]"); } if (free_old_best) rte_free_quick(old_best); return count; } static void rt_next_hop_update(rtable *tab) { struct fib_iterator *fit = &tab->nhu_fit; int max_feed = 32; if (tab->nhu_state == 0) return; if (tab->nhu_state == 1) { FIB_ITERATE_INIT(fit, &tab->fib); tab->nhu_state = 2; } FIB_ITERATE_START(&tab->fib, fit, fn) { if (max_feed <= 0) { FIB_ITERATE_PUT(fit, fn); ev_schedule(tab->rt_event); return; } max_feed -= rt_next_hop_update_net(tab, (net *) fn); } FIB_ITERATE_END(fn); /* state change 2->0, 3->1 */ tab->nhu_state &= 1; if (tab->nhu_state > 0) ev_schedule(tab->rt_event); } struct rtable_config * rt_new_table(struct symbol *s) { /* Hack that allows to 'redefine' the master table */ if ((s->class == SYM_TABLE) && (s->def == new_config->master_rtc)) return s->def; struct rtable_config *c = cfg_allocz(sizeof(struct rtable_config)); cf_define_symbol(s, SYM_TABLE, c); c->name = s->name; add_tail(&new_config->tables, &c->n); c->gc_max_ops = 1000; c->gc_min_time = 5; return c; } /** * rt_lock_table - lock a routing table * @r: routing table to be locked * * Lock a routing table, because it's in use by a protocol, * preventing it from being freed when it gets undefined in a new * configuration. */ void rt_lock_table(rtable *r) { r->use_count++; } /** * rt_unlock_table - unlock a routing table * @r: routing table to be unlocked * * Unlock a routing table formerly locked by rt_lock_table(), * that is decrease its use count and delete it if it's scheduled * for deletion by configuration changes. */ void rt_unlock_table(rtable *r) { if (!--r->use_count && r->deleted) { struct config *conf = r->deleted; DBG("Deleting routing table %s\n", r->name); if (r->hostcache) rt_free_hostcache(r); rem_node(&r->n); fib_free(&r->fib); rfree(r->rt_event); mb_free(r); config_del_obstacle(conf); } } /** * rt_commit - commit new routing table configuration * @new: new configuration * @old: original configuration or %NULL if it's boot time config * * Scan differences between @old and @new configuration and modify * the routing tables according to these changes. If @new defines a * previously unknown table, create it, if it omits a table existing * in @old, schedule it for deletion (it gets deleted when all protocols * disconnect from it by calling rt_unlock_table()), if it exists * in both configurations, leave it unchanged. */ void rt_commit(struct config *new, struct config *old) { struct rtable_config *o, *r; DBG("rt_commit:\n"); if (old) { WALK_LIST(o, old->tables) { rtable *ot = o->table; if (!ot->deleted) { struct symbol *sym = cf_find_symbol(o->name); if (sym && sym->class == SYM_TABLE && !new->shutdown) { DBG("\t%s: same\n", o->name); r = sym->def; r->table = ot; ot->name = r->name; ot->config = r; if (o->sorted != r->sorted) log(L_WARN "Reconfiguration of rtable sorted flag not implemented"); } else { DBG("\t%s: deleted\n", o->name); ot->deleted = old; config_add_obstacle(old); rt_lock_table(ot); rt_unlock_table(ot); } } } } WALK_LIST(r, new->tables) if (!r->table) { rtable *t = mb_alloc(rt_table_pool, sizeof(struct rtable)); DBG("\t%s: created\n", r->name); rt_setup(rt_table_pool, t, r->name, r); add_tail(&routing_tables, &t->n); r->table = t; } DBG("\tdone\n"); } static inline void do_feed_baby(struct proto *p, int type, struct announce_hook *h, net *n, rte *e) { struct proto *src = e->attrs->proto; ea_list *tmpa; rte_update_lock(); tmpa = src->make_tmp_attrs ? src->make_tmp_attrs(e, rte_update_pool) : NULL; if (type == RA_ACCEPTED) rt_notify_accepted(h, n, e, NULL, NULL, tmpa, p->refeeding ? 2 : 1); else rt_notify_basic(h, n, e, p->refeeding ? e : NULL, tmpa, p->refeeding); rte_update_unlock(); } /** * rt_feed_baby - advertise routes to a new protocol * @p: protocol to be fed * * This function performs one pass of advertisement of routes to a newly * initialized protocol. It's called by the protocol code as long as it * has something to do. (We avoid transferring all the routes in single * pass in order not to monopolize CPU time.) */ int rt_feed_baby(struct proto *p) { struct announce_hook *h; struct fib_iterator *fit; int max_feed = 256; if (!p->feed_ahook) /* Need to initialize first */ { if (!p->ahooks) return 1; DBG("Announcing routes to new protocol %s\n", p->name); p->feed_ahook = p->ahooks; fit = p->feed_iterator = mb_alloc(p->pool, sizeof(struct fib_iterator)); goto next_hook; } fit = p->feed_iterator; again: h = p->feed_ahook; FIB_ITERATE_START(&h->table->fib, fit, fn) { net *n = (net *) fn; rte *e = n->routes; if (max_feed <= 0) { FIB_ITERATE_PUT(fit, fn); return 0; } /* XXXX perhaps we should change feed for RA_ACCEPTED to not use 'new' */ if ((p->accept_ra_types == RA_OPTIMAL) || (p->accept_ra_types == RA_ACCEPTED)) if (rte_is_valid(e)) { if (p->core_state != FS_FEEDING) return 1; /* In the meantime, the protocol fell down. */ do_feed_baby(p, p->accept_ra_types, h, n, e); max_feed--; } if (p->accept_ra_types == RA_ANY) for(e = n->routes; rte_is_valid(e); e = e->next) { if (p->core_state != FS_FEEDING) return 1; /* In the meantime, the protocol fell down. */ do_feed_baby(p, RA_ANY, h, n, e); max_feed--; } } FIB_ITERATE_END(fn); p->feed_ahook = h->next; if (!p->feed_ahook) { mb_free(p->feed_iterator); p->feed_iterator = NULL; return 1; } next_hook: h = p->feed_ahook; FIB_ITERATE_INIT(fit, &h->table->fib); goto again; } /** * rt_feed_baby_abort - abort protocol feeding * @p: protocol * * This function is called by the protocol code when the protocol * stops or ceases to exist before the last iteration of rt_feed_baby() * has finished. */ void rt_feed_baby_abort(struct proto *p) { if (p->feed_ahook) { /* Unlink the iterator and exit */ fit_get(&p->feed_ahook->table->fib, p->feed_iterator); p->feed_ahook = NULL; } } static inline unsigned ptr_hash(void *ptr) { uintptr_t p = (uintptr_t) ptr; return p ^ (p << 8) ^ (p >> 16); } static inline unsigned hc_hash(ip_addr a, rtable *dep) { return (ipa_hash(a) ^ ptr_hash(dep)) & 0xffff; } static inline void hc_insert(struct hostcache *hc, struct hostentry *he) { unsigned int k = he->hash_key >> hc->hash_shift; he->next = hc->hash_table[k]; hc->hash_table[k] = he; } static inline void hc_remove(struct hostcache *hc, struct hostentry *he) { struct hostentry **hep; unsigned int k = he->hash_key >> hc->hash_shift; for (hep = &hc->hash_table[k]; *hep != he; hep = &(*hep)->next); *hep = he->next; } #define HC_DEF_ORDER 10 #define HC_HI_MARK *4 #define HC_HI_STEP 2 #define HC_HI_ORDER 16 /* Must be at most 16 */ #define HC_LO_MARK /5 #define HC_LO_STEP 2 #define HC_LO_ORDER 10 static void hc_alloc_table(struct hostcache *hc, unsigned order) { unsigned hsize = 1 << order; hc->hash_order = order; hc->hash_shift = 16 - order; hc->hash_max = (order >= HC_HI_ORDER) ? ~0 : (hsize HC_HI_MARK); hc->hash_min = (order <= HC_LO_ORDER) ? 0 : (hsize HC_LO_MARK); hc->hash_table = mb_allocz(rt_table_pool, hsize * sizeof(struct hostentry *)); } static void hc_resize(struct hostcache *hc, unsigned new_order) { unsigned old_size = 1 << hc->hash_order; struct hostentry **old_table = hc->hash_table; struct hostentry *he, *hen; int i; hc_alloc_table(hc, new_order); for (i = 0; i < old_size; i++) for (he = old_table[i]; he != NULL; he=hen) { hen = he->next; hc_insert(hc, he); } mb_free(old_table); } static struct hostentry * hc_new_hostentry(struct hostcache *hc, ip_addr a, ip_addr ll, rtable *dep, unsigned k) { struct hostentry *he = sl_alloc(hc->slab); he->addr = a; he->link = ll; he->tab = dep; he->hash_key = k; he->uc = 0; he->src = NULL; add_tail(&hc->hostentries, &he->ln); hc_insert(hc, he); hc->hash_items++; if (hc->hash_items > hc->hash_max) hc_resize(hc, hc->hash_order + HC_HI_STEP); return he; } static void hc_delete_hostentry(struct hostcache *hc, struct hostentry *he) { rta_free(he->src); rem_node(&he->ln); hc_remove(hc, he); sl_free(hc->slab, he); hc->hash_items--; if (hc->hash_items < hc->hash_min) hc_resize(hc, hc->hash_order - HC_LO_STEP); } static void rt_init_hostcache(rtable *tab) { struct hostcache *hc = mb_allocz(rt_table_pool, sizeof(struct hostcache)); init_list(&hc->hostentries); hc->hash_items = 0; hc_alloc_table(hc, HC_DEF_ORDER); hc->slab = sl_new(rt_table_pool, sizeof(struct hostentry)); hc->lp = lp_new(rt_table_pool, 1008); hc->trie = f_new_trie(hc->lp); tab->hostcache = hc; } static void rt_free_hostcache(rtable *tab) { struct hostcache *hc = tab->hostcache; node *n; WALK_LIST(n, hc->hostentries) { struct hostentry *he = SKIP_BACK(struct hostentry, ln, n); rta_free(he->src); if (he->uc) log(L_ERR "Hostcache is not empty in table %s", tab->name); } rfree(hc->slab); rfree(hc->lp); mb_free(hc->hash_table); mb_free(hc); } static void rt_notify_hostcache(rtable *tab, net *net) { struct hostcache *hc = tab->hostcache; if (tab->hcu_scheduled) return; if (trie_match_prefix(hc->trie, net->n.prefix, net->n.pxlen)) rt_schedule_hcu(tab); } static int if_local_addr(ip_addr a, struct iface *i) { struct ifa *b; WALK_LIST(b, i->addrs) if (ipa_equal(a, b->ip)) return 1; return 0; } static u32 rt_get_igp_metric(rte *rt) { eattr *ea = ea_find(rt->attrs->eattrs, EA_GEN_IGP_METRIC); if (ea) return ea->u.data; rta *a = rt->attrs; #ifdef CONFIG_OSPF if ((a->source == RTS_OSPF) || (a->source == RTS_OSPF_IA) || (a->source == RTS_OSPF_EXT1)) return rt->u.ospf.metric1; #endif #ifdef CONFIG_RIP if (a->source == RTS_RIP) return rt->u.rip.metric; #endif /* Device routes */ if ((a->dest != RTD_ROUTER) && (a->dest != RTD_MULTIPATH)) return 0; return IGP_METRIC_UNKNOWN; } static int rt_update_hostentry(rtable *tab, struct hostentry *he) { rta *old_src = he->src; int pxlen = 0; /* Reset the hostentry */ he->src = NULL; he->gw = IPA_NONE; he->dest = RTD_UNREACHABLE; he->igp_metric = 0; net *n = net_route(tab, he->addr, MAX_PREFIX_LENGTH); if (n) { rte *e = n->routes; rta *a = e->attrs; pxlen = n->n.pxlen; if (a->hostentry) { /* Recursive route should not depend on another recursive route */ log(L_WARN "Next hop address %I resolvable through recursive route for %I/%d", he->addr, n->n.prefix, pxlen); goto done; } if (a->dest == RTD_DEVICE) { if (if_local_addr(he->addr, a->iface)) { /* The host address is a local address, this is not valid */ log(L_WARN "Next hop address %I is a local address of iface %s", he->addr, a->iface->name); goto done; } /* The host is directly reachable, use link as a gateway */ he->gw = he->link; he->dest = RTD_ROUTER; } else { /* The host is reachable through some route entry */ he->gw = a->gw; he->dest = a->dest; } he->src = rta_clone(a); he->igp_metric = rt_get_igp_metric(e); } done: /* Add a prefix range to the trie */ trie_add_prefix(tab->hostcache->trie, he->addr, MAX_PREFIX_LENGTH, pxlen, MAX_PREFIX_LENGTH); rta_free(old_src); return old_src != he->src; } static void rt_update_hostcache(rtable *tab) { struct hostcache *hc = tab->hostcache; struct hostentry *he; node *n, *x; /* Reset the trie */ lp_flush(hc->lp); hc->trie = f_new_trie(hc->lp); WALK_LIST_DELSAFE(n, x, hc->hostentries) { he = SKIP_BACK(struct hostentry, ln, n); if (!he->uc) { hc_delete_hostentry(hc, he); continue; } if (rt_update_hostentry(tab, he)) rt_schedule_nhu(he->tab); } tab->hcu_scheduled = 0; } static struct hostentry * rt_find_hostentry(rtable *tab, ip_addr a, ip_addr ll, rtable *dep) { struct hostentry *he; if (!tab->hostcache) rt_init_hostcache(tab); unsigned int k = hc_hash(a, dep); struct hostcache *hc = tab->hostcache; for (he = hc->hash_table[k >> hc->hash_shift]; he != NULL; he = he->next) if (ipa_equal(he->addr, a) && (he->tab == dep)) return he; he = hc_new_hostentry(hc, a, ll, dep, k); rt_update_hostentry(tab, he); return he; } void rta_set_recursive_next_hop(rtable *dep, rta *a, rtable *tab, ip_addr *gw, ip_addr *ll) { rta_apply_hostentry(a, rt_find_hostentry(tab, *gw, *ll, dep)); } /* * CLI commands */ static void rt_format_via(rte *e, byte *via) { rta *a = e->attrs; switch (a->dest) { case RTD_ROUTER: bsprintf(via, "via %I on %s", a->gw, a->iface->name); break; case RTD_DEVICE: bsprintf(via, "dev %s", a->iface->name); break; case RTD_BLACKHOLE: bsprintf(via, "blackhole"); break; case RTD_UNREACHABLE: bsprintf(via, "unreachable"); break; case RTD_PROHIBIT: bsprintf(via, "prohibited"); break; case RTD_MULTIPATH: bsprintf(via, "multipath"); break; default: bsprintf(via, "???"); } } static void rt_show_rte(struct cli *c, byte *ia, rte *e, struct rt_show_data *d, ea_list *tmpa) { byte via[STD_ADDRESS_P_LENGTH+32], from[STD_ADDRESS_P_LENGTH+8]; byte tm[TM_DATETIME_BUFFER_SIZE], info[256]; rta *a = e->attrs; int primary = (e->net->routes == e); int sync_error = (e->net->n.flags & KRF_SYNC_ERROR); struct mpnh *nh; rt_format_via(e, via); tm_format_datetime(tm, &config->tf_route, e->lastmod); if (ipa_nonzero(a->from) && !ipa_equal(a->from, a->gw)) bsprintf(from, " from %I", a->from); else from[0] = 0; if (a->proto->proto->get_route_info || d->verbose) { /* Need to normalize the extended attributes */ ea_list *t = tmpa; t = ea_append(t, a->eattrs); tmpa = alloca(ea_scan(t)); ea_merge(t, tmpa); ea_sort(tmpa); } if (a->proto->proto->get_route_info) a->proto->proto->get_route_info(e, info, tmpa); else bsprintf(info, " (%d)", e->pref); cli_printf(c, -1007, "%-18s %s [%s %s%s]%s%s", ia, via, a->proto->name, tm, from, primary ? (sync_error ? " !" : " *") : "", info); for (nh = a->nexthops; nh; nh = nh->next) cli_printf(c, -1007, "\tvia %I on %s weight %d", nh->gw, nh->iface->name, nh->weight + 1); if (d->verbose) rta_show(c, a, tmpa); } static void rt_show_net(struct cli *c, net *n, struct rt_show_data *d) { rte *e, *ee; byte ia[STD_ADDRESS_P_LENGTH+8]; struct announce_hook *a; int ok; bsprintf(ia, "%I/%d", n->n.prefix, n->n.pxlen); for(e=n->routes; e; e=e->next) { if (rte_is_filtered(e) != d->filtered) continue; struct ea_list *tmpa; struct proto *p0 = e->attrs->proto; struct proto *p1 = d->export_protocol; struct proto *p2 = d->show_protocol; if (ia[0]) d->net_counter++; d->rt_counter++; ee = e; rte_update_lock(); /* We use the update buffer for filtering */ tmpa = p0->make_tmp_attrs ? p0->make_tmp_attrs(e, rte_update_pool) : NULL; ok = f_run(d->filter, &e, &tmpa, rte_update_pool, FF_FORCE_TMPATTR) <= F_ACCEPT; if (p2 && p2 != p0) ok = 0; if (ok && d->export_mode) { int ic; if ((ic = p1->import_control ? p1->import_control(p1, &e, &tmpa, rte_update_pool) : 0) < 0) ok = 0; else if (!ic && d->export_mode > 1) { /* FIXME - this shows what should be exported according to current filters, but not what was really exported. 'configure soft' command may change the export filter and do not update routes */ if ((a = proto_find_announce_hook(p1, d->table)) && (f_run(a->out_filter, &e, &tmpa, rte_update_pool, FF_FORCE_TMPATTR) > F_ACCEPT)) ok = 0; } } if (ok) { d->show_counter++; if (d->stats < 2) rt_show_rte(c, ia, e, d, tmpa); ia[0] = 0; } if (e != ee) { rte_free(e); e = ee; } rte_update_unlock(); if (d->primary_only) break; } } static void rt_show_cont(struct cli *c) { struct rt_show_data *d = c->rover; #ifdef DEBUGGING unsigned max = 4; #else unsigned max = 64; #endif struct fib *fib = &d->table->fib; struct fib_iterator *it = &d->fit; FIB_ITERATE_START(fib, it, f) { net *n = (net *) f; if (d->running_on_config && d->running_on_config != config) { cli_printf(c, 8004, "Stopped due to reconfiguration"); goto done; } if (d->export_protocol && d->export_protocol->core_state != FS_HAPPY && d->export_protocol->core_state != FS_FEEDING) { cli_printf(c, 8005, "Protocol is down"); goto done; } if (!max--) { FIB_ITERATE_PUT(it, f); return; } rt_show_net(c, n, d); } FIB_ITERATE_END(f); if (d->stats) cli_printf(c, 14, "%d of %d routes for %d networks", d->show_counter, d->rt_counter, d->net_counter); else cli_printf(c, 0, ""); done: c->cont = c->cleanup = NULL; } static void rt_show_cleanup(struct cli *c) { struct rt_show_data *d = c->rover; /* Unlink the iterator */ fit_get(&d->table->fib, &d->fit); } void rt_show(struct rt_show_data *d) { net *n; /* Default is either a master table or a table related to a respective protocol */ if ((!d->table) && d->export_protocol) d->table = d->export_protocol->table; if ((!d->table) && d->show_protocol) d->table = d->show_protocol->table; if (!d->table) d->table = config->master_rtc->table; if (d->pxlen == 256) { FIB_ITERATE_INIT(&d->fit, &d->table->fib); this_cli->cont = rt_show_cont; this_cli->cleanup = rt_show_cleanup; this_cli->rover = d; } else { if (d->show_for) n = net_route(d->table, d->prefix, d->pxlen); else n = net_find(d->table, d->prefix, d->pxlen); if (n) { rt_show_net(this_cli, n, d); cli_msg(0, ""); } else cli_msg(8001, "Network not in table"); } } /* * Documentation for functions declared inline in route.h */ #if 0 /** * net_find - find a network entry * @tab: a routing table * @addr: address of the network * @len: length of the network prefix * * net_find() looks up the given network in routing table @tab and * returns a pointer to its &net entry or %NULL if no such network * exists. */ static inline net *net_find(rtable *tab, ip_addr addr, unsigned len) { DUMMY; } /** * net_get - obtain a network entry * @tab: a routing table * @addr: address of the network * @len: length of the network prefix * * net_get() looks up the given network in routing table @tab and * returns a pointer to its &net entry. If no such entry exists, it's * created. */ static inline net *net_get(rtable *tab, ip_addr addr, unsigned len) { DUMMY; } /** * rte_cow - copy a route for writing * @r: a route entry to be copied * * rte_cow() takes a &rte and prepares it for modification. The exact action * taken depends on the flags of the &rte -- if it's a temporary entry, it's * just returned unchanged, else a new temporary entry with the same contents * is created. * * The primary use of this function is inside the filter machinery -- when * a filter wants to modify &rte contents (to change the preference or to * attach another set of attributes), it must ensure that the &rte is not * shared with anyone else (and especially that it isn't stored in any routing * table). * * Result: a pointer to the new writable &rte. */ static inline rte * rte_cow(rte *r) { DUMMY; } #endif bird-1.4.0/nest/bfd.h0000644000103200001440000000201212244117701013267 0ustar feelausers/* * BIRD -- Bidirectional Forwarding Detection (BFD) * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_NBFD_H_ #define _BIRD_NBFD_H_ #include "lib/lists.h" #include "lib/resource.h" struct bfd_session; struct bfd_request { resource r; node n; ip_addr addr; ip_addr local; struct iface *iface; void (*hook)(struct bfd_request *); void *data; struct bfd_session *session; u8 state; u8 diag; u8 old_state; u8 down; }; #ifdef CONFIG_BFD struct bfd_request * bfd_request_session(pool *p, ip_addr addr, ip_addr local, struct iface *iface, void (*hook)(struct bfd_request *), void *data); static inline void cf_check_bfd(int use) { } #else static inline struct bfd_request * bfd_request_session(pool *p, ip_addr addr, ip_addr local, struct iface *iface, void (*hook)(struct bfd_request *), void *data) { return NULL; } static inline void cf_check_bfd(int use) { if (use) cf_error("BFD not available"); } #endif /* CONFIG_BFD */ #endif /* _BIRD_NBFD_H_ */ bird-1.4.0/nest/proto-hooks.c0000644000103200001440000002625612010156275015033 0ustar feelausers/* * BIRD -- Documentation for Protocol Hooks (dummy source file) * * (c) 2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Protocol hooks * * Each protocol can provide a rich set of hook functions referred to by pointers * in either the &proto or &protocol structure. They are called by the core whenever * it wants the protocol to perform some action or to notify the protocol about * any change of its environment. All of the hooks can be set to %NULL which means * to ignore the change or to take a default action. */ /** * preconfig - protocol preconfiguration * @p: a routing protocol * @c: new configuration * * The preconfig() hook is called before parsing of a new configuration. */ void preconfig(struct protocol *p, struct config *c) { DUMMY; } /** * postconfig - instance post-configuration * @c: instance configuration * * The postconfig() hook is called for each configured instance after * parsing of the new configuration is finished. */ void postconfig(struct proto_config *c) { DUMMY; } /** * init - initialize an instance * @c: instance configuration * * The init() hook is called by the core to create a protocol instance * according to supplied protocol configuration. * * Result: a pointer to the instance created */ struct proto *init(struct proto_config *c) { DUMMY; } /** * reconfigure - request instance reconfiguration * @p: an instance * @c: new configuration * * The core calls the reconfigure() hook whenever it wants to ask the * protocol for switching to a new configuration. If the reconfiguration * is possible, the hook returns 1. Otherwise, it returns 0 and the core * will shut down the instance and start a new one with the new configuration. * * After the protocol confirms reconfiguration, it must no longer keep any * references to the old configuration since the memory it's stored in can * be re-used at any time. */ int reconfigure(struct proto *p, struct proto_config *c) { DUMMY; } /** * dump - dump protocol state * @p: an instance * * This hook dumps the complete state of the instance to the * debug output. */ void dump(struct proto *p) { DUMMY; } /** * dump_attrs - dump protocol-dependent attributes * @e: a route entry * * This hook dumps all attributes in the &rte which belong to this * protocol to the debug output. */ void dump_attrs(rte *e) { DUMMY; } /** * start - request instance startup * @p: protocol instance * * The start() hook is called by the core when it wishes to start * the instance. Multitable protocols should lock their tables here. * * Result: new protocol state */ int start(struct proto *p) { DUMMY; } /** * shutdown - request instance shutdown * @p: protocol instance * * The stop() hook is called by the core when it wishes to shut * the instance down for some reason. * * Returns: new protocol state */ int shutdown(struct proto *p) { DUMMY; } /** * cleanup - request instance cleanup * @p: protocol instance * * The cleanup() hook is called by the core when the protocol became * hungry/down, i.e. all protocol ahooks and routes are flushed. * Multitable protocols should unlock their tables here. */ void cleanup(struct proto *p) { DUMMY; } /** * get_status - get instance status * @p: protocol instance * @buf: buffer to be filled with the status string * * This hook is called by the core if it wishes to obtain an brief one-line user friendly * representation of the status of the instance to be printed by the accept_ra_types specifies which kind of route announcements * protocol wants to receive. */ void rt_notify(struct proto *p, net *net, rte *new, rte *old, ea_list *attrs) { DUMMY; } /** * neigh_notify - notify instance about neighbor status change * @neigh: a neighbor cache entry * * The neigh_notify() hook is called by the neighbor cache whenever * a neighbor changes its state, that is it gets disconnected or a * sticky neighbor gets connected. */ void neigh_notify(neighbor *neigh) { DUMMY; } /** * make_tmp_attrs - convert embedded attributes to temporary ones * @e: route entry * @pool: linear pool to allocate attribute memory in * * This hook is called by the routing table functions if they need * to convert the protocol attributes embedded directly in the &rte * to temporary extended attributes in order to distribute them * to other protocols or to filters. make_tmp_attrs() creates * an &ea_list in the linear pool @pool, fills it with values of the * temporary attributes and returns a pointer to it. */ ea_list *make_tmp_attrs(rte *e, struct linpool *pool) { DUMMY; } /** * store_tmp_attrs - convert temporary attributes to embedded ones * @e: route entry * @attrs: temporary attributes to be converted * * This hook is an exact opposite of make_tmp_attrs() -- it takes * a list of extended attributes and converts them to attributes * embedded in the &rte corresponding to this protocol. * * You must be prepared for any of the attributes being missing * from the list and use default values instead. */ void store_tmp_attrs(rte *e, ea_list *attrs) { DUMMY; } /** * import_control - pre-filtering decisions on route import * @p: protocol instance the route is going to be imported to * @e: the route in question * @attrs: extended attributes of the route * @pool: linear pool for allocation of all temporary data * * The import_control() hook is called as the first step of a exporting * a route from a routing table to the protocol instance. It can modify * route attributes and force acceptance or rejection of the route regardless * of user-specified filters. See rte_announce() for a complete description * of the route distribution process. * * The standard use of this hook is to reject routes having originated * from the same instance and to set default values of the protocol's metrics. * * Result: 1 if the route has to be accepted, -1 if rejected and 0 if it * should be passed to the filters. */ int import_control(struct proto *p, rte **e, ea_list **attrs, struct linpool *pool) { DUMMY; } /** * rte_recalculate - prepare routes for comparison * @table: a routing table * @net: a network entry * @new: new route for the network * @old: old route for the network * @old_best: old best route for the network (may be NULL) * * This hook is called when a route change (from @old to @new for a * @net entry) is propagated to a @table. It may be used to prepare * routes for comparison by rte_better() in the best route * selection. @new may or may not be in @net->routes list, * @old is not there. * * Result: 1 if the ordering implied by rte_better() changes enough * that full best route calculation have to be done, 0 otherwise. */ int rte_recalculate(struct rtable *table, struct network *net, struct rte *new, struct rte *old, struct rte *old_best) { DUMMY; } /** * rte_better - compare metrics of two routes * @new: the new route * @old: the original route * * This hook gets called when the routing table contains two routes * for the same network which have originated from different instances * of a single protocol and it wants to select which one is preferred * over the other one. Protocols usually decide according to route metrics. * * Result: 1 if @new is better (more preferred) than @old, 0 otherwise. */ int rte_better(rte *new, rte *old) { DUMMY; } /** * rte_same - compare two routes * @e1: route * @e2: route * * The rte_same() hook tests whether the routes @e1 and @e2 belonging * to the same protocol instance have identical contents. Contents of * &rta, all the extended attributes and &rte preference are checked * by the core code, no need to take care of them here. * * Result: 1 if @e1 is identical to @e2, 0 otherwise. */ int rte_same(rte *e1, rte *e2) { DUMMY; } /** * rte_insert - notify instance about route insertion * @n: network * @e: route * * This hook is called whenever a &rte belonging to the instance * is accepted for insertion to a routing table. * * Please avoid using this function in new protocols. */ void rte_insert(net *n, rte *e) { DUMMY; } /** * rte_remove - notify instance about route removal * @n: network * @e: route * * This hook is called whenever a &rte belonging to the instance * is removed from a routing table. * * Please avoid using this function in new protocols. */ void rte_remove(net *n, rte *e) { DUMMY; } bird-1.4.0/nest/rt-fib.c0000644000103200001440000003112211606273733013727 0ustar feelausers/* * BIRD -- Forwarding Information Base -- Data Structures * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Forwarding Information Base * * FIB is a data structure designed for storage of routes indexed by their * network prefixes. It supports insertion, deletion, searching by prefix, * `routing' (in CIDR sense, that is searching for a longest prefix matching * a given IP address) and (which makes the structure very tricky to implement) * asynchronous reading, that is enumerating the contents of a FIB while other * modules add, modify or remove entries. * * Internally, each FIB is represented as a collection of nodes of type &fib_node * indexed using a sophisticated hashing mechanism. * We use two-stage hashing where we calculate a 16-bit primary hash key independent * on hash table size and then we just divide the primary keys modulo table size * to get a real hash key used for determining the bucket containing the node. * The lists of nodes in each bucket are sorted according to the primary hash * key, hence if we keep the total number of buckets to be a power of two, * re-hashing of the structure keeps the relative order of the nodes. * * To get the asynchronous reading consistent over node deletions, we need to * keep a list of readers for each node. When a node gets deleted, its readers * are automatically moved to the next node in the table. * * Basic FIB operations are performed by functions defined by this module, * enumerating of FIB contents is accomplished by using the FIB_WALK() macro * or FIB_ITERATE_START() if you want to do it asynchronously. */ #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/route.h" #include "lib/string.h" #define HASH_DEF_ORDER 10 #define HASH_HI_MARK *4 #define HASH_HI_STEP 2 #define HASH_HI_MAX 16 /* Must be at most 16 */ #define HASH_LO_MARK /5 #define HASH_LO_STEP 2 #define HASH_LO_MIN 10 static void fib_ht_alloc(struct fib *f) { f->hash_size = 1 << f->hash_order; f->hash_shift = 16 - f->hash_order; if (f->hash_order > HASH_HI_MAX - HASH_HI_STEP) f->entries_max = ~0; else f->entries_max = f->hash_size HASH_HI_MARK; if (f->hash_order < HASH_LO_MIN + HASH_LO_STEP) f->entries_min = 0; else f->entries_min = f->hash_size HASH_LO_MARK; DBG("Allocating FIB hash of order %d: %d entries, %d low, %d high\n", f->hash_order, f->hash_size, f->entries_min, f->entries_max); f->hash_table = mb_alloc(f->fib_pool, f->hash_size * sizeof(struct fib_node *)); } static inline void fib_ht_free(struct fib_node **h) { mb_free(h); } static inline unsigned fib_hash(struct fib *f, ip_addr *a) { return ipa_hash(*a) >> f->hash_shift; } static void fib_dummy_init(struct fib_node *dummy UNUSED) { } /** * fib_init - initialize a new FIB * @f: the FIB to be initialized (the structure itself being allocated by the caller) * @p: pool to allocate the nodes in * @node_size: node size to be used (each node consists of a standard header &fib_node * followed by user data) * @hash_order: initial hash order (a binary logarithm of hash table size), 0 to use default order * (recommended) * @init: pointer a function to be called to initialize a newly created node * * This function initializes a newly allocated FIB and prepares it for use. */ void fib_init(struct fib *f, pool *p, unsigned node_size, unsigned hash_order, fib_init_func init) { if (!hash_order) hash_order = HASH_DEF_ORDER; f->fib_pool = p; f->fib_slab = sl_new(p, node_size); f->hash_order = hash_order; fib_ht_alloc(f); bzero(f->hash_table, f->hash_size * sizeof(struct fib_node *)); f->entries = 0; f->entries_min = 0; f->init = init ? : fib_dummy_init; } static void fib_rehash(struct fib *f, int step) { unsigned old, new, oldn, newn, ni, nh; struct fib_node **n, *e, *x, **t, **m, **h; old = f->hash_order; oldn = f->hash_size; new = old + step; m = h = f->hash_table; DBG("Re-hashing FIB from order %d to %d\n", old, new); f->hash_order = new; fib_ht_alloc(f); t = n = f->hash_table; newn = f->hash_size; ni = 0; while (oldn--) { x = *h++; while (e = x) { x = e->next; nh = fib_hash(f, &e->prefix); while (nh > ni) { *t = NULL; ni++; t = ++n; } *t = e; t = &e->next; } } while (ni < newn) { *t = NULL; ni++; t = ++n; } fib_ht_free(m); } /** * fib_find - search for FIB node by prefix * @f: FIB to search in * @a: pointer to IP address of the prefix * @len: prefix length * * Search for a FIB node corresponding to the given prefix, return * a pointer to it or %NULL if no such node exists. */ void * fib_find(struct fib *f, ip_addr *a, int len) { struct fib_node *e = f->hash_table[fib_hash(f, a)]; while (e && (e->pxlen != len || !ipa_equal(*a, e->prefix))) e = e->next; return e; } /* int fib_histogram(struct fib *f) { log(L_WARN "Histogram dump start %d %d", f->hash_size, f->entries); int i, j; struct fib_node *e; for (i = 0; i < f->hash_size; i++) { j = 0; for (e = f->hash_table[i]; e != NULL; e = e->next) j++; if (j > 0) log(L_WARN "Histogram line %d: %d", i, j); } log(L_WARN "Histogram dump end"); } */ /** * fib_get - find or create a FIB node * @f: FIB to work with * @a: pointer to IP address of the prefix * @len: prefix length * * Search for a FIB node corresponding to the given prefix and * return a pointer to it. If no such node exists, create it. */ void * fib_get(struct fib *f, ip_addr *a, int len) { unsigned int h = ipa_hash(*a); struct fib_node **ee = f->hash_table + (h >> f->hash_shift); struct fib_node *g, *e = *ee; u32 uid = h << 16; while (e && (e->pxlen != len || !ipa_equal(*a, e->prefix))) e = e->next; if (e) return e; #ifdef DEBUGGING if (len < 0 || len > BITS_PER_IP_ADDRESS || !ip_is_prefix(*a,len)) bug("fib_get() called for invalid address"); #endif while ((g = *ee) && g->uid < uid) ee = &g->next; while ((g = *ee) && g->uid == uid) { ee = &g->next; uid++; } if ((uid >> 16) != h) log(L_ERR "FIB hash table chains are too long"); // log (L_WARN "FIB_GET %I %x %x", *a, h, uid); e = sl_alloc(f->fib_slab); e->prefix = *a; e->pxlen = len; e->next = *ee; e->uid = uid; *ee = e; e->readers = NULL; f->init(e); if (f->entries++ > f->entries_max) fib_rehash(f, HASH_HI_STEP); return e; } /** * fib_route - CIDR routing lookup * @f: FIB to search in * @a: pointer to IP address of the prefix * @len: prefix length * * Search for a FIB node with longest prefix matching the given * network, that is a node which a CIDR router would use for routing * that network. */ void * fib_route(struct fib *f, ip_addr a, int len) { ip_addr a0; void *t; while (len >= 0) { a0 = ipa_and(a, ipa_mkmask(len)); t = fib_find(f, &a0, len); if (t) return t; len--; } return NULL; } static inline void fib_merge_readers(struct fib_iterator *i, struct fib_node *to) { if (to) { struct fib_iterator *j = to->readers; if (!j) { /* Fast path */ to->readers = i; i->prev = (struct fib_iterator *) to; } else { /* Really merging */ while (j->next) j = j->next; j->next = i; i->prev = j; } while (i && i->node) { i->node = NULL; i = i->next; } } else /* No more nodes */ while (i) { i->prev = NULL; i = i->next; } } /** * fib_delete - delete a FIB node * @f: FIB to delete from * @E: entry to delete * * This function removes the given entry from the FIB, * taking care of all the asynchronous readers by shifting * them to the next node in the canonical reading order. */ void fib_delete(struct fib *f, void *E) { struct fib_node *e = E; unsigned int h = fib_hash(f, &e->prefix); struct fib_node **ee = f->hash_table + h; struct fib_iterator *it; while (*ee) { if (*ee == e) { *ee = e->next; if (it = e->readers) { struct fib_node *l = e->next; while (!l) { h++; if (h >= f->hash_size) break; else l = f->hash_table[h]; } fib_merge_readers(it, l); } sl_free(f->fib_slab, e); if (f->entries-- < f->entries_min) fib_rehash(f, -HASH_LO_STEP); return; } ee = &((*ee)->next); } bug("fib_delete() called for invalid node"); } /** * fib_free - delete a FIB * @f: FIB to be deleted * * This function deletes a FIB -- it frees all memory associated * with it and all its entries. */ void fib_free(struct fib *f) { fib_ht_free(f->hash_table); rfree(f->fib_slab); } void fit_init(struct fib_iterator *i, struct fib *f) { unsigned h; struct fib_node *n; i->efef = 0xff; for(h=0; hhash_size; h++) if (n = f->hash_table[h]) { i->prev = (struct fib_iterator *) n; if (i->next = n->readers) i->next->prev = i; n->readers = i; i->node = n; return; } /* The fib is empty, nothing to do */ i->prev = i->next = NULL; i->node = NULL; } struct fib_node * fit_get(struct fib *f, struct fib_iterator *i) { struct fib_node *n; struct fib_iterator *j, *k; if (!i->prev) { /* We are at the end */ i->hash = ~0 - 1; return NULL; } if (!(n = i->node)) { /* No node info available, we are a victim of merging. Try harder. */ j = i; while (j->efef == 0xff) j = j->prev; n = (struct fib_node *) j; } j = i->prev; if (k = i->next) k->prev = j; j->next = k; i->hash = fib_hash(f, &n->prefix); return n; } void fit_put(struct fib_iterator *i, struct fib_node *n) { struct fib_iterator *j; i->node = n; if (j = n->readers) j->prev = i; i->next = j; n->readers = i; i->prev = (struct fib_iterator *) n; } #ifdef DEBUGGING /** * fib_check - audit a FIB * @f: FIB to be checked * * This debugging function audits a FIB by checking its internal consistency. * Use when you suspect somebody of corrupting innocent data structures. */ void fib_check(struct fib *f) { unsigned int i, ec, lo, nulls; ec = 0; for(i=0; ihash_size; i++) { struct fib_node *n; lo = 0; for(n=f->hash_table[i]; n; n=n->next) { struct fib_iterator *j, *j0; unsigned int h0 = ipa_hash(n->prefix); if (h0 < lo) bug("fib_check: discord in hash chains"); lo = h0; if ((h0 >> f->hash_shift) != i) bug("fib_check: mishashed %x->%x (order %d)", h0, i, f->hash_order); j0 = (struct fib_iterator *) n; nulls = 0; for(j=n->readers; j; j=j->next) { if (j->prev != j0) bug("fib_check: iterator->prev mismatch"); j0 = j; if (!j->node) nulls++; else if (nulls) bug("fib_check: iterator nullified"); else if (j->node != n) bug("fib_check: iterator->node mismatch"); } ec++; } } if (ec != f->entries) bug("fib_check: invalid entry count (%d != %d)", ec, f->entries); } #endif #ifdef TEST #include "lib/resource.h" struct fib f; void dump(char *m) { unsigned int i; debug("%s ... order=%d, size=%d, entries=%d\n", m, f.hash_order, f.hash_size, f.hash_size); for(i=0; inext) { debug("%04x %04x %p %I/%2d", i, ipa_hash(n->prefix), n, n->prefix, n->pxlen); for(j=n->readers; j; j=j->next) debug(" %p[%p]", j, j->node); debug("\n"); } } fib_check(&f); debug("-----\n"); } void init(struct fib_node *n) { } int main(void) { struct fib_node *n; struct fib_iterator i, j; ip_addr a; int c; log_init_debug(NULL); resource_init(); fib_init(&f, &root_pool, sizeof(struct fib_node), 4, init); dump("init"); a = ipa_from_u32(0x01020304); n = fib_get(&f, &a, 32); a = ipa_from_u32(0x02030405); n = fib_get(&f, &a, 32); a = ipa_from_u32(0x03040506); n = fib_get(&f, &a, 32); a = ipa_from_u32(0x00000000); n = fib_get(&f, &a, 32); a = ipa_from_u32(0x00000c01); n = fib_get(&f, &a, 32); a = ipa_from_u32(0xffffffff); n = fib_get(&f, &a, 32); dump("fill"); fit_init(&i, &f); dump("iter init"); fib_rehash(&f, 1); dump("rehash up"); fib_rehash(&f, -1); dump("rehash down"); next: c = 0; FIB_ITERATE_START(&f, &i, z) { if (c) { FIB_ITERATE_PUT(&i, z); dump("iter"); goto next; } c = 1; debug("got %p\n", z); } FIB_ITERATE_END; dump("iter end"); fit_init(&i, &f); fit_init(&j, &f); dump("iter init 2"); n = fit_get(&f, &i); dump("iter step 2"); fit_put(&i, n->next); dump("iter step 3"); a = ipa_from_u32(0xffffffff); n = fib_get(&f, &a, 32); fib_delete(&f, n); dump("iter step 3"); return 0; } #endif bird-1.4.0/nest/Doc0000644000103200001440000000024611606273733013033 0ustar feelausersH Core S rt-fib.c S rt-table.c S rt-attr.c D proto.sgml S proto.c S proto-hooks.c S iface.c S neighbor.c S cli.c S locks.c # rt-dev.c documented in Protocols chapter bird-1.4.0/nest/a-set.c0000644000103200001440000001547511732627752013576 0ustar feelausers/* * BIRD -- Set/Community-list Operations * * (c) 2000 Martin Mares * (c) 2000 Pavel Machek * * Can be freely distributed and used under the terms of the GNU GPL. */ #include "nest/bird.h" #include "nest/route.h" #include "nest/attrs.h" #include "lib/resource.h" #include "lib/string.h" /** * int_set_format - format an &set for printing * @set: set attribute to be formatted * @way: style of format (0 for router ID list, 1 for community list) * @from: starting position in set * @buf: destination buffer * @size: size of buffer * * This function takes a set attribute and formats it. @way specifies * the style of format (router ID / community). @from argument can be * used to specify the first printed value for the purpose of printing * untruncated sets even with smaller buffers. If the output fits in * the buffer, 0 is returned, otherwise the position of the first not * printed item is returned. This value can be used as @from argument * in subsequent calls. If truncated output suffices, -1 can be * instead used as @from, in that case " ..." is eventually added at * the buffer to indicate truncation. */ int int_set_format(struct adata *set, int way, int from, byte *buf, unsigned int size) { u32 *z = (u32 *) set->data; byte *end = buf + size - 24; int from2 = MAX(from, 0); int to = set->length / 4; int i; for (i = from2; i < to; i++) { if (buf > end) { if (from < 0) strcpy(buf, " ..."); else *buf = 0; return i; } if (i > from2) *buf++ = ' '; if (way) buf += bsprintf(buf, "(%d,%d)", z[i] >> 16, z[i] & 0xffff); else buf += bsprintf(buf, "%R", z[i]); } *buf = 0; return 0; } int ec_format(byte *buf, u64 ec) { u32 type, key, val; char tbuf[16], *kind; type = ec >> 48; switch (type & 0xf0ff) { case EC_RT: kind = "rt"; break; case EC_RO: kind = "ro"; break; default: kind = tbuf; bsprintf(kind, "unknown 0x%x", type); } switch (ec >> 56) { /* RFC 4360 3.1. Two-Octet AS Specific Extended Community */ case 0x00: case 0x40: key = (ec >> 32) & 0xFFFF; val = ec; return bsprintf(buf, "(%s, %u, %u)", kind, key, val); /* RFC 4360 3.2. IPv4 Address Specific Extended Community */ case 0x01: case 0x41: key = ec >> 16; val = ec & 0xFFFF; return bsprintf(buf, "(%s, %R, %u)", kind, key, val); /* RFC 5668 4-Octet AS Specific BGP Extended Community */ case 0x02: case 0x42: key = ec >> 16; val = ec & 0xFFFF; return bsprintf(buf, "(%s, %u, %u)", kind, key, val); /* Generic format for unknown kinds of extended communities */ default: key = ec >> 32; val = ec; return bsprintf(buf, "(generic, 0x%x, 0x%x)", key, val); } } int ec_set_format(struct adata *set, int from, byte *buf, unsigned int size) { u32 *z = int_set_get_data(set); byte *end = buf + size - 24; int from2 = MAX(from, 0); int to = int_set_get_size(set); int i; for (i = from2; i < to; i += 2) { if (buf > end) { if (from < 0) strcpy(buf, " ..."); else *buf = 0; return i; } if (i > from2) *buf++ = ' '; buf += ec_format(buf, ec_get(z, i)); } *buf = 0; return 0; } int int_set_contains(struct adata *list, u32 val) { if (!list) return 0; u32 *l = (u32 *) list->data; int len = int_set_get_size(list); int i; for (i = 0; i < len; i++) if (*l++ == val) return 1; return 0; } int ec_set_contains(struct adata *list, u64 val) { if (!list) return 0; u32 *l = int_set_get_data(list); int len = int_set_get_size(list); u32 eh = ec_hi(val); u32 el = ec_lo(val); int i; for (i=0; i < len; i += 2) if (l[i] == eh && l[i+1] == el) return 1; return 0; } struct adata * int_set_add(struct linpool *pool, struct adata *list, u32 val) { struct adata *res; int len; if (int_set_contains(list, val)) return list; len = list ? list->length : 0; res = lp_alloc(pool, sizeof(struct adata) + len + 4); res->length = len + 4; * (u32 *) res->data = val; if (list) memcpy((char *) res->data + 4, list->data, list->length); return res; } struct adata * ec_set_add(struct linpool *pool, struct adata *list, u64 val) { if (ec_set_contains(list, val)) return list; int olen = list ? list->length : 0; struct adata *res = lp_alloc(pool, sizeof(struct adata) + olen + 8); res->length = olen + 8; if (list) memcpy(res->data, list->data, list->length); u32 *l = (u32 *) (res->data + res->length - 8); l[0] = ec_hi(val); l[1] = ec_lo(val); return res; } struct adata * int_set_del(struct linpool *pool, struct adata *list, u32 val) { if (!int_set_contains(list, val)) return list; struct adata *res; res = lp_alloc(pool, sizeof(struct adata) + list->length - 4); res->length = list->length - 4; u32 *l = int_set_get_data(list); u32 *k = int_set_get_data(res); int len = int_set_get_size(list); int i; for (i = 0; i < len; i++) if (l[i] != val) *k++ = l[i]; return res; } struct adata * ec_set_del(struct linpool *pool, struct adata *list, u64 val) { if (!ec_set_contains(list, val)) return list; struct adata *res; res = lp_alloc(pool, sizeof(struct adata) + list->length - 8); res->length = list->length - 8; u32 *l = int_set_get_data(list); u32 *k = int_set_get_data(res); int len = int_set_get_size(list); u32 eh = ec_hi(val); u32 el = ec_lo(val); int i; for (i=0; i < len; i += 2) if (! (l[i] == eh && l[i+1] == el)) { *k++ = l[i]; *k++ = l[i+1]; } return res; } struct adata * int_set_union(struct linpool *pool, struct adata *l1, struct adata *l2) { if (!l1) return l2; if (!l2) return l1; struct adata *res; int len = int_set_get_size(l2); u32 *l = int_set_get_data(l2); u32 tmp[len]; u32 *k = tmp; int i; for (i = 0; i < len; i++) if (!int_set_contains(l1, l[i])) *k++ = l[i]; if (k == tmp) return l1; len = (k - tmp) * 4; res = lp_alloc(pool, sizeof(struct adata) + l1->length + len); res->length = l1->length + len; memcpy(res->data, l1->data, l1->length); memcpy(res->data + l1->length, tmp, len); return res; } struct adata * ec_set_union(struct linpool *pool, struct adata *l1, struct adata *l2) { if (!l1) return l2; if (!l2) return l1; struct adata *res; int len = int_set_get_size(l2); u32 *l = int_set_get_data(l2); u32 tmp[len]; u32 *k = tmp; int i; for (i = 0; i < len; i += 2) if (!ec_set_contains(l1, ec_get(l, i))) { *k++ = l[i]; *k++ = l[i+1]; } if (k == tmp) return l1; len = (k - tmp) * 4; res = lp_alloc(pool, sizeof(struct adata) + l1->length + len); res->length = l1->length + len; memcpy(res->data, l1->data, l1->length); memcpy(res->data + l1->length, tmp, len); return res; } bird-1.4.0/nest/route.h0000644000103200001440000005004612244117701013704 0ustar feelausers/* * BIRD Internet Routing Daemon -- Routing Table * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_ROUTE_H_ #define _BIRD_ROUTE_H_ #include "lib/lists.h" #include "lib/resource.h" #include "lib/timer.h" #include "nest/protocol.h" struct protocol; struct proto; struct symbol; struct filter; struct cli; /* * Generic data structure for storing network prefixes. Also used * for the master routing table. Currently implemented as a hash * table. * * Available operations: * - insertion of new entry * - deletion of entry * - searching for entry by network prefix * - asynchronous retrieval of fib contents */ struct fib_node { struct fib_node *next; /* Next in hash chain */ struct fib_iterator *readers; /* List of readers of this node */ byte pxlen; byte flags; /* User-defined */ byte x0, x1; /* User-defined */ u32 uid; /* Unique ID based on hash */ ip_addr prefix; /* In host order */ }; struct fib_iterator { /* See lib/slists.h for an explanation */ struct fib_iterator *prev, *next; /* Must be synced with struct fib_node! */ byte efef; /* 0xff to distinguish between iterator and node */ byte pad[3]; struct fib_node *node; /* Or NULL if freshly merged */ unsigned int hash; }; typedef void (*fib_init_func)(struct fib_node *); struct fib { pool *fib_pool; /* Pool holding all our data */ slab *fib_slab; /* Slab holding all fib nodes */ struct fib_node **hash_table; /* Node hash table */ unsigned int hash_size; /* Number of hash table entries (a power of two) */ unsigned int hash_order; /* Binary logarithm of hash_size */ unsigned int hash_shift; /* 16 - hash_log */ unsigned int entries; /* Number of entries */ unsigned int entries_min, entries_max;/* Entry count limits (else start rehashing) */ fib_init_func init; /* Constructor */ }; void fib_init(struct fib *, pool *, unsigned node_size, unsigned hash_order, fib_init_func init); void *fib_find(struct fib *, ip_addr *, int); /* Find or return NULL if doesn't exist */ void *fib_get(struct fib *, ip_addr *, int); /* Find or create new if nonexistent */ void *fib_route(struct fib *, ip_addr, int); /* Longest-match routing lookup */ void fib_delete(struct fib *, void *); /* Remove fib entry */ void fib_free(struct fib *); /* Destroy the fib */ void fib_check(struct fib *); /* Consistency check for debugging */ void fit_init(struct fib_iterator *, struct fib *); /* Internal functions, don't call */ struct fib_node *fit_get(struct fib *, struct fib_iterator *); void fit_put(struct fib_iterator *, struct fib_node *); #define FIB_WALK(fib, z) do { \ struct fib_node *z, **ff = (fib)->hash_table; \ unsigned int count = (fib)->hash_size; \ while (count--) \ for(z = *ff++; z; z=z->next) #define FIB_WALK_END } while (0) #define FIB_ITERATE_INIT(it, fib) fit_init(it, fib) #define FIB_ITERATE_START(fib, it, z) do { \ struct fib_node *z = fit_get(fib, it); \ unsigned int count = (fib)->hash_size; \ unsigned int hpos = (it)->hash; \ for(;;) { \ if (!z) \ { \ if (++hpos >= count) \ break; \ z = (fib)->hash_table[hpos]; \ continue; \ } #define FIB_ITERATE_END(z) z = z->next; } } while(0) #define FIB_ITERATE_PUT(it, z) fit_put(it, z) /* * Master Routing Tables. Generally speaking, each of them contains a FIB * with each entry pointing to a list of route entries representing routes * to given network (with the selected one at the head). * * Each of the RTE's contains variable data (the preference and protocol-dependent * metrics) and a pointer to a route attribute block common for many routes). * * It's guaranteed that there is at most one RTE for every (prefix,proto) pair. */ struct rtable_config { node n; char *name; struct rtable *table; struct proto_config *krt_attached; /* Kernel syncer attached to this table */ int gc_max_ops; /* Maximum number of operations before GC is run */ int gc_min_time; /* Minimum time between two consecutive GC runs */ byte sorted; /* Routes of network are sorted according to rte_better() */ }; typedef struct rtable { node n; /* Node in list of all tables */ struct fib fib; char *name; /* Name of this table */ list hooks; /* List of announcement hooks */ int pipe_busy; /* Pipe loop detection */ int use_count; /* Number of protocols using this table */ struct hostcache *hostcache; struct rtable_config *config; /* Configuration of this table */ struct config *deleted; /* Table doesn't exist in current configuration, * delete as soon as use_count becomes 0 and remove * obstacle from this routing table. */ struct event *rt_event; /* Routing table event */ int gc_counter; /* Number of operations since last GC */ bird_clock_t gc_time; /* Time of last GC */ byte gc_scheduled; /* GC is scheduled */ byte prune_state; /* Table prune state, 1 -> scheduled, 2-> running */ byte hcu_scheduled; /* Hostcache update is scheduled */ byte nhu_state; /* Next Hop Update state */ struct fib_iterator prune_fit; /* Rtable prune FIB iterator */ struct fib_iterator nhu_fit; /* Next Hop Update FIB iterator */ } rtable; typedef struct network { struct fib_node n; /* FIB flags reserved for kernel syncer */ struct rte *routes; /* Available routes for this network */ } net; struct hostcache { slab *slab; /* Slab holding all hostentries */ struct hostentry **hash_table; /* Hash table for hostentries */ unsigned hash_order, hash_shift; unsigned hash_max, hash_min; unsigned hash_items; linpool *lp; /* Linpool for trie */ struct f_trie *trie; /* Trie of prefixes that might affect hostentries */ list hostentries; /* List of all hostentries */ byte update_hostcache; }; struct hostentry { node ln; ip_addr addr; /* IP address of host, part of key */ ip_addr link; /* (link-local) IP address of host, used as gw if host is directly attached */ struct rtable *tab; /* Dependent table, part of key*/ struct hostentry *next; /* Next in hash chain */ unsigned hash_key; /* Hash key */ unsigned uc; /* Use count */ struct rta *src; /* Source rta entry */ ip_addr gw; /* Chosen next hop */ byte dest; /* Chosen route destination type (RTD_...) */ u32 igp_metric; /* Chosen route IGP metric */ }; typedef struct rte { struct rte *next; net *net; /* Network this RTE belongs to */ struct announce_hook *sender; /* Announce hook used to send the route to the routing table */ struct rta *attrs; /* Attributes of this route */ byte flags; /* Flags (REF_...) */ byte pflags; /* Protocol-specific flags */ word pref; /* Route preference */ bird_clock_t lastmod; /* Last modified */ union { /* Protocol-dependent data (metrics etc.) */ #ifdef CONFIG_RIP struct { node garbage; /* List for garbage collection */ byte metric; /* RIP metric */ u16 tag; /* External route tag */ struct rip_entry *entry; } rip; #endif #ifdef CONFIG_OSPF struct { u32 metric1, metric2; /* OSPF Type 1 and Type 2 metrics */ u32 tag; /* External route tag */ u32 router_id; /* Router that originated this route */ } ospf; #endif #ifdef CONFIG_BGP struct { u8 suppressed; /* Used for deterministic MED comparison */ } bgp; #endif struct { /* Routes generated by krt sync (both temporary and inherited ones) */ s8 src; /* Alleged route source (see krt.h) */ u8 proto; /* Kernel source protocol ID */ u8 type; /* Kernel route type */ u8 seen; /* Seen during last scan */ u32 metric; /* Kernel metric */ } krt; } u; } rte; #define REF_COW 1 /* Copy this rte on write */ #define REF_FILTERED 2 /* Route is rejected by import filter */ /* Route is valid for propagation (may depend on other flags in the future), accepts NULL */ static inline int rte_is_valid(rte *r) { return r && !(r->flags & REF_FILTERED); } /* Route just has REF_FILTERED flag */ static inline int rte_is_filtered(rte *r) { return !!(r->flags & REF_FILTERED); } /* Types of route announcement, also used as flags */ #define RA_OPTIMAL 1 /* Announcement of optimal route change */ #define RA_ACCEPTED 2 /* Announcement of first accepted route */ #define RA_ANY 3 /* Announcement of any route change */ /* Return value of import_control() callback */ #define RIC_ACCEPT 1 /* Accepted by protocol */ #define RIC_PROCESS 0 /* Process it through import filter */ #define RIC_REJECT -1 /* Rejected by protocol */ #define RIC_DROP -2 /* Silently dropped by protocol */ struct config; void rt_init(void); void rt_preconfig(struct config *); void rt_commit(struct config *new, struct config *old); void rt_lock_table(rtable *); void rt_unlock_table(rtable *); void rt_setup(pool *, rtable *, char *, struct rtable_config *); static inline net *net_find(rtable *tab, ip_addr addr, unsigned len) { return (net *) fib_find(&tab->fib, &addr, len); } static inline net *net_get(rtable *tab, ip_addr addr, unsigned len) { return (net *) fib_get(&tab->fib, &addr, len); } rte *rte_find(net *net, struct proto *p); rte *rte_get_temp(struct rta *); void rte_update2(struct announce_hook *ah, net *net, rte *new, struct proto *src); static inline void rte_update(rtable *tab, net *net, struct proto *p, struct proto *src, rte *new) { rte_update2(p->main_ahook, net, new, src); } void rte_discard(rtable *tab, rte *old); int rt_examine(rtable *t, ip_addr prefix, int pxlen, struct proto *p, struct filter *filter); void rte_dump(rte *); void rte_free(rte *); rte *rte_do_cow(rte *); static inline rte * rte_cow(rte *r) { return (r->flags & REF_COW) ? rte_do_cow(r) : r; } void rt_dump(rtable *); void rt_dump_all(void); int rt_feed_baby(struct proto *p); void rt_feed_baby_abort(struct proto *p); int rt_prune_loop(void); struct rtable_config *rt_new_table(struct symbol *s); struct rt_show_data { ip_addr prefix; unsigned pxlen; rtable *table; struct filter *filter; int verbose; struct fib_iterator fit; struct proto *show_protocol; struct proto *export_protocol; int export_mode, primary_only, filtered; struct config *running_on_config; int net_counter, rt_counter, show_counter; int stats, show_for; }; void rt_show(struct rt_show_data *); /* * Route Attributes * * Beware: All standard BGP attributes must be represented here instead * of making them local to the route. This is needed to ensure proper * construction of BGP route attribute lists. */ /* Multipath next-hop */ struct mpnh { ip_addr gw; /* Next hop */ struct iface *iface; /* Outgoing interface */ struct mpnh *next; unsigned char weight; }; typedef struct rta { struct rta *next, **pprev; /* Hash chain */ struct proto *proto; /* Protocol instance that originally created the route */ unsigned uc; /* Use count */ byte source; /* Route source (RTS_...) */ byte scope; /* Route scope (SCOPE_... -- see ip.h) */ byte cast; /* Casting type (RTC_...) */ byte dest; /* Route destination type (RTD_...) */ byte flags; /* Route flags (RTF_...), now unused */ byte aflags; /* Attribute cache flags (RTAF_...) */ u16 hash_key; /* Hash over important fields */ u32 igp_metric; /* IGP metric to next hop (for iBGP routes) */ ip_addr gw; /* Next hop */ ip_addr from; /* Advertising router */ struct hostentry *hostentry; /* Hostentry for recursive next-hops */ struct iface *iface; /* Outgoing interface */ struct mpnh *nexthops; /* Next-hops for multipath routes */ struct ea_list *eattrs; /* Extended Attribute chain */ } rta; #define RTS_DUMMY 0 /* Dummy route to be removed soon */ #define RTS_STATIC 1 /* Normal static route */ #define RTS_INHERIT 2 /* Route inherited from kernel */ #define RTS_DEVICE 3 /* Device route */ #define RTS_STATIC_DEVICE 4 /* Static device route */ #define RTS_REDIRECT 5 /* Learned via redirect */ #define RTS_RIP 6 /* RIP route */ #define RTS_OSPF 7 /* OSPF route */ #define RTS_OSPF_IA 8 /* OSPF inter-area route */ #define RTS_OSPF_EXT1 9 /* OSPF external route type 1 */ #define RTS_OSPF_EXT2 10 /* OSPF external route type 2 */ #define RTS_BGP 11 /* BGP route */ #define RTS_PIPE 12 /* Inter-table wormhole */ #define RTC_UNICAST 0 #define RTC_BROADCAST 1 #define RTC_MULTICAST 2 #define RTC_ANYCAST 3 /* IPv6 Anycast */ #define RTD_ROUTER 0 /* Next hop is neighbor router */ #define RTD_DEVICE 1 /* Points to device */ #define RTD_BLACKHOLE 2 /* Silently drop packets */ #define RTD_UNREACHABLE 3 /* Reject as unreachable */ #define RTD_PROHIBIT 4 /* Administratively prohibited */ #define RTD_MULTIPATH 5 /* Multipath route (nexthops != NULL) */ #define RTD_NONE 6 /* Invalid RTD */ /* Flags for net->n.flags, used by kernel syncer */ #define KRF_INSTALLED 0x80 /* This route should be installed in the kernel */ #define KRF_SYNC_ERROR 0x40 /* Error during kernel table synchronization */ #define RTAF_CACHED 1 /* This is a cached rta */ #define IGP_METRIC_UNKNOWN 0x80000000 /* Default igp_metric used when no other protocol-specific metric is availabe */ /* * Extended Route Attributes */ typedef struct eattr { word id; /* EA_CODE(EAP_..., protocol-dependent ID) */ byte flags; /* Protocol-dependent flags */ byte type; /* Attribute type and several flags (EAF_...) */ union { u32 data; struct adata *ptr; /* Attribute data elsewhere */ } u; } eattr; #define EAP_GENERIC 0 /* Generic attributes */ #define EAP_BGP 1 /* BGP attributes */ #define EAP_RIP 2 /* RIP */ #define EAP_OSPF 3 /* OSPF */ #define EAP_KRT 4 /* Kernel route attributes */ #define EAP_MAX 5 #define EA_CODE(proto,id) (((proto) << 8) | (id)) #define EA_PROTO(ea) ((ea) >> 8) #define EA_ID(ea) ((ea) & 0xff) #define EA_GEN_IGP_METRIC EA_CODE(EAP_GENERIC, 0) #define EA_CODE_MASK 0xffff #define EA_ALLOW_UNDEF 0x10000 /* ea_find: allow EAF_TYPE_UNDEF */ #define EAF_TYPE_MASK 0x0f /* Mask with this to get type */ #define EAF_TYPE_INT 0x01 /* 32-bit signed integer number */ #define EAF_TYPE_OPAQUE 0x02 /* Opaque byte string (not filterable) */ #define EAF_TYPE_IP_ADDRESS 0x04 /* IP address */ #define EAF_TYPE_ROUTER_ID 0x05 /* Router ID (IPv4 address) */ #define EAF_TYPE_AS_PATH 0x06 /* BGP AS path (encoding per RFC 1771:4.3) */ #define EAF_TYPE_INT_SET 0x0a /* Set of u32's (e.g., a community list) */ #define EAF_TYPE_EC_SET 0x0e /* Set of pairs of u32's - ext. community list */ #define EAF_TYPE_UNDEF 0x0f /* `force undefined' entry */ #define EAF_EMBEDDED 0x01 /* Data stored in eattr.u.data (part of type spec) */ #define EAF_VAR_LENGTH 0x02 /* Attribute length is variable (part of type spec) */ #define EAF_ORIGINATED 0x40 /* The attribute has originated locally */ #define EAF_TEMP 0x80 /* A temporary attribute (the one stored in the tmp attr list) */ struct adata { unsigned int length; /* Length of data */ byte data[0]; }; static inline int adata_same(struct adata *a, struct adata *b) { return (a->length == b->length && !memcmp(a->data, b->data, a->length)); } typedef struct ea_list { struct ea_list *next; /* In case we have an override list */ byte flags; /* Flags: EALF_... */ byte rfu; word count; /* Number of attributes */ eattr attrs[0]; /* Attribute definitions themselves */ } ea_list; #define EALF_SORTED 1 /* Attributes are sorted by code */ #define EALF_BISECT 2 /* Use interval bisection for searching */ #define EALF_CACHED 4 /* Attributes belonging to cached rta */ eattr *ea_find(ea_list *, unsigned ea); int ea_get_int(ea_list *, unsigned ea, int def); void ea_dump(ea_list *); void ea_sort(ea_list *); /* Sort entries in all sub-lists */ unsigned ea_scan(ea_list *); /* How many bytes do we need for merged ea_list */ void ea_merge(ea_list *from, ea_list *to); /* Merge sub-lists to allocated buffer */ int ea_same(ea_list *x, ea_list *y); /* Test whether two ea_lists are identical */ unsigned int ea_hash(ea_list *e); /* Calculate 16-bit hash value */ ea_list *ea_append(ea_list *to, ea_list *what); int mpnh__same(struct mpnh *x, struct mpnh *y); /* Compare multipath nexthops */ static inline int mpnh_same(struct mpnh *x, struct mpnh *y) { return (x == y) || mpnh__same(x, y); } void rta_init(void); rta *rta_lookup(rta *); /* Get rta equivalent to this one, uc++ */ static inline rta *rta_clone(rta *r) { r->uc++; return r; } void rta__free(rta *r); static inline void rta_free(rta *r) { if (r && !--r->uc) rta__free(r); } void rta_dump(rta *); void rta_dump_all(void); void rta_show(struct cli *, rta *, ea_list *); void rta_set_recursive_next_hop(rtable *dep, rta *a, rtable *tab, ip_addr *gw, ip_addr *ll); /* * rta_set_recursive_next_hop() acquires hostentry from hostcache and * fills rta->hostentry field. New hostentry has zero use * count. Cached rta locks its hostentry (increases its use count), * uncached rta does not lock it. Hostentry with zero use count is * removed asynchronously during host cache update, therefore it is * safe to hold such hostentry temorarily. Hostentry holds a lock for * a 'source' rta, mainly to share multipath nexthops. There is no * need to hold a lock for hostentry->dep table, because that table * contains routes responsible for that hostentry, and therefore is * non-empty if given hostentry has non-zero use count. The protocol * responsible for routes with recursive next hops should also hold a * lock for a table governing that routes (argument tab to * rta_set_recursive_next_hop()). */ static inline void rt_lock_hostentry(struct hostentry *he) { if (he) he->uc++; } static inline void rt_unlock_hostentry(struct hostentry *he) { if (he) he->uc--; } extern struct protocol *attr_class_to_protocol[EAP_MAX]; /* * Default protocol preferences */ #define DEF_PREF_DIRECT 240 /* Directly connected */ #define DEF_PREF_STATIC 200 /* Static route */ #define DEF_PREF_OSPF 150 /* OSPF intra-area, inter-area and type 1 external routes */ #define DEF_PREF_RIP 120 /* RIP */ #define DEF_PREF_BGP 100 /* BGP */ #define DEF_PREF_PIPE 70 /* Routes piped from other tables */ #define DEF_PREF_INHERITED 10 /* Routes inherited from other routing daemons */ /* * Route Origin Authorization */ struct roa_item { u32 asn; byte maxlen; byte src; struct roa_item *next; }; struct roa_node { struct fib_node n; struct roa_item *items; // u32 cached_asn; }; struct roa_table { node n; /* Node in roa_table_list */ struct fib fib; char *name; /* Name of this ROA table */ struct roa_table_config *cf; /* Configuration of this ROA table */ }; struct roa_item_config { ip_addr prefix; byte pxlen, maxlen; u32 asn; struct roa_item_config *next; }; struct roa_table_config { node n; /* Node in config->rpa_tables */ char *name; /* Name of this ROA table */ struct roa_table *table; struct roa_item_config *roa_items; /* Preconfigured ROA items */ // char *filename; // int gc_max_ops; /* Maximum number of operations before GC is run */ // int gc_min_time; /* Minimum time between two consecutive GC runs */ }; struct roa_show_data { struct fib_iterator fit; struct roa_table *table; ip_addr prefix; byte pxlen; byte mode; /* ROA_SHOW_* values */ u32 asn; /* Filter ASN, 0 -> all */ }; #define ROA_UNKNOWN 0 #define ROA_VALID 1 #define ROA_INVALID 2 #define ROA_SRC_ANY 0 #define ROA_SRC_CONFIG 1 #define ROA_SRC_DYNAMIC 2 #define ROA_SHOW_ALL 0 #define ROA_SHOW_PX 1 #define ROA_SHOW_IN 2 #define ROA_SHOW_FOR 3 extern struct roa_table *roa_table_default; void roa_add_item(struct roa_table *t, ip_addr prefix, byte pxlen, byte maxlen, u32 asn, byte src); void roa_delete_item(struct roa_table *t, ip_addr prefix, byte pxlen, byte maxlen, u32 asn, byte src); void roa_flush(struct roa_table *t, byte src); byte roa_check(struct roa_table *t, ip_addr prefix, byte pxlen, u32 asn); struct roa_table_config * roa_new_table_config(struct symbol *s); void roa_add_item_config(struct roa_table_config *rtc, ip_addr prefix, byte pxlen, byte maxlen, u32 asn); void roa_init(void); void roa_preconfig(struct config *c); void roa_commit(struct config *new, struct config *old); void roa_show(struct roa_show_data *d); #endif bird-1.4.0/nest/config.Y0000644000103200001440000004476512244117701014007 0ustar feelausers/* * BIRD -- Core Configuration * * (c) 1998--2000 Martin Mares * (c) 2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ CF_HDR #include "nest/rt-dev.h" #include "nest/password.h" #include "nest/cmds.h" #include "lib/lists.h" CF_DEFINES static struct proto_config *this_proto; static struct iface_patt *this_ipatt; static struct iface_patt_node *this_ipn; static struct roa_table_config *this_roa_table; static list *this_p_list; static struct password_item *this_p_item; static int password_id; static inline void reset_passwords(void) { this_p_list = NULL; } static inline list * get_passwords(void) { list *rv = this_p_list; this_p_list = NULL; return rv; } #define DIRECT_CFG ((struct rt_dev_config *) this_proto) CF_DECLS CF_KEYWORDS(ROUTER, ID, PROTOCOL, TEMPLATE, PREFERENCE, DISABLED, DEBUG, ALL, OFF, DIRECT) CF_KEYWORDS(INTERFACE, IMPORT, EXPORT, FILTER, NONE, TABLE, STATES, ROUTES, FILTERS) CF_KEYWORDS(RECEIVE, LIMIT, ACTION, WARN, BLOCK, RESTART, DISABLE, KEEP, FILTERED) CF_KEYWORDS(PASSWORD, FROM, PASSIVE, TO, ID, EVENTS, PACKETS, PROTOCOLS, INTERFACES) CF_KEYWORDS(PRIMARY, STATS, COUNT, FOR, COMMANDS, PREEXPORT, GENERATE, ROA, MAX, FLUSH, AS) CF_KEYWORDS(LISTEN, BGP, V6ONLY, DUAL, ADDRESS, PORT, PASSWORDS, DESCRIPTION, SORTED) CF_KEYWORDS(RELOAD, IN, OUT, MRTDUMP, MESSAGES, RESTRICT, MEMORY, IGP_METRIC, CLASS, DSCP) CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIRECT, RIP, OSPF, OSPF_IA, OSPF_EXT1, OSPF_EXT2, BGP, PIPE) CF_ENUM(T_ENUM_SCOPE, SCOPE_, HOST, LINK, SITE, ORGANIZATION, UNIVERSE, UNDEFINED) CF_ENUM(T_ENUM_RTC, RTC_, UNICAST, BROADCAST, MULTICAST, ANYCAST) CF_ENUM(T_ENUM_RTD, RTD_, ROUTER, DEVICE, BLACKHOLE, UNREACHABLE, PROHIBIT, MULTIPATH) CF_ENUM(T_ENUM_ROA, ROA_, UNKNOWN, VALID, INVALID) %type idval %type imexport %type rtable %type optsym %type r_args %type roa_args %type roa_table_arg %type sym_args %type proto_start echo_mask echo_size debug_mask debug_list debug_flag mrtdump_mask mrtdump_list mrtdump_flag export_or_preexport roa_mode limit_action tab_sorted tos %type proto_patt proto_patt2 %type limit_spec CF_GRAMMAR /* Setting of router ID */ CF_ADDTO(conf, rtrid) rtrid: ROUTER ID idval ';' { new_config->router_id = $3; } | ROUTER ID FROM iface_patt ';' { new_config->router_id_from = this_ipatt; } ; idval: NUM { $$ = $1; } | RTRID | IPA { #ifndef IPV6 $$ = ipa_to_u32($1); #else cf_error("Router IDs must be entered as hexadecimal numbers or IPv4 addresses in IPv6 version"); #endif } ; CF_ADDTO(conf, listen) listen: LISTEN BGP listen_opts ';' ; listen_opts: /* Nothing */ | listen_opts listen_opt ; listen_opt: ADDRESS ipa { new_config->listen_bgp_addr = $2; } | PORT expr { new_config->listen_bgp_port = $2; } | V6ONLY { new_config->listen_bgp_flags = 0; } | DUAL { new_config->listen_bgp_flags = 1; } ; /* Creation of routing tables */ tab_sorted: { $$ = 0; } | SORTED { $$ = 1; } ; CF_ADDTO(conf, newtab) newtab: TABLE SYM tab_sorted { struct rtable_config *cf; cf = rt_new_table($2); cf->sorted = $3; } ; CF_ADDTO(conf, roa_table) roa_table_start: ROA TABLE SYM { this_roa_table = roa_new_table_config($3); }; roa_table_opts: /* empty */ | roa_table_opts ROA prefix MAX NUM AS NUM ';' { roa_add_item_config(this_roa_table, $3.addr, $3.len, $5, $7); } ; roa_table: roa_table_start | roa_table_start '{' roa_table_opts '}' ; /* Definition of protocols */ CF_ADDTO(conf, proto) proto_start: PROTOCOL { $$ = SYM_PROTO; } | TEMPLATE { $$ = SYM_TEMPLATE; } ; proto_name: /* EMPTY */ { struct symbol *s = cf_default_name(this_proto->protocol->template, &this_proto->protocol->name_counter); s->class = this_proto->class; s->def = this_proto; this_proto->name = s->name; } | SYM { cf_define_symbol($1, this_proto->class, this_proto); this_proto->name = $1->name; } | SYM FROM SYM { if (($3->class != SYM_TEMPLATE) && ($3->class != SYM_PROTO)) cf_error("Template or protocol name expected"); cf_define_symbol($1, this_proto->class, this_proto); this_proto->name = $1->name; proto_copy_config(this_proto, $3->def); } ; proto_item: /* EMPTY */ | PREFERENCE expr { if ($2 < 0 || $2 > 0xFFFF) cf_error("Invalid preference"); this_proto->preference = $2; } | DISABLED bool { this_proto->disabled = $2; } | DEBUG debug_mask { this_proto->debug = $2; } | MRTDUMP mrtdump_mask { this_proto->mrtdump = $2; } | IMPORT imexport { this_proto->in_filter = $2; } | EXPORT imexport { this_proto->out_filter = $2; } | RECEIVE LIMIT limit_spec { this_proto->rx_limit = $3; } | IMPORT LIMIT limit_spec { this_proto->in_limit = $3; } | EXPORT LIMIT limit_spec { this_proto->out_limit = $3; } | IMPORT KEEP FILTERED bool { this_proto->in_keep_filtered = $4; } | TABLE rtable { this_proto->table = $2; } | ROUTER ID idval { this_proto->router_id = $3; } | DESCRIPTION TEXT { this_proto->dsc = $2; } ; imexport: FILTER filter { $$ = $2; } | where_filter | ALL { $$ = FILTER_ACCEPT; } | NONE { $$ = FILTER_REJECT; } ; limit_action: /* default */ { $$ = PLA_DISABLE; } | ACTION WARN { $$ = PLA_WARN; } | ACTION BLOCK { $$ = PLA_BLOCK; } | ACTION RESTART { $$ = PLA_RESTART; } | ACTION DISABLE { $$ = PLA_DISABLE; } ; limit_spec: expr limit_action { struct proto_limit *l = cfg_allocz(sizeof(struct proto_limit)); l->limit = $1; l->action = $2; $$ = l; } | OFF { $$ = NULL; } ; rtable: SYM { if ($1->class != SYM_TABLE) cf_error("Table name expected"); $$ = $1->def; } ; CF_ADDTO(conf, debug_default) debug_default: DEBUG PROTOCOLS debug_mask { new_config->proto_default_debug = $3; } | DEBUG COMMANDS expr { new_config->cli_debug = $3; } ; /* MRTDUMP PROTOCOLS is in systep/unix/config.Y */ /* Interface patterns */ iface_patt_node_init: /* EMPTY */ { struct iface_patt_node *ipn = cfg_allocz(sizeof(struct iface_patt_node)); add_tail(&this_ipatt->ipn_list, NODE ipn); this_ipn = ipn; } ; iface_patt_node_body: TEXT { this_ipn->pattern = $1; this_ipn->prefix = IPA_NONE; this_ipn->pxlen = 0; } | prefix_or_ipa { this_ipn->pattern = NULL; this_ipn->prefix = $1.addr; this_ipn->pxlen = $1.len; } | TEXT prefix_or_ipa { this_ipn->pattern = $1; this_ipn->prefix = $2.addr; this_ipn->pxlen = $2.len; } ; iface_negate: { this_ipn->positive = 1; } | '-' { this_ipn->positive = 0; } ; iface_patt_node: iface_patt_node_init iface_negate iface_patt_node_body ; iface_patt_list: iface_patt_node | iface_patt_list ',' iface_patt_node ; iface_patt_init: { /* Generic this_ipatt init */ this_ipatt = cfg_allocz(sizeof(struct iface_patt)); init_list(&this_ipatt->ipn_list); } ; iface_patt: iface_patt_init iface_patt_list ; tos: CLASS expr { $$ = $2 & 0xfc; if (($2 < 0) || ($2 > 255)) cf_error("TX class must be in range 0-255"); } | DSCP expr { $$ = ($2 & 0x3f) << 2; if (($2 < 0) || ($2 > 63)) cf_error("TX DSCP must be in range 0-63"); } ; /* Direct device route protocol */ CF_ADDTO(proto, dev_proto '}') dev_proto_start: proto_start DIRECT { this_proto = proto_config_new(&proto_device, sizeof(struct rt_dev_config), $1); init_list(&DIRECT_CFG->iface_list); } ; dev_proto: dev_proto_start proto_name '{' | dev_proto proto_item ';' | dev_proto dev_iface_patt ';' ; dev_iface_init: /* EMPTY */ { this_ipatt = cfg_allocz(sizeof(struct iface_patt)); add_tail(&DIRECT_CFG->iface_list, NODE this_ipatt); init_list(&this_ipatt->ipn_list); } ; dev_iface_patt: INTERFACE dev_iface_init iface_patt_list ; /* Debug flags */ debug_mask: ALL { $$ = ~0; } | OFF { $$ = 0; } | '{' debug_list '}' { $$ = $2; } ; debug_list: debug_flag | debug_list ',' debug_flag { $$ = $1 | $3; } ; debug_flag: STATES { $$ = D_STATES; } | ROUTES { $$ = D_ROUTES; } | FILTERS { $$ = D_FILTERS; } | INTERFACES { $$ = D_IFACES; } | EVENTS { $$ = D_EVENTS; } | PACKETS { $$ = D_PACKETS; } ; /* MRTDump flags */ mrtdump_mask: ALL { $$ = ~0; } | OFF { $$ = 0; } | '{' mrtdump_list '}' { $$ = $2; } ; mrtdump_list: mrtdump_flag | mrtdump_list ',' mrtdump_flag { $$ = $1 | $3; } ; mrtdump_flag: STATES { $$ = MD_STATES; } | MESSAGES { $$ = MD_MESSAGES; } ; /* Password lists */ password_list: PASSWORDS '{' password_items '}' | password_item ; password_items: /* empty */ | password_item ';' password_items ; password_item: password_item_begin '{' password_item_params '}' | password_item_begin ; password_item_begin: PASSWORD TEXT { if (!this_p_list) { this_p_list = cfg_alloc(sizeof(list)); init_list(this_p_list); password_id = 1; } this_p_item = cfg_alloc(sizeof (struct password_item)); this_p_item->password = $2; this_p_item->genfrom = 0; this_p_item->gento = TIME_INFINITY; this_p_item->accfrom = 0; this_p_item->accto = TIME_INFINITY; this_p_item->id = password_id++; add_tail(this_p_list, &this_p_item->n); } ; password_item_params: /* empty */ { } | GENERATE FROM datetime ';' password_item_params { this_p_item->genfrom = $3; } | GENERATE TO datetime ';' password_item_params { this_p_item->gento = $3; } | ACCEPT FROM datetime ';' password_item_params { this_p_item->accfrom = $3; } | ACCEPT TO datetime ';' password_item_params { this_p_item->accto = $3; } | ID expr ';' password_item_params { this_p_item->id = $2; if ($2 <= 0) cf_error("Password ID has to be greated than zero."); } ; /* Core commands */ CF_CLI_HELP(SHOW, ..., [[Show status information]]) CF_CLI(SHOW STATUS,,, [[Show router status]]) { cmd_show_status(); } ; CF_CLI(SHOW MEMORY,,, [[Show memory usage]]) { cmd_show_memory(); } ; CF_CLI(SHOW PROTOCOLS, proto_patt2, [ | \"\"], [[Show routing protocols]]) { proto_apply_cmd($3, proto_cmd_show, 0, 0); } ; CF_CLI(SHOW PROTOCOLS ALL, proto_patt2, [ | \"\"], [[Show routing protocol details]]) { proto_apply_cmd($4, proto_cmd_show, 0, 1); } ; optsym: SYM | /* empty */ { $$ = NULL; } ; CF_CLI(SHOW INTERFACES,,, [[Show network interfaces]]) { if_show(); } ; CF_CLI(SHOW INTERFACES SUMMARY,,, [[Show summary of network interfaces]]) { if_show_summary(); } ; CF_CLI_HELP(SHOW ROUTE, ..., [[Show routing table]]) CF_CLI(SHOW ROUTE, r_args, [[[|for |for ] [table ] [filter |where ] [all] [primary] [filtered] [(export|preexport)

] [protocol

] [stats|count]]], [[Show routing table]]) { rt_show($3); } ; r_args: /* empty */ { $$ = cfg_allocz(sizeof(struct rt_show_data)); $$->pxlen = 256; $$->filter = FILTER_ACCEPT; } | r_args prefix { $$ = $1; if ($$->pxlen != 256) cf_error("Only one prefix expected"); $$->prefix = $2.addr; $$->pxlen = $2.len; } | r_args FOR prefix_or_ipa { $$ = $1; if ($$->pxlen != 256) cf_error("Only one prefix expected"); $$->prefix = $3.addr; $$->pxlen = $3.len; $$->show_for = 1; } | r_args TABLE SYM { $$ = $1; if ($3->class != SYM_TABLE) cf_error("%s is not a table", $3->name); $$->table = ((struct rtable_config *)$3->def)->table; } | r_args FILTER filter { $$ = $1; if ($$->filter != FILTER_ACCEPT) cf_error("Filter specified twice"); $$->filter = $3; } | r_args where_filter { $$ = $1; if ($$->filter != FILTER_ACCEPT) cf_error("Filter specified twice"); $$->filter = $2; } | r_args ALL { $$ = $1; $$->verbose = 1; } | r_args PRIMARY { $$ = $1; $$->primary_only = 1; } | r_args FILTERED { $$ = $1; $$->filtered = 1; } | r_args export_or_preexport SYM { struct proto_config *c = (struct proto_config *) $3->def; $$ = $1; if ($$->export_mode) cf_error("Protocol specified twice"); if ($3->class != SYM_PROTO || !c->proto) cf_error("%s is not a protocol", $3->name); $$->export_mode = $2; $$->primary_only = 1; $$->export_protocol = c->proto; $$->running_on_config = c->proto->cf->global; } | r_args PROTOCOL SYM { struct proto_config *c = (struct proto_config *) $3->def; $$ = $1; if ($$->show_protocol) cf_error("Protocol specified twice"); if ($3->class != SYM_PROTO || !c->proto) cf_error("%s is not a protocol", $3->name); $$->show_protocol = c->proto; $$->running_on_config = c->proto->cf->global; } | r_args STATS { $$ = $1; $$->stats = 1; } | r_args COUNT { $$ = $1; $$->stats = 2; } ; export_or_preexport: PREEXPORT { $$ = 1; } | EXPORT { $$ = 2; } ; CF_CLI_HELP(SHOW ROA, ..., [[Show ROA table]]) CF_CLI(SHOW ROA, roa_args, [ | in | for ] [as ] [table ], [[Show ROA table]]) { roa_show($3); } ; roa_args: /* empty */ { $$ = cfg_allocz(sizeof(struct roa_show_data)); $$->mode = ROA_SHOW_ALL; $$->table = roa_table_default; if (roa_table_default == NULL) cf_error("No ROA table defined"); } | roa_args roa_mode prefix { $$ = $1; if ($$->mode != ROA_SHOW_ALL) cf_error("Only one prefix expected"); $$->prefix = $3.addr; $$->pxlen = $3.len; $$->mode = $2; } | roa_args AS NUM { $$ = $1; $$->asn = $3; } | roa_args TABLE SYM { $$ = $1; if ($3->class != SYM_ROA) cf_error("%s is not a ROA table", $3->name); $$->table = ((struct roa_table_config *)$3->def)->table; } ; roa_mode: { $$ = ROA_SHOW_PX; } | IN { $$ = ROA_SHOW_IN; } | FOR { $$ = ROA_SHOW_FOR; } ; CF_CLI_HELP(SHOW SYMBOLS, ..., [[Show all known symbolic names]]) CF_CLI(SHOW SYMBOLS, sym_args, [table|filter|function|protocol|template|roa|], [[Show all known symbolic names]]) { cmd_show_symbols($3); } ; sym_args: /* empty */ { $$ = cfg_allocz(sizeof(struct sym_show_data)); } | sym_args TABLE { $$ = $1; $$->type = SYM_TABLE; } | sym_args FUNCTION { $$ = $1; $$->type = SYM_FUNCTION; } | sym_args FILTER { $$ = $1; $$->type = SYM_FILTER; } | sym_args PROTOCOL { $$ = $1; $$->type = SYM_PROTO; } | sym_args TEMPLATE { $$ = $1; $$->type = SYM_TEMPLATE; } | sym_args ROA { $$ = $1; $$->type = SYM_ROA; } | sym_args SYM { $$ = $1; $$->sym = $2; } ; roa_table_arg: /* empty */ { if (roa_table_default == NULL) cf_error("No ROA table defined"); $$ = roa_table_default; } | TABLE SYM { if ($2->class != SYM_ROA) cf_error("%s is not a ROA table", $2->name); $$ = ((struct roa_table_config *)$2->def)->table; } ; CF_CLI_HELP(ADD, roa ..., [[Add ROA record]]) CF_CLI(ADD ROA, prefix MAX NUM AS NUM roa_table_arg, max as [table ], [[Add ROA record]]) { if (! cli_access_restricted()) { roa_add_item($8, $3.addr, $3.len, $5, $7, ROA_SRC_DYNAMIC); cli_msg(0, ""); } }; CF_CLI_HELP(DELETE, roa ..., [[Delete ROA record]]) CF_CLI(DELETE ROA, prefix MAX NUM AS NUM roa_table_arg, max as [table ], [[Delete ROA record]]) { if (! cli_access_restricted()) { roa_delete_item($8, $3.addr, $3.len, $5, $7, ROA_SRC_DYNAMIC); cli_msg(0, ""); } }; CF_CLI_HELP(FLUSH, roa [table ], [[Removes all dynamic ROA records]]) CF_CLI(FLUSH ROA, roa_table_arg, [table ], [[Removes all dynamic ROA records]]) { if (! cli_access_restricted()) { roa_flush($3, ROA_SRC_DYNAMIC); cli_msg(0, ""); } }; CF_CLI_HELP(DUMP, ..., [[Dump debugging information]]) CF_CLI(DUMP RESOURCES,,, [[Dump all allocated resource]]) { rdump(&root_pool); cli_msg(0, ""); } ; CF_CLI(DUMP SOCKETS,,, [[Dump open sockets]]) { sk_dump_all(); cli_msg(0, ""); } ; CF_CLI(DUMP INTERFACES,,, [[Dump interface information]]) { if_dump_all(); cli_msg(0, ""); } ; CF_CLI(DUMP NEIGHBORS,,, [[Dump neighbor cache]]) { neigh_dump_all(); cli_msg(0, ""); } ; CF_CLI(DUMP ATTRIBUTES,,, [[Dump attribute cache]]) { rta_dump_all(); cli_msg(0, ""); } ; CF_CLI(DUMP ROUTES,,, [[Dump routing table]]) { rt_dump_all(); cli_msg(0, ""); } ; CF_CLI(DUMP PROTOCOLS,,, [[Dump protocol information]]) { protos_dump_all(); cli_msg(0, ""); } ; CF_CLI(EVAL, term, , [[Evaluate an expression]]) { cmd_eval($2); } ; CF_CLI_HELP(ECHO, ..., [[Control echoing of log messages]]) CF_CLI(ECHO, echo_mask echo_size, (all | off | { debug | trace | info | remote | warning | error | auth }) [], [[Control echoing of log messages]]) { cli_set_log_echo(this_cli, $2, $3); cli_msg(0, ""); } ; echo_mask: ALL { $$ = ~0; } | OFF { $$ = 0; } | '{' log_mask_list '}' { $$ = $2; } ; echo_size: /* empty */ { $$ = 4096; } | NUM { if ($1 < 256 || $1 > 65536) cf_error("Invalid log buffer size"); $$ = $1; } ; CF_CLI(DISABLE, proto_patt, | \"\" | all, [[Disable protocol]]) { proto_apply_cmd($2, proto_cmd_disable, 1, 0); } ; CF_CLI(ENABLE, proto_patt, | \"\" | all, [[Enable protocol]]) { proto_apply_cmd($2, proto_cmd_enable, 1, 0); } ; CF_CLI(RESTART, proto_patt, | \"\" | all, [[Restart protocol]]) { proto_apply_cmd($2, proto_cmd_restart, 1, 0); } ; CF_CLI(RELOAD, proto_patt, | \"\" | all, [[Reload protocol]]) { proto_apply_cmd($2, proto_cmd_reload, 1, CMD_RELOAD); } ; CF_CLI(RELOAD IN, proto_patt, | \"\" | all, [[Reload protocol (just imported routes)]]) { proto_apply_cmd($3, proto_cmd_reload, 1, CMD_RELOAD_IN); } ; CF_CLI(RELOAD OUT, proto_patt, | \"\" | all, [[Reload protocol (just exported routes)]]) { proto_apply_cmd($3, proto_cmd_reload, 1, CMD_RELOAD_OUT); } ; CF_CLI_HELP(DEBUG, ..., [[Control protocol debugging via BIRD logs]]) CF_CLI(DEBUG, proto_patt debug_mask, ( | | all) (all | off | { states | routes | filters | interfaces | events | packets }), [[Control protocol debugging via BIRD logs]]) { proto_apply_cmd($2, proto_cmd_debug, 1, $3); } ; CF_CLI_HELP(MRTDUMP, ..., [[Control protocol debugging via MRTdump files]]) CF_CLI(MRTDUMP, proto_patt mrtdump_mask, ( | | all) (all | off | { states | messages }), [[Control protocol debugging via MRTdump format]]) { proto_apply_cmd($2, proto_cmd_mrtdump, 1, $3); } ; CF_CLI(RESTRICT,,,[[Restrict current CLI session to safe commands]]) { this_cli->restricted = 1; cli_msg(16, "Access restricted"); } ; proto_patt: SYM { $$.ptr = $1; $$.patt = 0; } | ALL { $$.ptr = NULL; $$.patt = 1; } | TEXT { $$.ptr = $1; $$.patt = 1; } ; proto_patt2: SYM { $$.ptr = $1; $$.patt = 0; } | { $$.ptr = NULL; $$.patt = 1; } | TEXT { $$.ptr = $1; $$.patt = 1; } ; CF_ADDTO(dynamic_attr, IGP_METRIC { $$ = f_new_dynamic_attr(EAF_TYPE_INT, T_INT, EA_GEN_IGP_METRIC); }) CF_CODE CF_END bird-1.4.0/nest/mrtdump.h0000644000103200001440000000077211606273733014250 0ustar feelausers/* * BIRD -- MRTdump handling * * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef MRTDUMP_H #define MRTDUMP_H #include "nest/protocol.h" /* MRTDump values */ #define MRTDUMP_HDR_LENGTH 12 /* MRTdump types */ #define BGP4MP 16 /* MRTdump subtypes */ #define BGP4MP_MESSAGE 1 #define BGP4MP_MESSAGE_AS4 4 #define BGP4MP_STATE_CHANGE_AS4 5 /* implemented in sysdep */ void mrt_dump_message(struct proto *p, u16 type, u16 subtype, byte *buf, u32 len); #endif bird-1.4.0/nest/rt-dev.h0000644000103200001440000000047711703031107013744 0ustar feelausers/* * BIRD -- Direct Device Routes * * (c) 1998--1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_RT_DEV_H_ #define _BIRD_RT_DEV_H_ struct rt_dev_config { struct proto_config c; list iface_list; /* list of struct iface_patt */ }; #endif bird-1.4.0/nest/neighbor.c0000644000103200001440000002374512244117701014344 0ustar feelausers/* * BIRD -- Neighbor Cache * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Neighbor cache * * Most routing protocols need to associate their internal state data with * neighboring routers, check whether an address given as the next hop * attribute of a route is really an address of a directly connected host * and which interface is it connected through. Also, they often need to * be notified when a neighbor ceases to exist or when their long awaited * neighbor becomes connected. The neighbor cache is there to solve all * these problems. * * The neighbor cache maintains a collection of neighbor entries. Each * entry represents one IP address corresponding to either our directly * connected neighbor or our own end of the link (when the scope of the * address is set to %SCOPE_HOST) together with per-neighbor data belonging to a * single protocol. * * Active entries represent known neighbors and are stored in a hash * table (to allow fast retrieval based on the IP address of the node) and * two linked lists: one global and one per-interface (allowing quick * processing of interface change events). Inactive entries exist only * when the protocol has explicitly requested it via the %NEF_STICKY * flag because it wishes to be notified when the node will again become * a neighbor. Such entries are enqueued in a special list which is walked * whenever an interface changes its state to up. * * When a neighbor event occurs (a neighbor gets disconnected or a sticky * inactive neighbor becomes connected), the protocol hook neigh_notify() * is called to advertise the change. */ #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/iface.h" #include "nest/protocol.h" #include "lib/resource.h" #define NEIGH_HASH_SIZE 256 static slab *neigh_slab; static list sticky_neigh_list, neigh_hash_table[NEIGH_HASH_SIZE]; static inline unsigned int neigh_hash(struct proto *p, ip_addr *a) { return (p->hash_key ^ ipa_hash(*a)) & (NEIGH_HASH_SIZE-1); } static int if_connected(ip_addr *a, struct iface *i) /* -1=error, 1=match, 0=no match */ { struct ifa *b; if (!(i->flags & IF_UP)) return -1; WALK_LIST(b, i->addrs) { if (ipa_equal(*a, b->ip)) return SCOPE_HOST; if (b->flags & IA_PEER) { if (ipa_equal(*a, b->opposite)) return b->scope; } else { if (ipa_in_net(*a, b->prefix, b->pxlen)) { #ifndef IPV6 if ((b->pxlen < (BITS_PER_IP_ADDRESS - 1)) && (ipa_equal(*a, b->prefix) || /* Network address */ ipa_equal(*a, b->brd))) /* Broadcast */ return -1; #endif return b->scope; } } } return -1; } /** * neigh_find - find or create a neighbor entry. * @p: protocol which asks for the entry. * @a: pointer to IP address of the node to be searched for. * @flags: 0 or %NEF_STICKY if you want to create a sticky entry. * * Search the neighbor cache for a node with given IP address. If * it's found, a pointer to the neighbor entry is returned. If no * such entry exists and the node is directly connected on * one of our active interfaces, a new entry is created and returned * to the caller with protocol-dependent fields initialized to zero. * If the node is not connected directly or *@a is not a valid unicast * IP address, neigh_find() returns %NULL. */ neighbor * neigh_find(struct proto *p, ip_addr *a, unsigned flags) { return neigh_find2(p, a, NULL, flags); } neighbor * neigh_find2(struct proto *p, ip_addr *a, struct iface *ifa, unsigned flags) { neighbor *n; int class, scope = -1; unsigned int h = neigh_hash(p, a); struct iface *i; WALK_LIST(n, neigh_hash_table[h]) /* Search the cache */ if (n->proto == p && ipa_equal(*a, n->addr) && (!ifa || (ifa == n->iface))) return n; class = ipa_classify(*a); if (class < 0) /* Invalid address */ return NULL; if (((class & IADDR_SCOPE_MASK) == SCOPE_HOST) || (((class & IADDR_SCOPE_MASK) == SCOPE_LINK) && (ifa == NULL)) || !(class & IADDR_HOST)) return NULL; /* Bad scope or a somecast */ if (ifa) { scope = if_connected(a, ifa); flags |= NEF_BIND; if ((scope < 0) && (flags & NEF_ONLINK)) scope = class & IADDR_SCOPE_MASK; } else WALK_LIST(i, iface_list) if ((scope = if_connected(a, i)) >= 0) { ifa = i; break; } /* scope < 0 means i don't know neighbor */ /* scope >= 0 implies ifa != NULL */ if ((scope < 0) && !(flags & NEF_STICKY)) return NULL; n = sl_alloc(neigh_slab); n->addr = *a; if (scope >= 0) { add_tail(&neigh_hash_table[h], &n->n); add_tail(&ifa->neighbors, &n->if_n); } else { add_tail(&sticky_neigh_list, &n->n); scope = -1; } n->iface = ifa; n->proto = p; n->data = NULL; n->aux = 0; n->flags = flags; n->scope = scope; return n; } /** * neigh_dump - dump specified neighbor entry. * @n: the entry to dump * * This functions dumps the contents of a given neighbor entry * to debug output. */ void neigh_dump(neighbor *n) { debug("%p %I ", n, n->addr); if (n->iface) debug("%s ", n->iface->name); else debug("[] "); debug("%s %p %08x scope %s", n->proto->name, n->data, n->aux, ip_scope_text(n->scope)); if (n->flags & NEF_STICKY) debug(" STICKY"); debug("\n"); } /** * neigh_dump_all - dump all neighbor entries. * * This function dumps the contents of the neighbor cache to * debug output. */ void neigh_dump_all(void) { neighbor *n; int i; debug("Known neighbors:\n"); WALK_LIST(n, sticky_neigh_list) neigh_dump(n); for(i=0; iiface = i; n->scope = scope; add_tail(&i->neighbors, &n->if_n); rem_node(&n->n); add_tail(&neigh_hash_table[neigh_hash(n->proto, &n->addr)], &n->n); DBG("Waking up sticky neighbor %I\n", n->addr); if (n->proto->neigh_notify && n->proto->core_state != FS_FLUSHING) n->proto->neigh_notify(n); } static void neigh_down(neighbor *n) { DBG("Flushing neighbor %I on %s\n", n->addr, n->iface->name); rem_node(&n->if_n); if (! (n->flags & NEF_BIND)) n->iface = NULL; n->scope = -1; if (n->proto->neigh_notify && n->proto->core_state != FS_FLUSHING) n->proto->neigh_notify(n); rem_node(&n->n); if (n->flags & NEF_STICKY) { add_tail(&sticky_neigh_list, &n->n); /* Respawn neighbor if there is another matching prefix */ struct iface *i; int scope; if (!n->iface) WALK_LIST(i, iface_list) if ((scope = if_connected(&n->addr, i)) >= 0) { neigh_up(n, i, scope); return; } } else sl_free(neigh_slab, n); } /** * neigh_if_up: notify neighbor cache about interface up event * @i: interface in question * * Tell the neighbor cache that a new interface became up. * * The neighbor cache wakes up all inactive sticky neighbors with * addresses belonging to prefixes of the interface @i. */ void neigh_if_up(struct iface *i) { neighbor *n, *next; int scope; WALK_LIST_DELSAFE(n, next, sticky_neigh_list) if ((!n->iface || n->iface == i) && ((scope = if_connected(&n->addr, i)) >= 0)) neigh_up(n, i, scope); } /** * neigh_if_down - notify neighbor cache about interface down event * @i: the interface in question * * Notify the neighbor cache that an interface has ceased to exist. * * It causes all entries belonging to neighbors connected to this interface * to be flushed. */ void neigh_if_down(struct iface *i) { node *x, *y; WALK_LIST_DELSAFE(x, y, i->neighbors) neigh_down(SKIP_BACK(neighbor, if_n, x)); } /** * neigh_if_link - notify neighbor cache about interface link change * @i: the interface in question * * Notify the neighbor cache that an interface changed link state. * All owners of neighbor entries connected to this interface are * notified. */ void neigh_if_link(struct iface *i) { node *x, *y; WALK_LIST_DELSAFE(x, y, i->neighbors) { neighbor *n = SKIP_BACK(neighbor, if_n, x); if (n->proto->neigh_notify && n->proto->core_state != FS_FLUSHING) n->proto->neigh_notify(n); } } /** * neigh_ifa_update: notify neighbor cache about interface address add or remove event * @ifa: interface address in question * * Tell the neighbor cache that an address was added or removed. * * The neighbor cache wakes up all inactive sticky neighbors with * addresses belonging to prefixes of the interface belonging to @ifa * and causes all unreachable neighbors to be flushed. */ void neigh_ifa_update(struct ifa *a) { struct iface *i = a->iface; node *x, *y; /* Remove all neighbors whose scope has changed */ WALK_LIST_DELSAFE(x, y, i->neighbors) { neighbor *n = SKIP_BACK(neighbor, if_n, x); if (if_connected(&n->addr, i) != n->scope) neigh_down(n); } /* Wake up all sticky neighbors that are reachable now */ neigh_if_up(i); } static inline void neigh_prune_one(neighbor *n) { if (n->proto->proto_state != PS_DOWN) return; rem_node(&n->n); if (n->scope >= 0) rem_node(&n->if_n); sl_free(neigh_slab, n); } /** * neigh_prune - prune neighbor cache * * neigh_prune() examines all neighbor entries cached and removes those * corresponding to inactive protocols. It's called whenever a protocol * is shut down to get rid of all its heritage. */ void neigh_prune(void) { neighbor *n; node *m; int i; DBG("Pruning neighbors\n"); for(i=0; i * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_BIRD_H_ #define _BIRD_BIRD_H_ #include "sysdep/config.h" #include "lib/birdlib.h" #include "lib/ip.h" #endif bird-1.4.0/nest/proto.c0000644000103200001440000011072312244656136013715 0ustar feelausers/* * BIRD -- Protocols * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #undef LOCAL_DEBUG #include "nest/bird.h" #include "nest/protocol.h" #include "lib/resource.h" #include "lib/lists.h" #include "lib/event.h" #include "lib/string.h" #include "conf/conf.h" #include "nest/route.h" #include "nest/iface.h" #include "nest/cli.h" #include "filter/filter.h" pool *proto_pool; static list protocol_list; static list proto_list; #define PD(pr, msg, args...) do { if (pr->debug & D_STATES) { log(L_TRACE "%s: " msg, pr->name , ## args); } } while(0) list active_proto_list; static list inactive_proto_list; static list initial_proto_list; static list flush_proto_list; static struct proto *initial_device_proto; static event *proto_flush_event; static timer *proto_shutdown_timer; static char *p_states[] = { "DOWN", "START", "UP", "STOP" }; static char *c_states[] = { "HUNGRY", "FEEDING", "HAPPY", "FLUSHING" }; static void proto_flush_loop(void *); static void proto_shutdown_loop(struct timer *); static void proto_rethink_goal(struct proto *p); static char *proto_state_name(struct proto *p); static void proto_enqueue(list *l, struct proto *p) { add_tail(l, &p->n); } static void proto_relink(struct proto *p) { list *l = NULL; if (p->debug & D_STATES) { char *name = proto_state_name(p); if (name != p->last_state_name_announced) { p->last_state_name_announced = name; PD(p, "State changed to %s", proto_state_name(p)); } } else p->last_state_name_announced = NULL; rem_node(&p->n); switch (p->core_state) { case FS_HUNGRY: l = &inactive_proto_list; break; case FS_FEEDING: case FS_HAPPY: l = &active_proto_list; break; case FS_FLUSHING: l = &flush_proto_list; break; default: ASSERT(0); } proto_enqueue(l, p); } /** * proto_new - create a new protocol instance * @c: protocol configuration * @size: size of protocol data structure (each protocol instance is represented by * a structure starting with generic part [struct &proto] and continued * with data specific to the protocol) * * When a new configuration has been read in, the core code starts * initializing all the protocol instances configured by calling their * init() hooks with the corresponding instance configuration. The initialization * code of the protocol is expected to create a new instance according to the * configuration by calling this function and then modifying the default settings * to values wanted by the protocol. */ void * proto_new(struct proto_config *c, unsigned size) { struct protocol *pr = c->protocol; struct proto *p = mb_allocz(proto_pool, size); p->cf = c; p->debug = c->debug; p->mrtdump = c->mrtdump; p->name = c->name; p->preference = c->preference; p->disabled = c->disabled; p->proto = pr; p->table = c->table->table; p->hash_key = random_u32(); c->proto = p; return p; } static void proto_init_instance(struct proto *p) { /* Here we cannot use p->cf->name since it won't survive reconfiguration */ p->pool = rp_new(proto_pool, p->proto->name); p->attn = ev_new(p->pool); p->attn->data = p; if (! p->proto->multitable) rt_lock_table(p->table); } extern pool *rt_table_pool; /** * proto_add_announce_hook - connect protocol to a routing table * @p: protocol instance * @t: routing table to connect to * @stats: per-table protocol statistics * * This function creates a connection between the protocol instance @p * and the routing table @t, making the protocol hear all changes in * the table. * * The announce hook is linked in the protocol ahook list and, if the * protocol accepts routes, also in the table ahook list. Announce * hooks are allocated from the routing table resource pool, they are * unlinked from the table ahook list after the protocol went down, * (in proto_schedule_flush()) and they are automatically freed after the * protocol is flushed (in proto_fell_down()). * * Unless you want to listen to multiple routing tables (as the Pipe * protocol does), you needn't to worry about this function since the * connection to the protocol's primary routing table is initialized * automatically by the core code. */ struct announce_hook * proto_add_announce_hook(struct proto *p, struct rtable *t, struct proto_stats *stats) { struct announce_hook *h; DBG("Connecting protocol %s to table %s\n", p->name, t->name); PD(p, "Connected to table %s", t->name); h = mb_allocz(rt_table_pool, sizeof(struct announce_hook)); h->table = t; h->proto = p; h->stats = stats; h->next = p->ahooks; p->ahooks = h; if (p->rt_notify) add_tail(&t->hooks, &h->n); return h; } /** * proto_find_announce_hook - find announce hooks * @p: protocol instance * @t: routing table * * Returns pointer to announce hook or NULL */ struct announce_hook * proto_find_announce_hook(struct proto *p, struct rtable *t) { struct announce_hook *a; for (a = p->ahooks; a; a = a->next) if (a->table == t) return a; return NULL; } static void proto_unlink_ahooks(struct proto *p) { struct announce_hook *h; if (p->rt_notify) for(h=p->ahooks; h; h=h->next) rem_node(&h->n); } static void proto_free_ahooks(struct proto *p) { struct announce_hook *h, *hn; for(h = p->ahooks; h; h = hn) { hn = h->next; mb_free(h); } p->ahooks = NULL; p->main_ahook = NULL; } /** * proto_config_new - create a new protocol configuration * @pr: protocol the configuration will belong to * @size: size of the structure including generic data * @class: SYM_PROTO or SYM_TEMPLATE * * Whenever the configuration file says that a new instance * of a routing protocol should be created, the parser calls * proto_config_new() to create a configuration entry for this * instance (a structure staring with the &proto_config header * containing all the generic items followed by protocol-specific * ones). Also, the configuration entry gets added to the list * of protocol instances kept in the configuration. * * The function is also used to create protocol templates (when class * SYM_TEMPLATE is specified), the only difference is that templates * are not added to the list of protocol instances and therefore not * initialized during protos_commit()). */ void * proto_config_new(struct protocol *pr, unsigned size, int class) { struct proto_config *c = cfg_allocz(size); if (class == SYM_PROTO) add_tail(&new_config->protos, &c->n); c->global = new_config; c->protocol = pr; c->name = pr->name; c->preference = pr->preference; c->class = class; c->out_filter = FILTER_REJECT; c->table = c->global->master_rtc; c->debug = new_config->proto_default_debug; c->mrtdump = new_config->proto_default_mrtdump; return c; } /** * proto_copy_config - copy a protocol configuration * @dest: destination protocol configuration * @src: source protocol configuration * * Whenever a new instance of a routing protocol is created from the * template, proto_copy_config() is called to copy a content of * the source protocol configuration to the new protocol configuration. * Name, class and a node in protos list of @dest are kept intact. * copy_config() protocol hook is used to copy protocol-specific data. */ void proto_copy_config(struct proto_config *dest, struct proto_config *src) { node old_node; int old_class; char *old_name; if (dest->protocol != src->protocol) cf_error("Can't copy configuration from a different protocol type"); if (dest->protocol->copy_config == NULL) cf_error("Inheriting configuration for %s is not supported", src->protocol->name); DBG("Copying configuration from %s to %s\n", src->name, dest->name); /* * Copy struct proto_config here. Keep original node, class and name. * protocol-specific config copy is handled by protocol copy_config() hook */ old_node = dest->n; old_class = dest->class; old_name = dest->name; memcpy(dest, src, sizeof(struct proto_config)); dest->n = old_node; dest->class = old_class; dest->name = old_name; dest->protocol->copy_config(dest, src); } /** * protos_preconfig - pre-configuration processing * @c: new configuration * * This function calls the preconfig() hooks of all routing * protocols available to prepare them for reading of the new * configuration. */ void protos_preconfig(struct config *c) { struct protocol *p; init_list(&c->protos); DBG("Protocol preconfig:"); WALK_LIST(p, protocol_list) { DBG(" %s", p->name); p->name_counter = 0; if (p->preconfig) p->preconfig(p, c); } DBG("\n"); } /** * protos_postconfig - post-configuration processing * @c: new configuration * * This function calls the postconfig() hooks of all protocol * instances specified in configuration @c. The hooks are not * called for protocol templates. */ void protos_postconfig(struct config *c) { struct proto_config *x; struct protocol *p; DBG("Protocol postconfig:"); WALK_LIST(x, c->protos) { DBG(" %s", x->name); p = x->protocol; if (p->postconfig) p->postconfig(x); } DBG("\n"); } extern struct protocol proto_unix_iface; static struct proto * proto_init(struct proto_config *c) { struct protocol *p = c->protocol; struct proto *q = p->init(c); q->proto_state = PS_DOWN; q->core_state = FS_HUNGRY; q->last_state_change = now; proto_enqueue(&initial_proto_list, q); if (p == &proto_unix_iface) initial_device_proto = q; add_tail(&proto_list, &q->glob_node); PD(q, "Initializing%s", q->disabled ? " [disabled]" : ""); return q; } int proto_reconfig_type; /* Hack to propagate type info to pipe reconfigure hook */ static int proto_reconfigure(struct proto *p, struct proto_config *oc, struct proto_config *nc, int type) { struct announce_hook *ah = p->main_ahook; /* If the protocol is DOWN, we just restart it */ if (p->proto_state == PS_DOWN) return 0; /* If there is a too big change in core attributes, ... */ if ((nc->protocol != oc->protocol) || (nc->disabled != p->disabled) || (nc->table->table != oc->table->table)) return 0; p->debug = nc->debug; p->mrtdump = nc->mrtdump; proto_reconfig_type = type; /* Execute protocol specific reconfigure hook */ if (! (p->proto->reconfigure && p->proto->reconfigure(p, nc))) return 0; DBG("\t%s: same\n", oc->name); PD(p, "Reconfigured"); p->cf = nc; p->name = nc->name; p->preference = nc->preference; /* Multitable protocols handle rest in their reconfigure hooks */ if (p->proto->multitable) return 1; /* Update filters and limits in the main announce hook Note that this also resets limit state */ if (ah) { ah->in_filter = nc->in_filter; ah->out_filter = nc->out_filter; ah->rx_limit = nc->rx_limit; ah->in_limit = nc->in_limit; ah->out_limit = nc->out_limit; ah->in_keep_filtered = nc->in_keep_filtered; if (p->proto_state == PS_UP) /* Recheck export/import/receive limit */ { struct proto_stats *stats = ah->stats; struct proto_limit *l = ah->in_limit; u32 all_routes = stats->imp_routes + stats->filt_routes; if (l && (stats->imp_routes >= l->limit)) proto_notify_limit(ah, l, PLD_IN, stats->imp_routes); l = ah->rx_limit; if (l && ( all_routes >= l->limit)) proto_notify_limit(ah, l, PLD_RX, all_routes ); l = ah->out_limit; if (l && ( stats->exp_routes >= l->limit)) proto_notify_limit(ah, l, PLD_OUT, stats->exp_routes); } } /* Update routes when filters changed. If the protocol in not UP, it has no routes and we can ignore such changes */ if ((p->proto_state != PS_UP) || (type == RECONFIG_SOFT)) return 1; int import_changed = ! filter_same(nc->in_filter, oc->in_filter); int export_changed = ! filter_same(nc->out_filter, oc->out_filter); /* We treat a change in preferences by reimporting routes */ if (nc->preference != oc->preference) import_changed = 1; if (import_changed || export_changed) log(L_INFO "Reloading protocol %s", p->name); /* If import filter changed, call reload hook */ if (import_changed && ! (p->reload_routes && p->reload_routes(p))) { /* Now, the protocol is reconfigured. But route reload failed and we have to do regular protocol restart. */ log(L_INFO "Restarting protocol %s", p->name); p->disabled = 1; p->down_code = PDC_CF_RESTART; proto_rethink_goal(p); p->disabled = 0; proto_rethink_goal(p); return 1; } if (export_changed) proto_request_feeding(p); return 1; } /** * protos_commit - commit new protocol configuration * @new: new configuration * @old: old configuration or %NULL if it's boot time config * @force_reconfig: force restart of all protocols (used for example * when the router ID changes) * @type: type of reconfiguration (RECONFIG_SOFT or RECONFIG_HARD) * * Scan differences between @old and @new configuration and adjust all * protocol instances to conform to the new configuration. * * When a protocol exists in the new configuration, but it doesn't in the * original one, it's immediately started. When a collision with the other * running protocol would arise, the new protocol will be temporarily stopped * by the locking mechanism. * * When a protocol exists in the old configuration, but it doesn't in the * new one, it's shut down and deleted after the shutdown completes. * * When a protocol exists in both configurations, the core decides * whether it's possible to reconfigure it dynamically - it checks all * the core properties of the protocol (changes in filters are ignored * if type is RECONFIG_SOFT) and if they match, it asks the * reconfigure() hook of the protocol to see if the protocol is able * to switch to the new configuration. If it isn't possible, the * protocol is shut down and a new instance is started with the new * configuration after the shutdown is completed. */ void protos_commit(struct config *new, struct config *old, int force_reconfig, int type) { struct proto_config *oc, *nc; struct proto *p, *n; struct symbol *sym; DBG("protos_commit:\n"); if (old) { WALK_LIST(oc, old->protos) { p = oc->proto; sym = cf_find_symbol(oc->name); if (sym && sym->class == SYM_PROTO && !new->shutdown) { /* Found match, let's check if we can smoothly switch to new configuration */ /* No need to check description */ nc = sym->def; nc->proto = p; /* We will try to reconfigure protocol p */ if (! force_reconfig && proto_reconfigure(p, oc, nc, type)) continue; /* Unsuccessful, we will restart it */ if (!p->disabled && !nc->disabled) log(L_INFO "Restarting protocol %s", p->name); else if (p->disabled && !nc->disabled) log(L_INFO "Enabling protocol %s", p->name); else if (!p->disabled && nc->disabled) log(L_INFO "Disabling protocol %s", p->name); p->down_code = nc->disabled ? PDC_CF_DISABLE : PDC_CF_RESTART; p->cf_new = nc; } else if (!new->shutdown) { log(L_INFO "Removing protocol %s", p->name); p->down_code = PDC_CF_REMOVE; p->cf_new = NULL; } else /* global shutdown */ { p->down_code = PDC_CMD_SHUTDOWN; p->cf_new = NULL; } p->reconfiguring = 1; config_add_obstacle(old); proto_rethink_goal(p); } } WALK_LIST(nc, new->protos) if (!nc->proto) { if (old) /* Not a first-time configuration */ log(L_INFO "Adding protocol %s", nc->name); proto_init(nc); } DBG("\tdone\n"); DBG("Protocol start\n"); /* Start device protocol first */ if (initial_device_proto) { proto_rethink_goal(initial_device_proto); initial_device_proto = NULL; } /* Determine router ID for the first time - it has to be here and not in global_commit() because it is postponed after start of device protocol */ if (!config->router_id) { config->router_id = if_choose_router_id(config->router_id_from, 0); if (!config->router_id) die("Cannot determine router ID, please configure it manually"); } /* Start all other protocols */ WALK_LIST_DELSAFE(p, n, initial_proto_list) proto_rethink_goal(p); } static void proto_rethink_goal(struct proto *p) { struct protocol *q; if (p->reconfiguring && p->core_state == FS_HUNGRY && p->proto_state == PS_DOWN) { struct proto_config *nc = p->cf_new; DBG("%s has shut down for reconfiguration\n", p->name); config_del_obstacle(p->cf->global); rem_node(&p->n); rem_node(&p->glob_node); mb_free(p); if (!nc) return; p = proto_init(nc); } /* Determine what state we want to reach */ if (p->disabled || p->reconfiguring) { p->core_goal = FS_HUNGRY; if (p->core_state == FS_HUNGRY && p->proto_state == PS_DOWN) return; } else { p->core_goal = FS_HAPPY; if (p->core_state == FS_HAPPY && p->proto_state == PS_UP) return; } q = p->proto; if (p->core_goal == FS_HAPPY) /* Going up */ { if (p->core_state == FS_HUNGRY && p->proto_state == PS_DOWN) { DBG("Kicking %s up\n", p->name); PD(p, "Starting"); proto_init_instance(p); proto_notify_state(p, (q->start ? q->start(p) : PS_UP)); } } else /* Going down */ { if (p->proto_state == PS_START || p->proto_state == PS_UP) { DBG("Kicking %s down\n", p->name); PD(p, "Shutting down"); proto_notify_state(p, (q->shutdown ? q->shutdown(p) : PS_DOWN)); } } } /** * protos_dump_all - dump status of all protocols * * This function dumps status of all existing protocol instances to the * debug output. It involves printing of general status information * such as protocol states, its position on the protocol lists * and also calling of a dump() hook of the protocol to print * the internals. */ void protos_dump_all(void) { struct proto *p; struct announce_hook *a; debug("Protocols:\n"); WALK_LIST(p, active_proto_list) { debug(" protocol %s state %s/%s\n", p->name, p_states[p->proto_state], c_states[p->core_state]); for (a = p->ahooks; a; a = a->next) { debug("\tTABLE %s\n", a->table->name); if (a->in_filter) debug("\tInput filter: %s\n", filter_name(a->in_filter)); if (a->out_filter != FILTER_REJECT) debug("\tOutput filter: %s\n", filter_name(a->out_filter)); } if (p->disabled) debug("\tDISABLED\n"); else if (p->proto->dump) p->proto->dump(p); } WALK_LIST(p, inactive_proto_list) debug(" inactive %s: state %s/%s\n", p->name, p_states[p->proto_state], c_states[p->core_state]); WALK_LIST(p, initial_proto_list) debug(" initial %s\n", p->name); WALK_LIST(p, flush_proto_list) debug(" flushing %s\n", p->name); } /** * proto_build - make a single protocol available * @p: the protocol * * After the platform specific initialization code uses protos_build() * to add all the standard protocols, it should call proto_build() for * all platform specific protocols to inform the core that they exist. */ void proto_build(struct protocol *p) { add_tail(&protocol_list, &p->n); if (p->attr_class) { ASSERT(!attr_class_to_protocol[p->attr_class]); attr_class_to_protocol[p->attr_class] = p; } } /* FIXME: convert this call to some protocol hook */ extern void bfd_init_all(void); /** * protos_build - build a protocol list * * This function is called during BIRD startup to insert * all standard protocols to the global protocol list. Insertion * of platform specific protocols (such as the kernel syncer) * is in the domain of competence of the platform dependent * startup code. */ void protos_build(void) { init_list(&protocol_list); init_list(&proto_list); init_list(&active_proto_list); init_list(&inactive_proto_list); init_list(&initial_proto_list); init_list(&flush_proto_list); proto_build(&proto_device); #ifdef CONFIG_RADV proto_build(&proto_radv); #endif #ifdef CONFIG_RIP proto_build(&proto_rip); #endif #ifdef CONFIG_STATIC proto_build(&proto_static); #endif #ifdef CONFIG_OSPF proto_build(&proto_ospf); #endif #ifdef CONFIG_PIPE proto_build(&proto_pipe); #endif #ifdef CONFIG_BGP proto_build(&proto_bgp); #endif #ifdef CONFIG_BFD proto_build(&proto_bfd); bfd_init_all(); #endif proto_pool = rp_new(&root_pool, "Protocols"); proto_flush_event = ev_new(proto_pool); proto_flush_event->hook = proto_flush_loop; proto_shutdown_timer = tm_new(proto_pool); proto_shutdown_timer->hook = proto_shutdown_loop; } static void proto_fell_down(struct proto *p) { DBG("Protocol %s down\n", p->name); u32 all_routes = p->stats.imp_routes + p->stats.filt_routes; if (all_routes != 0) log(L_ERR "Protocol %s is down but still has %d routes", p->name, all_routes); bzero(&p->stats, sizeof(struct proto_stats)); proto_free_ahooks(p); if (! p->proto->multitable) rt_unlock_table(p->table); if (p->proto->cleanup) p->proto->cleanup(p); proto_rethink_goal(p); } static void proto_feed_more(void *P) { struct proto *p = P; if (p->core_state != FS_FEEDING) return; DBG("Feeding protocol %s continued\n", p->name); if (rt_feed_baby(p)) { p->core_state = FS_HAPPY; proto_relink(p); DBG("Protocol %s up and running\n", p->name); } else { p->attn->hook = proto_feed_more; ev_schedule(p->attn); /* Will continue later... */ } } static void proto_feed_initial(void *P) { struct proto *p = P; if (p->core_state != FS_FEEDING) return; DBG("Feeding protocol %s\n", p->name); if_feed_baby(p); proto_feed_more(P); } static void proto_schedule_feed(struct proto *p, int initial) { DBG("%s: Scheduling meal\n", p->name); p->core_state = FS_FEEDING; p->refeeding = !initial; /* FIXME: This should be changed for better support of multitable protos */ if (!initial) { struct announce_hook *ah; for (ah = p->ahooks; ah; ah = ah->next) proto_reset_limit(ah->out_limit); /* Hack: reset exp_routes during refeed, and do not decrease it later */ p->stats.exp_routes = 0; } /* Connect protocol to routing table */ if (initial && !p->proto->multitable) { p->main_ahook = proto_add_announce_hook(p, p->table, &p->stats); p->main_ahook->in_filter = p->cf->in_filter; p->main_ahook->out_filter = p->cf->out_filter; p->main_ahook->rx_limit = p->cf->rx_limit; p->main_ahook->in_limit = p->cf->in_limit; p->main_ahook->out_limit = p->cf->out_limit; p->main_ahook->in_keep_filtered = p->cf->in_keep_filtered; proto_reset_limit(p->main_ahook->rx_limit); proto_reset_limit(p->main_ahook->in_limit); proto_reset_limit(p->main_ahook->out_limit); } proto_relink(p); p->attn->hook = initial ? proto_feed_initial : proto_feed_more; ev_schedule(p->attn); } /* * Flushing loop is responsible for flushing routes and protocols * after they went down. It runs in proto_flush_event. At the start of * one round, protocols waiting to flush are marked in * proto_schedule_flush_loop(). At the end of the round (when routing * table flush is complete), marked protocols are flushed and a next * round may start. */ static int flush_loop_state; /* 1 -> running */ static void proto_schedule_flush_loop(void) { struct proto *p; struct announce_hook *h; if (flush_loop_state) return; flush_loop_state = 1; WALK_LIST(p, flush_proto_list) { p->flushing = 1; for (h=p->ahooks; h; h=h->next) h->table->prune_state = 1; } ev_schedule(proto_flush_event); } static void proto_flush_loop(void *unused UNUSED) { struct proto *p; if (! rt_prune_loop()) { /* Rtable pruning is not finished */ ev_schedule(proto_flush_event); return; } again: WALK_LIST(p, flush_proto_list) if (p->flushing) { /* This will flush interfaces in the same manner like rt_prune_all() flushes routes */ if (p->proto == &proto_unix_iface) if_flush_ifaces(p); DBG("Flushing protocol %s\n", p->name); p->flushing = 0; p->core_state = FS_HUNGRY; proto_relink(p); if (p->proto_state == PS_DOWN) proto_fell_down(p); goto again; } /* This round finished, perhaps there will be another one */ flush_loop_state = 0; if (!EMPTY_LIST(flush_proto_list)) proto_schedule_flush_loop(); } static void proto_schedule_flush(struct proto *p) { /* Need to abort feeding */ if (p->core_state == FS_FEEDING) rt_feed_baby_abort(p); DBG("%s: Scheduling flush\n", p->name); p->core_state = FS_FLUSHING; proto_relink(p); proto_unlink_ahooks(p); proto_schedule_flush_loop(); } /* Temporary hack to propagate restart to BGP */ int proto_restart; static void proto_shutdown_loop(struct timer *t UNUSED) { struct proto *p, *p_next; WALK_LIST_DELSAFE(p, p_next, active_proto_list) if (p->down_sched) { proto_restart = (p->down_sched == PDS_RESTART); p->disabled = 1; proto_rethink_goal(p); if (proto_restart) { p->disabled = 0; proto_rethink_goal(p); } } } static inline void proto_schedule_down(struct proto *p, byte restart, byte code) { /* Does not work for other states (even PS_START) */ ASSERT(p->proto_state == PS_UP); /* Scheduled restart may change to shutdown, but not otherwise */ if (p->down_sched == PDS_DISABLE) return; p->down_sched = restart ? PDS_RESTART : PDS_DISABLE; p->down_code = code; tm_start_max(proto_shutdown_timer, restart ? 2 : 0); } /** * proto_request_feeding - request feeding routes to the protocol * @p: given protocol * * Sometimes it is needed to send again all routes to the * protocol. This is called feeding and can be requested by this * function. This would cause protocol core state transition * to FS_FEEDING (during feeding) and when completed, it will * switch back to FS_HAPPY. This function can be called even * when feeding is already running, in that case it is restarted. */ void proto_request_feeding(struct proto *p) { ASSERT(p->proto_state == PS_UP); /* If we are already feeding, we want to restart it */ if (p->core_state == FS_FEEDING) { /* Unless feeding is in initial state */ if (p->attn->hook == proto_feed_initial) return; rt_feed_baby_abort(p); } proto_schedule_feed(p, 0); } static const char * proto_limit_name(struct proto_limit *l) { const char *actions[] = { [PLA_WARN] = "warn", [PLA_BLOCK] = "block", [PLA_RESTART] = "restart", [PLA_DISABLE] = "disable", }; return actions[l->action]; } /** * proto_notify_limit: notify about limit hit and take appropriate action * @ah: announce hook * @l: limit being hit * @dir: limit direction (PLD_*) * @rt_count: the number of routes * * The function is called by the route processing core when limit @l * is breached. It activates the limit and tooks appropriate action * according to @l->action. */ void proto_notify_limit(struct announce_hook *ah, struct proto_limit *l, int dir, u32 rt_count) { const char *dir_name[PLD_MAX] = { "receive", "import" , "export" }; const byte dir_down[PLD_MAX] = { PDC_RX_LIMIT_HIT, PDC_IN_LIMIT_HIT, PDC_OUT_LIMIT_HIT }; struct proto *p = ah->proto; if (l->state == PLS_BLOCKED) return; /* For warning action, we want the log message every time we hit the limit */ if (!l->state || ((l->action == PLA_WARN) && (rt_count == l->limit))) log(L_WARN "Protocol %s hits route %s limit (%d), action: %s", p->name, dir_name[dir], l->limit, proto_limit_name(l)); switch (l->action) { case PLA_WARN: l->state = PLS_ACTIVE; break; case PLA_BLOCK: l->state = PLS_BLOCKED; break; case PLA_RESTART: case PLA_DISABLE: l->state = PLS_BLOCKED; proto_schedule_down(p, l->action == PLA_RESTART, dir_down[dir]); break; } } /** * proto_notify_state - notify core about protocol state change * @p: protocol the state of which has changed * @ps: the new status * * Whenever a state of a protocol changes due to some event internal * to the protocol (i.e., not inside a start() or shutdown() hook), * it should immediately notify the core about the change by calling * proto_notify_state() which will write the new state to the &proto * structure and take all the actions necessary to adapt to the new * state. State change to PS_DOWN immediately frees resources of protocol * and might execute start callback of protocol; therefore, * it should be used at tail positions of protocol callbacks. */ void proto_notify_state(struct proto *p, unsigned ps) { unsigned ops = p->proto_state; unsigned cs = p->core_state; DBG("%s reporting state transition %s/%s -> */%s\n", p->name, c_states[cs], p_states[ops], p_states[ps]); if (ops == ps) return; p->proto_state = ps; p->last_state_change = now; switch (ps) { case PS_DOWN: p->down_code = 0; p->down_sched = 0; if ((cs == FS_FEEDING) || (cs == FS_HAPPY)) proto_schedule_flush(p); neigh_prune(); // FIXME convert neighbors to resource? rfree(p->pool); p->pool = NULL; if (cs == FS_HUNGRY) /* Shutdown finished */ { proto_fell_down(p); return; /* The protocol might have ceased to exist */ } break; case PS_START: ASSERT(ops == PS_DOWN); ASSERT(cs == FS_HUNGRY); break; case PS_UP: ASSERT(ops == PS_DOWN || ops == PS_START); ASSERT(cs == FS_HUNGRY); proto_schedule_feed(p, 1); break; case PS_STOP: p->down_sched = 0; if ((cs == FS_FEEDING) || (cs == FS_HAPPY)) proto_schedule_flush(p); break; default: bug("Invalid state transition for %s from %s/%s to */%s", p->name, c_states[cs], p_states[ops], p_states[ps]); } } /* * CLI Commands */ static char * proto_state_name(struct proto *p) { #define P(x,y) ((x << 4) | y) switch (P(p->proto_state, p->core_state)) { case P(PS_DOWN, FS_HUNGRY): return "down"; case P(PS_START, FS_HUNGRY): return "start"; case P(PS_UP, FS_HUNGRY): case P(PS_UP, FS_FEEDING): return "feed"; case P(PS_STOP, FS_HUNGRY): return "stop"; case P(PS_UP, FS_HAPPY): return "up"; case P(PS_STOP, FS_FLUSHING): case P(PS_DOWN, FS_FLUSHING): return "flush"; default: return "???"; } #undef P } static void proto_show_stats(struct proto_stats *s, int in_keep_filtered) { if (in_keep_filtered) cli_msg(-1006, " Routes: %u imported, %u filtered, %u exported, %u preferred", s->imp_routes, s->filt_routes, s->exp_routes, s->pref_routes); else cli_msg(-1006, " Routes: %u imported, %u exported, %u preferred", s->imp_routes, s->exp_routes, s->pref_routes); cli_msg(-1006, " Route change stats: received rejected filtered ignored accepted"); cli_msg(-1006, " Import updates: %10u %10u %10u %10u %10u", s->imp_updates_received, s->imp_updates_invalid, s->imp_updates_filtered, s->imp_updates_ignored, s->imp_updates_accepted); cli_msg(-1006, " Import withdraws: %10u %10u --- %10u %10u", s->imp_withdraws_received, s->imp_withdraws_invalid, s->imp_withdraws_ignored, s->imp_withdraws_accepted); cli_msg(-1006, " Export updates: %10u %10u %10u --- %10u", s->exp_updates_received, s->exp_updates_rejected, s->exp_updates_filtered, s->exp_updates_accepted); cli_msg(-1006, " Export withdraws: %10u --- --- --- %10u", s->exp_withdraws_received, s->exp_withdraws_accepted); } void proto_show_limit(struct proto_limit *l, const char *dsc) { if (!l) return; cli_msg(-1006, " %-16s%d%s", dsc, l->limit, l->state ? " [HIT]" : ""); cli_msg(-1006, " Action: %s", proto_limit_name(l)); } void proto_show_basic_info(struct proto *p) { // cli_msg(-1006, " Table: %s", p->table->name); cli_msg(-1006, " Preference: %d", p->preference); cli_msg(-1006, " Input filter: %s", filter_name(p->cf->in_filter)); cli_msg(-1006, " Output filter: %s", filter_name(p->cf->out_filter)); proto_show_limit(p->cf->rx_limit, "Receive limit:"); proto_show_limit(p->cf->in_limit, "Import limit:"); proto_show_limit(p->cf->out_limit, "Export limit:"); if (p->proto_state != PS_DOWN) proto_show_stats(&p->stats, p->cf->in_keep_filtered); } void proto_cmd_show(struct proto *p, unsigned int verbose, int cnt) { byte buf[256], tbuf[TM_DATETIME_BUFFER_SIZE]; /* First protocol - show header */ if (!cnt) cli_msg(-2002, "name proto table state since info"); buf[0] = 0; if (p->proto->get_status) p->proto->get_status(p, buf); tm_format_datetime(tbuf, &config->tf_proto, p->last_state_change); cli_msg(-1002, "%-8s %-8s %-8s %-5s %-10s %s", p->name, p->proto->name, p->table->name, proto_state_name(p), tbuf, buf); if (verbose) { if (p->cf->dsc) cli_msg(-1006, " Description: %s", p->cf->dsc); if (p->cf->router_id) cli_msg(-1006, " Router ID: %R", p->cf->router_id); if (p->proto->show_proto_info) p->proto->show_proto_info(p); else proto_show_basic_info(p); cli_msg(-1006, ""); } } void proto_cmd_disable(struct proto *p, unsigned int arg UNUSED, int cnt UNUSED) { if (p->disabled) { cli_msg(-8, "%s: already disabled", p->name); return; } log(L_INFO "Disabling protocol %s", p->name); p->disabled = 1; p->down_code = PDC_CMD_DISABLE; proto_rethink_goal(p); cli_msg(-9, "%s: disabled", p->name); } void proto_cmd_enable(struct proto *p, unsigned int arg UNUSED, int cnt UNUSED) { if (!p->disabled) { cli_msg(-10, "%s: already enabled", p->name); return; } log(L_INFO "Enabling protocol %s", p->name); p->disabled = 0; proto_rethink_goal(p); cli_msg(-11, "%s: enabled", p->name); } void proto_cmd_restart(struct proto *p, unsigned int arg UNUSED, int cnt UNUSED) { if (p->disabled) { cli_msg(-8, "%s: already disabled", p->name); return; } log(L_INFO "Restarting protocol %s", p->name); p->disabled = 1; p->down_code = PDC_CMD_RESTART; proto_rethink_goal(p); p->disabled = 0; proto_rethink_goal(p); cli_msg(-12, "%s: restarted", p->name); } void proto_cmd_reload(struct proto *p, unsigned int dir, int cnt UNUSED) { if (p->disabled) { cli_msg(-8, "%s: already disabled", p->name); return; } /* If the protocol in not UP, it has no routes */ if (p->proto_state != PS_UP) return; log(L_INFO "Reloading protocol %s", p->name); /* re-importing routes */ if (dir != CMD_RELOAD_OUT) { if (! (p->reload_routes && p->reload_routes(p))) { cli_msg(-8006, "%s: reload failed", p->name); return; } /* * Should be done before reload_routes() hook? * Perhaps, but these hooks work asynchronously. */ if (!p->proto->multitable) { proto_reset_limit(p->main_ahook->rx_limit); proto_reset_limit(p->main_ahook->in_limit); } } /* re-exporting routes */ if (dir != CMD_RELOAD_IN) proto_request_feeding(p); cli_msg(-15, "%s: reloading", p->name); } void proto_cmd_debug(struct proto *p, unsigned int mask, int cnt UNUSED) { p->debug = mask; } void proto_cmd_mrtdump(struct proto *p, unsigned int mask, int cnt UNUSED) { p->mrtdump = mask; } static void proto_apply_cmd_symbol(struct symbol *s, void (* cmd)(struct proto *, unsigned int, int), unsigned int arg) { if (s->class != SYM_PROTO) { cli_msg(9002, "%s is not a protocol", s->name); return; } cmd(((struct proto_config *)s->def)->proto, arg, 0); cli_msg(0, ""); } static void proto_apply_cmd_patt(char *patt, void (* cmd)(struct proto *, unsigned int, int), unsigned int arg) { int cnt = 0; node *nn; WALK_LIST(nn, proto_list) { struct proto *p = SKIP_BACK(struct proto, glob_node, nn); if (!patt || patmatch(patt, p->name)) cmd(p, arg, cnt++); } if (!cnt) cli_msg(8003, "No protocols match"); else cli_msg(0, ""); } void proto_apply_cmd(struct proto_spec ps, void (* cmd)(struct proto *, unsigned int, int), int restricted, unsigned int arg) { if (restricted && cli_access_restricted()) return; if (ps.patt) proto_apply_cmd_patt(ps.ptr, cmd, arg); else proto_apply_cmd_symbol(ps.ptr, cmd, arg); } struct proto * proto_get_named(struct symbol *sym, struct protocol *pr) { struct proto *p, *q; if (sym) { if (sym->class != SYM_PROTO) cf_error("%s: Not a protocol", sym->name); p = ((struct proto_config *)sym->def)->proto; if (!p || p->proto != pr) cf_error("%s: Not a %s protocol", sym->name, pr->name); } else { p = NULL; WALK_LIST(q, active_proto_list) if (q->proto == pr) { if (p) cf_error("There are multiple %s protocols running", pr->name); p = q; } if (!p) cf_error("There is no %s protocol running", pr->name); } return p; } bird-1.4.0/nest/cli.c0000644000103200001440000002425012074014514013305 0ustar feelausers/* * BIRD Internet Routing Daemon -- Command-Line Interface * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Command line interface * * This module takes care of the BIRD's command-line interface (CLI). * The CLI exists to provide a way to control BIRD remotely and to inspect * its status. It uses a very simple textual protocol over a stream * connection provided by the platform dependent code (on UNIX systems, * it's a UNIX domain socket). * * Each session of the CLI consists of a sequence of request and replies, * slightly resembling the FTP and SMTP protocols. * Requests are commands encoded as a single line of text, replies are * sequences of lines starting with a four-digit code followed by either * a space (if it's the last line of the reply) or a minus sign (when the * reply is going to continue with the next line), the rest of the line * contains a textual message semantics of which depends on the numeric * code. If a reply line has the same code as the previous one and it's * a continuation line, the whole prefix can be replaced by a single * white space character. * * Reply codes starting with 0 stand for `action successfully completed' messages, * 1 means `table entry', 8 `runtime error' and 9 `syntax error'. * * Each CLI session is internally represented by a &cli structure and a * resource pool containing all resources associated with the connection, * so that it can be easily freed whenever the connection gets closed, not depending * on the current state of command processing. * * The CLI commands are declared as a part of the configuration grammar * by using the |CF_CLI| macro. When a command is received, it is processed * by the same lexical analyzer and parser as used for the configuration, but * it's switched to a special mode by prepending a fake token to the text, * so that it uses only the CLI command rules. Then the parser invokes * an execution routine corresponding to the command, which either constructs * the whole reply and returns it back or (in case it expects the reply will be long) * it prints a partial reply and asks the CLI module (using the @cont hook) * to call it again when the output is transferred to the user. * * The @this_cli variable points to a &cli structure of the session being * currently parsed, but it's of course available only in command handlers * not entered using the @cont hook. * * TX buffer management works as follows: At cli.tx_buf there is a * list of TX buffers (struct cli_out), cli.tx_write is the buffer * currently used by the producer (cli_printf(), cli_alloc_out()) and * cli.tx_pos is the buffer currently used by the consumer * (cli_write(), in system dependent code). The producer uses * cli_out.wpos ptr as the current write position and the consumer * uses cli_out.outpos ptr as the current read position. When the * producer produces something, it calls cli_write_trigger(). If there * is not enough space in the current buffer, the producer allocates * the new one. When the consumer processes everything in the buffer * queue, it calls cli_written(), tha frees all buffers (except the * first one) and schedules cli.event . * */ #include "nest/bird.h" #include "nest/cli.h" #include "conf/conf.h" #include "lib/string.h" pool *cli_pool; static byte * cli_alloc_out(cli *c, int size) { struct cli_out *o; if (!(o = c->tx_write) || o->wpos + size > o->end) { if (!o && c->tx_buf) o = c->tx_buf; else { o = mb_alloc(c->pool, sizeof(struct cli_out) + CLI_TX_BUF_SIZE); if (c->tx_write) c->tx_write->next = o; else c->tx_buf = o; o->wpos = o->outpos = o->buf; o->end = o->buf + CLI_TX_BUF_SIZE; } c->tx_write = o; if (!c->tx_pos) c->tx_pos = o; o->next = NULL; } o->wpos += size; return o->wpos - size; } /** * cli_printf - send reply to a CLI connection * @c: CLI connection * @code: numeric code of the reply, negative for continuation lines * @msg: a printf()-like formatting string. * * This function send a single line of reply to a given CLI connection. * In works in all aspects like bsprintf() except that it automatically * prepends the reply line prefix. * * Please note that if the connection can be already busy sending some * data in which case cli_printf() stores the output to a temporary buffer, * so please avoid sending a large batch of replies without waiting * for the buffers to be flushed. * * If you want to write to the current CLI output, you can use the cli_msg() * macro instead. */ void cli_printf(cli *c, int code, char *msg, ...) { va_list args; byte buf[CLI_LINE_SIZE]; int cd = code; int errcode; int size, cnt; if (cd < 0) { cd = -cd; if (cd == c->last_reply) size = bsprintf(buf, " "); else size = bsprintf(buf, "%04d-", cd); errcode = -8000; } else if (cd == CLI_ASYNC_CODE) { size = 1; buf[0] = '+'; errcode = cd; } else { size = bsprintf(buf, "%04d ", cd); errcode = 8000; } c->last_reply = cd; va_start(args, msg); cnt = bvsnprintf(buf+size, sizeof(buf)-size-1, msg, args); va_end(args); if (cnt < 0) { cli_printf(c, errcode, ""); return; } size += cnt; buf[size++] = '\n'; memcpy(cli_alloc_out(c, size), buf, size); } static void cli_copy_message(cli *c) { byte *p, *q; unsigned int cnt = 2; if (c->ring_overflow) { byte buf[64]; int n = bsprintf(buf, "<%d messages lost>\n", c->ring_overflow); c->ring_overflow = 0; memcpy(cli_alloc_out(c, n), buf, n); } p = c->ring_read; while (*p) { cnt++; p++; if (p == c->ring_end) p = c->ring_buf; ASSERT(p != c->ring_write); } c->async_msg_size += cnt; q = cli_alloc_out(c, cnt); *q++ = '+'; p = c->ring_read; do { *q = *p++; if (p == c->ring_end) p = c->ring_buf; } while (*q++); c->ring_read = p; q[-1] = '\n'; } static void cli_hello(cli *c) { cli_printf(c, 1, "BIRD " BIRD_VERSION " ready."); c->cont = NULL; } static void cli_free_out(cli *c) { struct cli_out *o, *p; if (o = c->tx_buf) { o->wpos = o->outpos = o->buf; while (p = o->next) { o->next = p->next; mb_free(p); } } c->tx_write = c->tx_pos = NULL; c->async_msg_size = 0; } void cli_written(cli *c) { cli_free_out(c); ev_schedule(c->event); } static byte *cli_rh_pos; static unsigned int cli_rh_len; static int cli_rh_trick_flag; struct cli *this_cli; static int cli_cmd_read_hook(byte *buf, unsigned int max, UNUSED int fd) { if (!cli_rh_trick_flag) { cli_rh_trick_flag = 1; buf[0] = '!'; return 1; } if (max > cli_rh_len) max = cli_rh_len; memcpy(buf, cli_rh_pos, max); cli_rh_pos += max; cli_rh_len -= max; return max; } static void cli_command(struct cli *c) { struct config f; int res; if (config->cli_debug > 1) log(L_TRACE "CLI: %s", c->rx_buf); bzero(&f, sizeof(f)); f.mem = c->parser_pool; cf_read_hook = cli_cmd_read_hook; cli_rh_pos = c->rx_buf; cli_rh_len = strlen(c->rx_buf); cli_rh_trick_flag = 0; this_cli = c; lp_flush(c->parser_pool); res = cli_parse(&f); if (!res) cli_printf(c, 9001, f.err_msg); } static void cli_event(void *data) { cli *c = data; int err; while (c->ring_read != c->ring_write && c->async_msg_size < CLI_MAX_ASYNC_QUEUE) cli_copy_message(c); if (c->tx_pos) ; else if (c->cont) c->cont(c); else { err = cli_get_command(c); if (!err) return; if (err < 0) cli_printf(c, 9000, "Command too long"); else cli_command(c); } cli_write_trigger(c); } cli * cli_new(void *priv) { pool *p = rp_new(cli_pool, "CLI"); cli *c = mb_alloc(p, sizeof(cli)); bzero(c, sizeof(cli)); c->pool = p; c->priv = priv; c->event = ev_new(p); c->event->hook = cli_event; c->event->data = c; c->cont = cli_hello; c->parser_pool = lp_new(c->pool, 4096); c->rx_buf = mb_alloc(c->pool, CLI_RX_BUF_SIZE); ev_schedule(c->event); return c; } void cli_kick(cli *c) { if (!c->cont && !c->tx_pos) ev_schedule(c->event); } static list cli_log_hooks; static int cli_log_inited; void cli_set_log_echo(cli *c, unsigned int mask, unsigned int size) { if (c->ring_buf) { mb_free(c->ring_buf); c->ring_buf = c->ring_end = c->ring_read = c->ring_write = NULL; rem_node(&c->n); } c->log_mask = mask; if (mask && size) { c->ring_buf = mb_alloc(c->pool, size); c->ring_end = c->ring_buf + size; c->ring_read = c->ring_write = c->ring_buf; add_tail(&cli_log_hooks, &c->n); c->log_threshold = size / 8; } c->ring_overflow = 0; } void cli_echo(unsigned int class, byte *msg) { unsigned len, free, i, l; cli *c; byte *m; if (!cli_log_inited || EMPTY_LIST(cli_log_hooks)) return; len = strlen(msg) + 1; WALK_LIST(c, cli_log_hooks) { if (!(c->log_mask & (1 << class))) continue; if (c->ring_read <= c->ring_write) free = (c->ring_end - c->ring_buf) - (c->ring_write - c->ring_read + 1); else free = c->ring_read - c->ring_write - 1; if ((len > free) || (free < c->log_threshold && class < (unsigned) L_INFO[0])) { c->ring_overflow++; continue; } if (c->ring_read == c->ring_write) ev_schedule(c->event); m = msg; l = len; while (l) { if (c->ring_read <= c->ring_write) i = c->ring_end - c->ring_write; else i = c->ring_read - c->ring_write; if (i > l) i = l; memcpy(c->ring_write, m, i); m += i; l -= i; c->ring_write += i; if (c->ring_write == c->ring_end) c->ring_write = c->ring_buf; } } } /* Hack for scheduled undo notification */ extern cli *cmd_reconfig_stored_cli; void cli_free(cli *c) { cli_set_log_echo(c, 0, 0); if (c->cleanup) c->cleanup(c); if (c == cmd_reconfig_stored_cli) cmd_reconfig_stored_cli = NULL; rfree(c->pool); } /** * cli_init - initialize the CLI module * * This function is called during BIRD startup to initialize * the internal data structures of the CLI module. */ void cli_init(void) { cli_pool = rp_new(&root_pool, "CLI"); init_list(&cli_log_hooks); cli_log_inited = 1; } bird-1.4.0/nest/cli.h0000644000103200001440000000434012074014514013310 0ustar feelausers/* * BIRD Internet Routing Daemon -- Command-Line Interface * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_CLI_H_ #define _BIRD_CLI_H_ #include "lib/resource.h" #include "lib/event.h" #define CLI_RX_BUF_SIZE 4096 #define CLI_TX_BUF_SIZE 4096 #define CLI_MAX_ASYNC_QUEUE 4096 #define CLI_MSG_SIZE 500 #define CLI_LINE_SIZE 512 struct cli_out { struct cli_out *next; byte *wpos, *outpos, *end; byte buf[0]; }; typedef struct cli { node n; /* Node in list of all log hooks */ pool *pool; void *priv; /* Private to sysdep layer */ byte *rx_buf, *rx_pos, *rx_aux; /* sysdep */ struct cli_out *tx_buf, *tx_pos, *tx_write; event *event; void (*cont)(struct cli *c); void (*cleanup)(struct cli *c); void *rover; /* Private to continuation routine */ int last_reply; int restricted; /* CLI is restricted to read-only commands */ struct linpool *parser_pool; /* Pool used during parsing */ byte *ring_buf; /* Ring buffer for asynchronous messages */ byte *ring_end, *ring_read, *ring_write; /* Pointers to the ring buffer */ unsigned int ring_overflow; /* Counter of ring overflows */ unsigned int log_mask; /* Mask of allowed message levels */ unsigned int log_threshold; /* When free < log_threshold, store only important messages */ unsigned int async_msg_size; /* Total size of async messages queued in tx_buf */ } cli; extern pool *cli_pool; extern struct cli *this_cli; /* Used during parsing */ #define CLI_ASYNC_CODE 10000 /* Functions to be called by command handlers */ void cli_printf(cli *, int, char *, ...); #define cli_msg(x...) cli_printf(this_cli, x) void cli_set_log_echo(cli *, unsigned int mask, unsigned int size); /* Functions provided to sysdep layer */ cli *cli_new(void *); void cli_init(void); void cli_free(cli *); void cli_kick(cli *); void cli_written(cli *); void cli_echo(unsigned int class, byte *msg); static inline int cli_access_restricted(void) { if (this_cli && this_cli->restricted) return (cli_printf(this_cli, 8007, "Access denied"), 1); else return 0; } /* Functions provided by sysdep layer */ void cli_write_trigger(cli *); int cli_get_command(cli *); #endif bird-1.4.0/nest/password.h0000644000103200001440000000106711606273733014420 0ustar feelausers/* * BIRD -- Password handling * * (c) 1999 Pavel Machek * (c) 2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef PASSWORD_H #define PASSWORD_H #include "lib/timer.h" #define MD5_AUTH_SIZE 16 struct password_item { node n; char *password; int id; bird_clock_t accfrom, accto, genfrom, gento; }; extern struct password_item *last_password_item; struct password_item *password_find(list *l, int first_fit); void password_cpy(char *dst, char *src, int size); #endif bird-1.4.0/nest/Makefile0000644000103200001440000000026311732627752014046 0ustar feelauserssource=rt-table.c rt-fib.c rt-attr.c rt-roa.c proto.c iface.c rt-dev.c password.c cli.c locks.c cmds.c neighbor.c \ a-path.c a-set.c root-rel=../ dir-name=nest include ../Rules bird-1.4.0/nest/locks.c0000644000103200001440000001150511606273733013662 0ustar feelausers/* * BIRD Object Locks * * (c) 1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Object locks * * The lock module provides a simple mechanism for avoiding conflicts between * various protocols which would like to use a single physical resource (for * example a network port). It would be easy to say that such collisions can * occur only when the user specifies an invalid configuration and therefore * he deserves to get what he has asked for, but unfortunately they can also * arise legitimately when the daemon is reconfigured and there exists (although * for a short time period only) an old protocol instance being shut down and a new one * willing to start up on the same interface. * * The solution is very simple: when any protocol wishes to use a network port * or some other non-shareable resource, it asks the core to lock it and it doesn't * use the resource until it's notified that it has acquired the lock. * * Object locks are represented by &object_lock structures which are in turn a kind of * resource. Lockable resources are uniquely determined by resource type * (%OBJLOCK_UDP for a UDP port etc.), IP address (usually a broadcast or * multicast address the port is bound to), port number and interface. */ #undef LOCAL_DEBUG #include "nest/bird.h" #include "lib/resource.h" #include "nest/locks.h" #include "nest/iface.h" static list olock_list; static event *olock_event; static inline int olock_same(struct object_lock *x, struct object_lock *y) { return x->type == y->type && x->iface == y->iface && x->port == y->port && ipa_equal(x->addr, y->addr); } static void olock_free(resource *r) { struct object_lock *q, *l = (struct object_lock *) r; node *n; DBG("olock: Freeing %p\n", l); switch (l->state) { case OLOCK_STATE_FREE: break; case OLOCK_STATE_LOCKED: case OLOCK_STATE_EVENT: rem_node(&l->n); n = HEAD(l->waiters); if (n->next) { DBG("olock: -> %p becomes locked\n", n); q = SKIP_BACK(struct object_lock, n, n); rem_node(n); add_tail_list(&l->waiters, &q->waiters); q->state = OLOCK_STATE_EVENT; add_head(&olock_list, n); ev_schedule(olock_event); } break; case OLOCK_STATE_WAITING: rem_node(&l->n); break; default: ASSERT(0); } } static void olock_dump(resource *r) { struct object_lock *l = (struct object_lock *) r; static char *olock_states[] = { "free", "locked", "waiting", "event" }; debug("(%d:%s:%I:%d) [%s]\n", l->type, (l->iface ? l->iface->name : "?"), l->addr, l->port, olock_states[l->state]); if (!EMPTY_LIST(l->waiters)) debug(" [wanted]\n"); } static struct resclass olock_class = { "ObjLock", sizeof(struct object_lock), olock_free, olock_dump, NULL }; /** * olock_new - create an object lock * @p: resource pool to create the lock in. * * The olock_new() function creates a new resource of type &object_lock * and returns a pointer to it. After filling in the structure, the caller * should call olock_acquire() to do the real locking. */ struct object_lock * olock_new(pool *p) { struct object_lock *l = ralloc(p, &olock_class); l->state = OLOCK_STATE_FREE; init_list(&l->waiters); return l; } /** * olock_acquire - acquire a lock * @l: the lock to acquire * * This function attempts to acquire exclusive access to the non-shareable * resource described by the lock @l. It returns immediately, but as soon * as the resource becomes available, it calls the hook() function set up * by the caller. * * When you want to release the resource, just rfree() the lock. */ void olock_acquire(struct object_lock *l) { node *n; struct object_lock *q; WALK_LIST(n, olock_list) { q = SKIP_BACK(struct object_lock, n, n); if (olock_same(q, l)) { l->state = OLOCK_STATE_WAITING; add_tail(&q->waiters, &l->n); DBG("olock: %p waits\n", l); return; } } DBG("olock: %p acquired immediately\n", l); l->state = OLOCK_STATE_EVENT; add_head(&olock_list, &l->n); ev_schedule(olock_event); } static void olock_run_event(void *unused UNUSED) { node *n; struct object_lock *q; DBG("olock: Processing events\n"); for(;;) { n = HEAD(olock_list); if (!n->next) break; q = SKIP_BACK(struct object_lock, n, n); if (q->state != OLOCK_STATE_EVENT) break; DBG("olock: %p locked\n", q); q->state = OLOCK_STATE_LOCKED; rem_node(&q->n); add_tail(&olock_list, &q->n); q->hook(q); } } /** * olock_init - initialize the object lock mechanism * * This function is called during BIRD startup. It initializes * all the internal data structures of the lock module. */ void olock_init(void) { DBG("olock: init\n"); init_list(&olock_list); olock_event = ev_new(&root_pool); olock_event->hook = olock_run_event; } bird-1.4.0/nest/iface.h0000644000103200001440000001240412074014514013610 0ustar feelausers/* * BIRD Internet Routing Daemon -- Network Interfaces * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_IFACE_H_ #define _BIRD_IFACE_H_ #include "lib/lists.h" extern list iface_list; struct proto; struct pool; struct ifa { /* Interface address */ node n; struct iface *iface; /* Interface this address belongs to */ ip_addr ip; /* IP address of this host */ ip_addr prefix; /* Network prefix */ unsigned pxlen; /* Prefix length */ ip_addr brd; /* Broadcast address */ ip_addr opposite; /* Opposite end of a point-to-point link */ unsigned scope; /* Interface address scope */ unsigned flags; /* Analogous to iface->flags */ }; struct iface { node n; char name[16]; unsigned flags; unsigned mtu; unsigned index; /* OS-dependent interface index */ list addrs; /* Addresses assigned to this interface */ struct ifa *addr; /* Primary address */ list neighbors; /* All neighbors on this interface */ }; #define IF_UP 1 /* IF_ADMIN_UP and IP address known */ #define IF_MULTIACCESS 2 #define IF_BROADCAST 4 #define IF_MULTICAST 8 #define IF_SHUTDOWN 0x10 /* Interface disappeared */ #define IF_LOOPBACK 0x20 #define IF_IGNORE 0x40 /* Not to be used by routing protocols (loopbacks etc.) */ #define IF_ADMIN_UP 0x80 /* Administrative up (e.g. IFF_UP in Linux) */ #define IF_LINK_UP 0x100 /* Link available (e.g. IFF_LOWER_UP in Linux) */ #define IA_PRIMARY 0x10000 /* This address is primary */ #define IA_SECONDARY 0x20000 /* This address has been reported as secondary by the kernel */ #define IA_PEER 0x40000 /* A peer/ptp address */ #define IA_HOST 0x80000 /* A host/loopback address */ #define IA_FLAGS 0xff0000 /* * There are three kinds of addresses in BIRD: * - Standard (prefix-based) addresses, these may define ifa.opposite (for /30 or /31). * - Peer/ptp addresses, without common prefix for ifa.ip and ifa.opposite. * ifa.opposite is defined and ifa.prefix/pxlen == ifa.opposite/32 (for simplicity). * - Host addresses, with ifa.prefix/pxlen == ifa.ip/32 (or /128). * May be considered a special case of standard addresses. * * Peer addresses (AFAIK) do not exist in IPv6. Linux also supports generalized peer * addresses (with pxlen < 32 and ifa.ip outside prefix), we do not support that. */ #define IF_JUST_CREATED 0x10000000 /* Send creation event as soon as possible */ #define IF_TMP_DOWN 0x20000000 /* Temporary shutdown due to interface reconfiguration */ #define IF_UPDATED 0x40000000 /* Touched in last scan */ /* Interface change events */ #define IF_CHANGE_UP 1 #define IF_CHANGE_DOWN 2 #define IF_CHANGE_MTU 4 #define IF_CHANGE_CREATE 8 /* Seen this interface for the first time */ #define IF_CHANGE_LINK 0x10 #define IF_CHANGE_TOO_MUCH 0x40000000 /* Used internally */ void if_init(void); void if_dump(struct iface *); void if_dump_all(void); void ifa_dump(struct ifa *); void if_show(void); void if_show_summary(void); struct iface *if_update(struct iface *); void if_delete(struct iface *old); struct ifa *ifa_update(struct ifa *); void ifa_delete(struct ifa *); void if_start_update(void); void if_end_partial_update(struct iface *); void if_end_update(void); void if_flush_ifaces(struct proto *p); void if_feed_baby(struct proto *); struct iface *if_find_by_index(unsigned); struct iface *if_find_by_name(char *); struct iface *if_get_by_name(char *); void ifa_recalc_all_primary_addresses(void); /* The Neighbor Cache */ typedef struct neighbor { node n; /* Node in global neighbor list */ node if_n; /* Node in per-interface neighbor list */ ip_addr addr; /* Address of the neighbor */ struct iface *iface; /* Interface it's connected to */ struct proto *proto; /* Protocol this belongs to */ void *data; /* Protocol-specific data */ unsigned aux; /* Protocol-specific data */ unsigned flags; int scope; /* Address scope, -1 for unreachable sticky neighbors, SCOPE_HOST when it's our own address */ } neighbor; #define NEF_STICKY 1 #define NEF_ONLINK 2 #define NEF_BIND 4 /* Used internally for neighbors bound to an iface */ neighbor *neigh_find(struct proto *, ip_addr *, unsigned flags); neighbor *neigh_find2(struct proto *p, ip_addr *a, struct iface *ifa, unsigned flags); static inline int neigh_connected_to(struct proto *p, ip_addr *a, struct iface *i) { neighbor *n = neigh_find(p, a, 0); return n && n->iface == i; } void neigh_dump(neighbor *); void neigh_dump_all(void); void neigh_prune(void); void neigh_if_up(struct iface *); void neigh_if_down(struct iface *); void neigh_if_link(struct iface *); void neigh_ifa_update(struct ifa *); void neigh_init(struct pool *); /* * Interface Pattern Lists */ struct iface_patt_node { node n; int positive; byte *pattern; ip_addr prefix; int pxlen; }; struct iface_patt { node n; list ipn_list; /* A list of struct iface_patt_node */ /* Protocol-specific data follow after this structure */ }; int iface_patt_match(struct iface_patt *ifp, struct iface *i, struct ifa *a); struct iface_patt *iface_patt_find(list *l, struct iface *i, struct ifa *a); int iface_patts_equal(list *, list *, int (*)(struct iface_patt *, struct iface_patt *)); u32 if_choose_router_id(struct iface_patt *mask, u32 old_id); #endif bird-1.4.0/nest/proto.sgml0000644000103200001440000001071611606273733014435 0ustar feelausers Routing protocols Introduction

The routing protocols are the bird's heart and a fine amount of code is dedicated to their management and for providing support functions to them. (-: Actually, this is the reason why the directory with sources of the core code is called When talking about protocols, one need to distinguish between A protocol is represented by a Each instance has its own The protocol hooks are described in the next chapter, for more information about configuration of protocols, please refer to the configuration chapter and also to the description of the Protocol states

As startup and shutdown of each protocol are complex processes which can be affected by lots of external events (user's actions, reconfigurations, behavior of neighboring routers etc.), we have decided to supervise them by a pair of simple state machines -- the protocol state machine and a core state machine.

The

Unless the protocol is in the At any time, the core code can ask the protocol to shut itself down by calling its stop() hook.

The Functions of the protocol module

The protocol module provides the following functions: bird-1.4.0/nest/protocol.h0000644000103200001440000004127612244117701014414 0ustar feelausers/* * BIRD Internet Routing Daemon -- Protocols * * (c) 1998--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_PROTOCOL_H_ #define _BIRD_PROTOCOL_H_ #include "lib/lists.h" #include "lib/resource.h" #include "lib/timer.h" #include "conf/conf.h" struct iface; struct ifa; struct rtable; struct rte; struct neighbor; struct rta; struct network; struct proto_config; struct config; struct proto; struct event; struct ea_list; struct eattr; struct symbol; /* * Routing Protocol */ struct protocol { node n; char *name; char *template; /* Template for automatic generation of names */ int name_counter; /* Counter for automatic name generation */ int attr_class; /* Attribute class known to this protocol */ int multitable; /* Protocol handles all announce hooks itself */ unsigned preference; /* Default protocol preference */ void (*preconfig)(struct protocol *, struct config *); /* Just before configuring */ void (*postconfig)(struct proto_config *); /* After configuring each instance */ struct proto * (*init)(struct proto_config *); /* Create new instance */ int (*reconfigure)(struct proto *, struct proto_config *); /* Try to reconfigure instance, returns success */ void (*dump)(struct proto *); /* Debugging dump */ void (*dump_attrs)(struct rte *); /* Dump protocol-dependent attributes */ int (*start)(struct proto *); /* Start the instance */ int (*shutdown)(struct proto *); /* Stop the instance */ void (*cleanup)(struct proto *); /* Called after shutdown when protocol became hungry/down */ void (*get_status)(struct proto *, byte *buf); /* Get instance status (for `show protocols' command) */ void (*get_route_info)(struct rte *, byte *buf, struct ea_list *attrs); /* Get route information (for `show route' command) */ int (*get_attr)(struct eattr *, byte *buf, int buflen); /* ASCIIfy dynamic attribute (returns GA_*) */ void (*show_proto_info)(struct proto *); /* Show protocol info (for `show protocols all' command) */ void (*copy_config)(struct proto_config *, struct proto_config *); /* Copy config from given protocol instance */ }; void protos_build(void); void proto_build(struct protocol *); void protos_preconfig(struct config *); void protos_postconfig(struct config *); void protos_commit(struct config *new, struct config *old, int force_restart, int type); void protos_dump_all(void); #define GA_UNKNOWN 0 /* Attribute not recognized */ #define GA_NAME 1 /* Result = name */ #define GA_FULL 2 /* Result = both name and value */ /* * Known protocols */ extern struct protocol proto_device, proto_radv, proto_rip, proto_static, proto_ospf, proto_pipe, proto_bgp, proto_bfd; /* * Routing Protocol Instance */ struct proto_config { node n; struct config *global; /* Global configuration data */ struct protocol *protocol; /* Protocol */ struct proto *proto; /* Instance we've created */ char *name; char *dsc; int class; /* SYM_PROTO or SYM_TEMPLATE */ u32 debug, mrtdump; /* Debugging bitfields, both use D_* constants */ unsigned preference, disabled; /* Generic parameters */ int in_keep_filtered; /* Routes rejected in import filter are kept */ u32 router_id; /* Protocol specific router ID */ struct rtable_config *table; /* Table we're attached to */ struct filter *in_filter, *out_filter; /* Attached filters */ struct proto_limit *rx_limit; /* Limit for receiving routes from protocol (relevant when in_keep_filtered is active) */ struct proto_limit *in_limit; /* Limit for importing routes from protocol */ struct proto_limit *out_limit; /* Limit for exporting routes to protocol */ /* Check proto_reconfigure() and proto_copy_config() after changing struct proto_config */ /* Protocol-specific data follow... */ }; /* Protocol statistics */ struct proto_stats { /* Import - from protocol to core */ u32 imp_routes; /* Number of routes successfully imported to the (adjacent) routing table */ u32 filt_routes; /* Number of routes rejected in import filter but kept in the routing table */ u32 pref_routes; /* Number of routes that are preferred, sum over all routing tables */ u32 imp_updates_received; /* Number of route updates received */ u32 imp_updates_invalid; /* Number of route updates rejected as invalid */ u32 imp_updates_filtered; /* Number of route updates rejected by filters */ u32 imp_updates_ignored; /* Number of route updates rejected as already in route table */ u32 imp_updates_accepted; /* Number of route updates accepted and imported */ u32 imp_withdraws_received; /* Number of route withdraws received */ u32 imp_withdraws_invalid; /* Number of route withdraws rejected as invalid */ u32 imp_withdraws_ignored; /* Number of route withdraws rejected as already not in route table */ u32 imp_withdraws_accepted; /* Number of route withdraws accepted and processed */ /* Export - from core to protocol */ u32 exp_routes; /* Number of routes successfully exported to the protocol */ u32 exp_updates_received; /* Number of route updates received */ u32 exp_updates_rejected; /* Number of route updates rejected by protocol */ u32 exp_updates_filtered; /* Number of route updates rejected by filters */ u32 exp_updates_accepted; /* Number of route updates accepted and exported */ u32 exp_withdraws_received; /* Number of route withdraws received */ u32 exp_withdraws_accepted; /* Number of route withdraws accepted and processed */ }; struct proto { node n; /* Node in *_proto_list */ node glob_node; /* Node in global proto_list */ struct protocol *proto; /* Protocol */ struct proto_config *cf; /* Configuration data */ struct proto_config *cf_new; /* Configuration we want to switch to after shutdown (NULL=delete) */ pool *pool; /* Pool containing local objects */ struct event *attn; /* "Pay attention" event */ char *name; /* Name of this instance (== cf->name) */ u32 debug; /* Debugging flags */ u32 mrtdump; /* MRTDump flags */ unsigned preference; /* Default route preference */ byte accept_ra_types; /* Which types of route announcements are accepted (RA_OPTIMAL or RA_ANY) */ byte disabled; /* Manually disabled */ byte proto_state; /* Protocol state machine (PS_*, see below) */ byte core_state; /* Core state machine (FS_*, see below) */ byte core_goal; /* State we want to reach (FS_*, see below) */ byte reconfiguring; /* We're shutting down due to reconfiguration */ byte refeeding; /* We are refeeding (valid only if core_state == FS_FEEDING) */ byte flushing; /* Protocol is flushed in current flush loop round */ byte down_sched; /* Shutdown is scheduled for later (PDS_*) */ byte down_code; /* Reason for shutdown (PDC_* codes) */ u32 hash_key; /* Random key used for hashing of neighbors */ bird_clock_t last_state_change; /* Time of last state transition */ char *last_state_name_announced; /* Last state name we've announced to the user */ struct proto_stats stats; /* Current protocol statistics */ /* * General protocol hooks: * * if_notify Notify protocol about interface state changes. * ifa_notify Notify protocol about interface address changes. * rt_notify Notify protocol about routing table updates. * neigh_notify Notify protocol about neighbor cache events. * make_tmp_attrs Construct ea_list from private attrs stored in rte. * store_tmp_attrs Store private attrs back to the rte. * import_control Called as the first step of the route importing process. * It can construct a new rte, add private attributes and * decide whether the route shall be imported: 1=yes, -1=no, * 0=process it through the import filter set by the user. * reload_routes Request protocol to reload all its routes to the core * (using rte_update()). Returns: 0=reload cannot be done, * 1= reload is scheduled and will happen (asynchronously). */ void (*if_notify)(struct proto *, unsigned flags, struct iface *i); void (*ifa_notify)(struct proto *, unsigned flags, struct ifa *a); void (*rt_notify)(struct proto *, struct rtable *table, struct network *net, struct rte *new, struct rte *old, struct ea_list *attrs); void (*neigh_notify)(struct neighbor *neigh); struct ea_list *(*make_tmp_attrs)(struct rte *rt, struct linpool *pool); void (*store_tmp_attrs)(struct rte *rt, struct ea_list *attrs); int (*import_control)(struct proto *, struct rte **rt, struct ea_list **attrs, struct linpool *pool); int (*reload_routes)(struct proto *); /* * Routing entry hooks (called only for rte's belonging to this protocol): * * rte_recalculate Called at the beginning of the best route selection * rte_better Compare two rte's and decide which one is better (1=first, 0=second). * rte_same Compare two rte's and decide whether they are identical (1=yes, 0=no). * rte_insert Called whenever a rte is inserted to a routing table. * rte_remove Called whenever a rte is removed from the routing table. */ int (*rte_recalculate)(struct rtable *, struct network *, struct rte *, struct rte *, struct rte *); int (*rte_better)(struct rte *, struct rte *); int (*rte_same)(struct rte *, struct rte *); void (*rte_insert)(struct network *, struct rte *); void (*rte_remove)(struct network *, struct rte *); struct rtable *table; /* Our primary routing table */ struct announce_hook *main_ahook; /* Primary announcement hook */ struct announce_hook *ahooks; /* Announcement hooks for this protocol */ struct fib_iterator *feed_iterator; /* Routing table iterator used during protocol feeding */ struct announce_hook *feed_ahook; /* Announce hook we currently feed */ /* Hic sunt protocol-specific data */ }; struct proto_spec { void *ptr; int patt; }; #define PDS_DISABLE 1 /* Proto disable scheduled */ #define PDS_RESTART 2 /* Proto restart scheduled */ #define PDC_CF_REMOVE 0x01 /* Removed in new config */ #define PDC_CF_DISABLE 0x02 /* Disabled in new config */ #define PDC_CF_RESTART 0x03 /* Restart due to reconfiguration */ #define PDC_CMD_DISABLE 0x11 /* Result of disable command */ #define PDC_CMD_RESTART 0x12 /* Result of restart command */ #define PDC_CMD_SHUTDOWN 0x13 /* Result of global shutdown */ #define PDC_RX_LIMIT_HIT 0x21 /* Route receive limit reached */ #define PDC_IN_LIMIT_HIT 0x22 /* Route import limit reached */ #define PDC_OUT_LIMIT_HIT 0x23 /* Route export limit reached */ void *proto_new(struct proto_config *, unsigned size); void *proto_config_new(struct protocol *, unsigned size, int class); void proto_copy_config(struct proto_config *dest, struct proto_config *src); void proto_request_feeding(struct proto *p); static inline void proto_copy_rest(struct proto_config *dest, struct proto_config *src, unsigned size) { memcpy(dest + 1, src + 1, size - sizeof(struct proto_config)); } void proto_show_limit(struct proto_limit *l, const char *dsc); void proto_show_basic_info(struct proto *p); void proto_cmd_show(struct proto *, unsigned int, int); void proto_cmd_disable(struct proto *, unsigned int, int); void proto_cmd_enable(struct proto *, unsigned int, int); void proto_cmd_restart(struct proto *, unsigned int, int); void proto_cmd_reload(struct proto *, unsigned int, int); void proto_cmd_debug(struct proto *, unsigned int, int); void proto_cmd_mrtdump(struct proto *, unsigned int, int); void proto_apply_cmd(struct proto_spec ps, void (* cmd)(struct proto *, unsigned int, int), int restricted, unsigned int arg); struct proto *proto_get_named(struct symbol *, struct protocol *); #define CMD_RELOAD 0 #define CMD_RELOAD_IN 1 #define CMD_RELOAD_OUT 2 static inline u32 proto_get_router_id(struct proto_config *pc) { return pc->router_id ? pc->router_id : pc->global->router_id; } extern list active_proto_list; /* * Each protocol instance runs two different state machines: * * [P] The protocol machine: (implemented inside protocol) * * DOWN ----> START * ^ | * | V * STOP <---- UP * * States: DOWN Protocol is down and it's waiting for the core * requesting protocol start. * START Protocol is waiting for connection with the rest * of the network and it's not willing to accept * packets. When it connects, it goes to UP state. * UP Protocol is up and running. When the network * connection breaks down or the core requests * protocol to be terminated, it goes to STOP state. * STOP Protocol is disconnecting from the network. * After it disconnects, it returns to DOWN state. * * In: start() Called in DOWN state to request protocol startup. * Returns new state: either UP or START (in this * case, the protocol will notify the core when it * finally comes UP). * stop() Called in START, UP or STOP state to request * protocol shutdown. Returns new state: either * DOWN or STOP (in this case, the protocol will * notify the core when it finally comes DOWN). * * Out: proto_notify_state() -- called by protocol instance when * it does any state transition not covered by * return values of start() and stop(). This includes * START->UP (delayed protocol startup), UP->STOP * (spontaneous shutdown) and STOP->DOWN (delayed * shutdown). */ #define PS_DOWN 0 #define PS_START 1 #define PS_UP 2 #define PS_STOP 3 void proto_notify_state(struct proto *p, unsigned state); /* * [F] The feeder machine: (implemented in core routines) * * HUNGRY ----> FEEDING * ^ | * | V * FLUSHING <---- HAPPY * * States: HUNGRY Protocol either administratively down (i.e., * disabled by the user) or temporarily down * (i.e., [P] is not UP) * FEEDING The protocol came up and we're feeding it * initial routes. [P] is UP. * HAPPY The protocol is up and it's receiving normal * routing updates. [P] is UP. * FLUSHING The protocol is down and we're removing its * routes from the table. [P] is STOP or DOWN. * * Normal lifecycle of a protocol looks like: * * HUNGRY/DOWN --> HUNGRY/START --> HUNGRY/UP --> * FEEDING/UP --> HAPPY/UP --> FLUSHING/STOP|DOWN --> * HUNGRY/STOP|DOWN --> HUNGRY/DOWN * * Sometimes, protocol might switch from HAPPY/UP to FEEDING/UP * if it wants to refeed the routes (for example BGP does so * as a result of received ROUTE-REFRESH request). */ #define FS_HUNGRY 0 #define FS_FEEDING 1 #define FS_HAPPY 2 #define FS_FLUSHING 3 /* * Debugging flags */ #define D_STATES 1 /* [core] State transitions */ #define D_ROUTES 2 /* [core] Routes passed by the filters */ #define D_FILTERS 4 /* [core] Routes rejected by the filters */ #define D_IFACES 8 /* [core] Interface events */ #define D_EVENTS 16 /* Protocol events */ #define D_PACKETS 32 /* Packets sent/received */ #ifndef PARSER #define TRACE(flags, msg, args...) \ do { if (p->p.debug & flags) log(L_TRACE "%s: " msg, p->p.name , ## args ); } while(0) #endif /* * MRTDump flags */ #define MD_STATES 1 /* Protocol state changes (BGP4MP_MESSAGE_AS4) */ #define MD_MESSAGES 2 /* Protocol packets (BGP4MP_MESSAGE_AS4) */ /* * Known unique protocol instances as referenced by config routines */ extern struct proto_config *cf_dev_proto; /* * Protocol limits */ #define PLD_RX 0 /* Receive limit */ #define PLD_IN 1 /* Import limit */ #define PLD_OUT 2 /* Export limit */ #define PLD_MAX 3 #define PLA_WARN 1 /* Issue log warning */ #define PLA_BLOCK 2 /* Block new routes */ #define PLA_RESTART 4 /* Force protocol restart */ #define PLA_DISABLE 5 /* Shutdown and disable protocol */ #define PLS_INITIAL 0 /* Initial limit state after protocol start */ #define PLS_ACTIVE 1 /* Limit was hit */ #define PLS_BLOCKED 2 /* Limit is active and blocking new routes */ struct proto_limit { u32 limit; /* Maximum number of prefixes */ byte action; /* Action to take (PLA_*) */ byte state; /* State of limit (PLS_*) */ }; void proto_notify_limit(struct announce_hook *ah, struct proto_limit *l, int dir, u32 rt_count); static inline void proto_reset_limit(struct proto_limit *l) { if (l) l->state = PLS_INITIAL; } /* * Route Announcement Hook */ struct announce_hook { node n; struct rtable *table; struct proto *proto; struct filter *in_filter; /* Input filter */ struct filter *out_filter; /* Output filter */ struct proto_limit *rx_limit; /* Receive limit (for in_keep_filtered) */ struct proto_limit *in_limit; /* Input limit */ struct proto_limit *out_limit; /* Output limit */ struct proto_stats *stats; /* Per-table protocol statistics */ struct announce_hook *next; /* Next hook for the same protocol */ int in_keep_filtered; /* Routes rejected in import filter are kept */ }; struct announce_hook *proto_add_announce_hook(struct proto *p, struct rtable *t, struct proto_stats *stats); struct announce_hook *proto_find_announce_hook(struct proto *p, struct rtable *t); #endif bird-1.4.0/filter/0000755000103200001440000000000012244656136012716 5ustar feelausersbird-1.4.0/filter/test.conf20000644000103200001440000000273711606273733014636 0ustar feelausers/* * This is an example configuration file. */ # Yet another comment router id 62.168.0.1; define xyzzy = (120+10); protocol device { # disabled; # interface "eth*", "ppp*"; } protocol direct { } protocol kernel { disabled; # learn; # Learn all routes from the kernel # scan time 10; # Scan kernel tables every 10 seconds } protocol static { # disabled; import filter { print "ahoj"; print source; if source = RTS_STATIC then { print "It is from static"; } print from; from = 1.2.3.4; print from; print scope; scope = SCOPE_HOST; print scope; if !(scope ~ [ SCOPE_HOST, SCOPE_SITE ]) then { print "Failed in test"; quitbird; } preference = 15; print preference; preference = 29; print preference; rip_metric = 1; print rip_metric; rip_metric = rip_metric + 5; print rip_metric; bgp_community = - empty - ; print "nazdar"; bgp_community = add(bgp_community, (1,2)); print "cau"; bgp_community = add(bgp_community, (2,3)); bgp_community.add((4,5)); print "community = ", bgp_community; bgp_community.delete((2,3)); print "community = ", bgp_community; bgp_community.empty; print "community = ", bgp_community; print "done"; }; route 0.0.0.0/0 via 195.113.31.113; route 62.168.0.0/25 reject; route 1.2.3.4/32 via 195.113.31.124; # route 10.0.0.0/8 reject; # route 10.1.1.0:255.255.255.0 via 62.168.0.3; # route 10.1.2.0:255.255.255.0 via 62.168.0.3; # route 10.1.3.0:255.255.255.0 via 62.168.0.4; # route 10.2.0.0/24 via "arc0"; export all; } bird-1.4.0/filter/test.conf0000644000103200001440000003744412244117701014546 0ustar feelausers /* * This is an example configuration file. * FIXME: add all examples from docs here. */ # Yet another comment router id 62.168.0.1; define xyzzy = (120+10); define '1a-a1' = (20+10); define one = 1; define ten = 10; function onef(int a) { return 1; } function 'mkpair-a'(int a) { return (1, a); } function mkpath(int a; int b) { return [= a b 3 2 1 =]; } function callme(int arg1; int arg2) int local1; int local2; int i; { printn "Function callme called arguments ", arg1, " and ", arg2, ": " ; i = arg2; case arg1 { 11, 1, 111: printn "jedna, "; printn "jedna"; (one+onef(2)): printn "dva, "; printn "jeste jednou dva"; (2+one) .. 5: if arg2 < 3 then printn "tri az pet"; else: printn "neco jineho"; } print; } function fifteen() { print "fifteen called"; return 15; } roa table rl { roa 10.110.0.0/16 max 16 as 1000; roa 10.120.0.0/16 max 24 as 1000; roa 10.130.0.0/16 max 24 as 2000; roa 10.130.128.0/18 max 24 as 3000; } function test_roa() { # cannot be tested in __startup(), sorry print "Testing ROA"; print "Should be true: ", roa_check(rl, 10.10.0.0/16, 1000) = ROA_UNKNOWN, " ", roa_check(rl, 10.0.0.0/8, 1000) = ROA_UNKNOWN, " ", roa_check(rl, 10.110.0.0/16, 1000) = ROA_VALID, " ", roa_check(rl, 10.110.0.0/16, 2000) = ROA_INVALID, " ", roa_check(rl, 10.110.32.0/20, 1000) = ROA_INVALID, " ", roa_check(rl, 10.120.32.0/20, 1000) = ROA_VALID; print "Should be true: ", roa_check(rl, 10.120.32.0/20, 2000) = ROA_INVALID, " ", roa_check(rl, 10.120.32.32/28, 1000) = ROA_INVALID, " ", roa_check(rl, 10.130.130.0/24, 1000) = ROA_INVALID, " ", roa_check(rl, 10.130.130.0/24, 2000) = ROA_VALID, " ", roa_check(rl, 10.130.30.0/24, 3000) = ROA_INVALID, " ", roa_check(rl, 10.130.130.0/24, 3000) = ROA_VALID; } function paths() bgpmask pm1; bgpmask pm2; bgppath p2; clist l; clist l2; eclist el; eclist el2; { pm1 = / 4 3 2 1 /; pm2 = [= 4 3 2 1 =]; print "Testing path masks: ", pm1, " ", pm2; p2 = prepend( + empty +, 1 ); p2 = prepend( p2, 2 ); p2 = prepend( p2, 3 ); p2 = prepend( p2, 4 ); print "Testing paths: ", p2; print "Should be true: ", p2 ~ pm1, " ", p2 ~ pm2, " ", 3 ~ p2, " ", p2 ~ [2, 10..20], " ", p2 ~ [4, 10..20]; print "4 = ", p2.len; p2 = prepend( p2, 5 ); print "Should be false: ", p2 ~ pm1, " ", p2 ~ pm2, " ", 10 ~ p2, " ", p2 ~ [8, 10..20],; print "Should be true: ", p2 ~ / ? 4 3 2 1 /, " ", p2, " ", / ? 4 3 2 1 /; print "Should be true: ", p2 ~ [= * 4 3 * 1 =], " ", p2, " ", [= * 4 3 * 1 =]; print "Should be true: ", p2 ~ [= (3+2) (2*2) 3 2 1 =], " ", p2 ~ mkpath(5, 4); print "Should be true: ", p2.len = 5, " ", p2.first = 5, " ", p2.last = 1; print "5 = ", p2.len; print "Delete 3: ", delete(p2, 3); print "Filter 1-3: ", filter(p2, [1..3]); pm1 = [= 1 2 * 3 4 5 =]; p2 = prepend( + empty +, 5 ); p2 = prepend( p2, 4 ); p2 = prepend( p2, 3 ); p2 = prepend( p2, 3 ); p2 = prepend( p2, 2 ); p2 = prepend( p2, 1 ); print "Should be true: ", p2 ~ pm1, " ", p2, " ", pm1; print "Delete 3: ", delete(p2, 3); print "Delete 4-5: ", delete(p2, [4..5]); l = - empty -; print "Should be false in this special case: ", l ~ [(*,*)]; l = add( l, (one,2) ); print "Should be always true: ", l ~ [(*,*)]; l = add( l, (2,one+2) ); print "Community list (1,2) (2,3) ", l; print "Should be true: ", (2,3) ~ l, " ", l ~ [(1,*)], " ", l ~ [(2,3)]," ", l ~ [(2,2..3)], " ", l ~ [(1,1..2)], " ", l ~ [(1,1)..(1,2)]; l = add( l, (2,5) ); l = add( l, (5,one) ); l = add( l, (6,one) ); l = add( l, (one,one) ); l = delete( l, [(5,1),(6,one),(one,1)] ); l = delete( l, [(5,one),(6,one)] ); l = filter( l, [(1,*)] ); print "Community list (1,2) ", l; print "Should be false: ", (2,3) ~ l, " ", l ~ [(2,*)], " ", l ~ [(one,3..6)]; print "Should be always true: ", l ~ [(*,*)]; l = add( l, (3,one) ); l = add( l, (one+one+one,one+one) ); l = add( l, (3,3) ); l = add( l, (3,4) ); l = add( l, (3,5) ); l2 = filter( l, [(3,*)] ); l = delete( l, [(3,2..4)] ); print "Community list (1,2) (3,1) (3,5) ", l, " len: ", l.len; l = add( l, (3,2) ); l = add( l, (4,5) ); print "Community list (1,2) (3,1) (3,2) (3,5) (4,5) ", l, " len: ", l.len; print "Should be true: ", l ~ [(*,2)], " ", l ~ [(*,5)], " ", l ~ [(*, one)]; print "Should be false: ", l ~ [(*,3)], " ", l ~ [(*,(one+6))], " ", l ~ [(*, (one+one+one))]; l = delete( l, [(*,(one+onef(3)))] ); l = delete( l, [(*,(4+one))] ); print "Community list (3,1) ", l; l = delete( l, [(*,(onef(5)))] ); print "Community list empty ", l; l2 = add( l2, (3,6) ); l = filter( l2, [(3,1..4)] ); l2 = filter( l2, [(3,3..6)] ); print "clist A (1..4): ", l; print "clist B (3..6): ", l2; print "clist A union B: ", add( l2, l ); print "clist A isect B: ", filter( l, l2 ); print "clist A \ B: ", delete( l, l2 ); el = -- empty --; el = add(el, (rt, 10, 20)); el = add(el, (ro, 10.20.30.40, 100)); el = add(el, (ro, 11.21.31.41.mask(16), 200)); print "EC list (rt, 10, 20) (ro, 10.20.30.40, 100) (ro, 11.21.0.0, 200):"; print el; print "EC len: ", el.len; el = delete(el, (rt, 10, 20)); el = delete(el, (rt, 10, 30)); el = add(el, (unknown 2, ten, 1)); el = add(el, (unknown 5, ten, 1)); el = add(el, (rt, ten, one+one)); el = add(el, (rt, 10, 3)); el = add(el, (rt, 10, 4)); el = add(el, (rt, 10, 5)); el = add(el, (generic, 0x2000a, 3*ten)); el = delete(el, [(rt, 10, 2..ten)]); print "EC list (ro, 10.20.30.40, 100) (ro, 11.21.0.0, 200) (rt, 10, 1) (unknown 0x5, 10, 1) (rt, 10, 30):"; print el; el = filter(el, [(rt, 10, *)]); print "EC list (rt, 10, 1) (rt, 10, 30): ", el; print "Testing EC list, true: ", (rt, 10, 1) ~ el, " ", el ~ [(rt, 10, ten..40)]; print "Testing EC list, false: ", (rt, 10, 20) ~ el, " ", (ro, 10.20.30.40, 100) ~ el, " ", el ~ [(rt, 10, 35..40)], " ", el ~ [(ro, 10, *)]; el = add(el, (rt, 10, 40)); el2 = filter(el, [(rt, 10, 20..40)] ); el2 = add(el2, (rt, 10, 50)); print "eclist A (1,30,40): ", el; print "eclist B (30,40,50): ", el2; print "eclist A union B: ", add( el2, el ); print "eclist A isect B: ", filter( el, el2 ); print "eclist A \ B: ", delete( el, el2 ); # test_roa(); } function bla() { print "fifteen called"; return 15; } define four=4; define onetwo=1.2.3.4; function __test1() { if source ~ [ RTS_BGP, RTS_STATIC ] then { # ospf_metric1 = 65535; # ospf_metric2 = 1000; ospf_tag = 0x12345678; accept; } reject; } function __test2() { if source ~ [ RTS_BGP, RTS_STATIC ] then { # ospf_metric1 = 65535; # ospf_metric2 = 1000; ospf_tag = 0x12345678; accept; } reject; } function test_pxset(prefix set pxs) { print pxs; print " must be true: ", 10.0.0.0/8 ~ pxs, ",", 10.0.0.0/10 ~ pxs, ",", 10.0.0.0/12 ~ pxs, ",", 20.0.0.0/24 ~ pxs, ",", 20.0.40.0/24 ~ pxs, ",", 20.0.0.0/26 ~ pxs, ",", 20.0.100.0/26 ~ pxs, ",", 20.0.0.0/28 ~ pxs, ",", 20.0.255.0/28 ~ pxs; print " must be false: ", 10.0.0.0/7 ~ pxs, ",", 10.0.0.0/13 ~ pxs, ",", 10.0.0.0/16 ~ pxs, ",", 20.0.0.0/16 ~ pxs, ",", 20.0.0.0/23 ~ pxs, ",", 20.0.0.0/29 ~ pxs, ",", 11.0.0.0/10 ~ pxs, ",", 20.1.0.0/26 ~ pxs; } function test_undef(int a) int b; { if a = 3 then b = 4; print "Defined: ", a, " ", b, " ", defined(b); } define is1 = [ one, (2+1), (6-one), 8, 11, 15, 17, 19]; define is2 = [(17+2), 17, 15, 11, 8, 5, 3, 2]; define is3 = [5, 17, 2, 11, 8, 15, 3, 19]; define pxs2 = [ 10.0.0.0/16{8,12}, 20.0.0.0/16{24,28} ]; define ecs2 = [(rt, ten, (one+onef(0))*10), (ro, 100000, 100..200), (rt, 12345, *)]; function __startup() int i; bool b; prefix px; ip p; pair pp; quad qq; ec cc; int set is; pair set ps; ec set ecs; ip set ips; prefix set pxs; string st; { print "1a-a1 = 30: ", '1a-a1'; print "Testing filter language:"; i = four; i = 12*100 + 60/2 + i; i = ( i + 0 ); print " arithmetics: 1234 = ", i; printn " if statements "; print "what happens here?"; printn "."; if (i = 4) then { print "*** FAIL: if 0"; quitbird; } else printn "."; # if !(i = 3) then { print "*** FAIL: if 0"; quitbird; } else printn "."; if 1234 = i then printn "."; else { print "*** FAIL: if 1 else"; } # if 1 <= 1 then printn "."; else { print "*** FAIL: test 3"; } if 1234 < 1234 then { print "*** FAIL: test 4"; quitbird; } else print "ok"; is = [ 2, 3, 4, 7..11 ]; print "must be true: ", 1 = 1, " ", 1 != (0,1), " ", 1 != "a", " ", +empty+ = +empty+, " ", -empty- = -empty-, " ", --empty-- = --empty-- , " ", [1,4..10,20] = [1,4..10,20] , " ", [ 10.0.0.0/8{ 15 , 17 } ] = [ 10.0.0.0/8{ 15 , 17 } ]; print "must be false: ", 1 != 1, " ", 1 = (0,1), " ", 1 = "a", " ", +empty+ = -empty-, " ", -empty- = --empty--, " ", --empty-- = +empty+ , " ", [1,2] = [1,3], " ", [ 10.0.0.0/8{ 15 , 17 } ] = [ 11.0.0.0/8{ 15 , 17 } ]; print " must be true: ", 1.2.0.0/16 ~ [ 1.0.0.0/8{ 15 , 17 } ]; print " data types; must be true: ", 1.2.3.4 = 1.2.3.4, ",", 1 ~ [1,2,3], ",", 5 ~ [1..20], ",", 10 ~ is, ",", 2 ~ [ 1, 2, 3 ], ",", 5 ~ [ 4 .. 7 ], ",", 1.2.3.4 ~ [ 1.2.3.3..1.2.3.5 ], ",", 1.2.3.4 ~ 1.0.0.0/8, ",", 1.0.0.0/8 ~ 1.0.0.0/8, ",", 1.0.0.0/8 ~ [ 1.0.0.0/8+ ]; print " must be true: ", true && true, ",", true || false, ",", ! false && ! false && true, ",", 1 < 2 && 1 != 3, ",", true && true && ! false, ",", true || 1+"a", ",", !(false && 1+"a"); print " must be true: ", defined(1), ",", defined(1.2.3.4), ",", 1 != 2, ",", 1 <= 2; print " data types: must be false: ", 1 ~ [ 2, 3, 4 ], ",", 5 ~ is, ",", 1.2.3.4 ~ [ 1.2.3.3, 1.2.3.5 ], ",", (1,2) > (2,2), ",", (1,1) > (1,1), ",", 1.0.0.0/9 ~ [ 1.0.0.0/8- ], ",", 1.2.0.0/17 ~ [ 1.0.0.0/8{ 15 , 16 } ], ",", true && false; print " must be true: ", 1 ~ is1, " ", 3 ~ is1, " ", 5 ~ is1; print " must be true: ", (one+2) ~ is1, " ", 2 ~ is2, " ", 2 ~ is3; print " must be false: ", 4 ~ is1, " ", 4 ~ is2, " ", 4 ~ is3; print " must be false: ", 10 ~ is1, " ", 10 ~ is2, " ", 10 ~ is3; print " must be true: ", 15 ~ is1, " ", 15 ~ is2, " ", 15 ~ is3; print " must be false: ", 18 ~ is1, " ", 18 ~ is2, " ", 18 ~ is3; print " must be true: ", 19 ~ is1, " ", 19 ~ is2, " ", 19 ~ is3; print " must be false: ", 20 ~ is1, " ", 20 ~ is2, " ", 20 ~ is3; px = 1.2.0.0/18; print "Testing prefixes: 1.2.0.0/18 = ", px; print " must be true: ", 192.168.0.0/16 ~ 192.168.0.0/16, " ", 192.168.0.0/17 ~ 192.168.0.0/16, " ", 192.168.254.0/24 ~ 192.168.0.0/16; print " must be false: ", 192.168.0.0/15 ~ 192.168.0.0/16, " ", 192.160.0.0/17 ~ 192.168.0.0/16; p = 127.1.2.3; print "Testing mask : 127.0.0.0 = ", p.mask(8); pp = (1, 2); print "Testing pairs: (1,2) = ", (1,2), " = ", pp, " = ", (1,1+1), " = ", 'mkpair-a'(2); print " must be true: ", (1,2) = (1,1+1); print "Testing enums: ", RTS_DUMMY, " ", RTS_STATIC, " ", ", true: ", RTS_STATIC ~ [RTS_STATIC, RTS_DEVICE], ", false: ", RTS_BGP ~ [RTS_STATIC, RTS_DEVICE]; ps = [(1,(one+one)), (3,4)..(4,8), (5,*), (6,3..6)]; print "Pair set: ", ps; print "Testing pair set, true: ", pp ~ ps, " ", (3,5) ~ ps, " ", (4,1) ~ ps, " ", (5,4) ~ ps, " ", (5,65535) ~ ps, " ", (6,4) ~ ps, " ", (3, 10000) ~ ps; print "Testing pair set, false: ", (3,3) ~ ps, " ", (4,9) ~ ps, " ", (4,65535) ~ ps, " ", (6,2) ~ ps, " ", (6,6+one) ~ ps, " ", ((one+6),2) ~ ps, " ", (1,1) ~ ps; ps = [(20..150, 200..300), (50100..50200, 1000..50000), (*, 5+5)]; print "Pair set: .. too long .."; print "Testing pair set, true: ", (100,200) ~ ps, " ", (150,300) ~ ps, " ", (50180,1200) ~ ps, " ", (50110,49000) ~ ps, " ", (0,10) ~ ps, " ", (64000,10) ~ ps; print "Testing pair set, false: ", (20,199) ~ ps, " ", (151,250) ~ ps, " ", (50050,2000) ~ ps, " ", (50150,50050) ~ ps, " ", (10,9) ~ ps, " ", (65535,11) ~ ps ; qq = 1.2.3.4; print "Testinq quad: 1.2.3.4 = ", qq, ", true: ", qq = 1.2.3.4, " ", qq ~ [1.2.3.4, 5.6.7.8], ", false: ", qq = 4.3.2.1, " ", qq ~ [1.2.1.1, 1.2.3.5]; cc = (rt, 12345, 200000); print "Testing EC: (rt, 12345, 200000) = ", cc; print "Testing EC: (ro, 100000, 20000) = ", (ro, 100000, 20000); print "Testing EC: (rt, 10.20.30.40, 20000) = ", (rt, 10.20.30.40, 20000); print " true: ", cc = (rt, 12345, 200000), " ", cc < (rt, 12345, 200010), ", false: ", cc = (rt, 12346, 200000), " ", cc = (ro, 12345, 200000), " ", cc > (rt, 12345, 200010); ecs = [(rt, ten, (one+onef(0))*10), (ro, 100000, 100..200), (rt, 12345, *)]; print "EC set: ", ecs; print "EC set: ", ecs2; print "Testing EC set, true: ", (rt, 10, 20) ~ ecs, " ", (ro, 100000, 100) ~ ecs, " ", (ro, 100000, 200) ~ ecs, " ", (rt, 12345, 0) ~ ecs, " ", cc ~ ecs, " ", (rt, 12345, 4000000) ~ ecs; print "Testing EC set, false: ", (ro, 10, 20) ~ ecs, " ", (rt, 10, 21) ~ ecs, " ", (ro, 100000, 99) ~ ecs, " ", (ro, 12345, 10) ~ ecs, " ", (rt, 12346, 0) ~ ecs, " ", (ro, 0.1.134.160, 150) ~ ecs; st = "Hello"; print "Testing string: ", st, " true: ", st ~ "Hell*", " false: ", st ~ "ell*"; b = true; print "Testing bool: ", b, ", ", !b; if ( b = true ) then print "Testing bool comparison b = true: ", b; else { print "*** FAIL: TRUE test failed" ; quitbird; } ips = [ 1.1.1.0 .. 1.1.1.255, 1.2.2.2]; print "Testing IP sets: "; print ips; print " must be true: ", 1.1.1.0 ~ ips, ",", 1.1.1.100 ~ ips, ",", 1.2.2.2 ~ ips; print " must be false: ", 1.1.0.255 ~ ips, ",", 1.1.2.0 ~ ips, ",", 1.2.2.3 ~ ips, ",", 192.168.1.1 ~ ips; pxs = [ 1.2.0.0/16, 1.4.0.0/16+]; print "Testing prefix sets: "; print pxs; print " must be true: ", 1.2.0.0/16 ~ pxs, ",", 1.4.0.0/16 ~ pxs, ",", 1.4.0.0/18 ~ pxs, ",", 1.4.0.0/32 ~ pxs; print " must be false: ", 1.1.0.0/16 ~ pxs, ",", 1.3.0.0/16 ~ pxs, ",", 1.2.0.0/15 ~ pxs, ",", 1.2.0.0/17 ~ pxs, ",", 1.2.0.0/32 ~ pxs, ",", 1.4.0.0/15 ~ pxs; test_pxset(pxs2); test_pxset([ 10.0.0.0/16{8,12}, 20.0.0.0/16{24,28} ]); print "What will this do? ", [ 1, 2, 1, 1, 1, 3, 4, 1, 1, 1, 5 ]; print "Testing functions..."; callme ( 1, 2 ); callme ( 2, 2 ); callme ( 2, 2 ); callme ( 3, 2 ); callme ( 4, 4 ); callme ( 7, 2 ); i = fifteen(); print "Testing function calls: 15 = ", i; paths(); print "1.2.3.4 = ", onetwo; i = 4200000000; print "4200000000 = ", i, " false: ", i = 4200000000, " ", i > 4100000000, " false: ", i > 4250000000; test_undef(2); test_undef(3); test_undef(2); print "Testing include"; include "test.conf.inc"; print "done"; quitbird; # print "*** FAIL: this is unreachable"; } filter testf int j; { print "Heya, filtering route to ", net.ip, " prefixlen ", net.len, " source ", source; print "This route was from ", from; j = 7; j = 17; if rip_metric > 15 then { reject "RIP Metric is more than infinity"; } rip_metric = 14; unset(rip_metric); accept "ok I take that"; } eval __startup(); bird-1.4.0/filter/test.conf.inc0000644000103200001440000000012212010156274015274 0ustar feelausers print "Entering include"; print "Should be 2: ", 1+1; print "Leaving include"; bird-1.4.0/filter/trie.c0000644000103200001440000002055612244117701014023 0ustar feelausers/* * Filters: Trie for prefix sets * * Copyright 2009 Ondrej Zajicek * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Trie for prefix sets * * We use a (compressed) trie to represent prefix sets. Every node * in the trie represents one prefix (&addr/&plen) and &plen also * indicates the index of the bit in the address that is used to * branch at the node. If we need to represent just a set of * prefixes, it would be simple, but we have to represent a * set of prefix patterns. Each prefix pattern consists of * &ppaddr/&pplen and two integers: &low and &high, and a prefix * &paddr/&plen matches that pattern if the first MIN(&plen, &pplen) * bits of &paddr and &ppaddr are the same and &low <= &plen <= &high. * * We use a bitmask (&accept) to represent accepted prefix lengths * at a node. As there are 33 prefix lengths (0..32 for IPv4), but * there is just one prefix of zero length in the whole trie so we * have &zero flag in &f_trie (indicating whether the trie accepts * prefix 0.0.0.0/0) as a special case, and &accept bitmask * represents accepted prefix lengths from 1 to 32. * * There are two cases in prefix matching - a match when the length * of the prefix is smaller that the length of the prefix pattern, * (&plen < &pplen) and otherwise. The second case is simple - we * just walk through the trie and look at every visited node * whether that prefix accepts our prefix length (&plen). The * first case is tricky - we don't want to examine every descendant * of a final node, so (when we create the trie) we have to propagate * that information from nodes to their ascendants. * * Suppose that we have two masks (M1 and M2) for a node. Mask M1 * represents accepted prefix lengths by just the node and mask M2 * represents accepted prefix lengths by the node or any of its * descendants. Therefore M2 is a bitwise or of M1 and children's * M2 and this is a maintained invariant during trie building. * Basically, when we want to match a prefix, we walk through the trie, * check mask M1 for our prefix length and when we came to * final node, we check mask M2. * * There are two differences in the real implementation. First, * we use a compressed trie so there is a case that we skip our * final node (if it is not in the trie) and we came to node that * is either extension of our prefix, or completely out of path * In the first case, we also have to check M2. * * Second, we really need not to maintain two separate bitmasks. * Checks for mask M1 are always larger than &applen and we need * just the first &pplen bits of mask M2 (if trie compression * hadn't been used it would suffice to know just $applen-th bit), * so we have to store them together in &accept mask - the first * &pplen bits of mask M2 and then mask M1. * * There are four cases when we walk through a trie: * * - we are in NULL * - we are out of path (prefixes are inconsistent) * - we are in the wanted (final) node (node length == &plen) * - we are beyond the end of path (node length > &plen) * - we are still on path and keep walking (node length < &plen) * * The walking code in trie_match_prefix() is structured according to * these cases. */ #include "nest/bird.h" #include "lib/string.h" #include "conf/conf.h" #include "filter/filter.h" /** * f_new_trie * * Allocates and returns a new empty trie. */ struct f_trie * f_new_trie(linpool *lp) { struct f_trie * ret; ret = lp_allocz(lp, sizeof(struct f_trie)); ret->lp = lp; return ret; } static inline struct f_trie_node * new_node(struct f_trie *t, int plen, ip_addr paddr, ip_addr pmask, ip_addr amask) { struct f_trie_node *n = lp_allocz(t->lp, sizeof(struct f_trie_node)); n->plen = plen; n->addr = paddr; n->mask = pmask; n->accept = amask; return n; } static inline void attach_node(struct f_trie_node *parent, struct f_trie_node *child) { parent->c[ipa_getbit(child->addr, parent->plen) ? 1 : 0] = child; } /** * trie_add_prefix * @t: trie to add to * @px: prefix address * @plen: prefix length * @l: prefix lower bound * @h: prefix upper bound * * Adds prefix (prefix pattern) @px/@plen to trie @t. @l and @h are lower * and upper bounds on accepted prefix lengths, both inclusive. * 0 <= l, h <= 32 (128 for IPv6). */ void trie_add_prefix(struct f_trie *t, ip_addr px, int plen, int l, int h) { if (l == 0) t->zero = 1; else l--; if (h < plen) plen = h; ip_addr amask = ipa_xor(ipa_mkmask(l), ipa_mkmask(h)); ip_addr pmask = ipa_mkmask(plen); ip_addr paddr = ipa_and(px, pmask); struct f_trie_node *o = NULL; struct f_trie_node *n = &t->root; while(n) { ip_addr cmask = ipa_and(n->mask, pmask); if (ipa_compare(ipa_and(paddr, cmask), ipa_and(n->addr, cmask))) { /* We are out of path - we have to add branching node 'b' between node 'o' and node 'n', and attach new node 'a' as the other child of 'b'. */ int blen = ipa_pxlen(paddr, n->addr); ip_addr bmask = ipa_mkmask(blen); ip_addr baddr = ipa_and(px, bmask); /* Merge accept masks from children to get accept mask for node 'b' */ ip_addr baccm = ipa_and(ipa_or(amask, n->accept), bmask); struct f_trie_node *a = new_node(t, plen, paddr, pmask, amask); struct f_trie_node *b = new_node(t, blen, baddr, bmask, baccm); attach_node(o, b); attach_node(b, n); attach_node(b, a); return; } if (plen < n->plen) { /* We add new node 'a' between node 'o' and node 'n' */ amask = ipa_or(amask, ipa_and(n->accept, pmask)); struct f_trie_node *a = new_node(t, plen, paddr, pmask, amask); attach_node(o, a); attach_node(a, n); return; } if (plen == n->plen) { /* We already found added node in trie. Just update accept mask */ n->accept = ipa_or(n->accept, amask); return; } /* Update accept mask part M2 and go deeper */ n->accept = ipa_or(n->accept, ipa_and(amask, n->mask)); /* n->plen < plen and plen <= 32 (128) */ o = n; n = n->c[ipa_getbit(paddr, n->plen) ? 1 : 0]; } /* We add new tail node 'a' after node 'o' */ struct f_trie_node *a = new_node(t, plen, paddr, pmask, amask); attach_node(o, a); } /** * trie_match * @t: trie * @px: prefix address * @plen: prefix length * * Tries to find a matching prefix pattern in the trie such that * prefix @px/@plen matches that prefix pattern. Returns 1 if there * is such prefix pattern in the trie. */ int trie_match_prefix(struct f_trie *t, ip_addr px, int plen) { ip_addr pmask = ipa_mkmask(plen); ip_addr paddr = ipa_and(px, pmask); if (plen == 0) return t->zero; int plentest = plen - 1; struct f_trie_node *n = &t->root; while(n) { ip_addr cmask = ipa_and(n->mask, pmask); /* We are out of path */ if (ipa_compare(ipa_and(paddr, cmask), ipa_and(n->addr, cmask))) return 0; /* Check accept mask */ if (ipa_getbit(n->accept, plentest)) return 1; /* We finished trie walk and still no match */ if (plen <= n->plen) return 0; /* Choose children */ n = n->c[(ipa_getbit(paddr, n->plen)) ? 1 : 0]; } return 0; } static int trie_node_same(struct f_trie_node *t1, struct f_trie_node *t2) { if ((t1 == NULL) && (t2 == NULL)) return 1; if ((t1 == NULL) || (t2 == NULL)) return 0; if ((t1->plen != t2->plen) || (! ipa_equal(t1->addr, t2->addr)) || (! ipa_equal(t1->accept, t2->accept))) return 0; return trie_node_same(t1->c[0], t2->c[0]) && trie_node_same(t1->c[1], t2->c[1]); } /** * trie_same * @t1: first trie to be compared * @t2: second one * * Compares two tries and returns 1 if they are same */ int trie_same(struct f_trie *t1, struct f_trie *t2) { return (t1->zero == t2->zero) && trie_node_same(&t1->root, &t2->root); } static void trie_node_format(struct f_trie_node *t, buffer *buf) { if (t == NULL) return; if (ipa_nonzero(t->accept)) buffer_print(buf, "%I/%d{%I}, ", t->addr, t->plen, t->accept); trie_node_format(t->c[0], buf); trie_node_format(t->c[1], buf); } /** * trie_format * @t: trie to be formatted * @buf: destination buffer * * Prints the trie to the supplied buffer. */ void trie_format(struct f_trie *t, buffer *buf) { buffer_puts(buf, "["); if (t->zero) buffer_print(buf, "%I/%d", IPA_NONE, 0); trie_node_format(&t->root, buf); /* Undo last separator */ if (buf->pos[-1] != '[') buf->pos -= 2; buffer_puts(buf, "]"); } bird-1.4.0/filter/Doc0000644000103200001440000000004611606273733013345 0ustar feelausersH Filters S filter.c S tree.c S trie.cbird-1.4.0/filter/tree.c0000644000103200001440000000673612244117701014023 0ustar feelausers/* * Filters: utility functions * * Copyright 1998 Pavel Machek * * Can be freely distributed and used under the terms of the GNU GPL. */ #include "lib/alloca.h" #include "nest/bird.h" #include "conf/conf.h" #include "filter/filter.h" /** * find_tree * @t: tree to search in * @val: value to find * * Search for given value in the tree. I relies on fact that sorted tree is populated * by &f_val structures (that can be compared by val_compare()). In each node of tree, * either single value (then t->from==t->to) or range is present. * * Both set matching and |switch() { }| construction is implemented using this function, * thus both are as fast as they can be. */ struct f_tree * find_tree(struct f_tree *t, struct f_val val) { if (!t) return NULL; if ((val_compare(t->from, val) != 1) && (val_compare(t->to, val) != -1)) return t; if (val_compare(t->from, val) == -1) return find_tree(t->right, val); else return find_tree(t->left, val); } static struct f_tree * build_tree_rec(struct f_tree **buf, int l, int h) { struct f_tree *n; int pos; if (l >= h) return NULL; pos = (l+h)/2; n = buf[pos]; n->left = build_tree_rec(buf, l, pos); n->right = build_tree_rec(buf, pos+1, h); return n; } static int tree_compare(const void *p1, const void *p2) { return val_compare((* (struct f_tree **) p1)->from, (* (struct f_tree **) p2)->from); } /** * build_tree * @from: degenerated tree (linked by @tree->left) to be transformed into form suitable for find_tree() * * Transforms denerated tree into balanced tree. */ struct f_tree * build_tree(struct f_tree *from) { struct f_tree *tmp, *root; struct f_tree **buf; int len, i; if (from == NULL) return NULL; len = 0; for (tmp = from; tmp != NULL; tmp = tmp->left) len++; if (len <= 1024) buf = alloca(len * sizeof(struct f_tree *)); else buf = malloc(len * sizeof(struct f_tree *)); /* Convert a degenerated tree into an sorted array */ i = 0; for (tmp = from; tmp != NULL; tmp = tmp->left) buf[i++] = tmp; qsort(buf, len, sizeof(struct f_tree *), tree_compare); root = build_tree_rec(buf, 0, len); if (len > 1024) free(buf); return root; } struct f_tree * f_new_tree(void) { struct f_tree * ret; ret = cfg_alloc(sizeof(struct f_tree)); ret->left = ret->right = NULL; ret->from.type = ret->to.type = T_VOID; ret->from.val.i = ret->to.val.i = 0; ret->data = NULL; return ret; } /** * same_tree * @t1: first tree to be compared * @t2: second one * * Compares two trees and returns 1 if they are same */ int same_tree(struct f_tree *t1, struct f_tree *t2) { if ((!!t1) != (!!t2)) return 0; if (!t1) return 1; if (val_compare(t1->from, t2->from)) return 0; if (val_compare(t1->to, t2->to)) return 0; if (!same_tree(t1->left, t2->left)) return 0; if (!same_tree(t1->right, t2->right)) return 0; if (!i_same(t1->data, t2->data)) return 0; return 1; } static void tree_node_format(struct f_tree *t, buffer *buf) { if (t == NULL) return; tree_node_format(t->left, buf); val_format(t->from, buf); if (val_compare(t->from, t->to) != 0) { buffer_puts(buf, ".."); val_format(t->to, buf); } buffer_puts(buf, ", "); tree_node_format(t->right, buf); } void tree_format(struct f_tree *t, buffer *buf) { buffer_puts(buf, "["); tree_node_format(t, buf); /* Undo last separator */ if (buf->pos[-1] != '[') buf->pos -= 2; buffer_puts(buf, "]"); } bird-1.4.0/filter/config.Y0000644000103200001440000006023012244117701014304 0ustar feelausers/* * BIRD - filters * * Copyright 1998--2000 Pavel Machek * * Can be freely distributed and used under the terms of the GNU GPL. * FIXME: priority of ! should be lower */ CF_HDR CF_DEFINES #define P(a,b) ((a << 8) | b) static inline u32 pair(u32 a, u32 b) { return (a << 16) | b; } static inline u32 pair_a(u32 p) { return p >> 16; } static inline u32 pair_b(u32 p) { return p & 0xFFFF; } /* * Sets and their items are during parsing handled as lists, linked * through left ptr. The first item in a list also contains a pointer * to the last item in a list (right ptr). For convenience, even items * are handled as one-item lists. Lists are merged by f_merge_items(). */ static inline struct f_tree * f_new_item(struct f_val from, struct f_val to) { struct f_tree *t = f_new_tree(); t->right = t; t->from = from; t->to = to; return t; } static inline struct f_tree * f_merge_items(struct f_tree *a, struct f_tree *b) { if (!a) return b; a->right->left = b; a->right = b->right; b->right = NULL; return a; } static inline struct f_tree * f_new_pair_item(int fa, int ta, int fb, int tb) { struct f_tree *t = f_new_tree(); t->right = t; t->from.type = t->to.type = T_PAIR; t->from.val.i = pair(fa, fb); t->to.val.i = pair(ta, tb); return t; } static inline struct f_tree * f_new_pair_set(int fa, int ta, int fb, int tb) { struct f_tree *lst = NULL; int i; if ((fa == ta) || ((fb == 0) && (tb == 0xFFFF))) return f_new_pair_item(fa, ta, fb, tb); if ((ta < fa) || (tb < fb)) cf_error( "From value cannot be higher that To value in pair sets"); for (i = fa; i <= ta; i++) lst = f_merge_items(lst, f_new_pair_item(i, i, fb, tb)); return lst; } #define EC_ALL 0xFFFFFFFF static struct f_tree * f_new_ec_item(u32 kind, u32 ipv4_used, u32 key, u32 vf, u32 vt) { u64 fm, to; if (ipv4_used || (key >= 0x10000)) { check_u16(vf); if (vt == EC_ALL) vt = 0xFFFF; else check_u16(vt); } if (kind == EC_GENERIC) { fm = ec_generic(key, vf); to = ec_generic(key, vt); } else if (ipv4_used) { fm = ec_ip4(kind, key, vf); to = ec_ip4(kind, key, vt); } else if (key < 0x10000) { fm = ec_as2(kind, key, vf); to = ec_as2(kind, key, vt); } else { fm = ec_as4(kind, key, vf); to = ec_as4(kind, key, vt); } struct f_tree *t = f_new_tree(); t->right = t; t->from.type = t->to.type = T_EC; t->from.val.ec = fm; t->to.val.ec = to; return t; } static inline struct f_inst * f_generate_empty(struct f_inst *dyn) { struct f_inst *e = f_new_inst(); e->code = 'E'; switch (dyn->aux & EAF_TYPE_MASK) { case EAF_TYPE_AS_PATH: e->aux = T_PATH; break; case EAF_TYPE_INT_SET: e->aux = T_CLIST; break; case EAF_TYPE_EC_SET: e->aux = T_ECLIST; break; default: cf_error("Can't empty that attribute"); } dyn->code = P('e','S'); dyn->a1.p = e; return dyn; } static inline struct f_inst * f_generate_dpair(struct f_inst *t1, struct f_inst *t2) { struct f_inst *rv; if ((t1->code == 'c') && (t2->code == 'c')) { if ((t1->aux != T_INT) || (t2->aux != T_INT)) cf_error( "Can't operate with value of non-integer type in pair constructor"); check_u16(t1->a2.i); check_u16(t2->a2.i); rv = f_new_inst(); rv->code = 'c'; rv->aux = T_PAIR; rv->a2.i = pair(t1->a2.i, t2->a2.i); } else { rv = f_new_inst(); rv->code = P('m', 'p'); rv->a1.p = t1; rv->a2.p = t2; } return rv; } static inline struct f_inst * f_generate_ec(u16 kind, struct f_inst *tk, struct f_inst *tv) { struct f_inst *rv; int c1 = 0, c2 = 0, ipv4_used = 0; u32 key = 0, val2 = 0; if (tk->code == 'c') { c1 = 1; if (tk->aux == T_INT) { ipv4_used = 0; key = tk->a2.i; } else if (tk->aux == T_QUAD) { ipv4_used = 1; key = tk->a2.i; } else cf_error("Can't operate with key of non-integer/IPv4 type in EC constructor"); } #ifndef IPV6 /* IP->Quad implicit conversion */ else if (tk->code == 'C') { c1 = 1; struct f_val *val = tk->a1.p; if (val->type == T_INT) { ipv4_used = 0; key = val->val.i; } else if (val->type == T_QUAD) { ipv4_used = 1; key = val->val.i; } else if (val->type == T_IP) { ipv4_used = 1; key = ipa_to_u32(val->val.px.ip); } else cf_error("Can't operate with key of non-integer/IPv4 type in EC constructor"); } #endif if (tv->code == 'c') { if (tv->aux != T_INT) cf_error("Can't operate with value of non-integer type in EC constructor"); c2 = 1; val2 = tv->a2.i; } if (c1 && c2) { u64 ec; if (kind == EC_GENERIC) { ec = ec_generic(key, val2); } else if (ipv4_used) { check_u16(val2); ec = ec_ip4(kind, key, val2); } else if (key < 0x10000) { ec = ec_as2(kind, key, val2); } else { check_u16(val2); ec = ec_as4(kind, key, val2); } NEW_F_VAL; rv = f_new_inst(); rv->code = 'C'; rv->a1.p = val; val->type = T_EC; val->val.ec = ec; } else { rv = f_new_inst(); rv->code = P('m','c'); rv->aux = kind; rv->a1.p = tk; rv->a2.p = tv; } return rv; } CF_DECLS CF_KEYWORDS(FUNCTION, PRINT, PRINTN, UNSET, RETURN, ACCEPT, REJECT, ERROR, QUITBIRD, INT, BOOL, IP, PREFIX, PAIR, QUAD, EC, SET, STRING, BGPMASK, BGPPATH, CLIST, ECLIST, IF, THEN, ELSE, CASE, TRUE, FALSE, RT, RO, UNKNOWN, GENERIC, FROM, GW, NET, MASK, PROTO, SOURCE, SCOPE, CAST, DEST, IFNAME, IFINDEX, PREFERENCE, LEN, DEFINED, ADD, DELETE, CONTAINS, RESET, PREPEND, FIRST, LAST, MATCH, ROA_CHECK, EMPTY, FILTER, WHERE, EVAL) %nonassoc THEN %nonassoc ELSE %type term block cmds cmds_int cmd function_body constant constructor print_one print_list var_list var_listn dynamic_attr static_attr function_call symbol bgp_path_expr %type filter filter_body where_filter %type type break_command pair_expr ec_kind %type pair_atom ec_expr %type pair_item ec_item set_item switch_item set_items switch_items switch_body %type fprefix_set %type set_atom switch_atom fprefix fprefix_s fipa %type decls declsn one_decl function_params %type bgp_path bgp_path_tail1 bgp_path_tail2 CF_GRAMMAR CF_ADDTO(conf, filter_def) filter_def: FILTER SYM { $2 = cf_define_symbol($2, SYM_FILTER, NULL); cf_push_scope( $2 ); } filter_body { $2->def = $4; $4->name = $2->name; DBG( "We have new filter defined (%s)\n", $2->name ); cf_pop_scope(); } ; CF_ADDTO(conf, filter_eval) filter_eval: EVAL term { f_eval_int($2); } ; type: INT { $$ = T_INT; } | BOOL { $$ = T_BOOL; } | IP { $$ = T_IP; } | PREFIX { $$ = T_PREFIX; } | PAIR { $$ = T_PAIR; } | QUAD { $$ = T_QUAD; } | EC { $$ = T_EC; } | STRING { $$ = T_STRING; } | BGPMASK { $$ = T_PATH_MASK; } | BGPPATH { $$ = T_PATH; } | CLIST { $$ = T_CLIST; } | ECLIST { $$ = T_ECLIST; } | type SET { switch ($1) { case T_INT: case T_PAIR: case T_QUAD: case T_EC: case T_IP: $$ = T_SET; break; case T_PREFIX: $$ = T_PREFIX_SET; break; default: cf_error( "You can't create sets of this type." ); } } ; one_decl: type SYM { struct f_val * val = cfg_alloc(sizeof(struct f_val)); val->type = T_VOID; $2 = cf_define_symbol($2, SYM_VARIABLE | $1, val); DBG( "New variable %s type %x\n", $2->name, $1 ); $2->aux2 = NULL; $$=$2; } ; /* Decls with ';' at the end */ decls: /* EMPTY */ { $$ = NULL; } | one_decl ';' decls { $$ = $1; $$->aux2 = $3; } ; /* Declarations that have no ';' at the end. */ declsn: one_decl { $$ = $1; } | one_decl ';' declsn { $$ = $1; $$->aux2 = $3; } ; filter_body: function_body { struct filter *f = cfg_alloc(sizeof(struct filter)); f->name = NULL; f->root = $1; $$ = f; } ; filter: SYM { if ($1->class != SYM_FILTER) cf_error("No such filter."); $$ = $1->def; } | filter_body ; where_filter: WHERE term { /* Construct 'IF term THEN ACCEPT; REJECT;' */ struct filter *f = cfg_alloc(sizeof(struct filter)); struct f_inst *i, *acc, *rej; acc = f_new_inst(); /* ACCEPT */ acc->code = P('p',','); acc->a1.p = NULL; acc->a2.i = F_ACCEPT; rej = f_new_inst(); /* REJECT */ rej->code = P('p',','); rej->a1.p = NULL; rej->a2.i = F_REJECT; i = f_new_inst(); /* IF */ i->code = '?'; i->a1.p = $2; i->a2.p = acc; i->next = rej; f->name = NULL; f->root = i; $$ = f; } ; function_params: '(' declsn ')' { DBG( "Have function parameters\n" ); $$=$2; } | '(' ')' { $$=NULL; } ; function_body: decls '{' cmds '}' { if ($1) { /* Prepend instruction to clear local variables */ $$ = f_new_inst(); $$->code = P('c','v'); $$->a1.p = $1; $$->next = $3; } else $$ = $3; } ; CF_ADDTO(conf, function_def) function_def: FUNCTION SYM { DBG( "Beginning of function %s\n", $2->name ); $2 = cf_define_symbol($2, SYM_FUNCTION, NULL); cf_push_scope($2); } function_params function_body { $2->def = $5; $2->aux2 = $4; DBG("Hmm, we've got one function here - %s\n", $2->name); cf_pop_scope(); } ; /* Programs */ /* Hack: $$ of cmds_int is the last node. $$->next of cmds_int is temporary used for the first node */ cmds: /* EMPTY */ { $$ = NULL; } | cmds_int { $$ = $1->next; $1->next = NULL; } ; cmds_int: cmd { $$ = $1; $1->next = $1; } | cmds_int cmd { $$ = $2; $2->next = $1->next ; $1->next = $2; } ; block: cmd { $$=$1; } | '{' cmds '}' { $$=$2; } ; /* * Complex types, their bison value is struct f_val */ fipa: IPA %prec PREFIX_DUMMY { $$.type = T_IP; $$.val.px.ip = $1; } ; /* * Set constants. They are also used in switch cases. We use separate * nonterminals for switch (set_atom/switch_atom, set_item/switch_item ...) * to elude a collision between symbol (in expr) in set_atom and symbol * as a function call in switch case cmds. */ set_atom: expr { $$.type = T_INT; $$.val.i = $1; } | RTRID { $$.type = T_QUAD; $$.val.i = $1; } | fipa { $$ = $1; } | ENUM { $$.type = pair_a($1); $$.val.i = pair_b($1); } ; switch_atom: NUM { $$.type = T_INT; $$.val.i = $1; } | '(' term ')' { $$.type = T_INT; $$.val.i = f_eval_int($2); } | RTRID { $$.type = T_QUAD; $$.val.i = $1; } | fipa { $$ = $1; } | ENUM { $$.type = pair_a($1); $$.val.i = pair_b($1); } ; pair_expr: term { $$ = f_eval_int($1); check_u16($$); } pair_atom: pair_expr { $$ = pair($1, $1); } | pair_expr DDOT pair_expr { $$ = pair($1, $3); } | '*' { $$ = 0xFFFF; } ; pair_item: '(' pair_atom ',' pair_atom ')' { $$ = f_new_pair_set(pair_a($2), pair_b($2), pair_a($4), pair_b($4)); } | '(' pair_atom ',' pair_atom ')' DDOT '(' pair_expr ',' pair_expr ')' { /* Hack: $2 and $4 should be pair_expr, but that would cause shift/reduce conflict */ if ((pair_a($2) != pair_b($2)) || (pair_a($4) != pair_b($4))) cf_error("syntax error"); $$ = f_new_pair_item(pair_b($2), $8, pair_b($4), $10); } ; ec_expr: term { $$ = f_eval_int($1); } ec_kind: RT { $$ = EC_RT; } | RO { $$ = EC_RO; } | UNKNOWN NUM { $$ = $2; } | GENERIC { $$ = EC_GENERIC; } ; ec_item: '(' ec_kind ',' ec_expr ',' ec_expr ')' { $$ = f_new_ec_item($2, 0, $4, $6, $6); } | '(' ec_kind ',' ec_expr ',' ec_expr DDOT ec_expr ')' { $$ = f_new_ec_item($2, 0, $4, $6, $8); } | '(' ec_kind ',' ec_expr ',' '*' ')' { $$ = f_new_ec_item($2, 0, $4, 0, EC_ALL); } ; set_item: pair_item | ec_item | set_atom { $$ = f_new_item($1, $1); } | set_atom DDOT set_atom { $$ = f_new_item($1, $3); } ; switch_item: pair_item | ec_item | switch_atom { $$ = f_new_item($1, $1); } | switch_atom DDOT switch_atom { $$ = f_new_item($1, $3); } ; set_items: set_item | set_items ',' set_item { $$ = f_merge_items($1, $3); } ; switch_items: switch_item | switch_items ',' switch_item { $$ = f_merge_items($1, $3); } ; fprefix_s: IPA '/' NUM %prec '/' { if (($3 < 0) || ($3 > MAX_PREFIX_LENGTH) || !ip_is_prefix($1, $3)) cf_error("Invalid network prefix: %I/%d.", $1, $3); $$.type = T_PREFIX; $$.val.px.ip = $1; $$.val.px.len = $3; } ; fprefix: fprefix_s { $$ = $1; } | fprefix_s '+' { $$ = $1; $$.val.px.len |= LEN_PLUS; } | fprefix_s '-' { $$ = $1; $$.val.px.len |= LEN_MINUS; } | fprefix_s '{' NUM ',' NUM '}' { if (! ((0 <= $3) && ($3 <= $5) && ($5 <= MAX_PREFIX_LENGTH))) cf_error("Invalid prefix pattern range: {%d, %d}.", $3, $5); $$ = $1; $$.val.px.len |= LEN_RANGE | ($3 << 16) | ($5 << 8); } ; fprefix_set: fprefix { $$ = f_new_trie(cfg_mem); trie_add_fprefix($$, &($1.val.px)); } | fprefix_set ',' fprefix { $$ = $1; trie_add_fprefix($$, &($3.val.px)); } ; switch_body: /* EMPTY */ { $$ = NULL; } | switch_body switch_items ':' cmds { /* Fill data fields */ struct f_tree *t; for (t = $2; t; t = t->left) t->data = $4; $$ = f_merge_items($1, $2); } | switch_body ELSECOL cmds { struct f_tree *t = f_new_tree(); t->from.type = t->to.type = T_VOID; t->right = t; t->data = $3; $$ = f_merge_items($1, t); } ; /* CONST '(' expr ')' { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_INT; $$->a2.i = $3; } */ bgp_path_expr: symbol { $$ = $1; } | '(' term ')' { $$ = $2; } ; bgp_path: PO bgp_path_tail1 PC { $$ = $2; } | '/' bgp_path_tail2 '/' { $$ = $2; } ; bgp_path_tail1: NUM bgp_path_tail1 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $2; $$->kind = PM_ASN; $$->val = $1; } | '*' bgp_path_tail1 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $2; $$->kind = PM_ASTERISK; $$->val = 0; } | '?' bgp_path_tail1 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $2; $$->kind = PM_QUESTION; $$->val = 0; } | bgp_path_expr bgp_path_tail1 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $2; $$->kind = PM_ASN_EXPR; $$->val = (uintptr_t) $1; } | { $$ = NULL; } ; bgp_path_tail2: NUM bgp_path_tail2 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $2; $$->kind = PM_ASN; $$->val = $1; } | '?' bgp_path_tail2 { $$ = cfg_alloc(sizeof(struct f_path_mask)); $$->next = $2; $$->kind = PM_ASTERISK; $$->val = 0; } | { $$ = NULL; } ; constant: NUM { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_INT; $$->a2.i = $1; } | TRUE { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_BOOL; $$->a2.i = 1; } | FALSE { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_BOOL; $$->a2.i = 0; } | TEXT { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_STRING; $$->a2.p = $1; } | fipa { NEW_F_VAL; $$ = f_new_inst(); $$->code = 'C'; $$->a1.p = val; *val = $1; } | fprefix_s {NEW_F_VAL; $$ = f_new_inst(); $$->code = 'C'; $$->a1.p = val; *val = $1; } | RTRID { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_QUAD; $$->a2.i = $1; } | '[' set_items ']' { DBG( "We've got a set here..." ); $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_SET; $$->a2.p = build_tree($2); DBG( "ook\n" ); } | '[' fprefix_set ']' { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_PREFIX_SET; $$->a2.p = $2; } | ENUM { $$ = f_new_inst(); $$->code = 'c'; $$->aux = $1 >> 16; $$->a2.i = $1 & 0xffff; } | bgp_path { NEW_F_VAL; $$ = f_new_inst(); $$->code = 'C'; val->type = T_PATH_MASK; val->val.path_mask = $1; $$->a1.p = val; } ; constructor: '(' term ',' term ')' { $$ = f_generate_dpair($2, $4); } | '(' ec_kind ',' term ',' term ')' { $$ = f_generate_ec($2, $4, $6); } ; /* * Maybe there are no dynamic attributes defined by protocols. * For such cases, we force the dynamic_attr list to contain * at least an invalid token, so it is syntantically correct. */ CF_ADDTO(dynamic_attr, INVALID_TOKEN { $$ = NULL; }) rtadot: /* EMPTY, we are not permitted RTA. prefix */ ; function_call: SYM '(' var_list ')' { struct symbol *sym; struct f_inst *inst = $3; if ($1->class != SYM_FUNCTION) cf_error("You can't call something which is not a function. Really."); DBG("You are calling function %s\n", $1->name); $$ = f_new_inst(); $$->code = P('c','a'); $$->a1.p = inst; $$->a2.p = $1->def; sym = $1->aux2; while (sym || inst) { if (!sym || !inst) cf_error("Wrong number of arguments for function %s.", $1->name); DBG( "You should pass parameter called %s\n", sym->name); inst->a1.p = sym; sym = sym->aux2; inst = inst->next; } } ; symbol: SYM { $$ = f_new_inst(); switch ($1->class & 0xff00) { case SYM_CONSTANT: $$->code = 'C'; break; case SYM_VARIABLE: $$->code = 'V'; break; default: cf_error("%s: variable expected.", $1->name); } $$->a1.p = $1->def; $$->a2.p = $1->name; } static_attr: FROM { $$ = f_new_inst(); $$->aux = T_IP; $$->a2.i = SA_FROM; $$->a1.i = 1; } | GW { $$ = f_new_inst(); $$->aux = T_IP; $$->a2.i = SA_GW; $$->a1.i = 1; } | NET { $$ = f_new_inst(); $$->aux = T_PREFIX; $$->a2.i = SA_NET; } | PROTO { $$ = f_new_inst(); $$->aux = T_STRING; $$->a2.i = SA_PROTO; } | SOURCE { $$ = f_new_inst(); $$->aux = T_ENUM_RTS; $$->a2.i = SA_SOURCE; } | SCOPE { $$ = f_new_inst(); $$->aux = T_ENUM_SCOPE; $$->a2.i = SA_SCOPE; $$->a1.i = 1; } | CAST { $$ = f_new_inst(); $$->aux = T_ENUM_RTC; $$->a2.i = SA_CAST; } | DEST { $$ = f_new_inst(); $$->aux = T_ENUM_RTD; $$->a2.i = SA_DEST; $$->a1.i = 1; } | IFNAME { $$ = f_new_inst(); $$->aux = T_STRING; $$->a2.i = SA_IFNAME; } | IFINDEX { $$ = f_new_inst(); $$->aux = T_INT; $$->a2.i = SA_IFINDEX; } ; term: '(' term ')' { $$ = $2; } | term '+' term { $$ = f_new_inst(); $$->code = '+'; $$->a1.p = $1; $$->a2.p = $3; } | term '-' term { $$ = f_new_inst(); $$->code = '-'; $$->a1.p = $1; $$->a2.p = $3; } | term '*' term { $$ = f_new_inst(); $$->code = '*'; $$->a1.p = $1; $$->a2.p = $3; } | term '/' term { $$ = f_new_inst(); $$->code = '/'; $$->a1.p = $1; $$->a2.p = $3; } | term AND term { $$ = f_new_inst(); $$->code = '&'; $$->a1.p = $1; $$->a2.p = $3; } | term OR term { $$ = f_new_inst(); $$->code = '|'; $$->a1.p = $1; $$->a2.p = $3; } | term '=' term { $$ = f_new_inst(); $$->code = P('=','='); $$->a1.p = $1; $$->a2.p = $3; } | term NEQ term { $$ = f_new_inst(); $$->code = P('!','='); $$->a1.p = $1; $$->a2.p = $3; } | term '<' term { $$ = f_new_inst(); $$->code = '<'; $$->a1.p = $1; $$->a2.p = $3; } | term LEQ term { $$ = f_new_inst(); $$->code = P('<','='); $$->a1.p = $1; $$->a2.p = $3; } | term '>' term { $$ = f_new_inst(); $$->code = '<'; $$->a1.p = $3; $$->a2.p = $1; } | term GEQ term { $$ = f_new_inst(); $$->code = P('<','='); $$->a1.p = $3; $$->a2.p = $1; } | term '~' term { $$ = f_new_inst(); $$->code = '~'; $$->a1.p = $1; $$->a2.p = $3; } | '!' term { $$ = f_new_inst(); $$->code = '!'; $$->a1.p = $2; } | DEFINED '(' term ')' { $$ = f_new_inst(); $$->code = P('d','e'); $$->a1.p = $3; } | symbol { $$ = $1; } | constant { $$ = $1; } | constructor { $$ = $1; } | PREFERENCE { $$ = f_new_inst(); $$->code = 'P'; } | rtadot static_attr { $$ = $2; $$->code = 'a'; } | rtadot dynamic_attr { $$ = $2; $$->code = P('e','a'); } | term '.' IP { $$ = f_new_inst(); $$->code = P('c','p'); $$->a1.p = $1; $$->aux = T_IP; } | term '.' LEN { $$ = f_new_inst(); $$->code = 'L'; $$->a1.p = $1; } | term '.' MASK '(' term ')' { $$ = f_new_inst(); $$->code = P('i','M'); $$->a1.p = $1; $$->a2.p = $5; } | term '.' FIRST { $$ = f_new_inst(); $$->code = P('a','f'); $$->a1.p = $1; } | term '.' LAST { $$ = f_new_inst(); $$->code = P('a','l'); $$->a1.p = $1; } /* Communities */ /* This causes one shift/reduce conflict | rtadot dynamic_attr '.' ADD '(' term ')' { } | rtadot dynamic_attr '.' DELETE '(' term ')' { } | rtadot dynamic_attr '.' CONTAINS '(' term ')' { } | rtadot dynamic_attr '.' RESET{ } */ | '+' EMPTY '+' { $$ = f_new_inst(); $$->code = 'E'; $$->aux = T_PATH; } | '-' EMPTY '-' { $$ = f_new_inst(); $$->code = 'E'; $$->aux = T_CLIST; } | '-' '-' EMPTY '-' '-' { $$ = f_new_inst(); $$->code = 'E'; $$->aux = T_ECLIST; } | PREPEND '(' term ',' term ')' { $$ = f_new_inst(); $$->code = P('A','p'); $$->a1.p = $3; $$->a2.p = $5; } | ADD '(' term ',' term ')' { $$ = f_new_inst(); $$->code = P('C','a'); $$->a1.p = $3; $$->a2.p = $5; $$->aux = 'a'; } | DELETE '(' term ',' term ')' { $$ = f_new_inst(); $$->code = P('C','a'); $$->a1.p = $3; $$->a2.p = $5; $$->aux = 'd'; } | FILTER '(' term ',' term ')' { $$ = f_new_inst(); $$->code = P('C','a'); $$->a1.p = $3; $$->a2.p = $5; $$->aux = 'f'; } | ROA_CHECK '(' SYM ')' { $$ = f_generate_roa_check($3, NULL, NULL); } | ROA_CHECK '(' SYM ',' term ',' term ')' { $$ = f_generate_roa_check($3, $5, $7); } /* | term '.' LEN { $$->code = P('P','l'); } */ /* function_call is inlined here */ | SYM '(' var_list ')' { struct symbol *sym; struct f_inst *inst = $3; if ($1->class != SYM_FUNCTION) cf_error("You can't call something which is not a function. Really."); DBG("You are calling function %s\n", $1->name); $$ = f_new_inst(); $$->code = P('c','a'); $$->a1.p = inst; $$->a2.p = $1->def; sym = $1->aux2; while (sym || inst) { if (!sym || !inst) cf_error("Wrong number of arguments for function %s.", $1->name); DBG( "You should pass parameter called %s\n", sym->name); inst->a1.p = sym; sym = sym->aux2; inst = inst->next; } } ; break_command: QUITBIRD { $$ = F_QUITBIRD; } | ACCEPT { $$ = F_ACCEPT; } | REJECT { $$ = F_REJECT; } | ERROR { $$ = F_ERROR; } | PRINT { $$ = F_NOP; } | PRINTN { $$ = F_NONL; } ; print_one: term { $$ = f_new_inst(); $$->code = 'p'; $$->a1.p = $1; $$->a2.p = NULL; } ; print_list: /* EMPTY */ { $$ = NULL; } | print_one { $$ = $1; } | print_one ',' print_list { if ($1) { $1->next = $3; $$ = $1; } else $$ = $3; } ; var_listn: term { $$ = f_new_inst(); $$->code = 's'; $$->a1.p = NULL; $$->a2.p = $1; $$->next = NULL; } | term ',' var_listn { $$ = f_new_inst(); $$->code = 's'; $$->a1.p = NULL; $$->a2.p = $1; $$->next = $3; } ; var_list: /* EMPTY */ { $$ = NULL; } | var_listn { $$ = $1; } ; cmd: IF term THEN block { $$ = f_new_inst(); $$->code = '?'; $$->a1.p = $2; $$->a2.p = $4; } | IF term THEN block ELSE block { struct f_inst *i = f_new_inst(); i->code = '?'; i->a1.p = $2; i->a2.p = $4; $$ = f_new_inst(); $$->code = '?'; $$->a1.p = i; $$->a2.p = $6; } | SYM '=' term ';' { $$ = f_new_inst(); DBG( "Ook, we'll set value\n" ); if (($1->class & ~T_MASK) != SYM_VARIABLE) cf_error( "You may set only variables." ); $$->code = 's'; $$->a1.p = $1; $$->a2.p = $3; } | RETURN term ';' { $$ = f_new_inst(); DBG( "Ook, we'll return the value\n" ); $$->code = 'r'; $$->a1.p = $2; } | rtadot dynamic_attr '=' term ';' { $$ = $2; $$->code = P('e','S'); $$->a1.p = $4; } | rtadot static_attr '=' term ';' { $$ = $2; if (!$$->a1.i) cf_error( "This static attribute is read-only."); $$->code = P('a','S'); $$->a1.p = $4; } | PREFERENCE '=' term ';' { $$ = f_new_inst(); $$->code = P('P','S'); $$->a1.p = $3; } | UNSET '(' rtadot dynamic_attr ')' ';' { $$ = $4; $$->aux = EAF_TYPE_UNDEF | EAF_TEMP; $$->code = P('e','S'); $$->a1.p = NULL; } | break_command print_list ';' { $$ = f_new_inst(); $$->code = P('p',','); $$->a1.p = $2; $$->a2.i = $1; } | function_call ';' { $$ = $1; } | CASE term '{' switch_body '}' { $$ = f_new_inst(); $$->code = P('S','W'); $$->a1.p = $2; $$->a2.p = build_tree( $4 ); } | rtadot dynamic_attr '.' EMPTY ';' { $$ = f_generate_empty($2); } | rtadot dynamic_attr '.' PREPEND '(' term ')' ';' { $$ = f_generate_complex( P('A','p'), 'x', $2, $6 ); } | rtadot dynamic_attr '.' ADD '(' term ')' ';' { $$ = f_generate_complex( P('C','a'), 'a', $2, $6 ); } | rtadot dynamic_attr '.' DELETE '(' term ')' ';' { $$ = f_generate_complex( P('C','a'), 'd', $2, $6 ); } | rtadot dynamic_attr '.' FILTER '(' term ')' ';' { $$ = f_generate_complex( P('C','a'), 'f', $2, $6 ); } ; CF_END bird-1.4.0/filter/filter.h0000644000103200001440000001205412244656136014356 0ustar feelausers/* * BIRD Internet Routing Daemon -- Filters * * (c) 1999 Pavel Machek * * Can be freely distributed and used under the terms of the GNU GPL. */ #ifndef _BIRD_FILT_H_ #define _BIRD_FILT_H_ #include "lib/resource.h" #include "lib/ip.h" #include "nest/route.h" #include "nest/attrs.h" struct f_inst { /* Instruction */ struct f_inst *next; /* Structure is 16 bytes, anyway */ u16 code; u16 aux; union { int i; void *p; } a1; union { int i; void *p; } a2; int lineno; }; #define arg1 a1.p #define arg2 a2.p /* Not enough fields in f_inst for three args used by roa_check() */ struct f_inst_roa_check { struct f_inst i; struct roa_table_config *rtc; }; struct f_prefix { ip_addr ip; int len; #define LEN_MASK 0xff #define LEN_PLUS 0x1000000 #define LEN_MINUS 0x2000000 #define LEN_RANGE 0x4000000 /* If range then prefix must be in range (len >> 16 & 0xff, len >> 8 & 0xff) */ }; struct f_val { int type; union { uint i; u64 ec; /* ip_addr ip; Folded into prefix */ struct f_prefix px; char *s; struct f_tree *t; struct f_trie *ti; struct adata *ad; struct f_path_mask *path_mask; } val; }; struct filter { char *name; struct f_inst *root; }; struct f_inst *f_new_inst(void); struct f_inst *f_new_dynamic_attr(int type, int f_type, int code); /* Type as core knows it, type as filters know it, and code of dynamic attribute */ struct f_tree *f_new_tree(void); struct f_inst *f_generate_complex(int operation, int operation_aux, struct f_inst *dyn, struct f_inst *argument); struct f_inst *f_generate_roa_check(struct symbol *sym, struct f_inst *prefix, struct f_inst *asn); struct f_tree *build_tree(struct f_tree *); struct f_tree *find_tree(struct f_tree *t, struct f_val val); int same_tree(struct f_tree *t1, struct f_tree *t2); void tree_format(struct f_tree *t, buffer *buf); struct f_trie *f_new_trie(linpool *lp); void trie_add_prefix(struct f_trie *t, ip_addr px, int plen, int l, int h); int trie_match_prefix(struct f_trie *t, ip_addr px, int plen); int trie_same(struct f_trie *t1, struct f_trie *t2); void trie_format(struct f_trie *t, buffer *buf); void fprefix_get_bounds(struct f_prefix *px, int *l, int *h); static inline void trie_add_fprefix(struct f_trie *t, struct f_prefix *px) { int l, h; fprefix_get_bounds(px, &l, &h); trie_add_prefix(t, px->ip, px->len & LEN_MASK, l, h); } static inline int trie_match_fprefix(struct f_trie *t, struct f_prefix *px) { return trie_match_prefix(t, px->ip, px->len & LEN_MASK); } struct ea_list; struct rte; int f_run(struct filter *filter, struct rte **rte, struct ea_list **tmp_attrs, struct linpool *tmp_pool, int flags); struct f_val f_eval(struct f_inst *expr, struct linpool *tmp_pool); uint f_eval_int(struct f_inst *expr); u32 f_eval_asn(struct f_inst *expr); char *filter_name(struct filter *filter); int filter_same(struct filter *new, struct filter *old); int i_same(struct f_inst *f1, struct f_inst *f2); int val_compare(struct f_val v1, struct f_val v2); int val_same(struct f_val v1, struct f_val v2); void val_format(struct f_val v, buffer *buf); #define F_NOP 0 #define F_NONL 1 #define F_ACCEPT 2 /* Need to preserve ordering: accepts < rejects! */ #define F_REJECT 3 #define F_ERROR 4 #define F_QUITBIRD 5 #define FILTER_ACCEPT NULL #define FILTER_REJECT ((void *) 1) /* Type numbers must be in 0..0xff range */ #define T_MASK 0xff /* Internal types */ /* Do not use type of zero, that way we'll see errors easier. */ #define T_VOID 1 /* User visible types, which fit in int */ #define T_INT 0x10 #define T_BOOL 0x11 #define T_PAIR 0x12 /* Notice that pair is stored as integer: first << 16 | second */ #define T_QUAD 0x13 /* Put enumerational types in 0x30..0x3f range */ #define T_ENUM_LO 0x30 #define T_ENUM_HI 0x3f #define T_ENUM_RTS 0x30 #define T_ENUM_BGP_ORIGIN 0x31 #define T_ENUM_SCOPE 0x32 #define T_ENUM_RTC 0x33 #define T_ENUM_RTD 0x34 #define T_ENUM_ROA 0x35 /* new enums go here */ #define T_ENUM_EMPTY 0x3f /* Special hack for atomic_aggr */ #define T_ENUM T_ENUM_LO ... T_ENUM_HI /* Bigger ones */ #define T_IP 0x20 #define T_PREFIX 0x21 #define T_STRING 0x22 #define T_PATH_MASK 0x23 /* mask for BGP path */ #define T_PATH 0x24 /* BGP path */ #define T_CLIST 0x25 /* Community list */ #define T_ECLIST 0x26 /* Extended community list */ #define T_EC 0x27 /* Extended community value, u64 */ #define T_RETURN 0x40 #define T_SET 0x80 #define T_PREFIX_SET 0x81 #define SA_FROM 1 #define SA_GW 2 #define SA_NET 3 #define SA_PROTO 4 #define SA_SOURCE 5 #define SA_SCOPE 6 #define SA_CAST 7 #define SA_DEST 8 #define SA_IFNAME 9 #define SA_IFINDEX 10 struct f_tree { struct f_tree *left, *right; struct f_val from, to; void *data; }; struct f_trie_node { ip_addr addr, mask, accept; int plen; struct f_trie_node *c[2]; }; struct f_trie { linpool *lp; int zero; struct f_trie_node root; }; #define NEW_F_VAL struct f_val * val; val = cfg_alloc(sizeof(struct f_val)); #define FF_FORCE_TMPATTR 1 /* Force all attributes to be temporary */ #endif bird-1.4.0/filter/test6.conf0000644000103200001440000001166311606273733014640 0ustar feelausers/* * This is an example configuration file. * FIXME: add all examples from docs here. */ # Yet another comment router id 62.168.0.1; define xyzzy = (120+10); function callme(int arg1; int arg2) int local1; int local2; int i; { printn "Function callme called arguments ", arg1, " and ", arg2, ":" ; i = arg2; case arg1 { 2: print "dva"; print "jeste jednou dva"; 3 .. 5: print "tri az pet"; else: print "neco jineho"; } } function fifteen() { print "fifteen called"; return 15; } function paths() bgpmask pm1; bgpmask pm2; bgppath p2; clist l; { pm1 = / 4 3 2 1 /; pm2 = [= 4 3 2 1 =]; print "Testing path masks: ", pm1, " ", pm2; p2 = prepend( + empty +, 1 ); p2 = prepend( p2, 2 ); p2 = prepend( p2, 3 ); p2 = prepend( p2, 4 ); print "Testing paths: ", p2; print "Should be true: ", p2 ~ pm1, " ", p2 ~ pm2; print "4 = ", p2.len; p2 = prepend( p2, 5 ); print "Should be false: ", p2 ~ pm1, " ", p2 ~ pm2; print "Should be true: ", p2 ~ / ? 4 3 2 1 /, " ", p2, " ", / ? 4 3 2 1 /; print "Should be true: ", p2 ~ [= * 4 3 * 1 =], " ", p2, " ", [= * 4 3 * 1 =]; print "5 = ", p2.len; pm1 = [= 1 2 * 3 4 5 =]; p2 = prepend( + empty +, 5 ); p2 = prepend( p2, 4 ); p2 = prepend( p2, 3 ); p2 = prepend( p2, 3 ); p2 = prepend( p2, 2 ); p2 = prepend( p2, 1 ); print "Should be true: ", p2 ~ pm1, " ", p2, " ", pm1; l = - empty -; l = add( l, (1,2) ); l = add( l, (2,3) ); print "Community list (1,2) (2,3) ", l; print "Should be true: ", (2,3) ~ l; l = delete( l, (2,3) ); print "Community list (1,2) ", l; print "Should be false: ", (2,3) ~ l; } function bla() { print "fifteen called"; return 15; } define four=4; function test_pxset(prefix set pxs) { print " must be true: ", 1000::/8 ~ pxs, ",", 1000::/10 ~ pxs, ",", 1000::/12 ~ pxs, ",", 2000::/24 ~ pxs, ",", 2000:4000::/24 ~ pxs, ",", 2000::/26 ~ pxs, ",", 2000:8000::/26 ~ pxs, ",", 2000::/28 ~ pxs, ",", 2000:FFF0::/28 ~ pxs; print " must be false: ", 1000::/7 ~ pxs, ",", 1000::/13 ~ pxs, ",", 1000::/16 ~ pxs, ",", 2000::/16 ~ pxs, ",", 2000::/23 ~ pxs, ",", 2000::/29 ~ pxs, ",", 1100::/10 ~ pxs, ",", 2010::/26 ~ pxs; } function __startup() int i; bool b; prefix px; ip p; pair pp; int set is; prefix set pxs; string s; { print "Testing filter language:"; i = four; i = 12*100 + 60/2 + i; i = ( i + 0 ); print " arithmetics: 1234 = ", i; printn " if statements "; print "what happens here?"; printn "."; if (i = 4) then { print "*** FAIL: if 0"; quitbird; } else printn "."; # if !(i = 3) then { print "*** FAIL: if 0"; quitbird; } else printn "."; if 1234 = i then printn "."; else { print "*** FAIL: if 1 else"; } # if 1 <= 1 then printn "."; else { print "*** FAIL: test 3"; } if 1234 < 1234 then { print "*** FAIL: test 4"; quitbird; } else print "ok"; is = [ 2, 3, 4, 7..11 ]; print " must be true: ", 1180::/16 ~ [ 1100::/8{ 15 , 17 } ]; print " data types; must be true: ", 12::34 = 12::34, ",", 1 ~ [1,2,3], ",", 5 ~ [1..20], ",", 10 ~ is, ",", 2 ~ [ 1, 2, 3 ], ",", 5 ~ [ 4 .. 7 ], ",", 12::34 ~ [ 12::33..12::35 ], ",", 1020::34 ~ 1000::/8, ",", 1000::/8 ~ 1000::/8, ",", 1000::/8 ~ [ 1000::/8+ ]; print " must be true: ", true && true, ",", true || false; # print " must be true: ", defined(1), ",", defined(1.2.3.4), ",", 1 != 2, ",", 1 <= 2; print " data types: must be false: ", 1 ~ [ 2, 3, 4 ], ",", 5 ~ is, ",", 12::34 ~ [ 12::33, 12::35 ], ",", (1,2) > (2,2), ",", (1,1) > (1,1), ",", 1000::/9 ~ [ 1000::/8- ], ",", 1000::/17 ~ [ 1000::/8{ 15 , 16 } ], ",", true && false; px = 1020::/18; print "Testing prefixes: 1020::/18 = ", px; p = 1234:5678::; print "Testing mask : 1200:: = ", p.mask(8); pp = (1, 2); print "Testing pairs: (1,2) = ", (1,2), " = ", pp; print "Testing enums: ", RTS_DUMMY, " ", RTS_STATIC; s = "Hello"; print "Testing string: ", s, " true: ", s ~ "Hell*", " false: ", s ~ "ell*"; b = true; print "Testing bool: ", b, ", ", !b; pxs = [ 1102::/16, 1104::/16+]; print "Testing prefix sets: "; print pxs; print " must be true: ", 1102::/16 ~ pxs, ",", 1104::/16 ~ pxs, ",", 1104::/18 ~ pxs, ",", 1104::/32 ~ pxs; print " must be false: ", 1101::/16 ~ pxs, ",", 1103::/16 ~ pxs, ",", 1102::/15 ~ pxs, ",", 1102::/17 ~ pxs, ",", 1102::/32 ~ pxs, ",", 1104::/15 ~ pxs; test_pxset([ 1000::/16{8,12}, 2000::/16{24,28} ]); print "What will this do? ", [ 1, 2, 1, 1, 1, 3, 4, 1, 1, 1, 5 ]; print "Testing functions..."; # callme ( 1, 2 ); callme ( 2, 2 ); callme ( 2, 2 ); callme ( 3, 2 ); callme ( 4, 2 ); callme ( 7, 2 ); i = fifteen(); print "Testing function calls: 15 = ", i; paths(); print "done"; quitbird; # print "*** FAIL: this is unreachable"; } filter testf int j; { print "Heya, filtering route to ", net.ip, " prefixlen ", net.len, " source ", source; print "This route was from ", from; j = 7; j = 17; if rip_metric > 15 then { reject "RIP Metric is more than infinity"; } rip_metric = 14; unset(rip_metric); accept "ok I take that"; } eval __startup();bird-1.4.0/filter/f-util.c0000644000103200001440000000355312010156274014255 0ustar feelausers/* * Filters: utility functions * * Copyright 1998 Pavel Machek * * Can be freely distributed and used under the terms of the GNU GPL. */ #include "nest/bird.h" #include "conf/conf.h" #include "filter/filter.h" #define P(a,b) ((a<<8) | b) struct f_inst * f_new_inst(void) { struct f_inst * ret; ret = cfg_alloc(sizeof(struct f_inst)); ret->code = ret->aux = 0; ret->arg1 = ret->arg2 = ret->next = NULL; ret->lineno = ifs->lino; return ret; } struct f_inst * f_new_dynamic_attr(int type, int f_type UNUSED, int code) { /* FIXME: Remove the f_type parameter? */ struct f_inst *f = f_new_inst(); f->aux = type; f->a2.i = code; return f; } /* * Generate set_dynamic( operation( get_dynamic(), argument ) ) */ struct f_inst * f_generate_complex(int operation, int operation_aux, struct f_inst *dyn, struct f_inst *argument) { struct f_inst *set_dyn = f_new_inst(), *oper = f_new_inst(), *get_dyn = dyn; *set_dyn = *get_dyn; get_dyn->code = P('e','a'); oper->code = operation; oper->aux = operation_aux; oper->a1.p = get_dyn; oper->a2.p = argument; set_dyn->code = P('e','S'); set_dyn->a1.p = oper; return set_dyn; } struct f_inst * f_generate_roa_check(struct symbol *sym, struct f_inst *prefix, struct f_inst *asn) { struct f_inst_roa_check *ret = cfg_allocz(sizeof(struct f_inst_roa_check)); ret->i.code = P('R','C'); ret->i.lineno = ifs->lino; ret->i.arg1 = prefix; ret->i.arg2 = asn; /* prefix == NULL <-> asn == NULL */ if ((sym->class != SYM_ROA) || ! sym->def) cf_error("%s is not a ROA table", sym->name); ret->rtc = sym->def; return &ret->i; } char * filter_name(struct filter *filter) { if (!filter) return "ACCEPT"; else if (filter == FILTER_REJECT) return "REJECT"; else if (!filter->name) return "(unnamed)"; else return filter->name; } bird-1.4.0/filter/Makefile0000644000103200001440000000012611606273733014354 0ustar feelauserssource=f-util.c filter.c tree.c trie.c root-rel=../ dir-name=filter include ../Rules bird-1.4.0/filter/filter.c0000644000103200001440000011477112244656136014362 0ustar feelausers/* * Filters: utility functions * * Copyright 1998 Pavel Machek * * Can be freely distributed and used under the terms of the GNU GPL. * */ /** * DOC: Filters * * You can find sources of the filter language in |filter/| * directory. File |filter/config.Y| contains filter grammar and basically translates * the source from user into a tree of &f_inst structures. These trees are * later interpreted using code in |filter/filter.c|. * * A filter is represented by a tree of &f_inst structures, one structure per * "instruction". Each &f_inst contains @code, @aux value which is * usually the data type this instruction operates on and two generic * arguments (@a1, @a2). Some instructions contain pointer(s) to other * instructions in their (@a1, @a2) fields. * * Filters use a &f_val structure for their data. Each &f_val * contains type and value (types are constants prefixed with %T_). Few * of the types are special; %T_RETURN can be or-ed with a type to indicate * that return from a function or from the whole filter should be * forced. Important thing about &f_val's is that they may be copied * with a simple |=|. That's fine for all currently defined types: strings * are read-only (and therefore okay), paths are copied for each * operation (okay too). */ #undef LOCAL_DEBUG #include "nest/bird.h" #include "lib/lists.h" #include "lib/resource.h" #include "lib/socket.h" #include "lib/string.h" #include "lib/unaligned.h" #include "nest/route.h" #include "nest/protocol.h" #include "nest/iface.h" #include "nest/attrs.h" #include "conf/conf.h" #include "filter/filter.h" #define P(a,b) ((a<<8) | b) #define CMP_ERROR 999 static struct adata * adata_empty(struct linpool *pool, int l) { struct adata *res = lp_alloc(pool, sizeof(struct adata) + l); res->length = l; return res; } static void pm_format(struct f_path_mask *p, buffer *buf) { buffer_puts(buf, "[= "); while (p) { switch(p->kind) { case PM_ASN: buffer_print(buf, "%u ", p->val); break; case PM_QUESTION: buffer_puts(buf, "? "); break; case PM_ASTERISK: buffer_puts(buf, "* "); break; case PM_ASN_EXPR: buffer_print(buf, "%u ", f_eval_asn((struct f_inst *) p->val)); break; } p = p->next; } buffer_puts(buf, "=]"); } static inline int uint_cmp(uint i1, uint i2) { return (int)(i1 > i2) - (int)(i1 < i2); } static inline int u64_cmp(u64 i1, u64 i2) { return (int)(i1 > i2) - (int)(i1 < i2); } /** * val_compare - compare two values * @v1: first value * @v2: second value * * Compares two values and returns -1, 0, 1 on <, =, > or CMP_ERROR on * error. Tree module relies on this giving consistent results so * that it can be used for building balanced trees. */ int val_compare(struct f_val v1, struct f_val v2) { int rc; if (v1.type != v2.type) { if (v1.type == T_VOID) /* Hack for else */ return -1; if (v2.type == T_VOID) return 1; #ifndef IPV6 /* IP->Quad implicit conversion */ if ((v1.type == T_QUAD) && (v2.type == T_IP)) return uint_cmp(v1.val.i, ipa_to_u32(v2.val.px.ip)); if ((v1.type == T_IP) && (v2.type == T_QUAD)) return uint_cmp(ipa_to_u32(v1.val.px.ip), v2.val.i); #endif debug( "Types do not match in val_compare\n" ); return CMP_ERROR; } switch (v1.type) { case T_VOID: return 0; case T_ENUM: case T_INT: case T_BOOL: case T_PAIR: case T_QUAD: return uint_cmp(v1.val.i, v2.val.i); case T_EC: return u64_cmp(v1.val.ec, v2.val.ec); case T_IP: return ipa_compare(v1.val.px.ip, v2.val.px.ip); case T_PREFIX: if (rc = ipa_compare(v1.val.px.ip, v2.val.px.ip)) return rc; return uint_cmp(v1.val.px.len, v2.val.px.len); case T_STRING: return strcmp(v1.val.s, v2.val.s); default: return CMP_ERROR; } } static int pm_path_same(struct f_path_mask *m1, struct f_path_mask *m2) { while (m1 && m2) { if ((m1->kind != m2->kind) || (m1->val != m2->val)) return 0; m1 = m1->next; m2 = m2->next; } return !m1 && !m2; } /** * val_same - compare two values * @v1: first value * @v2: second value * * Compares two values and returns 1 if they are same and 0 if not. * Comparison of values of different types is valid and returns 0. */ int val_same(struct f_val v1, struct f_val v2) { int rc; rc = val_compare(v1, v2); if (rc != CMP_ERROR) return !rc; if (v1.type != v2.type) return 0; switch (v1.type) { case T_PATH_MASK: return pm_path_same(v1.val.path_mask, v2.val.path_mask); case T_PATH: case T_CLIST: case T_ECLIST: return adata_same(v1.val.ad, v2.val.ad); case T_SET: return same_tree(v1.val.t, v2.val.t); case T_PREFIX_SET: return trie_same(v1.val.ti, v2.val.ti); default: bug("Invalid type in val_same(): %x", v1.type); } } void fprefix_get_bounds(struct f_prefix *px, int *l, int *h) { *l = *h = px->len & LEN_MASK; if (px->len & LEN_MINUS) *l = 0; else if (px->len & LEN_PLUS) *h = MAX_PREFIX_LENGTH; else if (px->len & LEN_RANGE) { *l = 0xff & (px->len >> 16); *h = 0xff & (px->len >> 8); } } static int clist_set_type(struct f_tree *set, struct f_val *v) { switch (set->from.type) { case T_PAIR: v->type = T_PAIR; return 1; case T_QUAD: #ifndef IPV6 case T_IP: #endif v->type = T_QUAD; return 1; break; default: v->type = T_VOID; return 0; } } static inline int eclist_set_type(struct f_tree *set) { return set->from.type == T_EC; } static int clist_match_set(struct adata *clist, struct f_tree *set) { if (!clist) return 0; struct f_val v; if (!clist_set_type(set, &v)) return CMP_ERROR; u32 *l = (u32 *) clist->data; u32 *end = l + clist->length/4; while (l < end) { v.val.i = *l++; if (find_tree(set, v)) return 1; } return 0; } static int eclist_match_set(struct adata *list, struct f_tree *set) { if (!list) return 0; if (!eclist_set_type(set)) return CMP_ERROR; struct f_val v; u32 *l = int_set_get_data(list); int len = int_set_get_size(list); int i; v.type = T_EC; for (i = 0; i < len; i += 2) { v.val.ec = ec_get(l, i); if (find_tree(set, v)) return 1; } return 0; } static struct adata * clist_filter(struct linpool *pool, struct adata *list, struct f_val set, int pos) { if (!list) return NULL; int tree = (set.type == T_SET); /* 1 -> set is T_SET, 0 -> set is T_CLIST */ struct f_val v; if (tree) clist_set_type(set.val.t, &v); else v.type = T_PAIR; int len = int_set_get_size(list); u32 *l = int_set_get_data(list); u32 tmp[len]; u32 *k = tmp; u32 *end = l + len; while (l < end) { v.val.i = *l++; /* pos && member(val, set) || !pos && !member(val, set), member() depends on tree */ if ((tree ? !!find_tree(set.val.t, v) : int_set_contains(set.val.ad, v.val.i)) == pos) *k++ = v.val.i; } int nl = (k - tmp) * 4; if (nl == list->length) return list; struct adata *res = adata_empty(pool, nl); memcpy(res->data, tmp, nl); return res; } static struct adata * eclist_filter(struct linpool *pool, struct adata *list, struct f_val set, int pos) { if (!list) return NULL; int tree = (set.type == T_SET); /* 1 -> set is T_SET, 0 -> set is T_CLIST */ struct f_val v; int len = int_set_get_size(list); u32 *l = int_set_get_data(list); u32 tmp[len]; u32 *k = tmp; int i; v.type = T_EC; for (i = 0; i < len; i += 2) { v.val.ec = ec_get(l, i); /* pos && member(val, set) || !pos && !member(val, set), member() depends on tree */ if ((tree ? !!find_tree(set.val.t, v) : ec_set_contains(set.val.ad, v.val.ec)) == pos) { *k++ = l[i]; *k++ = l[i+1]; } } int nl = (k - tmp) * 4; if (nl == list->length) return list; struct adata *res = adata_empty(pool, nl); memcpy(res->data, tmp, nl); return res; } /** * val_in_range - implement |~| operator * @v1: element * @v2: set * * Checks if @v1 is element (|~| operator) of @v2. */ static int val_in_range(struct f_val v1, struct f_val v2) { if ((v1.type == T_PATH) && (v2.type == T_PATH_MASK)) return as_path_match(v1.val.ad, v2.val.path_mask); if ((v1.type == T_INT) && (v2.type == T_PATH)) return as_path_contains(v2.val.ad, v1.val.i, 1); if (((v1.type == T_PAIR) || (v1.type == T_QUAD)) && (v2.type == T_CLIST)) return int_set_contains(v2.val.ad, v1.val.i); #ifndef IPV6 /* IP->Quad implicit conversion */ if ((v1.type == T_IP) && (v2.type == T_CLIST)) return int_set_contains(v2.val.ad, ipa_to_u32(v1.val.px.ip)); #endif if ((v1.type == T_EC) && (v2.type == T_ECLIST)) return ec_set_contains(v2.val.ad, v1.val.ec); if ((v1.type == T_STRING) && (v2.type == T_STRING)) return patmatch(v2.val.s, v1.val.s); if ((v1.type == T_IP) && (v2.type == T_PREFIX)) return ipa_in_net(v1.val.px.ip, v2.val.px.ip, v2.val.px.len); if ((v1.type == T_PREFIX) && (v2.type == T_PREFIX)) return net_in_net(v1.val.px.ip, v1.val.px.len, v2.val.px.ip, v2.val.px.len); if ((v1.type == T_PREFIX) && (v2.type == T_PREFIX_SET)) return trie_match_fprefix(v2.val.ti, &v1.val.px); if (v2.type != T_SET) return CMP_ERROR; /* With integrated Quad<->IP implicit conversion */ if ((v1.type == v2.val.t->from.type) || ((IP_VERSION == 4) && (v1.type == T_QUAD) && (v2.val.t->from.type == T_IP))) return !!find_tree(v2.val.t, v1); if (v1.type == T_CLIST) return clist_match_set(v1.val.ad, v2.val.t); if (v1.type == T_ECLIST) return eclist_match_set(v1.val.ad, v2.val.t); if (v1.type == T_PATH) return as_path_match_set(v1.val.ad, v2.val.t); return CMP_ERROR; } /* * val_format - format filter value */ void val_format(struct f_val v, buffer *buf) { char buf2[1024]; switch (v.type) { case T_VOID: buffer_puts(buf, "(void)"); return; case T_BOOL: buffer_puts(buf, v.val.i ? "TRUE" : "FALSE"); return; case T_INT: buffer_print(buf, "%u", v.val.i); return; case T_STRING: buffer_print(buf, "%s", v.val.s); return; case T_IP: buffer_print(buf, "%I", v.val.px.ip); return; case T_PREFIX: buffer_print(buf, "%I/%d", v.val.px.ip, v.val.px.len); return; case T_PAIR: buffer_print(buf, "(%u,%u)", v.val.i >> 16, v.val.i & 0xffff); return; case T_QUAD: buffer_print(buf, "%R", v.val.i); return; case T_EC: ec_format(buf2, v.val.ec); buffer_print(buf, "%s", buf2); return; case T_PREFIX_SET: trie_format(v.val.ti, buf); return; case T_SET: tree_format(v.val.t, buf); return; case T_ENUM: buffer_print(buf, "(enum %x)%u", v.type, v.val.i); return; case T_PATH: as_path_format(v.val.ad, buf2, 1000); buffer_print(buf, "(path %s)", buf2); return; case T_CLIST: int_set_format(v.val.ad, 1, -1, buf2, 1000); buffer_print(buf, "(clist %s)", buf2); return; case T_ECLIST: ec_set_format(v.val.ad, -1, buf2, 1000); buffer_print(buf, "(eclist %s)", buf2); return; case T_PATH_MASK: pm_format(v.val.path_mask, buf); return; default: buffer_print(buf, "[unknown type %x]", v.type); return; } } static struct rte **f_rte; static struct rta *f_old_rta; static struct ea_list **f_tmp_attrs; static struct linpool *f_pool; static struct buffer f_buf; static int f_flags; static inline void f_rte_cow(void) { *f_rte = rte_cow(*f_rte); } /* * rta_cow - prepare rta for modification by filter */ static void f_rta_cow(void) { if ((*f_rte)->attrs->aflags & RTAF_CACHED) { /* Prepare to modify rte */ f_rte_cow(); /* Store old rta to free it later */ f_old_rta = (*f_rte)->attrs; /* * Alloc new rta, do shallow copy and update rte. Fields eattrs * and nexthops of rta are shared with f_old_rta (they will be * copied when the cached rta will be obtained at the end of * f_run()), also the lock of hostentry is inherited (we suppose * hostentry is not changed by filters). */ rta *ra = lp_alloc(f_pool, sizeof(rta)); memcpy(ra, f_old_rta, sizeof(rta)); ra->aflags = 0; (*f_rte)->attrs = ra; } } static struct rate_limit rl_runtime_err; #define runtime(x) do { \ log_rl(&rl_runtime_err, L_ERR "filters, line %d: %s", what->lineno, x); \ res.type = T_RETURN; \ res.val.i = F_ERROR; \ return res; \ } while(0) #define ARG(x,y) \ x = interpret(what->y); \ if (x.type & T_RETURN) \ return x; #define ONEARG ARG(v1, a1.p) #define TWOARGS ARG(v1, a1.p) \ ARG(v2, a2.p) #define TWOARGS_C TWOARGS \ if (v1.type != v2.type) \ runtime( "Can't operate with values of incompatible types" ); #define ACCESS_RTE \ do { if (!f_rte) runtime("No route to access"); } while (0) /** * interpret * @what: filter to interpret * * Interpret given tree of filter instructions. This is core function * of filter system and does all the hard work. * * Each instruction has 4 fields: code (which is instruction code), * aux (which is extension to instruction code, typically type), * arg1 and arg2 - arguments. Depending on instruction, arguments * are either integers, or pointers to instruction trees. Common * instructions like +, that have two expressions as arguments use * TWOARGS macro to get both of them evaluated. * * &f_val structures are copied around, so there are no problems with * memory managment. */ static struct f_val interpret(struct f_inst *what) { struct symbol *sym; struct f_val v1, v2, res, *vp; unsigned u1, u2; int i; u32 as; res.type = T_VOID; if (!what) return res; switch(what->code) { case ',': TWOARGS; break; /* Binary operators */ case '+': TWOARGS_C; switch (res.type = v1.type) { case T_VOID: runtime( "Can't operate with values of type void" ); case T_INT: res.val.i = v1.val.i + v2.val.i; break; default: runtime( "Usage of unknown type" ); } break; case '-': TWOARGS_C; switch (res.type = v1.type) { case T_VOID: runtime( "Can't operate with values of type void" ); case T_INT: res.val.i = v1.val.i - v2.val.i; break; default: runtime( "Usage of unknown type" ); } break; case '*': TWOARGS_C; switch (res.type = v1.type) { case T_VOID: runtime( "Can't operate with values of type void" ); case T_INT: res.val.i = v1.val.i * v2.val.i; break; default: runtime( "Usage of unknown type" ); } break; case '/': TWOARGS_C; switch (res.type = v1.type) { case T_VOID: runtime( "Can't operate with values of type void" ); case T_INT: if (v2.val.i == 0) runtime( "Mother told me not to divide by 0" ); res.val.i = v1.val.i / v2.val.i; break; default: runtime( "Usage of unknown type" ); } break; case '&': case '|': ARG(v1, a1.p); if (v1.type != T_BOOL) runtime( "Can't do boolean operation on non-booleans" ); if (v1.val.i == (what->code == '|')) { res.type = T_BOOL; res.val.i = v1.val.i; break; } ARG(v2, a2.p); if (v2.type != T_BOOL) runtime( "Can't do boolean operation on non-booleans" ); res.type = T_BOOL; res.val.i = v2.val.i; break; case P('m','p'): TWOARGS; if ((v1.type != T_INT) || (v2.type != T_INT)) runtime( "Can't operate with value of non-integer type in pair constructor" ); u1 = v1.val.i; u2 = v2.val.i; if ((u1 > 0xFFFF) || (u2 > 0xFFFF)) runtime( "Can't operate with value out of bounds in pair constructor" ); res.val.i = (u1 << 16) | u2; res.type = T_PAIR; break; case P('m','c'): { TWOARGS; int check, ipv4_used; u32 key, val; if (v1.type == T_INT) { ipv4_used = 0; key = v1.val.i; } else if (v1.type == T_QUAD) { ipv4_used = 1; key = v1.val.i; } #ifndef IPV6 /* IP->Quad implicit conversion */ else if (v1.type == T_IP) { ipv4_used = 1; key = ipa_to_u32(v1.val.px.ip); } #endif else runtime("Can't operate with key of non-integer/IPv4 type in EC constructor"); if (v2.type != T_INT) runtime("Can't operate with value of non-integer type in EC constructor"); val = v2.val.i; res.type = T_EC; if (what->aux == EC_GENERIC) { check = 0; res.val.ec = ec_generic(key, val); } else if (ipv4_used) { check = 1; res.val.ec = ec_ip4(what->aux, key, val); } else if (key < 0x10000) { check = 0; res.val.ec = ec_as2(what->aux, key, val); } else { check = 1; res.val.ec = ec_as4(what->aux, key, val); } if (check && (val > 0xFFFF)) runtime("Can't operate with value out of bounds in EC constructor"); break; } /* Relational operators */ #define COMPARE(x) \ TWOARGS; \ i = val_compare(v1, v2); \ if (i==CMP_ERROR) \ runtime( "Can't compare values of incompatible types" ); \ res.type = T_BOOL; \ res.val.i = (x); \ break; #define SAME(x) \ TWOARGS; \ i = val_same(v1, v2); \ res.type = T_BOOL; \ res.val.i = (x); \ break; case P('!','='): SAME(!i); case P('=','='): SAME(i); case '<': COMPARE(i==-1); case P('<','='): COMPARE(i!=1); case '!': ONEARG; if (v1.type != T_BOOL) runtime( "Not applied to non-boolean" ); res = v1; res.val.i = !res.val.i; break; case '~': TWOARGS; res.type = T_BOOL; res.val.i = val_in_range(v1, v2); if (res.val.i == CMP_ERROR) runtime( "~ applied on unknown type pair" ); res.val.i = !!res.val.i; break; case P('d','e'): ONEARG; res.type = T_BOOL; res.val.i = (v1.type != T_VOID); break; /* Set to indirect value, a1 = variable, a2 = value */ case 's': ARG(v2, a2.p); sym = what->a1.p; vp = sym->def; if ((sym->class != (SYM_VARIABLE | v2.type)) && (v2.type != T_VOID)) { #ifndef IPV6 /* IP->Quad implicit conversion */ if ((sym->class == (SYM_VARIABLE | T_QUAD)) && (v2.type == T_IP)) { vp->type = T_QUAD; vp->val.i = ipa_to_u32(v2.val.px.ip); break; } #endif runtime( "Assigning to variable of incompatible type" ); } *vp = v2; break; /* some constants have value in a2, some in *a1.p, strange. */ case 'c': /* integer (or simple type) constant, string, set, or prefix_set */ res.type = what->aux; if (res.type == T_PREFIX_SET) res.val.ti = what->a2.p; else if (res.type == T_SET) res.val.t = what->a2.p; else if (res.type == T_STRING) res.val.s = what->a2.p; else res.val.i = what->a2.i; break; case 'V': case 'C': res = * ((struct f_val *) what->a1.p); break; case 'p': ONEARG; val_format(v1, &f_buf); break; case '?': /* ? has really strange error value, so we can implement if ... else nicely :-) */ ONEARG; if (v1.type != T_BOOL) runtime( "If requires boolean expression" ); if (v1.val.i) { ARG(res,a2.p); res.val.i = 0; } else res.val.i = 1; res.type = T_BOOL; break; case '0': debug( "No operation\n" ); break; case P('p',','): ONEARG; if (what->a2.i == F_NOP || (what->a2.i != F_NONL && what->a1.p)) log_commit(*L_INFO, &f_buf); switch (what->a2.i) { case F_QUITBIRD: die( "Filter asked me to die" ); case F_ACCEPT: /* Should take care about turning ACCEPT into MODIFY */ case F_ERROR: case F_REJECT: /* FIXME (noncritical) Should print complete route along with reason to reject route */ res.type = T_RETURN; res.val.i = what->a2.i; return res; /* We have to return now, no more processing. */ case F_NONL: case F_NOP: break; default: bug( "unknown return type: Can't happen"); } break; case 'a': /* rta access */ { ACCESS_RTE; struct rta *rta = (*f_rte)->attrs; res.type = what->aux; switch (what->a2.i) { case SA_FROM: res.val.px.ip = rta->from; break; case SA_GW: res.val.px.ip = rta->gw; break; case SA_NET: res.val.px.ip = (*f_rte)->net->n.prefix; res.val.px.len = (*f_rte)->net->n.pxlen; break; case SA_PROTO: res.val.s = rta->proto->name; break; case SA_SOURCE: res.val.i = rta->source; break; case SA_SCOPE: res.val.i = rta->scope; break; case SA_CAST: res.val.i = rta->cast; break; case SA_DEST: res.val.i = rta->dest; break; case SA_IFNAME: res.val.s = rta->iface ? rta->iface->name : ""; break; case SA_IFINDEX: res.val.i = rta->iface ? rta->iface->index : 0; break; default: bug("Invalid static attribute access (%x)", res.type); } } break; case P('a','S'): ACCESS_RTE; ONEARG; if (what->aux != v1.type) runtime( "Attempt to set static attribute to incompatible type" ); f_rta_cow(); { struct rta *rta = (*f_rte)->attrs; switch (what->a2.i) { case SA_FROM: rta->from = v1.val.px.ip; break; case SA_GW: { ip_addr ip = v1.val.px.ip; neighbor *n = neigh_find(rta->proto, &ip, 0); if (!n || (n->scope == SCOPE_HOST)) runtime( "Invalid gw address" ); rta->dest = RTD_ROUTER; rta->gw = ip; rta->iface = n->iface; rta->nexthops = NULL; rta->hostentry = NULL; } break; case SA_SCOPE: rta->scope = v1.val.i; break; case SA_DEST: i = v1.val.i; if ((i != RTD_BLACKHOLE) && (i != RTD_UNREACHABLE) && (i != RTD_PROHIBIT)) runtime( "Destination can be changed only to blackhole, unreachable or prohibit" ); rta->dest = i; rta->gw = IPA_NONE; rta->iface = NULL; rta->nexthops = NULL; rta->hostentry = NULL; break; default: bug("Invalid static attribute access (%x)", res.type); } } break; case P('e','a'): /* Access to extended attributes */ ACCESS_RTE; { eattr *e = NULL; if (!(f_flags & FF_FORCE_TMPATTR)) e = ea_find( (*f_rte)->attrs->eattrs, what->a2.i ); if (!e) e = ea_find( (*f_tmp_attrs), what->a2.i ); if ((!e) && (f_flags & FF_FORCE_TMPATTR)) e = ea_find( (*f_rte)->attrs->eattrs, what->a2.i ); if (!e) { /* A special case: undefined int_set looks like empty int_set */ if ((what->aux & EAF_TYPE_MASK) == EAF_TYPE_INT_SET) { res.type = T_CLIST; res.val.ad = adata_empty(f_pool, 0); break; } /* The same special case for ec_set */ else if ((what->aux & EAF_TYPE_MASK) == EAF_TYPE_EC_SET) { res.type = T_ECLIST; res.val.ad = adata_empty(f_pool, 0); break; } /* Undefined value */ res.type = T_VOID; break; } switch (what->aux & EAF_TYPE_MASK) { case EAF_TYPE_INT: res.type = T_INT; res.val.i = e->u.data; break; case EAF_TYPE_ROUTER_ID: res.type = T_QUAD; res.val.i = e->u.data; break; case EAF_TYPE_OPAQUE: res.type = T_ENUM_EMPTY; res.val.i = 0; break; case EAF_TYPE_IP_ADDRESS: res.type = T_IP; struct adata * ad = e->u.ptr; res.val.px.ip = * (ip_addr *) ad->data; break; case EAF_TYPE_AS_PATH: res.type = T_PATH; res.val.ad = e->u.ptr; break; case EAF_TYPE_INT_SET: res.type = T_CLIST; res.val.ad = e->u.ptr; break; case EAF_TYPE_EC_SET: res.type = T_ECLIST; res.val.ad = e->u.ptr; break; case EAF_TYPE_UNDEF: res.type = T_VOID; break; default: bug("Unknown type in e,a"); } } break; case P('e','S'): ACCESS_RTE; ONEARG; { struct ea_list *l = lp_alloc(f_pool, sizeof(struct ea_list) + sizeof(eattr)); l->next = NULL; l->flags = EALF_SORTED; l->count = 1; l->attrs[0].id = what->a2.i; l->attrs[0].flags = 0; l->attrs[0].type = what->aux | EAF_ORIGINATED; switch (what->aux & EAF_TYPE_MASK) { case EAF_TYPE_INT: if (v1.type != T_INT) runtime( "Setting int attribute to non-int value" ); l->attrs[0].u.data = v1.val.i; break; case EAF_TYPE_ROUTER_ID: #ifndef IPV6 /* IP->Quad implicit conversion */ if (v1.type == T_IP) { l->attrs[0].u.data = ipa_to_u32(v1.val.px.ip); break; } #endif /* T_INT for backward compatibility */ if ((v1.type != T_QUAD) && (v1.type != T_INT)) runtime( "Setting quad attribute to non-quad value" ); l->attrs[0].u.data = v1.val.i; break; case EAF_TYPE_OPAQUE: runtime( "Setting opaque attribute is not allowed" ); break; case EAF_TYPE_IP_ADDRESS: if (v1.type != T_IP) runtime( "Setting ip attribute to non-ip value" ); int len = sizeof(ip_addr); struct adata *ad = lp_alloc(f_pool, sizeof(struct adata) + len); ad->length = len; (* (ip_addr *) ad->data) = v1.val.px.ip; l->attrs[0].u.ptr = ad; break; case EAF_TYPE_AS_PATH: if (v1.type != T_PATH) runtime( "Setting path attribute to non-path value" ); l->attrs[0].u.ptr = v1.val.ad; break; case EAF_TYPE_INT_SET: if (v1.type != T_CLIST) runtime( "Setting clist attribute to non-clist value" ); l->attrs[0].u.ptr = v1.val.ad; break; case EAF_TYPE_EC_SET: if (v1.type != T_ECLIST) runtime( "Setting eclist attribute to non-eclist value" ); l->attrs[0].u.ptr = v1.val.ad; break; case EAF_TYPE_UNDEF: if (v1.type != T_VOID) runtime( "Setting void attribute to non-void value" ); l->attrs[0].u.data = 0; break; default: bug("Unknown type in e,S"); } if (!(what->aux & EAF_TEMP) && (!(f_flags & FF_FORCE_TMPATTR))) { f_rta_cow(); l->next = (*f_rte)->attrs->eattrs; (*f_rte)->attrs->eattrs = l; } else { l->next = (*f_tmp_attrs); (*f_tmp_attrs) = l; } } break; case 'P': ACCESS_RTE; res.type = T_INT; res.val.i = (*f_rte)->pref; break; case P('P','S'): ACCESS_RTE; ONEARG; if (v1.type != T_INT) runtime( "Can't set preference to non-integer" ); if ((v1.val.i < 0) || (v1.val.i > 0xFFFF)) runtime( "Setting preference value out of bounds" ); f_rte_cow(); (*f_rte)->pref = v1.val.i; break; case 'L': /* Get length of */ ONEARG; res.type = T_INT; switch(v1.type) { case T_PREFIX: res.val.i = v1.val.px.len; break; case T_PATH: res.val.i = as_path_getlen(v1.val.ad); break; case T_CLIST: res.val.i = int_set_get_size(v1.val.ad); break; case T_ECLIST: res.val.i = ec_set_get_size(v1.val.ad); break; default: runtime( "Prefix, path, clist or eclist expected" ); } break; case P('c','p'): /* Convert prefix to ... */ ONEARG; if (v1.type != T_PREFIX) runtime( "Prefix expected" ); res.type = what->aux; switch(res.type) { /* case T_INT: res.val.i = v1.val.px.len; break; Not needed any more */ case T_IP: res.val.px.ip = v1.val.px.ip; break; default: bug( "Unknown prefix to conversion" ); } break; case P('a','f'): /* Get first ASN from AS PATH */ ONEARG; if (v1.type != T_PATH) runtime( "AS path expected" ); as = 0; as_path_get_first(v1.val.ad, &as); res.type = T_INT; res.val.i = as; break; case P('a','l'): /* Get last ASN from AS PATH */ ONEARG; if (v1.type != T_PATH) runtime( "AS path expected" ); as = 0; as_path_get_last(v1.val.ad, &as); res.type = T_INT; res.val.i = as; break; case 'r': ONEARG; res = v1; res.type |= T_RETURN; return res; case P('c','a'): /* CALL: this is special: if T_RETURN and returning some value, mask it out */ ONEARG; res = interpret(what->a2.p); if (res.type == T_RETURN) return res; res.type &= ~T_RETURN; break; case P('c','v'): /* Clear local variables */ for (sym = what->a1.p; sym != NULL; sym = sym->aux2) ((struct f_val *) sym->def)->type = T_VOID; break; case P('S','W'): ONEARG; { struct f_tree *t = find_tree(what->a2.p, v1); if (!t) { v1.type = T_VOID; t = find_tree(what->a2.p, v1); if (!t) { debug( "No else statement?\n"); break; } } /* It is actually possible to have t->data NULL */ res = interpret(t->data); if (res.type & T_RETURN) return res; } break; case P('i','M'): /* IP.MASK(val) */ TWOARGS; if (v2.type != T_INT) runtime( "Integer expected"); if (v1.type != T_IP) runtime( "You can mask only IP addresses" ); { ip_addr mask = ipa_mkmask(v2.val.i); res.type = T_IP; res.val.px.ip = ipa_and(mask, v1.val.px.ip); } break; case 'E': /* Create empty attribute */ res.type = what->aux; res.val.ad = adata_empty(f_pool, 0); break; case P('A','p'): /* Path prepend */ TWOARGS; if (v1.type != T_PATH) runtime("Can't prepend to non-path"); if (v2.type != T_INT) runtime("Can't prepend non-integer"); res.type = T_PATH; res.val.ad = as_path_prepend(f_pool, v1.val.ad, v2.val.i); break; case P('C','a'): /* (Extended) Community list add or delete */ TWOARGS; if (v1.type == T_PATH) { struct f_tree *set = NULL; u32 key = 0; int pos; if (v2.type == T_INT) key = v2.val.i; else if ((v2.type == T_SET) && (v2.val.t->from.type == T_INT)) set = v2.val.t; else runtime("Can't delete non-integer (set)"); switch (what->aux) { case 'a': runtime("Can't add to path"); case 'd': pos = 0; break; case 'f': pos = 1; break; default: bug("unknown Ca operation"); } if (pos && !set) runtime("Can't filter integer"); res.type = T_PATH; res.val.ad = as_path_filter(f_pool, v1.val.ad, set, key, pos); } else if (v1.type == T_CLIST) { /* Community (or cluster) list */ struct f_val dummy; int arg_set = 0; uint n = 0; if ((v2.type == T_PAIR) || (v2.type == T_QUAD)) n = v2.val.i; #ifndef IPV6 /* IP->Quad implicit conversion */ else if (v2.type == T_IP) n = ipa_to_u32(v2.val.px.ip); #endif else if ((v2.type == T_SET) && clist_set_type(v2.val.t, &dummy)) arg_set = 1; else if (v2.type == T_CLIST) arg_set = 2; else runtime("Can't add/delete non-pair"); res.type = T_CLIST; switch (what->aux) { case 'a': if (arg_set == 1) runtime("Can't add set"); else if (!arg_set) res.val.ad = int_set_add(f_pool, v1.val.ad, n); else res.val.ad = int_set_union(f_pool, v1.val.ad, v2.val.ad); break; case 'd': if (!arg_set) res.val.ad = int_set_del(f_pool, v1.val.ad, n); else res.val.ad = clist_filter(f_pool, v1.val.ad, v2, 0); break; case 'f': if (!arg_set) runtime("Can't filter pair"); res.val.ad = clist_filter(f_pool, v1.val.ad, v2, 1); break; default: bug("unknown Ca operation"); } } else if (v1.type == T_ECLIST) { /* Extended community list */ int arg_set = 0; /* v2.val is either EC or EC-set */ if ((v2.type == T_SET) && eclist_set_type(v2.val.t)) arg_set = 1; else if (v2.type == T_ECLIST) arg_set = 2; else if (v2.type != T_EC) runtime("Can't add/delete non-pair"); res.type = T_ECLIST; switch (what->aux) { case 'a': if (arg_set == 1) runtime("Can't add set"); else if (!arg_set) res.val.ad = ec_set_add(f_pool, v1.val.ad, v2.val.ec); else res.val.ad = ec_set_union(f_pool, v1.val.ad, v2.val.ad); break; case 'd': if (!arg_set) res.val.ad = ec_set_del(f_pool, v1.val.ad, v2.val.ec); else res.val.ad = eclist_filter(f_pool, v1.val.ad, v2, 0); break; case 'f': if (!arg_set) runtime("Can't filter ec"); res.val.ad = eclist_filter(f_pool, v1.val.ad, v2, 1); break; default: bug("unknown Ca operation"); } } else runtime("Can't add/delete to non-(e)clist"); break; case P('R','C'): /* ROA Check */ if (what->arg1) { TWOARGS; if ((v1.type != T_PREFIX) || (v2.type != T_INT)) runtime("Invalid argument to roa_check()"); as = v2.val.i; } else { ACCESS_RTE; v1.val.px.ip = (*f_rte)->net->n.prefix; v1.val.px.len = (*f_rte)->net->n.pxlen; /* We ignore temporary attributes, probably not a problem here */ /* 0x02 is a value of BA_AS_PATH, we don't want to include BGP headers */ eattr *e = ea_find((*f_rte)->attrs->eattrs, EA_CODE(EAP_BGP, 0x02)); if (!e || e->type != EAF_TYPE_AS_PATH) runtime("Missing AS_PATH attribute"); as_path_get_last(e->u.ptr, &as); } struct roa_table_config *rtc = ((struct f_inst_roa_check *) what)->rtc; if (!rtc->table) runtime("Missing ROA table"); res.type = T_ENUM_ROA; res.val.i = roa_check(rtc->table, v1.val.px.ip, v1.val.px.len, as); break; default: bug( "Unknown instruction %d (%c)", what->code, what->code & 0xff); } if (what->next) return interpret(what->next); return res; } #undef ARG #define ARG(x,y) \ if (!i_same(f1->y, f2->y)) \ return 0; #define ONEARG ARG(v1, a1.p) #define TWOARGS ARG(v1, a1.p) \ ARG(v2, a2.p) #define A2_SAME if (f1->a2.i != f2->a2.i) return 0; /* * i_same - function that does real comparing of instruction trees, you should call filter_same from outside */ int i_same(struct f_inst *f1, struct f_inst *f2) { if ((!!f1) != (!!f2)) return 0; if (!f1) return 1; if (f1->aux != f2->aux) return 0; if (f1->code != f2->code) return 0; if (f1 == f2) /* It looks strange, but it is possible with call rewriting trickery */ return 1; switch(f1->code) { case ',': /* fall through */ case '+': case '-': case '*': case '/': case '|': case '&': case P('m','p'): case P('m','c'): case P('!','='): case P('=','='): case '<': case P('<','='): TWOARGS; break; case '!': ONEARG; break; case '~': TWOARGS; break; case P('d','e'): ONEARG; break; case 's': ARG(v2, a2.p); { struct symbol *s1, *s2; s1 = f1->a1.p; s2 = f2->a1.p; if (strcmp(s1->name, s2->name)) return 0; if (s1->class != s2->class) return 0; } break; case 'c': switch (f1->aux) { case T_PREFIX_SET: if (!trie_same(f1->a2.p, f2->a2.p)) return 0; break; case T_SET: if (!same_tree(f1->a2.p, f2->a2.p)) return 0; break; case T_STRING: if (strcmp(f1->a2.p, f2->a2.p)) return 0; break; default: A2_SAME; } break; case 'C': if (!val_same(* (struct f_val *) f1->a1.p, * (struct f_val *) f2->a1.p)) return 0; break; case 'V': if (strcmp((char *) f1->a2.p, (char *) f2->a2.p)) return 0; break; case 'p': case 'L': ONEARG; break; case '?': TWOARGS; break; case '0': case 'E': break; case P('p',','): ONEARG; A2_SAME; break; case 'P': case 'a': A2_SAME; break; case P('e','a'): A2_SAME; break; case P('P','S'): case P('a','S'): case P('e','S'): ONEARG; A2_SAME; break; case 'r': ONEARG; break; case P('c','p'): ONEARG; break; case P('c','a'): /* Call rewriting trickery to avoid exponential behaviour */ ONEARG; if (!i_same(f1->a2.p, f2->a2.p)) return 0; f2->a2.p = f1->a2.p; break; case P('c','v'): break; /* internal instruction */ case P('S','W'): ONEARG; if (!same_tree(f1->a2.p, f2->a2.p)) return 0; break; case P('i','M'): TWOARGS; break; case P('A','p'): TWOARGS; break; case P('C','a'): TWOARGS; break; case P('a','f'): case P('a','l'): ONEARG; break; case P('R','C'): TWOARGS; /* Does not really make sense - ROA check resuls may change anyway */ if (strcmp(((struct f_inst_roa_check *) f1)->rtc->name, ((struct f_inst_roa_check *) f2)->rtc->name)) return 0; break; default: bug( "Unknown instruction %d in same (%c)", f1->code, f1->code & 0xff); } return i_same(f1->next, f2->next); } /** * f_run - run a filter for a route * @filter: filter to run * @rte: route being filtered, may be modified * @tmp_attrs: temporary attributes, prepared by caller or generated by f_run() * @tmp_pool: all filter allocations go from this pool * @flags: flags * * If filter needs to modify the route, there are several * posibilities. @rte might be read-only (with REF_COW flag), in that * case rw copy is obtained by rte_cow() and @rte is replaced. If * @rte is originally rw, it may be directly modified (and it is never * copied). * * The returned rte may reuse the (possibly cached, cloned) rta, or * (if rta was modificied) contains a modified uncached rta, which * uses parts allocated from @tmp_pool and parts shared from original * rta. There is one exception - if @rte is rw but contains a cached * rta and that is modified, rta in returned rte is also cached. * * Ownership of cached rtas is consistent with rte, i.e. * if a new rte is returned, it has its own clone of cached rta * (and cached rta of read-only source rte is intact), if rte is * modified in place, old cached rta is possibly freed. */ int f_run(struct filter *filter, struct rte **rte, struct ea_list **tmp_attrs, struct linpool *tmp_pool, int flags) { if (filter == FILTER_ACCEPT) return F_ACCEPT; if (filter == FILTER_REJECT) return F_REJECT; int rte_cow = ((*rte)->flags & REF_COW); DBG( "Running filter `%s'...", filter->name ); f_rte = rte; f_old_rta = NULL; f_tmp_attrs = tmp_attrs; f_pool = tmp_pool; f_flags = flags; LOG_BUFFER_INIT(f_buf); struct f_val res = interpret(filter->root); if (f_old_rta) { /* * Cached rta was modified and f_rte contains now an uncached one, * sharing some part with the cached one. The cached rta should * be freed (if rte was originally COW, f_old_rta is a clone * obtained during rte_cow()). * * This also implements the exception mentioned in f_run() * description. The reason for this is that rta reuses parts of * f_old_rta, and these may be freed during rta_free(f_old_rta). * This is not the problem if rte was COW, because original rte * also holds the same rta. */ if (!rte_cow) (*f_rte)->attrs = rta_lookup((*f_rte)->attrs); rta_free(f_old_rta); } if (res.type != T_RETURN) { log( L_ERR "Filter %s did not return accept nor reject. Make up your mind", filter->name); return F_ERROR; } DBG( "done (%u)\n", res.val.i ); return res.val.i; } struct f_val f_eval(struct f_inst *expr, struct linpool *tmp_pool) { f_flags = 0; f_tmp_attrs = NULL; f_rte = NULL; f_pool = tmp_pool; LOG_BUFFER_INIT(f_buf); return interpret(expr); } uint f_eval_int(struct f_inst *expr) { /* Called independently in parse-time to eval expressions */ struct f_val res = f_eval(expr, cfg_mem); if (res.type != T_INT) cf_error("Integer expression expected"); return res.val.i; } u32 f_eval_asn(struct f_inst *expr) { /* Called as a part of another interpret call, therefore no log_reset() */ struct f_val res = interpret(expr); return (res.type == T_INT) ? res.val.i : 0; } /** * filter_same - compare two filters * @new: first filter to be compared * @old: second filter to be compared, notice that this filter is * damaged while comparing. * * Returns 1 in case filters are same, otherwise 0. If there are * underlying bugs, it will rather say 0 on same filters than say * 1 on different. */ int filter_same(struct filter *new, struct filter *old) { if (old == new) /* Handle FILTER_ACCEPT and FILTER_REJECT */ return 1; if (old == FILTER_ACCEPT || old == FILTER_REJECT || new == FILTER_ACCEPT || new == FILTER_REJECT) return 0; return i_same(new->root, old->root); } bird-1.4.0/proto/0000755000103200001440000000000012244117701012562 5ustar feelausersbird-1.4.0/proto/radv/0000755000103200001440000000000012244117701013516 5ustar feelausersbird-1.4.0/proto/radv/packets.c0000644000103200001440000002252712175263574015341 0ustar feelausers/* * BIRD -- RAdv Packet Processing * * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include "radv.h" struct radv_ra_packet { u8 type; u8 code; u16 checksum; u8 current_hop_limit; u8 flags; u16 router_lifetime; u32 reachable_time; u32 retrans_timer; }; #define OPT_RA_MANAGED 0x80 #define OPT_RA_OTHER_CFG 0x40 #define OPT_PREFIX 3 #define OPT_MTU 5 #define OPT_RDNSS 25 #define OPT_DNSSL 31 struct radv_opt_prefix { u8 type; u8 length; u8 pxlen; u8 flags; u32 valid_lifetime; u32 preferred_lifetime; u32 reserved; ip_addr prefix; }; #define OPT_PX_ONLINK 0x80 #define OPT_PX_AUTONOMOUS 0x40 struct radv_opt_mtu { u8 type; u8 length; u16 reserved; u32 mtu; }; struct radv_opt_rdnss { u8 type; u8 length; u16 reserved; u32 lifetime; ip_addr servers[]; }; struct radv_opt_dnssl { u8 type; u8 length; u16 reserved; u32 lifetime; char domain[]; }; static struct radv_prefix_config default_prefix = { .onlink = 1, .autonomous = 1, .valid_lifetime = DEFAULT_VALID_LIFETIME, .preferred_lifetime = DEFAULT_PREFERRED_LIFETIME }; static struct radv_prefix_config * radv_prefix_match(struct radv_iface *ifa, struct ifa *a) { struct proto *p = &ifa->ra->p; struct radv_config *cf = (struct radv_config *) (p->cf); struct radv_prefix_config *pc; if (a->scope <= SCOPE_LINK) return NULL; WALK_LIST(pc, ifa->cf->pref_list) if ((a->pxlen >= pc->pxlen) && ipa_in_net(a->prefix, pc->prefix, pc->pxlen)) return pc; WALK_LIST(pc, cf->pref_list) if ((a->pxlen >= pc->pxlen) && ipa_in_net(a->prefix, pc->prefix, pc->pxlen)) return pc; return &default_prefix; } static int radv_prepare_rdnss(struct radv_iface *ifa, list *rdnss_list, char **buf, char *bufend) { struct radv_rdnss_config *rcf = HEAD(*rdnss_list); while(NODE_VALID(rcf)) { struct radv_rdnss_config *rcf_base = rcf; struct radv_opt_rdnss *op = (void *) *buf; int max_i = (bufend - *buf - sizeof(struct radv_opt_rdnss)) / sizeof(ip_addr); int i = 0; if (max_i < 1) goto too_much; op->type = OPT_RDNSS; op->reserved = 0; if (rcf->lifetime_mult) op->lifetime = htonl(rcf->lifetime_mult * ifa->cf->max_ra_int); else op->lifetime = htonl(rcf->lifetime); while(NODE_VALID(rcf) && (rcf->lifetime == rcf_base->lifetime) && (rcf->lifetime_mult == rcf_base->lifetime_mult)) { if (i >= max_i) goto too_much; op->servers[i] = rcf->server; ipa_hton(op->servers[i]); i++; rcf = NODE_NEXT(rcf); } op->length = 1+2*i; *buf += 8 * op->length; } return 0; too_much: log(L_WARN "%s: Too many RA options on interface %s", ifa->ra->p.name, ifa->iface->name); return -1; } int radv_process_domain(struct radv_dnssl_config *cf) { /* Format of domain in search list is bfd_neigh_local %type bfd_neigh_multihop CF_GRAMMAR CF_ADDTO(proto, bfd_proto) bfd_proto_start: proto_start BFD { this_proto = proto_config_new(&proto_bfd, sizeof(struct bfd_config), $1); init_list(&BFD_CFG->patt_list); init_list(&BFD_CFG->neigh_list); if (bfd_cf) cf_error("Only one BFD instance allowed"); bfd_cf = BFD_CFG; }; bfd_proto_item: proto_item | INTERFACE bfd_iface | MULTIHOP bfd_multihop | NEIGHBOR bfd_neighbor ; bfd_proto_opts: /* empty */ | bfd_proto_opts bfd_proto_item ';' ; bfd_proto: bfd_proto_start proto_name '{' bfd_proto_opts '}'; bfd_iface_start: { this_ipatt = cfg_allocz(sizeof(struct bfd_iface_config)); init_list(&this_ipatt->ipn_list); BFD_IFACE->min_rx_int = BFD_DEFAULT_MIN_RX_INT; BFD_IFACE->min_tx_int = BFD_DEFAULT_MIN_TX_INT; BFD_IFACE->idle_tx_int = BFD_DEFAULT_IDLE_TX_INT; BFD_IFACE->multiplier = BFD_DEFAULT_MULTIPLIER; }; bfd_iface_item: INTERVAL expr_us { BFD_IFACE->min_rx_int = BFD_IFACE->min_tx_int = $2; } | MIN RX INTERVAL expr_us { BFD_IFACE->min_rx_int = $4; } | MIN TX INTERVAL expr_us { BFD_IFACE->min_tx_int = $4; } | IDLE TX INTERVAL expr_us { BFD_IFACE->idle_tx_int = $4; } | MULTIPLIER expr { BFD_IFACE->multiplier = $2; } | PASSIVE bool { BFD_IFACE->passive = $2; } ; bfd_iface_opts: /* empty */ | bfd_iface_opts bfd_iface_item ';' ; bfd_iface_opt_list: /* empty */ | '{' bfd_iface_opts '}' ; bfd_iface: bfd_iface_start iface_patt_list bfd_iface_opt_list { add_tail(&BFD_CFG->patt_list, NODE this_ipatt); }; bfd_multihop: bfd_iface_start bfd_iface_opt_list { BFD_CFG->multihop = BFD_IFACE; }; bfd_neigh_iface: /* empty */ { $$ = NULL; } | '%' SYM { $$ = if_get_by_name($2->name); } | DEV TEXT { $$ = if_get_by_name($2); } ; bfd_neigh_local: /* empty */ { $$ = IPA_NONE; } | LOCAL ipa { $$ = $2; } ; bfd_neigh_multihop: /* empty */ { $$ = 0; } | MULTIHOP bool { $$ = $2; } ; bfd_neighbor: ipa bfd_neigh_iface bfd_neigh_local bfd_neigh_multihop { this_bfd_neighbor = cfg_allocz(sizeof(struct bfd_neighbor)); add_tail(&BFD_CFG->neigh_list, NODE this_bfd_neighbor); BFD_NEIGHBOR->addr = $1; BFD_NEIGHBOR->local = $3; BFD_NEIGHBOR->iface = $2; BFD_NEIGHBOR->multihop = $4; if ($4 && $2) cf_error("Neighbor cannot set both interface and multihop"); if ($4 && ipa_zero($3)) cf_error("Multihop neighbor requires specified local address"); }; CF_CLI(SHOW BFD SESSIONS, optsym, [], [[Show information about BFD sessions]]) { bfd_show_sessions(proto_get_named($4, &proto_bfd)); }; CF_CODE CF_END bird-1.4.0/proto/bfd/bfd.c0000644000103200001440000006727612244656136014250 0ustar feelausers/* * BIRD -- Bidirectional Forwarding Detection (BFD) * * Can be freely distributed and used under the terms of the GNU GPL. */ /** * DOC: Bidirectional Forwarding Detection * * The BFD protocol is implemented in three files: |bfd.c| containing the * protocol logic and the protocol glue with BIRD core, |packets.c| handling BFD * packet processing, RX, TX and protocol sockets. |io.c| then contains generic * code for the event loop, threads and event sources (sockets, microsecond * timers). This generic code will be merged to the main BIRD I/O code in the * future. * * The BFD implementation uses a separate thread with an internal event loop for * handling the protocol logic, which requires high-res and low-latency timing, * so it is not affected by the rest of BIRD, which has several low-granularity * hooks in the main loop, uses second-based timers and cannot offer good * latency. The core of BFD protocol (the code related to BFD sessions, * interfaces and packets) runs in the BFD thread, while the rest (the code * related to BFD requests, BFD neighbors and the protocol glue) runs in the * main thread. * * BFD sessions are represented by structure &bfd_session that contains a state * related to the session and two timers (TX timer for periodic packets and hold * timer for session timeout). These sessions are allocated from @session_slab * and are accessible by two hash tables, @session_hash_id (by session ID) and * @session_hash_ip (by IP addresses of neighbors). Slab and both hashes are in * the main protocol structure &bfd_proto. The protocol logic related to BFD * sessions is implemented in internal functions bfd_session_*(), which are * expected to be called from the context of BFD thread, and external functions * bfd_add_session(), bfd_remove_session() and bfd_reconfigure_session(), which * form an interface to the BFD core for the rest and are expected to be called * from the context of main thread. * * Each BFD session has an associated BFD interface, represented by structure * &bfd_iface. A BFD interface contains a socket used for TX (the one for RX is * shared in &bfd_proto), an interface configuration and reference counter. * Compared to interface structures of other protocols, these structures are not * created and removed based on interface notification events, but according to * the needs of BFD sessions. When a new session is created, it requests a * proper BFD interface by function bfd_get_iface(), which either finds an * existing one in &iface_list (from &bfd_proto) or allocates a new one. When a * session is removed, an associated iface is dicharged by bfd_free_iface(). * * BFD requests are the external API for the other protocols. When a protocol * wants a BFD session, it calls bfd_request_session(), which creates a * structure &bfd_request containing approprite information and an notify hook. * This structure is a resource associated with the caller's resource pool. When * a BFD protocol is available, a BFD request is submitted to the protocol, an * appropriate BFD session is found or created and the request is attached to * the session. When a session changes state, all attached requests (and related * protocols) are notified. Note that BFD requests do not depend on BFD protocol * running. When the BFD protocol is stopped or removed (or not available from * beginning), related BFD requests are stored in @bfd_wait_list, where waits * for a new protocol. * * BFD neighbors are just a way to statically configure BFD sessions without * requests from other protocol. Structures &bfd_neighbor are part of BFD * configuration (like static routes in the static protocol). BFD neighbors are * handled by BFD protocol like it is a BFD client -- when a BFD neighbor is * ready, the protocol just creates a BFD request like any other protocol. * * The protocol uses a new generic event loop (structure &birdloop) from |io.c|, * which supports sockets, timers and events like the main loop. Timers * (structure &timer2) are new microsecond based timers, while sockets and * events are the same. A birdloop is associated with a thread (field @thread) * in which event hooks are executed. Most functions for setting event sources * (like sk_start() or tm2_start()) must be called from the context of that * thread. Birdloop allows to temporarily acquire the context of that thread for * the main thread by calling birdloop_enter() and then birdloop_leave(), which * also ensures mutual exclusion with all event hooks. Note that resources * associated with a birdloop (like timers) should be attached to the * independent resource pool, detached from the main resource tree. * * There are two kinds of interaction between the BFD core (running in the BFD * thread) and the rest of BFD (running in the main thread). The first kind are * configuration calls from main thread to the BFD thread (like bfd_add_session()). * These calls are synchronous and use birdloop_enter() mechanism for mutual * exclusion. The second kind is a notification about session changes from the * BFD thread to the main thread. This is done in an asynchronous way, sesions * with pending notifications are linked (in the BFD thread) to @notify_list in * &bfd_proto, and then bfd_notify_hook() in the main thread is activated using * bfd_notify_kick() and a pipe. The hook then processes scheduled sessions and * calls hooks from associated BFD requests. This @notify_list (and state fields * in structure &bfd_session) is protected by a spinlock in &bfd_proto and * functions bfd_lock_sessions() / bfd_unlock_sessions(). * * There are few data races (accessing @p->p.debug from TRACE() from the BFD * thread and accessing some some private fields of %bfd_session from * bfd_show_sessions() from the main thread, but these are harmless (i hope). * * TODO: document functions and access restrictions for fields in BFD structures. * * Supported standards: * - RFC 5880 - main BFD standard * - RFC 5881 - BFD for IP links * - RFC 5882 - generic application of BFD * - RFC 5883 - BFD for multihop paths */ #include "bfd.h" #define HASH_ID_KEY(n) n->loc_id #define HASH_ID_NEXT(n) n->next_id #define HASH_ID_EQ(a,b) (a == b) #define HASH_ID_FN(k) (k) #define HASH_IP_KEY(n) n->addr #define HASH_IP_NEXT(n) n->next_ip #define HASH_IP_EQ(a,b) ipa_equal(a,b) #define HASH_IP_FN(k) ipa_hash(k) static list bfd_proto_list; static list bfd_wait_list; const char *bfd_state_names[] = { "AdminDown", "Down", "Init", "Up" }; static void bfd_session_set_min_tx(struct bfd_session *s, u32 val); static struct bfd_iface *bfd_get_iface(struct bfd_proto *p, ip_addr local, struct iface *iface); static void bfd_free_iface(struct bfd_iface *ifa); static inline void bfd_notify_kick(struct bfd_proto *p); /* * BFD sessions */ static void bfd_session_update_state(struct bfd_session *s, uint state, uint diag) { struct bfd_proto *p = s->ifa->bfd; uint old_state = s->loc_state; int notify; if (state == old_state) return; TRACE(D_EVENTS, "Session to %I changed state from %s to %s", s->addr, bfd_state_names[old_state], bfd_state_names[state]); bfd_lock_sessions(p); s->loc_state = state; s->loc_diag = diag; notify = !NODE_VALID(&s->n); if (notify) add_tail(&p->notify_list, &s->n); bfd_unlock_sessions(p); if (state == BFD_STATE_UP) bfd_session_set_min_tx(s, s->ifa->cf->min_tx_int); if (old_state == BFD_STATE_UP) bfd_session_set_min_tx(s, s->ifa->cf->idle_tx_int); if (notify) bfd_notify_kick(p); } static void bfd_session_update_tx_interval(struct bfd_session *s) { u32 tx_int = MAX(s->des_min_tx_int, s->rem_min_rx_int); u32 tx_int_l = tx_int - (tx_int / 4); // 75 % u32 tx_int_h = tx_int - (tx_int / 10); // 90 % s->tx_timer->recurrent = tx_int_l; s->tx_timer->randomize = tx_int_h - tx_int_l; /* Do not set timer if no previous event */ if (!s->last_tx) return; /* Set timer relative to last tx_timer event */ tm2_set(s->tx_timer, s->last_tx + tx_int_l); } static void bfd_session_update_detection_time(struct bfd_session *s, int kick) { btime timeout = (btime) MAX(s->req_min_rx_int, s->rem_min_tx_int) * s->rem_detect_mult; if (kick) s->last_rx = current_time(); if (!s->last_rx) return; tm2_set(s->hold_timer, s->last_rx + timeout); } static void bfd_session_control_tx_timer(struct bfd_session *s, int reset) { // if (!s->opened) goto stop; if (s->passive && (s->rem_id == 0)) goto stop; if (s->rem_demand_mode && !s->poll_active && (s->loc_state == BFD_STATE_UP) && (s->rem_state == BFD_STATE_UP)) goto stop; if (s->rem_min_rx_int == 0) goto stop; /* So TX timer should run */ if (reset || !tm2_active(s->tx_timer)) { s->last_tx = 0; tm2_start(s->tx_timer, 0); } return; stop: tm2_stop(s->tx_timer); s->last_tx = 0; } static void bfd_session_request_poll(struct bfd_session *s, u8 request) { /* Not sure about this, but doing poll in this case does not make sense */ if (s->rem_id == 0) return; s->poll_scheduled |= request; if (s->poll_active) return; s->poll_active = s->poll_scheduled; s->poll_scheduled = 0; bfd_session_control_tx_timer(s, 1); } static void bfd_session_terminate_poll(struct bfd_session *s) { u8 poll_done = s->poll_active & ~s->poll_scheduled; if (poll_done & BFD_POLL_TX) s->des_min_tx_int = s->des_min_tx_new; if (poll_done & BFD_POLL_RX) s->req_min_rx_int = s->req_min_rx_new; s->poll_active = s->poll_scheduled; s->poll_scheduled = 0; /* Timers are updated by caller - bfd_session_process_ctl() */ } void bfd_session_process_ctl(struct bfd_session *s, u8 flags, u32 old_tx_int, u32 old_rx_int) { if (s->poll_active && (flags & BFD_FLAG_FINAL)) bfd_session_terminate_poll(s); if ((s->des_min_tx_int != old_tx_int) || (s->rem_min_rx_int != old_rx_int)) bfd_session_update_tx_interval(s); bfd_session_update_detection_time(s, 1); /* Update session state */ int next_state = 0; int diag = BFD_DIAG_NOTHING; switch (s->loc_state) { case BFD_STATE_ADMIN_DOWN: return; case BFD_STATE_DOWN: if (s->rem_state == BFD_STATE_DOWN) next_state = BFD_STATE_INIT; else if (s->rem_state == BFD_STATE_INIT) next_state = BFD_STATE_UP; break; case BFD_STATE_INIT: if (s->rem_state == BFD_STATE_ADMIN_DOWN) next_state = BFD_STATE_DOWN, diag = BFD_DIAG_NEIGHBOR_DOWN; else if (s->rem_state >= BFD_STATE_INIT) next_state = BFD_STATE_UP; break; case BFD_STATE_UP: if (s->rem_state <= BFD_STATE_DOWN) next_state = BFD_STATE_DOWN, diag = BFD_DIAG_NEIGHBOR_DOWN; break; } if (next_state) bfd_session_update_state(s, next_state, diag); bfd_session_control_tx_timer(s, 0); if (flags & BFD_FLAG_POLL) bfd_send_ctl(s->ifa->bfd, s, 1); } static void bfd_session_timeout(struct bfd_session *s) { struct bfd_proto *p = s->ifa->bfd; TRACE(D_EVENTS, "Session to %I expired", s->addr); s->rem_state = BFD_STATE_DOWN; s->rem_id = 0; s->rem_min_tx_int = 0; s->rem_min_rx_int = 1; s->rem_demand_mode = 0; s->rem_detect_mult = 0; s->poll_active = 0; s->poll_scheduled = 0; bfd_session_update_state(s, BFD_STATE_DOWN, BFD_DIAG_TIMEOUT); bfd_session_control_tx_timer(s, 1); } static void bfd_session_set_min_tx(struct bfd_session *s, u32 val) { /* Note that des_min_tx_int <= des_min_tx_new */ if (val == s->des_min_tx_new) return; s->des_min_tx_new = val; /* Postpone timer update if des_min_tx_int increases and the session is up */ if ((s->loc_state != BFD_STATE_UP) || (val < s->des_min_tx_int)) { s->des_min_tx_int = val; bfd_session_update_tx_interval(s); } bfd_session_request_poll(s, BFD_POLL_TX); } static void bfd_session_set_min_rx(struct bfd_session *s, u32 val) { /* Note that req_min_rx_int >= req_min_rx_new */ if (val == s->req_min_rx_new) return; s->req_min_rx_new = val; /* Postpone timer update if req_min_rx_int decreases and the session is up */ if ((s->loc_state != BFD_STATE_UP) || (val > s->req_min_rx_int)) { s->req_min_rx_int = val; bfd_session_update_detection_time(s, 0); } bfd_session_request_poll(s, BFD_POLL_RX); } struct bfd_session * bfd_find_session_by_id(struct bfd_proto *p, u32 id) { return HASH_FIND(p->session_hash_id, HASH_ID, id); } struct bfd_session * bfd_find_session_by_addr(struct bfd_proto *p, ip_addr addr) { return HASH_FIND(p->session_hash_ip, HASH_IP, addr); } static void bfd_tx_timer_hook(timer2 *t) { struct bfd_session *s = t->data; s->last_tx = current_time(); bfd_send_ctl(s->ifa->bfd, s, 0); } static void bfd_hold_timer_hook(timer2 *t) { bfd_session_timeout(t->data); } static u32 bfd_get_free_id(struct bfd_proto *p) { u32 id; for (id = random_u32(); 1; id++) if (id && !bfd_find_session_by_id(p, id)) break; return id; } static struct bfd_session * bfd_add_session(struct bfd_proto *p, ip_addr addr, ip_addr local, struct iface *iface) { birdloop_enter(p->loop); struct bfd_iface *ifa = bfd_get_iface(p, local, iface); struct bfd_session *s = sl_alloc(p->session_slab); bzero(s, sizeof(struct bfd_session)); s->addr = addr; s->ifa = ifa; s->loc_id = bfd_get_free_id(p); HASH_INSERT(p->session_hash_id, HASH_ID, s); HASH_INSERT(p->session_hash_ip, HASH_IP, s); /* Initialization of state variables - see RFC 5880 6.8.1 */ s->loc_state = BFD_STATE_DOWN; s->rem_state = BFD_STATE_DOWN; s->des_min_tx_int = s->des_min_tx_new = ifa->cf->idle_tx_int; s->req_min_rx_int = s->req_min_rx_new = ifa->cf->min_rx_int; s->rem_min_rx_int = 1; s->detect_mult = ifa->cf->multiplier; s->passive = ifa->cf->passive; s->tx_timer = tm2_new_init(p->tpool, bfd_tx_timer_hook, s, 0, 0); s->hold_timer = tm2_new_init(p->tpool, bfd_hold_timer_hook, s, 0, 0); bfd_session_update_tx_interval(s); bfd_session_control_tx_timer(s, 1); init_list(&s->request_list); s->last_state_change = now; TRACE(D_EVENTS, "Session to %I added", s->addr); birdloop_leave(p->loop); return s; } /* static void bfd_open_session(struct bfd_proto *p, struct bfd_session *s, ip_addr local, struct iface *ifa) { birdloop_enter(p->loop); s->opened = 1; bfd_session_control_tx_timer(s); birdloop_leave(p->loop); } static void bfd_close_session(struct bfd_proto *p, struct bfd_session *s) { birdloop_enter(p->loop); s->opened = 0; bfd_session_update_state(s, BFD_STATE_DOWN, BFD_DIAG_PATH_DOWN); bfd_session_control_tx_timer(s); birdloop_leave(p->loop); } */ static void bfd_remove_session(struct bfd_proto *p, struct bfd_session *s) { ip_addr ip = s->addr; birdloop_enter(p->loop); bfd_free_iface(s->ifa); rfree(s->tx_timer); rfree(s->hold_timer); HASH_REMOVE(p->session_hash_id, HASH_ID, s); HASH_REMOVE(p->session_hash_ip, HASH_IP, s); sl_free(p->session_slab, s); TRACE(D_EVENTS, "Session to %I removed", ip); birdloop_leave(p->loop); } static void bfd_reconfigure_session(struct bfd_proto *p, struct bfd_session *s) { birdloop_enter(p->loop); struct bfd_iface_config *cf = s->ifa->cf; u32 tx = (s->loc_state == BFD_STATE_UP) ? cf->min_tx_int : cf->idle_tx_int; bfd_session_set_min_tx(s, tx); bfd_session_set_min_rx(s, cf->min_rx_int); s->detect_mult = cf->multiplier; s->passive = cf->passive; bfd_session_control_tx_timer(s, 0); birdloop_leave(p->loop); TRACE(D_EVENTS, "Session to %I reconfigured", s->addr); } /* * BFD interfaces */ static struct bfd_iface_config bfd_default_iface = { .min_rx_int = BFD_DEFAULT_MIN_RX_INT, .min_tx_int = BFD_DEFAULT_MIN_TX_INT, .idle_tx_int = BFD_DEFAULT_IDLE_TX_INT, .multiplier = BFD_DEFAULT_MULTIPLIER }; static inline struct bfd_iface_config * bfd_find_iface_config(struct bfd_config *cf, struct iface *iface) { struct bfd_iface_config *ic; ic = iface ? (void *) iface_patt_find(&cf->patt_list, iface, NULL) : cf->multihop; return ic ? ic : &bfd_default_iface; } static struct bfd_iface * bfd_get_iface(struct bfd_proto *p, ip_addr local, struct iface *iface) { struct bfd_iface *ifa; WALK_LIST(ifa, p->iface_list) if (ipa_equal(ifa->local, local) && (ifa->iface == iface)) return ifa->uc++, ifa; struct bfd_config *cf = (struct bfd_config *) (p->p.cf); struct bfd_iface_config *ic = bfd_find_iface_config(cf, iface); ifa = mb_allocz(p->tpool, sizeof(struct bfd_iface)); ifa->local = local; ifa->iface = iface; ifa->cf = ic; ifa->bfd = p; ifa->sk = bfd_open_tx_sk(p, local, iface); ifa->uc = 1; add_tail(&p->iface_list, &ifa->n); return ifa; } static void bfd_free_iface(struct bfd_iface *ifa) { if (!ifa || --ifa->uc) return; rem_node(&ifa->n); sk_stop(ifa->sk); rfree(ifa->sk); mb_free(ifa); } static void bfd_reconfigure_iface(struct bfd_proto *p, struct bfd_iface *ifa, struct bfd_config *nc) { struct bfd_iface_config *nic = bfd_find_iface_config(nc, ifa->iface); ifa->changed = !!memcmp(nic, ifa->cf, sizeof(struct bfd_iface_config)); /* This should be probably changed to not access ifa->cf from the BFD thread */ birdloop_enter(p->loop); ifa->cf = nic; birdloop_leave(p->loop); } /* * BFD requests */ static void bfd_request_notify(struct bfd_request *req, u8 state, u8 diag) { u8 old_state = req->state; if (state == old_state) return; req->state = state; req->diag = diag; req->old_state = old_state; req->down = (old_state == BFD_STATE_UP) && (state == BFD_STATE_DOWN); if (req->hook) req->hook(req); } static int bfd_add_request(struct bfd_proto *p, struct bfd_request *req) { struct bfd_session *s = bfd_find_session_by_addr(p, req->addr); u8 state, diag; if (!s) s = bfd_add_session(p, req->addr, req->local, req->iface); rem_node(&req->n); add_tail(&s->request_list, &req->n); req->session = s; bfd_lock_sessions(p); state = s->loc_state; diag = s->loc_diag; bfd_unlock_sessions(p); bfd_request_notify(req, state, diag); return 1; } static void bfd_submit_request(struct bfd_request *req) { node *n; WALK_LIST(n, bfd_proto_list) if (bfd_add_request(SKIP_BACK(struct bfd_proto, bfd_node, n), req)) return; rem_node(&req->n); add_tail(&bfd_wait_list, &req->n); req->session = NULL; bfd_request_notify(req, BFD_STATE_ADMIN_DOWN, 0); } static void bfd_take_requests(struct bfd_proto *p) { node *n, *nn; WALK_LIST_DELSAFE(n, nn, bfd_wait_list) bfd_add_request(p, SKIP_BACK(struct bfd_request, n, n)); } static void bfd_drop_requests(struct bfd_proto *p) { node *n; HASH_WALK(p->session_hash_id, next_id, s) { /* We assume that p is not in bfd_proto_list */ WALK_LIST_FIRST(n, s->request_list) bfd_submit_request(SKIP_BACK(struct bfd_request, n, n)); } HASH_WALK_END; } static struct resclass bfd_request_class; struct bfd_request * bfd_request_session(pool *p, ip_addr addr, ip_addr local, struct iface *iface, void (*hook)(struct bfd_request *), void *data) { struct bfd_request *req = ralloc(p, &bfd_request_class); /* Hack: self-link req->n, we will call rem_node() on it */ req->n.prev = req->n.next = &req->n; req->addr = addr; req->local = local; req->iface = iface; bfd_submit_request(req); req->hook = hook; req->data = data; return req; } static void bfd_request_free(resource *r) { struct bfd_request *req = (struct bfd_request *) r; struct bfd_session *s = req->session; rem_node(&req->n); /* Remove the session if there is no request for it. Skip that if inside notify hooks, will be handled by bfd_notify_hook() itself */ if (s && EMPTY_LIST(s->request_list) && !s->notify_running) bfd_remove_session(s->ifa->bfd, s); } static void bfd_request_dump(resource *r) { struct bfd_request *req = (struct bfd_request *) r; debug("(code %p, data %p)\n", req->hook, req->data); } static struct resclass bfd_request_class = { "BFD request", sizeof(struct bfd_request), bfd_request_free, bfd_request_dump, NULL, NULL }; /* * BFD neighbors */ static void bfd_neigh_notify(struct neighbor *nb) { struct bfd_proto *p = (struct bfd_proto *) nb->proto; struct bfd_neighbor *n = nb->data; if (!n) return; if ((nb->scope > 0) && !n->req) { ip_addr local = ipa_nonzero(n->local) ? n->local : nb->iface->addr->ip; n->req = bfd_request_session(p->p.pool, n->addr, local, nb->iface, NULL, NULL); } if ((nb->scope <= 0) && n->req) { rfree(n->req); n->req = NULL; } } static void bfd_start_neighbor(struct bfd_proto *p, struct bfd_neighbor *n) { n->active = 1; if (n->multihop) { n->req = bfd_request_session(p->p.pool, n->addr, n->local, NULL, NULL, NULL); return; } struct neighbor *nb = neigh_find2(&p->p, &n->addr, n->iface, NEF_STICKY); if (!nb) { log(L_ERR "%s: Invalid remote address %I%J", p->p.name, n->addr, n->iface); return; } if (nb->data) { log(L_ERR "%s: Duplicate neighbor %I", p->p.name, n->addr); return; } n->neigh = nb; nb->data = n; if (nb->scope > 0) bfd_neigh_notify(nb); else TRACE(D_EVENTS, "Waiting for %I%J to become my neighbor", n->addr, n->iface); } static void bfd_stop_neighbor(struct bfd_proto *p, struct bfd_neighbor *n) { if (n->neigh) n->neigh->data = NULL; n->neigh = NULL; rfree(n->req); n->req = NULL; } static inline int bfd_same_neighbor(struct bfd_neighbor *x, struct bfd_neighbor *y) { return ipa_equal(x->addr, y->addr) && ipa_equal(x->local, y->local) && (x->iface == y->iface) && (x->multihop == y->multihop); } static void bfd_reconfigure_neighbors(struct bfd_proto *p, struct bfd_config *new) { struct bfd_config *old = (struct bfd_config *) (p->p.cf); struct bfd_neighbor *on, *nn; WALK_LIST(on, old->neigh_list) { WALK_LIST(nn, new->neigh_list) if (bfd_same_neighbor(nn, on)) { nn->neigh = on->neigh; if (nn->neigh) nn->neigh->data = nn; nn->req = on->req; nn->active = 1; return; } bfd_stop_neighbor(p, on); } WALK_LIST(nn, new->neigh_list) if (!nn->active) bfd_start_neighbor(p, nn); } /* * BFD notify socket */ /* This core notify code should be replaced after main loop transition to birdloop */ int pipe(int pipefd[2]); void pipe_drain(int fd); void pipe_kick(int fd); static int bfd_notify_hook(sock *sk, int len) { struct bfd_proto *p = sk->data; struct bfd_session *s; list tmp_list; u8 state, diag; node *n, *nn; pipe_drain(sk->fd); bfd_lock_sessions(p); init_list(&tmp_list); add_tail_list(&tmp_list, &p->notify_list); init_list(&p->notify_list); bfd_unlock_sessions(p); WALK_LIST_FIRST(s, tmp_list) { bfd_lock_sessions(p); rem2_node(&s->n); state = s->loc_state; diag = s->loc_diag; bfd_unlock_sessions(p); /* FIXME: convert to btime and move to bfd_session_update_state() */ s->last_state_change = now; s->notify_running = 1; WALK_LIST_DELSAFE(n, nn, s->request_list) bfd_request_notify(SKIP_BACK(struct bfd_request, n, n), state, diag); s->notify_running = 0; /* Remove the session if all requests were removed in notify hooks */ if (EMPTY_LIST(s->request_list)) bfd_remove_session(p, s); } return 0; } static inline void bfd_notify_kick(struct bfd_proto *p) { pipe_kick(p->notify_ws->fd); } static void bfd_noterr_hook(sock *sk, int err) { struct bfd_proto *p = sk->data; log(L_ERR "%s: Notify socket error: %m", p->p.name, err); } static void bfd_notify_init(struct bfd_proto *p) { int pfds[2]; sock *sk; int rv = pipe(pfds); if (rv < 0) die("pipe: %m"); sk = sk_new(p->p.pool); sk->type = SK_MAGIC; sk->rx_hook = bfd_notify_hook; sk->err_hook = bfd_noterr_hook; sk->fd = pfds[0]; sk->data = p; if (sk_open(sk) < 0) die("bfd: sk_open failed"); p->notify_rs = sk; /* The write sock is not added to any event loop */ sk = sk_new(p->p.pool); sk->type = SK_MAGIC; sk->fd = pfds[1]; sk->data = p; sk->flags = SKF_THREAD; if (sk_open(sk) < 0) die("bfd: sk_open failed"); p->notify_ws = sk; } /* * BFD protocol glue */ void bfd_init_all(void) { init_list(&bfd_proto_list); init_list(&bfd_wait_list); } static struct proto * bfd_init(struct proto_config *c) { struct proto *p = proto_new(c, sizeof(struct bfd_proto)); p->neigh_notify = bfd_neigh_notify; return p; } static int bfd_start(struct proto *P) { struct bfd_proto *p = (struct bfd_proto *) P; struct bfd_config *cf = (struct bfd_config *) (P->cf); p->loop = birdloop_new(); p->tpool = rp_new(NULL, "BFD thread root"); pthread_spin_init(&p->lock, PTHREAD_PROCESS_PRIVATE); p->session_slab = sl_new(P->pool, sizeof(struct bfd_session)); HASH_INIT(p->session_hash_id, P->pool, 8); HASH_INIT(p->session_hash_ip, P->pool, 8); init_list(&p->iface_list); init_list(&p->notify_list); bfd_notify_init(p); add_tail(&bfd_proto_list, &p->bfd_node); birdloop_enter(p->loop); p->rx_1 = bfd_open_rx_sk(p, 0); p->rx_m = bfd_open_rx_sk(p, 1); birdloop_leave(p->loop); bfd_take_requests(p); struct bfd_neighbor *n; WALK_LIST(n, cf->neigh_list) bfd_start_neighbor(p, n); birdloop_start(p->loop); return PS_UP; } static int bfd_shutdown(struct proto *P) { struct bfd_proto *p = (struct bfd_proto *) P; struct bfd_config *cf = (struct bfd_config *) (P->cf); rem_node(&p->bfd_node); birdloop_stop(p->loop); struct bfd_neighbor *n; WALK_LIST(n, cf->neigh_list) bfd_stop_neighbor(p, n); bfd_drop_requests(p); /* FIXME: This is hack */ birdloop_enter(p->loop); rfree(p->tpool); birdloop_leave(p->loop); birdloop_free(p->loop); return PS_DOWN; } static int bfd_reconfigure(struct proto *P, struct proto_config *c) { struct bfd_proto *p = (struct bfd_proto *) P; // struct bfd_config *old = (struct bfd_config *) (P->cf); struct bfd_config *new = (struct bfd_config *) c; struct bfd_iface *ifa; birdloop_mask_wakeups(p->loop); WALK_LIST(ifa, p->iface_list) bfd_reconfigure_iface(p, ifa, new); HASH_WALK(p->session_hash_id, next_id, s) { if (s->ifa->changed) bfd_reconfigure_session(p, s); } HASH_WALK_END; bfd_reconfigure_neighbors(p, new); birdloop_unmask_wakeups(p->loop); return 1; } /* Ensure one instance */ struct bfd_config *bfd_cf; static void bfd_preconfig(struct protocol *P UNUSED, struct config *c UNUSED) { bfd_cf = NULL; } static void bfd_copy_config(struct proto_config *dest, struct proto_config *src) { struct bfd_config *d = (struct bfd_config *) dest; // struct bfd_config *s = (struct bfd_config *) src; /* We clean up patt_list and neigh_list, neighbors and ifaces are non-sharable */ init_list(&d->patt_list); init_list(&d->neigh_list); } void bfd_show_sessions(struct proto *P) { byte tbuf[TM_DATETIME_BUFFER_SIZE]; struct bfd_proto *p = (struct bfd_proto *) P; uint state, diag; u32 tx_int, timeout; const char *ifname; if (p->p.proto_state != PS_UP) { cli_msg(-1020, "%s: is not up", p->p.name); cli_msg(0, ""); return; } cli_msg(-1020, "%s:", p->p.name); cli_msg(-1020, "%-25s %-10s %-10s %-10s %8s %8s", "IP address", "Interface", "State", "Since", "Interval", "Timeout"); HASH_WALK(p->session_hash_id, next_id, s) { /* FIXME: this is thread-unsafe, but perhaps harmless */ state = s->loc_state; diag = s->loc_diag; ifname = (s->ifa && s->ifa->sk->iface) ? s->ifa->sk->iface->name : "---"; tx_int = s->last_tx ? (MAX(s->des_min_tx_int, s->rem_min_rx_int) TO_MS) : 0; timeout = (MAX(s->req_min_rx_int, s->rem_min_tx_int) TO_MS) * s->rem_detect_mult; state = (state < 4) ? state : 0; tm_format_datetime(tbuf, &config->tf_proto, s->last_state_change); cli_msg(-1020, "%-25I %-10s %-10s %-10s %3u.%03u %3u.%03u", s->addr, ifname, bfd_state_names[state], tbuf, tx_int / 1000, tx_int % 1000, timeout / 1000, timeout % 1000); } HASH_WALK_END; cli_msg(0, ""); } struct protocol proto_bfd = { .name = "BFD", .template = "bfd%d", .init = bfd_init, .start = bfd_start, .shutdown = bfd_shutdown, .reconfigure = bfd_reconfigure, .preconfig = bfd_preconfig, .copy_config = bfd_copy_config, }; bird-1.4.0/proto/bfd/io.c0000644000103200001440000003212012244117701014066 0ustar feelausers/* * BIRD -- I/O and event loop * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include #include #include #include #include #include #include #include #include "nest/bird.h" #include "proto/bfd/io.h" #include "lib/buffer.h" #include "lib/heap.h" #include "lib/lists.h" #include "lib/resource.h" #include "lib/event.h" #include "lib/socket.h" struct birdloop { pool *pool; pthread_t thread; pthread_mutex_t mutex; btime last_time; btime real_time; u8 use_monotonic_clock; u8 stop_called; u8 poll_active; u8 wakeup_masked; int wakeup_fds[2]; BUFFER(timer2 *) timers; list event_list; list sock_list; uint sock_num; BUFFER(sock *) poll_sk; BUFFER(struct pollfd) poll_fd; u8 poll_changed; u8 close_scheduled; }; /* * Current thread context */ static pthread_key_t current_loop_key; static inline struct birdloop * birdloop_current(void) { return pthread_getspecific(current_loop_key); } static inline void birdloop_set_current(struct birdloop *loop) { pthread_setspecific(current_loop_key, loop); } static inline void birdloop_init_current(void) { pthread_key_create(¤t_loop_key, NULL); } /* * Time clock */ static void times_update_alt(struct birdloop *loop); static void times_init(struct birdloop *loop) { struct timespec ts; int rv; rv = clock_gettime(CLOCK_MONOTONIC, &ts); if (rv < 0) { log(L_WARN "Monotonic clock is missing"); loop->use_monotonic_clock = 0; loop->last_time = 0; loop->real_time = 0; times_update_alt(loop); return; } if ((ts.tv_sec < 0) || (((s64) ts.tv_sec) > ((s64) 1 << 40))) log(L_WARN "Monotonic clock is crazy"); loop->use_monotonic_clock = 1; loop->last_time = ((s64) ts.tv_sec S) + (ts.tv_nsec / 1000); loop->real_time = 0; } static void times_update_pri(struct birdloop *loop) { struct timespec ts; int rv; rv = clock_gettime(CLOCK_MONOTONIC, &ts); if (rv < 0) die("clock_gettime: %m"); btime new_time = ((s64) ts.tv_sec S) + (ts.tv_nsec / 1000); if (new_time < loop->last_time) log(L_ERR "Monotonic clock is broken"); loop->last_time = new_time; loop->real_time = 0; } static void times_update_alt(struct birdloop *loop) { struct timeval tv; int rv; rv = gettimeofday(&tv, NULL); if (rv < 0) die("gettimeofday: %m"); btime new_time = ((s64) tv.tv_sec S) + tv.tv_usec; btime delta = new_time - loop->real_time; if ((delta < 0) || (delta > (60 S))) { if (loop->real_time) log(L_WARN "Time jump, delta %d us", (int) delta); delta = 100 MS; } loop->last_time += delta; loop->real_time = new_time; } static void times_update(struct birdloop *loop) { if (loop->use_monotonic_clock) times_update_pri(loop); else times_update_alt(loop); } btime current_time(void) { return birdloop_current()->last_time; } /* * Wakeup code for birdloop */ static void pipe_new(int *pfds) { int rv = pipe(pfds); if (rv < 0) die("pipe: %m"); if (fcntl(pfds[0], F_SETFL, O_NONBLOCK) < 0) die("fcntl(O_NONBLOCK): %m"); if (fcntl(pfds[1], F_SETFL, O_NONBLOCK) < 0) die("fcntl(O_NONBLOCK): %m"); } void pipe_drain(int fd) { char buf[64]; int rv; try: rv = read(fd, buf, 64); if (rv < 0) { if (errno == EINTR) goto try; if (errno == EAGAIN) return; die("wakeup read: %m"); } if (rv == 64) goto try; } void pipe_kick(int fd) { u64 v = 1; int rv; try: rv = write(fd, &v, sizeof(u64)); if (rv < 0) { if (errno == EINTR) goto try; if (errno == EAGAIN) return; die("wakeup write: %m"); } } static inline void wakeup_init(struct birdloop *loop) { pipe_new(loop->wakeup_fds); } static inline void wakeup_drain(struct birdloop *loop) { pipe_drain(loop->wakeup_fds[0]); } static inline void wakeup_do_kick(struct birdloop *loop) { pipe_kick(loop->wakeup_fds[1]); } static inline void wakeup_kick(struct birdloop *loop) { if (!loop->wakeup_masked) wakeup_do_kick(loop); else loop->wakeup_masked = 2; } /* * Events */ static inline uint events_waiting(struct birdloop *loop) { return !EMPTY_LIST(loop->event_list); } static inline void events_init(struct birdloop *loop) { init_list(&loop->event_list); } static void events_fire(struct birdloop *loop) { times_update(loop); ev_run_list(&loop->event_list); } void ev2_schedule(event *e) { struct birdloop *loop = birdloop_current(); if (loop->poll_active && EMPTY_LIST(loop->event_list)) wakeup_kick(loop); if (e->n.next) rem_node(&e->n); add_tail(&loop->event_list, &e->n); } /* * Timers */ #define TIMER_LESS(a,b) ((a)->expires < (b)->expires) #define TIMER_SWAP(heap,a,b,t) (t = heap[a], heap[a] = heap[b], heap[b] = t, \ heap[a]->index = (a), heap[b]->index = (b)) static inline uint timers_count(struct birdloop *loop) { return loop->timers.used - 1; } static inline timer2 *timers_first(struct birdloop *loop) { return (loop->timers.used > 1) ? loop->timers.data[1] : NULL; } static void tm2_free(resource *r) { timer2 *t = (timer2 *) r; tm2_stop(t); } static void tm2_dump(resource *r) { timer2 *t = (timer2 *) r; debug("(code %p, data %p, ", t->hook, t->data); if (t->randomize) debug("rand %d, ", t->randomize); if (t->recurrent) debug("recur %d, ", t->recurrent); if (t->expires) debug("expires in %d ms)\n", (t->expires - current_time()) TO_MS); else debug("inactive)\n"); } static struct resclass tm2_class = { "Timer", sizeof(timer2), tm2_free, tm2_dump, NULL, NULL }; timer2 * tm2_new(pool *p) { timer2 *t = ralloc(p, &tm2_class); t->index = -1; return t; } void tm2_set(timer2 *t, btime when) { struct birdloop *loop = birdloop_current(); uint tc = timers_count(loop); if (!t->expires) { t->index = ++tc; t->expires = when; BUFFER_PUSH(loop->timers) = t; HEAP_INSERT(loop->timers.data, tc, timer2 *, TIMER_LESS, TIMER_SWAP); } else if (t->expires < when) { t->expires = when; HEAP_INCREASE(loop->timers.data, tc, timer2 *, TIMER_LESS, TIMER_SWAP, t->index); } else if (t->expires > when) { t->expires = when; HEAP_DECREASE(loop->timers.data, tc, timer2 *, TIMER_LESS, TIMER_SWAP, t->index); } if (loop->poll_active && (t->index == 1)) wakeup_kick(loop); } void tm2_start(timer2 *t, btime after) { tm2_set(t, current_time() + MAX(after, 0)); } void tm2_stop(timer2 *t) { if (!t->expires) return; struct birdloop *loop = birdloop_current(); uint tc = timers_count(loop); HEAP_DELETE(loop->timers.data, tc, timer2 *, TIMER_LESS, TIMER_SWAP, t->index); BUFFER_POP(loop->timers); t->index = -1; t->expires = 0; } static void timers_init(struct birdloop *loop) { BUFFER_INIT(loop->timers, loop->pool, 4); BUFFER_PUSH(loop->timers) = NULL; } static void timers_fire(struct birdloop *loop) { btime base_time; timer2 *t; times_update(loop); base_time = loop->last_time; while (t = timers_first(loop)) { if (t->expires > base_time) return; if (t->recurrent) { btime when = t->expires + t->recurrent; if (when <= loop->last_time) when = loop->last_time + t->recurrent; if (t->randomize) when += random() % (t->randomize + 1); tm2_set(t, when); } else tm2_stop(t); t->hook(t); } } /* * Sockets */ static void sockets_init(struct birdloop *loop) { init_list(&loop->sock_list); loop->sock_num = 0; BUFFER_INIT(loop->poll_sk, loop->pool, 4); BUFFER_INIT(loop->poll_fd, loop->pool, 4); loop->poll_changed = 1; /* add wakeup fd */ } static void sockets_add(struct birdloop *loop, sock *s) { add_tail(&loop->sock_list, &s->n); loop->sock_num++; s->index = -1; loop->poll_changed = 1; if (loop->poll_active) wakeup_kick(loop); } void sk_start(sock *s) { struct birdloop *loop = birdloop_current(); sockets_add(loop, s); } static void sockets_remove(struct birdloop *loop, sock *s) { rem_node(&s->n); loop->sock_num--; if (s->index >= 0) loop->poll_sk.data[s->index] = NULL; s->index = -1; loop->poll_changed = 1; /* Wakeup moved to sk_stop() */ } void sk_stop(sock *s) { struct birdloop *loop = birdloop_current(); sockets_remove(loop, s); if (loop->poll_active) { loop->close_scheduled = 1; wakeup_kick(loop); } else close(s->fd); s->fd = -1; } static inline uint sk_want_events(sock *s) { return (s->rx_hook ? POLLIN : 0) | ((s->ttx != s->tpos) ? POLLOUT : 0); } /* FIXME: this should be called from sock code static void sockets_update(struct birdloop *loop, sock *s) { if (s->index >= 0) loop->poll_fd.data[s->index].events = sk_want_events(s); } */ static void sockets_prepare(struct birdloop *loop) { BUFFER_SET(loop->poll_sk, loop->sock_num + 1); BUFFER_SET(loop->poll_fd, loop->sock_num + 1); struct pollfd *pfd = loop->poll_fd.data; sock **psk = loop->poll_sk.data; int i = 0; node *n; WALK_LIST(n, loop->sock_list) { sock *s = SKIP_BACK(sock, n, n); ASSERT(i < loop->sock_num); s->index = i; *psk = s; pfd->fd = s->fd; pfd->events = sk_want_events(s); pfd->revents = 0; pfd++; psk++; i++; } ASSERT(i == loop->sock_num); /* Add internal wakeup fd */ *psk = NULL; pfd->fd = loop->wakeup_fds[0]; pfd->events = POLLIN; pfd->revents = 0; loop->poll_changed = 0; } static void sockets_close_fds(struct birdloop *loop) { struct pollfd *pfd = loop->poll_fd.data; sock **psk = loop->poll_sk.data; int poll_num = loop->poll_fd.used - 1; int i; for (i = 0; i < poll_num; i++) if (psk[i] == NULL) close(pfd[i].fd); loop->close_scheduled = 0; } int sk_read(sock *s); int sk_write(sock *s); static void sockets_fire(struct birdloop *loop) { struct pollfd *pfd = loop->poll_fd.data; sock **psk = loop->poll_sk.data; int poll_num = loop->poll_fd.used - 1; times_update(loop); /* Last fd is internal wakeup fd */ if (pfd[loop->sock_num].revents & POLLIN) wakeup_drain(loop); int i; for (i = 0; i < poll_num; pfd++, psk++, i++) { int e = 1; if (! pfd->revents) continue; if (pfd->revents & POLLNVAL) die("poll: invalid fd %d", pfd->fd); if (pfd->revents & POLLIN) while (e && *psk && (*psk)->rx_hook) e = sk_read(*psk); e = 1; if (pfd->revents & POLLOUT) while (e && *psk) e = sk_write(*psk); } } /* * Birdloop */ static void * birdloop_main(void *arg); struct birdloop * birdloop_new(void) { /* FIXME: this init should be elsewhere and thread-safe */ static int init = 0; if (!init) { birdloop_init_current(); init = 1; } pool *p = rp_new(NULL, "Birdloop root"); struct birdloop *loop = mb_allocz(p, sizeof(struct birdloop)); loop->pool = p; pthread_mutex_init(&loop->mutex, NULL); times_init(loop); wakeup_init(loop); events_init(loop); timers_init(loop); sockets_init(loop); return loop; } void birdloop_start(struct birdloop *loop) { int rv = pthread_create(&loop->thread, NULL, birdloop_main, loop); if (rv) die("pthread_create(): %M", rv); } void birdloop_stop(struct birdloop *loop) { pthread_mutex_lock(&loop->mutex); loop->stop_called = 1; wakeup_do_kick(loop); pthread_mutex_unlock(&loop->mutex); int rv = pthread_join(loop->thread, NULL); if (rv) die("pthread_join(): %M", rv); } void birdloop_free(struct birdloop *loop) { rfree(loop->pool); } void birdloop_enter(struct birdloop *loop) { /* TODO: these functions could save and restore old context */ pthread_mutex_lock(&loop->mutex); birdloop_set_current(loop); } void birdloop_leave(struct birdloop *loop) { /* TODO: these functions could save and restore old context */ birdloop_set_current(NULL); pthread_mutex_unlock(&loop->mutex); } void birdloop_mask_wakeups(struct birdloop *loop) { pthread_mutex_lock(&loop->mutex); loop->wakeup_masked = 1; pthread_mutex_unlock(&loop->mutex); } void birdloop_unmask_wakeups(struct birdloop *loop) { pthread_mutex_lock(&loop->mutex); if (loop->wakeup_masked == 2) wakeup_do_kick(loop); loop->wakeup_masked = 0; pthread_mutex_unlock(&loop->mutex); } static void * birdloop_main(void *arg) { struct birdloop *loop = arg; timer2 *t; int rv, timeout; birdloop_set_current(loop); pthread_mutex_lock(&loop->mutex); while (1) { events_fire(loop); timers_fire(loop); times_update(loop); if (events_waiting(loop)) timeout = 0; else if (t = timers_first(loop)) timeout = (tm2_remains(t) TO_MS) + 1; else timeout = -1; if (loop->poll_changed) sockets_prepare(loop); loop->poll_active = 1; pthread_mutex_unlock(&loop->mutex); try: rv = poll(loop->poll_fd.data, loop->poll_fd.used, timeout); if (rv < 0) { if (errno == EINTR || errno == EAGAIN) goto try; die("poll: %m"); } pthread_mutex_lock(&loop->mutex); loop->poll_active = 0; if (loop->close_scheduled) sockets_close_fds(loop); if (loop->stop_called) break; if (rv) sockets_fire(loop); timers_fire(loop); } loop->stop_called = 0; pthread_mutex_unlock(&loop->mutex); return NULL; } bird-1.4.0/proto/bfd/Makefile0000644000103200001440000000012412244117701014752 0ustar feelauserssource=bfd.c packets.c io.c root-rel=../../ dir-name=proto/bfd include ../../Rules bird-1.4.0/configure0000755000103200001440000062235012244656163013350 0ustar feelausers#! /bin/sh # From configure.in Id. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.67. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software # Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="conf/confbase.Y" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='LTLIBOBJS LIBOBJS CLIENT_LIBS CLIENT EGREP GREP protocols iproutedir sysdep_dirs RANLIB INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM CPP host_os host_vendor host_cpu host build_os build_vendor build_cpu build OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC CONTROL_SOCKET CONFIG_FILE SUFFIX runtimedir srcdir_rel_mf exedir objdir M4 BISON FLEX target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_debug enable_memcheck enable_client enable_ipv6 enable_pthreads with_suffix with_sysconfig with_protocols with_sysinclude with_runtimedir with_iproutedir ' ac_precious_vars='build_alias host_alias target_alias FLEX BISON M4 CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-debug enable internal debugging routines (default: disabled) --enable-memcheck check memory allocations when debugging (default: enabled) --enable-client enable building of BIRD client (default: enabled) --enable-ipv6 enable building of IPv6 version (default: disabled) --enable-pthreads enable POSIX threads support (default: detect) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-suffix=STRING use specified suffix for BIRD files (default: 6 for IPv6 version) --with-sysconfig=FILE use specified BIRD system configuration file --with-protocols=LIST include specified routing protocols (default: all) --with-sysinclude=PATH search for system includes on specified place --with-runtimedir=PATH path for runtime files (default: $(localstatedir)/run) --with-iproutedir=PATH path to iproute2 config files (default: /etc/iproute2) Some influential environment variables: FLEX location of the Flex program BISON location of the Bison program M4 location of the M4 program CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.67 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_header_compile # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval "test \"\${$3+set}\"" = set; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_header_mongrel # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid; break else as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=$ac_mid; break else as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid else as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval () { return $2; } static unsigned long int ulongval () { return $2; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : echo >>conftest.val; read $3 config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.67. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5 ; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in tools "$srcdir"/tools; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then : enableval=$enable_debug; else enable_debug=no fi # Check whether --enable-memcheck was given. if test "${enable_memcheck+set}" = set; then : enableval=$enable_memcheck; else enable_memcheck=yes fi # Check whether --enable-client was given. if test "${enable_client+set}" = set; then : enableval=$enable_client; else enable_client=yes fi # Check whether --enable-ipv6 was given. if test "${enable_ipv6+set}" = set; then : enableval=$enable_ipv6; else enable_ipv6=no fi # Check whether --enable-pthreads was given. if test "${enable_pthreads+set}" = set; then : enableval=$enable_pthreads; else enable_pthreads=try fi # Check whether --with-suffix was given. if test "${with_suffix+set}" = set; then : withval=$with_suffix; given_suffix="yes" fi # Check whether --with-sysconfig was given. if test "${with_sysconfig+set}" = set; then : withval=$with_sysconfig; fi # Check whether --with-protocols was given. if test "${with_protocols+set}" = set; then : withval=$with_protocols; else with_protocols="all" fi # Check whether --with-sysinclude was given. if test "${with_sysinclude+set}" = set; then : withval=$with_sysinclude; fi # Check whether --with-runtimedir was given. if test "${with_runtimedir+set}" = set; then : withval=$with_runtimedir; runtimedir="$with_runtimedir" else runtimedir="\$(localstatedir)/run" fi # Check whether --with-iproutedir was given. if test "${with_iproutedir+set}" = set; then : withval=$with_iproutedir; given_iproutedir="yes" fi if test "$srcdir" = . ; then # Building in current directory => create obj directory holding all objects objdir=obj mkdir -p obj srcdir_rel=.. makefiles="Makefile:tools/Makefile-top.in obj/Makefile:tools/Makefile.in obj/Rules:tools/Rules.in" exedir=.. else # Building in separate directory objdir=. srcdir_rel=$srcdir makefiles="Makefile:tools/Makefile.in Rules:tools/Rules.in" exedir=. fi case $srcdir_rel in /*) srcdir_rel_mf=$srcdir_rel ;; *) srcdir_rel_mf="\$(root-rel)$srcdir_rel" ;; esac if test "$enable_ipv6" = yes ; then ip=ipv6 SUFFIX=6 proto_radv=radv else ip=ipv4 SUFFIX="" fi if test "$given_suffix" = yes ; then SUFFIX="$with_suffix" fi if test "$enable_debug" = yes ; then CONFIG_FILE="bird$SUFFIX.conf" CONTROL_SOCKET="bird$SUFFIX.ctl" else CONFIG_FILE="\$(sysconfdir)/bird$SUFFIX.conf" CONTROL_SOCKET="$runtimedir/bird$SUFFIX.ctl" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5 ; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5 ; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5 ; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5 ; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if test "${ac_cv_objext+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5 ; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 $as_echo_n "checking for library containing clock_gettime... " >&6; } if test "${ac_cv_search_clock_gettime+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char clock_gettime (); int main () { return clock_gettime (); ; return 0; } _ACEOF for ac_lib in '' c rt posix4; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_clock_gettime=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_clock_gettime+set}" = set; then : break fi done if test "${ac_cv_search_clock_gettime+set}" = set; then : else ac_cv_search_clock_gettime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 $as_echo "$ac_cv_search_clock_gettime" >&6; } ac_res=$ac_cv_search_clock_gettime if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if test "${ac_cv_build+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if test "${ac_cv_host+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac # Store this value because ac_test_CFLAGS is overwritten by AC_PROG_CC if test "$ac_test_CFLAGS" != set ; then bird_cflags_default=yes fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5 ; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -z "$GCC" ; then as_fn_error $? "This program requires the GNU C Compiler." "$LINENO" 5 fi # Enable threads by default just in Linux and FreeBSD if test "$enable_pthreads" = try ; then case "$host_os" in (linux* | freebsd*) enable_pthreads=try ;; (*) enable_pthreads=no ;; esac fi if test "$enable_pthreads" != no ; then bird_tmp_cflags="$CFLAGS" CFLAGS="$CFLAGS -pthread" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads are available" >&5 $as_echo_n "checking whether POSIX threads are available... " >&6; } if test "${bird_cv_lib_pthreads+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pthread_t pt; pthread_create(&pt, NULL, NULL, NULL); pthread_spinlock_t lock; pthread_spin_lock(&lock); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : bird_cv_lib_pthreads=yes else bird_cv_lib_pthreads=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_lib_pthreads" >&5 $as_echo "$bird_cv_lib_pthreads" >&6; } CFLAGS="$bird_tmp_cflags" if test "$bird_cv_lib_pthreads" = yes ; then $as_echo "#define USE_PTHREADS 1" >>confdefs.h CFLAGS="$CFLAGS -pthread" LDFLAGS="$LDFLAGS -pthread" proto_bfd=bfd elif test "$enable_pthreads" = yes ; then as_fn_error $? "POSIX threads not available." "$LINENO" 5 fi if test "$enable_pthreads" = try ; then enable_pthreads="$bird_cv_lib_pthreads" fi fi if test "$bird_cflags_default" = yes ; then bird_tmp_cflags="$CFLAGS" CFLAGS="-Wall -Wno-pointer-sign" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -Wno-pointer-sign" >&5 $as_echo_n "checking whether CC supports -Wno-pointer-sign... " >&6; } if test "${bird_cv_c_option_wno_pointer_sign+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : bird_cv_c_option_wno_pointer_sign=yes else bird_cv_c_option_wno_pointer_sign=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_wno_pointer_sign" >&5 $as_echo "$bird_cv_c_option_wno_pointer_sign" >&6; } CFLAGS="$bird_tmp_cflags" bird_tmp_cflags="$CFLAGS" CFLAGS=" -fno-strict-aliasing" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -fno-strict-aliasing" >&5 $as_echo_n "checking whether CC supports -fno-strict-aliasing... " >&6; } if test "${bird_cv_c_option_fno_strict_aliasing+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : bird_cv_c_option_fno_strict_aliasing=yes else bird_cv_c_option_fno_strict_aliasing=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_fno_strict_aliasing" >&5 $as_echo "$bird_cv_c_option_fno_strict_aliasing" >&6; } CFLAGS="$bird_tmp_cflags" bird_tmp_cflags="$CFLAGS" CFLAGS=" -fno-strict-overflow" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -fno-strict-overflow" >&5 $as_echo_n "checking whether CC supports -fno-strict-overflow... " >&6; } if test "${bird_cv_c_option_fno_strict_overflow+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : bird_cv_c_option_fno_strict_overflow=yes else bird_cv_c_option_fno_strict_overflow=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_option_fno_strict_overflow" >&5 $as_echo "$bird_cv_c_option_fno_strict_overflow" >&6; } CFLAGS="$bird_tmp_cflags" CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wno-parentheses" if test "$bird_cv_c_option_wno_pointer_sign" = yes ; then CFLAGS="$CFLAGS -Wno-pointer-sign" fi if test "$bird_cv_c_option_fno_strict_aliasing" = yes ; then CFLAGS="$CFLAGS -fno-strict-aliasing" fi if test "$bird_cv_c_option_fno_strict_overflow" = yes ; then CFLAGS="$CFLAGS -fno-strict-overflow" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS" >&5 $as_echo_n "checking CFLAGS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5 $as_echo "$CFLAGS" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5 ; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi # Extract the first word of "flex", so it can be a program name with args. set dummy flex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_FLEX+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$FLEX"; then ac_cv_prog_FLEX="$FLEX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_FLEX="flex" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi FLEX=$ac_cv_prog_FLEX if test -n "$FLEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 $as_echo "$FLEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "bison", so it can be a program name with args. set dummy bison; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_BISON+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$BISON"; then ac_cv_prog_BISON="$BISON" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_BISON="bison" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi BISON=$ac_cv_prog_BISON if test -n "$BISON"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 $as_echo "$BISON" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi for ac_prog in gm4 m4 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_M4+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$M4"; then ac_cv_prog_M4="$M4" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_M4="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi M4=$ac_cv_prog_M4 if test -n "$M4"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 $as_echo "$M4" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$M4" && break done test -z "$FLEX" && as_fn_error $? "Flex is missing." "$LINENO" 5 test -z "$BISON" && as_fn_error $? "Bison is missing." "$LINENO" 5 test -z "$M4" && as_fn_error $? "M4 is missing." "$LINENO" 5 # Check for GNU $M4 case `"$M4" --version 2>&1` in *GNU*) ;; *) as_fn_error $? "Provided M4 is not GNU M4." "$LINENO" 5 ;; esac if test -n "$with_sysconfig" -a "$with_sysconfig" != no ; then if test -f $with_sysconfig ; then sysdesc=$with_sysconfig else sysdesc=$srcdir/sysdep/cf/$with_sysconfig if ! test -f $sysdesc ; then sysdesc=$sysdesc.h fi fi elif test -f sysconfig.h ; then sysdesc=sysconfig else case "$ip:$host_os" in ipv6:linux*) sysdesc=linux-v6 default_iproutedir="/etc/iproute2" ;; ipv4:linux*) sysdesc=linux default_iproutedir="/etc/iproute2" ;; ipv6:netbsd*) sysdesc=bsd-v6 CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" LDFLAGS="$LDFLAGS -L/usr/pkg/lib -R/usr/pkg/lib" ;; ipv4:netbsd*) sysdesc=bsd CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" LDFLAGS="$LDFLAGS -L/usr/pkg/lib -R/usr/pkg/lib" ;; ipv6:freebsd*) sysdesc=bsd-v6 ;; ipv4:freebsd*) sysdesc=bsd ;; ipv6:dragonfly*) sysdesc=bsd-v6 ;; ipv4:dragonfly*) sysdesc=bsd ;; ipv6:kfreebsd*) sysdesc=bsd-v6 ;; ipv4:kfreebsd*) sysdesc=bsd ;; ipv6:openbsd*) sysdesc=bsd-v6 ;; ipv4:openbsd*) sysdesc=bsd ;; *) as_fn_error $? "Cannot determine correct system configuration. Please use --with-sysconfig to set it manually." "$LINENO" 5 ;; esac sysdesc=$srcdir/sysdep/cf/$sysdesc.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking which OS configuration should we use" >&5 $as_echo_n "checking which OS configuration should we use... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sysdesc" >&5 $as_echo "$sysdesc" >&6; } if ! test -f $sysdesc ; then as_fn_error $? "The system configuration file is missing." "$LINENO" 5 fi sysname=`echo $sysdesc | sed 's/\.h$//'` cat >>confdefs.h <<_ACEOF #define SYSCONF_INCLUDE "$sysdesc" _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-dependent directories" >&5 $as_echo_n "checking system-dependent directories... " >&6; } sysdep_dirs="`sed <$sysdesc '/^Link: /!d;s/^Link: \(.*\)$/\1/' | tr '\012' ' '` lib" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sysdep_dirs" >&5 $as_echo "$sysdep_dirs" >&6; } if test "$with_iproutedir" = no ; then with_iproutedir= ; fi if test -n "$given_iproutedir" then iproutedir=$with_iproutedir else iproutedir=$default_iproutedir fi all_protocols="$proto_bfd bgp ospf pipe $proto_radv rip static" all_protocols=`echo $all_protocols | sed 's/ /,/g'` if test "$with_protocols" = all ; then with_protocols="$all_protocols" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking protocols" >&5 $as_echo_n "checking protocols... " >&6; } protocols=`echo "$with_protocols" | sed 's/,/ /g'` if test "$protocols" = no ; then protocols= ; fi for a in $protocols ; do if ! test -f $srcdir/proto/$a/Makefile ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } as_fn_error $? "Requested protocol $a not found." "$LINENO" 5 fi cat >>confdefs.h <<_ACEOF #define CONFIG_`echo $a | tr 'a-z' 'A-Z'` 1 _ACEOF done { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } case $sysdesc in */linux*|*/linux-v6*) ac_fn_c_check_header_compile "$LINENO" "linux/rtnetlink.h" "ac_cv_header_linux_rtnetlink_h" " #include #include " if test "x$ac_cv_header_linux_rtnetlink_h" = x""yes; then : else as_fn_error $? "Appropriate version of Linux kernel headers not found." "$LINENO" 5 fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if test "${ac_cv_path_GREP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if test "${ac_cv_path_EGREP+set}" = set; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" if test "x$ac_cv_header_syslog_h" = x""yes; then : $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h fi ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" if test "x$ac_cv_header_alloca_h" = x""yes; then : $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'struct sockaddr' has sa_len" >&5 $as_echo_n "checking whether 'struct sockaddr' has sa_len... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { static struct sockaddr sa; int i = sizeof(sa.sa_len); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_SIN_LEN /**/" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if test "${ac_cv_c_bigendian+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) $as_echo "#define CPU_BIG_ENDIAN 1" >>confdefs.h ;; #( no) $as_echo "#define CPU_LITTLE_ENDIAN 1" >>confdefs.h ;; #( universal) $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error $? "Cannot determine CPU endianity." "$LINENO" 5 ;; esac # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 $as_echo_n "checking size of char... " >&6; } if test "${ac_cv_sizeof_char+set}" = set; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : else if test "$ac_cv_type_char" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (char) See \`config.log' for more details" "$LINENO" 5 ; } else ac_cv_sizeof_char=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 $as_echo "$ac_cv_sizeof_char" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_CHAR $ac_cv_sizeof_char _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 $as_echo_n "checking size of short int... " >&6; } if test "${ac_cv_sizeof_short_int+set}" = set; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : else if test "$ac_cv_type_short_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (short int) See \`config.log' for more details" "$LINENO" 5 ; } else ac_cv_sizeof_short_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 $as_echo "$ac_cv_sizeof_short_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } if test "${ac_cv_sizeof_int+set}" = set; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : else if test "$ac_cv_type_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int) See \`config.log' for more details" "$LINENO" 5 ; } else ac_cv_sizeof_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 $as_echo "$ac_cv_sizeof_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_INT $ac_cv_sizeof_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 $as_echo_n "checking size of long int... " >&6; } if test "${ac_cv_sizeof_long_int+set}" = set; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : else if test "$ac_cv_type_long_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long int) See \`config.log' for more details" "$LINENO" 5 ; } else ac_cv_sizeof_long_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 $as_echo "$ac_cv_sizeof_long_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 $as_echo_n "checking size of long long int... " >&6; } if test "${ac_cv_sizeof_long_long_int+set}" = set; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : else if test "$ac_cv_type_long_long_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long long int) See \`config.log' for more details" "$LINENO" 5 ; } else ac_cv_sizeof_long_long_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 $as_echo "$ac_cv_sizeof_long_long_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int _ACEOF for size in 1 2 4 8; do bits=`expr $size "*" 8` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $bits-bit type" >&5 $as_echo_n "checking for $bits-bit type... " >&6; } if test $ac_cv_sizeof_int = $size ; then res=int elif test $ac_cv_sizeof_char = $size ; then res=char elif test $ac_cv_sizeof_short_int = $size ; then res="short int" elif test $ac_cv_sizeof_long_int = $size ; then res="long int" elif test $ac_cv_sizeof_long_long_int = $size ; then res="long long int" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } as_fn_error $? "Cannot find $bits-bit integer type." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5 $as_echo "$res" >&6; } cat >>confdefs.h <<_ACEOF #define INTEGER_$bits $res _ACEOF done { $as_echo "$as_me:${as_lineno-$LINENO}: checking usual alignment of structures" >&5 $as_echo_n "checking usual alignment of structures... " >&6; } if test "${bird_cv_c_struct_align+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : bird_cv_c_struct_align=16 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include struct { char x; long int y; } ary[2]; int main(void) { FILE *f = fopen("conftestresult", "w"); if (!f) return 10; fprintf(f, "%d", sizeof(ary)/2); fclose(f); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : bird_cv_c_struct_align=`cat conftestresult` else { $as_echo "$as_me:${as_lineno-$LINENO}: result: test program failed" >&5 $as_echo "test program failed" >&6; } as_fn_error $? "Cannot determine structure alignment" "$LINENO" 5 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_c_struct_align" >&5 $as_echo "$bird_cv_c_struct_align" >&6; } cat >>confdefs.h <<_ACEOF #define CPU_STRUCT_ALIGN $bird_cv_c_struct_align _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking characteristics of time_t" >&5 $as_echo_n "checking characteristics of time_t... " >&6; } if test "${bird_cv_type_time_t+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : bird_cv_type_time_t="32-bit signed" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main(void) { FILE *f = fopen("conftestresult", "w"); if (!f) return 10; fprintf(f, "%d-bit ", sizeof(time_t)*CHAR_BIT); if ((time_t) -1 > 0) fprintf(f, "un"); fprintf(f, "signed"); fclose(f); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : bird_cv_type_time_t=`cat conftestresult` else { $as_echo "$as_me:${as_lineno-$LINENO}: result: test program failed" >&5 $as_echo "test program failed" >&6; } as_fn_error $? "Cannot determine time_t size and signedness." "$LINENO" 5 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_type_time_t" >&5 $as_echo "$bird_cv_type_time_t" >&6; } case "$bird_cv_type_time_t" in *64-bit*) $as_echo "#define TIME_T_IS_64BIT 1" >>confdefs.h ;; esac case "$bird_cv_type_time_t" in *unsigned*) ;; *) $as_echo "#define TIME_T_IS_SIGNED 1" >>confdefs.h ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreqn" >&5 $as_echo_n "checking for struct ip_mreqn... " >&6; } if test "${bird_cv_struct_ip_mreqn+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct ip_mreqn x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : bird_cv_struct_ip_mreqn=yes else bird_cv_struct_ip_mreqn=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bird_cv_struct_ip_mreqn" >&5 $as_echo "$bird_cv_struct_ip_mreqn" >&6; } if test "$bird_cv_struct_ip_mreqn" = yes ; then $as_echo "#define HAVE_STRUCT_IP_MREQN 1" >>confdefs.h fi if test "$enable_debug" = yes ; then $as_echo "#define DEBUGGING 1" >>confdefs.h if test "$enable_memcheck" = yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_debug in -ldmalloc" >&5 $as_echo_n "checking for dmalloc_debug in -ldmalloc... " >&6; } if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldmalloc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dmalloc_debug (); int main () { return dmalloc_debug (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dmalloc_dmalloc_debug=yes else ac_cv_lib_dmalloc_dmalloc_debug=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 $as_echo "$ac_cv_lib_dmalloc_dmalloc_debug" >&6; } if test "x$ac_cv_lib_dmalloc_dmalloc_debug" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBDMALLOC 1 _ACEOF LIBS="-ldmalloc $LIBS" fi if test $ac_cv_lib_dmalloc_dmalloc_debug != yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5 $as_echo_n "checking for malloc in -lefence... " >&6; } if test "${ac_cv_lib_efence_malloc+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lefence $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char malloc (); int main () { return malloc (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_efence_malloc=yes else ac_cv_lib_efence_malloc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5 $as_echo "$ac_cv_lib_efence_malloc" >&6; } if test "x$ac_cv_lib_efence_malloc" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBEFENCE 1 _ACEOF LIBS="-lefence $LIBS" fi fi fi fi CLIENT= CLIENT_LIBS= if test "$enable_client" = yes ; then CLIENT=birdc { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lhistory" >&5 $as_echo_n "checking for add_history in -lhistory... " >&6; } if test "${ac_cv_lib_history_add_history+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhistory $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char add_history (); int main () { return add_history (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_history_add_history=yes else ac_cv_lib_history_add_history=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_add_history" >&5 $as_echo "$ac_cv_lib_history_add_history" >&6; } if test "x$ac_cv_lib_history_add_history" = x""yes; then : CLIENT_LIBS="-lhistory" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 $as_echo_n "checking for tgetent in -lncurses... " >&6; } if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lncurses $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char tgetent (); int main () { return tgetent (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ncurses_tgetent=yes else ac_cv_lib_ncurses_tgetent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then : USE_TERMCAP_LIB=-lncurses else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 $as_echo_n "checking for tgetent in -lcurses... " >&6; } if test "${ac_cv_lib_curses_tgetent+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcurses $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char tgetent (); int main () { return tgetent (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_curses_tgetent=yes else ac_cv_lib_curses_tgetent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 $as_echo "$ac_cv_lib_curses_tgetent" >&6; } if test "x$ac_cv_lib_curses_tgetent" = x""yes; then : USE_TERMCAP_LIB=-lcurses else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfow" >&5 $as_echo_n "checking for tgetent in -ltinfow... " >&6; } if test "${ac_cv_lib_tinfow_tgetent+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ltinfow $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char tgetent (); int main () { return tgetent (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_tinfow_tgetent=yes else ac_cv_lib_tinfow_tgetent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfow_tgetent" >&5 $as_echo "$ac_cv_lib_tinfow_tgetent" >&6; } if test "x$ac_cv_lib_tinfow_tgetent" = x""yes; then : USE_TERMCAP_LIB=-ltinfow else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 $as_echo_n "checking for tgetent in -ltinfo... " >&6; } if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ltinfo $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char tgetent (); int main () { return tgetent (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_tinfo_tgetent=yes else ac_cv_lib_tinfo_tgetent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then : USE_TERMCAP_LIB=-ltinfo { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 $as_echo_n "checking for tgetent in -ltermcap... " >&6; } if test "${ac_cv_lib_termcap_tgetent+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ltermcap $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char tgetent (); int main () { return tgetent (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_termcap_tgetent=yes else ac_cv_lib_termcap_tgetent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then : USE_TERMCAP_LIB=-ltermcap fi fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 $as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; } if test "${ac_cv_lib_readline_rl_callback_read_char+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $USE_TERMCAP_LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char rl_callback_read_char (); int main () { return rl_callback_read_char (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_readline_rl_callback_read_char=yes else ac_cv_lib_readline_rl_callback_read_char=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 $as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; } if test "x$ac_cv_lib_readline_rl_callback_read_char" = x""yes; then : CLIENT_LIBS="-lreadline $CLIENT_LIBS $USE_TERMCAP_LIB" else as_fn_error $? "The client requires GNU readline library 2.1 or newer. Either install the library or use --disable-client to compile without the client." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_crlf in -lreadline" >&5 $as_echo_n "checking for rl_crlf in -lreadline... " >&6; } if test "${ac_cv_lib_readline_rl_crlf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $USE_TERMCAP_LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char rl_crlf (); int main () { return rl_crlf (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_readline_rl_crlf=yes else ac_cv_lib_readline_rl_crlf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_crlf" >&5 $as_echo "$ac_cv_lib_readline_rl_crlf" >&6; } if test "x$ac_cv_lib_readline_rl_crlf" = x""yes; then : $as_echo "#define HAVE_RL_CRLF 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_ding in -lreadline" >&5 $as_echo_n "checking for rl_ding in -lreadline... " >&6; } if test "${ac_cv_lib_readline_rl_ding+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $USE_TERMCAP_LIB $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char rl_ding (); int main () { return rl_ding (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_readline_rl_ding=yes else ac_cv_lib_readline_rl_ding=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_ding" >&5 $as_echo "$ac_cv_lib_readline_rl_ding" >&6; } if test "x$ac_cv_lib_readline_rl_ding" = x""yes; then : $as_echo "#define HAVE_RL_DING 1" >>confdefs.h fi fi mkdir -p $objdir/sysdep ac_config_headers="$ac_config_headers $objdir/sysdep/autoconf.h:sysdep/autoconf.h.in" ac_config_commands="$ac_config_commands merge" ac_config_files="$ac_config_files $makefiles" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : ${CONFIG_STATUS=./config.status} ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.67. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.67, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # srcdir=$srcdir srcdir_rel=$srcdir_rel objdir=$objdir sysdep_dirs="$sysdep_dirs" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "$objdir/sysdep/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS $objdir/sysdep/autoconf.h:sysdep/autoconf.h.in" ;; "merge") CONFIG_COMMANDS="$CONFIG_COMMANDS merge" ;; "$makefiles") CONFIG_FILES="$CONFIG_FILES $makefiles" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_t=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_t"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out" && rm -f "$tmp/out";; *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "merge":C) export CPP="$CPP" $srcdir/tools/mergedirs $srcdir $srcdir_rel $objdir $sysdep_dirs ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi rm -f $objdir/sysdep/paths.h cat >&6 < "/usr/bin/nsgmls", "SGMLSASP" => "/usr/bin/sgmlsasp", "GROFF" => "/usr/bin/groff", "GROFFMACRO" => "-ms", "AWK" => "/usr/share/linuxdoc-tools/awkwhich" }; $ENV{"SGML_CATALOG_FILES"} = "sbase/dtd/catalog"; require "./LinuxDocTools.pm"; &LinuxDocTools::init; my @FileList = LinuxDocTools::process_options ("txt", @ARGV); for my $curfile (@FileList) { LinuxDocTools::process_file ($curfile); } exit 0; bird-1.4.0/doc/b1311.tgz0000644000103200001440000027446412175264721013472 0ustar feelausers‹ÑiõQì[msÛF’ÎgüŠ9åC¨EZ”¢ÔÙŠ®dIvTgË*Y®\nkko I¬@‹D3qþû=Ý=3HZIª.¹ý°ªJ,3==ýþ†iZ%‡£E½Ì¾ø£~žáçäø˜þ=|v4á¿åoúíÛoNN¾8œàßÉÉñÉ·G_<;œ<;ž|¡žýau~[ëJ©/fÆdúÉu¦²BîÏé¿]¾»¸ÿñöJ}ÿöºýðòÍõ…Ú;8º/ï/åÅÑh¢^¥¹ÎÆã«›½³è”žÒ?Wç—g‘:}{u®nÎß^}·÷úêæêîüþÝÝžºxwsusÿÝÞ›4o>^ñÁ}QdVŽžþ}öÝ_ß¿¹:{y}w©>€Â_YõºIó\]çuU$M\§E~:–eXÿæúæ?Õ÷wW¯¾Û›’èNXt÷ÔÝÕ›ïró±>‹¶ñ’/ë">”uq‘×&¯-Ð þ§/ß]þˆÎw€>»ØÓñùYt[™Ç´hl]úÙ…ƒÌËO¿¿£ÿMÎN=e,–Žè¥ú,ˆþ½ÏÏ€â—êñ‡#uø,ZòÃB×*µŠ,H9p·|[—Ò‘{g +º_•ë¥QÿC{¾¢Í:®ek¥sü^ùz© 5y’æs5+*YJ3UnjuW45½ºÔfYä_¢7¦cký`”VqV€Ñ*+Šäjœ·4:§ ÅŒÿ¤ãŸ Š·g§WoÏ{üò\ý`²l¨V Óü~YèG€Í*£“µ2ËL§¹Ið^×#uMï@;úu´‡j]4ª2K³œšj¨<«éÙ¨çû]ô6!8TålUVżÒK5X1êZ% ¿Y>AWFÍ :¸.T’Ú¸xyRଖÅÒ´­i¼P«¢z°´ Ö Q« ºÅy{‘z]‚ˆ¦¦ jP‹ ¤\59“ܤ xÙ¯oÈâ~?!Ì!GE¶?â›Áþ1² ´ 6V V äJW‰*uü`j«¦8À˜§a4-7qm’Èk ‹¢J€4n ¡*VjQXìË‹Z…å C…_ rXEøX’ȬˆuF(´×¨‹(.–Ë&Oc]µÂm”Ñ@« k¤b›ÙBm-#°¼ÊQ‘Qã»:¶ü`ÕEYdÅ|äÔ!!„àËXz±¤³4OTQÖé8´©––¶Zp"_Wi¼>d %ˆ9B:=ðä8à ;.Ÿ4•ÓZO±uœO˜–‰.Y›–Öd€)”‹â…Îç´ÄMR²*VÙ†@™¦ÖsÃHù»dÐ*ÈÊ´I3JnVž3¼›A‹|¤Þ‚uXBÔ±&Б‘Ű/1 “< R㯘ڸÁÂYZ-W´C. s³ qª‰cù,Óœ‘|%‹îš¯ß ðEÞa%&Cú;­”-Mœ‚øo%‚kÓy¾É¨cJÕ”"YQ39é|q@ÜS†z¦q‡! 9éT+Ws“›JgeS•°l$h%keR€=#õª¨ê& ²õmù•fÚµ­HÝáÃÍõ©4›l-ë†fmß­Ö* ‰q-¦À™bʶ*f…ðÞi‘£é±˜ätR"wÐ&M&²Nc¶÷‰HÛÈ[½sEv¯o0Ùêÿ ë|ø4Æù“˜§°ØÞ,yÈ£)ðžã>¸ŠQ÷ö®ÔÉ[«¢N†ÊY9•Ö]M·ÑnU’2ÅMFK6JÄÛäI+!´ýÝ{ ŽÌ¢ ÔÄ9:š«V‰ÙöT]Ï”ë Ö?wl$îÀ>Ü5¸»¾eÆìÕk x©D»Ye žü·™Vº @u]>W«Õè'z3*ªùÞÙ®§ìýénoïî/·Ø¢©bìçfºŽÁ¿CßíxYÕÞS‹¼È”(_¬K=M3Ã!ÊÒeJ×csÅVÄ©s“4@Övj½ZÂ™×ø/H»ìÔöü]_š±ŠEš.9ƒ~Ú2‚vamÊxq4ȃ‰N|ü'Þ=ÔE¢×ðìáx¸L¹;qj"¿:7È,fMí/ƒ·¬ BÄ‘@°hSHˆ/@žXÖ’êdy½˜xglåÀ‡Öo6®F[ØŒ‘:ÇýçNÈfF4È:ÓÌÝÒºÀêïo®Ï¦X,žŸ0ì¹}D±XÀ«–MV§ef6t¥]@„y)~dv¥×êÖQƒ—¯¿¿Øóì:‡<-5y–ΨÀãdcÇ;2þï‰yŠt«÷«´Â¯eØöîýí«ÇÉPñ¿G;Nzç ÜyZC¡{^¹5[Åv‡Vi%šíÁÓRóQü‰ëkð$él…ÏëMƒRPÜeñô£Sº‡­áàvMëaZ €âó+JY*à@LJsòlD±ˆ¢ ˜ë&xÄ™b‚-fÀÇx¥:Þ@´D\ç±2󑌎œÅ8YÒ w[݃1TGâ¬àÝëí—ðé™a[§ÎÖ"€€V™2†d¤ù"5œ.”Î. H!l€…µ¦ F3‹œåuáG÷lŠ™A¼§D$Oï ¸Q“ƒð¶µ3¬á¸rºÞ® %ö»Œ)‹xÑd š=o%1û™åt=0Š}Þ0feêØ§…&± ™0°mp÷‰Ït^ixš#È·$ÁD†ÛÅÚ¦1ôô6æC“XÙ´FÀp[éyc†ÑÅO°FêΔÍ4ƒ#d×$$oÎS¶»›“u oAáˆT¥Sö+p«F‚û‰Ò¯o>¨×ÂD·ü µÜšÑçîÔšWŒ ©ØçCX‘㹨†ñÁ¶h“d ¡Ã'.¨É蜌N†ÞIäŠL½Â^¾¿ªSã_^B&ŸÑ2ç8ë«NÍ9ö ô¢"§ˆ É"SÇÿÀ„‚^ Ùw@Žñx‰\<ÓUÔ5Ð}ÂxÃêR©Fõl©¸F¶þb¾Iç %Id ‚ŽÅÀpò’>à‘᜖š?øxoÅW@ð¤F0 Hlc å+„ÅÆ7±í'$80ͧÈ}ê¦å¶U"Zsùf4í;"l–%&T–˜x(¯9½M;A$©_tój¶†¯©¶N-û€9¬%´Ý G`ÑUÅÁÏÞÁDV¹zÔü’‘ŸL©šmíÀ+¬I“aÔYD þãBp**»…–%bxB´-ÝДj>Åã@D²÷Z¹üW”m+aq–Bð‡ êL#B!Ôû²ð¨«1éä¡Î¶0nhuI¶1Kª¢„²¦ÀË EÃÖ¬°pJpâÖð}¬ñG, œƒ0ۦќN$a*wƒÁóûß |¹É­ª”büVœ§d(>påGOqŽäóá¨èïA·¤â$âsó˜lÈñ“6Knñ6,ܶDGúú2HЕ@ýÄ—ŸˆýŠ×àúëºG‹Ý&ñs½r"Dõ¬ûJK‘JD.¹Lm$Û…w'[Bûë‡Î,‘ N¹”sDvÀ¼×kJsqøÒù+Ê\–pó àRN™ZŸ³è(VQ”+ÑÀL/•N,†þÁÜ=ÀM®s‘X /,„{ô£.úSf¨>’$°Ó­½¨I‰ÁmKtŽ<ùò ¬PU¢Þ^„S$*wHvU™4i…ÍÕô6\œßþíæêþo_ã67EíDÞ™!NêƒA1R/N8¨äE]•¤ú(Ôz(ãlÚ2ÊÝ"=s•ÏZX´“ ´š’´”ÂK Ó¤ Bq;Å‘‹:õDÈŽˆ2IZZ7Õ¼q‘Þ&S½wÜ÷òDoÞ+ óbZ$ë Žw)ÀçsÉ@‚8QšÙV« HDZÜà`Ö’T³• "€M—)2"–M“ Zº,%¤çÖˆ† è[1UI–—Ì]Á“Ÿ[Α+;qDÀø¨p‰…af÷hÊÝZÒÐpeµÖ¦,=ks*BUXéiA¸kц<¢*Uþ˜BM™¢ŽÏ S+@D A|àÒù¶h#moéïjæ>íÂ}ù@ÚiEö‰“ܬ£²`–N+]á*e]ÑÉN/-¢.í¾¸Ä²UœžŽ:Ñÿÿm+xìÌci›ÿwýÛŸÎõþ°3žžÿxvrrüíöüÇá¿æ?þŒŸÚùói7ÓóõæÏÎmÍl¯9ì¬)ïX´xò»ÆEŽ6mDÿµ;üÌ[Ží%suK&O ’àýn¶%º¹ D¯ì…6Š×m¸F ȺíOa›×y¼€[Hò¡R豑ýÌ>µµ/jÛõjàCôÛ´4Ýñƒ+Ý6Ì\xJ\A¤dÛ¢Gô«Ü•å;{Œ¸fËÝö‡oîJ¢CC%ÖíI¥70ð+t’TTS¦Ë¹ÕH²æ¸¸óÖyCs"”®MSi,,ÛΠ€o_rßPà½éAÃx,^jûЩFÓqT—ˆlö8¶+®o~¾1Q9ÔEFáŒË\~ûfãëc¾«Ì£ë,×E$Aì.xÂK]»Ê³åœS2sªºÚå¾·ÛÙ€$”gx¦ëN‰§+QQG¢@K±É ^—®oZ62e*û¾Pד$ßcDôâÛ\€W!ˆ$vì“ñµ4ñsY&e[ú+HŠ[CÇNÂDYòm*/n^Þ¦VúŒ¾Ñ@V&â ]ÌÍmäAlM&½ džkNmx&ÃÕX¯Ý•Z 8 ìßkÌR,¬ŠÚ*¶d Žº‰‰aªm—ò½Ä×SŸÐ  ó¯ê!…•Ü좸“»†\Åq÷§R¸éU¤f¤\™,¢'=ôUNÑÔŽà¸Xùnó¹ËöCl̶!Ü#µÉ#®öMM ƒÕÌTiw½ë¦b-‹MYRFºÖEBm/ßL&ktž¯ÌGJˆG‘B"iâë{‰T$ ðÔßÀ£èÑŸÉ RÏ% j'PGäv…Mkãf«˜?Peû 9é¸öÝ.BFw:)wÃüç7}!d"L«B'H­kÊpÊߪs—â2]Å&.§ ½î Y4’!YQ™pp_ôG:|žä´°›ë¬^0Yq[à$è,†’ ê: Å%8 é_ <—ìZ3šD9%$¿å²Ã 4û¨q®£ˆÙ€^%Ó|ÓëD¨úÃ:‘ÛÒÛNn&6>°Ü"sã›l#Iߦ óuâEQPQHGür<özåÛ°l#õ’28ÖeW^—Ãûé¸M)“º©‹Ìùß›ˆÿ€;FmJ ´òY×ûU}$¦¤âP^GnžŽiÄ™(U N:{ÊÛüDDÂkÆÂHw'j—#ï\o\‹Š¯o;ŠÐŸû+œ%àI5&·ÞŸ¶°2ãÁ¡ýÀ'øry"Ô~äÇ™¼¨ŽtišY–ȯ‰ÇlÚùb¬Q¸o÷v‰‘¹,§»ÜbÞî[Fž¡d¨GUi’&žbë “«©åÎ?ÃCİÃe á*µÔ6&OéÌ?¼ÄÛ4'›<êœæ¹ÚG°œ£)"Ä$«Ü“ „sÃSïþ\­gɰ’ÔnƒcÊE¡ïäj/4Z§}Y“æˆi4çÑt”n»,ð†üVÁ s?쌧óÿão¿=ìæÿÇ’ÿŸü+ÿÿ3~þióÿ‹níð‰Äÿø7$þ“ß™øý®Äÿøi+0ùíVàè×,9z*ñ]Ê}î’#ú>äèÉOHxÉæ)Í'=û9a±ñZÕÔdÛî5Ô‡’Z˜Ð¹º)]÷ˆê¸›íÆ^ëY Ú.ß×½ßrírÕi—s‰™:¡p*=jø>´ox*«©£^ ÂÀçÞÐ0„ðÑ®ê2&Ñ ”v#ìw­÷ׯ¿ÿp¼ŸpÓ‰µÃD›+s¸›K…þ+ÛiÄF½Ø‚¢½:{Ã\y^µC¤/á–ƒ·ºÎ;…ñ¡¢&àš¾˜™Ë4"ÓJ:9‚÷—!  ¯I¨á^Œ¿Ž¾û—ÜCŽ\ÍÜrI“ 'ÍuûáÿÚµšdJM&y¡Ïù¶Z="àè´­¸ŽÎ°ME¹çá%+jcíŸÕ/¯i%u Wôi…@Bí(ív¾pû6„#"I¦V %‚Ö]çÿ½ï ½5Å«<ÿB½Ÿ2ëI½¹a™N‘LûØj³¼Ö«œ!¿@Ü$qwD ©ío„•êð™’0Õ¶ýV™çÌbǾYgæ¢?âò`W¾û9Œ&•4ØcëjãçKuɳ6•Y>Ç¥³Ý\US'ÓºyÄ¥“g/z`ÞÓwl?_‘kNÂ50I¡é–/6qjGÜ¢œÊ0¿DQ§bA¡tnØ¢v¸ µ'èÞƒ[¥ehÅðL’ôgaÞwï뽸c lÛjOÈj?5aÇK^gÅ”Š+¢N[ŸþõˆEd T~¯3€CVx¯?SÁyÍsKºÂ¼ÙÏIUÎôGþ ‰ZÍ÷Xù®ê›ÍaŽ~N›s—ÐÒ8ÅZŸÜœÅ_xÈÅ ÊЛ¿~’)¢ó§ŸéMˆË¨´b¹JòKÿZï ÍÝT[˜õXèG_Àu£SÉ”Ìy Þ8¨c:eŠx¨6¬"æ3Ÿ6Ú'®mÊ„ì¨& ÅsÙZœ ¸4K½ Ó<ÔvÍçÃÈÝžm‡0æ¾W>ôßñ9r@µÞ72t‡þhxjcHb¥«œÇ›{OùRþ.duäñLÃ/ùÇd¹6†eä«=?×á‡yx«»«æòû‡Ê­e2¶ãˆà9Ä•–™*㩦ñÚ’²6Õ¯0d­B†¸ Óej§†¸^°+’õá޳ƒŽnêE o¤' ºКé4ã//܆›†Ê'[K¼´Rá¤ØDXï’Rþ¼Œê/†á ûoÜÂk™ÚE`*»º*vÔ‘-áÌãsV©N@à¿°”[¼ÜTMÃë”Í [Ålýb[Âøê˜«P {ßÊÑ6}oæ{;´o.ÆÊÍžq}¦c²½\„IÖ÷ƨRäØ>+üǾêÛ^hï¾ÿæ #Û#en” c+$Xë}9xÆLÎ ¿n¨y ¤»MÖ‹ïæOLåð#nT §Ý‘c ºû»=Û¼Ù²ª“fYþšU'¼½»ç¥l~hçp‘Ô’‚×i×0…wÃN©5¢€(`~µ§„*(çoÈ)q§ýªœDOɉ+­û©L±j>€e¿ò³Lá gv9šKnk‰E¯éëd?þ›\Ñy1(¾Ë°…*í’·nb×ä2xÕq†j@)ó%•ü£}v‰Û¨«ß»;iö‘ÃÞ-±Û¤öøo ß ¤>¶œ}šÎËO£ÑHý¥{¡¿pÚ=™°Ãÿ« „€ç‰+´÷Ù„ÿ´ZéœèEfMdw«ÅÏò@ØýfÏÍ2Q­n X†g]")SéÞ®Ó—ËŸ;eÿó&©úSïBÞÞj•{ÒBò¹«ãäb“`!ùH}S+y±HVYO÷‹7?KÉ9~ Éb‚×¾ÿ_öþµ½#ÉFçsýŠÚêóŽI7ñ"Én¹í½iI¶yZ·W”§§?š"P$«¢0(@»5óÛOÆŠKFV@@¶<=ûÍÞm (då52.+V%£ Åc’QùWe:(•¥÷šÍ?©]il†1w0iæä“óíxÊs9/œo®.ˆöÞ²ÒÞúM¶•½ñî¯ÐÙƒ;™í¯ü—ﯗí.6ˆ«ž•y„!Gìuý¡s]QÛvLsÃ;çIv ’a%–ïÞŸÚAÚ´uh×à±g7âWŠ›Z7—ÛÇŠíSÔ<§ºqÃüX¨FjÆ’ZÛ;N“íºó±›Ñ`ÚhVº›)ÍÔßÕ+°-81ƒÌÚ¯% ,wµ ÛNú³(hRª PÂùÁ&)ç®ÐV¯ÁpVÎMY@¨ŸXA†Ù·%9wE…ZBè¢.‚þSΫ‘u ÌA»#L1ÜrÕ úÞáÝùâÍçŒ}fÇ<ÔfâÏ%'±¡4ÀE}QbÅÙ|‘l½«³pèwe•?CüL•ö+÷ɘf”³ÜÅÒSRÀfÓ(¼åä±rÃ2Þ»&—×rZý;etPD1è9¬ÎX9Ì®š WÏl8@M)`†Â]hJL›¨¦üäI1Š"\ˆ„ÿHÁ7%Šë·žBT£U÷¹VFÞ˜§+£*õüfõ4AÊý´÷sþTBAÌé“ÄûJŸ (ËïçÛç1n¤ƒ%£q”,êŽg7É7Á0 2); \y6›„%*JfyŒ–i6¥lwÒð¢'ýwä8¨¨Å;ßXãp|ts=Øð…AýrîtÒMh‡ „rþ“2ÌšÛtaÖà䡹DFøˆR7[óèuë>6î‘fÔÞ5Žj¸£ÃI°YÜ'øÉåí}>ä;à¯Émji-0…zM½ R[xÄáðaËÎ&Îÿ·»xðÅ⽪Çå@º¡æþ2úDè£ÃFl–ú#}•!JP½‡§ ±º($Ž\ßÊ%up|!»v ñOÍc9¹ ·â)ÁªÌò¿.š˜Nÿ„R”eãY~mGɨ®JÎAã¶?èJ} ãñÁ¼Xxä€ÝOpO]U|1į¡ÜÙnËäòr’¿áz¸ —&føì&C‡s/XJ…Jv9sÌAyll–I³ÍR µsP@žSæ‹ÏbDþ³L4ì„Ro’Nk&ýµé‚«Z ™mÿˆÜ)fÑÇ\Pç@qo+,… ‹ÚY&?>öÀ©2ròMø÷9Mõ‘Mœ|CÐqå’B–‚]ü#´b¾YØyºàOËÚ[@Lì䌔ânõy&á° fEXãqYΔ¢(Ùhâ¿6~ÒÔ®ë ´(DŸÔ<”ù­òaL/’…>9}‘ù`ÿÛŒÚÃNãÎd; öž=Û{ü8¿¼|xuõ° —ºâAiM`×xx­îÎÿó]öÿ¼VçÄÐu]KzãuÊT@Ú!M&䆔žå;±CðÏ7 ÏØNPx‰x`?4`c]›Å®)•ÀœiSq˜Üع¶Ån“ }´ Å#:Æ×wò/÷÷÷ó0\+b©ÎºcC¡íCí ‚øÝ»¬Gڅؤ?‹YÔeÛÇ Ýcb…bÅúj"“.æãÇ4FkžÎ]÷øÅ÷Æ3† ÖÀ`' í4l9FÕ*p‰³‘XLd-FsE(¥!QwÂÒ±0DŒ¸Qb×1N¨%IqrPáÙu<øPer tdT£jA0»AtA=Gó.M–ÁP×T“Í_° ïÃеnG%f\í §³öB ~çQ•BÏ  y½gMrí¼.òž fqüFÍC2¨ÿ#_7ͯ^ç;ŒÊ}1¯.Â:/a_K`tWç?<—É$¶æyÔ°âÑJV,ªJº‘!mñ¶V’}$ÈÃslHN€hÝI¡'¯Š÷-˜?ŽNèø©D«åMƒ±ãMÊ¿²Ô‰‘’Lh—•…&œâãÓLÛ²>7ñáNšhvE{Áü«—: “ùÝ£ìÁ½/ƒFò^&o¡éh6ìDøóe]5Iót 3Šb+ÄÞü pÃ;»HŽD,Ô#‰mòh9'–„$·ø†Úú Í’š4±ìdÇ?‹ÆýËNŒ9lmY=â˜!Þ¶ÆŒzi­GU6‰9!°´d ‘Ø/p„ñ¯÷έ¤&ÀÚ³‰ _ÑhÁOÚç§ VMý®Aú„Ìs¸,aŸ¬©è •>S%îÖ":qAbÒz;T °Ð:~ <ò²ãäJ‚Åß)+MÇÍà ©4cŽ´-?[N ƒaPŽavZ›CæŠøHI»4T( õÊ0ú» ú §W5À5Ÿ|ÀFm<«Z„‘IÒ]È7¨O%)^»LÌoÆ4TÞ?§ ³§XæTþyr’`é 9Ö-.\˜SÅù«Ôá,~pC°Ëæœ#·ÂÛ"×ßãb®ÏÏ[/œÖ·½¯äMMÍœÌpÊÜI åÕlq³n*]ñïË*´•ädÛd;w 6˜Ö7È›‹y ¯Ù]€|àðÝ+ÏË)’Ž.“|•ÈÀ=¤¬Ur1<抂ïxìx&àOêŒ[½süL“ì¬è¡stiÒÚ]¡Eš6Ë챑µˆßhOÐÆ–¥âß5™§Ö²04íošÑ@žJƒß÷M­ ï§þXè¯ß]Ì= ÷oó–Âe')‡R³µÊˆ‡óDÅ:v­Qâø­Bÿ/êùMÀE[Ð!@J2Ÿª”í€<ÒdH˜#0ùXw¨!ÅÓè!ÑC_)›D¶cŸ3!4!$ I5`À$‚ÉÍ¢žÍÀÜLh’xÏ.[¯³¡„…ã˜ø•h«Ú€,mŠÈ€fH®½ïÝÀ #º :ø†sÒqà’7"0Ò&½.ô[‘X¢-ö£Y//™_Ù‹x%rœ‚c€=¢'æ«aêí‚ÓÖE‹O Âxè?Ù:Tnƒ3ûfήӿg5‚ÜèÒ^Ñ$,;xÂE†·%€1oÁE}ž´ z‘Ï6‹,žë DÔHݹâxì¶+ç…¦ö*þZ½²ák~Ö ‘ ±H‰NIÐüÐWp,TÉäÃ4GB/š(ËRUÜÌ­l—¾橉‘œVgôênH~`[Ž^ O 3V7ã‚H˜d¶ÒÐê¬ß”j‹‡÷:=šn~â3ŸS¸C–ÍE :°JÚ=!<íµûŽù0ÃRìô~ûðïÂúµp>;³†gØóX8;¾P~˜U's šôRÑÈÀØþYßöoù:Wé¬ÞÇ#[“û¼˜/{¼#4ýü¼˜˜wÅɨv:VÇ{ @ðhWì zue0êT¤÷ªæú1ˆý² %‡¨§`”ªgÅE!ùÆu*$Í^w&ìái„Wœl¨Ì»M£§ÝæÈö§„ŠãQ‰ƒ…T{#ŸyÊ…õ×¢L,\ÊŒ¤0Ä\8³á?,xW”4|x6©GoÃ)Õ–H>¨~ÜŽ0ŽA—‡ÆïÚ)P¼¼r¼?Þw±W²V¤{ŒQ`l˵&Có˨E¦ÈãÌHúa“ H–nQïaå0Nyš}áŠoÌÓ˜ ˜yqÆ_ÉÔ&9ØÄª%H}+÷žöðð3ÚMó W“P38é1:5¥g8 Y‘puQévkF½ßB˜•FhÛ›r‘S8’£™.)~R0XeÉ;R,š°kNò¥?ñÓ×lºÃìBï*L¬br¥˜r¼ 7”k™°)cH{’Ìföç¨G—e‘©3r ¬çùjÙÉÅÎTx™ò+Á¤Ð5vjÜþ¤1aRÓ˜ é 5ÄW§AC¶ƒ²t9šL“E -g9®_RIÎ'õu˜87'ƒ¼¶4¦€¡¿1-:s\^ád—Ž‹¶/#"9š Ëúm™µ&d‹*÷¬lÐüSíPyÛ ÙV‡%ì ·ï(ºTØ›qÈ23k_Ò ú—ói‚êDNœbÒ†e#݃f3žÃ*· z‡#Ç^­r‘òpJê~1¯€=C½­žzFó*X-LÒ'ƒHì ¬ù(viŸ}õbZÏ¥æGÉûÞBâ«ð¢qJ|¢|@L;Á¸.é‘Yr¾¼$ RÂ…ppòL ÿ¦(,õM de.µù¾óÁŠ/rÚŸ¨Ãéjzíe-¼KºÜŒ ûq6)n4ïıey§¹Ð>)ù+áYàQLOàÔ]Çä+äí µZcüºiùs™ø•¥ò± Âór~MS¶z •Ód$ÁÁ}[©: ßqñÝWùOø¦:;µXR|)O‚;F˜ü ä97˜W‹Í8û¡Y½ÑõvÜÓzb×Sú\qÑy/龫à\YçcÏÅ…áýûR½¹£ '”í(=§Ø^DzÁQ;<ƒxŽÄö«kÞÀåè]7€ IÈüÚ®#WE0JM¶EsK+Gý×Ôp¾SGoÇ®®h ¥åŸ—€aøEœGâµ fˆrÂçu5—ådÂõlƾzþoMa!½ÍþLhc) bËÚ'ôlÌJ+߄՜³;À¹ê-…¬fž!ô/KõLJ“yuÏÊ‹Ji%I;ÒqP+ìÔò}Ì‚˜§ÌC‚ ì]w¸¥ËóÅÞ¢Þ›€&…7SÏc~§\\îßä{ô—ÏÃ_(—Rï>Ž@оL°uJ ÉèºL³¨‡bÕ«7UÓ9]ƒˆ†‹·u ³HÓwؼÊZ.ªapÇÏÃçº7€æi´¯ŽÇd`™¦¨e13 %þ…p½(dyæÉ³\vÏ”·Ñ·fAÚYœÏﱇz„FõUþ¶>{ìØNE™ä0»y&×JÒVªã {»û€¶Eøï=ùï}ëÕl1»­?…ÎNcôGÚ­Üu+4¶A‡öþp8>½‹ÔÝ 0ÊɘåÙeÐB‰rAÔ¹ *qØÈÆ:SZãfæBH¹x’²ö“,|™¢,šOV3TªåhiIö[Y)ÎyhœœêŽÇÐñ'Úè²ý½Ãû÷wø&}{}Yå‘Σ®G‹°Tù lf䄘¿“=yôœéÜø:ÜMzA Ð׉Œ§8tâÁQì®KíÈãÓ8ã2u$⤭ÄþûÑ~¾óøôÑËð×£ý°õ>ØíèÄ„) æÞ¶ß’HÍ…µ¸¶Yº¶]ÐZ[qZr£¯ÿ5 zØÒh¼ã-Ã,õ1bÒùÙNä²ä>9žî±n‹Î\´ÎMXe97ôWZ"èÖúAL±ÍÁ™º¯,öŸk—"mÝWäpñ_¼û ù¢ýüZݺëa®Kwz¢•õRJFÖ£d8¼/>Õ7°Â•~ä¡1Há[Ñ{‡!lŒ;õ€ü;pú52ct·¸ Cì  "eŠGÙÊw§ê (´¿R¬ŒàWΈǑ•ûA‹_L°mô\©«5!(7P~NbT<êß¿Ó1Ùõ6Ö­Õõ“H•¥ˆK∎Ð.ÖîêU޼±Ú³öfÁh~JäïÛ¡ùö1¹•稻7ZPÉöDËìµ^“’nÜ“ÇfûKkƒ\d06WE)QônNv#Ê;sdÖJ÷á‚­C#啊—ÁŒ›LÈs bïü¦n¡a&¾Å@8RÖ‘ÃÆaƺ±q*ôĉ\7‚'´·QЇ¢ ÝfëÊ̶ÐJ¥Í'%:˜R•*f#.)HЙ¯X«ÕŽEö˜Òap,}›‹!Ê7Þ»ºÚ» ò~xøìÙÃÓÓ.$/oÀ„ò>®ÿé;½Àýõ'í]9·d½oþcm½Ö¡0;<‘Ÿ!î—òDºþ}vAþ³žÿñðÞƒƒ{þÇ£ÿáüMþüÃò?¾böÁ1­!€¼¿äÑ–÷¶"€¼¿þxm~¼ïÝN¹·Ž2|ßž:_óÁç’;ªTfv«+d„ƒYauÚ9™ðQR‘Ž\Âts+ù£ÖˆCõÎl\#D(iJåØ%ŠË°i0ÙkFqú`n ×x0û料ŖbL–õ‡ªŠAw¨²ôI0=c}Á†ßå8œ >£Ã,Š]¬ª J=#øšÃÒÅ'™èÜ"$c¡Fãq&7uV4oý \øaŒÉøß%ZÀ‹‹JŠ~rÕæŒÊ¶‹öŒ­«7©EV­”%íjvk¦ÕJ©IVŒ÷O±©Þq@”ápñµ/|ðÞ»Vg„ë^BúFâ¯B%Õ³)Ž}Ž’‹Ù¨¦‚¥­Åcà: zÇuîµg &Nc±ë,ÝÜá¿\Aþ¨ÁÁiçHâTœq ³Õo3‰dFå,-ΨÕÀ±¤+â}LœG™\;Y_Ì‹«+½q=B‚§C ÓWÅvKsäºDFœË€Ä«” D#,¥Lêµè˜-G„Åbçòý WêxL™ÑE,gšÈŠ%]Jo«:|[ƒNs±óŸÂk{Cè RŒ;­–® ±jÞ[ãT_†,Søpü×ÐÌtt#÷juø7Xé´O1Kr2 µ!ý&“ƒÎþÛ=~¡f.Ž@½i¢o¹žÕ“úâ†Ò–gš®IùÌAD 0£FÐ\øR=!X“•]rOûÆ))ª¿à@I ²kûÞá‚Y?5˰¡ç7}ïà}Ö´°Œ?ÌÂ>0Úˆšû¯ä öúG–0Æ Ô¹êL_½£g6§°‚t†>ð|}Ðk/Ò¥(1ׇy]| ¬7~·j²ü@ô Ê?Uy tåß¡©oZz~ ‘ˆÄªÞéeÔÓO?……ù9ú|@B†ì3ƒ>….ÉG1â[bÃHØaÄZ˜ˆ’ÿªÆ™Ò éµè>30Q³jv’ýÜ2HvÎŒoBu"Xi\ 0d¢*Z`$\«¤KA@ƒW¬Zæ j"Êa›P‘!¢¥çÄ$ú#k?¤#7‹x™6¥&l$¿I1WBŒ§üÀ¼¢‡ —˜Kl…Nø7$Ë%®žÇfsàr’ õðôg¡“ÁÃ\Iu7¨ÛðZ'™'\AO L«¡‡ÉÀˆ=UoJt+æqVN+4‡€^55È[ÇÂ,M+)Å ƒÔ÷ÛÝšt[]¹ G:óth´²Y°• Ö&ZmDâé, ÌB;q’£æQR3Zá̱¼QV¤¹ð;>/±Gs¡»‰D M# €¾$ÖZÞñi7ÌÖÇß$̉pÈ{ìo7·ÇNnº«!Ûbe°øè°$ÄP>f‹Å¢‹i·ßÆm ËŒtl°loqU÷/¯²ØùùþºæõÐ8ÆCéJK8¥‘‡—ßœœç=•Bˆº;Éì‘W2uÒmøvÉß–ÓƒJCÇ ñ6d +Ï+å­n—Ø´¤”¤ óðœ,|?SY-*‰V#¢£ÂÚÎ*Ðrì8 (Èayj\Æ1KÀ1Û©åqòxNcT ‰€XqŸ¸GœðüXë£DÊõ“wøK€ä î£ÈàÑs1..ˆ°pôn“÷&ãÉËG ú¢“¾Zß<œ*)³¬•œÆA«å}7ûU^ Ëá éà5h0Œ,fD)=? :çܶxìu{‘œÁAýu/ÊÐrÌ£ÍÿňC!â+Š–'6ScòÁÏ3‹ÔãÓNð™RÖÀüœ2ÀܶŽÇcG)$uPk¿›„ο‰_ˆÅ-{RB/ª«’¬ªŸÜŒwº‚$¶V+î€)+”õg8‰æª®—“›LUÚÌÑXø)mlà’Lôj*¹L‘ÓNèDH#ê$ró|!C¹•‡ì¼¨U”ÅÀrÞ#Tô*£Lc’ÆØy›$ñuÇ)4D®´ô'•®Öª—ùµÚÜá~ã”I¡ed³Ë±´'²é›•¥Ð9KgA¶ÅʉàDOÍ“¤ Îwè¬pt˾_YA«ö®•ï[§ I ZMìŒ$LêQ[$–R(ü–Úô3¨…Õ|…çž}*g\NÛb‹«0 Êt_f@²cQü+gåˆ,ê,/#šk$+ãò Jå˜ëŒ‚DL½lÖ-:{èX‘õð ʼnYNÇukV¸Mml¬u¼lÊ0n™mö÷óŽûdÕ˜pÕ…ö³K]’)–h¤loiƒŸåéËÖ^ ½ÃÔ´v¼E1*­ÝÅùdp\ŠèQ= Ò’¨1ï \/€ms I&G÷ ™¼ S$ øZÀÀ5—M¢Sô­’ŠVÉhKm©œü¡ ¼nÊ -Sϰ yóJ.WÖÞŒ¦vƒŒÕ«pŒ*àï˜ÈuN>Îé83ä™|/×eбýCƒ˜Æ‘pÿÃW 4uk6±ä­¸VÚ÷GÁv.òY¢é©¿áÙ€%³»ål"ú…7¡BÉÍtApÄ+¹+à  O |¢˜½–Ü|ÖWu…þ$íôƒJjg[`Ì-2q¸ÒVôÒ(uÝ”é 4E=fxw¨C"Qœ+Ö`¦xô¥ïŒf{ÖqEªêNÊ8nêŸªé‡ ~ÞrLrϯî?Õ8›h^îyj‚&릃Ǡ"òÂ÷Ä,gò2gêÊé´xan·P5í¸9:—ïh¾–XAåP½×§ktêy:vâÂ[ï\él×\ÄàhT@„Ua+gý³@²ƒvxÔav°khÒƒ,"ÿ¡ ÎjѾÞûN÷›$+jÐÎjÆ“òõÕ>§^ŸÑ!yä§È/¯¼²µ*&×Å iô#ÊCnø¤Æ™sI«¾ k©X¾s»ˆ %¡5@׉ʳ ´&"ÌÓ¥ÖõAÒIÂi7”ˆÞL½:Ž­¡—ÖcÀy‘¶X锡êzäV¡ag˽˜i2¢O}ëxÒ)JÔv,¹®X-úIé\1õ·»3ýõ-–. 5F6D^±«øê´ÊW—³®Ó1§(СùÀø¦æC ¨|°`ì‡èÆþÀ}²ˆG+¢ÿ˜õŽ#@l8ÖËuEÖQê!G»#ôG—µ›š?Æ’ˆD\’”Eäìå³%Ý÷šêoŒ˜hóúÊüP»âýr (Ö­W¦=;íREÊb}¤¶4Gúøa¤êéñÇñ­Š€w<«ÜÌ:ðî'D÷ýVEÞ×üqCüdïXÿ½ïÞ½£ný÷ÃÿÁÿþþañ¿ß)!åJàïƒ €¿÷¶þÞß øû`½h¸·¹h¸;ð7÷õl p·é_³Œ Ôq>­FÄæ\!˜ÂÞÓF™Ø2B&:\¼Yn­]"w©w‰ØHÝö(’ð€~Ó‘³°ž“ÿúõð?ï’*ÿÿɇw9ëh¯±T<ŽÏ¢l#tð›!’„¾‰Éjev uï~iêÀ¸|ÇôY?±Óð ?4‘`¡ ŒÑ÷xè¢r {‹ ë fº‚`1VìóCizh@Ü å{ª¶%®K7Ô¸R{àR0†è¶t™ÛPŠ.­Ë™I5ϤÖz2å³@ úà–µ,G+å »ú sZØŽXG]!Äú)ô.\‹½}%Ó’Ž\0``Mùƒ{acòƒl²Rš+´{a†5£’P´`2QÞ–7ø;™²hÖ'ÍÔçßòïl: ­-Õ7†rxa%ÃÍD»kGÍ"B—mE1'ônRçÕÚ¬Jb‚vü \€ža‡Y<ôÒ×òÆ)‚ò¡ŒO>vÓ¤º ® nm’«JU,6ìǾÏÎÁAþä‘:æ3S,Œ Û«±‚rÚ¿¬§ÄýÚö¹3¯ùÕM>>úü`¿µJÒ}ïWijŠŒÞv%<ð†ò4‘Õ쟗å脾Iw¹ú"¨w1 [œs)Gù˜`=UæI看ô¡éÀñ‚/æä•ÌÒ‹XT$­§ÚK¼ßɃ»˜GWýS~0Èùýáð C4k»åË·òº-R–q9%ô޼k%”>Úý~w8Ä_ (ïöÜ™iž Ã>Ø·½Â™+ôžÌ?£ »'W¶úy÷`Ãá™~ê& Së7m$3gÙ=5Àt1?q¸;B/›‰ÖI~¦˜˜°>Jy©ï{U^Õ¢´‡[ò]0oŸ¸ƒóùàÞ0è!»‰4wíëdìËsáÜÄ¿Ú_©Üõf'-2ö#lÌ•îùÎ~ð{ÅíÅ §ȃÂä{š™ÈÀéÇ#ŸÇ5zâšgöõSêø ‹áÍþUŸb(³Ú¡YÙ)„¨C$lŠ{ßòÎÁ:>}.Uu;Û¤-ñ*"÷Á°iÇð$Ù%÷Cx!ùé‰n~Ù,(‹Ä¾*½³@ÖoZÜÈ\‘| VΜŸ [+ßda4TüŽ¥ íïKsޝs —¦å×>^'“|ýúÁ½ûûûî;Ay=7îc]ë|æ?-Gø¬ ŸÅé—Aáø‰^ÄÕïƒÌz°Çÿ<üß^ø÷Âòä?ûöù'a¯†'O)sa· îÑq¾7ø’þu?H🃣áðýí‹áð᳤RÚ¡áî—Aüä÷èJØš>ÇÿÛ;À×r!8OÛl;»p ÷^²Þp1°ŽôP¾MŸ1|$6¤ÈE¶Ñ8xžY©`¹´g­’ûwÂÄÕ×ЀÂ_‰Í˜þn!¹Lôh×Ô6š8ðƒVKH»æzè~zh¯·—û7“ÒU «½šîÐ[¤æšˆ€©bšzØÐxwÔ{¬$•{„†»ôë`2é߸£2ÇŒ7o‹t³Súé¹&ŠÑ²q<§¢¨Ð Šô>*ìBó„Qg®%3îTº6‡ù‹3 l¨øŸÖ‰•+ô:p²½zŠ[´F$YÝŸÓÚ3xæñºó'{'›óaÜ­}(»ð÷‰VÝWråOÿÿ:@=ÝÙ¶‘v¼ Ÿ<âÞztˆŽs]ÑðæƒÃ/õ™ÃÀ·ŒÒ[úç·"*;Pòôò 8nû­–ɺÓrÛOÿ¾?ˆÿøÛ~¿tY:ŒWÉwÒÆ´œ€rt¦‡ íÝ-´ž;´0€²´³bUŽIggæó{Ù¶Yäû¤GÚzh$ë{*mÉÝB­Æ.ÒÆúÛ «zt¯ìvâÓ²•Ï÷D º (,V7 kÌê{­É·Õn‡%P)#³Äç ;†C<´œFN^&@»yÉ$ Ö‹ŒÃqýýZƒkõìbž¼L‡‹×Ÿ‚Ì¢(ý´¾¢¼Àæ¦!v‰>øÁr`¨×ËV”V ¶¶¯î铯Ä*u†ÐmtuQÑ8ƒ1˜ Óˆy3á“]º1k¦§åIÑß0’­]á©\Ýê·µ‘®$}uZSçE *2–H¨6IUxÝ óq¤J‰Æ©H¡k‰Uí„ ƒ´ ?7;’ãCïß…iÝ; QÅJfÅ"‰ú'r6‡lG¿¢ÛôØ{sy¢Álê·ìsMJ\|u2Ë ¥ƒö,ír°C:ï¶æ ª£R :A9õ&¼ Æ5Óú1QFêëèP¸µiÖ¬'Þ6ôwÊ:δð={ÄÛ‡#\âL¤´ÑDÙ!ÕÉ,Éâ«p|æGùýüóük» 8Ê)ÈxÊã\±¼˜Œ© q|ck'A3—¢#X¯Éƒ,•Ü#˜ÌM9ycíŸ÷Ý™;%rl®f‹›ÝÌø‹aÕ°«µéxŒþw»10Xu3̾kåÕõ. -ë½0S‡äú#è†Æô9žÌÏñŸL½Ž!¿Wþæ~û7rë*'n s˜:ØWÓ4©¥4‘“LÉÝAõ{¥´Ÿw߆èîJé£wƒ˜·Þ©œV’)%òOŠ ª.Þ͇Ãð?Ž;)4>úúg,Ñÿöß|ÞIަ+¥•'†[&E²Á—Ö“_2ªá$ì«™mÁ¢kž?"yîÀÄHÞµcþA¸ä¹T#ž›,`ÄãS4 rt7–ƒ&ߌðø½Wh]Î˲÷¢Ë0þš z" ŸG*?_&ò³ üC$Ê©?»Q*BšËô÷«ähΕ[Ê«T¢ ÃF%½Ê­€ì‹s…ÄÌ0þ%Â&z“áwƒ,)d¨†׺fQ~å8ª¬òuà „%NKá1AÌšiáÚ3“Y/:™ jíÜ´¦1—˜mææ®;=ÙŠéi-¶v2W æÐ˜µŠ'Ê%÷ Ã\XÈëÕIæhJ¼£ógõ¼$@óà–¥BB¡Å-&õœ$«×*Vw Æ€Œ ¬olYwl\LʆÖG§œ £}©BŠ”Ù)Ü3=IU®¦L•’¥S¸vâòU—­š8„$|¥Ìåæ‘(7‰P°Žl¨ØàWCiâeŸRóh¥R“™RÓb¢;ÎDjŒ+Å`gtE¥Ó¯ðd…ºaòî-ñd¤×DÁ Î1J®*QO`Rv˜ñY…5NÐüßá ¥WËîÉ£&s×® ‡ã3ËX/gC‡9W«·oÓòŸ¦Éð.¿¬fvOìj”Xã~Ý$]žŠè•Úsl^Š*·{J6°Ó7iå¡”ôˆ ¤Gk¡¤á‘zƒµ¤}Io–›A‹QG=&Þ‚_úý`oðùàn O›FSÚ3Åç;g¿íÆg˜•­j¬hÄNñõÙ /þþ—\ÉøïÅ⫯Ïbøëi}7¶[¶`0SYápõæHòFHÿK÷5ÃFäÓÇà+ü~ok£@øð!ž‡ì´sóëëZ«O;ø¡7Äx“Š×‹;±«ùžBZuGPµY5ö¦Fz!Y­OìSœ•¹%ÖJ2@Ï|›‹ÂÓ!s|hu r3Dh[_clj „-ºÔ»å«¼ŠIu7þ2úêi.U‰µFv÷MኋêJ_9Ш|Îà/,ÒºO*—´·¾i >ó÷T.³ž;ö!ò(kŸ)~&¯Wñ`ƒ®¯m3Ûەõ¡ü”fðèŠfäÉÊÈàéá¾îP¨q‡Ÿæ ³§A2ÅÈ.wH'v)Z/ìišÄÊ] P©qÉ+Gª¦{Á5\k“[aò#ýÉŠžš“¤˜ö6™+Êœé…EªÆÚl®ùžÒ)`´V- %lYîƒ`5=Ÿ–·›ïe M*ÞC½¥ÌÉ×%2þ€mNä MØŒ¨;—Ya¿ØÊN¤7¶±Y`k¦'R¦¶’‚>Tõ0¨B‡†@Wj=‚ùǧo^¿þÁÊœìÚÞð’Y¨jØáÓ7?>ÿÓó~Þör=jxŒ§oþåøéÉã,YçÈ…§ÂÄЃ'Ïñhlw6¨Ò(ÑT6R%z³“Ñšãã}2ªƒTËé,¯ŸÓAJƉÍ´oº%y;¨e‘“ÖÉ!¸íž#aÊ]Ó/W\Ò÷è’¾·ö’â4ɼu[+KküXïf¦?Œi—ìz¡¢Ùé1ïé”ݸ±"WveaÌêœôzÍ͈^ QôË)Si#Á ò¯8':~z˜dØRWº,·Ïâóo¤÷É¡}‚²SžóÛéLÆ»è(E!)!ÁF&KIãÅ3í»ÄÏ‘=ï§À=U¾/GK¢®Œlžß®øMM5-¢{Ò«Á´¼8÷/‹&(IAç•5Ãø²Hœ“ÿ+õ0ÿ1 úM=#›û'r%!çña7_ù+<;Ìv™ÍÔß8oœ+šu ¥–øƒŽ£”ôü…ÔI)Ï©ÞèØjtþg”ò|oÂ3‡Ø],¼x{°'È4÷é¡uüÙr²¨fW]Ž-tþ),µîþn[yØðœ¸ ®-~¢Ä×YûÍöÐæ;³øTn̓¨ø†%ö“öÏbb7³ËËæÉ7éÌTÎÌ-Ì¿vŠ“ãѲ$h×ÄR4z"UÂtÍK¿MœLk'D²£j~qà(Jšó ï|¥ÿ8Á®׬Úúêšþý?_Âíþû±¸Qûå]Ù¢U°‡èöâmHƒR!Cfáѽüë¼bQ‰g§ùá‘’Ï3ÍʾCÆ =¾‹RxnJEíþþ™Í¯Ú›”~ГÈݾ~@+síõyÕŠ`¶.Ÿc5I½” áÉe+ïTW6w˜-–\‰™‹‹‚ZœÓ¶òHøÔeÜ/¨@Œpaðl!8ï{ÿ„Ô§þ~e· ³xBOŽã"zgo´¾„Tý ä¹ÂT ³Sxº8ƒoukv*Ï—ÁÅÑ×çªï"|Ì€nž¤p"M™€4± ‡Yägç`1 Cg9ŸÕ.i+I¶L)ǧmX÷s-¹¥‰Ñ¸ÕŠ xHQ‡hˆ¢}(9ÌwN¥œá貘ÑjY)ÎnËD²GiÍ›Q˜³vEÉ«BG†ùK…2pT•‘ÓG/^>yóËÓ×ÎòVFi&mÐi¿¬É»çFLPÞ`_;¢¶aÆJûìò¦ÊP¥¿?=yý¤‹âçï^¼úþøùÉÿïøõÉ‹çþá¿3§\ÓùÙÏOþåÉ«Ó'þ'\+œ©wOA¬]V¹#¤(º>2$V÷ÌùU1«©½ùªVÆdÞvÔG±]5ëzÜöüýñ„ócO¾Tr0§KþÒ>o­ù¿n¨`üp`ö÷$Eô£·^5³0BwßIš%«ñÀ‘M:Øô[V¾äâº}¼ÂU}YÏŒ~ÍMÔh¥Ü™m\>+Öó"ÍlÄäÖ‹º;$eÅYxvÖ¾žA§¸Òš”·Ž1ža€(Ò7_³³F^ÇÑ0 òÖcâXWìW¯Oß<þñÙ³¿´ÐFôùéëp¬õ|qòü‡'¯N^÷|óøÉ¿œXóÝaÏwÁšïùôåÉË5GÑVmT´Ýñ|ͳ_ñ;&7Öð#:çŽ1¤ÍüÊJ)ªcœžý6ØêÝÓ×γŸ¾>YñÝñó¿øwã}¦"KsI–p×ÐëÏ‚1?¦ X¢¿ªþOé¶»áF¦:\­tÃ׫Ð%n'>¿ñœ6L\ŸíèX¿yõâÇ×O^ùérµÀWX}À¢'ÎáãtGZÁû1ÓLLnöbUq,ùF0Ùäçñí°ºHA7°ÆÿìÛ§Çþô˧Éë]ñ2q5á2®šD”oàÇ篞?úáøÛ§Ý3õøÍËW/~8ùöäuoëAt8¿{´VøÉ£g/qÍÏŠræwñyæJ­œTÐy}YU¨p-µa/<âkPÈé8ãI ê|õ øîwsd{†·æF¬.”Ö­+¹™ — úvÁKx9¹Æ£*,8·3+sÁÚœÕ*X²pÎ MÀ´H*úeÂ碅. Fõ:¥Ã~ñP.ÓNÛ 2ÊÑAª+¦–Ôö=JñGm\);<ê¼/)‹ü&Ó®(vVk{Wóa5Íh ^˜®ª…Ôh ¸Ä)‚‹mßAÔM^K3Œ?½ àvEí·…œ/îA°35£ð©¯C9§â‰5gêÇ:ÇÂÄ=ì·Îuö`­uyÁèGÒÖ ä0µœÅNãÓ*Ú½•§‘ÌÖ—¯Wr,Ÿ–‹È;ñÄ®nÌx§4Xt>UáO‰ª]ò‰ á¼ÇÓ¶Ú®:´•Ö[åÛè Pî®þѼ’ïW¹J"‹S‹ÂKÒ“•Ð ðÈB´Y]M;Ýèúñøy ÂDœK*îÍÖļ¤Ÿ4Jëæ+%㓃6åÄñ„g‰–ïú`0Q­-o@™HËÏ[°F» 'Õ‚öeK„éï¸ù(~©c8´‘¸|ÍÑn™×ÓrBîÝZîßì›ËOö޵ü߇÷÷;üßGÿÃÿý›üù‡åÿ~ë#¬dÿbðû[2€?ØŠü‹õRèþæRèÁí àá‘ëÀЋlÖVq€? ‚ïk9ÀñLËŽñm='®ÞïƒP'ÊÉ—®¶¬Þˉ~cP.ª©tVOËŒëA郢-êqqÿ*a¹*:Å. .ïŽ6è8®˜\û.Èm”ÑmE +sRû)¾¤•“çÓ~ —íÜ@Æžl\Ç—³q!!v¦Ì¥ÚÍ¢ÉÒBõF;&-ÎT‡ïu×ÍP÷”ÑMqÙNLtã9‰^.£Ä I"å¤çŒpD µKÕh9)$’l ¯)7ïê*– ` ÿ~kˆ!r¤¾0G÷"cZØV橦A‰î~q¯ŠóÅìáÝ»á‡óóÑ^X@ 1Õó‹»Õt8Tš»ásúÉpñ~qç›­‡”?YH<í÷BjqmÜl‡zwð‡?|±eïè'[ôN§Þí²Q1ÓS1-/êE%‹L9:úÃá–¡ŸlÑ}\:óìñ}Ä6AEdé%3)Ä}yËÑO¶è‘>.=ꀤ+]©{Gö·ÝGá'Ûì#y\ºÂ×é¼<§û”κôãÞýÛö#üd›~ÈãÒöpª·rj:-_l?-_l7-_$Órï[Ÿõ&øòGÛv"üd›NÈãÒ ÒÒŽTÓ.ÀÞöÎý¾Ü²ô“-ú§£‘æ\X'‰D6a¹jeÛ"ôððËm§—~²Í)”Ç!B¦O©–Üvf>¥,›yq¾Ø¨g¬ ïáÍ]üg¯*ç{Õx¾wv1»·—LÆÞ»Ã½ýÛÅÈG·Šq"º2›M*v>3G¨S?yîïßÛZ†Ÿl3÷ò8õI½§GÁ2ežÕü`ÂIõ¢ ™¨¡ÀÎïé¾±XjMx!¶Æ%VÉ+E%jsEʈÁoL÷aM51òÍ~W¢ì1ØQøåûÌ*NÀ9®æF_õêhÏ“‹ ÷-.¯ S£¾¦KÏhƒP‹WÞ9 ûðŽF톔œ5FÃ¥‚R™uÝ”[®C›[½ÉðôDâøbSÙWmü§c¸X¿éÁ® ¿^ÓgC!sº^÷AIW¾HTýxò=gy¦éqEç®Í°1û{ÞDÕÊ8í ¼µˆ“ïHƒ^Ù &€º4ïÆKØÍ~–Z ýƒjÍf{ŒF.-ÎÔ qIm÷îæ”=úæDv»éëéQ£T vB™rƒxbõZ=¨ÓJÖŽUÉk¤kµó?£f4Yf ¦™“ò-Äzí:ª>pš š0!ÚFUÓ6C@þüÉ¿¾~óà ˜ƒ$`"q(G49a¢Z† æ¡m¬òpÇ%{ÜËXâš1ž—ÁÎÈ\,£ÎßNëk¡O[SӉȬ<,#ÅÀ ­‚+Ê;Tž%sf±ûbo£´w: èê!ÆŒ“(©—Q,FYýÈSSÇÒŠGsÉ…Ð-kÜ ŸS²»Bz™“¬\t¼5ÂàäüJ±NަÀ. ‘$IÝ1ö‘ Œ28¥ØŽMõFÔö“!„~Fò*ÖgeO ê1“Ípd1lÜë2cú¸aPbÏ¢ÂÎeÆÃ:Q;<Èx˜¥„ÓøÜhÁ¡Q9ûÔ1æ5— ç,ÜáƒbZ Ú–p_”MGåFñ¨t?]—Å[]³ ¼/äR’]íÁòÛ¯Z£ U®å*HÕÝì…¿lìКUai*HHc9¾Á" &woŒÉpÎô¹ÛdŽLjæ}d«É²,œ¢ ò;ÛøµÑªv·oÆ€¬t69*ÎJ`¢’E½ \„Õâ³Æ-Ü0ÿqJ|X¨Áµä t¥ ¤% â#q”r“Þ¡h’<¢Iø”¥Èޏ‹Ÿ5y¬q ¡Ùîñ˜¸43Ò}ŽO©â5þ›âüx‰è*Ì·˜yNTœínÑb) nÏÓæÔ ; G³ÍÀôÔ™’av<ÑQ/é$`±dïD¼ C•$Mß<ÎìŽÊÜB¬Ì°‚;TR–r=fF–wJGÎý\‹ $£Puhñ™Þ:\6ÝO‚To"çp×Lf˜iy(ºÌݺ¤)eՂФàM­ó«‹Ó:ÃýP–Ì¥C†ÝG÷” æõë§»¾Øyò°ºÝÃÊ1Á}®Ù£p"ó†2ù±J×5o†Y[Ji¡´ñpLëU§õ¢Zý 2õª0`òP“©(÷è¼S5#™»(-z…ï}6È}Ùat°Ž+PÒð9*± qµuå¡]ø´â²í]Ÿé}‘\¸x{V‚ÜØ™ÏIø“îåEW2J'ƒRqÞvÀ‡ê;/oFö‡zæ`Í|c£fˆHrá_k ÃÏô½Ãœ¥ ÝN [“`1¼S“åb&¾•nQEÝ:x!ê?“eдf\´µ³wZªŸrh‰ƒFØy—­Óì  ——sòÙQôÞn §âû×§Ïr)íy˜ïÁÅ(uQ)hô±±«’(Us$0~Iw^I… Š R‚‰1«ëó2 ·°O!#aG«4Ñ/٨ʛ+*:K¶U]ä‘RçÂÆAWvx­³®Ê)Tž¬žj˜±zú䜿ïNQ7G°m’³Lã›ZÞ7Xa½'&§‘PÈ Fû»‚µ‡™ øOäŠdÊ!vü0Nïa~8|0<º÷û|‡Èàwüïûüoâ‚ÿöôñÃ,ìîi …¸¨R4Y¡Ñ4;_N?C9²Š€X9ö±ÝÜö…ö‡¬ÿyý®³B§2nùV-ÔâòIj\wK2 [¦þPT¿Ì·¨,oã^O|¾É³CbXàÆDõDJÕUGtNÙp'±2Vøömy³óåî.¹ŠÃœš[»gLtc¬9e§¥þš$C¤í˜¡yÁUã–‹‹Z¼–ÓR‹fOÇ.cL^Ø5$¨Ý#ðóh?HV´Äü~úF\Ã:g=ñ|žªBJ•[še@vvϵػ]²Ä†–>[1ýê)ߺ_摴¦áú±@_†œC7"ÈlPÒ# qÀbáɉÚãÄ])Mfʱït©º·¢ EÓŒoç»ò:¾Áâ}ÌIäºí_=®)̓{æÝVùŽKMe¹³K¦2»PÐ_ìÂ0„™OßÀM›)Ä¡ "ÓNy_ZÕ$¥ˆDŹZqmÙ|tÖ¶¹mw‰~Þ¿µ²®"oeºÓUI„ëa^Î&Á’†w )$ƒUz™?ùÖ]Än’H¼3dˆÈÜ) éƒÃjí<èM'®Õ!×ù6U,‚V볦ž ø­/ñnÁ®*Æ{—õ(>]°”æ ¤I©•«&dMc ôë°A–cb¦Þ‘ø'訹8nSOªlDm*fLÙ(­óÂÞ=oÚ{áÌ[•ø‡ÈÅÒäÏž<ŽŸïn 8ÔMa“µJ Îà@#8GZ‹¼s^œnˆœé˜©¼™wɽ6+.8‡¼ž³Ñ'ËÔ´‰¬ÅüF¶å{¥ö æ"C‰Ûb)biã%øÙÎÁ B2rbáÅö[Å1 …ïÑï“õišúk–6ç1bxMT&Æ™5>£…½.ØñÄ düÆùw¤D3½U*»iPF¦HÔg>E}µ"m6Õð[š}ϕŪY<Žs:Ùk¶>´v0gŠ¢ml¤ó[ÍË=¡›s‹-eXxR«ª±ì”ki%1ÃMg­Â™Kþs^Öh-ÔàU Àæx'Z‰A òó‡ƒ/wy-¤@—5éß—„:c3ñ`Ęn‡ÊØ,`²Ú%WâpµýSt“xÀhÔn pG¨,ù;õ´©xà@iÆ%!§ãÖ:Ç_Æ-2í˜mšÄæu불"jóq ê>b~öijVeÄÁ€Éd®Ò¤4*$t8`{“Ö"…î~y^Æð]tŸû¯wÊŒU?uõ‰0ŸßodmPÖØ„î«(ýá_¾lwD€ µZX¨xå‹Ñ#Ä…P^oÔ¶;PŸ+¯af:nJÜa'– ”áÂpæ=¦êÛ0,á_9 °Å¥ºWå,éóB-u ýþ–ãD²4R˜9.Pæî#¹†H¡6ŸßÀn{—Âz˜„T“^¹(DÏVaU4÷Öí¿d®E§¢êì4BçÞ¶+žÉ/Z[Vg˜ÎS{ŽÅ±%×+vdó[­b[WÁþmµµ+”¿[ç!7Ò0ÊU«70çÕš[ð ÛR±H‰OäZŠM&¼6£ ÷?Âê-ÌNIÉÓr­s¾²êѳ'½³ug¼Ä‚×¶ðý» .Ó…êu2E·Þñ)I>1šX9“©bÿMëÍ ½‚ªè ÞšgLº°¥I™mÄi{‰?¬áÜíNö‚ù¢N™E÷Mâæ€”Ž è¯R=¾kÖ!–"É>TÝz×Ûe]­Cs8(ÿc”ÓzÞb€·Ö&³Ì.ĉ@Îð®*¯_äÝØÀÃö®/55­‘8#è%Œ¼•SYHåÅ ÇÖ;…Å),¯„VºOŠ«!bܩ¨9}‚Ò^ØÈË$ݦԠ_%¨Íp}ÏN£Œâ$©î«ÕÔ®‹f«RÅ/æ…=Hˆ*[ÉêAbn¤Ä;¦`+³ â\|'N¢º¾l¢µüCx'ïiä>ÐQ˜‰D­¤ý ̪OiÈw9¦iŠ…ä²'Eýa×~5•×éfŲ•ã–œ-&PÜÙI­AÒØnÌŒ¦š0´ÐJéBt—Lw–ìäa~<ê…¦y%yÉ“™B‹©-ÜR¢³†YùÉcuðhlÂãÁ2„y\gT¸àºcÜ+ ¨r=MrudP˜8÷ ì‘ P9ƒ²äÇþ½õœâ!ÏÀ”9ÞØDI’6³$iÓ#ÁeÚÓgxéD¤dðÂÏë:ÝQ |—¡F¢^ƺž§•Ø_“2+,:‘R>[ý „w‹é HzáAG˜_fN¦jAh×$2;pDE’3ÂW§dœdHrMе1˜ c)tú¢³ûûÙÎ>JßÎ˽ƒááp¿ÜM)¾9võ’ o$P4V”¼•¯I‰4õU,´ÃœïD†®¾™ãe<‘5úLø9œÈb)}f.Õðp8[1¢bHïˆÛS_ʯËüë^èë¸mõÄöÒøk9°óôeß[Ìœ±³£~v½9%¯šÁÔ«ir°Ñ"%yÇÁys„Ü;Ó1'25ñHSñUUL³kb‚ÃñiOŒÍ =1½Q~:i¥€ñ©pIø ‘Ó·»’W'ô#=Ê`Ê/@ŒæïJ°Ó~Öd†!WN*&zɘNé€:µÔòõe=ÙtÔW娆ûâç®sMÒzB²Ÿqéµ²aë­•&T!飼(±ŰÀÆv#%Åø¯ÅˆÍVj˜4!è+äþÎ…¶CÝZå×>&\ä­w³&¹ünC¡#ÜDü¥UÍø[9¯»ñÀ$ƒ¢p„o{óìËi³œ»|3_lÄ[)¥7XÓ2³ÄõVTHú$ê›@±æ>Çp U)šfПÐQø.›ku˜ÊýzïÞý­‰¤ÂO¶#Þ‰DRŒxšc|D ¾äKAR¦êy'X¹ô°uælè•h/„ÎÁmâ‡ZèKDé«“ïOž¿91~|)@×_Ρš&p–.®—¡Q{K³O¬YÎ ø¬¯v‚sZ¸çͲ3­¯‹1e´…ÃË•£©µ Êêhž?zñìåÓ'±âˆ:~10nOuîŽÙê|€*œ†Ô"®‡ÛØêLëª8ùaþbõM8àÉbÑèÒ 3] §•êÌVp§'r˜¦¶ªÍ¨»¹‚UÆø"–AŽæ»`y‚Öj°ä²A}9ÒÐÈ%›ÞæÐÖk#'±-„«ÔÓG®&€\4®NÏWÕèMqq1_#Ý9ê×+µ3-—6ŸWP¾XžX$6§íE7a£Jšµc°:<_V„úT^X”xGÊý¨qAY«”ÔdÙÄ­Ê%’Zr.…nÑ®E݆§Âïyê´NLÓÔ#À3‹¦°6Âd–ÐCífÐRîó’'e¡>uV±èx±(2Æ»])Þª]êŠpWJ]d)’Æ^pÕüDÙQ½+Õwˆá«!:l¶HyøÄ¯«Õ hAî´=ºn”Ss®1I•œÔá°†W,›Hº[µ„ Þ#’˜1UÀlDšž P&4ž2àÐ;ãš´9¹¤Âã?žsŠáÑ”³5×0¾Lr [ ð9á¿4gXÏçe9¦[%dd£ɹýH¹+ÀXö¸! UÐSic÷×)w‘Äåæ›±[¯<ëìʼ³+{8ØÄd\×… ³Á\÷œ+r.”V±\By'…æat[|ò?â_%&+~Öb¸ð›ýÞWy<(´Ÿ,PÕb¹µèƒá!î%†<.ßUTì­Ã Ï_D«É`iÀs´ªaNþKõ±ÎAy"1iXÊ…ò¦¦4æö ¸ñ¢,b¹dš¨Š°n Ü9‘ª(eo‘þ9«Qí…F±s¤\åŒßþ$W€*¨àŒà™ó³dÖ¦8p-ùãyÁ8]²˜ B'…KÛ|š6­‰®çl‹)½©¦C¢üë·Òªµˆ iaÛÂP|LŸ€RÉñÀV§q)ÁT†yf-a(Ú ÄjÅU‚ôZÆ@DÑÜLGÁt›‚{,ßQvœ:q†,Ñ] ¤49…‡xY 8Ç Û$Þ´JKø(Έw)ܤÜ7 *æÇxAÕMÏp‡ÞøÒƒ–vQö—; تùOù0ÛWEó–æúNþsZt>üŽÛ¶'–Tâ+ÆZ‘ý7“¯l(œÂ  (àît¦m¡}á[!åüüŠŸIù¾Õóbv©„]È¥¦}9w˜‡6‰p˜©ÊÒIhÒ|e¾Q[w$61âÜêíóô'j±‚C+KëÛ‚+Nß9ï ‘xZjd} “M“š% Ö—šM¦PbÖMyIþbžÓ,º™Ñpºæ•‹… õ*2Ö¼Ù£fs-Tg£èŠ:Lþ ×À@”zà].è f+T+FU0RB›Æ|8 Í·bÿÉZ¤5Ó8Û¨s´¥¼£†È_cD¸|¨F´Ë–4%ò II$ÙûP;Ыz޹;QûŒ²ï Ñ=—ŸªÈpÒà û­ŽþN¹¸Ü¿îâÃáÁƒ/‡á:þªóŒ~¹?Ü¿{ðà«Mîà#ºƒÖÞÁá‘ÇÂ5ѽƒ™óÄßÁ…Ëì³¹"s³•3ëá4JµN¸GK,¸éÒÔýLŠ|Û‚qµgoØ-L½\_ö»fw1ú¤È/êzLÞÂ2qð8\cdW´Ø.^œj/4™šyDštà¼^7|â™à¸h¸ ®)ºI»× 0øwFé»®\ÅŽ‘ÞÕMJT†PUÄœÃlµ6=«„¬Á8ÙÒ¥Xuëž¹¼qÖ¸;{êÈSNVBu\jJ|FäÊCš7ã\ bÕá9nm3.Yœ±ñÏq`¥ÉÚšøŽ¸R97ÍKL` ä|+7tƒ%V&Üýó›,&ÞkuvD'aí’Š-«"~GËS•V³ö¨÷ö¨º<U0)u¦ãŠ„¿ÆH é/¼Àíô;î}›¤Òù·«¦Y–­™•xzà<³ƒè7X¹NlN7¾íóÎÈ´¥/ö²¨ž:òKI]ÀÙy!ËQ 1\r"þ!H)¥ªwÔåHY!tô|šÿ4 7ÃÏ=à@§›-LÄÇÛ nM»YWÊu×ÇÌP POh×ëV× U4 RÕhC4Ë3Rr)Ÿ%)ûù ÚQåƒçÉôrwØÃk+ÎDò®@9û–Çõœ[,a@C‰}ØdHØ\* “ڶʸʘÎK«Y*Ð-çê D¯‚H`–4îCT@⸳WÌGŸßäw>¿ó•SD‚QJ–%^="þ×MÔ‡{¤>Ü[«>„G˜ÿ§G}øSz-ÝjŸ0éŸ ÂŒ OrØ¥·ˆ”UE£úja@¿§V^õ7K¨¤#ûY“’†¹š v¥ã¥hØ.p(%W'­³mDˆ©à1°´AúfÝ‚­[/)"«¡@T;‰ñ.ö׈,HÍ­2-I4Uw^ÎîŽ)ôÁòÖÕ—°Í±›±‡o _ü[AT Ÿ¹6‡åÆã˜”G[9¡ônÆ•â `𒇾Y©W: úKgâA¦P^ B/,ç¼±dËä€Y,§FŒìîY–›b¢)š?å²k¯»:“š3Ý/¼³¨¹pbç6÷,be‘$í|% Æ)vG“»#o.)í_PIi¹¢ûF;߉ÞÀÊãâ„ì«É”=!e÷`ïÕʰ{*ó{&Vª]®Ç É™}¡N{ã9Pì¸[«Ï!y ‘*¹Á{QÓO°š‡óÞêˆ l®Ú™œx„èHÉ‹ø]D¹kdšœ¼Š£‘9èTgÌVe:žo Úìû/” ¤QHîk¨3Þs­5 }¦šuŒÝÍ´D{€hájü÷k¢Âä£] äj’…éÅ›µúµÔü)ßÓ£;•»ÉC+ O¸ ×Iù_ÏmìS+ù’•pê žœ’Êóñx½ÉÓ>]Æq,%êå3«Ì§%Ç |ÛÐ"{œß»äD¸ Ÿ12EGø±–ÁŸ7—Õ¬‹%÷’üöñÛÐ2œSÏCËâòF†S2Ï•ï˜öU"d"è+0œGEÑIóä䈘' –ÆP™djÑÕáÃþêÕvúnì]AgÆKLíbìÊÇ,êï¤G¹¹nÇŸ,küHH:…oÒÀÑ·\L.°“«µ–µ·–lª5&×&ù>Å¿ ¡÷Y¨J¾$(d=i±Å·x^Ïæà€–cÙ‹Ó=5´v»°üìÏ¥“Eë%½Åt"úí|ñ†ž½¨Æ×y6ÑÀ¨Ö5̦—?%+f"ÆcسT-¶p½Kz\V¤Ãl" Ið!Ãü´,³»åbt—8=Â'‡wCïñ Ö„U‘6¡+/àýÐ7Yªš€h^_¾zñúÅûü|R\𥠢ðØuÆJ@9M`’”Õ@™ A²Kec.pDØ&´ËZ”i¦§5‹êϤ~¯¡'Rß\õ3~íJ`ë[LayÞÌû°Ãʘ¤j@(‘³…S±pxZžZ‰O G)2Ù™ÅÙÚ•Ä"€hý}uëðTkS=båļ½á@ž“?c4!ÖV½pnÅîk´ ·Ð­äXЪÖ;ô¡Öez´´›ZÝ<êéf~ÿèÞ¶E’é'ÛÔÿ•ÇÑM¤OÎ8} =1èrÅðí°F€=ƒÉiµv“8LiÈÆ¹ÑÀ/Nϸ¨F’íÖ©%ù)ÈÁ´¯/n'ÉÊZ5c‡¦´}Éa-ÖâGÀÃÎnTÛË´À º>Éð'Í–‹-±ßjÀŽq1/c½N©Ü!üÂu½xaŠÒ(( Vk…£›ŠÍÜ+SüxÐ?ê½i‚NÏ!Õ ¶gøTÕù/7sE|P°fJ¾;“l–W{4CÝyÿ²·5{eŸ“ºŸx3Ó‚N•â,ši‹"a²tºôÚЗU°ü¦júÌKƒáwnós,ö<„*KPrÜ µýs_Iá($"ë”V_퉗ž²-Tƒ9o— ‘)·¿ÛPMLóÒ-6iú)õ$C¹À‹‹HWÓ­å: G,:ºÈ½#†Þ]Òb²< KȼÑìK¹u^1kA¬ŽÞ‚£—ræø()1îtÅÖú+sŒßEQZö¸ê¹*óúe˜F 9qÙŒ$»„0¦a¦.Ø­ù‚=ŽdëSÞbÜáÑs hxÞÕᄎcÈÈÉ£DÐè0LÁëX…àÅådRò,cÏc+ò/~WAU©¥B‰„ïøÙÆ7Ó⊛Gn¤FaôFʵ Ì¶Qc¸¾½(\ÛTë/ÊÁ°×ÎÃD#Þ ¡¾íS%¯e,Se^2άÖ=/ÇuÅÄ{ãVšè 0÷|¢ÉªRÄœY,öW4!–‚gÀ}’¬ˆèw­Æj ûŸ Tœ¼8ö™Tt•iº/LVö±}•|“ÕˆÆ,Ñ~Ò2É[H*ß2×:c±gkNÜã÷¿?[Ò…˜ÿ4%Eqò øý"¹ý¹€?Ù-ôá ÿ‹éÿûa¶˜}¸5MÇßd¦gW…4Á7­´s5[Ó<%Wâ¦;À˜íFF”Pá›ÂËrô–U²M‚kóº`i£MªºýÔzMþ!_¼G|ëçÕ ¼gã‡q3šmøÎ÷[ný´òí½iùÝ–Fó›ÙB“Ö¬¹•þºC¯\„K…Þyg묑Uú§Úð4éÃòÁtÄëHŸ¾¥_K`Ûß OðG½W~»Å[ÿcõWÑ<¹}zq»Ì6›ÚølL‹*qXnпžÞUóe‹Ù¹…së«m‹;hÛ›åá®øM­[§ÿèõ1§qÄÔ‚Y¶p Md‰ÍÉ™£$…¬@KD?úÉ}…sX‘(÷^·¥k•~²…kUO*eÑœv zzmó)àp’!Ï.ˆÂ[|ƒœ¸/Z©oÎhÀè‰^Þê‰Mk¿2üJà’ê}&=íZ”¥IHDÏn2ïSBh‰b&ñ<H1Yéòâ¢lœÄBëutpôÅ–ëE?Ùb½ôqæ¬ÔA 5ׯójÐ}9±¯p;sDVÃ/^ ‰_˜§§Ç¶ò5;f8ƒú+'¤á'¿ÁሠüÐÞr¹P>3çQ“ ¢X¿‘K}Î÷/n)¢±ygR-‘`Ñ£—?r5Í¿‰W¤>âbÒ’4Y±pî56H°áo‰Ã3Zh¸«Æíé9èòƒ*9 ê‰Hð!}ì +KX©GY+‚PU2¢ŸPñÔòßÃ%³ó‡Ûbq¹k¾àÓ~×8!*Vù ƒÕB}ˆ[DМóve†ºÛÑZÔ»°¿Ú…ꚺ›Ü™R©‚Rh;u6ˆê²žq8aj!ìo);F@HuR/‰ šV7]&i ŽüàA§ô ¹ƒÂú}H¯D‹l1¹ùþX\_TD’Ÿ<&‹²ûä\¦‚‚~™¥Þ _ §hš¸;y¼ËÛ YO1¨ q L5Õ—9£ÙØ ¯ÙGÉ8¼c!yÚ'Ê7–Úh2‘Ùô sÒ€ßÖí+T–'‡.‚„´ÜúHÿ„;ê@Ì9w“±Âžÿ„âØ6*:üf}‡úºG•}vñéÞS1Eˆ%tã¡\áó»(.hÄ_µûܲJôŠÎî”-²­žåæŒf4Ùiq3ÖóŒGË›Ò äœn3‹BôAÄ2+ÇÎåàîRÐx wö‡ø¿»û<Ï\c;ªˆPF9è(L&ì ô`o¡“ÄzžùdþÉLkäm'"ÜõéyCê¼²‘£‰’”$dóYÆ•ÖÊdÒ xlæ}‘žt…Äã}[ ¡¾cžw VÌ7˜4Qpœc©ŽO“„­ÖªªçªdñŽ2æG{‘@›x$|£Ùó€zµîÔ³­u1Xž¤=JF™ñ –ßà¾ìw z¤„UÝã:O­.T S¦›¢"’ØF$s(‘@Ò†àØ; ë;Tì^OÛÌñA¬›Rd“¶R©Ã/~'¹TüÐõfQJÛŽâ#"Û 'ý©'$‘L&Úé£m ©ø^"å·«&)¥µ…ÈÜ'Ri‡½OÏem¢Ìkˆ‰`7h^/“ý©ØGÀÕµÚ±«ûµ6E_°iësÒÛŠêõ”Ä ôÍn¬´ €û! žJ¾®¨`SX„ŒëGÛ:REt,w–^AýzGÜŠÉɪ¹×9t1X†ÝT.`+üG»¦’õ²–ù’yû\ÕE­õí¤½J :àøO$jX¡;8DMÇ®±¸ÚÆÝœÿI¿aUÓj ÓÏYÂÆ3ÌWõ?ê"Yrr>HÏõy’@  p•ëYr,Ѝ_£k)U †-L/}C'u°ÕAý=ö]®bP=SäŒÁ>J.>*‰mbkeª-¦…'ù†Eÿmí¤ —W²Q=U“ñƒH^4³ux¬2É9góÔ"xnÊìOhzÊŠ6ƒrF2í=”ŠßzW$žf=ïZU½˜„‰éY“¬›L@ *E ]`sÒü ÷Šñ¸3]Ñ Ìô#Þ7–›Æéñî½þ÷ƒ HH|fɽÄ[W q¢lGÍf7m(´™EfB£Â4Mû$‚O”ž^K^6ÐDÙØ|wKóÌ> cäW&Óç‚vWkÈ#I>;S¾¤¤Œ­Ÿ1è&Mç¬#ú8Ø÷b+o“Ÿ{„–ç5öµË¸ª:Db¾`Á !¨X¦ToU 9Šh*jæNì(0­’Ê!+nP˜D*W¾ñþ>ÍUµÈÆwòX¨5<áDæšG{@<ªÉrÄûóN‘Àá›â}NÊzEK÷õ¥Ü—½WH 1oË&Kô/þ—‹Ú4•„'wÐUòh1Z4 GŠôî-ê=«- £âuÎ"u²@þfá×K½½ô–-D`ˆ:ˆ&7tå–Iç߆>.gñ+‘N`Î`ÓB±¡ºgX£Äz˜Žó`)f¯leI)¾`ظ L¹sG0(?W£Êô+y)d‰ýz_5ÔLCß}§¾=«¯šÑc©Qøt`"» ·€q@ÙM½ÿýJ¿'_V,ÁæølYMÆLÒˆJ2£›žîv.À^ëæp—Љ©äñÏLZÕ…h8¾†Úÿ<|‚³îãIÈ×9“V„N×ù¸§NšýÔýÞº“äV@7 ½ ;°3X4ÿ†H–é?%ßæŒ:Ly´£SjD”­õ „{FÊrVƒ /?²ìGž’$I“Â/ò˜äd‡kü¬º¸Ðê—§Ò6ã-~͕垿xõìø)që`#îfW%1~þìõÙ–O_}ÿ$ç/´IëÉ¥·—?¸ÿ¨#ÁàÆjááZ\`dÖ.žý^0;”6©óÁ‚,z£-EºÃ¾áŒ´³’³ûÍTzIK­)ÚŽKBK©Rs`Ò ò²u q4rºðlaÔ\hÆÁ3²3ÄÄ›n9Õ bݨ2Ü j£”›Š/W/Æ÷rñì¥#eÛÀþká¯×u^=oé5kaȹÿ:JQsжÒȘ°·}PÃ"Ymç/sÚ‡ iôTÙežYº0ëÉx/ÉËðd˜§ÐZ]ÚZZ„»’:ZÌ)ÜCÏ÷„/?°"t"!»"¹™~ )z7ŽŒ5-/¡þRBhU úÃä·¸n® æËP3«ÖF«ìáò/qw ÓTÀf ÀÁv—¬ºöj,ð¨=`N— õ°ù3ÛDeÊ¿tGC¿Å4PÊ´™,•NPMu,w2ou2“ûØšCzè—ßq‰ÖŽTŸp~†C¤íÀP ­ƒ´Šõª)ö Œ©—­9ôxö†ÃKvU–2ÈD+…Þ‘)cüTœè€{· FÜ7“ƒü&Ø+†êèxÑbVÅ’Àóñ5jªÅ •Žc´ 8§_^å6F…i%±. ³ã÷FÚ°÷€Ñ¢ÃMD燨¼§³ !RÇA©‰®ë\…¬bE@_Cn“éœôcÉãš—e«ì"ëO ù U™'JgZ°V OG3¹‘±Š:9Ù˜@›søŽƒÊ°`–×qÍâA72ï I¬ß,Šœ¤§¤ ̘œÒR ^?¿ÓT~!+‘v›Ý¶É`Bo ±XÍêúÜ,8ðűõBÍÞ¿Ÿ»9¤`ºXþ¬þŒ]½RŠBW’ÜŒ¬ÃÑ/ÃzËÑ\ñËÀÇú{ÆŠ/ŒN1V‘"”õ4;ÚG? *¥$ø9ýd>v-n„ë“[­çÝüRk" ¢y,sX@²@4úË3KºpØjQêvFéAjC~ç„wS©Z¶ o Ùƒ¸^.&«[ÞÃfƒÜd‰K!üÂnáM6¬O‡úp«‹’†xñÀ˜×õéÝÇÁ&?-çïî¾öÜNw_*µ¼jóûYëØšèuíu×þ ñ­‚X=8iÉ=[ëÒb€sÕ,Áq8NÍÂm÷¥Ðý@¾/y‘9€ bÌSáklCè ³cñÉÄ:†ùÁÞáý›xE[É,”ËÒ*£[[²ŠÓ•û!Õãª&öVj½ êý£˜ð0iõ×/ƒ Z0™ög˜¿j­ŒìFž%J’ îVוm"í…Õ %™…·_—EÇÆhý(ÉõIG@ÅSo šB_ž=¾nÇ TÕmˆP+Z’%ì:Ì¿O3?›I8™Þ”4—®ÆRÕ5 Ñùo2‰C-P°Ä"øTðõCŽ(Ü-aÁ^ŠœBìv!J1ݔùè‰\Lj §„ršP&¨åhŸæ_ò`¨Ö¡ŒË~h›>êÛÖôû;öú_pÒ]¶^Ê[ƒPœDÂVÂ~…–‡°NMˆzÕdÍUѧ²ú-Š«&p•¤˜”=""‹~¸-œ€R”Ryû2+E%~l¾ð/­]OË„÷UîÃT§f'ôCK¹‹^KnÙa~LWUd¾á+yO¤”îˆåªzoÆ[)>!u4ÅáœÈµ;䛹Àb˜ú¥«ƒœ°C³g ¶$«;A»8àø/Fu“ïÀϽ;Ìž¤ìEð3ûfÂÙ1Æý·‡öîãô[Zìäç•$å9ÔÖ3˜ Ög½ º‹É5¹¾~œÁkA.õA†ˆ>d]hÍ${Òûmg&úÆÚ,àR©¦®8ÿˆh[„ÖóÀ»zfW4–w‹K!õCTUA˜ˆŸÒvy{¹]A]ÅÎZÔ˜îù¢¸ÐžZ9Ö";:ô5·ã7–å*E.ä%×WÑB(jœ\AÑòtc®t1Ÿ)Ô)!L}ÐTÀ¯„ãE\A}`EØ1†=bIB)Sh’·[ŸßµP}·Úq$zµŒÏðiwùò¯ß×n v—Ìsxb?îÐÕ•~×ñ=»Á­b fy‹úç°Ã©…to­ˆK%§(‡»2{Øž€O\ʸ"IéB,LþÏ×Q ¼sp°º¿ì¤9¸¿»ÈÚq;hÇçr³6ºIÚvQë³µõ››Ùl¶Áܬ]Ì5èF½>mÈó°f…ôOÂÏpx¸·oïpÿ(¬îÃýý‡û¶¥i8øboÿ€š8Èî‡VîçBoP6ïáGŒ÷ êìýüà‹‡ûG¶/5q(ã=xxtoý”mÆáàv[1ío°ÛnáJDÛÆ/ösÑ#‡}"dõË6`ê:ø‚ªS†ûwï­º²„t&@^3E\Bˆ/8“§FÎdhFî¨ä¯ìÕ]áPƒÎ@&3-óÖé¼à•°—˜CB€ÁBG‚«V ²ë9áh¼Ì#ÙƒVJbš¤Á¿¨ô2⪾–Cß(IÄØj+±Û×iêtr:ôì "hU%N-O•.båKtêOúCñ fWނ陵ÌbÅJ Uñ*4¹ŠY2™•ÉCi½þÛTˆAì#4Ä4±ƒtÛ³'Øv$°èX3=®”ÉáÒ’Í#•¤%i—÷²Ô*ˆùeå”ñ¤)¡ÃÙøìäŽÀ—\P‹öS²kMûhÍ>{0£ÛVÑŽIymš7ªü´\,dúŒ-_JÁ¾Ð¸y%šQ͘P©Ÿ‰0îNmÕj4»Hë¾i•xû\…¹ zÎ*ëú´j8R’y 5áàzmÕ›"wéoUIÆ…ß õyê4ìƒx85ÊóK2Ë&Ô>•aýꛞ]ܪu-Õ[(ÁÌ Ùzq”)^ŒÒx¶/ÐfRŒ¼÷|ç¶£\­˜Ro% _oQsf’cÔ0lâänîQDQhûæùúƒìþàÄþªl…ŠðC!7=ß±18V5þÙ´ÎTºRQlÐÁUÚ- µÒùô´3ãÖÍ&לÚ×N€§#”?—Íf\óZIz”al—_ì+‰œ:ïtû0Å~øæzšÁÝYáV@SÕ;rÆ @hÕ\Ê™×SÉòøTºÏé&É«)€Š¤~…÷8óò®ÜÞäu¼È_*L‹ó4™ á6&KgØ„oËBÃøÚ§Žªœï\—ŸM&Än7á)’h_sÐu*:Œ™ Ÿæ. ¨UÌòLBm…Åãe3ækˆVÚf37Q„æNLXqž×vg!^"w“¥¯àĆÆèT.ªåÊ™<¨Žaq ÷PíRJ(U §4Ó!.F Ѷu‘’ùlo—.Åý4óX«W ´½}>³@@ó6š-ç3ª2 Ñ %ë&ÖòrÕ/K»°4'½u€ÃQcSˆ@…QÅuéI\¤“‹vÄÈ[K±þ†kŽŸO´âGX6;¬£9…Ö¬&_ô2Kš栧f“ÿó;fÒ/ÝHì·Á îÔ>¢ÿt* ¡’e ”¼Ù-1µU*vÍ>Jë õ]¢ÿ:ûßu²·•ô•³‹ýÿ¾®s÷_3*J‚J‚®éµÄ!ïÒ´¬ u¢ãŒ{ÊWwÒÏ|!ªžžß2vëËa__ØÁ®é†6ꮹþé‹SH{Ýœ9e éÿ± ‚ûýgþS~ ”R_þþg gàí(Fr|zI%Võ´:w§ï›ƒ}n%~”íþ±·Î»c–¯“øJX®7¨'š!eç`÷‡QWÁúé;\;}‡ÿˆÓwø©¦oçÛä|ûb­ó-<òêxünsç=X””gž@—ISáÕüX"œø²Ñ$c°Ÿ ê•i è)k‰“lÈOÈ¥›ÁQ@…»«pë\ Úê‚ ÿç\²%‚þz-µ½Ã¹YìZØ•1ªª†D%½[7Þ’ê,T£“°¾ºÕ¥s"Ë’Œcø%µD‹ÇÝ–”ĔРZ’HÝp—ü\DØnÄŒp‰l˜¤-J­!¶¥±ªJš‘@´ ± \F,¸÷¾|p°% .ýd \}û-)mÿøù)ôÚ)§ŠÃñF}zp°ÿ`Ë>ÑO¶è“>Î̼·ˆ¯;|«ÀQ²yV ⣒º{÷ö¢rç(ãL»¸M‹ûlU™ÜwJþÓ ‡?©u+÷ÑI_Ÿ ô¡4<‰1dæ;¬Y'È‚QrI+g»h~6éÎ/§]aÞƒM€l2ÇÛñB½ìYfª& Æ1Op“-c;ã)ÜÂl#„¦<ÄÀ7u欯§Ä?0vc’ÛâÒùÏ(GÆH‹Áˆ_dÔè’­ÖXØ%¸dÏk¦Î]ŒÑ`”'”â¶¾ mHr#ožˆd²5ïŸWñ‰ Í ñ\!8«.ÍP1ßÕß§hÅݦ/´ºÀÕûÌõÜE ÁðÅL£¹‡oÃÅtCöØ–»I÷sŽ GõYyN©1< ÷V¢Ò¥ºl3GR×»0±wç=û±ELßËRó7ÓîX;‰uãiÓܺù_ùsÚ¿÷£tèÙüsÍ6äÅ'_Ë=6óŠÂ%³8'ò÷ŒÅëd\SöÍf0µ° zM­åýŒ­×ŠÈ äŠtÎ:ö: :fHÑšÇógâOÏÚË:Z^-Š>Ì»“B‘ôê¬ìÛ#©‰Æ#­gƒzrìøõ’n€î.:÷¡Ï»¤¶â ~†XMé 3D®ŠðÜäÖ BSñtû B“¹bcìnÙHmv#0¿ÎYý.œÎÞ²{éºaÝè¼ 7„7RÓ3¡Q r E6ž””L÷O‘`` n¹tô2ùª¼ÓÅ·˜ƒ»âÎ7\<7áÚdV‹äkÛDK7”´cO$}—øIê[š*ªÏSئx®Ó"-zA—™°”$É@ ŸN4¦‰¥¥2ÇI2³n‚LX‚¶iÙN± K=$©±¥/ÀáK^Žu—‹å|ÚàÙN'*f”ïëƒËÙs©Sâ¸SŸã`È–ŒMÜcœnåËRdoFå4컚oÏÇË9>l Ìhz#‡‚1ñ 2’8eÓ#QµAò*Ý÷OÞ.î«i|™bÊÕW™8º{/ÿ<ï] vÛpØ=qp÷èÖŸt=.'ÅͺáÆñ£€Eá»  . ÐÑ^úAæÆ:|ÔîH1-HÙ·»›Ï'\rlè¸<þáy•Èvy”“þpÿñ·_><8<ºuïËžQõèû_å V67¼zQO­·ów†¿í¯zg{ã÷LcïûØlñ`ÿ+kêávP’Ò¢#Òþy·g6tö{óê§=oí¡Yè{ì°Ý%p½º/äÍë¾A3±A GõUé€>ñþæo­'6ƒc~IpÌ/×Â1Ã#¯N^nÆs¼H ƒujÒ¾¢4“iþ²",Å®² LR$)È| j&}“ï $Û¡âHÓŸ+-6%ß+AŘƈ*í^‚UËÜÒ £7_N…#³É*Δuý!Gg1z;Ì¿ŸÑ¯ %±£0>òºëŠû\Ô%q°šÝ£AÔ&§š‘yPƘå\…Z/8ûQG!¶–ük_Ì&áT„µA-**Õ@Ÿ8 3Ö <¯¤{˜*!p ê/­ê@Èð¤uô)zÊȵàdïƒûuž¼Ü•:}“8¨)á3hžb|êÌ>ÚU ð Æb;”a‰C o– ܚͨ%¼av”¼ž} ͤ¾7ï²L~Áy›,yñ386©ót³Øžâª%7üÌ_r!v…‹Ïø/’HŽ>®·Œ(µ-¢Ë`¢×××ê\œ JGræcNSvw^Íöä8¬w¾Ùþ7lß~K¾G*)ŸçÙá[¾8<ÚßJ?ÙߪS˜)pj¼ýpÿËý-ßN?Ùâíú8Þz‚JJAa¤¶ ±+#Ñ4,(Ñ”!Õ*<õî€;{°ÿËm§*üd›©’ÇÑYý9ÆÑ*ê­Å KH–-šÕÃígõp»Y=Œ³JGËúffx˜^ˆzÐivä=—PÀI ½è¦à&”Nk†"2ó J‡P5““ x¦(¡XzAŠŽ[:†U jÍbAºH”ž5õ¤$¤úÛ$̪¹d×z˜Kîø•¿X†»·´O†^iÊ£â¸1lõf:qìG™Fæçµ²…´ךë!©ù0›$Ýß/>\ï§&çùö­..ë±KW|‰#žÍÕ¬-™§‹õN›+ÇBV§>ëM·B“è·‘Š`VWgåxl5yQB¯8\KœoÒw-í;· š„¢+ {ð0c0 –‹öô, ÄîM™X„ùb9Ë¿—ˆ±ö*Ò2>°iÕ°~ˆ5êT êó\( ?¨‚þBVRk½¯zªAÉ-aëq¼¼šyúdŒQ1*¼…wçoHKîÜ]´÷‹èµ´ÃvƒT‚<^»H´‰™æRN³/o“Ú:”Náj÷²#$Øz|ɸ‡ò†ÔluÙ`a•Ãå§7+ç{¦æôˆ˜£r“2á- M$ËLaðˆ÷¥È[¡Œ±\Ï¿/ÃÕýaZsáÊr7¬é„ß$‹Ê’K \~!¨r+Æ0fù2_rjH¬Û.…Š¥= ßÇÛ'l±*¨²R.ˆЮrbb.ºVLÞfH€ŠÌXj~ ¦¹¿i—èÝJ}«ÝÃ|µü îèÓÛ“mU²¯ªÊ}Î([}Ì€5=ªÁQ°è‚èî{rÀºœ-i%Òjñ?%~ƒS#¦ë÷§KPQ0ÊÆ*ìÔ¨B(Û!jŸ†TBÁ"GÍž'RÂCᮓIä7/&= IÓ”N/x|év5¶jKþÛ¡+«bn®–€°Â q™}óGØ/çvh¤Є TÙç!4æÐÃÅÜÿQë*¸¹}Y…©«Ðºb½â)Câ˜!¼aVç”Cbm_휖ÒT) ƒ¦7 kY"Xa‘Õ wwøñ­æ„²R€´–vr£ú ·‹TÕ—¹¢_aƒ¡Ç.`Mï Ýc’ ‚HŒ…žû”€éyÁÏÊžp^Æ´Xô(”}¦"¥§›ìþá~P¸ZHÄé…˜œæ,ƒà¸df”­ò¾X|u°x}6S) ®õœ¶ïþOýõ~§”£9<6íGÃÇéã ¨fŃ ó9uA`qè]ü>ñì· —=y`zJà~^Û¯DýZ]ë×nz-ììù„Žö#Ð÷8GO2iŠûvšÖt=‡L’B®šMÖçP½Û´ÏeШ8‚;B¥º*ɤ €ÛK1§z¢¤sd+³¶PÔ~OA¦dÈ÷>÷3¼dDþ1üüZýWÍ×{Ò•ƒý}¹•؉ä¡P¦ Ïá´*)YããÕìMBzßJU¢2v‰>Ïíï$uöãu®ÇAs:†üËž¥22?Á 2U75¬RNlš”æU¨„QÑÕàyÉ4®‹8í´åš•c•Î1ÇÀ¤lÁ 6Þž‘ãÕìTN'4Råwg“;žxÞFÕD‚ðÖsÆ$v.f¼0F~ñš ”{„ ެ ³¯!pIÖFî«èŸÊ{2¡¯¢©MëPqßMf„(êýtì·7ê†ÁÓj–?» m¿!iï‚Bãòly‘rÇà9¸ï9E0úHSrX¸gÓp#‘Lë²}•§6èW ýI‡&^w(¿‹dÉþwì³PÕÑÑI¯ãMnq­dØVwl1î|¥¤$þU-‚ý•‘ð¥¿Ú öŠ„ýam$,¶jõùB“z *:'íçKN#ËŒP~ºñÈ©3‡$—\%|3-®„‡Ç=Ë,ƒõH¡¨l›)}4vâš, Z-42€ ê¸N¨€Ó³ž³zPS? RŸó.LMwâ¼›1÷=rJâæ:t]°¿‚L¾ ßãvåºè:S²’ªkrLêzÖì»>¨sÂ_(æ´áMÁ“ñ0ÿ7èáBøÌÈžyN²þʼnI"Æ=×Äâb¡ô•~¡•$Öäå*eˆê¶ÕúFÍ™tǵ$Ý‘cÔæ '`ܾ' ’ê¾t,lV#HMkë‰ø ô¾]Î.Á.ÐjŠÈQõ,óÙ¡]LC*#†ò‘åb4ÜUFEVØ¯Š‘zmÏ,"kŽ ?R«„mk+ÉÅÌäPÃõ›Llòx…ï$þ?¦q¸ž¢L8ŽØ{ÎRI m$& qé‘Ã$Á"_yä ©“‰¿ø ¸)Ç‹8Žëx é¸@ ¢Á­§D»ÃÛ>ë,hŰ/Æ-Fૼˆ9á«E†S :Ü)ê™/<å…1EDaô{!6ŽÙúéêÓñx2R:*«>!ÆÙ¶þzêTõ»á-2y[þS§áÏùOô3áôô¥u¼)ßC¦C·¢*ŽJnû°AôÀgŽª€ßÝÜÖwéñÛ´wVN”‘¢Ñ“él*,nëT%·,]*rB0C>Q¼è‘4.M&¡oë˜ÉœÎÂú6ïe´Ú–[“Z^PÓýSMØÏb=½«ߌ1;?ú.ãïŠ1A!šÅtT1F7Ã+)YG Š}jŒ.lÂ[àØ l2t ›%Îo+ Äíj÷T0nù˜gqë2æH_«1+êýuŒÓ"Æ$±ˆq":d_…«f<³Û6¸$£ß^w8u‡³më?$lǨº˜Ezç wõ°;Gòd- ¡Á3s÷\« Ìh]Ю+D>Ä©ÒI¦B¹u›´\„§Éìâ˜ÖQ+ë+¿TcI×E²–¹l!u˜ùiÚ®-û%¿o³y’mEéákýIT¡¾KÏ+|1>ª?๔ªZw÷!/þðåðþÁð`xp´ÿ¿F¥±õÛýñ—N¼kož¥¿ƒñk¿n_+ÏvÑ­­G÷Wí¶;„Ë JòÔÝo_<þ ì·×ÏÂþ§ÿùó›þqËûÉÞA™ñîÝ£ÿìâßüoúsïþÁÁ?|qÿðÁ½_„ÏÂÖ?ú§|ÿ“õÈý *|°!ò:/ËI±ö¹p­üúmÿüñ=~ñèõ_^>Ééüå/üöéÉ£üÎÞÝ»>zt÷îã×ù‹£áaPa¦ÅäîÝ'ÏïÀqýãOŽ“å|öäµúo¾òüÉ«ã×/^ÝɽxþúÉó×_ßAñ‰ÇõhïuMTæÄrü‡;ô»×'¯Ÿ>ùîÓà Öäß/ƒ†ñn…ÑdÙ0­?zòüO^ò<`É“¿zòôë™HŸžçLü|ÁJ1œr#ø#‹!p-áö`sáöE[¸A’&¾­ðÈÃ5~-n"Žüøƒy'.²/†ÔÒÁº¦è‘ï–€!¨oùÉŽ'A)'ƒ“o¸6¡ó—Øää†=Xà [D¨`yÌÅ:UãÙ‡BÛsÒ†ƒAK©TRRË”1Kžs?=ü“ú%ÚÆ´Õžž|ó‚k===þ,ÌMøŸ¾âpÃÅÇ9ù&¨Íç“"˜A­)ÉŸn]ðMë\:ýdôŸÂ¥Z„|÷Gs@·VëVëpíj…G¾ ÀÈ—ådÖZ3·å dø×g´¼ådxÿµ/&6/¤Yîðõ‘ážíÄÍKŸ/ê‡ñÉÿƒ.©M8úÛoVÇhaÆ\kI–æ²à¡K9¯P †xθSÂþÚ{~!µ±Ýãä©våuŠ£ ¶Z)Ì@¸óPJ³\íÁØ÷Vq.8uV9ŸóC°–îÔ\­çãúªîÎÌʯ01Ì?zI‹2“â8gYJÕy«±»†$oáØˆ_²åZÂåDÍÏ0«ä„ÄUÜ×Lk€˜[‡Îmv¶¼HñR}ì&.ŠÌºÛUpi)YªLkn\L &Ö«'3»bèˆÐϰÿ7|;fZI Ä¥IRà;Ø,Àå£qsçëÑ2òˆóË .SD;o¾œj¡µ|R ¢#%ßqa=?í罓;[žá3>ö/s¾óâœ¸ÚæÄBuœ‚å-,æLÉ‹I[^¸ âzX…|±Z=I¡ËvÌÕ5NÞø9:¨ÔGM1…ÉB9—¶¶Âx8kQ0°Æ*pšVªªaË}QJÅ&x-7À¥ƒÞú¢m®âi5¢í×0f_ ·ñb1/o†o‹yOë`~–ÓJ ¼àÎ7«žx¨Èq“© Vú÷4èÉrôö1ÒLš_ùnÿ¿Ãp±1~ÂwÜ¢ÿßpo¿¥ÿ<øâôÿßäÏ?¨þ¿Få?p*?y–ƒfÔÖâÓC~Ðv^èiÏô@«¢~Ðבð)kß/¦ãyù×0 æ)úçÉâ+ìšÿ¯‚‘Ôd/à 6ÉŸQöÝ[}zFŸýŸåè:yò…²¦áQÒ›åÉ«¿v“×ÿÿŠ¿ñjM6áŽ¨Š‹úÿŒæçó² =!a¬¿bÍ‘Ä"øä£ÕõJíîÖåªD»˜»a4àqQt1¨ä–Mh{EéiéZê[R×YZR;@‰Ë{Û ûVÔµuDë Þ蘆•«Vî^ßÔÝ“©{Åày©yË:Ü¿óÍý¾ÆÔ%ûÛ¼mîÓìÞï]û:Öû­À}šÝû½+àZ Ï<.ƒ3V´sDíô;k'<ó˜Þz¾ª™{ÔLßarÍÜcånŽÆ<ŒŽ|+ÚÃŒß_ß^xæU ¹¢µÔZOùsßZxæ;(TwåTÐU[ EÕ{ú®ù5Öï‹´æz÷Åí žùöû—½#|@Ký w;¸h; –½¢#j£o+¸6Â3G\ÑÆ=j£o¸6Â3B½mܧ6úÖÞµžyqúò»-¬*wï[HêÝwZXU³Ë·íê´°Šf·ày&: ¬BçùÚð¼U[u…CÔBN+¼¡}›uµOTZûøM;NÑNC«Üu¾¡5þ:ô®FÛDýÍÊ À]H¿>Ù;ÖÛ‡_:ûoñŸû‡ÿcÿýþì¿p)]Ì‹«+_½-òÇ%1Wö›†ØÇ‡]Ó°ó9tn ÙÑõM÷Ýä9×ú­¡ £¨ÝD2ìU¡ ~ƒ(mª_us˜iorîÙ™8/á:$x>‰K"~P_ö7Ä5WQc¨”¹G}¥‚ÀUcåqØ(&HI«Øa|0—åP#4µ? )±("è#3wk=q›à{›av®6²1]ˆe3†ÑªÄ¦”ÆÆÌÈLÓ˜•¦lQ0QÊ+Õ™þ‰¢Vïó†Òù§RóÛò€Jn0ÖÌêXõ˜R³ß•Sõ £6C9Ÿ‡a—%\òxÂÊé»*|‹¥Øá5!Î(§õ<^ő련 )Òˆ™Pæ9µnCzSéXK…Ô~z‹¬È‹å¼½!Ÿ4áqi¸âe˜ªóådr“k l:šÈUR¢$Åwn€æ’äNêïqå³·¹ÖĸËü"D-O1á‹Åy×Èĵ2»GxW_Ï+Ê#ÿÃÉ—Kò‚Œ1ï3$Šƒ²'‹Y:Ä%Ô4K©ŒÍ5¿•F œ¦ïß—dc…ŸOa³=º,ß^Öïò; 1›† — V£õâ‘Y‡ŠfFyÅÛ„{X0c øQœ'ÄC‚V®«ÏÙäÝoËósæ/¹þ7âŒu §êrZ1A8s†É§æË÷ å`|?•\p–Îe99oÕˢ؎œ·RêVޏ-Uúœ#-©½ûè¢.&MKªzc2^XD1"3J0Ã0‘£ +èL`×5,ßW¿àÓœÙiÖÄjº. ÃÊB`Ro°&ñ4–“oÈû‹“Áù^¶>™Å³®M¬}õBÐ’×\XbÁá qgËÓä°dªué¸d ÓM"¿š̤~uÂããâ&\‚êu{B¦r˓ŚÃÄg–ñ -Bo¦Ãü; Iƒ,À EY#%;Çný˜ìg^iÛ ¼ÿñä›SF@ÀRÆ»•ꩈç…cNÿ2°è” ˜Á¥¶=Kš«p5Mй ‘Ñ„r=›rVÌ‹ÒÀÕ%‘G{- 5Jïú{f„ZÆl%rà+åÈ,æ%Ѻ•{̸€c*ûhD==.Îê;RÐ|JMU'g”âw^ÚÃgJœöâT°Ñì“CXq¢®¦À5<‘ED¿r—~¤L¼ÅrJŒÐ$‰I ¡)UE©Øïêjl´?¹¥°H©Ï]V”æóATÛÑ¢½•dIà…®†¾…ÿ•é¿‘<§w„)Ä5§ e)–™uؼ¿8æßR•1t5Èìš¶nÕÔF°7xV³±v“‰!&×KÉ;l÷ýÀ¾äçÃì8H‰ä’ycFºzIõû@–Ù!ÄF~{¦«´lTè\%ÉRrn-ü1* ónêxåu}R4b¨“wˆY‡qÚ~£¡vüµv u@a~Ý„­>¼` J‡¦„÷–(Ñýˆ.¸.]Qc*"|5c$L5 ï BëçÛ‘¬)Ÿ¯VÎ9«Î/I«…l²D½ŠâmŽM È¢’ÑB7”‹T2: ®#$8‚æ ³ïxæéÖ0ÿ3nÒRÇ|‹‡±Lê›H{I)e{PÉäjE…½ I/–„æ¸ä»šrã¶ŒÙ?ÑëǼ”à/F„LJ›2 ³°BzáÔ§‰;P©Ë½´˜ÖëYÝh…—†Éts9 èåçÐż ï·²©L õü>­òýI¹ÎÉŽÊT­Eõñĺ˜Ó s_B³ƒª’Ç|)0HÞe5‘4'ìHI¡(G¡a~¦¹fB#è ·4˜g(€Ævõô‚Â1ï©v5_ÇÁËv¸€¤'y(Ê¢ú œÁ’pÖpG½‰ÅIÞj$AïQÿ,ˆ@zóIÓzÑ'ÞJWÕûRl•õ/Ë95—%¥j±M“¼ôEÛ ÙÎöÕEÍá)‘7õ›ñ¹=¡ûå¹Ñ:±ì,š,…y‘¹¼85MOƵ]»miÃŽÈ®@ìJ hžX†‡èJé…ïižŽ¥ÐM2öЇF¢<»jÒFè jèÛª©S–4|™üŽOÎé÷Ïž.ÿfî)Ñ?¿f™s´É¶›K7,"ScSXs*ÂaEtž£Ä“RP°‘©Ù0ÁxžAÇEM…‚¹‰0>]ê-ÍÓâuù¯z-Muò°õ›ñ»jFë˜]À¨|Y7‹SžjÚ醶ˆÞòH\í:4Qa¼ 1s€¬•êƒ+ Ç×QÅ×V¹$iè-@\{¡‰Œ&ÜzÕJ¬a®ô©E³?ãJ!(qÉßP¬0U-ØP-ÇÞ[Ú{à‹Ó<3fàòœh£é«ÄB=ºÉ@ßÑh úÉœFiXñ¾«p‰…Ïôfæ¼>h|S”² Nk¿#µú¸«ANOG±L™~<¾B“‘,±Ëðë þïH˜ù¿ì[ÚOö޵ø¯ÃÃû‡_8ü×ð_þÿõ›üùo‚ÿ"s ðë¨üê>ãó†VP$òëp+|ØQ[:¦_ðº/ѰõÞ[‘c=ùÝ&ØiÓ;$<ØáZÈù.’ñ8Ê×o‹¦í¢ÿÿÝÉ·œƒ ×BŒ!Y”‰+r×sIˆ~¢`Ù•ïM¹ªæVÅ$V?YD‚‚ ÞS¡oVG'¥V0†g‰Âü»Aöob(~†rÌN¿¢Lñ¦ŒÕMâϘäLçÍB‹+¬d‡—Œ«¦í8׳8AtÐUEj¯2»Y0§£Ëy=%g¸8c—J¸¶ ñ±ˆA‘Ó‡wNÄîÉÌb¹Dáó'¬ÐŠ´qõQ<%O¬ÖœŠN6ÌÀRO#27L‡ŸÖcvÅ‘OŽ’ÎΫ³7ô!ÜÞºtª5õŒ*s ¸†ÊöLQR8¨j®†ÙŸ9XÖw/È]DRùæ`BÖ0UBMÌÁ˜<T»ì1ð³ÐM|ÎFXCþ|Ó`Cs€ÀsPŠŠÉm…f6Kj÷S ž±b ÿ¾½Ð‚?ZåÞZKâˆsžL»‘×”#ßÄy¬¦<÷ò3®“ƒ,iªZ™ : }ä—ð>ﺔºƒäV¯ÄAh.qnYé¾ ðcý®kbÝÓ 7¯nXj²‰nb%ã–ÒÑÒ°•^ך2ž÷íå¨Ú.ا_ÚYåX’€,3Œ#2JR äô>W‡fRËC¢ .qBuÁÆŒ@•eRQŠÝ}0ÜÁ§ ®Ï© KJ͉yVp f‡šKÌËèÕ¨/$V%û(˜ßþì†ÑPƒv|+b…±^òo-Nžÿñ[žoþ|üôO;»AQþ&ˆ”ѼÎHIç¯N^ÓúäÍéëãW¯å™*µfÆ5sÆ™Üļøp‹+öw2¦Åæ„yоpªü·8Þä  d;D&ˆ ¬»³üs0.ÒCôíLŒá:ŸÏìóå”E¾~Cóþ†NØÊ'h_¾Á†³G´/ohæõ9íÜn¾·'ôØp\àà#à¦+²ÕÏ/–’0%ãu¥k§®æ°6´Š|šâ›ÆÌ+x‹éÁ&š‹†“ç¾«oí™4y¾áX#ZˆŠuÊÏ×έ4„}akÆsP”Q¹UÌu‰£Ôó™ÑMKøÖpÁï®êOº’ê÷D*Ë•"? eq“ú‚—(ܒ滦ö§kC‰ñ{ªPcFºufíž±Y†NN9 y¡—*ÝTD˜ä Sì¨g6ì©Ç±P‹í1I­íØVcÅ-BÛK—3d€Wì= ãRfû-ç–÷‘žÜ –ÆžÜjö†T™øU¿š.ôà UÙr‡MjËS©ãØK¦qýZ§NNœ¼+nüþ.·5ü0jiѱÄý“v:ãÓ6Xí ^,.oYãÓ8Eœ‹4–#7뎢•*e,]ÍÖãjÌÉ7Ï|ú}«ÎÃZêEø¦Ù~G\”›ŠòÛ´ã¨ï|:ÜTüÊ›™ð)lÿÑf€ßVè…[ûAÊvvÀ@gš ×m»`pm·¶Ú 0±+ÿÛåì7’ ÿ¸›@JÀôÚ•qC¨Íí@Qw%Ú§–P;@¹)ÀUÓ!|ÁîM¶†ß¬Oo¸3⾢ϟ$;€útb@ÚGµRùeOwä7dþÞÄ_mui³ݸ#Ë­±èÐ [7ïXEdÓÈç²:×L «•vɨ˜Öœö£ôm×”ð·¯hïÊýÊ‹vVªÁ¶ÕðoÙL¡›¤…A1G¥†Cš¦U¤Iq\¦ZXÕ&² ͲÝÜ!²²ÅäË1½øÓ̘Üdî„âšX:‹èšN"²%$hT-šÞhÔ0û±)%ƒrËKF®RôJéb[Î$[iZ£"Eêó£ïøá¶\—P†G’‚Åí”2ŸÍ©yó2²ªÞ§ØiŸbÝJ½¸É.©DšZ_Ó I…ÌËo•År´u¿©û²àº5=JyÕ_AêŠL²€ÔÍCáº4_¯˜Þdí:zòdCêa,©•éãÖ»Ãü Y{ eß?+ñŠæ˜—•ÍûÕ‹)"n2_‹Ä*­GX’:lw¼3‘äÙÇDž_âŽÝUæXÜqa0{×…A,ÌÌö‹Îà|Qò¯9‹ alHäLp ø)ÛßpÌZG1P-zÄ!Qò0ZÅdª¦ä®Pi<ñz1¼„çœë"±P#ä㋽‹©Ì~3–H¾ÔIóåãçqa/Úk'2N¤Þ25ÀÍqm9¯2Üý°‰Ïvš²ìËLQôk+¡/£ª)9±”×y7§Ó!ÓId³t2\"(_µ¼ ^‰ û@÷fÿˆ–²–hY oä° ÓÛðÔî%š2©S¶ ¸ˆÈÅd·ü/©=#ÕI6å}/T?Œœ V…Éß× Ó:e;Ü&òá9Ô ¯ SaȰh¬Ö û¯ãAŽLçYIzj1aÎÏixXíêmWjg‚l{C p[§°Y[Ö›­ûàééPÖxÄ6]“nã ÓŒ;—N`ßU»ÖÓéÓW¹V+$ˆH¶œîˆÖo<ÐÙçZ¦2ÿÀÔ›9ÌO†]>»IÓ»·,î#m¡o8­¬’Äy£KŽCÓAsÎ#àT<°(utÐêTsßÐãçR"K~Šæ„ÒO—À›Äå&Ÿž-JøçJg0›ìË•çÙ¶qÝÿEbý_0ñÿ}Y¼Á=;y5Kw¦Ë%ñ¸8ãi‹íÙ7†pæ*2*µí@rú¢^åzÕyÓv(fgשvø×WÇo^¼|}òìø)¹oÂ¿ŽŸÿew ‰ŽôBÛ ºëáéñtIpJú3îý½,‹û½í8[h6±V3ék)]gi0,']æLt2««?]¹T~˜’¦;x,C¿ÇF½•íâZ[ŒÅ _ý2wä.Î$9Ƀ%)ms„Š›˜¯«÷ãä9#Ö§³©]hþ±(¹~]Öõ[Vv_u·˜ÝNk*Š„‰A”‰WÅDj˜Qœ>s<»š b 29î` ØfÏH³—¶¥rÛí½ ' §‡”h½ËníÝ‹•™3s'`ª£¬%Pµk$;¡XÄ'D0§Úºè€ÕóFPÃ|!e´H 'åx¦X¹àEƒ–A&iÌ‘1Š7ìŠw%±]Ìéð‘ ÄK‹' Á;Íš”ƒ­š¬hÞRÍK«y¨wŽå&×IFj·*2Ì)Û¸g\ÏeRÔE½d®iÛÛé™ÌÖ õÛNËÀöoFô,STü.ѯ§7óQ²>¥„I΋€†5–/ÛÎ)´v4]ï¶”ˆSÍ„~ô‘¦ÉšÜoÀ2Ä‹Ýí­8V¬~j1®7ƒdz[†PRD©˜éí°zRÕ_ÒM©%yOôõ e¿’éð®+ P×Ò‡»‚µ¢ôÏPTÂÇ$ùÉuk‰¤•ËOé˜Õ,ÜÁm6kû´Î'AòÍRBø[9‡l6£ƒüŒ1Áá Š B2|v¿bw3f%\TR…cZ/$Q˜|J…VMÉžiJÍ ‚S“û®Ó7(„A@ˆL6ùºåÝ£ ‰ØØð¥Õ2 E¦Ðs¶@AÜ^Û™md(O&Çþ‚ä¬F*ÿSìFuc®ª…mR·‰cû측H<Ùz+•­BŒ¸êewNJÀ¹\$¥åª,êêÒZ\žú¾ŠçÀøO­Jì×Àý³4_híH\¯„ê‹Íì5<­Xƒ¿¡'C3ê׎’OOÖ7W¤ôÀíJ{©‘rǵFz"=öÍz&Z’u¨š¶;OÅ~ÊùWF0Ögƒ³ú¬ŠÛ7}‚ 3SQ÷4|µÃzЀŠá´ñfañÈ”R&Zƒˆ¤-£‰.ëeoXCÄ›_õ¤,ZEz‰P5WË Ê'+P®—N1ÝY@³2M†Z£Ä9=/ùÎæu1¦rf’lž†èov•Ñ¢{ vÅ¢Þ^N0Çœac£o™Q¯HÒäó×Ò²—àOçÒÂPcyxÊp+ˆšªž¤‡û }„©Â0祚h}‚„ê™7—Û…þ¨‘ñ2qQ®ÖËÃsÛ:Š·PÈCëÛ…Kü¦iáÅÓ†$î°Ùr#ôHœ—ö´´¼W«ffk¸·e™¤ÔŒøØyê&¶]:/ø…óõ&ìv™³oåûÎ4¹#ÈAA›©¾‘l4šN“¿p(Ü3 ‡”üE‰êùx ž.KI EËWþv8JĤ’åâxÖmC Œl6_NKÒŠg«Ç‡g¶Z)?¤ÆófTL›>¾>E™H\Ì;³óÉ’‘ú=”?TŽ&ª( rÈ_IÄçb¤¸Ài¤z.½²Jêô[¾âôÕõ~Ø3 ð7Dñ¨œ}³(gê“SŸ}ÆÕ—9¥$ #Óz6>Vè8ÿ(IôÞ/æp`¶vó UEÕBlÉœé•fÅE!é+ËfLLí ÍÑ›“jÅ0f9)ß<ÀÍM,3?.9Q†#լȶvFƒ7L†wI%ï§l7æ³j‰áNÅ»¥cè q½Á WŠÛy²Aé¿–¸ß"né]·ŠÛ§= S”™¥„ÐhëÐß‘³o.M¢’x'>@}‚VÀ}wÕW VîÉyï¨÷ÈG˜"n7ëËéÖóÎ?ù­fžßvëÜÿØÛ)äÚ—s¢²@#4ñíÝÆjÓ Süḛ¿bò;±ùÁÀ.IV`±žÊ(6Î8ÈÌ©>P%ûX ·\Bùw3R¸åµ®»ö#⊷%ä†Í»ã‚y IÎvλý2¯Ûu»õµ¿N£Vêhh³tt°ãX•³º^0„¿ ¿J<¼ÊÚ;ÂuĬ8.ˆAËïL–.·$ç &Œ‘zßµ2ÜšÒtCˆO6Å4äGX)ñDœ z žüúŠan¼€êŠË*ßýmTͲ°­º£‚E\áûñaµ A„ÈX8±—K‰ 1o÷ÜÔ#°y¤l§À£_á@lvs¤ÊÌy‘oΊ³›öAY‹w)ÆäE ì\„p^Ó. ”­¶ÿ°iç[*î¼"SzV0–Ûú¯Á¼Ö0À¯Ó¶, ÏÚaëص‚66¿1VŠƒrq);x\ó?—Ê]8ñ y6͈vb¶  6ðyó@8­‰ØýoÌïNÉÝí¤-ý›â¬žw$åú @¿pª_h ^Û_{Ñ™¯>]£p³Æ›E=k⨄’(ß3"áH  J‡JšÜÜš=—`£BšæmGÐâ+ÇWR$Ú:ÈK;q_‡éMº)ýÿæ×Ažt´™þ, é¬þ(M­ha1V F~Ë™­ŸZvÆmáHqqûR|#(+3tp•U¡{—…Ó´Óp‡\• €5‰Z2ðÍrµ:[ǧj}ªc‘•ÿÙ;2å¿áÖIrºx3iR€…;ÚY9ª¯û=–©ÁÂDç=&Ê¿-d}·édáËÜòmÀî=«6„þkìDEéØÎõxh³–ï©\sûe\I†C!†nA¸T÷ŠkŸòJD_öñFŒEÖ¼ÊÄu¡êÙ /'&·~A™ˆ€©Ž€ø¶ÊæVá +"Ѻ+ð/ŠseÂ5d({ŒøEBçÙÓ£_€–S!.6>B¢£•h€f î“" uV,€MÙy/T|1 ³‹xhË)ñ@sx°5¯®Ì® ¤ºaÖv@Ø(.$n Ž’Ÿ…#V0í§Vï&ãÐ×ÛéUIq)ÛIÉÙÓ ío>°.TÔMK9¢´”ulÈx¤UÏ•cì=Ù)ȺðçaTÌ‘Å`äíPÿ0?šF)‘¡˜ L ýIàÊjgøó’ý^TS¸¢ÌfÓ¢Ëf}äî-Ô½Ö`Šå8G|ƒ¬€Q—˜µ—E*©kÖ )¢G-„›ÄoœáºÑØNÌýÎ%-0DXyxÏWuT¦³øŽÏ;]MÙNºÁô»F-#Õ-"6`7 |ÓE2f®wTÇ“ë↜@½ì’Q‡æð N?heÍ´ì‰{S+=¦h§½Dø)Ä{Ì\Ê-˜"ÙZB3B<äóyqc-„Ê<µ¶‡®ß~ÇÓd_O™­œc¦+Ç“È'G¥‹"»®’<©Ø@Öjø(^„=ÂõˆÓnFÌñ>Û dýRr@ˆåƒGõìGœlCE'" õ“ †P*(bÞD«dâoرþ #ÀÐh¯;Ë‚S•^…'V‰N§‰Ï¥ßDˆBbÄ™ŠKC¸½h+âv£ŸòŠö4Ùó|ÇXâÍâ9y -#X¿{Ha¿=y¼;è ÿ㺣·ÂjÚ‰Û&sB KáÝ“q’æ6D8ĺ9±“_ ,©˜f´÷J?:YcN8«¨•TÈ%ÍO²$#{_¦÷”Ë¡cSŽ‚ Äq^H +žò°ÓÃM(¨'ê^„K\<ÿQÿ%?¢½Îe]æ¡ës.øa5­“ù™‘wßdr^Œ‰”ÎõTéÚè]r/@¨ŠŒa:/ÃüQO§È“&ÊŽc0‰òÏ„ “0E¥JBSˆI.+“YÂ.Úè‘pÜS> u#ƒœ5gÅÝ)²ÝËž§Ekœ“…Í 3«~¢”¾7š¨ù7ŒšFDz°Þ\Cú‡×^Û»Y Ë)âËIÖÙOáF9d8”Q“–˜î4€ÕÌE­€¡@Izð4›*Úýïnç/ñ­ÑljÐßÁÎïƒ`‰¿¦tŸõÊú÷\F£o`è Ðh2¢ÎsÛÂR]ðMù›à<„ÌYm7ÏÉceKA–ªˆ+Y´²¢€u‡v¥™ß·™¡îܬax„VÄ'»QÚ$ã2Í%?/\\„FyQÎ?éþÙzËô0fÈäáÚ¿­Ó¯Ò™K¶óæ„õ/Ò%ËyÿÔ¤Žøt†r.e‡ã/J'­¹ðvqÙ–ËŠ(¯tX½û(JÙm"[¡“÷Öö/[¤^BñÍiÞ^À_aO¨$9Ó+a«usF{¿JØ€·3… ƒ­Aéëó”¬á`êNÆ ©ÑÄLzr“7| úú›auñP€¥‰& ¬93œÂáÀ­@ ~”R·-©?:úÒÐÆ¦ËJཫ"1-ñ8è(?Åßbe ~…u9 :h~në±±GRÔ"Ø:EÌþð[ 8‡»¢œÓ¢Èõð}dp­N ~¹‰ðíæñ%ÓŽvÂ˵|š£Õ/nû;'?9[¢4'ÝÍ ]Ìáî@æçGœLÑÅ$OFÝ.·4-Ö ¯PÙéÂJisc·Õ9_À~;¨úʜΙK_‹Ç&ŠlcZ6Â5—×Ä)2¬ã¬Àß%u‰‹\¦qG]#– ÁÏXp–w0ó:Ôþš¦°4 *Êõ¦sE´¦AžÃÕ;ýýê~Ó9óæSÛŒùè-þ~û-~ó±2)Ά¬ƒŒ¨ÁœMÔ6—´ŸŠZ¸±ˆË>;°r½jS˜ËÖûöÙKq]mÆÉè×ðÒùæâ1©â¬ŒÜ2šAÒ½%PÁƒDT¢í†Sòèéɶø”ÎëMs‹8r4« ÙíWgYy@/?N{è5+Zþ²¶¶dr+í.\¥.¯2ü!ŽžEµ$Ê ŠæšÅþˆ6ØhýZd²è —&*¥D$w‚Ðñ$é¶Ü9 àú‚¡Ä¿É¹è:ŽBsE;Hå7U—|uÆ{nƒ[VM,Oå(9*6IÇ>ÞÑf” ü·×Êâ8Ò8ÙJ[çÁÆ2FZѬ<_†›+[%7lþ åGÌÕ.&`›âZÝ6ïÉ@eÒŒ]ãNYÔ«ï¯ëËbѺ¦t©S‘û_ï ãôÈ><¶#~=Ÿ‘³²)ípלâi ]o{[ÈIn©és¾»äˆ+¡£·½6j æØ+2\Xèv¹eL;šéÉ@eppÆt¹~K1÷„»ªJ££Ëm0µ­7Y€::„ã›6 N§9³šWØÛ\žÞF:»8Hìæ…£³œäžKZ,PÚ&…2ú®üTÓë$­PÔØ{E•¡”N4¢ ´@meÙUHÁ½ˆ6¸¦k+¾Í Åð5÷Ú~šQl3ôòÀ샒 ‰g°ÃàŸY¥2‹ëFu¤ØvHâ¢“Æ´Š€ 7j;PûQû°—{Êí²tÂË>ÖãbSG¸lܰ^rGާÍþ)6ÎdZqf·Ic¢®^_Ö“´êI›¹ŽÛÿF¶UbS·Û°“ßdí'•¬ƒF‘Ìà%è$%í4ªÕ±­6RóûOE ADþ:Ç"Ź,ð!zÓFð¡„YÀNFW:·e2]‰eפó,ÈÎGFIaâ¹$ËÃ!€TD[XØ#ˆŸ¼%R£<Ýv{¶bV® =÷›, ÒpnY©°Hx\« äòa{è3ÏñtA,­a*w¹'¢ˆ´…§¡Y€¸zú/ÏpV_ý´fBî¹æ!±¶<µ1Ze•ÒA‡3T¾ŠO=}(ér#+u Â\c*Ñ­°;ŒPtðGëJùâ …Z:B‚= ³BœOã¥ÛVzws¼ ×Y5Sȹ,Ä›U /Ao„àƒÒÆRÕ‰o5÷ºáC¡Q­v,åº\z2ÿ.ÜØ;{óãpùiŠ]Õ([%Qx}É É0£ZÑtZ>ÔÊ´Î ,0.h劖Ӓô].sùp/Ö$]Ä¢˜€þ˜)~mJÈ*Ð}6f˜Ä’˜^, æÉ³oÜä‡eìuP^€ð •.(wßóãøµhk*Nn€¥ €1Œ­2 O\uèY©q Sƒ.Ü8 —u#-A Ó;A(s¶vš;· £®« k»\™˜Îð¢ J©lÓ:l™f¾0ñޤí ìcB`-÷ïÒ'nL!sßXì& eW{×MrÕƒ± ÒG¿o©éŽYÑaàEË<{ïŽ5>-®ÊCßh‹p‡Å€äeÓɨ[³6¿§)=-5FA‚)ºê[ë³Xo¿‚1æa†¶~Öu¼­ÁzlÆQê,%Ï”ÍÃØSò ÚKGõÐøø1-WkC¦y©Ç²Ã|¨½Ë&Õ»Ð$Awˆ½± b"H*ÁG 6Å„—£Iár5ü°ë€ómù<—Z¿Ö¡¡h£Qãd:Qï®õLÀ™qÍn_Ð0™Ê”kÞ5™€-#ìd³z[¦‹Mš ÎÓo ECú¢ÖÌžˆäM¦¾gÀ%Àq¤ç¸µŸ$Ùáv8 !mªÊÉ ±‹KVÔ¿ÕÈÙ€Ù™‹Ë.ÌGažH¢sӿ˘k/ ™w1RÜ€¥ŸÔgE »»vtƒÛî6Fër¾ÇBü0ZÂ8XR#*J÷&ý€+óåtš\pÀ¢ˆ‚ÝóÏvR&º8D-ªPvzû§¼#:·Ð\.iWµkº·Öºˆ1v° .‹YØ,Á·Ï{øè³Q»4»¯ðwË­®“{;SòC™eZœÁãuubæ­]äCÓ,_¦ç,êÇò6HÍùå‚f†ZOÉ%™t”ávZm\ ÅE+ÎÏAIJaµIÍ!¹Pµéâ …øP3–áÿÍÕ»Óäʳ’¨jÜŽÓ²º¸<«çÆÔ6ÉAv]ò½qФȔówƒY¯$e½¨˜”U=yüŠÊ±•›æ¾–mNÊKú»dÛx]#} Š…»Öæg“ áGÛ—2Å$:Ò˜›sÑÈŒûÎaqι†œñ\ÛKþ°eN@¿<}óøÅŸŸ‹<kâuëÐ`?P¿® êmz>G×5ån„㨤`Cíìâ Ó·¡$âú×Ñ[*©òe}LÒPÑL¦‚–Ðá Q:f{hÜugÜŒ "¨Œ“HìEs˜YC(æ„Ò(™/#d“Zg®ZÃûñåú±É)Ç"ÛåúzÄÊcÏ ²`oUDŠåe!‰A É$H‰rYafÍòø[ ñb]_ÅÚd¥I÷°ØR:±ykzh†C Ÿg¨½áx‰ ÕW9¯*¢QÛžÏë9‰b6Vùdý8PªY[€«ÎÕ³{yŸTçf±[þLÛ®‰e»ô ê“£AZ.&@ÓÀÖ‰‡sÚ¼M{L2é;L‹˜Çô°ÀúŽg%+]ÉÃ"…='ZÉÈúñ®"î²ó–RÅÅmE¿‚ê2/hSµ Ù*'r›`&y?ãï‘\ P¢´”O]±×椸aÃܺFÆZ#à>2Ô¨½²ÄÑШu™<›¶·«¹Â¸‰J3ÎèG<î(óT Æií—Šß¾ùáÇçß¿úËírqॄ˜y7Î<ʼˆéHŒð¢ïžÈ¿á¼œLÞЛ¥ñ¡³^—*8an‚’p:¯¬0È*ÁËjæÞK ¤‹¬‡%–‰¡f^*ëØvá¨û²u÷|Ö$¼Uï¡ñîµï²Eä¦ù5¤!åú|qÈBN²û܉Ø8Ôú µ[¤Žò„úÝä½—Pj[˜ö*ÙJ푇¾š·Fõ±v²ÜhR4Ím:å/aï[ÕË…YÇ¿Š¬‚¬©ÐµBÑ„ëßÅpÜ&Kè$ª$’ÚדzgÓ!ÍþåÙ›—¯^¼~A+HÿxýäÙ˧ǯŸl jዞð_ÞsŸ«J%ÚSöä¹}d~´ë“AÓ¥:ü¦oÇÄh~,Ÿ—ôEJ0 ñyf—àN[Ë6%[fþMŒåEQæ¬'¨3^-Ê«FL©´➪ß%—#¨×Ôƒž©ãî2fP ·1š€B Þºˆšó[ª§¤u S>S¹“tIºAA“ç,îÐ2ØÏãí•Ìo Åšm«ÅO§+ $GæÉG©­!R…Xt{Hyÿäbœ³s…8a|´EÀPº 9ØÅ·9dF×xvc ½‰ù:.›Únûɤò)ýz2geÇzÊëmÛM¡âGÔ¥ím&3ZU¿HpÈQsˆèžä}Ë'Ò ‚; ¨cÖ¨å¸ÖŽÂõ?1Ìž#²"ñ­ÇΛ2´Äež'ÇuQŒÈ×äq§ûIÐXMt(‘A¿õ®oÞÌ4äÕI6ês‘ð¿ÙK§*Tl›S´ÆÓÃx»] ꤉.õ2™\6 RÎ{ÓrÃR¾+ª‰ÚxÂ!ÆQ^D±>¿6‘t[;EUÄ7þ(¶ŸÐ­z‰ÿô¯r‘|RêéÉøcY§;jkwžä%\V’¢±R– ­kºcµf”ùÉÈ'Nñeìö¼wUyÜ.ï¼zòèÅóïN¾súâ»×(«üpüêñm^Ö_…G»sLE zt*öYQ8Ä_o]…Q¾m¢OZ¿±P¶F˜øÁ̰Îõ´”,’êêªSÅ5Ê…¦Õ¢º òºð¦pa&väÏvp:ù5ì„ ¯7ûLŽ‚XTÆ­Xá]õlÆpèõn­«’–½j®6vg'¯¶”m’ǨuäÀw^sÑÀUsK_zYÀͱæÆJ‰¡JªF@Ûµ +`^3xUö°æâ®Z$o$¡MAüuœå;јT±Ö+W“:¹áRHŽÇ®VSe<¥"q½µæ-—i!¨tìjZMµÙŽEļêŸ}6ÔèrõžÏ)÷ÉX$u¶¯[º–-¶jtGÇýÛÑúÞ¡b·ûËítK¢ ²l×–Œ•m“¶eÅ+ûÅ Í`’kÃyÞÕâTAêµ(S\>y¢Í»¨mÆYiÊs†‡Õªø^iù•‘6–Yí Çp}« ÇãU» ÝDÉÙÞ²DÎ œZqÅ®Ô*ü4Ñ®jé/wMùËÌ#¾Ö_PÇÑ×4)Ü"f´²’W£\ g¡c"„+<‡ã±'×œŽ‹yDÅcmÕ¤Ùn>eáĉ ÝéO¼üsã+OÅ™òÎJ†ãGœ9¿¨íÇ…Y‹t#þÒ¬/_ÕŠ‡ÔÌ¥š:“§‚N0´IG¨Èý”Î9^ÖÌÜŽž;jëmØÿexÙM8ÙóÝ,âŸÆõHõÎ!Ä‚ c>Ù'F0™é6ñÚw“休r›8èyQä‡Z§`–ç×sÉ3ÍümªŸ˜¸*EWFJÙÅEÁekÓnÛÕ$,¨qÓè(]‚R+[£j2C”ñ¯¯å¬Q⑳* õ¡Utz#\(ß‘-*/x \‡z«á4“Z–ÉM¬9Ý#}pf#:-Ã!¼.«ì:081É¿Qã€÷cÁµdeÅ"øˆkUx“ªÇò»½jxâKCñ±IŸ7®\PãèÐ2먊ђiwåJཅ¿oí¸qÐW ¾¼¬=F“Œ(yÞò ò—O¿ùÜŒ­CvwT›Žú¶#Õöywkx§Äª´Ñ±Å¸§:\tgyƒî`o¡Åëùa¸ªÙáJJ «|Ñf¹œòè£üElèF!Êv@iæÂa’‰9HóÛäì lõ×X.J Ë~`ø˜)U0lÖ´7‡-—·á&œóÙ^ë½ñbËVÈP$ ˜˜µn !þFdC÷ {`4U÷ι;È¢–ã-c—•êÿdþ´Nzw[ÈKxFa©}™ûɲÒÐ<ÖâFâü*ÑÒ# SSp͆b\ÌβÊðzê6}-HÈd˜pðØxbV¹êâ’ê_•#æ> ç ·‡{ø«(ò3zV²×œ”½ :›¥¼Èlú8þïSŽíýµ9¶á‘—ÞY߬"÷woœ*ð’B´D‚…´Ž©¯ÈÊ™³"@DI Ë"ú´½|â\ÓW¥¹|p•2Ð$•†&üèh8Fó¶9Ä…´<`šK?øýÍäY6±u¾«æõ”äç5Š®È.\¥‘gZï'ä½ æj$¤Â¿àÏwE2O§2ö·3;§‚vE\d…1µÎéë|ö`d“f-÷á¯jÕu#iŸÔã¿2Êâo^AÉóÆÌðïã—áʨI3]sÛtã(¿:¦¸ºá¬öÅL¼ªO^m/<Aªd±gnÊ{Ý_À“mX¸¬{·+2÷ãÁ¸RÀÎü‰0Ý¿dþ[ ã®*ɇ=颱&•«)Øñ¿ÿp{™š8"ŽoQñ1úT·…·m²¢jg[)·BÄù ³å†ø ÇXCÎ\ážîˈÔt¬èM¦sËÆ°ì‹>i˜ Ád{«&uR󋕦æ`˜¿Xï(,oýb_A5L‚½0º´“}…\(\Ü/b¹ð^íž Ñq ‹‡¨ôfk±TäTy[–”Äs“Y])sÏtcˆ†,Un_µX™‰ Fdpz쩨¹rÛÜ0 ë×&E1ákOm§O´áoÁcKD~,K‹Jr}m½û\õ[ÎèLÇ<ä§=¼£†a‰Åg>††¨ý’¾Úr[NÙ;Žd¢[¬ŠUQÃl²;ÍkʜѱùT:ùŒC·Õ¦ëˆ\q±~R|ñ&W§·×ÜZŸ=Ö`Â3¿?‡ù3Bª§éz¨]¾¹à×Éì½I“@1ÐÍ—F,ø_¸:ÒÊ?ÀòÔ³Z0€dqøúÀ…F–!³1éìãæùøé÷Bf4 Æßr;‰Ü™~iä¿|ö¥.@r«ž•£âªÌ.—Ó‹ùÍ]Iý†3âc»œ¤Â¸DÍÖ„SRó×'.FÞw¢6_,â·f—ÜÆjæÙ—ægË´¾Mh0qpö}ò ŠÞ>u .œ¡ÆæÄGþ%ŒMLÉä¤Ûðêß\>ž@­Æ;ÍÏæUyNÊÙÞ„HB@5w>›Ž'¤HIJiÂÃ÷m 2±ëÛÿy²øjt~—Øèã.¹›þ,ì«m·¶á Æ®QVï„~ÒgS:’—¿ÇüÊ Å/Ü‘*Y7È Šhž´Ú¥ÇM Q~ÄN‚ò˜q§ã`´ào´Ûö×^5Ë]¶é½ªˆâØB)R²|Û7­âÅ;Ç…¦ÂÇí×´iÙãö§¯GQqïcØÿ[hEO;1¸8Pi1Œv9LR{{›]V=Å V;B¬Vøm»ÅÏK‹‡”éh ós£”ãù%Þ‡ÓÇÛwBW"Ýj˜‹ïßüøüOÏAÁpB$o4‹™ÖŒÓH}\[xR.b{<·ü°g¹BYšØ_.å1¿Ê{:Eôˆ¨"ƵfØvÇÈU´R•¹öI­©ˆ™Ûˆ~å+y‰¼á;e‹ßFJWçEúè°"ꇶG‘0Æ_WÉÉ“ØAô< ÖeÜ“û îú•c17bÚ'.–ÚzqßX]¤2¶ªé†ˆúÖ™3'ù5bÅùÖ¤OײaêéxÕ8:¹3N¹:Ó4!b(c%áŒ~OÛàä»7~8~þý“7ïß¿ç)'mžÈ¹RèÄv›®øT»nMûm{®ç”4ý³÷Ò­Úyý÷Oºï¤¥Sú}­Y”2‹xYVŒHN!ø„xÝH)pJ_P\|åîÌ>bwæ¿Úîœ/¶Ýœá4úTŠ˜%˜è–>[$ùÂçˆl íöoå4•þ“Á7Ú»¸oè¦?«”J4è¾9qNzV 8s·ÔzÛÍ:YûÛR´‹¦©GU‘ ¼]6Æf¾Æ2÷»ª_£J1«+NZæ÷¬±€cA”©”˃þ» 9”Låù‰S—%ªº®V\HA{=n޶Üq‘ÜD€Ï¾oý<ó'FѪ?d¤Œ&»¹#r:%p²Èçæx¸šŒ!ÐÞ?Z•.KÛaUÓsRrÂñ›/_Ÿ<;~:ð`1Í’‡ÂOëÝœ$l†?D  ’Èó™¾rì‡çž¥íš´½U¿Ÿÿ%ö9yyöJ·Aoég掕2¢€x8štDy…™Ã¸yË›yñ††3ú”®õmÅUA»ƒsu‹¢ÍËQY½ÛÊÖÖ¶W*W/zÂ'Vû¥ÜAÛ‰Ö5ïubRžá*[?Ôµ–Zë†üñ/o)e”a§›`\5QäótFÌEoob#xÌžÙºåA¼YlXòZߤš‚j<^\u=IVjååUÐ/ZЬ7É#®ý_!Õã5º­§™ÏžYÔ®D©Y¢ûüÂaãU¡gš˜EHôŒÓ1i)Ä+NœM¦’wÃfY2¹}׃'&EæzM?F2 óV3àK’ΆygÇhÙOfÇʺ•ù¤‹~¢Ý2°³€kÐm/tlB÷Gâ„UåѪ­¢©¸›ïü ´D[¾¾^‡þÙò}ª=«¾µªggêÙ°@¨ns8—ŠpÌêpŸ¥ð0ôn‘=d>‚Ê6AemèU™Z‘úÓ0'Í·¶‰ìFSe¥ë #øK½dX\ñ `„]âíªMJ!UqÊ¿]ÉVÉ‘R9)»—®³²¸U;ßkEëB˜|ª3±½x›„ͱn³vwÂvbœh(øìƒ›5¨ c{§êýGÇ?¡Õã2 ÂB^Ô²¬gúj(òÉaé=-®ïj›_øè[GêIе£.ÛÉÄÉf—ÚE—l¢~åD͸¼wØ¥3#”ïé§´Á ¯{¶"Û™\9 ždæÛÌZŽæFk1¥gÐU™Œ†x>þ*¹*~6ÃÇÅ|L”z¤\“‹{/²TØ]tZŠ™W£\LYdw£q\…,yÝŽØÃÈœ,åÏWQ×鄞L}׸¯PžK6>ÉÑT{O@_ ®×­äØÏ õô‚,´<¶ …2:ø\ð S>Øžá~rMÉ|ŸãœYDïÏ‚Á¹¢tr·À:.À¡õlÛ²«C‹­äøÚÁ½kh…c§ï{ïßYñý›³R«›Daå†F=ªf^5[c*W»ƒç[?_5!ëýêúIï¢B4r˜pNÝK@^L×Ú s#F…½§ò¬+0zÅPê½V#¶ øâ2ƒKŬýâªt¨j©Æ’j }¶9H»¥Øá~ôkî·¹~Ö~…SïÂêaŠø(-==r‰Ûg¯*Ͻpºl7`W€Ûÿ]ãSH?F=z¸§ôüižà»ÒÝi¬(}N„ 5Ì5Ù!SàŠxæYâí,MS„'Kò¯²Z9.Ù ßó—f‡.Ô$Ô2I,˜7Ù­—¥;B( E›'Èæ^‘^ì’fš\!¿?iBWØ•ý›³<ìÝ›¿pCòÛ¼ÝØÿØa÷±Íüìb¢¸Œ­«dÚ‚^9–².ôí×™È5„z:sÜE|6}ÛPéujµ¢Qªð85âdë¯04ÐOÞ²KÚf(_[nŠÙVImJß껤ȜÔ×{“pOzHÇ g>/—&™wÃWM1›•9pOêf.UJ‹™“í5†=Ê3¹œgeäy7™oä–åÃЖƒäúýQÉ0ý/q¾¸nûk—§;+ŸdØ¥£÷â¼d˜¬P˜øºï2U(­KÄu—ózJ¥Äq¹PˆñغsOìzÐ껔ؤÐ0éŠÉÐY3*¦MKDÐuÏa!™§#IlOž˜ t!úÏÉ%·¸ÅÍü³Âbaê„Í*²_Ê„#e;(Ê…Éï ng&ä%éõUã„Ln2GMX9^3?› !ï]d¿²=m!W=ÅÜ‹ʉ0åY5j:lI[ÊHâ˜{sVœm„ø´SYŒ)&LõžSÖ˜ùÑH‚@”·ÆÆ] ?Ÿ9_€;8)ÚTRuè r¯„ŽMÚ-ÍuÅqÀÆ]UÆþýÑÂõ—ÎnÞ@Ù¶¹o£«ñûdÞQXÉ©¬ÁªB,¢9[ò@¢D‹ÀmiÎR“=UFV¨ B¸›¥–°L‰Äá]zeÓ}ŒJØ1zW)æ«©£”jÃw«âÞõ¯‘x¿þû­ÒGsÕc:2«¶»fKãpög} Ó*Ã.·;íEŸ³ð r~±ÖYyž†{†Ïê&&D„¦F"Ìzg ²iŠÓ ýGÒ€B‡ Î?ú ‚°)¦¶«XìŠ_¿È/ëYñ±. FöÜÅßã{¬F0óeMÆ,ÆUÛOY-܃‹ //.])7‚éQmM9‘±îãþcMÎ^†_ˆ ih´šƒ)/®‹Š;ö›³rT_•UÌ©¢Õ×ʹ˜NÞ•ZιÏ&åUµ~KlÞ‡åŠeø "‹‰Ü¸—«3WfÓv vnPÉé­—s›ü,Ω½¥æGÈRr’€€ußJe:\¤£z¦ñ­Ì¤Mã$O½xùäÍ/ØÓ»>½à?áµ7b&ü"kŽ™éŠ8€K†8tóÜp{bh‚A[‰© BC]fñÞX÷u~N®Ô9E‰ËwáXœ °¸¢›Jeð 4ÛÙ½ÎÝ<Ää ï;½þIcŒ{x§Ð*ïÿ¾¬Fä°6äÄv` èo©ZáÉ´H‡-›vV¯ËQB˜¯òýlR*:[‘}<œŸwU¡ØØçO¾{súúäÑŸþ1KŽ{Л,™Â;R^tΑ΃X†`HçÃáÒ†ù)iRÚcZŠrz²ÔÅt¯`f|=íTq{BÁU—c»&µ‡l9&V–p×£ÑrN5u[™Šœ(•(S½úØKÙÅ8ßœêÍÉ’´²h¦zûx/}šº3kHÞ\ͨæx/qÃÊØÔ~ 1‹·:yt3ü¶5Q$оK¸z¤ÍD¿ÿ ËÆnÊbNüâôŽá*³´¼¯–Cr‚(Œï+=Û\IjŽö~}5ô§/SˆÁ«rì‚ôä 8Ž 3Pñ×KªåÝ1|Ò5ãk™l$°«“íÃÅ^ø[©y¤¤…\\±é»± =ËiÅteÈé‰>‰¸>ì¥ZS2&lpš ½º$u uHjSÓØþVÎëavržt”àl±Öm"Ù*úXAH[ úN«Q¸ ²8§ƒ<9kâÓ,g;nŸ—DŒzrÓº1uþÈ÷â-`Ækô‘£&a;tq65Ï“Ójl %ÎÞ†a¢ŽæôQÑ¢öÀzhÐ8Ù ` mEüµc…[ða”‚›jÞšŽ1l"KÓ ºGß½¦¬Ÿð½8ëEv´R6O Äj‰óï^:ÚZˆ>®ÁM¨TZl“[€­šÉ¯òMG½ùR>|½‹é/†( 1»ôîW­áp‹êz­dv]Fg»IVtæ Ï’2ä}ÄŠ‘*þ V 6ÏG‘8ü/™Ôñàpaˆ ”ÿ×SªØcS®[ Òß3µ>f}¶ð…þ.´­É¶Öʵ趸.´0<Ò”€)û/‘nÉcìÈÄÔrÙ);’Ë) èÀä¯ü…§m6_NËÕW/¾nMÆ­—nÚ¸hZT2¶šÊPºÛ•DdŸçâ²nʬãõ°Éà½Äáéð„-LJN†6@mX~G&èe9¯ÅvAN9ž´?Í ¢¬“oéÜ›Ý=º±þ·ò=ŠÆ,µ*»¤½kæ ™=jÔGAFn÷ªöœÂÕ>Ô/ɇúåZjxä“f"Û<ž¡^ðeè©Àü’ì1Üèôg(J­í¥­å;žžì2ÕWø›P8ÄZo溸‘:À”ŠÉ“@[y$°š’¢¿È}!bøDça“Þä åÞPÝ÷‹¥¯1Xku¥pæ¯Ô­'9ŒÔƒ[=û;áÙŸŸükÎÒfÀeÁJµÁ¦½-»KÚ +æjÒàû Ÿ@þ€ÂÍL ̧–RˆÂ[š U‚¯ª)¯Î&ÊÉ÷Ýë—xðôYø‹Þ¾âFØ«$ËA©F4$³ZÒ Öˆ:æj /Äe¦jŠYJ Yz·ÀÜ‚!=ßW•LÏyMî;žFv¤fäÆÂâk)møIÉ£ho¾Ötr³Ë~¦ Ј›¶º˜FWj†’LfÚ#áÉ„ùÿ=·*þ'*°ç<³$öÌy¬[㊊E]›#LÑBò˜Ø³ÂKߨ§s$Ǽe¨ I{Íã¸G?²/0…Ö(*ßU„Ö!'ö|Ö€5 Ýç¨5Á}f’E¾ÕbuDOjÄë–…>nf&šÌ<Èoâ [îzE}h/Ø>çæB\ý›ÔHj–#ò°RæÙM¬‰ø™NLØ{\×(ÿ7ö Ã@ýl™ÿ[¸ˆP½œÏëùgÝòknÂ,¿—ã! ]¯A'†+·ÑÕä7MªV¬îê,Á² QJ+ÖÕG†{8Oµ0Æ,t’ƒî^IÕ/wÝ¥¿“D±I¸BÇ\U÷ûd—Œ–sdxY!9|®œŸiC,äl\{VЙ”‹—>¸ó"üjN 6ŠÃÖÜ£Ÿ|óè»7¡Ù?ÞÅ?ò«b4¯] sî üZà*+5“ô.&í`O‚ˆÁW_Lnþ_ó5’è¯M¼ú:=Dñq\FDó?Õ¥}E'„ª†ÍuIšPJТ~[o*„’_,yУ.Ò Ìç„®B¼IœýÜMªæü–ùU¸T[% th{H/LZD H<ˆä5¶bãˆ^ùü{^*;‰„yxS«öY¾§«‰¢ÎÊÀ“ŽºKUÍ@n­ËNSתã¯Ü½;ná¿ý†Îå킇U0‰=XP‚=/ÁQÅÔXÁ X¼F$ˆä§‘ó1´ü®˜WLÈ^WZ6¦ÿ *•·œuàô39aDX˜±–§ÿ¬áC²œ#µDŠHóWS[]·N¨º:’ÔíÕSÀ£øWeŒMQR2Šê“x«ªy˜0©†‹÷oÂÓ™¤d„L“'¬*:,Ê&Õ›0•áž‘ŸrCŽlÊÓnÈ8(gÆL9^Ž(’:ÚÁŸ 43—AlA¯àÏ9ž&ïšÕMú¦¼ÿM´eéÎÊôM褾ˆôNƒIUœ]ŽÙZ7éÄe2Þá5½{¶˜ëå¦ÒއoÅÎc!鎭6B{°¿ª™k­ˆØZp]"îŒü¥A-‡Å%WÖ]D¼«òMPÁ/.4×ZKÍ‘èÄ[ˆBãr}V©èæI¤«¥Whßלg«]´¡š$mÈ‹5¿A'-C7b|ý_”S]  ò¤%eÛå{ʶô0IèW5nHÌcJ…£{[ç¸Ä‘s“ªU¨ªMYNûÆ>O±pWÍ…}3õcüÕÙo¨$Í‚ETd¹w7†áuz*†[»¹¹Ž@A`¬ë±"çUÔpë—,eæ&h)qM?"PfÁX((¤çŽ}0”Þ*Ÿ·ãÝ·p[wâ¤%Ê…NÌVF'×ïn[n86‘ÎÞ0;™Š•ºßE÷FúxÖøÁå¶cù OpÒ™(þjD?Xöy‡áØŠ·Éø5M/N«nŸ-› sIQw€'pr~^Sæ=â7a½ä›ÓI…D6J2óé)1A£¸—É¡dP#ÈoJða‰Ú¤çºåpú#6}°TJäÖ‰¨¢•áŽð0ÍÃRÂç2¾°õ$ÔepSŽ­¶LØ]–ê)Ÿ[fÞ>‚j­™ÅŽô¹Fþ@®‘?¬u„G^œ®ˆŠÎ¬ÊFEAQÌÄ“À6¼W%yš«æŠ#Ô4y\Ô{z>©èÜœ•‹ë²œftšÉRŒ5)‘Ìu¤ª·ŒæhJGqyÓ@E7»h'¼$#· ½:òÝPnÇ.ü$×J`¶/ŽyC>:WnªJÈʨNà!¬Ž™‰Ò ‘+Nu§fЍ\û8CnXøå;ÆÌ·ðšÞzÉÆsPrÙš`ÍpI˜ÌÅrʵ˜]£Í]Lš:#62N.*"¥ÅÖ·qQ^ñFrDZ+êuÚ)&t /.3† ‹ 5ø‘TÕcŒ™.Vðßvù8ý4:@¡¨«b€ê…ZR… Ãö QX­Wª{¨©'K=·õP€yӛ؇<â½à×8ÓBWœu2­§{M¸ŠJܺI {˜U¡¥1°‹¥`|µPªâLå‰í02ú'¬ºêI…;V´êåX2“F¬ûcc·eõ™Sã‘7ôHjRèA Ÿ‘*E…$ eç5—À0~™ ”ß´œVAåJ˜uò—¹ì… ˆr³ é¼øöÿûôÅ£?½ùññKt€·Fø¦Vò°=\fGÙU¨M]ŒGH:žgWT?ÿÐ'¡LR#Ä Bð“0ã¡-|´31®Ó}q›â&Öˆ›·€ªéŸo$s®Ç‹ž&)g*a>Îm>[ç0—÷èÎã½ÝM.4à2eªÓ+CT•í[_H¥ƒw·U¶Ž5ç:¡çr|Eo·8p¥‚ƒ¥m=”Í/½$G-§‡€|á èu›ß½I«íÐ`gá©i`D~IŠÉ+zkû.LËÕØj}Óv© R­Ä› = êbЂHÃ.à™4p–eј” ±þh?qã™sæêªW¸0ø’)È ö@ѤNæpÆš¨VäehoE‚õ.gF{ƒ]‘—^™›—¬<ú·8¡—XLÈìÓd2tÛ=³•ÆæN}ÔW~Må“–í¥M¦ôB·©pN·òd‰²¶wuÒÞ/X?K¾>¯_оûHT÷(Æ&Qô¾}ñø/Pø^? {úŸþçÏ?n_|²wì‡?îÝ£ÿìâßüïðçèÞÁƒ/þéàðà‹û‡î=øâàŸö÷Üÿ§|ÿ“õÈýYÒ©Ëó:/ËI±ö¹`{þúmÿüñ=~ñèõ_^>Ééàæ/üöéÉ£üÎÞÝ»>zt÷îã×ù‹£áaþqæÜ½ûäù’u8çüáÉñão²üÏž¼V{ñû'ÏŸ¼:~ýâÕüы篟<ýõ§Õtùþq=Ú{]“±v0Ü'{1üîõÉë§O¾ø{¶"EkÊyP—ó¸ua=$æµh-ýñ.ÿ*üüéÉó?yvEXþêÉÓ¯)ÆÙ÷Ì¡{FCŽ=Ï™¬;âG± !‡QÿQdÞqOVÉØÃÍeìQ[ÆB '–yxäh¸Æ*ç&üÌ£6yjâ ¨­ƒuÑ#Is-˜÷Øúésá‚ÂWÄMßò›’Bó‚¢õÁz¸.æœ5gf¼Åe¸Ù3¥X 0ðŠÄ€~(ÿÔQ8œÌ ˆ»ÈPoªžS;i!%oaZxBTh<ŽÞ+nùE³;ÈÖÄûÌNõÍ•:Î@î$=@ “<¡øgjÐeDCy5 Z††|foÊÁ‹o%ÓNæãºxõµæ ±äM»Ñ4ž¾ Â#.}ƒ§TqB ü°¿éœóÀ”·3|Cýóå.Ýp7áîØ‚rÙ붋ɯ¨EU#™þÇ-Òº7ÈRµÚ½ã«G>Q@D<Åòœ¤(8'Õ5ÞÖ™ÜÖçoè§oè1ã‹Bü4í’ÊiO §äûŽÔç1ÓûH”–f!ÿ¤·5ic6³a^À#I¯æð«©çµ•‚bJAPˆ€ñ¿W²(¦7zxAºPw"ÍmzsVSÉzþ¿ðˆq†…ÏßHˆ›¥|삤ºÓƒü>Án³=)Jûñ{Óɲ_qgư<ï³Û·©(RÑéåé Ý},p)ŽÝ2f8Õh!ãí™ ™«½´Àc¤¾Ý©Ö[„¹¤n·&Ð#q¡!õùíüc©€gój¥íÂJs,Ô”µïþÛ˪ue0ë-Mj„CáŽÞÏYYMÃ=xÍ'\‰ž›»ƒ¹Ñë‰ÒJ¢m#æÕ“G/žwòý›Óß½&d¥}ðÃñ«Ç»}-Ç!k㢱›E°þ²Ïyµêó·•K1mKë1Ë(_Wm)ôŒõíÀu§€³‘$â·&b˜Q.!±Í$õTIeäKÑ™¾ É  IJ0aÀD€ÙÖ´Œ †G‚\~2áJà—@—Ú°kœÄ»—.jÎb®g2ëâT±·L0¤rŒàdÈ}I›ñøM}&s4qæ óZr„z¡U#9FNëÎõ#¥àÇcÒi— ½ ·£¾A£ØÈpËږผ´ú±Ct6ƒÎé‚r˜ÁùrÚtõ EÚ~L·;SJøç÷a³Ã,Å6!E”PÌR,?gËÚ—îayQÏ&$›«L}=w?¡n´‰W{u™pép¿yüâùåŒèàM½°Ú>¶—i#/_½øþ•P«sý.Æ]£ö„í€Ôº¬ øýÿû㓟æ¶Á‚­ŽÊ’;ðÿoïÝ»ÛF’|ÁþŸS½;–z)Ú’-ÙUÝUgü«µí×Zr?îìHBÚ À@ˬ{î~öÍøED>ð%ÛU]}Í9Óe‘‰D>"#ãù {Zqc¬òÚøØUtèÛÆBî ZV=ˆB8P‰ûÓêQŽfU—²áG:•ÈŸkñ×5äˆ çíKÁ«OÀáÎy¶¦GН”žõéJA8®]>Öz//\/€pÀ¸¸¿û.SW«·/Z%¬ÚV}qÿ oíŠ`5y+Ö2!c‘RlÕ; ¬zg?øJ÷j«#Ã$ Dƒ.¤ƒžýâͼ,²ó¦õXÒVq;H\ºÑšK×Þ­™FmOÅÔf ÍGë½Íè#ĉrp¹’ycm½ŽmzÚk5U9<ª¤Þæ\ÚÌJ£é|"Sr$¡x†<Èÿýø¼Ü»W®{l’·:«Þ îÕë‹?ž½úQG籄‘|H:ˆ!ãÖy‘ë$½4¢<ýÞÓÛ”å~ßöšŠúî) Kïr_!-TTo¤¯[Í͸B7žHã]£X£B>;9qôIF<»®rŠÁdßUý^ºï†¡x)¶iÙ¾evP³Åââ21n“Z!òo[oAÏ['V¬Éfàz?…AÒ>öBÇ ¥WMwäý¸ªvŸ9…VkWl–mä³Ö9ØÚ²Ñ <Å")Ä’–]¶i»ÝÂò†_ÌÚM=£på'-él¾Ï„'B\‰Yùv{ë+ñ~Çóå6{£Ã‹Û[Kþ|éy¼øJ0Èû3w;ü¶PHê1’ öWYDSyUn€*Éï°o³U5µQzˆO®>@˜¤ãí[à{b Ž(Öàhm¬iò¢åc_•RÐvÅ[‡f×ÍÆ2†ï³!§ãUZ˜ 7až$Ò‚/s‚°ç ákÞöÆOÊ¥”—‘SËzUû"¨P®Vûyت1Q½œ)ò€ù>]ÞíÕÙâ_ûŠl¡1~í žÛ·Q]i mÑåë@_2É©8«ó¿½$©áⵋóŽÔ/ä NÀZ©©¹Ï/¿ºð¢Â'%2$*œc,¨ûÈ¥SRDã0–ìkC”#°º“Y‚ xŠGG=;ü'áãhðtdˆ~}öŒö„‚d©u‹èæu$aÙžx*â”#¿±M-桑ݶÙ%æ»8e·c¤~Ýã^÷`Ë~œqÂ÷´#HOÇÊ踿]áùkǬ»$Y%ü•!*)eÞ0ŒŸ#oiá‚Þãk“B²V¨é6‚¨Hš“ÆkÔ%å“h*†Zʸ^€7˜ÞX÷âo½ò|¸)±óòðÐØÜY„Ñ{@²³«Èaäƒ6Ñ–Åzdšš)¥méiO[jþÞhG¶ž}Âtb"âuÀ»°Ååø-;ÚÆW -¤7)æŒwN7È&Ƹåfõ¹Þ‰©_„Œi¡?èØËݳª{Ì N'ƒ¨gÚgÇFç*=¶¾e“fŒ®ÑP;3wµ Á’ãÁ"…¾½OOD•lð:‰¬SоOudX+/œß $ –÷¼šI„Ý‘N{ß7mÈٛܽÑ[\‰ “14åœ æƒ¢;3qp1)¸Aà:¹™u6e0v¿)ͱ¤Q†‘sþÂyQoæ;~U$0ÿ… jø“\?Z Æ(Ægœ>å\’÷†¿RK™úu¬‚‡Œ°¸ºfòD|(Рßd1Ô¦ëI_lqx5…à™úÕ fæãÕ-p¥]UuJF¸\ÃZS[ž*оtJ‡½¶c…E{N'Ö Ã *LÉåÕ£#¢ÿþZÍØ4y L>ü¤ìµ´•^6.2U¥—–•ÐÈ¢i…1J$¤S„4LJÍ8«iI<ÍXÊ©–dKOJu)_í½J`¤•_ôÙº øQJ÷_F¡v%ö½ºÕí§i’¬ôÛäc(ƒéÇ&-¸Äÿ&½ísì?ŠÎÞKa`%Uß½9El;õà»`Ú·=«¢î†°s?ˆYÏÇàœ±À‡5¹»#Ó¤ôÊŧ/9n¶6¨¡°¢~ç Ïþøì­®±Ãľæ¿ÍŠI¾ „nÃ`÷Ù‡”‹92x Ä—ëøÙéó³W§çò `hçOƒ;%xêé‹so@}äå?ñøhªªµãFÈDË´¸öd³×—üéôoyýö™¾Ç{ýo¿|ùø­?h_ÕG̯לþë6Y|ÌòŒBÛž ’¡ ÐŽìS§¯žéCXè‰L­l‹°YßU ~’ZÈ ¿q-Bí¼¬-§æ{‘Ó逇ÇË|g4ßì§øÝãgÏȨãÁßi& ª²á¾Nr¤œÅø.­þûÆõŽVƲoï¬APaíT#ŠžþŽýdB8jN±€–«ª¬ê·v= ¢ë4ŸÏ&~øï! ´N ¤Iý9ÉœZË£O‹ÅÌn}–C/A¡Z±«‡sööþÝK} àÌÐ3J-Ýã†ô½ß¼ÞÞÒŒŒL˜%¢k"±ÐJ†!œi=wê¤V\aLZiä&d­P}ùÁ_0wík~ð?çÇÛ÷/öŽ ù¿÷ŽïuòïÍÿý9>¿’üßçà‰õšÌßã-2ïï˜ùû`§ÌßãõÜóþöÜóÁæÌ_ÓäÁºÌ_ó»]³U9¿(¡÷ÁÚœ_4ñ:j© 58GH¹Æò¤¸ZPÒm¦â6ÿpWe.–0ËjIÖþ< ‰¾©ºú³jí]5ºúÆI-Î ¶æ‚R J b,é–±ê(Äž.ø³¨&hÝ´ ”æIÐ#Á^¥ÇÁ*ièÇ9 !ûµ'ÈÿNdì\qPÞçÄÛ4Îfu·yZEßd¢]™còèáóvÉBôÉ'?ᦶh^¤ªRs-=![Hû®¸œC-æ7´™›’uÅlÙ ¤¥&‡î•G’™z^ÙËvgý¢êxÙ«©Â#CsEAÃL kö÷-¹“Xm!\Áþ²˜É¶\8"üe•8!ÝJ[‡…n¥,^²=7ž]œµVÙ—¼éçb‹¾¡n#OËÙpŠ¢ö{nùöôâÝ[ޱ²¬´/Ý ‚ö›R wöK³Gõok˜ /¼Z‡ƒYHOÀ˜Æ)©;l£xh9Ä’5X †Ï’%‚IÊy¦ùåÄÁ÷Jöæ%¨$Gî"`½ëÚ %ùNŒ(­K.†ä_î…ªåûdIˆ`Is­ËOã@ï¤GLœH‰ ¶ÔÚÊÿê…„š™àëï‚I92¢v‡më~øóQ;dxs\X"ßÑ€Õón1^1Æ-:]ûÌ‘oðb©<´Öìõ”G^{C|¦‡ƒøÞ >$†ðïyóûAüý þ÷«æ÷D‰ß~ûm¬‘TÃè‚$XU)@?K1ç^eñ‘LŒtLN!‚ŸŠ=úh¼Èˆˆ“œ §Ì£wø¥ÝÍŠQEÁvŸq{q€žÍ§àÿÓ‹‹)rû0²»ò{vØéfÓsÂLvéÞ…È ™ÐÞŠíKè¿’èÄô¶¢lÅ©»6ˆë4k }aoL àΗÇvçÇ'“ï–±ä*ô,m°ÃÅi™'Ù­n'VvQåË‘âíÕEq•ºäC÷•31t'ˆd§}ïïÃõ\øt›¼?ÚN,Ð*k¨8âݰıy½w©JäZ :~‚¾´¶†ë¤š)‚ݹ¸I}™b”ÈmGÆÅblÍ^¿=@Ö‘T¼ÎzËn‚ÖºGT 47 =]]Jç«£øÀEPãg¶¢¢YmW/̵†9d„Öú •ÌËJ唺= fDñS6Ø„¢ ?ÿ/‰¨dxŒª€G‡ƒqd)ÊÞ OFl‰.þòúñÛÏÅ>'8c²ò«é— M/,6K¿Ü’IÅ5]ÁPn§(mAq¶SIÂ=`%h8;ðÖËQµè<ұͷykEqG¶MÕ¤íi2‚±Ï5j¨zgÓTu»iž!Ü&µÔ2UíÈ—n™b3§xØlÍF ú]9øÊywβycëáÞåPÀPŒDxr'‚™áœ0ƒ·úÛ°z„múÞzàò5%?1Ee÷À=¤{/¨)á»×n‡Â½û$o\œŠ«REYJ!-ÉC׉vh×UÆß›]âò6òmà(cáðƒxàõÁPÙ…q–g •.ó6&ž–—!²’+dc£Xž¾þKLƒÚ° “4rK+ ÷%„¡1év-M·FUWbaÞ»XD±#Tk*«ìJpbª@r aØâÅJ!,[siò‰˜MìÛèH­« j¤nªTŽ÷ĺ¼”úyTäÃè¨Ó}Ó6!6Q-+óoÔ:äWN¨s§•&n$†«p><ÌD”Ø#çׂP11´(HQ'HR¼N¬KQ"ªH·»ð±œlŸxö=þÚÞ@°ð†Éc£~Ä{‡¨x;ú¦™ár)(?ÌèΨ™yÍQÍÅNX.\+ö‚n*"@J'Š2f‘^õ-…’&??…Ìb®£=.ä¨sÆ´R¨XG¤_ \žPµì}Ùý!íœnÀ©¹®¿Ìº¢¤*Ô.—à¨î h³NAhdñV3°•ê·ÝYßêD s9¯l³Þ# õ°ÞŽP>+›¤ª~gµ3"EÓd–\!‚ŸlgüƒŸ¬å| Šské%Yftf3l{¹!üø{^2™Á(²ËˆÍ@Æ[\ÁÉ;Üù€É¿G25IÏføôÍ2‚Šh÷–½!²þÎÑM1ÅW]ñÛ5“X¯¿%ùî²yÏ lˆ]ÊÉsˆv6‹»V?Kü»mJ¤—›P8ι{’JXœç‡5’”¨øÌS­/Í™–tCÂÄ8qlç‹<‘h‡U²ãžÔü!¡J¹£<+‰ Ý˜7œPhIó²A‰-åÔ„†Øí²¿þþ{þwS¢Â!t6ñªA+ãBš¦a¯¢«*#Eô ³L.Íÿÿ/Ïtì¤tâtªª{i^`åO/jµ-c~J}Í0^Ž[/Œ[Q/-ʧ¨ö!„6MІ†{TÖÙ û§—;ð#.ƒVgtTý¬™ ã÷Ï¥ ëc©´OrðƒÂCÁ— ñí˜Cu§Õâè“ùC×H§lbÍuÑ;Œð¶ ê;ØìÄá™ì ki¹~èˆ|DërµÐä¢Ê˜$`l3=£¿¤bŒß£y£Jµ©°¤ ò9÷{Ƨ$nY—yU1Xœ“Gh³©’-Ü]óosÈ à™K¸/¸@ŠšÒ9¸Òü•jÌV<&¡˜ßçJS°Ð'ùúÑØ/Ì”‹–;½I9%˜"e0®ò2ÒbÜ|wj¶V±Më&ßIñó:Û9•¨  ¿õÈ(Çz>Æ-„¸oÔ¾ñ-S^ÞØÍŸ×Fµ¡¿ËÇoB¯}«Í¼9•Óñdê¤3ðòìÕž÷ΠÓ~4Î8ð̓ÝBït„¤!?ëÐÉ ý}°åöÎ0 JóÎÁj‚†zÍ”næ×Ëb›¾¯šë:J€ x\{Zãýû­–ñÞ½áðþNËÙ›ö¹¨ÍV¡xmÀü¸’$»tpŒ~aˆ%µ˜‘Scξ3Ú&¼’t¯SK|»'$hAŽÄ]ñäj!O#øáÿîÞÛ—BÈVHã@—Û­”.`äÍËÅÚÙ!-íý#UX…uXq)Ù»þ€4F” ³à"Ü¥úÖä Ÿ±™BÝVº‚aC!ÎA´×¦”"1]+ ¸.3bƈªÕv`¶#Â.Þ$9´V¨ è™ª‡S¾´PŒbЏ¦5s›’XF(ûÆr°±?j†ü•b‡:(óÊÉû%OËâNãr8§NÆ@Éi1M(sî–/*5QÀ¨j(ŒëKSÔ¿«KC³Ù÷•¹æÉ•õLúQ±Øï•–9®<£š–òFvמ/æF=ÇözC™qT€iï%Ûq_í‹=ŽOÛK:²/·!:#á`_”[ ˆ(=´åóöQA,mé"·zµ˜à©|y hRæ!ó€LÄtnî•âN™vlT`Ã{bSˆ!k!ûŸ’Ñ8iDšÞ{ĺGºÃ|P”[ø§’D@K“¥8ÄòvI 9ßJ PB"ŸJèk¯›¾c­Zß$µÙ(÷c…qCÞç ºQÎì¤Ëò,¿L˜Ô•jê÷dZYTÞФ¢ººˆ¯åŸF©Ù;vê#Þ5‰ âæ¨×FPLSy›dV&Û‹Ä^–e?èQÄãUJ¦WGÎæ²2ž¡4ìi:y®á¢y.gè ƒB{óúLbª•Zôb†ô.–NOìuê€%Ø¢IÓjŸKx%·‘‚d}„£AÌ¥!56ûžìQ\kŠLŸÙtA>7Ûvê˜tëZ o½ÐFPSÍÍȽäšóêi)j3þšmzd²XÌåùH@°’|,5ý¡Ñðq¶ZæPúnÄ’¦Ò‚óIã·ÏŸJ²“Ð'pÝk‹ïÓJã· c"8+ÜQ芒 1æ0½)ÒñÊ,¡#Žw nذÄNR*RYs²Ú|Ñ ' #úáD´ðÕG‹yÞZ¼Ì8âë4™ê èÍæ0½—¿# ÕÖ†lyßóˆ¿T¤È4«5.WV„' Ë­¨…Àˆ“e±L-\`±k«§|1ŸZÃTÍ5A`‰5„‚!2ü¤ ÿ-²Öv“‡ÇÇ{7©°•ÁbB×jN40½›ƒ*™gìq&/f6†NÁ«@ø 䊷 pÆPpMK²"G°4qeë,6{d¦ÊœÏ«ZsFÀÀæ ÐÕšúœ‘‡´îž’®Ør"+ºokÜ’/@ޤs¬òrÆ×%|;‘¿-|³M«ä†€låâyc[ãÔ°Å>ì঱Jìö“YFnS4ZARJB›YÑ=ÁsGâOKì¦EÌÐs?qV`2h % §$~=O ÉýÉP@’œˆéáJãL¤>.W;Ûh±<ä (|ßI¨SÑ C~,¡ä§FM9¢@Ù¥Ÿ¹ø»”yZ§HBL5tEñLŠšû…S°âi–Ý-•ò%[-œU „F^šs6j|Î`HÃl3(ƒú ²ì”ß ·ìæ9'0‡““þÙ;úø±]h@Ý¢YHæ•,Ÿâ¦€öù}Þ—9 kÇ%®à4ðŠIÖ)-Ÿ ÷j+Ð<Ü1÷A‹u«ÃúNÎ ’³tìäI#'½¼Û J@œ*™ÝŠVfÍše.ôw$Oˆä7¸Hì 4 nB˜k©(³eñÁpêt#âÐ wp»,²¼‘Tš8QR¥ÞF`lbi­’¥ÊÍ&ÛLZ21Ä7‹ÚÂÐÇÞ!Þ 2fŸŒÇ[ñ@`PÌ60Œp³§ŸHý~óøÿyÇ%$ðk.‘4™mçlñ¬s4Ñržv2|¬dã,?ó ›YN婃±W½BŒKaÏ;€¸%'F¥ŠÔ¦@üÔêuÃè\3¨5‹PøŠ{ö?WYÊX2|&ÇP5seŸ,²JpW‹4»º+Tª¹¿ö‡а‘2;–ÁÅ!°ËoÎGTibúù–s¤U$‰Þ’î]R»¸”Àjò²[RrÕ^´ ïäç]ŽfÓã00Ÿºü‰¡cv†%ÜVVC2Yær£yùì˜êRo´Æ$ui£-§éF‚jnR¾‡ï±7Únƒ—» õo’§I±˜su†Ë$£¼Cªðº»m8àä\‰nl;WXês¿¸EEPw°ÏèIö=l»É}¯ó*V=[jßîµcáÐpȽ`s­j±©a Åœ‹Ó"õˆI+¸v"fŒ5lÇdÑ•“Ù#Ç|eTfq½¸º„Õ¥¯,Ó¤2jò›œôcä„Jº+ì²nÌ}ï=Ó"õt6}ïûJ«ÞÓ뉀»Ÿßþ÷¸¥jî¡xzç­ª“zýú8-r[ús…©#¼«< ±§œi§Çær¦íÝ`í€IjA"Rž,w¾_¹ ‘¢›Ýü“\±V£ GשFù˜9™'PÌ#0õ”*2/Ôz˜G(ûÌhâlDfÝ”óàzaFÊÅ|® »Mõºìë9‚¬;71E9/z ŒœZ!š»Ýù0òwÞq­ÀDˆòVÁÿ¤ù¹¶>éµë¸†õnút0[]*Jâ‹§>ŸQ!—¬ll€Rˆb¯ LW´W¥‘â ÎpêµAÑ=êøBf¡ ™ñnﵦ¨ñ)°Å馒Ü瀇ßû¨g³¥þöîÕ»sª‚æí4Ó<í³µoÝbŸ{F ›K+Ì\λXWê–ï!C@½ ZâÊK1{P¡ùRËØŠrIb6ͳþ×P§mE‘PŠŒ;¦Y¥•HìFI­k' À¨À\ͽp½°i†bK«ÑêÛB50µ ²m]ú‚eQ²ßRª9d^Dæµy-dϬSŠàZ–Þfï›7èݤF(î •«Ý)é5°ìʛºj«ïnKÎFpFÍw«OÓ•?Ö‹qð{Xy†l½gi(ØÂm!?þt¤WÑÇVMTzp%0¼IÇþöùÓýUýxkte¾? ú«ôèZi– Û8Ђ‹\g룉¾€· *)̜آ(ŠO<ÂûAúˆÚ÷à ŽF1Í=ß`áÀíj¤·l͵ÉH“Ús€Ð:4¶AM+NO)ax›ó¥X¸ˆúöÏÛÛÝ5¥²JWŸ‘• ò6çè‘ýŽäÝ÷÷Úç©[dƒ‚× &msÛ-´Ë—W²o{šºÓ W${r:úøñ£Üs§¨»,=‘{˜ðÉ&í¯»ÉBËF§Ï¦©«.ÏYØVt„7:eßmZPø8LÔžèî˜e¥½™S‹<Ö‚¨Å¥ w’?Ä輫Jg ÜâúršÜ†'“¥#…fw¶·[dQ~  ÖD šf6´üu¯£â VÑVZò{ƒê4§h¹?£@:¯²²Ê}{$/ß 80bóWB6À¿ÞAkÚŠ™Îưâ“BÊ^EÕ¸¤ºÊD]rí;äØZèsÙžžVUc:Ón‰§3ãú&ï3§‘|AÊÛT5ÌóÂlÂ_è̃H“ü$^¯Z{I£Î¡¤—ÐÆ"*Äáâ°”Š½RGÓzb7å¶‡‰“3šº o»$!×·/¾l{ÜsòÛB­œX—íLÔg_R‹~`QœèÞÌ&Z×Åbm8x,€ºÓÙ²>ýOU(îÍß7+÷8UsÔp†©²£Ï|ÒÚ¶À>Um‹æ’mX³q_ù\1£ð ÖÙO[RD;ŒB-ƒ\R®µ0ÎùÚõ,GÕE­º.ÙÑtPy·öKýÖL¾³Év&,¡²U ch¿]qÛ¬Mò·cÛÍé rŠ©Fnåó|El?ý÷ÿc‘5œ—K:#ŠêíøÑT'‚½Õ¦© å5úÇöe=¿´ñõƒxY.]AžÄ¥:…ù¸Ríl¶(T­¶1šÀ°ÞK‡WÃÉ%A>ò7üøõ¢™–7\§[CvjW¨Ä÷½ò½¾rˆR50 ÒœU^*”3н”ÌU•$ ¥P~rxrTnZKÍ91ht¢ $Bt¶˜‘tTQÉhu:© Tè2&ZÞ0’t‚‘»³)LÎûÂP, ýæÓþZiTí£<&trÃ’’ƒêÎ@(Œ*Z=*6¹ðÌ)6< ´÷–³¨ý³œ‹yäýÈ)ÞN^§f*ÞF6"XsÙ»(Ü;ób<ïrDêø†¬ØIÝ«xP7 ‘~6K]LxVÀËC¦"sðjü®ÒxcÔo©VmûÛ騬£ýV+—ÄÛP¢™ á05˜W.Rr€EÞ—æEycô«”ÅfƒÙí1…¦xŠ51,ĺùœÂÍìzçõb>í]ï-†…CôcÔqL€’—%?™_‘ñízÖ"¿¦œ—yyµôÈ<ÌÜͱӭ­G6éñÅùc Zã Cç?ˆ’©óÔP§ R5‹‘M”4µ;eA*nd¢Zz”KŘ/ðú=I‚1 ÌQiø$"R¥úk?`UÓ!†:œŸÑ¸& Qæù ±åÙØ_2F²óΆªØz¤Ô/Ÿ¶5)ˆÐ%ºË‘gågqÚL† Dýºðü©ÀË]BšÜD‘óô.»-’‹Ee+ › |6¡\£C`qH¥¶Ÿ%•7ÝÃÊ›ää–vñÒîÒÕšc˜¸ËòÉ‘‹èšƒtcSì‹LúuDÕ€ˆH¿SÝ϶;µ‡Ý,µu|“¦zFÇaD飫*™_{ÙØâé²0*ï Pz\º!¨ï¿^u&Xñ¦b—‚žÊ§i@p[ìía!5¹V´{æíïÓ9C5Ý›P'Úx¬fo‰ÌÖJt_Ú§GˆMæé›wšCtðáÈ:‚NˆaŒ(WïZqãdøÙ>ÔRCñüz ø-:DôwÝ=¸·(ò”s…Ø—?oæX%sFŸ,³œu¡*¤ F­ÂZ 9kÍhT§‚ìÈv¤¶¢Î½ ïÆñ…J1ªX5‹Ä¦ýc$¢u‰ÊÎL"ì+ÉÕʹ-­&Þÿ=§òSê\’ÿ>d%"x†-ƺ¨ö&„¹#.½œ+¹R5Kçisoà&Ø’N÷‘ˆ‡]Ž#øp ³b”‘Ä{+Æ&ê¶³(’¥(”l˜Ýž…A6ÇÈ{:™›‘™•fdúÁPkXV‚>¹´HW¡Ó>1§"º2œÃŒ‚^íE¢½^„¶±Ÿ$†·Í+ZOüBâ r ˆ'Þ$KÁ*äž³N¸¢çm©Sgé—ƒßHË7§vv>bÛ ÑEQ½mb£Í¢@¸ù ö øbv½ˆžœ?3çàGØ¥ÈK6ŸJª¡5gŽ—|x¦âé_´ÔÌÃ&çv]ª¦RÿÁüö‘Ëc½¡˜Ra2* ë-Óp"VÕÕäî´Æ©T„X'°F£H´ög:öÖÁ&2£{¤B=45±0¾2C·†³Ñ¼VRl¥(…«f`ؤ¡/d±ÐrÃJ…¼£¥%±=Šl¢RàÞµÔG¼CT]4wºK¸/j]äฉԸ[h¯”vÄ¡‘¤Má²ç( ½þ‰×눚)j¸ª—†ÅWÄûœjŒKSž›fõÜϨr±ðDW´†Ì >˜ÛŽ=ƒ»–Áų ±`~žmû\"ÊΕÊp—ù‚o=¾ÌøÕt íƒK_—£ŽjeìJ¦»Ø›l{„¼Ù›Ú.‚5>ôªUÎX½È&äO)qæ´Úо \2Û¥Œf²;Ìfš%ï94¯.’¹a­¦»õHO|–8BÖÍ2ƒDkªšú”ø8•sÑSÍöÅÜLJïE:$¸íL˜1›y&I` „ªÈ†RFRü¡‹›HBb¡ÌªéîöN5 •¶>+)³‹6§iÁº ú&FhH³''Œ‘{_¥7Î*’â¦l6ç`³y¶\º?"…€†xÌ™²’¦l‘6A(-„q:I´ „|›Ž<^JU&ÕIhû¯Šì'»¡lÞ£ w¨°SÊ×&émÊv‡F¸‡Q˜ù”…lñ_4%mp_‡Ñ³…#eõ@–Á¾‚ÄnŠWJï|À½ªŠ Œu‘¨Ï$q YPHR¥wê‡Ð„XØ`ý"S©ظl‘€LudjÕ݈¥¨'C‚üa«„Dß«nYdÛm`9«Ww%iEÐ(ß§µãžÐ@w4Ù¯|Ø©q‹Ñïžáy£ñUÞ×âã-&-É_+ \5v‚î^ê…Ê ¢T{ E¨/ùìpÀÙÖ”Z*X[çü+f§l${±¯L5Ó<´Î®­¼²Þ|AÜÝ‹ô¶‰h:?-Ö¢ÉZU’/Æ'ôñÄI>:įpÜ£¶  @„=mXÀ32ŽÉ©ÔTìñÏÈJrX|Î/¾Ô-#·]>õÙ}ä8TzIÿNÒ‚E¼ps6Ú|gdz¹Æ×,Eˆ»’ 5–^zA·^¢ï¥,`Ë ½Ò ­žž®ëyK?~læ[ý­/{רӆë¶DÝ“E…zbrq³>…bI#dŒˆ]DL^zUHµ§‚_@£êƒÙ†:-ù<7Rb}­&„ÛæßšBÖWØ2rŸ]SF¹A$ªè\ŒÉæ•ÑÍYø‚8Ò·yI†dʳt¶ôL†›M¿,‘â3H…Œb¾‡‚å%†¶~"GH|K³|Ž Ý1ÖIÄ}@¡ã³^žýøÇ'¯ßŽÿòøoâ“Üi÷c®“f¾)‚žù#?Þ 5÷ÒCº~¿Ÿ‡H¤þ#êåùCØïë¾òIóñf!.6<á6nm¤X5Š;Najš\ËÝPFvEØWñ™7:_d¼zQ}@B’U±‹‹ãñÙîÇT§šøHGF8˜ÊcÎ#"“í¿ˆ¤fµBˆÎp—¢,ÆU™Laûc`^Ç<ÔZ½ðì"uˆ“ŽÌÕ˜×ÉŽ¢#—§Mñ·Ý k_@‚äß­už$BF!!Kþ†Ïã­}«€‚¶[=Íl®°QYS(üb!7Tf]'"Ñ[™ðjuãÄDäu%.²zc´lp\9Ø·šˆ™V±XÌÆ)§Ã™SµòñöEç%KSMÅP2½¹ÝöšZ¹ÿlܲ[bþt`{€wަ:°³Ü‚ú_(DàaúD`ëÇ&R°}L(d³Öõ&ùM »c¤ìcf[euĨç(&!¦Ïòlëkðma&GD3:;={Ën¨FW šßœâé` ÛLp”¼…d?¬¥Cçä ¿2Û¹ÄFû8ú}¸¢¸ÍnùÙŽRÒ»qаPéx„Z ®*_o¾D]y `.£i–R÷@8~yÃuŸk’«¾·Ì ³w”ì„nk¹¶Ò7ÕnU9u{ž‡1Hº³S*ªýËh/IÞp]—ê>}ÌÕ¤%É‹‡ˆŒÎ¡~+Þëxïô¯£Ó¿¾yýöâ.ýóÕùùã¾ì3·W^ïü%ƒYúÂÊ­ô6ës“Tbí pä»[í=Æ{j¾ïC æoÆ‚*B³‚ o¸óUQV©ÚT]ˆÁeµÏ¬¯(±IÎy­erÞéÆ ‘µ1³aävëÍîEþ[ÁŒ, ‰G£%àŸúQ<>`ìÈ£žGkÌp‹±\lŽ2œðΜgK#öžÕnUdáH3k,·ªãÕ¤uÃh›~„ú¤5­YnFÈ’]òÅ9P¸=ÌÑОÃAŠÀiƒîHT€KÍÖbñ2Ò¥[⇠ƒ8Pb6P'‘?HT'K]Rm„’3J!ˆ&p὘}/ 4{fÖØ\­o›ÆìX›ô¶œh­½+|.B‰ˆ€±‡¢"ÒiDw”—Ö?¢cC–d:¶fYÍmÊÎiă.$#»m‡s½írGáÆM®qíöÞOV¤v¶ŒžDcû¼ŸUR‹ÐN*'›Œ©NA_r)§ÍPßq›{bÅød« zºîÛ ÃvØž®Äáƒëwô¥SÈk[yÊjã‰BxúŽCo´C" JµÙ,ÒÇY#>«ûþVEZØuÕ³7ÙãýÐÛ=A–¬ÓýzþçßIüZö¡wÙQi²»}ðõ6š-±­7¯/˜t%àËá½á}²ú“͆œ~ìP²+X‡ZŠ°Ú¨lkÍ/.N_¾¹Ð@+ú#:ßÃø/) MJN[RË Am÷hµ\u“PÖ´í6\9>Ò×$`$ˆLŵTüJÙ¶|ö¦fPä®cÞZ£‹ñLÌ™;%9N«‘Fçî¬VíqÔî¾Äôºˆ^íñ³«UBh.†hsŠ:ˆËòV@˜«5|Laç0àö|¼åatno#tÆE ở‡WÔêp·Éæb(¼øIÐ ›óø¥=qÑ$´ä(ÖF×&’q±zoþ­Ãòíð1?{Vvå`ú±î®êß­m®*{Sù¦!½ >3Ù„¶’/t)ͨT¢w#ùQm­[E¦¸r ö…k'N*°w˜þAÃrÁe`EÀ ˜Žðu ž`ûÂÙ_¼xööõ»‹Ó·ç˜­wu–À?ÛÝç(cÅݶ†(V_má}úÝv ‚XsñýœBC);ß6IJ‚ñÌ1+ßâ³GSbÂ,FS\©@õÒhl ©´Mˆ²oL¿xýúDm˜‘á>«ÒYù³G`#äJ¿ Ýéóà3ž–büq Dšˆ—R ×õ¥Üªa÷ýkºÃÝ$-ìì„ø8"ëøí²°?K¢µ;õ²É‡›°éÏv&ýfòÉj‰“&Ý›Îáqg+µ‚5IzôÙù£0i`#÷)"È i„1%C¡Ü6^Ž÷ÈÏkBï0«lšŽ^>þëãO9¾ÓNÉåÙ”{‹YBfópËì,éúbB0êmš#jÓ !¥Š úº·§Ïßžžÿñâì%£'¡Å¶e¢³q³šê ˜¼EŒ8œ{‹%MѸJu LS*…c¤¤jzC³Ó€ì!çZ:'­[”–˜ÙŒp»‘3/šL1¼‡bàZ,IÑ33…Hs ñÎ3NXÈYncy¢nR²wq¢çu2Ò7ôÞŸÔ@Ò',‹1LÎ’û…²+Ú Î!Ö•XÚðÎÛ\¥kÆ#GŠÞ 8Gò|ÿmT®Ú>¸ÆÌ¯Ρ”ͶAœÎcHÈÍK{BR˜sy ½û®"&‚Û³K^–ìeHÁa>ü;KÅBØÍ6²$ßï°ÕÞ{VäiIFª­¨BƦޗŒÕ!ˆç±þ`™!`Äèë«Z\ÌÙ}c•B« ÕüMɪ®*Ë-­YŠíuìÖÄB!«Ö¸×¬¥Ã“–Ö‰`ëâçZE¢aÇâ ß;Ü$°Jí¼ôò ™jïÞ&Ãs±ÁZ¹fIº›{oø(ÜÜ·©$˜à‚Eê›}ÔK vÊ->0à­•ÊgºÔYTͯ…=)çK^Ûb§´3îEö§3°$_‡q3n¯HòòÏü}LDI¾–ÚŽ‡¿;¦—zl4Ds;á“/V›?j/!Ž·ûÂìsýµ&ãÚ‘Í“æ6JB%&·m‡fN†‡!Íœ‘ÇÉ&<ËþþÞ 8¡’køLšCK6…bu$äMRqÆ}ÂÀ¸¿Ã4y“X_/ÐýäC¨ôB&AG’籑RUÃ$àˆ3¼lo2ލf—™Z mS’z4.Òvf3íj.aÕrFÉØ¼Äù$2 Ÿ”Dz1W·AFÐW*Õ¤39®GaúaÁÛ´Æe7§EÈËrnzÄ‚pÂdÿ7ç8HÃv5R² q†@²å—ÜL•7”íÀk Î+é'(ãkº†#WuRB§»íá[³ÖÿâgÔÙé+m îwéØ,ÐÙ½ Õ ëšå\@3Œás‡..‰zPK6ÇWßÑTü!C™¨öú`Ș…/ŠùEG.ÁÍŸSdèî}²‹î}ƒ¾ p¿Gˆ½YýÚCˆ ìÁxJµ®ˆ$ÜQÁé|òdPZL‚n2ŠÉ3Š—Wõ_‰$’ Ž6FBcŽwV®üÒ4¾ÃÞÁù¸Ã³¹cÃQt”ä' fZÛ¹Ôf éÙÃ!À9û–G U*͉Î{ÉÞ{Íâ!†š®.ôf3Sºìæ±›kÙiòV¸Ã™—µ¦–îÛ³7œˆ?7@£ÌÇ2%,°2ƒëÄ(Ýį¼3M-1¬‘ަ<),‰ ö&³™YP§ø÷lÎzIpÀ\_瀼ˆU¦‹z†º(!‚Íùša~µçÒp¯ZÌËB‘+3~¯¡8\¹Wè/E‰4™¸ù™kÁ³}&´šnŽÇ±ɘ4¯[åU1ëÄnyj¡ ¿IÑ«é”G9)(G‰'9h4Ëô¹‘Ù=J«U n7b7Ž_Ú\²Ú’%*ãZq&Ñ…ŸMq2(žjKX±ŸEÙ³°¬_`åZ‚‘’;ý<@.@!Â7\_·‡îÔVYÊ0¾-’ÕîÈ„­åbè”L/ÉáŽ4àüæÍ0Í€ð<—8˜ p äÝ–†ÅÕ`¨­‘ÒÏŒ_ЮMéCybÃÚK1°_—rMÛ&@š¯¨E½(ÊñB²-€Ëe+#Åd?ALº„Ç#Žq×0ÍÞ^]ƒ^€jÖ”õ&¶Û¢­± ƒˆEX«# Ð(¸œ¥ ò’Ÿ„øµiu,7cïi^(ˆÄÝRûì.½.¨Lèw|gÛçQÉ2·¥8`òå²s^.ˆsJS–ÁÎ{8Ë‹me¡Ý\(l­´ûÄN$”Ü<£l¾Œ÷øHóyæ ä÷YžG²"ÖBÕ§Íùb®§¢’²SâGÄeé4Qh˜dÑ«Æ, ² Þ|¹çÐu,óJÉ:”Úd€ˆq¿q˜­þV¥DwPx+ñ³Ús4Ëxxõ ¶(`£‚•3UɇÂ’jº9´VÑý“íl^†Ð]Â.i -ÏœŸ­f󲸲q–F\í$¬±Ò¨$†(ýu+oA²ÈlIÆñVûþÁw¢¾ÃZ-ð7)åÝ‹Ìá¹øq% 8É|–\e“ˆK4‚o<,©ÆîÞ g’¼½Ê]²‰ÐRé[’½ Ü™~é[+oAŸRDKÄöf.¯ Ùv&$RÖ¸W$Ÿ¦d\ŒMj¯X |·¢³sùº#ÜBÙ\zÞ I,<^+³Xh˜Øã)©kY ‰õª¥oM«@-õE/ ˆŠß)X2ýÐÁTÈ/§€$DxDÀˆ›Î¾)/‰ràö@=°9ëKÎp–‰/w×ÍÂ\‘{oÿ:ˆ/þ*ÊŠÿov°Þ'ß{™5鈎d®ñcî#æºÃ`EÈí¢»eÕ!¤å"”êÀ©Üï„c«Úø0$Y˜•ó0dÀå-ŠZ+RžE²+Ü?¯Wlì“¢€µW2pO‹^ H @%J,Œq±ÈS3C®2eC˜YB)A­uš§»ŠÑ 8ü+ ‰ºvì" ¶!9÷§­@<…`q ;*ѵ/q÷ðzR5$î1aêvAïfj"cmÞê¢Ñ^·Ä!¨hÎ@%Ô[“ëÊy‹Z¼gG8õíãÑéŸG¿ƒ‚Tïb)7`®E>«­”ø–«QËû‘Á YûéD*ñrL¼H {’zåæ$j{¦!mÐÒXöUce@ÔÈÓœeä.ÖåÙ¹^‘6#w¬?$†öbµ/Ð{"Ÿ½x¹™Ó_V$m£ ž ÒÍZï‰E£†QeÄo”C'-B€¼Ú#Ê©•:ŒP· @:7Éò ™Y$T¬þùbNˈÈl.âgÈèÂ÷ƒG'‡†€q¦øwùõäðÞ‰ùõÙ«sÝ8¡aZÏÌ7úúüÅþjÀ qú“µœÞ49GM‰¬\ÇÜÁ  㑜Æ÷:cÌ£PÞpàV­Ê¦;¦¶ï @xØ:ŽOyb=) ¤ Z4H‹wn~Foû!Ô‘*q‡…DA¬šœÊ0ÑÈJ¿² ¶*d#d#NÍ 64[.$’„¬Ôk$ É`ý ªÖ±HÅÉhÐÐÜ®tÊß^ëR¸Xïs¢ÄÄ ÿHxçæx‘n ,3h/`±«¥¾Þ#YÀ½Õd›À0~âfj»ÜŒHaÁ‘¹¸â›ÔꨴàWS&67ßzL‚lzo9†ÞˆªB=#f ´„õ@uÐ÷(±½ër.hÅÝCwÙ,œSÀÚI ­‘ÚÞî;ÞC¥Q>Þ^<½|÷ââìÍã‹?î+#vù4‚¿µÄ¥QÀ0ɪÉbÆ.Ñz öU¾º“Š0©ðͯ^¿:u/¥+·†D(C¦,˜³UVhK[ªà…Ýý57'éG†€kø:!Æ)¶£¥Ê|lÀo—ô;2ÉvY«›ÛrÇ´oÈ6‹D)¶{”÷–§„iiR2K÷ºòˆ`/: 7H)ÙMV2 ô:&¾cF n!J..ê÷"k·2ë‘°0ÝЩà$òE)ö×¾¶ S Nªî°:òâÚÕÌ¡&¸.oS¬$8dø¸á…×wáXj¯)ó( Ä×%*x€Á­f?\ËÞM“gY…:¾½ìtìƒþÇŠ…Ë:›'´²?ᛞk(b|˜¶?A*×xvO¯ª„{ÓÄTßšÿñçtp‚Y}óÃ+8¯·~ ?¿©R¸ºMܪ|óÃSv°ª>óäõ³¿au.^mì7_?¿èÇÛî/öŽ{æsòàý÷ðÞý#ü}ÈÓ¿Nîß?ùÍáÑáÃ㣓'sïðèÞÉÉoâ{_lDÞgAZ}ÿæ25zÜÚvFø9ôó~þðoÏ^?½øÛ›Ó˜ÎcüæÝ“gOãoîÞýËý§wï>»xÆ?P¬Ïó¬Hò»wO_}CLÇ÷<}üì‡(þÃËÓ å–?ž¾:}ûøâõÛo⧯_]œ¾ºøþ›Y±øø¬œ\”¥áN‡Ã{Ão¿¡ç.Î.^œ‘ü`Fd™%ìN›¶ ‹Êø]|€äØ!“¹Þp~ÜôóâìÕŸ|õYTüöôÅ÷t“öµ9öÚÌ…•õ´³¼ì„›JÀH &†éÿAxÚ㞬â¡ÇÛóГ6Ã.(Óäd¸ær"ÍcÅ>þAoªðÊ;R§‡ëz¥&g¤¬Nbè .¾¿Kd¡©-ø‚­Z‘ÈE$ ØÁÑŠ²šéoN¯‘»YZë ©¯Ï¡p¼Ñ 2²… Ç ù9Õe†v ›I¯Ê‰Çµ{ÈèY¯ª‘§ÁéYs ÈYIq¿d¶,Ã0±ä3¼{™ÚEÉ’$‹d¶ã)†H?ž—nK*óÁ TÕApÉ[¹„í´çd¼\Ìe„®”YjÞ•š› ã§fÍë/‰/FŸ/èN-¥T"‹ß™­IÉ|GïxQ^u/xÇ,)L€‘2 æå•‘€ÿ“³ü‚ÿBg¯Ã‡¯8¦hô)ˆëµùø°$ó]ååXóF0¶ÿUz{¾«•;ú§´*ÒÝ>3Gt⬓5»p#IŸ€î‘T“þYWѰn86‚ò¾ÌR¯< “/ƒžª´«eª4g„èO¤ ŠÁÐZ³[‡öˆíºÒ?h";µBP ÷‘¼›X` ?2k|¨8ƒÇ&Ûm·VL`ð¸ñÂh׋f¾h†ñK‡@efDLiFp…¸ÌªK‘”´y¡qVM©.…)çºLZº´ïèn±Hò”fÜ#rÑi¡Î'òk€,†8ÒLÊ+[Nb÷ì"[WQ;äÃEhŸæò!ìM«å»tj—uH˜¡Ç+Åy5Ü…Bm0D7lÇ.Í4(¶«EØ^¤¨¹r¥^t«-ÕmW„Û†ãÙ6š±¯cå">•a 4¢£g§OÞýÈVúÉ&#ù{`ÈU«¡Z¹Û¦™M´á†•#*OÇcMôZÆm$S{D߀±ï%u€b¤¶Tޝ¯û¦‚Ö‹ïÚx» \Æé vM¢üÌÓ3A«Êœ‘ºµªµz¿®€çJ`•Geˆ™q5\d±×¼K­ætò|XCZ.J"…‰ìw/Fg¯ž¿Þ•øfõ•¥+~9rß±ö\Dísñ· Ѥš4=ò%Âõ±#Ù ÎFQz6R”“%þ WŽŒ‚þ(xšb42Dx±ùåeìßz6«®›öaÜñŸFþ¡b.Uh&▭Ͳ¾üá&YRWz²F£#j·zV”©{.2›?¯4{Ù¥П.cÿ®HÆÜ_¥ÉJK½µ¨¹÷6riîJ@ÂôNˆCF‚û4²4TÉî|—`€*쟃Ésî¨Ë¾[þÿe©KdÝÖ¤X0—d—N?¦“®Wƌ컬þ4K?Ïê¨ù—ZyBŸ}ÕÓO¦z܉œ‡çt Ï¿ð?Ó’++õïb72ó¡Q_š¹F¾ S•ÀW@#&Q3™VM2ga©ZuBÙ;'k|ÐDÔx ‘4î^Å—BˆÚ:»( [ÛT·ßBÒ°«SС¶®èõyüo±Âú y—åËNïÐÑöa)ÚöbrMкdèR~T+ý‡¡iqñH#ÑÃ_‘'š¤Ÿ…‰$--ÁådüVc’1à÷k²q–Sý=5j8à¶qÞ…= ¤üÁ+gú!£0ULÆš1ÝŽ¨±U#ÄÌ3òIGÂ’_jH"IÞNÖ/çK»¨ÞrF¶€WŽ/pÊJs#ž±·8„\$έxûßE§™ û²6›nñùæf}‚ÿÙT #c›q¿{uö×ÿŠJéi¦¡o¹p¤·”©ñ;²•{µ:âºnØîÊ  õ·‰ÆêÔFlEetø/eÇù¤¤ ij'ž¢Ø»üŸpü{aàaàÞÎ+c—±]1 … âJ@?‘æó³'2€8RµÂÕµ¤DAO˜;jr"/jDÅsÄ]ÓÐPÍ–šÛ1áÒVU“Jâƒ0¯°P$þë ¥bC‚–×°°™mŸz…½ÍÌ&äÝ=ÂeV=†c€&Z¨‘YXvθã?×T"m¼D¤><ôZj<–;¢Í±Iâë¢õ­¢xÝDK%›íÒ¢R283¡ˆÃ ©Ú¨á+Ú¡ €a|AFÊ×ç-ƒÀ`â”ù{é—Ž[’ŒŒXŽ*uVysÄLæ’ï¼DXLÐòÃÝœj?Š¿§lÜe=ú]q¤þ¥ü¹§ÆW&G‰Ý1W=!ô=¯QjxºjÌÓÃkßJ/)ªªicM ÊöÙñÛ“-QÈ–éûõÝu%+Îab,¤lÀT4^Ϊi±‡8+'ó÷S¼PRS¢ÚYƒ®…2D‰Ïâ=—(­aüAjÁ&YXš÷ï8’˜vEìz÷¿=™^&ßÞ{ptÿÞñåÉÑ49¼<>9~ôíäÁøÛGæn;~x99º wëÕ Ž%CmIc”Od'þKÑ“@n+v¤=uV2#Rä¬2%)ëâClóÂmšxܪ—fõÁ!n,+ލ¯Wš l·[hjù‹Xo´-Q8‰OP ãã\dY9OœÛ–}2^Ø”ÛÒ!g…ù/E’!oTæŸsÁž*˜àŠ…pI¦<Àñ’’êh”mŸ¤¾=ø„ß”ª©{ ã¶ks¸¦ Å§Ï@*n-Z±Ä²m©yôtŒ›9Î+jº¨…H=EIYš9/ b½óôc6)Q ÑbìåQœõL¬ ‡©ó–+h°UëE4²{Gº,cßUt‹Ó7¦bô}‡/9´´á{ÔûíýÞoD„7É8±l‚"_nq€yŒÏ0‡ßö5;ê4;êkv¿Óì~_³f¶ãX€YØ9ÄŒcÁ}s Ÿ¡ÂÂÛè2bW„„ÑF*¹°½ÕZY5Q°UÌFR0<û8ƒH\ "wLen2Járeðn/%ty›Kú§Og<Ìó TDÁ€zÌàEFRJº› o Zñ®-˜R8~Ún ÁÝ,ålLAŸ‡zг–kØÜpLÄ­e¶]y¨S¤%½ÒÉ n“<¨IÔšâ»v°ãuœ¹FQ¯¢W”'Œö/.·Paû½½·¤Œdí Õ;z3zqúêÇ‹?òÒÜNL „46{²&KÑÒ8H¿ðÄv î¹Í6~ü2ÛxmXÙ4 ÞÔ×­ô—#ê§ðaü^·%íäw^~Át1›ïRFͬÛÜ7Ð…K“´Y·û© ¶Õ܉¹2öbwÃHÏ@äzÅ™¡5PWŒˆQñç‹Fc•餸ï[hO˜uíÅmx{ÚZ2O ¼'„P¤Ï4Pc›œÂ1!`Ðã¥U$bì‚dÑ9ó‡êŒ”ÍO½…N°Ó;­CK@“‰{*/žr‰³¢<ˆ ÀnýX / ó¡sÉíæäÊem ÈkÜd1?¦åbl~ö{á›°^fi $ ‰Pþ“,—°§Ÿ; é'5¡±ò°*¹ZêKÄz3ºi,:Ò ‹’02«$N‹éAIiGÈ'?…À÷Ó7QP"¨æ†&é£E¢0À ò/¸¸@±Ô,Ld{P2GÍR?£0Kn…éž {C…¨e¹€äGÿ¨¤{Dx¡3B£Pan—»A¤ûÒ8Œª2!µê}“¦Ì Ï Z#QèùŸÎÞŒž<~ú'‘yÙ$Ûxwa¬“À¸XðÈáCMg*rÚÆö_$ÊŒkCñY³ôÂÉJnô0¼I.ST¾†¡°ÖÝ` tû†ÒÈåF\ð‡¥)Eæø“z¤9銜Ȭ! /ÁÌS”fIÑž»·K.‡Çe6níé6as/ÎÎ/Fg¯^œ½:}ï€a+#¢}ËÖA­®L eëÈ+ +¼YžÎ©hdä@D~)Ø’Û2ðžWzR·l‰6î‡mlº¡Ÿ7ë]:붆úÖ^y›ç *JÞ¾R ÛÑ¢':âM7éº .ôI È ¿² ioÜ™š¿>7ø<›ÀÀ˜#>á²=ÓìÙ€{Á}Ýz+V¯.×:ñÖ¸ï;÷P)ešdkwæLBÛ;!ÓpU7t…ݲ˪íE´îJ.%BYÒl£‰|5åf͈ï©Õü£üBWø¼Y~6±‘®ü‘¶Ž|¯Ô#åše'bü^$[²3² Â<üI} 7¦‹aÝ’6®’ðÚµ62SB©Á ›È!WÜn±_3ñªAlyõþpa…mލ´èåG²Nª9Þ}l— <¸/y¼)¹O˸OZƺLu4y™Õ“4Ï“"%iÉÊ]Ãc“ h´õb622—ïÁë_V‰/hGøKØÔ&`~(òZŠ}[BèŽl,Pi¹óu´*AF«g^PÚ"Š™°öŽ/‡€5 U ÔJ¤Š¸Ž:Õ²'é§ðuMPÆìN G“Ÿ«dŸˆuhxdö´…¸ }Ã)6ªÅMrÎc!ùViV*opxïá!rlæ)ÁÂÍÝ{üÂÏæ3)§ÙõCÌÿ-lvꇒpìzÉì”F%'{£ùð$$S«}AJÕÒÿ­IÕ!­"]M€¨Ú4,•fÜ:"Áü³'Û^ú¢W^`øŒ¢e{»Uyʽ¦tÍ‚ƒu7^ÉÖ× ýô¢kÍ=iê–Í/»`e3‚¸—ô4æ*”]’îbÅ0¹²Àa ÖÖ!Ô rÚy•û£\7·¤%ŠeêÖ%ýC7´6ÒÐZ}c¼ÇKÞ¶iÚÊPÌh±ÂSD¼ÌûA \P–H°3½%loâÊ×ôö@^^õÆ•|èg…BD„¡” ÷ð»ó¡Cþ»ºú¸¤R¢ÕKr §Û}‡‹¼û`Õi¬ÃUézª……ÂBVLSuQFò¥£†:i '`ÑÖV”mçãNËú*jlæb:áÓóÆgÍÁêÕbm€SäN£›l¤Uÿt伡ºÊæh-nTï¹Ô^)h¤ö†ªåäËýA„J†Dr³¤z_[ƒ8-3Ù%ÔÀö7ˆQ´&«»m£=¹ –¬–íëäÂñ `ª¹4ë<©¯ÓÚË<–J¹‘YÎdÎfïš« µŸ¿,I½Ñ€/QÙÎÌ+°f†'a‚ÉDA³_3¿ÀvKV$’ Ö(.P9ç€ÙŒJISš[_")|´»°Ã‰¨ *[ábï#;Ù\6J-ìR%}+Ÿ»œ5ö÷ÉÈ*Û¤îVWá‰"_ÍØÑJî­œq¡ÃÔ×\U³“\£ÓÑãå%g„Ϭ™ªÊœ>V¥•RûWÀšË´(’…¦,nê.œÛÐ'•ºoB4,“Ì$ý¥ÓT×ÛÚ4ø&Ž\Üm=—˜ ¦=õ;iòÒˆ+¶ÄO’ã/`øP†¨k ²•Û6öOP<4­…æÇ{ؤC_ÅÒòþè&›’`Þ‚˜-b”uÆyO~ '=rU»,+”R[ˆ‰4£¡ˆ–ß‹7åÿüí™”áïýp¶abvfoÛ3“b¢wãWárö,Þ3÷´Ü~Øv"ú™û‘+íizù½§ºß^¶ßà<ÖT,™¼ Qâ'5†•® ‘Ðül~+؈ G¥Å5%òþ0~Íþ †£2e¨6LµAQ[œL†>àLåªpŠÚЫ´:Ëã®rðŠÐ2p‘Å"¨•I”P•Œ”g¾Ê&™9;»q¿­™ßçdrŸ›Çýúxœÿ±ÈÌBÇ-ö(±‘Fºñ†?[j:¶sw¨ô’ëqH~cà,s Õ.©¡*ýÜ ¦»ò´]çóÑÍˈ#™NŠùRÆO¦ \NÝA(h ë½!É£_”œ¾¼¶}vñk[‘ËÛ½_Uö宄·9«Ò…9~¤âFåd¥%MWÕÓV©½1"+uKp¡Ö–™ŽßËŽ}â:ò(û$SWsøÒH¦tàîI%ÿÜm'˘NJÚ_uÖ|ƒÖÌìÕ»/üÈ…õ¬`-u坿Ž'0¦²q—^ÕpyÃŽ{hÅ`Cö¼©VšÔ;Û+]Ýn{ß+›[VÙÁË霱Ù??aÈü~Í”ñ‡~ÐÍ/ˆI÷tó×ûñh㋽cþçÇ'ÛøŸ‡÷Ž¿âþŸ_ þç[et[–üÜÓóÑLOâ”+‹·à’6#wš&Ö!wšß½y¯Bì|DpœÖ"v>ÚP§ó%9>r#>R ñËñĦ.aoK°—a(ÑÖåé¢JòHî9à‡çIqµ€hQ/`*£ ÍÅœe†¼dŸ$[|“úáj” ÜÁ6Q ž¦î‹aüdÁ¨ïõHóS®h†ì ²?›,rÜéFY›º² çBÓúoûJs½¾7ƒ¾ãê7€<2!h̨íÉw. à`‘r·/ô‹r\NÉ+pÚd±°qË­Z¨F©£?¯Q©¯4WüŒ ‰©YërÉoµCˆ= Rm€_FëÀ½:àݘdÍ$îžޤ>©âÑÜÚš/Q€ë¿‡¶Nɨ䇣úzaöp PW6Ê’qT`÷¡ž-ÍPy; 3nÔMôÖaÙ´^ðv ‘Và~± ´‡˜Ã¢¼‰oÒ;T‹un6“ ¿,×¢D¥Gks™Ð¤½ ØÂ°A¸Ú8›'ôc v ûùu™O…QòqZìq?*JÐ)s`4Dy繎ÄÐ[¥ì¦¸Ió\’Š@F áŸ;Ø£ï½) Ž+WeÙð˜…fp#ÈcI±D:Ü Ê.݉EÒoBN×Ô;e`¶Ô—ä0ùœ¦ÂëˆÚ iBþN¤qž ·PàrœÆþ]ü8çÊÂf,-¶Í9RæÙŒ’YÛ¤Þ¼(éŠ×n1§"'†]ƒYË澶ʧAŸÖŽPÍGEzc­îÇ0–!4 ts´UåÓÙ¶&„ž—:8ÔAg}vB‰¶§ž,½§…QPBN+t|µ]1hò*'3•ê’œâ¡E/#oð»àÉU‚¿Â¬S¥µÝ’žUs;Î(°¼ûV¶y™,­ëkã¦Ñ/”‹W2={BO¹ÅšÓcš`'ɶ[ ^ß!5qvZ_:Fë××®#5ýbë¸q%èíŠîbþéÓ8©Z2úüâÉ rÊØc1u&–.än´Îé€}ð†Eòk”…—c( Qž}œ•#r¦i%otM’‰•|@n9°ÕrTܰå.wÙ-:«[î5ýev«•2ÍåñDR}2o“Æ*OsÌ›wHúËém½ÜX†]ÖÚ» B›òªÛ@Äd•\]“Éú[á3\rî¥ë€»d6æmýø¤+‹æÆ¸!7ñ­öÕÎòÜÅóÛá ÎOö{oÜFkí[%™G™‚0[€Ÿy>t­ª$2¯BQ§ÃøÜ 9²¯q‚iI©KEdÓ¹<³{Œ%}º¥—ìtb©vÙÂYèL9Ú60 z‚Œ ‰ÎI »:™ºï°•æYÍ¿!1Z %©¨ê„HMÓTc€"0PÁ!¿àž¨Ó'϶±Žì‘æ‹j^Ö¢Õnòyåø>*-`in§}”gFä—Ý|"-‚¤QMu Én–‰û×·ÐëŽÓt.°GzûbNëå§ÖE´#Ó¤IüÜý6ùË8ühª7ts»QâÖ£µ¹]hÒÒL;JWð;´¬y–NR1•}ýjA¶¤u¢© ZL¤LQk6MŠ j ßÚAá °xˆ!²«R º5ç_…V€UÕjo„xºóü }d­¹6ÿozã)¡S6®DÌÄpµQç¾kÌÓŽòø›E‘ýc‘~ÓÙYµ^ÁYKeúf%B“ð‡¶]YžðœGÛݽª:,ÇÕÄýù9îÀ-¨A *¿}“Ô© `‹Š«!Q&áeÙ(9WQ8Sw-‘ÚÐci7¹^ï#AˆÀŒmH8 G¢i ]KµÄîøª¾"CΙá  Wº£¤£D19¬z³üK÷.‚¤…œÎÝ„’ùnò•þ§ÏI^´9Á~„öÓ–”6heU“6É98oß•™Bâ[ÑàO¿V"l¬¢ÂP5šíRò¥Ù_ÏøBo—ˆÒnGÇa€Éä:)®Òn…†€.u¸ŒOᨗ¬îËø†P¢ ʹà^§–²Ìa˜q2'TõœÁ tõï#*½¾ì^^Ñ`€+Ù!™³A,Nþ4=D¨Ë…=rñÈ'ç…”á 9ö î[3X¶:Fñ/|޼S´Æ4ë3#ÝælKá[PiÇœ”8QΙŒâfH¨}bò“¬“|Óï¢éË=­ ÝMJ£ˆ€éüµ"S³i\sà(¾LêÆ÷5›gèPð,þrn´,(n7×eî¿RÄB)N .¿¨´ÌwMó©Ä¿KX‹V”Db2Á,v"¶Æ%“Á‚d±ÀÃH6[Ž5‹Ø†×\/jõ…ž«…gÀî^vÒ¶^”P›Íq#Mt+™Y0³ ¥ƒ`·w¬ ƒuÀwžwvÛ}íˆÃûêËV÷~2+…· [íw¿ŽäÛÓùàmSïÌí$"‰ºXyv­-«PS-54€ ±ÁØ8¹IdÛœ8c xõqýÖø¬hÍ'"i¾†Õz©! ½=±´öL1á´Ⱦ&Ãû#$3Z×ÂMV‹Ú¼¯¾\úG˜K)v‰å1rÂÄÒ›´F%â·áŠßh^Å72 ²7IÊ-*d5·‹ÆV‚X|Þ3³(Œx»æ¿âéYü¢Ç‡l‰’tQæÙlÎØñ´àq}@:Ÿ©æ Æ7É2“—Ý6©€€3'À‰Î‰ü®oM]?}^ê‚Ñà_‰¶:¦ds»w“D€ß³—#¬GÝK-büÜA=0¯ºÌ^Ѽþr*5f¤Â[ =;oÁkéÜÏ*!‹~*·ë¯+Îæ "¡[Âd¬°“5uš_öiǤU¯Õ*L‰áêèø~³æAŠ1o­Ú½Œ×j‰Üª9s´ªšLì@èTq•܃ Ó¿82òùðôÉU:Œy¼ÐYÇ)@k>ØØÅÿÛð™øIYÜdFŤèbl„¿kŽgyw~úê쯱›NÁqÌõûß$;R§±x Ëê»øq¿†3ÿàiÂ(J«"Í#qQئw†ñëEåB _Ÿôa6Ch`ž§ç&5¼”⮌!åŽTRP.=AþÖLÁF¶ù³Ó'ï~üñìÕš}^ƉH®˜˜¹™lY èaüêeÆšQÇСû4µZ¢D{ ‡¢#yOžö†É„•E|ZG(o\ÁB¹c¡%#fgmÆ+Ä‹¼žŸ=iŽ §ÕýHÛ´•¾E!Šî>¨ó[)[› жh,Ÿ®_µâ¿¾d¦W¨gâÃ8!6H‹_jÖÊ¢(ÛýÙíZ6ÛêIn—ð–Uæz‰«áAî²ì=ý«ù½l¼tÀ¹‹…ާÓ‚?Frb}}¦Ž„ÅOìrGšñ&´žùõX¡Ë°*‡˜9,9‹\éœÊÛyHÌÂ;Ë~‹{wNÞh…HYv!½tb}ï ]¼'k/^ÓD£;7/ÿ ¼¸%4¸|†)%QÈ™~L' O:‡?n~3s¦¾ƒæš¸mÊÐ ™žÉLV*h±Ðs©ú¡ GÔóœƒe @¦U„\n·(%@'~Vå¼´ O߼ƥtÂNfô> h𙈋]Û0pÏòÌ%.ZÇîž­V@Õ_è‚—ÐèÔd×3›‘~Õ„ee'ôAd[¿S¯"n‚;d Xò(î‘“,(°gFR ½É®Ýq¯°Ùš¿Iù˜ÙÍ.iK(P1÷*ÅÄ€ïF]tãýAœÿX¤ ~>J?Hj:ƒXÑÌÒf!'YCwrýÞþl««ŽGc™¬YŸ w]ÿu†n>û}vëë‰gå ½-9ˆˆJŠ”=;iجb+E:z=ÍìÂtÍÃf?ì‚zË®CÞº(N½ËZöu¨êœíj§ð+KNf8µw´÷x¶QU¨,ßGú¬b3rq&·YâS<Ù¢|8s„³mí¹ÉQŸv<®”ˆ·r$ä^-«•»J’éÔÍaÇ“÷„›7ZUvaíÖê)¾Õöö½²µÇÀ÷§ÓDß:{¥†Z¡ÑLÖɯ‘¿ÙÅ"" QºYgωû¾ã^éæowÒ´õ/~Üt µ;'”ÂÈ (p)±È~­ƒ›lšFÞyÒ$]QèûyÒ Õ†!ÓFL¹st‘Qzb”̘1¯H¶ÙðÆÛ¡Í'¢—§íTE`GÊß ·™ñ&xFꣅ֙ÇrÅÊØz:íê!iî!Is×Js¦‰æ¯uë_á‰1 Sbm(!ƒ›¬`‘°¸R%Ó:Ž€ÔgÌÏ~Òˆîj‘TF®IÉÜLÆoˆpÀ‰¾íôVÙ·E  4¶ÒÖ8½,+ NJ¨Ž”BrfQ «›> x=kç2d0ΪéhB*ëˆe#JxŒœ¿ÖÂÜ dg’™>ž¢á ûƒ\§“’°Ü!ÓmS•˜T‹­Vð[*‚¦%¼”‡‘™C»-x¡¢¼avÇè I]Œ+D…Ô’ §>S4”‘Šªö‹TP×l¤¾ìŽÂVÝ‘Õ*ÚoBT‡„D‘HÊkøúœM$ä6çÍê­ fs'=éG25ÍІµâ^6#Ͻ)….kœ÷„™J&ž ªÃ›ÆÔ‚G˜P ½××ZG]Åö$³yX÷ØmTÚ¤ÅjÓ&Òr. Èp&Î&/´^‹Ák+¹˜ÎÊÅÍlw¹]|.ú­EažHÀ¤u©›pžK ŽƒÇXú ¤å¬ˆ6 Ìf±ÙìÀ|8Й¹É.»ödÞÛ¼i¥õ­[n‰Ç°ã¶ô½OkFr?ý6·vu¥.ﱋìQ>.Kzò–2DG|VFÊ/jÊÈ;^¨ËäU‡¿¯{ŠÊlÀT.6Ù ÉÆF ã#Ê{íØºEvÕ„ðö@?†–NÕ%9ÆÜ=ÓrÖÉq­£*M¤‘u†‡ŸUÎÆ}ô0ûÉuiî*DL7`.¸ŠÂü _;†º‚¶mjO‡;ú+Ϻ.CM¡Ä^ûm(Ô¿.¾ã/K*WŽ/‹Ú8Ü>±²C;âN¨íŠ*¼ëâí|½bË}GÂ;dåüóŸ±]ƒ@­#hQ2®Xö+P³¹¡áH ;רa´†»-ŽÈ¡lêÈÜo)½É.U˜<vàJ« ]›Ì•éÉm—¬§c…Ζ1ÄÛÂÍwFߪºµ²oÔ{¼7ÌfK󉯯¿›Í¾SDd©Ð\{V»»„Q•é8é®Oìûä}ÙyO>ÏVÜn¶Ý%oå®oqN´Ýêø)­ÔVA}¸Ðé.¶mGèp­Òã'×r_³µ€zçð:ûáâåèÙã‹Ó‹³—§£'ïž??};:?û§¼\AÊì¦ùËëÌ4…“àlµ‰UKãñÏÝ< L˜ú.êÖ”éFߦ ­O«­Z„ÚËH!õeEÁ·GC {=Z«P›&饙€_te”5—â`¤Œ”öYÐI÷ª>Ž<ÏiÂQH?Ët€^t…þBÙ‚Ôaãuˆi0*V!è÷¨‹¡[º¦èRœkV«Ê=.Fc„À™„úʺÑ3(à1O«KÓ¹Y6ªã¼](9ËšNÚΊ ã×ëð@„¾›5Šñ´ÐhpxM•ìmXªWŽ3RY¹~?*PåÔÀ©NÀ”é7‹‡g °€7Ø™d&ãEÙ/¿¥ö¾€”'µÂo*’ê ~sE ŠQÊjêbñk3‚óó;AÍ›Œ`>jWÛQHèF÷p³¥¹“’I¶×CsqñV IJr«°•½ûr[Ë“‰®â-ƒ‘fôv0õ „užº‘ªM˜N}.Êç™ÚQ…Êø¡©²Ip½« ¡»˜P4SßÄ<˜Âþ…z^¢ƒ¥Dî7óŠÞâl ªªÙ3 òx›0˜Ý7z–Ÿc³‘>FL_§ýëØô§léÔºòôXMºhÖ,[1k?Ë^LGF·½Þ¼ó]©ÖÓ–:³KŠ¿±š?m‹Pä›'u}â/?ñ®‘~ùìØ-ˆÆ‹(Ä—ÝÚž)JC¯~Žf+Âà@7bKüì_í‡äŠKT"‡íK.îý‚²[5 +f¾(«©ƒÞ …£­äxa&  åÆã‹§oð,-€<%§–!Ë÷ˆ­H Ø?93ùy’Uu´'£Ä:}­FF!2ìÍEù%JìˆV.# ‹­Øç…åmð{òͦRsdÿtY¬ŠY5«:Ø|‚p÷ºíµp Tž TüƒœÆ+¯›Q}ûœáÚÊËpD°nÀ©O—FAd‡‡_½ã3£Ï¯ªÑaŸú‚5Ö×8¼÷àð~«þÃáÃÃïõ~ŽÏ¯¢þÚ¢‡^ч™ˆ‘‡uÂCtØ®ƒ£§)Ò£¥7Ë´aëïëÂ𯿛ʳ9qðϛ߃¢þCîÌáä'‰u ¢7ɇ4_Rn×{m=§ïþc1¹ Z¾ ½iJá‹Òrö÷N3yýÿHþžM\—ubT”äªü €KÌH†eu¥O±ÅYLˆÑN_2œÊ ]9ó¹¿S,< J—y ’@ø,1Òx¡•$†¸kÞ!‹ .çÍ Ë:üæ‡ÃžjvÃðþÍàðXñ~WCtÖSCzûm]ö×ÄèôtD=õ ªû=™6<°øªL²¤ÓÓ}ê©)ÐïÉ´y\M®3J3[P\BoO¨§0¿'Óæ,0sÈ=€õêY~3‡£¾å?’åZòpÖ­û­éQïºéÈÐæyYÝ$¬«žy@·O’ºÊGC ¯o¼Ž Ý^H1ÿVôuŸúêÛ¯¯ûÜad4U6¦!sE—¨Ë¾ñº|à†g~2•+H划VúòZýîŽIànØK°¢¯ê«'UÇïëäg2YÕÏCê§'HÔïç!ñÕìêzL¢ÒšåzD}õøÇü¾ ÂÌf‚qËÑ’àŠ>¿¥>¿]ß§iÃÉ­±ĹêH¸ßw$îÛ#áÁãl:÷‰îï÷žû:@´ zULÒÞ9ß'Š¿ß{*¼.M›éÇŒývI¾üieo˜oß¹ðz3mÞ¯¿Ú°v†Øô­ÝY;sS6M¼nÕЊ<è]µ:(´ñúëéäˆ:é['¯Óæ¢ÊØbhÔäËì#¶6ш9…Ç}ó<¶²ºwÒ×Íô˜fqÜ;Óc$Ú<)+*@ó£QŒo’e¬/èù1Íê¸wæ^§¦ y“âókŠÃ­›øMÒ\Y¦2ÿÜ{}þæùþŠÎïSç}ãuN“Íûí1ñÄã^¾éõàñMÿ²Ø0qlL õz>&_ŧ„‘ÕéÌ©L.O¨Ë>NêuiÚœÓ};YÑÇC꣋z}˜6ϲÊp© ´gÞuÒG{ZËñœñÄ\¼V¥ù}´rˆ:}¬Ššòûè„Mq)¬N¹ÛmÔü¯uk¿~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~¾~þÕ>ÿ?È?eÈbird-1.4.0/doc/prog-1.html0000644000103200001440000002117212244656164014175 0ustar feelausers BIRD Programmer's Documentation: BIRD Design Next Previous Contents


1. BIRD Design

1.1 Introduction

This document describes the internal workings of BIRD, its architecture, design decisions and rationale behind them. It also contains documentation on all the essential components of the system and their interfaces.

Routing daemons are complicated things which need to act in real time to complex sequences of external events, respond correctly even to the most erroneous behavior of their environment and still handle enormous amount of data with reasonable speed. Due to all of this, their design is very tricky as one needs to carefully balance between efficiency, stability and (last, but not least) simplicity of the program and it would be possible to write literally hundreds of pages about all of these issues. In accordance to the famous quote of Anton Chekhov "Shortness is a sister of talent", we've tried to write a much shorter document highlighting the most important stuff and leaving the boring technical details better explained by the program source itself together with comments contained therein.

1.2 Design goals

When planning the architecture of BIRD, we've taken a close look at the other existing routing daemons and also at some of the operating systems used on dedicated routers, gathered all important features and added lots of new ones to overcome their shortcomings and to better match the requirements of routing in today's Internet: IPv6, policy routing, route filtering and so on. From this planning, the following set of design goals has arisen:

  • Support all the standard routing protocols and make it easy to add new ones. This leads to modularity and clean separation between the core and the protocols.
  • Support both IPv4 and IPv6 in the same source tree, re-using most of the code. This leads to abstraction of IP addresses and operations on them.
  • Minimize OS dependent code to make porting as easy as possible. Unfortunately, such code cannot be avoided at all as the details of communication with the IP stack differ from OS to OS and they often vary even between different versions of the same OS. But we can isolate such code in special modules and do the porting by changing or replacing just these modules. Also, don't rely on specific features of various operating systems, but be able to make use of them if they are available.
  • Allow multiple routing tables. Easily solvable by abstracting out routing tables and the corresponding operations.
  • Offer powerful route filtering. There already were several attempts to incorporate route filters to a dynamic router, but most of them have used simple sequences of filtering rules which were very inflexible and hard to use for non-trivial filters. We've decided to employ a simple loop-free programming language having access to all the route attributes and being able to modify the most of them.
  • Support easy configuration and re-configuration. Most routers use a simple configuration language designed ad hoc with no structure at all and allow online changes of configuration by using their command-line interface, thus any complex re-configurations are hard to achieve without replacing the configuration file and restarting the whole router. We've decided to use a more general approach: to have a configuration defined in a context-free language with blocks and nesting, to perform all configuration changes by editing the configuration file, but to be able to read the new configuration and smoothly adapt to it without disturbing parts of the routing process which are not affected by the change.
  • Be able to be controlled online. In addition to the online reconfiguration, a routing daemon should be able to communicate with the user and with many other programs (primarily scripts used for network maintenance) in order to make it possible to inspect contents of routing tables, status of all routing protocols and also to control their behavior (disable, enable or reset a protocol without restarting all the others). To achieve this, we implement a simple command-line protocol based on those used by FTP and SMTP (that is textual commands and textual replies accompanied by a numeric code which makes them both readable to a human and easy to recognize in software).
  • Respond to all events in real time. A typical solution to this problem is to use lots of threads to separate the workings of all the routing protocols and also of the user interface parts and to hope that the scheduler will assign time to them in a fair enough manner. This is surely a good solution, but we have resisted the temptation and preferred to avoid the overhead of threading and the large number of locks involved and preferred a event driven architecture with our own scheduling of events. An unpleasant consequence of such an approach is that long lasting tasks must be split to more parts linked by special events or timers to make the CPU available for other tasks as well.

1.3 Architecture

The requirements set above have lead to a simple modular architecture containing the following types of modules:

Core modules

implement the core functions of BIRD: taking care of routing tables, keeping protocol status, interacting with the user using the Command-Line Interface (to be called CLI in the rest of this document) etc.

Library modules

form a large set of various library functions implementing several data abstractions, utility functions and also functions which are a part of the standard libraries on some systems, but missing on other ones.

Resource management modules

take care of resources, their allocation and automatic freeing when the module having requested shuts itself down.

Configuration modules

are fragments of lexical analyzer, grammar rules and the corresponding snippets of C code. For each group of code modules (core, each protocol, filters) there exist a configuration module taking care of all the related configuration stuff.

The filter

implements the route filtering language.

Protocol modules

implement the individual routing protocols.

System-dependent modules

implement the interface between BIRD and specific operating systems.

The client

is a simple program providing an easy, though friendly interface to the CLI.

1.4 Implementation

BIRD has been written in GNU C. We've considered using C++, but we've preferred the simplicity and straightforward nature of C which gives us fine control over all implementation details and on the other hand enough instruments to build the abstractions we need.

The modules are statically linked to produce a single executable file (except for the client which stands on its own).

The building process is controlled by a set of Makefiles for GNU Make, intermixed with several Perl and shell scripts.

The initial configuration of the daemon, detection of system features and selection of the right modules to include for the particular OS and the set of protocols the user has chosen is performed by a configure script generated by GNU Autoconf.

The parser of the configuration is generated by the GNU Bison.

The documentation is generated using SGMLtools with our own DTD and mapping rules which produce both an online version in HTML and a neatly formatted one for printing (first converted from SGML to LaTeX and then processed by TeX and dvips to get a PostScript file).

The comments from C sources which form a part of the programmer's documentation are extracted using a modified version of the kernel-doc tool.

If you want to work on BIRD, it's highly recommended to configure it with a --enable-debug switch which enables some internal consistency checks and it also links BIRD with a memory allocation checking library if you have one (either efence or dmalloc).


Next Previous Contents bird-1.4.0/doc/b138.tgz0000644000103200001440000026523012010160073013366 0ustar feelausers‹;à Pì[msÛF’ÎgüŠ9åC¨EZ”ìÔÚŠ®dIvTgË*Y®\.µµ7†$V €Å¢™8ÿ}Ÿîž$­$U—Ü~XU%–€™žž~Ã4­’ƒÃÑ¢^f_üQ?Oðóìø˜þ=|r4á¿åoúí›§Ïž}q8Á»Ã§ß<{Šçøcòì õäèóÓØZWJ}13&Ó®3•ý3úsNþãâÝùÝ7—ê»»·oÔ͇—o®ÎÕÞÁxüýÑùx|qw!/ŽFõ*Íu6_^ïF'ô”þ¹<»8ÔÉÛË»3u}ööòÛ½×—×—·gwïn÷Ôù»ë»Ëë»o÷Þ¤yóñ¢ˆîŠ"³êpôdô—=Úwwu÷æòôåÕí…ú eÕë&MÌsu•×U‘4qùÉX–aý›«ëÿRßÝ^¾úvoJ¢;aÑÝS·—o¾ÍÍÇú4Ú^ÄK¾¬‹øPÖÅE^›¼¶@,øŸ¼|wñþ9Ûúô`OÆg§ÑMeÒ¢±ýuè§ç2/?ùî–þ79=ñ”±Xr8¢—ê³ ú÷>;Š\ªÇŽÔác°hÉ÷ ]«Ô*"° åÀÝðm\JGî2¬ènaT®—Fý/íùŠ6ë¸nt–­•Îñ{Uä륂ÖäIšÏÕ¬¨d)qÌT¹©ÕmÑÔôêB›e‘5ŠÞ˜Œ­õ½QZÅYF«¬(î«qÞÒèœ63þ“Ž.(Þœž\¾=ìñËsõ½É²¡Z,Ló{úe¡6«ŒNÖÊ|,3æ&Á{]Ô¼íè×ѪuѨÊ,Írjª¡Jð¬¦gÿ©žìwÑÛ„àP•³UYóJ/Õ`Ũk•0|üfù]5/èàºPIjãâäI³ZKHÓ~´Z¤ñB­ŠêÞÒ.€XƒFi¬*èçíEêu "šš6¨A-"0þqÕäLr“‚âUDd¿ºy8V ‹ûýa9*²ýß ö‘M ±±J°!WºJT©ã{S[5ÅÆä8  i¹‰k“Dî\KXU¤q[U±R‹Âb_^Ô*,*ü‘Ã*ÂÇ’DfE¬3B¡½F]Dq±\6yëÚ¨n£ŒZ]k¤ ÍÛÌjkåUŽŠŒß=бå¨.Ê"+æë § !_ÆÒ‹%휥y¢Š²N—Ày@ Mµ´´Õ‚«ùºJã}ð!)AÄÈÒé'çÀÝqù ¤©œ˜ÖzŠ­ûà|´LtÉÚ´´&{L¡\/t>§õ n’’U±Ê6È4µžFÊß%ƒVAV¦MšyTr³òœáÝt Zä#õ¬Ã¢Ž5ŽŒ,Þ€}‰I˜äI/xÅÔÆ ÎÒj¹¢rQ˜›‰SMËgéœÖàĈä£(!Xt×|­ø^€7(ò+ñ0Òßi¥liâÄ'x+\›ÎóMFÝSª¦¡ÈŠšÉ±Hç‹âž2,Ð3; IÈIï Z¹š›ÜT:;(›ª„e#A+Y+“ì©WEU79h­‡ÐhËר4óЮmmD*讯þ[Í ÙdkY74k ünµVQ€L$ˆk1ÎS¶U1+„÷N‹H߈ÅÀ$§“⸹ƒ6i2‘u³½HDÚFÞê)²{}ƒÉVøYç‹À§¹h 4¶È˜„À<…Åöf1ÈCM÷÷ÁUDˆ‚Œ¸·w¥®HÞZuÊ0TÎÊ©´îjºv«ú”)n2Z²¡P"Þ&OZ ¡íïÞCPpdm &ÎÑÑ\µJ̶§êz¦”XÏX°þ¹c#qö¹à–¨ÁíÕ 3f¨^Á 5 ÚÍ*cðäÌ´Òm²¨ëòùx¼Z­F?Ñ›QQÍ÷Nw=eïOw{{{w±ÀM`?7#Ðu îüúnÇ˪ð[DàE¦Dùb]êišÁà6Q–.Sº›+¶Ê N…˜›¤²¶SëÕμÆAòØe§¶çïúrèÔ܈U|(Ò„tÉ©ôÓ. ì°ÃklS–xÄ«ˆ£AL¼pâ‹à?ñî¡.½†gÇÃe"èÈ݉SùÕ¹Af1kj¼•`1"ˆ‚E›Bê@ŒxòIJ–TŸ0 ËëÅÄ;c+‡>´x³q5ÚÂfŒÔî?wB63š AÖ™fî–ÖV(xsu:Åbñü„aÏí#ŠÅ^µl²:-3³¡+í"ÌKñë$³+½V7Œ¼| øûýÅžgW9äi©É³tv@&;Þ‘ñOÌ3P¤ ¼_¥~-öwïo^=L†Šÿ=Úq"Ð;KàÎëÔ ­ØóÊ­Ù*¶;´zH+Ñlž–šâwHœX_Û€'Ig3(|^o”‚â.‹ Ò=„l·kZÓJŸ_QÊRbRš“g#ŠEMÀ\7Áƒ$Îûl1>Æ+•Ðö¢%âÚ8•™dtä,ÆÉ’n¸Û茡ú;gï^o¿„OÏ Û8ít¶´Ê1$#Í©át¡tvY@ a,¬5Å5B˜Yä,¯ ?ºgS,€È â=%"yzÁš„·­Ñ` Ç•Óõt](±ßeLY¬À‹&SÐìyƒ(‰ÙÏ,§ëQèó†1+SÇ>-4‰É„mƒ»O|¦óJÃëÔA¾% &2Ü,Ö6¡§ç°$0r˜Äʦ5†›JÏ3ŒÎ‚5R·¦l¦!»~ !ysv˜²ØÝœ¬y ¿@¤*²_[5܇H”þx}ýA½–&ºào¨åÖŒ>w§Ö¼r`TpHÅ>ŠÏE5Œ¶E›¤ S8qq@MFOädôlèD®ÈdñQÑ+Üèåû‹¡º65þå%dø-sqŽó°.°àÔœcB/*rŠ˜áš,!2uüL(èÕ}'ä—ÈÅ3]E]Ý'Œ7¬.• iTÏ–Škdë/æ›tZ’DÖ ¨áèP '/¹qáÎa‰ éñ½÷V|O Ñi“€Ä6–Pž±BXl¼qÛÞyð F¢ùtxÀ±OÝ” Ü¶JCDk.ߌF£}G„ͲĄÊ“GË*rß,#–í¨L¼#ƒ £E²Í‘¤pSP&yu²DÜa4x}~Cê4žËcü§ï¤G7¦Ê(ÿíÚˆ6³_{ïÈ•››[ª8¹ŸÑ8&áÐûÃ>¤jÜØjÌ™ëØÔñ˜iA Âz‚Ëóiî`þam& }rþîâò´ƒƒ:8X˜¬<ó ’©9"ô²6ŠŠ(ExÉò$éGº$yÕ9…ÿœáÖ çàÀää³Òòᙇ-ñ®¼°½Äb0r6V'{Ãv¬ò·lK®qQ(d3(¥ŠvIùm%¼1Mܰÿ$“íoÃç6õ¶ÁçBŠh@.¶‰Z”~ìî¸Ü’¦ø È´|VËQÔ²î3Â~DÂ~ô¨°cÉ­ËpvHºçq©á­,¤V¸8ö±Õd'Ÿäp.îNÝcuru*DââÙÉøêÔÝ÷äââ[Hˆæ)ÙÂmµfz[ÿGèE úëhОšô nN›¹ZÂýriÔ¬¡˜˜ šäx[ð.ètBˆË@F@!ß¾ÊkNoÓNIªÀݼš­ákª­SË>`k` m7èXtdqð³·0‘U®tdä'SAªf[;ð kÒdÁuQD‚ÿ¸œŠÊn¡e‰žmFK7´¥šñ8‘ì½VnÿÕeÛJXœ¥ü!ˆ:ÓˆPõ¾,<èj F:y¨³-ŒÚ@]’mÌ’ª(¡¬éðòBÑ0…5+,œœ¸5Æ|kü‹€çÄ ̶i4§I˜ÊÝÄ`ðüþ·Â_lDr«*¥¿ç)ÙŠ\ù‘ÄSœ#ù|8*ú{Ð-©8‰øœÃ<&rü¨ Á’›@¼ ·­Ñ‘¾¾ ´F%P?ñå'bÿ€â5¸þºîÆÑbw…Iü\¯œQ=ë®ÒRG¤‘K.S‰ÅváÅÉV…оÃú¡s'K$ˆS.å0ïõšÒ\¾tþŠ2—%Ü|¸”S¦Öç,ºŠUåJF4ðÓK¥‹¡0wp“«\D$Öè áý¨‹þ”Ùª$ ,Àtk/jR¢DpÛ#O¾<(+T•¨·W'á‰Ê’]UæMZasGu½ çg7»¾¼ûÛ׸ÍuQ;‘wfˆF§ú`PŒÔ‹S *yQW%©> 5E€Ê8›¶Œr·HÏ\å³íd­¦$-¥ð’Â4)ˆPÜN±Gä"…N=²#¢LÒ–ÖM5o\¤·ÉTï÷½*$\bga˜Ù=šr·–44œDY­µ)KÏÚßœŠPVº@šDîZ´!¨J•?¤PSfè„ã3ÈÔ ÑG¸´@¾-ÚHÛ[ú»š¹O»p_>vZ‘}â$7ë¨,˜¥ÓJW¸JG`YWt²ÓK‹¨Kû£¯.±l§§€£NôÿÛ »óXÚæÿß]ÿö§s½?ìŒÇç?ž<{vüÍöüÇÓÏü?ÿ²ógÓn¦çëÍŸ9ÚšÙ^sØYS:Þ±.hñäw‹mÚˆþkwø©·ÛK:çþê –L$ÁûÝlJ:u=rAˆ^Ù m¯Ûpu‡[ŸÂ6¯óx·þäC¥Ð!c#û™}jk_Ô¶ëÕÀ‡è7iiºã—ºm˜¹ð”¸‚HɶEè>/V¹+ËwöqÍ–;»íßÜ•D‡†J¬Û“Jo`àWè$©¨¦L—s«‘dÍqqç­ó†æD(]›¦ÒXX2¶A߾価À{!Ó ‚:‡ñX¼Ôö¾S¦ã¨.ÙìqlW\Ýü|c¢r,¨‹ŒÂ—¹üöÍÆ×Ç|W™F×Y®‹H‚Ø]ð„—ºv•gË9§dæTuþ´Ë}o·³I(ÏðL×OW¢¢ŽD:–b“A½.]ß:´ldÊ"Tö}¡þ¶'I¾ÇˆèÅ·¹¯B<IþìØ' âkiâç²LʶôW)¶†Ž„‰²6äÛT^6ܼ ¼M­ô}£0¬LÄ=º˜›ÛÈ,ƒØšLzŽ WœÚðL†«3°^»+µp@Ù9¾×˜¥XXµUlÉuÃTÛ.å{‰¯§>¡@ç_ÕC +¹ÙEq'w ¹ŠãîO¥.p÷Ò«HÍH¹2YD5Nz諜¢©Áq±òíæs—í‡Ø˜mC¸Gj;“G\웚«™/¨Òîz?ÖMÄP&=tS™ó¿6ÿwŒÚ”hå³®÷«ú 8HLIÅ¡¼ŽÜ<Óˆ3Qª@ tö”·ù‰ˆ0„×6Œ…‘îNÔ.GÞ¹Þ¸-^ßt¡?÷W8KÀ“jLn½!?maeƃ BûOðåòD¨ýÈ3y9P9è&Ò4²,‘_Ù´óÅX3¢pßîí#sY8Nw¹Å¼Ý·Œ÷ É}rôè'$¼dóƒ”æ“‹žýœ°Øx­jj²m÷šGêCI-Lè\Ý”®{DuÜÍvc¯õ¬í@—ïëÇÞo¹v¹ê´Ë¹ÄLP8•5|Ÿ@Ú7<•ÕˆÔQ¯aàs oh˜@BøhWu™“hJ»ö»‚Öû«×ß}¸ ^ÈO¸éDŠÚa¢Í•Æ9ÜÍ¥Bÿ•í4b£^lAÑ^ÝËa®<¯Ú!R„—pËÁ[]åÂøPQpM_ÌÌe‘i%ÁûËÐ×$ÔÇp/Æ_G_ýKî!HG®æÀn¹¤É ГæºýðíZM2¥&“¼Ðg‚|[­ptÚÖN\Ggئ¢Üóð’µ±öÏê×´’º„+ú´B ¡Žv”v;_¸}‘$S+ÐAë®óÿÎwPˆÞšâUž¡ÞO™õ$„‡ÞܰL§H¦}lµY^ëUÎ_ n’¸;¢†Ôö·ÂJuøDI˜jÛ~«Ìsf±c߬3sÑq y°+ßýF“Jì±õ µñó¥ºàY›Ê,‹ŸãÒÙn®ª©„i ] ‰<âÒÉ“=0ïé;¶Ÿ¯È5'ᚘ¤ÐtË›8µ£ nQNe˜_¢¨S± P:7lQ;Ü…Ú#tïÁ­Ò²´ƒbx&IúƳ0ï»÷õÞ Ü1¶mµ'dµ›°ã%¯³bJÅQ§­OÿúDÈ"²*¿×À!+¼×Ÿ©à¼Šæ¹¥ ]á Þì翤*ŠÀgú#…D­æ{¬|Wõts˜ƒÆ&¶Žÿäæ)~äa7CoþúI¦yˆžŸ~¦7að-£ŠåjÈ/}ôßãh@›»éµ0ӱоPëF¤’&™çüpPÇD: ñðlUEL æ¾k´OÜ-ÚÔYPM–ˆç¯µ8þ@i–zC¦v¨½šÏ‡‘»=Ûa$(É+|O|è¿×sä€ !!¯'dè÷ÑÔÆ0ÄJW91÷žò¥ü]ȺÈ㙆ÿñÉBm ÅÈ×y~~ÃòVwW;µå÷•[ËdlÇÁ r|+-½*‘㩦1Ú’²3Õ¯ø0d•B&¸ Óej§†¸^°Ë‘õÕ²ƒŽnêE o¤' ºÄšé4ã/,܆›† '[E¼´RɤDXï’OþŒŒê,A<öÓ¸;„V1µ‹ ÀT^uÕê¨#[8™Áç<™ÔqüþKJ™¥ÅËM”q»Ny ºUÌfÐ/ÖyÆWÁ\%bØû&Ž&­é»2ß#Ø¡}s1JnÆŒë0Óìå"L¬¾7Fí"ÇöYá?’ðÕÝöê@{÷íü· lL8èØ;w#[!AYï+ÈÁfr^øuCuÈãÝm²^|4J*Õ„q b8í®ˆx8PÐÝïÜíÉæÍ–U4Ëò׬71àíí/eóCëÜØ†‹˜–¤N»†)|¤vJMi|@ós¨=&TA9›ÀxDvH‰;íWå$zLN\ ÝO_ŠUó*û•ŸeÚV8³ËÑ\pûJ,zM_!û1ßÌÀàŠÎ‹AñÝ„-TP—¼u»&—«Ž3TJ€/©´Çí³KÜF]ýÜÝI»°ön‰Ý&µÇýnÀô©°åìÓt^~FêÇî…~äz´{2a‡ÿWA=Í#Wh<îóÿ µ Ó9ы̚ÈîV‹ŸåÁ¯= ûtÏÍ,QMn X†d]Â(ÓçÞ®ÓÊŸ;eÿó&¦úÓíBÞÞj•{ÒBò¹{ãäb“`!ùHýQ+ù™HVÙM÷Ë6?3ɹ›¾§ b‚×¾GaéPߥw«îQ‘¿ÍõýZ ?…]ÿdïßÛÛ¸ŽtQ|þîOÑ[ùé€I]ìȉ÷¦%Ùæ‰nG”';ÇONh’h ˆb¢™Ï~V½uYµº [ž™ýÍÞ±4V¯k­º¼õVƒalL—99žÃä|{£ž2½\n ç•««¡½·¬‡´·~•meoü™û+töàNfû+ÿùûëu»‹ â§g¥EXIÈ‘y]è\WÔ¶€ÓðÎy’ƒ¤W‰Ù»wǧvàè‡6mÚ5cìãÙøâ¦ÖÍåö±bøÏ)mÜÆ0?J‘š1£ÖöŽÓdc»î|ìf4˜6j•îfJ'µÁwõ l NÀ s$öʱuHå‰ÖAÿŠØ‹®bNŽrƒ¦­ *w!ìlœr m– l©jäc™sÞŽ¾w˜}[’¿§Q ¨e&„®+#tºœW#ëIXª‚6RX xêªTÃÃ{óÅé ‡fGOÔfâÏ%M±¡ÌÀE}Qbs°¥# |WgA>ìʆ¸‹|xWõ¢öZ(Ê8ÇÔRâÛªÉ%í7"^ŽŸ*] aû'ã½kò‚-§Õß(Ƀ‚ŒA%™#'L³Æž jÏ9R)††rÄ]J¯›WSþNR§XîN‚„¤xfN˜ÔõŒè¢Æ øºO¿0':¿h†ŠE=¿éh´.aâƒÜÉÒW…s“õ—ü'ø+H6 ¸ |DYˆéñ È;c$ÔÄ”MQ{רbAÎG߉ÀŒ¸OpŸ‘÷Ö»/È<æ¯Éhˆö®ˆ¢–&r†ÞDY<âz íÚV$hñCüßnìâÁ—¿‹s{UËtC-Úe4ƒe«PÕa#ÌHý‘¾Ê%>Ü“rŸÝEÚjåòØUž]»†ø§æ|›ÜÁB!3n¯‹&&ôL³zBÙ¶²],U´sVW%§SqÛu¥>Ò™ÿhŽ»ÉÐá®%Ž¡[v€Ú,ì=e÷¹R²n*“fe¤áp5fÿ¶<§$wcpùn¦±ö³¨ÃD'È5“þÚÔU-Ð̶ ðd¡­1­ÑùÜÛ ËF¢v–ÉLzßþ}NS½C¼ ÇߊA¼UÊ „.äúƒbêTØyºà2ÊÚ[@¬È䌔âJmõ)áP{gEXãqYΔm'ÙhâŠ5ªRF®ë ÄÔ<–ù­2Ó§ÉBŸ¼Ê¿z´€mFía§qg²?‡?{/^ì=}š_^>¾ºzÜ„ËH¡ H&Üf´”½ârçÿú.û¿Þªý=t@×’^À>›2«vHóâ8‚ÑQ±oùNì\D3Â3¶t:Ê¡ßσÄ£UưÍf±kzàSÚT&7v®m±g CmBñˆŽñíüËÃýýý< ׯа SàáûÂPhûP;ƒ ~÷.ë‘v!6éÏbÕµöñB÷˜# X±¾š“£‹ùô)‘Æš§s×=~ñ½ñŒaƒ5ÐqÙA; [Ž¢ŠÁáÄÖbY‹Ñ\àD5Ôb^:B(‚IL†¼´$éÎs)å Â¥É2j†j`ù+ä}p°ÖíÈQ±¬®cPáÌÌÞ¨ùo<ÀMP?èŒ,šÝ–':¯‹¼gFƒå¿Q ˆlÆË×Mó›WGùL_Í«‹°ŽGËEØ×ãÛÕùÏe2‰­y@J0 U´R£Ó+I72Ð(ÞÖ»ÓG¢0]„ÀÛ¡-f)¢€€WŇbG'tüD¯ò¦ŒqÅñ&å_YÀHù´ËJ¨NñÑI¦mYŸ›ø‹p'M4Q Œ½`Û×<“ùÝ“ìу¯‚FòŽæ!¡éh6l'ÿé²®š¤y:†d-n ~ ìÎn·‘m §¼:ݰMž,ç”ðŸ¤É!T_˜@½û´YŒ&–-:ü³hÜ¿,¦Âð¹Ö˜Õ3€g­lkÌ>ð¯ÙzT¥äª– hÉðê"±_á+x]ï)œ[AÙÃJ±‰ _Ñh!)Úç§ VÀË=Þòg” ÛrÏÉšŠ–/©ô™*)°ðqXZ@ ĉù×í¨'p/ë¨ðÈëŽ'‰{~§+O“}ÒŒ9þ±ül9%8¡†ÙIm>‡+¢Ö$íÒŽ,Ô+ƒ›ï2~ü:ÕH°Ã1òµݬj5jÜ`ÉÜpxÕˆ>‘ün`ló›kˆ•¼ JfÏ$$ ü+òU$ñÀò[è³0g€sɨO+Xª 9`f„sN ‰\#| Œcµ>?o½pZßö¾’7!5Ó/0Y'_p àíË«ÙâfÝTPàoË*´•¤Ûd;wЧŒ˜¡6È›‹y ÇÐ]€4Žî Ê+ÏË òg.“Ô‹H&€¬UýNÑyàbfî8¥x&àéŒ[ÝKüL“ì¬èbrÌ_ÒÚ=aøÆ1KR±‘µ8ÌhOÐÆ–¥B¹5™§®04ío Î'gœ!Éû&€V÷S¸ï—a®‹W‡û·yGö²“_BYÆ@ eD)ùh` ³»„(TM¡ÿõü¦'Vî ‚Y4åKOUÊvp i2`ý'FnK$ÂáÔâiôQîèÇ¡¯”!۱ϙۘÀ~ 0öñÒfQÏf !&ÀD¼g—­WÈÙPî½qÌaJ´Um@–6@3$e‹Âm`èÝþ¹ Üè8ðÉi:Ž^—ŒßŒ­È ÐûѬ——̯ìE¼X/Î&1.»ÑÖÔHìvñW뢅'ÁôŸljšþxj3g×iTÛô@ntœh„ •<á"ÃÛŒÝØw U>OZ  ½È'NÅ ÏuøNe‰vgц3*ŽÇÞ€²Ò7h–ªB‰3½ïõ£©F 7xÔÅ"%fh|$A¶A_Áá>åEÓ¹©h¢,FU Ð ·7úNl˜§&FrZÑ«»!ùm9z>1ÌXÝŒKN\’Ùʨª³~Svn¨-\õÞ_èôhºù‰š{NnzY¶Ø*欒vOHDûGí>FÌ^þXÂðŸ½ß>ü‡X-œÏŽ#‰áö|ÇÒÐPëèE_(?̪“¹Mz©hd:[lÿ¬oû·|«€tVïã‘­É}^Ì—=Þš~~^LÌ»âdT»«ãƒ x´+ö½:­ˆÖ¤Hîà»ò&ܪt1€ç\ò€2£¤g5g®¤På_:IgJVl%¸.SìQþSÁ/%0^Ø'g“zô.ü—’)]ü£ª_Y±G¦Š-å›_±S0ôryå°Õ¼Y2~¼OZ²P¡†¾_¤{åetÀµ¦òˈ³tî?ÑäqæQ#õ£ÉfHBZ¥Ç0ÿã”§«‹iM‰jêÇJ·4ŒˆxˆßĘ̀ŠÉªÄf"ìq+I™Èð³ðaèŸOS=9;,ºÌ´cÄr˜ ©Õ˜`§YtÿútSLJ#üÖM¹ÈÆ)žÃññ–”6<© ˜C²âÛl+9$Ÿg[Iãn[ ¤EDHînw“·/4 j‰=õ9Þ‡Yû\%˜4FsiGvW1iG©0ŒN±©yçP¤-Öah°Wëf#xIÝ/æÒÿFàG¶-®ÆÌb^EƒÓÕû–Ör`Íǽ¼œâŠ‘mŽ3, |Ê–öÇ¡|¢lœôÌa&”Ï,5T^)~ø$x&}BS–ú&úž3ç{n‹ä5ÛÍ;\)³@ÆS?Nœ³%T–$¾Z±0âzsÌ7lÈÙ¤¸Q8´#ËÈ8ZFÿrá8º˜WB:߯“®©‰Í¹ÿäÄèuœ·øcÌ©iù`˜wRr(“¤d³Š¸rz7Ó™zù<ÓüîŠìIïŽöÈO{ÉÂ"YÇØè“ÔC>Oû/pw‡ï¸‹øîëü'|ÓqwŸ˜ÿ·\Ú¶åAHab/e}Ê7Óº°êe?4M5šËG=­'º8eoÄGyn’mæÞ¶ •æ˜Âgšu>öT0^°“Å3šp>ÃŽ2!#ØíE9×ìiÇ3ðÁŠ?þõæÝ¸0ö¸ƒ¿¸ Éå:l–Ñe©¹^h®bq<“ÿšÎwªóh¡ì ozcÈ ÿ¼8ùÃ/âÝ ¹,'¦ë¶ûNØ¡¾5=†…ô6KèÛX¢…—Þ–¬#èÙ˜5¶UƒIÐ1(ÿü¢%£•¬Ø7Jc±žÉBi.™ÎâYyQ)ë¤äÆlpj… QßÇ,ÈyJ|!Ô¿•»þ×q>)Ï{‹zoN;šâ{K½ùrq¹gïÑ_¾¡T½üØkHOpÈe2!"Ø=€¦”¯Ö™ˆ®™#PJ„w9|¢–`ÜTMçt ðnÞÖÌ"AwvÜaX"k™aUÃ}öy?…âÌeÀrÒhßßGA7È@Z0MÁtÂb ø± ÂýfÜå™çnq ó)o£gœŽÇ‚´³8_Ü bå°Œäëüßl}öØ•Š2I¡s;òL®•¤­TÉöv!,öm‹ðßò߇֫Ùbv[2rwÃÎÛ´[¹ëVhlƒíüîpxðè«áÁpÿÞáƒA®ÿÞÿ>x´ÉܸÇ{Œ«šˆD‚Æž6Êê_гäKîÁá^ò™o=¹QßTä›wÒõc¥®@üA¢*Ð_Éæ…Ž ÿ´VØ~ìx‘`å×wÈ"­(÷Hü‚BëþB¾h?¿VѰîzˆ† Smñµ>…eÖ#,ÖŸêøâH?òa9 ä—Ú!šéǼ ÞjÜpfŒ, ¦½Áœct)/QšNF$ÊÌ´¿Ò8ÄÎΈ‰•”ANÌ_‹môˆ†ÕBBü8zÃÄ‘ÿÉ@1—µn­®Á'd»Ê´’ø0/L,Ñ+ä½Òݳö¦‰)¥w¤ÁÙ¡ùz>ùæ(©¶7Z¸Zöä¶ìÕ“’nÜã§fÃHkƒ|gïðáCæ:«FLïæ| !  ´.0eá÷†Ÿ.´b«ÅÐHy¥®)‡ú JZ&9èÐu~S·"q“ ±k¨‡CbªvqyÌX×/Oõü|#X{ÁKÑà6›“v¼h ­TÚÜqR¢cI–*D«ö_’©3_1Xr*Á†b¦Nj¡`}›ó_Š;Þ»ºÚ» ò~xüâÅã““¦°—Š· `BÆOëúN/pùI 6¬ÜW¼ùsŒµõZ‡éÐ-}F¢•ÿ´üÌŸû›ØÏöŽõüO‡ûvøŸþ»þ÷¯òç?-ÿÓÎÊ—à輻@Ýß’êÁVP×Ë¥û›Ë¥·@…G¬#€ ß·§Îs>û 2Þ‘*ƒœunuŒp(+¬N+g`Åü!>ÉD§æ¢Ž¡CŽazGòfEóοÀ†(iY˜Œÿiñ×&Î!øûND ò„Þ¸•Ér¨_/PåZ'™ø—)†½H‰yÈiå҃ɾÓT)Y€úªZÀ¥¤5©P¢¸‘¢ÐÊÛ¥mv¹°ò³yUž[’§€>(®¬¼½v–5l<n>Ja¡ÑòqZƒñ¬ž7#…óGŽrY2Z“êžO©Q×S °Ðæa—/GÌ…*ûÍÁ÷[jk¼œo ¤cËiañ§¹|‹OcÑ-s9Ã1…œBöéíP[Y{ß-°ŸÂùk{Nè ø¾´lw@ äy£ ôŽéz겺u4\$&ì fB:#œs"ñª@aåâ7½c"ÆÃòŒNùOdZØ—}‰ƒ5G6ᦈ0OÂk÷Ñê.Øû´.D¢d¼1¶Æ)I ­¢Éø¯¡™éèF6ÝÕêño°ÒiŸ>aÈî´ =™ˆ‹p]¼Ûãj†B°Ô›Æ¨ãõ µ¯ ¦¹<Ó´Ê»º¸˜—pF뇌KdnÞæR=!ÀšUÒÔwYË‹»£™SÌ BS;5­‘¨NÊKío:j•û·Ó\æ‰ñÐzWú&dåJé¼l¸XEüî—Uë£ÁîÞõ‘¹òJ±H¥ºöÝâêofw[[êîêLšb|–ÿ$ ¸èèäÇ‚j£~„"¶=aá“Iþ1~2|@åš [ÂRÑ“¯žéñ"»¿ãó“#7ðW3;%Fqt’#³J~Ýág(iAvmß;œÿ§f6ôü¦ï W¶À‰¨ÜRRìÃæ她ðJòod cÙëAƒB)æN‚¿gK+Hgè#Ï×G½œcZ·rd„+¶ N þݪÉòÑ7(¿CåYGcµñâªlZªu+ÍðÞée¤ÇO?……ùK n`ú Ùg÷]’"Rós$ì0L'LDÉkÒLéôZtŸ€¢Y5;É~nÙ;g–«š £`9íŒñ]ŒXw"ŠG47ZKNîiíte¾…¸ãF¢eJœš1ë>ŽéŒrïñŽ  µ1‰ÉŠóob½b$Øj³\;I Oß F ì:©“.ëòÊUhÔH³:4˜ ŒØÓà¥$B±êL,±mÅZæ%Nq+ _Í‚ŒZ)¨Äx¸xØvÕlŸêÊU Й§S ÕA‚½m:iÔê ̾³$dƒ³+4ƒšÑ*!\CB`®D@V¤Ix;}”fÞñmIX]sBÄEœ%PÄJÂR¯pÇã}™ ‡¿IX‰à÷¸Å.¨ØŽbº«!êÚb¥$øè0`¬^tè‚æªv÷ä&S]pÃ,VH8á_œ÷NAñ!GñäRHü®+2Ìžh ì©Ô2kŒm‚¼µ%l=?/¥d°¡IŽÏ­ŠÔy K§À„A¬´mÄ Jò,zÏ%/¤ó*IàKáó¦6i @ZtŠŠ&j½¥üZMÏp‹1œ~VÀ F—´bO:Í7+ëy ŸÎ¿üGÉÌø¨rŠÛGFs«ÊéÑPB42°Ô˜˜YÒIˆsôÑwhz^43Òwv”Gï4¶v¾ï柪éÇ0UÙrLrÖô: ãmçåžÏˆj²nVht”#¡vOt>NÉŸÇœ Io18]ÕzÙu¦!ü$ÝÄ &æmÌÒšý]À‹Yà…vÛÔgŸíÄÔóÌzçj›¹†BëçË ò”\z“žD 4ÒöjÖ? ä¡óÏùv Mz9†qªÇ§Z´O£¶éÀœ_]|pm0R)»ŽTµQúc¯Cò˜"IWñ‡å­U1¹.nèzQªNÀ³8s.­Ãã" q·ç;籋pi¾MݹtV–{a"Â<]já¤ý'L}qCU•S“Áe‰i2ÔÌ—ºpæ€íÌ2T]Üø2w¶Ü‹™Âõ=8¼ãw!Ÿb[S^2[&²éú©‹®zgÜ™þÚÅV K¡¥¿I¶üÇU, JÏÞeb¸>ôÃôÿuáCnf>Û;Öã>¸°ÿßøŸÿ ?ÿiñ?ß)‹ÇJàÏ£ €?¶þ<Ü øóh½Dy°¹Dyx;ð'<òpð'|os¶ªæÛC*èöpmÍ·‡›Ô|sÅ×\£hR'áÚ^"É{çe 0}0Ãî.ˆør{OòÇ{»Ž¸3£âÊõÙ_Q.Cy´´¡Çv=€`@áCÝ$±’oXc!O’~†/ {æv ö "óéIÁk$D$­ðÄPøfáÔ>Å9P~2álÐdªó»Ü ú1 /˜”©g\ :)-&¯cH8Ù­œ«à7PÑ+ÚE÷ˆQ åò4ôZ6×s¶Ìë½’‚¶cre²)R‹Âwpxª3NÆ †ß%x Ù%”*¬®Ö µ$hÍ4» åSKÃr%íÏ–Ê–˜º‰s°÷jCÊè‡ÚÚfd,<ÊO—…†Äyþ´u·‹œÉcA;]Ôõéy1§ü Bs}ÅÊ]•q•ïPS¿äDüZÆzfú'ü8ÿƒ{.Vö*'¯2–þààëÎî]É÷ÿæ{æúç‹Å×T‹¬·[RˆüånÈó Á®ó³êâNÚÉÎé}§~·ª"ÙQc¾¿¦,q«"1$¿ œÐm$ѪC¢Ì­gõø†Oÿħæ:RFðÒ ‘‡TQ·ú³´ïZI-¼òÖ+[ÝH^3(Ø­†©erÍŠjÞƒ S{…d§4°ÞÒÆùÅ4Àž·pÅʨ¥µ&¤‚¡€ãq·×2T—4*;dš“ßÃ>IAu‘¯â#–s³â TM±4XߺÞîJ ËÛ¡™ÊGxP"MŽ@æÆe ‹rpý@6·š(è‰;‘ –X C™içÁ¸“]C«/´ ú–Z ¢ý%\V²†¦ m€=â[œ¦et_zŸlí b"-磑ªøÞ$OIFåkD”þ»xg ï<ÕwzY•~äÆC:°±ŠfžºñìPsöï]×G*ì«çþÇ)ºî›'wŒèê Àžk޹Ã+16©p`ø ”SŒ«Ènkoç» m=‹ï }'«í×7.Ãbý5j‹0Àݯ³ÖÔì<ÜÇÈVŽ’üuÊt–8:ù6œŸˆÍé/¾Žñ#¿ÁC7eZÌò]»pJ˜~Öv:Åè:¤FO"Û§×wlÒAB@5Ù=ǘ͇1ñNÖ“£$6YœH­ÄjT[’ZœpÖ3¦T£ãv±lI ÕˆV•V°É€4¼qâJô*°±™ŒcìbÂKš¨ ÑÓ‘ª&¨Z•fçË)0˜¨mu¦AÔŠ2xåþ ÏqT Žò) ¥K`aöu¨6ʵ%bxÊ!Vø‘¬'æÞæÍÌô>Q!;e‡ è7¹1 ë9ù_¡_ÿ%“ÿùð£Ž÷ƒâ³—µ. ƒß „þ&‚ÕËì@ŠaÜûÊÔqùžù ~bŸÔA~xÿñáÁ_òÃû»ÙÁppxxxïþ¡þb±œNVýäðËö[è'“zÅóí^æÿ3óÀ ž,¾æhU øÒg ¢Ÿ#> Äžà6þ2vç R¹…K»ú0ÿw QBÛéë š}ÒHº’µm¡’…¶®¾+yJ°fpt¶ì3èv+Ðþ*ù=¤¢) ýx˜ìqòš´@_|Ä8 .é²Û+A5Úc€çŽ¢–ï†çW4öx˜ÕzÁ´™¯ý¼¹guÝrø…P~Æ(Û’,Âap-löèê”4a¡“Q+é·DªŸj!E¥ÅYÔƒ:oèŒ@ØR¬DßDäV£…fŽ,jpE¨OoÌåÞá¾þ!iúÛøÏaþ*h6ç°&•3äç$ÆþÜ Òï88¼ÿÀÄåM°a?Л‰•–4ñYsWÐsèõ ~Aó]5PhÅd1^K¡ ÛS¢ÖBëœj ÑrŸ,ÇGÞ8ÌŸ‡î„IkØ­ ‰RO©–O¡8¬Ñàá£/¿Úµ~«ê ŒÐð9gefáªFE&»v%sè|1?«sJ×5‹lM5°.üöpPèë;õ¿-‹ñªI×H G€Ê'Æ@‚zK$rS‰>P™*_O*¯¬œ[Q82›ÜüðáFS ʼnH9³X»ªÕA±–Uƒ’R.¤„[ex_¥eZçi‰@þ†ù…&Çݫ΄+óÖ8Ë€1°ü5Š+¨’H£t¹Û_Ør&˜3LI1½1½3ìÊf‡:‚-Í]æ'<º‰ÌcÖ»+ïtfC«Ÿ%µR¼™õL'†€¥›Ùo®~[þá- ªb1«&å4ž? ^%'ÁÄ\¡_È£ ©M&lPñEñ¥¢÷ë EÀp¬Ä# ŠÅá>) ö»ÈÃr´ÿøþãÄÌ1ƒÔÍfʲ~5)âÀ¿?ÖN£èñ#Æ+ºª2èMŽJÎDCÖh{tØ‚ò´p<çǯ3›ŠõL ‡÷‡¸/_í’û†• ¥©[ •6·.xŠR‚œ.W*ŽSy\•dâŸzÞÓ}ÕÌqïÞ£À݇ÐD‚;3N×¾ÇC•„Î àX‘IW0ÓœâÌ´@ùЀ¸ÊDQ.®K7ÔÏR{àà£Ct[ºÌm(·ˆ3ɤJÒFk=™hˆY }tËZ–£•rÇ]ý„9-lG¬ƒŒ¡ä1 $"—pq£·¯¤}Б›RÍVdæ=z6&?1È&+¥¹¢qºfX3âѦ‰ò®¼ÁßÉ”E³þ8 ”ºÿâßÙtJÈÝ7†rxauÖÌD»gUZÌ"W3Û ‹bN轤8޵Y•DÅçò/¹j㔲x襯åSåCŸ|ì¦Iu\ÜÚ$W•ªX:mØ-Žÿ”ƒƒüÙuÌg¦XC¡WbÙ©´YOÿˆ|/´í'rg^ò«›"||ÿ‹ƒýÖ*I#ô½_¥©)2zÛut”ðÀGÊGÒD>V³|^>–£d ¸#Ýåê‹ ØØÅ4lq HÌ¥n%‡ñKŽr-t¹H›/øbN^É,½ˆEE@]ª½Äû$Ëí:AŠêà «IÔJÊ—S‡È»v@Òªü}î÷û»Ã!þEy·çÎL!³x6 û`ßö £„é=™FvO®lõ‹îÁ*†Ã3ýÔM€Õ6ÇMÙ$YvO ]ÌOîŽÐËfRh¶*Mo¦ Ta}•òR骼ªEi·äû`Þ>sç‹ÁƒaÐCviîÚ×ÉØ—ç¹;ˆ=´¿R°Ìþ OZdBÂ'ؘ+Ýóýà÷Š?Ú‹AN+…É÷43‘ÓG¾ˆkôÌ5O™Õ\ý”:>èbx³ÕA„زêÇJ¶SHÖ° Hؾåƒ=ttòRJu¶I[âU”ÜaÓŽáI²Kî‡ðBòÓß'<$¥uÐH‰)êN«iq#sáò,X9sv|&lZz¸šR¹c‘&´?¼/Í9¾P|9XTðñ:ù˜äë=x¸¿ï¾”×ãqã>ÖµÎgþÓr„ÏÊðYü~ŽŸèµA\ý6ȬG{ü÷/Âÿí…ÿ.,ÿAþß>ÿ$ìÕðäo‘L–ïÜ< ãü`ðýëa:á?÷‡ÃGô·/‡Ãß…Ï’vJi‡v†»_ñ“ߢ+ak<úÿoï_Ë…Là&•iÒ°˜à|0´YÐèÓþ?÷{‡ˆŽYŸvˆ…b>FBn°?£`wÕ+ÙúÀO<¼7÷îîõ¼- ¿”sEd‰ȤQÛ•ÿ{îù_ºá‰[³IÒõkÿv/ù‚\Ç´jFõ^³¸™”ñ>t¦‡ íÝ-´ž;´0€Ò˲bUŽIgg£¦ó{Ù¶Yäû„I9m=4’õ=•¶än¡Vcicým…U½¯ìv^ ùõ¼ñúLµQÙ+ÉrÚXcVßkÍ¢šÎUÙ¤€(J•%>gØ1â¡å4VÕ2ÚÍKN`¶^dŽëï׺\{¬g³ðäe:\+øD`Eé§õU¸7óæ¦!êX‰>øÁr`¨×Ë„ŒîV Œ¶¯îé“'ibdCè6ººŒ¨hœÁL $.Ç´ŒðÉ.—†_(ÅÍô´<)ú“µËŽT)CêâÒ¡kQ£v„AZ…Ÿ›I!™ ¼û µƒz¦!ªXÉ,°X™BÿDÎæp€íèWt›yÏ`.O4˜Mý–}b®II²Š¯Bf9 }=1ìYÚå`‡tÞmÍTG¥t‚rêMxŒk¦õcâ¯Ò×Ñ¡pkÓ:­YO¼/lèSwÊ:δð={ÄÛ‡#\cB¤´Q\Ø!Õ ¼,Éâ«pü!?Ìïçó/ò?Ø]ÀQNá@Ä;2r/_±¼˜ŒG•±7‘ô™¹ÁzMd©<àÁdnÊÉûkÿ¢ïÎÜ!WßÝÍ|…•VµÊã¾ôàÿl7öîo†Ùw­´­ÞE¡e}fê\ÝÐ8ƒ>Ç“ùò“©×1ä÷Êßn¶™›»îôd+¦§µpØÚÉ\-Pû\bÖ:(ž@*X×7 sa!mT'™£)ñŽÎ_Ôó’̓[–NÈ”„£¯˜Ôp’¬^+-Ñ |Ÿ‚¿Á‚õ-뎫`ØÐºóè´‘ct´/`\GзÙ)Ü3=IU®¦a¢(3á§píÄå«&.[5qIøRE=ÊÍQn¡`ÙP±Á¯†ÒÄë>¥æÉJ¥&3¥¦ÄDwœ‰ÔWŠÁÎèŠJ§9^áÉ uÃäÝ[âÙH¯‰‚™Zc”\U¢žÀ2¤ì0ã³ kœ ù+¾ÃûT-»gO(,e×® ‡ã3ËX/gC‡9W«·oÓòï¦Éð.¿¬fvOìj”Xã~Ý$]žJ¶—Úsl^Š*·{J6°rù6iÎs JzŸ ¤÷×BIÃ#¯ôk!Iû’Þ,7ƒ£ŽzL¼%¾ôÛÁÞà‹Á½ž6¦´gŠ/vÎ~;ÚÏ0NÕiôNñ‡³A^üü/¹’ñß‹Å×8‹á¯çõÜØnÙ‚ÁLuÝÂÕCš#ÉA"ýÝ× ‘Oÿ9ƒ¯ñ?ú5µ ûãyÈN:7¿¾®µú´ƒïzCŒ7)9¸¸»šï)¤Uw•ûRcojœ òQ£\Nا8+;sK0 ­•d€þ¾jôŠ‹ÜŒL Zݨ‡Ü ÚÖ×›ša‹.õný@¯âER–†„Œ¾zšKY8-RØ}Sx âªfÒW4*¹$¸¢Š…4€î“Ê%í­oZ‚Ïü}x r}Œˆ‹<ÊÚgŠŸI‡ÅkÁ,ÞlÐõµmf{»t£¶#ôjÒ ]ÑŒx‘ãJóuãÛ´dHê+š°cPÕ&³²A±+”BHol¨@IO4–óÃn†®©îza‚æD÷^="îG'§¯Þþ`ôí»·ôŒZY¨ªÁáÓÓ_þñå«?½l»¢Œ/.< ¸Ó9z~ü4KÖ92á©01ôàñK<[ÔJÌÖ(ñv5RKoSˆÑšÚQ¶O¦ñ~‡mkÕËúçt²“áŸE3í›nɰºS$és¾µ—Èjrwéë7éºI¬½I…$Ío]©Š™’k²·›>þ8æF²Ö„¦Ç䤶á¹8«‘qVk¬ÎIùÖŠèjm¼œ2W'²Åþš—㧇I,u¥Kû÷,>*͸OíÔ†ð¤¢N±è±eͽT¡1o#såwcý«k*rÿˆ;î{ÞO{ªüPŽ–ÄòYÏ:¿9\ñ›ÞNZD÷¤×UQ¢•Îýë¢ šLйyeMÀ0ì˜xS™˜õX©ÇùÇŒQ˧õüT6÷OäµI>BbâãnRñ×xv˜ÿÅ¥Sã¼qBgÖ€–8çr$¤ˆ(ç-!Ìêå9U3[°RžáÍB¸Æ` 20ƒov׸ò„ùá>=¶Ž¿æ~5›¸0lFó´~»lYÛ‚H–†‘ìêÃé4÷9$k¿ÙÛ|pMâÏ·Öd…ŠoX¢(iÿ,f_3}­lž|“ÎLåÌÜÒ!æk§8C7-ûAÒv­5£»P%L×ôÛÄÉ´vÖ"{“æŽ'áð±ä"ß ‚ñÎ×úcìªqÍj›­¯®é?þÍ‘ܧÝÿ0¶_Øâß—-î{ˆn/Þ†ô1x2¤ÿݬõŠE%žæw†wDJþ#Ï4uúYôxø.~H1´)UžùÇ¿ ®5¿joRúAO¶uûú÷Ëõ×OxäM+ÌØº|ŽÔš#ýRÒxƒU¯)»JÂÆÙe="CÝvÁKp­rnõB Ÿº´ø£QÊ ã7Ïj¼sA°‹ŽÓ—“üܯí–r»iq¸8£ •m¤èo ïÌ_¥2h˜½šÂÅiÎpK#òZ³çw¾œÈ'޾>W}1^F]Ûð$ϹĄNàb눅ÈÏÎA5@ÖÈr>«]fU’™r°NÛØë—Z¤C³—q«T“BåJ<—JMÃ|çDj.‹í©¯‘²Üì¶ü5${”çµ…9kg9”ü±J td˜¿Vä&£;U9yòêõ³Ó^¼uæ±’o2³‚NûeM.8ÿ3¢kòVõ5à2VÚg—7 T¸"ýýÉñÛg]¨=÷êÍ÷G/ÿߣ·Ç¯^úw„SüÞ{¼â»£—öï úi«Á® K¸kèõgÁ˜Ó@¬Ñ_Uÿ§¿‹tÛÝp#S¡ÖºákÈ•·ŸßxN‘s·¨³ËÓÓ7¯~|ûìŸ.WlQkÅÑ,zâ>Mw¤1ðÛ™ br³+¯‰cÉ7‚É&?o‡ÕErº5þgß>?zòÇ^=O^画Ј« ïqÕŒ ¢|?¾|óìèÉGß>ïž©§§¯ß¼úáøÛã·½­ÑáüVìuÒ‚žÇO^¼Æ=4?+ã•ßÃçY1¾ª¦¡¼A+'t^_VgÊPJ-ǰžð5( rœ–ÇL u¾z|÷»ƒ‹‰¬=Ã[s#Vʽ֕ÜL°K8z»à%œ\ãÑ ¼Ë™1‚³6gÅ;,•,%—ŠÙ2a µ› é¹XUø’øÅC-;mÇHûF©Q˜ZRCØ÷(Õ\!ÅJÂQŒuI©Þ7™V}CY˳2XÛ»š´ª¹@cf`LtU­ÔBSÀEÑìh3ø¢î@¸ì’€—ñéU@p°+Ò¨ŸÍÇï4xq‚B©…O}åª N›YÍéô±2¢°1û­³Gd=Zk…G^1ÄÅ1©u£m`µ£W{‹Æ÷¾¨&t„z+j"k—­/‰0wÝÊ䌬+!‡xbW7f¼¿êûGáü)q@µk`0m œ÷xÚVÛÕ“´Ú=«|]Òx%ØêÍù~•«$R-µx¶$‡XY·€a,DÛ™ÕÕ´S]ÿ(>?Tª†>Žٚ˜×ô­ åÐ^_+cž¼°)'®*i–hù®†åoyD³Dî¬×4ì¬çß–Õ‚öeK„éï©íü#w ‡6–I]Ähp´[æ·PnF‚Üÿº”Ûÿ©þ¸eúlïXËÿ}xøàÁþýÿ÷áÁóÿþÓò¿Ž…žW2€¹øÃ-ÀmÅþåz÷ps÷èvððÈ£u àèE6k«8ÀÁ÷£µàxVkGEù¶žWï÷á¾ ÊÉ×®.ž^ù‰êdP®³`6œÕÓ2›”Aç·EñZÔãâ&,þ1´Ír´ ‹s­,aWÒ§ ‰À}ä‘Êè"¤„•9YºÒªT“Ø+Ïo·qõÒ¸péÙU?*‘\º,t°B.ç&´žT£›¼ˆŸâ‚öSͼÈ1§e_¸R¼¾*-Jþ±1Á+P,‰•I^¼’3 ®ùšAýl%e†ª…EpH›g¨"u*\õMoæOPàës¤LŸÑ^…ÿ¬h²£“]án;:Q’·¹?ÔpÉ'ˆ°«bì7Å/eòi:]j!p 2  4fçüàÑÜ0&Û¡Ôœaž¿‘µ€P)Rv‚òƒ”‹9:Ù3›E^›ù¾mCvê Eʼ"7®lnÛÄ;Çß¿0[X°S`“âøõ.Q ²%d{MÈˆÏø —uè¨À‰RLÅ ä-ç{a’m*ÅX¦¬³›¼ÝíŒSäcÁq9=Þ?qtr—¢1U`ÆC{`§ ÿ X[6/É”³ ̨ ºiZû˜JantLòž0ŠÐpf…†+jØöö }.Û¹n=Ù¸Ž/gãB¢)ì§™3¶BMiÕ\£„Öþ±òöd¦¢Æ§·ÅAd;1Ñç$:„¸\Z/$‰”“ž3ÂÜÔ.U£å¤ `7¼¦d7½¯«X&€)üûI¬!†@Ê‘"øÂ=ˆŒi…/¢œJéÁá—ñª8_Ìß»þw8?í…¤èU=¿¸WM÷ˆC¥¹>§Ÿ w¾ÙêqHùã…Ô/Õ~/„¡–·Ñ|Îv¨w¿ûÝ—[öŽ~²EïôqêÝî 3=Óò¢^T²ÈÔ™û÷w¸egè'[tF—μxúaSPÑYzÉL ±G‡÷¿z¸eè'[ôH—u@Ò•®Ôƒûö·ÝGá'Ûì#y\ºÂ×é¼<§û”κôãÁÃGÛö#üd›~ÈãÒvžª·j]:-_n?-_n7-_&Óòà[Ÿõ&øêw÷·íDøÉ6Ç¥¤9¤©¦]€½í‡}µeÿè'[ôOGÿ"͹°N ‰lÂrÕʶEèááWÛN/ýd›S(C„2 LŸR³²í_Ì×JY6óâ|±QÏXÞÚ{øÏ^U.Î÷ªñ|ïìbö`/™Œ½÷‡{û·‹‘OnãDàf6›Tì×fŽP§~òÜ?|°µ ?Ùfîåqê“:fïKpÌ”yVóƒ s_ªÍD ö«Oo”ðýËRk±5àÝàð¿*&"éŠ+RF ÙcºkªÑàˆAuvée!šÂ/?dVq~w57újˆF{¦˜\½oqyå]ŠxFƒ¤X]¼òÎY؇w4 ȧä¬1Tb¬ë¦Ìx¨@ó"7*WÊÔÿH΀çÇ›Ê&€¸zhã?ÎÃÁL¯vmøõš&8 ™ûÐõº?JºòE¢êdzï9ãàYësfS ¥±Û\§õ5½‡ƒ¢­ºðÙ‡0MO+:×ðš†Ùßó&ªÖPÆi_àõ(_œ|GôÊV0Ô¥y7Ãü³ÔéTk6Ûc4rip¦fh yj»÷~4ïýoŽe·›¾ž5Jµ`ÿ6‘)—1>(P¯Õƒ2 díXV±FºVë0ÿí\XfŠÓ™“ò-„˜zí:ª>pš š0|Ú tUÓ6C@þòÙÿ~{úÃ+˜ƒ$`"q(bR49a¢Z† æ¡m¬òpÇ%;óI \…±É8LJ“¹0!$F¿›Ö×BŸ¶>\§‘YõQ¡ZW”w(lJæÌ ¦ˆ½6PtõcÆq”ƒÔË(£¬~â©©ãÆ iµi£¹ä¢sVÍíFæ)Ù]ÑÂÌIV.:Þapr~¥X'GS`aH’¤îûHDFœRlǦzƒu uûÉÀG®¢úYÙãzÊd3´ ÷ºÌ˜>n”س€³s™ñ°ŽÕ2f)ÁÐ4ô7ZpÔUÎ>uŒyMãeÃ9 ÷cø ˜–°†vrêÆË$ª€ºÒýt]ïtÍ2ð¾SHIv] ËCl¿Bj*Te¸–« Uw³WW¬±±Ck†eÀ !y\äø‹(˜ÜA¼1ÜÃÁCÓç""”92]›÷‘­&˲pŠ‚Èï Sl{DLÙF«Úݾ²ÊÌä¨8+ Û‰J:P/pV‹»[¸aþã”ø°PƒkÉèJHKÄGŠ(å&½C*yªð)#Jqï6,eΩLD„f»ÇcSØ ûP5Äk( ü7)$õêÉKDWa¾ÅÌë¸p¢âl·¢°O¬æ´=O›S+ì$ MdÓSgJ†ÙÑhDG½¤“€Å’½¡0Œ‚’Ü8}ó8³8*s‹Þ2à îRIYJÈõ˜YÞ 9÷s-‚ü¢lÔ¡ÅwdzëpUn? R½‰XœÃ]3ec¦å¡xè2wëf«U *’‚7µÎ¯.Në ÷£d2—vÝ{T4R.˜·oŸïúZÚÉÃêv?(Ç„$b„¹Ò_ÂUˆ¤ÊäÇ*]×¼fAn)¥…ÒÆÃ1­WÖ‹jõ+ÈÔCªÂìÊcÍÓ¢´¦óNÕŒdè¼ôÙ ÷e‡ÑÁf¤¯ TÃcä¨Ä.ÄÕÖ•‡váӊ˶w}¦oôEráâíY rw|`g>'QàOº—]É( JÅy 3ªï¼¼ ðÛê™CLóš! É…­5T ?Ó÷s–&t;)"Nò¬)L4 ¢ ›°²lTÍGË+”1º"F=w¯cb¯xhZ'0 ÚmúqG Äêr–ëm×.³rH®æFð jޏd{ðPÈE*iVû){ƒº`âNB€%ÐHâ›D¨Ñ}N¾»V~>rXM(àH{Y¯ 6ǽ(͈™ e°¦dV¤â»~±œ±$Q­béÁv)F[P–CF‡Œ›Ñ^ñzçþo.I<ðö¥o @æV¤KL¡èíS®;uJ.fâoèÖÖT«3 ¢37MkÆ…L;{§¥)¯Ð)h„ZÙ:mg±Xx9'?¥ý@ìöðÇp*¾{ò"ç0ËþW‡ùÜnR+ƒ‚–»*)¨P5WAã—tç•T©¸ U ¨Ý³º>/£p û2¶¥Jý’ ¼¹¢B¬dtZ%B~q)u.ät±ƒ×:‹£œBåÉê©ÖM«×,Ñ2ÏùûîuSòÚf*Ë4¾©å}ƒmb†çƒÜ`´ßØÙ)Ðvºé€ÿHîÉI¦Ô r`Çs`×ç‡ÃGÃû~›ïAúî€ÿýÿMüèßž<}œ…Ý="Ý™<óõ@ ©! 3š+çË aJ(EBV°#Çȵ›Û¾ÐþE<¯ßWcAèTÆ-Û¾]¥…Z¬:ÉDënIÆ?ëÃÔŠt·Üâ*”åmÜë‰ã6yvH„ܘ¨žÈÀ¡ZãˆXÃQŽà$V‹ ß¾+ov¾ÚÝ%÷i˜SsõöŒ‰nŒ5§ìD†Ô_“äaˆ´3”å.¸’ÚrqQ‹'oZj!ééXWŒS »†µ{¾í ÒÁŠ–˜óN߈kXç¬ÇHœÏSUHécKÓ ,¸Îà¹@·K–ÂÒg+fûAá[÷ËÒ¸ ÂÅ. ó'˜ùô Ü´™Bì¾·!Ž¥þ|ÔëÒóªâ\­¸¶l>:kÛܶ»D?ïßZYW‘·ÒÕéǪ$Ÿ—³I1bX 2ìH«ô2ö­»ˆ)#ÑiôeHȹSÖÒ5®ÓÚyЛŽ]«C®}mªXrÖgM=Aú50M_=ºÏ»»ªï]Ö£øtÁRšñ&¥Vsš5ЯÃYRÜ…ÙkGâ= C æâ¸MǨ²õš˜)/eh´Î £5ö¼Á8hï…0MTâ3yW–Aû{ñìiü|wÀá_ %¬UbpÂÏÀ)ÉZøœÓ€àˆB4IÇL%¿¼EîµYqÁ)Ûõœ>q⥦M êPAzÞ–”I+˜‹ Ï#*‰ ¤ˆQ’AŒ— C;Éȉ…ÜÚoÇ€ƒG¼ŸÒ£†ahê¯YVØxb,Itd`Q­gFÔøŒöºàH+X=òç‹Ý‘²ÅôV©v¦ ™"Q[œùõÕ°²ÙTÃoiö=W«fñ8Îéd¯Ù:øÐ"Øéš)b†¶u²‘Îo5/÷„ÝÍ-^´”aáy˜©ªÆ²S®¥I”ýà k„™}L´ g.×Î=Y£µÔKƒ1(9˜S<âh%Ìï¾Úåµ¢UnÔ<¦¿-)ÆfâÁÈ"Ý•±YaµK®Äájû§è&ñ ʨÝ4>çŽP©î÷êiSñÀÁÃŒË$NÇ­uŽ¿Œ[dÚ1Û4gÌ£ÌÖmE™æãL9|Äüì‰;<¬Êˆä“É]¥I¹PHèpÀö:¬…û=<üê4ˆá»èRö_î"Z’Ó|êê a>¿ÇÚ & 4«þzÝWQú#Šw#x爊&³°PñÊ£Gx¡¼Þ¨3lw >W^ÃÌtÜ4¼¶ÃN-£'ù¸… àÌ{LÕ·aøº¿rx¤[‹Ku¯ÊY Òç•Zê%,ÇNdi¤Xq\ Ì/ÜGr ‘Bm>¿Ýö6.!JõØ( 3&½ržùž­(ªh¬ÛÉ\ŸM…Æy’HÑ;ô8ÊL7¦$¨CÅQ¾Î£.‡y çïL¨°ãþìF¦¥¥hF¾XªE®à±h‘^Áα ì1{ûëÉX ©é&üØé„XaÈ×å‚Òc#Ô£³%еÛ/ï6-M‰V¼5°aÖ-”wr®Yµ*±PµcRsì×t%Ǽ‚a¶fMÌÝ"bÈäõ"ÑËß,™NKñ÷MË\‘»O Mݨ™0ñˆï<™ÈJM–ˆÎ4òÖáîËz~§Br«xa&©vàÛfê›Úó Ã/M%Ð 'ì^Ù‡\Iñ<ºYFj-TðbBY]¤}†7IpFedœØ=åså(F;É<îÙÙûµ'òÈž„9š¢€ãëDRs‰QC£ˆ,é¢)9'+¦5›ŸCâyY0?q3ª­ d«ì&¢óŠ%¤Pr{ñvPž Ïÿ?Ëââ¢ØM¯oÄß…<•µØCϹJr¬ÚªyË Ô=,è'Aš.ÖRÞ‚¸øa[]Œ[Ô,.›ÇÌ› ûPŒÓ¿7Ì((ǤI8•T†.UOx¬èz.¿ÓÄ}By<¬[‰ªÈ¯‘.ó«jWXÕñÔK…çÛ“$›^Ñ‘[UXòšâAÜÔ -€€¹98¹»„ ¤ÐIØDádê+9¼.Ÿäî–{¥b«™Xð"wJ=gbúˆõ)Ôj½Â~I,O`Ü[·è{£ó† »’ÿ1˜–Å1æl‰»!R ¼‚lSðœÛaØ“ÒÉs‡ž,.æ%oq®öPñžˆÁÕÙáƒ}ë­p\_pz'ÅQq2ew#`ß,gùFsô/%l¿˜s¤ÁiM 2²w¿ky‹5¸•þ†õs~&TFAâL„¦#®¬o{ïtynÂÓ žoü:+q)éúäò¬Ï•¨˜÷`¡±Å·»^½‚éLÊμtnjÞDDý'îGžæ °>~L8’|1 æÞäzyp¸rî°¨ªIq{§VΞY‹ºŸ$Ä.dôkûöpUÏXÚ`ÔÝŽ ÖtóEWK†@Ƈ¿Wu½ˆ§™$ì—H4%!î-w€6BMpÙ„¨!ˆ ‡[R.(m䆅•B×™£Ç÷ŠÛ€mÂ·Š ±ÌpZèN!«`J+;‹áª¥6¦~L†›|ºïïïï÷O}Øi„X½mW¼)^´¶¬Î0§ö‹cK<®WìÈæ·Z5-wÿNzß»+”.[ç!7Ò0ÊU+0ÅÔš[ðÛR±p‡äú‚M&42£ ÷?BÍ-ÌN‰ºÓr­sz°OêÑ‹gO½³ug¼Ä‚×¶0ï»9Ê×éBõ:™¢[ïè„$ŸM¬‰ÉT±ÿ¦õf…^AUt°gÍ= &]ØÒ¤L„6âT¶ÄÖp>sÑo¾ƒ¨SfÑ}“8€9 %ü^„«TÏ£ïZ£u(^ç†H2òT·ÞõvYWëмʉå´ž·à­µÉ,Û q"¼¯ÊkŹE7òíp…½¯ÆKM×j$ÎÊãJ%ÁTR°Â1…õNaq Ë+”îÓâjˆ‡vª0jNŸ T6ò2 A·i&èW ªD³¾dß³Ó(£8Iªûj…±ëâ†É¡Tñ‹¹6aÏ¢ÊV²úCE˜i ñŽiØŠÅ,¨Ö¤‰“¨®/›h­¶ÞÉ{ùt&d"‘D+iÿB³jçaþù`¸4M1ËŽÔñ‹¡€àzЍsGpÌV笨á4¤O<ÜÀVgZÆÄq¶óW«oÂO‹F—‚—éb8­Tg¶‚;=‘À4µUm6@Ýͬ2Ʊ rÔgÜ#´V#€%—!éKt†F.Ùô6‡¶æa‡m!\¥žRq5ß2à¢qu‚x¾ªF§ÅÅÅ|tç¨_¯Ôδ:Ù|^Aùbyb‘Øœ¶Ý„*jÖŽÁØçðT|=X%êSyaõFâ)÷£Æe=¬0APSe·*W$j9ȹ<¸MD»>swž ç]änÓ²,MS?Î,šÂÚ<Ÿ—å˜nYTl‘n $çö#åR¬#`uØã†€VAO¥Ý_»ÛmD—›oÆn דּ+óήìá%“IpA\†5Ì#pÝs®ð·Ð<Å>pYášó²Ùeb+ŸA‹ÎJ¾ vyØG@•Ì)Ö=kp¢Æ“c£:›þìä+ÎN—¾½wT§UÔyy¯`LS )È`¡›6cŸ9¥/'RÌEªN¥ÉÇ1¬éxƒb¯MDaZ«”øŽœcü©«¿ÉجoÌý™¡X£íŸ6†fpˆq~í)˜5×¾‹M¬žš¶þŒÝÑ÷µM‡ Cuå%w¸É=Üßßÿ:ïýóâÉF„ŽË“™ñjÍüõàw_ ƒz°¿?<¸¿†<øÝ£¯¹™W>‹8Úï5±jE´T9Ôl¡2¦““Ac±ÅDAÿǪÿ‘JçoO üeÖþEÐZ$óÿy,EK2 /ùMø1âTOƒ’ÍY=¨£†@~`ˆ¢jÕãÉ…< ÊÛÎVnðèÁÃýƒÝݯ׽hNÒ¨V Ô¹ÈÙšßžE³ÏЍÉ×Õ¨\ùó0kêÉÿ=ÿé¼Ùò?ü·òg~Ì _“Â#^3T†Yt¿ÿ·Î'Œn‹Oþ[ü«„ÀÂdÅÏZ¬~³?ø:…ö“ªZ¬·–Þ|4<$²ôõdéá‘§åûŠj«uøÒù‹h5, x޶Q5ÌÉ© Ö9(O$& KuNÞÔ”À|#®>T!,’LUÖ ”O&Ò÷D£ìÒ#3Ša¢½°Ó(vŽ”«œQ âÛ€ø‰PÕw¼3ó`–Ìd®v“òC5ª/æÅìRI¬KMû8òÐ00maÞ0S•¥“ФùÊ|£¶:¹¥²qnõöeúµXÁ+•¥ådÁ§ïœ÷‰H<-5²¾„ɦIÍ’ëKÍ&S(1림$1÷gÝÌh8]óÊÅÂ…Ž kÞìQ³¹Ö…³QtE&ÿ˜ëB J=ð. tÛŠ£)¡Mc>œ…æ[±ÿd-ÒeœmÔ¹ ÚRÞQC ä¯1"\>T#ÚeKšù…¤$’ì}¬èU=Çܨ}FÙwèž¿ÉOTd8é ð…ýVG§\\îß wñáðàÑWÃpÝyF¿Üîß;xôõ&wð}ºƒï¯½ƒÃ#O…k¢{3牿ƒ %ý•ÙgsEæ$f*KdÖÃg4cp–pÓ¥©û™„ù¶ iÏÞ°[˜z¸¾ìwÍîbôI‘_Ôõ˜¼…eâ.àq¸šÁÈ®h±]¼:Ñ^h25óˆ4é4Ày½nøÄ3ÁqÑp\St“v5®`.ðïŒÒw] ‡2#å©›”¨ ¡Ò†9‡ÙjmzV Yƒq²¥;J;êÖ=syã¬3pw ÷Ô‘§<¥„ê¸Ô ”øŒÈ•‡4oƹ@ĪÃsÜÚf\±8cãŸãÀJ=’µ5?ðqapnš—˜$ÀÈùVnèK¬ì°+ú—l²zê˜þ“nµÄõ—•0~%S_“È-½´IuªxIÓ-D°×ù4ÿi@öã_zP_îÒ]ØÙb þ*™+¬ëcfáhÜ;¤±j®­–ã¡aÐL~ÚfyFÚKr|³$»B#wqíU>*šÌ>w‡]w¶ÚÌší =³Óp\_ÁkÁGG¿4”؇ÝA†L¼¥òt0ƒg«¦ˆºt^ZÍãy·,¦ÓüýÝ"7ºZ6¾Y¸ñf‰;àÎ^1}qgßùâÎ×î† Ö™ ìí}ó„È.7¹нð`í½ab—ž{᩼¹Õ6;f67ç]AQ`zoÅ+EŤÂ$€WMÕ÷êï–)G§÷n“²A9y“ÕA+-V8#CéÊɤuô•á.‘¬™¡pÍÓwÐ×l¶xÓÕ)¼¯×N d°#Sàµø ˜igI*LE8ÖåìÞ˜|Ú`8¨™¾mŽÝŒ]xSøâ_ Ê‘¿ë‚“oc¶é™å„òv0ˆH£R„m9ôÍJf2ZlС — )3Ê17€PXz9çõˆõ)~$Ëz±œ ¬c.a¹)º·Â´S’²öú·K â¤É°¶$iñJâŒ½Ž \se#³ßYç{‘«wa~_Þ©ð…¿"§Z–¨Ÿ þ7@eì¢^¢„}±NZb'¼˜Üd:í9C$‡N‘é†dP±:E•vnkø`r¤û0nã¾IlØ„à;€‰â©B J—F*‚ÕrõæË¸I.®%]âNÈñ溕îBÛKÇ­üê$&ã6.„*-í3»\襖ÁE±iïµIÓÿØV¨ŽAØgïÑ›KåÍNâ @pDn(éÃׂV›bw4¹;òækÐþÍ—0Ž®è¾ÑŽÁ(Ö˜c4\‰ðL©¨jâ]­å¸§2¿gbY.aˆìÑ4s¦›^¨7ÖØU;Ò·ÖjÄsHî$JÒç^Tá’ ·æ<á¼·:b›K&'±òE`¦CÜ3–DÎJÄÑÈ&¦3fC!2ÏÊ·„Yõý—\{‚Hîk +Þs­5 }¦šu¬˜Í½o”ÏŽ0Ðj`ï[â8ä£] –j’2@éÅ›µúµ8)?У;•»ÉC+w¾ ×Iù_Îèsæø’•8YŸ<òoÆÅµüÏ Eåùx©äæoM¹9’eå|†–¨ªÎŸoS«mC‹ìqÍ X!­“ÀûÈ!>ZËjÞ\V³.HØKòÛÇow@Ë"JMÊ–éë § džö'ß1í«„/\ÐÇŒ>œ Ca'3òr²0çã‰ù¤Á1fZtuø°¿zõ€¾{W`wñ£S|=¯˜íŽí  µ;9£Qn®Ûñ'€zÊZ'?öE!4Ôë-“óØçGj­eí­%›jɵ ºOñoc£½« ª’¯YOZìD‹Až×³9È}åØÀóñêdO ­Ý.Þ:ûSiçdÑzIoåt}7_œr$«®ö6BŠ&ñRwãyùS²b±?<†=ËÁAÄ×»ä=eEZÉ&Ј$ð?ÌOÊ2»W.F÷ˆ¬!|rx/ô¿`ýAèò9ºò ´ú&ËA’è.Íëë7¯Þ¾úŸOŠ ^ Ý@Ü {àDX‰¦ L²mº($e)ãªÓ…äÛ„vY‹2 ¦ºô´fQ]à™Ôï5¦@ê›+õį]‰X|‡),Ï›yÿvX“ü0õô§ÁÏaö£åµ"©ÈMËS+£¥À‡ùL›Y¥]6)"CÖ/ÙÙW·Oµ6ÕVNÌä9ù3F¢ãÔ çVPÆ‘ºSG:Ýúðx@Ž­j½ÃC–òmÀÂÕ=n Âê ‰‚ˆ ¾j®ë–<Ûìµ­0úoò×âiOo ýC¶ã7ùsè0»;7™èæÌgU­ÓÌoò§5á¾ W޶BqD¢h.— òlsè»ñ(=—¢–¹¼$®Äswb‘žþÙ}wù‰/JnÁƒýýU]¸Õ§õ|Z×ú´Â#äO;¼¸mQúÉVÅp­Š(ó^¥Ý|Ôêæýžnæï?ض",ýd›b§ò8º‰¼àÔ¦ï ']®¾Èœf”0­Ön¼c÷öØfèò{Ë*¡ ϸZB’ÆÔ)œw—ä`Ú×7€ce­š±CSÚ¾äxkñ#g7*‰íeZMM]Ÿdø“fËT´–±m…^€ÌMǸ˜—±8¡”dâØº^H ( ¿)©µÂñždî•)~<èŸõÞ4A§ç€j€„Ç2`J‚Õ•›¹"¢X3%ßÀ5Ë+ *™¡î¼IzñZ¨²8{>ñfæ{œ*wU4ÓE0Âdét%è'´¡/«`ùMÕô™—†¯îÜæçHìyU– ä¸Î0ú=æ¾’Ò$B>Gä2Ž´7«¯(‹ÂNØâ²ñ»TÙ†Lñ¸ý݆jbþŽÆâ°IÓO©'j£]\D’náÊ9bÑÑEî1ÄÜí²Ñ’åIèæÂö-»âÖyŬ±:z‡¼w¦ê—3ÇGIO§+¶&`=™£r¶(Šò…°ÇUÏU (µ÷n)¨UäÄe3’옆™º`·æ+ö8’­O iq‡GÏhXàWy_‡:Ž!#'AB£ÃLX0¯WÄ ‚?”“Im¢Œ=­®ø].cl…Š#vµ÷ ÞßL‹+nIo…ÑÛ ïl£Æ’W}{QH”©°Y”ƒa¯‡‰F¼AB-|7Ú§ÊJÊ •ʼdœ2'tj^Žë<…÷Æ­4 Ð`îùD“Uÿ¤ˆ9³XpõUZÖ*ÃAð ¸Ow~×j¬–°ÿ© ýÄÉ‹cŸIù3Wr¤ûÂdeŸÚWÉ7qHhÌí'-“¼…¤ò-s+{¶æD 5­§góºèÖ°0ÈJͺnfçù?O_S}‘¾jnÔíÃ=~ðð«ûL€‡¸_ôXTúÂ6yÇ-,¯ÒoÊÑÕ¬õ³ü'&°sÏÿ%þÒ¾ªÆ­®˜½Xžu¶Óp ºŸ†K ¶ÁªŽëEôQ+?Œû¸wÔ}O®T},á¸íýîQ*>ȉIãÝÙQøJw:õ5À¨¹þ·ö?'·ð&€g»Î~µ>¬x<Ü ë×¢ÛwÚsÄÒ[ûŸ[3bQbn[rkÃý¬nߢݱƛÇÐþ%`>Âæâô§xÍ8oïˆ 1LáÆã»ÄmºQ»A™lö$1ë…Ö’QkZ&ë±sW= Þ²žSÌ,›[<¿Ù?ägKºìòŸ¦¤N>¹ü±_$·ÿ ë'»a>žá‘ØZã?γ·æVø[êãôìª&ø•v®fk:"p¦äºÛtçô²ýÏÂR"GÁq­èÎ;`¸.Mõòl­¸btJÄì/+ؤ O˜eŒn_¡V2y²¡åÖç‘v‚š]ÏOŽ )†u‘ˆ²=Ïü`I©gù­zfmÌ¿ú³ŒûÚ.-ß4ŧ ÿåÉÉQ¾ó²^ìÔ{'¡ý³›ì(<V_!&ö¾˜W…bŠÅ’“PØ  z'DÎC­W úžKn—+&Ü‘aaι› ’ôŒVŒ ž‘+á'è<Àº;Ô×=ªU±‹O÷žÓˆ)4&ða ŸßC¹,£²©å(¨Ãû–U¢Wtv§l‘moW7g4£ÉN‹›±žg cäW&Óç‚vW«"#;8;S„ÖÏrêu“¦sÖ‘N}Éâì{±•Œ·É_z„–gêôÕx-cxÊ#U_°`‹8 “·j*Ü5*jæNì(À|‚a—•?7JB¤ŠÇµ2A£½¿ÓäT-²ñ?2#ŸiŸ¹fÀºÃgbúñþÄ„; ×}S¼Ï#´Cy\héÞ£bŠû²÷ I<àæmÙd‰þÅÿRë·Ï[̨ZŸ'£EÕçÛ[Ô{Æ–-£âuu²@þfá×K½½ªX•ž‹­› Oßa‚ ’¡˜ŽíµW:iÆ:ý2C™Ò€Cýsþ·ö¸ÅïÌöZSãÄ|ŒaæfK1LvXEÞm§X÷š}׿:½8(ŸBï'¿rÅ%´Æ±p3ˆ¤ºó,?²m¿ }\ÎâW"@À¦…‚âtϰ &Žˆõ0çÁþR°dµ‚¤_0^V¦l£Ì’Ÿ«Qeú¼²Ä~½¯j¦ϾSßžU WÍè¤(å70‘][@ ²Ä›6zÿ;û•~O¾¬XT"ÌñÙ²šŒ™v µF7=Ýí].l¹ÖÍá.?R›â)ž™´N þÐp| µÿEøgÝÇ“¨V­qš@Nóqó<šýÜýÞº“äV@å" ½;°3X4ÿ†Hÿæ?%ßæŒ:L „£÷_„Û¬õ „{F ÍU‡ /?²´/ž’$;Â/ò˜$£†kü¬º¸Ðzn§Ò6ã-~͵’^¾zóâè9‘Š`#îfW%¥n~ñâíÙ–ÏÞ|ÿ,ç/´IëÉ¥·—?zøð~G‚ÁÕ µHȬ3@0û½`v¸FUŸŒ÷‚¼ O†y ­ÅÑ¥­¥e…±+©£ÅœÂ=´ñ|OøòM[0!B'–’›é’›t7t‹0]ý¥„Pžo úÃä[®•"­ æ «2ÐF«ì°ÄlOŠ ÏÇ×(åå;¾0ù«ᆂõØ ÿJ@Bb¡ø½‘Ùi`B]ˆªÄ ’D§³É’ÃÍíkÐ>\…[³bi­¯!ÛvŠrãÆáÄTÅ—e«Ú_r 5×½Ó)šAZ'Oë]FG ùú°tr²1!ëæpð¹¾`ÂqÍk¨«ÄBQÒ>7Z,â^kË0²­g“¨4f còÛ 7—ãDªêò‹Ló7l“Sør˜Èav$Êx,É’ì>|´‰9Ü®tµU¬6lª ší˜àªIÐ%½dè­²&Õ"<’»¦…²ú*ìò“nh†ù-¾§ÉHaàY-`j±gYNk~eÚ +Dûo¿.‹ÎåÒúQíMG@u BoíÈ_<}NÜ „q!ç©ÐV•n \Ó‡g3‰#Л’æÒÕXJ„¢FM ÿM&ȸ—-tÓH12?daE þ®p$²×r Ài¿ [ú R‚†˜Ä©ˆì».åIÄ0‡SBf0ž·<,Óü+ •m‘qÙmÓ§S}[¤‚~Ç^¿Uœ¢á6p~3ÎÛÕz%@–äç²BÙ2 ëTˆá.+Õ\àq*«ßÒœ}ÅØl$¼øÊßN©ãêöâQÜJ…«¸Ðs¢bìP5åKL°}—®ZÂ%4Ì^0B…ìR¡€›æ€æ­ßä;pKïYšëžG;Œ{éh0þÛC{÷Qú-MTòóJðëîÖ¶õ &\³Yoƒ‡®ÁbrMöc¶2¨z¤'®ï`µúu¡5“Rr¸÷ÛÎLôµY@­¦® ÿˆ’|…êÀ»zfW4–w‹K!lÓáƒoŸŠOy{‚SZAtÀ.JÍõ¿|Q\hO­*S‘Ý?ô¥÷ZµkÉè‘9¯EàðuK|…ââüÜ“S¸ f|¦ÀjM@ÄpËs Z:^‹Ëþ°µäj™A5duÊ+•yšè<øüžÅ7ºEÏ"-˜%G„O»Ë—ÿغ}ížÉ<‡'öã]]ðk]vù‹ÌѪ¼ò›²i%“v…´žÖ­…±ˆy~ªX+müaà øÌŒdmß"exPÁ¿X—u‡ˆçÁÁêþ²ízðpƒ|Õµãvñ°/7N{bMn“ §¢(Ö'6é77³Ùlƒ¹Y»˜k´·z}6Ú0%rÍ éŸ$•ñðpoÿÁÞáþþý°º÷÷ï?Ú6£ñà˽ýjâ ?8|¼Zyøié‰q¼AQØp¼‡Ÿ0Þ/©³óƒ/ïß|x°íx©‰CïÁãûÖOÙféŽn·óÑþ»í–LöD´müb?m1rpØ'BV¿l/©HÍð`¸ïðÁêÉc‡xl æ‡VE„0«Œríaî8š7>Õd¿n—4Þ;oúÁâ0é·P X~äý¸ªÇ%ÿ@Òxñ·% ¨bßoxÓ÷DÅ(–"‘1gXk?V 0î¼tU¿)hÒb-&·³·ÃQÀ@h>‰L+}öÃqåA\‹RIŽ /+©‡AŠß¢ †·ámß$µÜw<;‘]°5q·Í¹^®,‹éòÖLs k½kJ2D ”©¶"Ãb44#ŠÑŒá7öj‹÷1Dg “™–yët^‚¼ØKœx+h*!/De.+'ÔõœpCæ‘ìA‰ð&9ô‰âÃ7GÎõfanÞk9ôfÖŽÎŒ,t(ÕE¾LóÍ’Ó¡gO¨«ê6i1ƒt+_ÐIBñRJ¼F¨QÀx-lƒYË,VŒ0Ÿ6ƒG„Zj±†³3y(egè¿M…Ä>BC@Œ;H· 9{‚m‡’âÇJ¦&¤êL´,h)('îݧРürÊ ãô£)!wýÙ°±Éÿ.¹üŠÒ'U7+Ûš}öþE—§BD’*{4/nTù‰”¼eò–RÞ%4n^‰fT3Fª-!¬²S·¹B²µJˆ’nÇÛç*ÌÝX V‡ñâUÑÊl­ ·e«:A˜°®ôV•d\&RŸ§NC&ˆOQ£ü1¿$³ íSÖ¯¾éÙÅ­’wÂõM¨|+{æÅQ¦Av-^º]9“bäùæ;·!zjÔû½¼Ë¾`Ê¢f8·+µÉµfer7÷¨ ¢(´ýÚ|ýAvtbÄu¡âGQÐ_´Þpåä¦f7-H.R”47±.h·Z[Ÿßéy)¨/Æù™ M*s8¯0H§'è}ýo¤¤™È‹AR¯§]§§¯v^ê·ÐÅÃ\¬á›ëiOg… MUïɃJRUs)Ç]$ïÅ£é>Ãs“VS;Hó ï+.pÜå]¹½+ˆêx‡¿Ö°6 i2 ¡N–Ë ‰ ­kY(HJûÔÑ’óëòîdB0ž" ’5]bѨ¯˜™\iî€Z¬çe¡*  ó˜1oÊX ƒ[i.®()æ sw­¡+ZqZ½´ÝYH–Èuap_ÖÐÈeCE¿ù e ¡í€²HÂy«©íœFç·-DÑÖEjÕWJ·K§(_ã~êkýÌÇ*Yµ·Ï]+Äo£Ùr>«Qøš 2lbÑWÖç²´»JsøZ85¶‚„µ[çæjNÌî@µÒbqÙpqÊó‰RC‡e³Ã:šS¬ßŠ·D³PÓ7=äþþÏo˜rµt#±ß ¸C’Oÿ9èPåƒ,ßP–%ovKäi• ˆ]³RÂü^v~úÏ¡3ý]'{[9L[9»˜Ñÿïë:wŸ$¯ê*E‚Ø\×ëIMû8ˆ÷™¡¨ceã<²¿ïžòeô3_± §ç·ŒÝúrØ×ö­kGºÑƒ:‚®úâÒÞ_7gNHú¿Aƒ7ÿžÿ”ÇW¿ý‹D2ðv°VÄ$ÜU=­ÎÝéûæ`Ÿ[‰åpÿØ[çØ±àÊ’ÐJX®SχfHÏß9ØýÌ”ÄK°~ú×NßáÆé;ü\Ó·ßíKò»}¹Öïys4~¿¹ßžN+Oó"Gš §ôäGÜÄ—‚rñKÜ5(lÐXHYKücC~B.Ý >ªðX…[çe¹¸ükäK› º4¨Â×R2L! ïZÄ•ábª†Dý¼[`Ôo*æD°_õ¥ ‘eI†\’Êåí!pT 9¥a2PmÝp—ü\D]¬Qĵa¶(H†\]ЖÆè÷ÁIi¨±rHFÜ~¾zt°%·ýd n?}û-©úôå ôÚ)§ÖÁçF}zt°ÿhË>ÑO¶è“>¾ÁÛl÷~:Tjbó ¥”ç£’zz÷ö¢rçh†~›ž¦Å}¶ªžÚÚÂäù­\Ç}}2¼‡Ò$ÆYî0d8 FɸŒ÷>vÑ\lÒŸŸ¦Îy¢›à¿dŽ·ãÑxݳ0¨( ʪ1Op“-c;ã)}ÎÂUö `£<Äx1õ㬯§D 0vcRÀâÒ¹Î_FÆH‹ñ_xE•íÙÚh…½Kvºfê×Å }xL)ëÛÈІ$ƒð÷†ÍA‚¸H&[óþyw¨Ð2]0Í\í*†XBFáˆùVOe•p$î6}¡«>d®ç6¨ ÅåKËm%s߆‹é†ì7°Sv;’î æhNϳòœÍxî­D=HœÎÞú,éºaÝ輀߉7RÓ3¡Q r E6žÔJ÷O% c n¹tô‰ÕßÇíõ*WŇ|^Dê‚З ^zêÝþ8mãp9s‰6œ¦¤úufúušÔ¤~eÊ ^^å“rz±¸´8FüñÀ+ M¹J2ì|µ¿oèÇù£ýý¶·;4°Ñh×ô’ÊCµz©Ô2ÚÉÌ:ùBøkÃ\®í>sE-˜÷þ½ùyïJ¸Ò†ÃvÂÁ½û·þ¤;èq9)nÖ 7Œ]UÀ»wé™_ëðývG¤L󆄃]îh¶m8¥ͧ?ì_'Ĭ xTçåÏÞ€åÈwP+ƒtzgP?ÞíÊ9'}Mƒ)* ›èAÉ”~OG%I†K®éØò´Ì½´Ì¿È¶ëN£)8«ëIÏ­ ¬ÁäFžÛéª+»=:)Ǹ‚mæ¬ÄW1ý¡­TrÛ-õ)c ðI$S¹³¨•ê^^ùý"×’ÉÓ–U/ëÛ%=,ÅP­¶›ž®Fª3áíe*æ~‹BœC·l÷Ï«iÎŒÝHO ½¼%%x“KÊoÞŽ¿Kó{ˆxe~¥œ«q7ćÓN}Ô¢Ÿ½sk½kúø’çW‰Yý½œä[ópÐ,qÔŽÓBòbr˜÷†ŽÏ–Ô­(é`¸ÄÄk†H† n¦I¦,õ¸D¾qtÎÍçWìïç;ù¸¸Ùíq‹•szÓ¯>»É°#µ¦C™ÂÁÀ×5;‡ê´•Fræ^¬d0ô¡?Ëy³Û=Â,À6:ÁS®saíì dHC$VgŒš Ë”GtTì#q h’<·ˆúF)ü23Mè]ÚÕ6cý´Ç€ÎW{ˆl3üDýøË'ï Ûô ϵ;IY¤…€—b4©ØW[gËÈdÔv³‰·ÐÑõ…™Û¹ŽüýÔû•ì.Ùw:»\_gÝ¥¿¬ÂHÐí¿:¤ª)Îö¯{{[ÓÑž„„cM*Ÿr1Þ/­óìiΦÜÀ–loy¾$7Úò’ýøiÛž;ìïyq mµçÕÓ¿ï¡Müí{žðŸ³ïŸ"ÀÁj™‹`ÒxW¦ÝïUf~ƦéO íI ‡{ß…ñÓ ÈþĠ¶ÿê¡~“*˜0nb±gÇ Ê„h,¸Û{'(íÇþ›üG\!bÕ× D9ìü\nÒÇïõ%bYØ>jKõùùׄªÕDH¶„x<~}KÍŠ™úâNþô› ‡˜¹õ\rÎÓ*nóTáaPþÜãý§ß~õøàðþƒ0¨_õŒªçößÿ:gt1r,O¼2 Ìïí|çáoû«ÞÙžÁ8§=ÓØû>VÛÛC<ØÿÚš:A|€Ž‘öÏ»=³9 ³ß›8íykOJhßc‡ýë.žöÕ}!¯G÷ "˜)su8ª¯z$õ‰7o=±~ä+Â|µ?ysüz ø¨ERì0u|»èЭOó×vÅó$C’ÎA^y_yÞ²þš|œû *#cLVa—ï-ƒ²âˆ 4lcS’v/A¥¤¿eò°„² d`»…'5«8«Çõ‡BÅèÝ0ÿ6~F¼ÕÑžøØÃøÈ‡4`¬‘co¾¨Kâo2s@Él›œŠ‚äAIFƒSÂZ¶àL …dY¢’}1›„SyÖdãÄÅIŸ8Øg×<¤{˜¨.™d—úK«:Òi}F:²‡,81íà!P(ǯw¥Ã$jJ%ç›:kˆvÕ^¦&ç$õª-.ë±KqªÓ!ÌåjÖF+i5‡\såXˆu”³ÈzÓm‡’èôÛHeA¬¯WgåxlE—P#¯¸,•88ߤïZÚ-v:84 Höà%pQ`E*íéY@‰Ý›r4óÂqFb5æêaÅu¸FkÆ€†¦U¤ì1Ö¨SF"¨Ïs¡«ú¨ Nø YI­ôŽÚ©v ËÖãxy5ó©Ž\ýùŒ,X!ÕÛ9›ÒÅœ$OwªlF7¥áh Œ†Xòxí³â¤^f_Þ&äÉ„ÿtÅ™XáÌZóüùšå ©Ùáš׳å2‘ñVÎ÷<¢yFƬÔ"ƒçÖ`mTP%?a4Zü2Ó•Ðôc¤UþÛ2ÜÀ§5ù(WLäî¢ø›œ;MÓËÂåœdè”·Pìš "h‚áÁù’¨‘MÉÞÒ¯ÖûÈ›¯Œ°/ª  ‰3ÿ Í=k²˜¥$”¯bòŽaÖ‘zCmF*Æ“i†QÚ%Ïø©ÝÃì´œî¼ÒÛùeµË®ªаhéìÈΧ)oQwÒ@§¿G$Ø+€4—FœL«´@LµHò³–Ç®m(Éaúç„3&]_݉J¬›dA¸qzA4†ò´[fA=„a/‡ïQ>ú„ÐI–ðŽiÙ¡³¶,}]·é 6SæHŽQ›³†5轡{œ$w]Ì)šz:ì»iÔ‘”ï¿ZÈ ¤Gq÷1‹ñëÙzx¸äO‹¥bh¤ó ÑÀ*ÌY†ôÿKÎl,,=ÿç‹Å×û‡Xe·™˜Jœp`r2lÙÃôãñÓ?üa¿C]oúÿƒ¢ÛØÂêúÃ8¨ 5¿óo¹šƒDÓÑ+:RÑ@vÊL†šV JÊwpÍØùkû•¸'W×6±3¤…l|*ðýýˆ:ââö™4Å};Mùò]Ïq^¤p…f026Tgís™4*vQî@æ$ÙC¡º}°ä‚¥z™‘è’Uþß~nãdȾð3¼"ˆQÌÏ(C÷—êW°GÅ|ì¡´aöWôåÖÄl’gÊ ª™¾>{UR†‹ªÙirûµ ÂDÛy+Q‘ï$”¡ûñ:Ñã )Ãà îO03·aX 8(iï‹jÂIxâ'Ð$î„ ÅÕyÉ4®‹8í´åš•c•ÎqŽëƒD+NÝB°çñËñÆjvª¥¤Y.»³i…@‡·‰.Uç”sÆü.„²02ͱÇMÕiIº|'©lXLs_5äèDÞ“Iúy·¼Uª½eFˆ]ÒOÇ~{£nKÚÌ‹›Ðö)I{ç#—gË‹4÷·ÈÁCOç%‚Ñ»q“ÃúÈ}‘z߉N—õþ×yªË}¤/võw‡ò»ÈsæÇ*¼ª¸Ž nåY+W’˜`¶ºc‹qçkM*ô¯j%¨ê¯Œ?#ýÕŽáß‘cøwkÃá‘‚·ß0ëGüE—'"HhøÕXi}dvºft¯(Ë|µÐ:ºàµrNˆT‰õ€T“¨Ï ÊG™9«Ó~¾døzøôš ¸AÊ/1«¶Š#É%&È 8¾™WB!$õëIH%Õe]¦!œŽôшÅêЊúp‘?¿XΧÑPmP·bB\øÌ¬tÎÈvРOiü(Às6©Ga’h:¸sVøÖå®DÚ¡D¸BGã® ¶Pêßãv,õiás°)‘ªét'u=kv‡]“ìœàDõƒ9mxSðd<ÎÿyuäQ»k0¸5Q,´‘ˆ%–2¹W5…_v*_(ñ" ò„Ô‡ÉÄ_ü†/n²E‡½Ç•j+“`¹ý31XÕSJ›åm‡u´bŠ_Ié?ùEbö‰¼XŽLV) Ég®ù”5ËôŠ&Âé3ÂI³mÒÕ§ãñd¤éTM€JáÎzŠdºUd}ÇnxË;â¡LÞ–ÿÔ©Âñ—ü'z„3Y{úÒ:ÞU•éÐÃm‡h‡êŒ+l=ð™K5âw7·õ]z|Ç6í•åÅE¤Xñɰ› ‹Û:EÉ-K—ŠœAÆñQÌðºI_º’Æ!|#jï¶Žçõì#“| [ö² ºl-•É*/žé?wrf waµàk0f †"}—ñw؀ÍbŽÜ¯0§úö²Ãžµ]±žžR=Kí÷9Òp;RÅvK·*ö°Ý_°'­Öƒâr®ZOr°µÈ¥$%² +4/¯ê÷ØÉclÛ; ÈÑ1y.f‘7-hE=´i‘•L9WÕÓ ëµ1»—Mxûút]¡œtÀ£”¬%™-YßrŸ$³ ñ<­£ÎÔ¡.{­¦Œ®‹¤"¡¢<:ÌT—4m×òéËïÛ\9 .àÓŸþéà0|wððËGÃçôGÿ”ï¶¹?KªKçÿt^–“bísAÄÿúuÿüþ<}õäíŸ_?Ëé0ä¯üöùñ“üÎÞ½{ºÿäÞ½§oŸò÷‡‡ùw„xºwïÙË;tbqv~ÿó£§ßdùï_<{«žŽïŸ½|öæèí«7wò'¯^¾}öòíî€aõi=Ú{[iñyýîýîíñÛçϸàña†ï6ù÷ËpÛ?& =š,N ç§ÂãÏ_þÑ‹G,ò7Ïžÿa&¢ ç9“_ò£ÂøÜ@`¿g™@Ò¦%im.i¾lKˆµÄ ùr¸ÆÄMÄ‘}cøÀÄ™ôåð€Z:X×=òÝ’ô @[¥£ Õª5&ßZ†™“öõtxÙ"RúÏHôM‘d¶í&|2!2`ð…7Þ#às?=nˆú%7ÿ´Õž󊉶ŸŸÝ s>À§oØ1q1/¥6-*OŠ œ£$—Q|ºuÙ6­odí 7>ôša#Š+^TùþÞæªm­Ö!­ÖáÚÕ |/<Æ@±]–“YkÍ\„“Ãwá_wiyËÉÈÁ:ÿk-þ>l^H-²qá#7Û‰›—>_Ôã“ÿ ]Rëiô÷;߬þŽaf ÖSÞáæ²àe¸œW »ŒÎtž3î”ð5”8Š_P}Ñ qRÛãäÓ­)çm nÙQP!%3–ПKbb|0ö½Åà̬êgõø† »i(e½;5WÅ_ëù¸¾ª»3³ò+L 3í\Ң̄†çLbBÔƒNl5vÏ ˆí/ï–TŒç‚YR13¸0«ä®ÃUìq5Ûìly‘ )…bÿ&.ŠÌºÛUp˜(Yº,U¦ì²“¡¦žptéŠIV$¿›=¥áÛA0™J ™ ‚K’ßÁ~ ›ãk\–‘1_^07í¼ùrªÕòI؇H”|ÇÀü´Ÿ÷Nîly†Ïø¸oÛW¼ÌùΫs*d2§ä`"+§È,ü˜| “¶¼peòô° ו¼¤1)æÍ޹:‘Éo=GE^”£ ¦¸ê)Óâ r®ì^-ÛËé.ž2î üÓ´¬-÷E)´äðïmhx±õ!DÛœªÓjDÛ¯a°§.@oãÅb^Þ ßó Ÿ†WÁ-§•.@xÁoV=ñX‘ã&S,æïiГåèÝÿ »9Ú¿ðÝþ†acüŒï¸EÿøèÁ~Kÿ?xôð¿õÿ_åÏRýÊàT~òÁͨ­Å§‡ü íIÐÓžéVEý ¯#áSÖ¾_MÇóò¯a&ÕŒ/ËÐÆú+ÖI,b€Ï^pò¥Þ¢Q  Ýݺ\•ìSb7ŒâPŸ%ᬃz@¢`Ñ„¶WD¾ƒð †ÈAÕcK“&>E›Gõþ¤­!Zë±|¤¹ß4 žù“Ü•4Ù–©¥­Ü·tHÝC(LQs+»OÝ_ßXxæè(kZz@-=XßÒºµª÷Õ¤¼(õFêµ>B‹a‡}Ó(Ó„|™´’_†ž&Ã@î÷5y_šl¡ö×/é}Z®û½Kz_GŒgÚû¤§¥Cj©oI]Kdi K¦Rôõ¶…Aö­¨kë>­ƒVvõ­­\°rú¦îLÝ›p²¥€¹eÞùæa_cêýŽ+Êܶivö®ÀCëÃVà!ÍîÃÞp-…gž‹‚a +Ú¹Oíô;k'<ó è×z¾ª™ÔLßarÍ<`ånŽhÂ<ŒŽ|+ÚÃŒ?\ß^xæM -¸¢µGÔZO?ßZxæ;(lvåTÐU[ •{ú®ù5Öï‹G´æz÷Å#í žùöû×½#|DKý¨w;¸h; 껢ûÔFßVpm„gž"¦·¢ÔFß>pm„gþˆŠ+ÚxHmô­½k#Û;ÖÛ‡_FûïÁ#Äþ·ý÷küùOdÿ…Kéb^\]Áøzêm‘Çl„<-‰ ¬ß4Ä>>욆‡Ì¡spK(ÈŽ®oºçè&ϹÖo õEí&’a¯ õDiSýª›C{«Kœ‰ó®C²“¸¤ŒaõeÀŒ@$EÕ¢„Ê4ÈÆè+•¾ª#‚f# ˜ y«b‡ñ€5@öššÚŸ„”X1;‘™;Ö³ž‚ñG}ν̀4WÌR¤Å²ÃhU¢8Jøâ”UäpiÌJ“›ŠÑ‚)&ÂkAä ,E­>ä åN¥º!ýßmmÕÌêXß‹Òß—Sõ ƒü¸œÏÃ0ˆÈÅêŠðxÂÊéû*|‹¥,uÁ[‘q]Në9`Š+TϦò¤H#fBåÆÂDr¥™•H„aK÷¨Jo‘•"B>J¿&äý»òIr•æ€k»„©:_N&7Y°–@à)Oåù9UýœŽn€¬’Ôpêï‘Ñbº‘Mírb:q·RÌEø÷pÞ52q­Ô©jUç×ó°·òд¤^.É 2ƼϬ®‡,æ³ EÓ,¥W·Sþ${˜¾¿-ÉÆ ?9š.Âf{rY¾»¬ßçwÀ~3 .ú”F+#"»ó•‡»KyÅÛ„{Xpª;ë'Œ‚ꀭ«ÏyäÝoËós&-¹Ò⌠§êrZ1 (“X…ɧæËÈçf†Y?•ZvÑ”“ó3<žpp伕ÂÐnˆÛ¶TésŽ´¤ ôv죋º˜4-©¤^èiŒÉxaňÌ(AþÂDŽ&T–0(sÔ°üPIü‚Osf§YS˜'’Ó"+ IešÄÓXN¾aÔ/ LgFÙúdÏ`3Ñ=Õ A.^s Ї3ÄXœ-ϯÀ’©Ö¥ãâÌSö·e¥Ô7R)œƒ:áñqq.Aõº=“Ç ]|XQÙ0ñ‘3AÒ"ôf:Ì¿c¨vÕdºƒ×§»õc–ˆy¤m+ðþûãoN!`5õÔd¤~ žŽu8ý7šº¯S6D`—NØö,i®ÂÕ4 ï!2šPVdSR•_‹Çò‹#¼HäÑ^K€DÒ»þž‹Q¢H„XG92‹y‰zä{L_€c*ûhDIà==.Î';RxyJEJõUfZ6w^ÚÃʸóêDPÄì“CXqJ«&‹5<‘…KüF—~¤œµÅrJŸ$‰I ¤F¶&-¿¯«±ñEäÄg‘RŸ»ü!Í|ƒ¨"šŒE1z'i…À ] } ÿ+Ó#Aï à‡kNÊ’3ê°yu2Ì¿ W„TÛ¬šz‚2Ê6€jj©Ø<«Ù˜Å¸N Q^JÆ$ÀÌa»èð} ?fGAJ $C”È@8ŠÐ•ÐKªT–µ¶Ñ 62Á3]%)(ŽªO+²skáPëcEýq^×gES!†:y˜u§í7jÇ_kçZΤ×MØêÃ+¬éŒ‡)5¼%Jt¿â3¡ˆ1eù¸ò]T.ëjÆH˜jÞ„ÖÏ·#ùE>³«œsþ™;_’€ Ù,ì5‰zÅ›¯%ŽÎ@s©¦çA%£Î#BekÑWT¯§{ r”‡NK·†ùŸpã–:æ[\ f_%_íQ@%“«õ ø™°Ñ–„檴”ý×)ZÌ“‰^?&4ãâêRR[Š_™2 ³°BzáÔ§).P©Ë½”ëõ¢n”\½aOÚ‚ƒ…?ˆ óËzÄŠÁ¶Õ *BCjÎÑ®I¶ÈñáÛ>»¾ q³‡¹šõ‹Ëe“qú«Ôí ¹‰¬fô†ò=§7bïÛ9ç-ï~˜W’äL€‡b®™aaãÔ¥ÀìÙ<_ðäí•[Ÿ×áÕiÝ8°5ÚX ¿"Šì›8ǘSdòn˜2 c@m†Ã ¢EÚ>iÃ:¿a: cÑ;RÚÏ¥Ô.ª½P2à ]¸ÝÍÓ\ÕáN¤¤§q1[0‡Í,ñ­-çg¸Ð%oÓª Ë-MkR"«,H_„»ßÚÓßF3‹oL˜º†*rc·x Èñ–›—ÉP’n ;W~!ÖŽ·ÔXKZâ`'—'bÔÈ*g½Éw¸Æ<$0ªâ5–òj+W`Tš’m±K‰ßVnZ5oÇT¨ïÀWµ^SùÍù)`öĉëת¸îc­“'‡Ì8Qv¤¸À ؉1¿TK®:µ!;*¾0 ”«þÖŽ\ÆFc¸¦c*‹+îtÇòÅ…èÙÈÉ5ªÞïÞršåÉ‹·¯³ÍW¡³dËžš’{L>¤cŽ$—‰‰bZqKåÛ—s$ŒK%l!Vε…ÊG‡@·A Ç«‚w¿*¤´.Pºš4 ÅP.Ïnk˾S^D<[ø‰[€wíE²`ªu Ç ‚ΕW bq9W]R]æaPGKÆ[!o¿öv­ »:æ0ñáãã2¨L)ýktY’F$ü#L°Ï™ý|â®XžðF0QP'Ilj¸`zb–é Yi9ø°ÁÈ|fQu!Ê HŸKSK*oÀp¥_JÎ,OŠÜ‹jº9GÃÂBµš¾'á¸ÕnÁ«ÅÙYÓÔô„ŽK˜SÊš•逶t.K<̦H »¥` „*%È%-•ö“\Y%H ®&ÿì&tïJÊ`5a+/ØÒ™ëòPoiQu3Ùa5c …Æÿäõ ‰’Ì;„€Nl¯#÷#Z–}xäÈÍX·_™Í¨²yå'%£?MPˆu—®‚8"Ô5MSKnÍÝgáJ¦ÜšDùZrâ|ªØˆçËéh‘àÉÉÍ@¯ ÇVÖ#„‰ ÖŸ3‘ÊR\P´ïô&ºƒ<qøœÄa,F·#Óô>y~¬(I`õË™Ïh7£0$Â)˜/WlÍ´šÍJná û¬Jm~¶ë,ƒÎ=¶íŸïŒ@wÌüFü)ÆÎ.{ùØ}ÖÖ_3™w(ré–¼·THø,㜼½T{¯}ê³âT1Ž-~fÝy®Âô¼¯ÆKÉyNîÂØÔ vÚ^ô¦¬oÒ¨éÄgA""3*.ñÐò¤çòÚzJ¸ løoè5;ç z€©„nÔsÊŽOn²$¯bäù±¼ÅQÿ´DxD¬%ÂÃ#ÇI…ù–Gp‰<~g4tòc/P†*ÿþåùµ<ÛÎí“ßþV¯ùð}æ.rÑËÏ¡‹yAÞoå™êù}"ZeÆ“r“•©Z‹²â‰u0§ÜkS羄fU%#âŠùR6`¼Ëj"iNØ‘’BQŽ„mÂüLsÍJFÐAnip´Píêé…c>PqH¾Žƒ1–픈ÈÀ“¼?”3dQQ*F_Ovî¨7±8áZ¤3WQüEô>&"¥õ¢O¼•®ªZ@ZeýërÎT:ÍeI©ZlÓ$oQFÑ6CE¶³}5@i,sxJäMýf|n@äç~9Gž²N,;‹&KfçlSž¼:1MOƵ]»miÃŽÈ®@ìJ hžXû€‡èj#…ïižŽ¤BB2öЇF¢<»jÒFè jèÛª©S®’4|™üŽOÎÉ÷/ž/ÿf–&Ñ?Ÿ¾e™s´É¶›K7,¢cSXs*ÂaEtž£Ä(RP°‘IÌ0ÁxžA\EMï B·° Ó,|ºÔ/ZšçÅÛòëµ4õ%¹orýfü¾šÑ:f0*_×Íâ„§šöcº¡-â„·<W»MT¯BÌ k¥úà ÃñuÃð¥U.ÉDz×^h"£ ·^µk˜dwjÑì»L1’aÜyñ ÅÒ$Õ‚ý…Òíí±¥½f5Í3c6 (?À‰V1š¹JD¨£› TB¡o‘Ìi”°ï» GøêL¿Éñ3ÎëƒÆ—1™'«à´ö;R䉻äôtëÛèÇã+4i» ù¿ âÿŒ„™ÿÃþ¸¥ýlïX‹ÿ:<|pÿÃ}Éø¯ÿÎÿùUþüÁ‘¹¿øu¿üê>ãó†VP$òëp+|Øý¶tL¿>0àu_¢aë½·"Çzò9ºM°Ó¦2vHx°Ãµ1<ò]¤­;vä¨ßMÛ#Dÿÿ»ão9®…C²(×1­ç’-\AÁ²+?˜rUÍþž ±J®egA½§ò¨¬ŽNJþË“€0ÿný«ŠwQ_óÉñÓ7”)Þ”‘?þŒéÁ Þ,´*Àp@v¼¸ÜÎŽs=‹DíQU¤öª!³›#p:ºœ×SrÖˆ‹3v©„k»ð‹9MqxçDìžÌ,–ñxKd>"¯ m¡ºÏëe°âA(x dµæT­¬aÔ‘¹a:ü´³+Ž|r”tv^Ò‡p{ëÒ©>ÖÔ3*é"àª÷0EIá ª¹fâ`yXß½ wIåg˜G`€ YÀT ‰/cnðlPín°cÄÀÏB7ñ9a ùóMƒ ÍÏA)*&·šiØ,©ÝO)xÆŠ-üûöB þhm`Cj-‰`Íy29ìF^PŽ|籚òÜËÏ`gr–4ÕŒŽ¬L…> òKxŸƒŽw]JÁ*r«× bë3—8·¬ÄØø±~×5qgîé„›×N7,5ÙD·1„qHK‰[iØJokMÏûörTmlÈÓ/í¬r,I@–ƹ©rzŸ«Ã 3©uÅÐÎQÙ2¤åG™”"aw w0¸é„‚s*È’…’Xb@AžU#‡Ù¡æó2zE5ê ‰UÉ> æ·?»a4Ô ßJ£Xa¬—ü[‹“ç¿ÿ–„ç韎žÿqg7(Êß‘2š×)éüÕñ[ºSŸž¼=zóVž©Rkf\3Á_\‘ÉMÌ‹·ñG'ƒ`iN˜§è §Ê‹ãM®zA¶CÄ~Ø Áº;Ë¿7!=DßÀY®óøùÌ>_NYäë74ï§tÂV>AûòÎѾœÒÌësÚ¹Ý|oOˆ¤á¸ÀÁGÀ;LWäuŸ_,%aJÆëÈ<× N]Íamhù4Å7™5ñ ÒƒM4 'Ïÿ|WßÚ3iò>|ñF´Uy“Ÿ¯[iûÂ0 æ )=¢r«˜ëþG©#æ92£›–ð­á‚ß]ÕŸt%Õ7*î%ˆT–+;E~4Ê9U ¿ äß%*N¶¤ùî€IðéÚ°Â1ôûlÇéÖ™µ{ÆfV8E8å4äI„^ªtSaJ3à ³¢žÙ°§ž–ìjòg ARk;¶ÕXcq‹Ðö’Àå à{Ãx‡”Ù~˹å}¤'7ˆ¥ñ†'·š’*¿*âWÓ…~8¡J/î°IQbê u{É4®_êÔɉ“wÅßßåÖ¢†F--:–¸ÒNg|Ú«}áËÅå-k|g¢ˆs‘ÆräæaÝQ´Rå[¥«Ùz\-à9þæåÏŸ£oÕ9pXK=°ß4ÛrSQþi‚võO‡›Š_x30g<…íÿÚ ðÛ 7ok?H©ªÎèLSí¤m7 ®í¶ÃV›&–㯷œýJ2á?ï&b)½veÜjóF;PÔ]‰¶Ç©%ÔPn pÕt_éu“­á7ëÓ¯èógÉà†>ŸöQæN~ÙÓù ™¿7ñW[]ÚlA7îÈrkF:4ÈVÄÍ;VÙ4ò¹¬Î5èj¥]2*¦5§ý¨A}gÛ5%¼Ãí+Ú»r¿ð¢•j°mµü›F6Sè&iFaPÌQ©á¦©GiR—‘ÒZÄÚ< ÛÍ"+[L^±Ó‹?ÏÜ¡3›Í‚P\=Jg]ÓID¶„ªEÓf?6%£dP§sÉÈUŠ^)c"]lË™d+MkÔnH}~4ãŸ#Ü–ëÊðHRé²Ræ³95ïa^FVCCÕû;í‡Ó‚Üäò7Ù%ÓCë«?qi* ëRähë~S÷eÁ^z”rœ¿5‚Ô™d©›‡Âui¾^1½ÉÚçäɆÔÃXR+ÓÇ­w‡ù3²öÊ„V4â)Ì1!.+9$š÷«SDÜd¾j‡•è°$uØîxg"É;³‰È¾Ä»«Ì±¸ãÂ`ö® ƒX˜˜!íÁù¢ä_sÂØÈ™à@ðS¶¿á˜´Žb ZˆC¢äa´ªTwÈ]¡Òxâõbx Ï9Wb  GÈÇ{S™ýf2,‘|©(æ ­)Î!ãX´×*NdœHÍOj€›ã*4r^e,¸úaŸí4eÙ—™¢è7ÖVB_FUSrb)¯ónN§C¦“ª!Èféd¸D< Q¾j!¼,öîÿÌ<þ-d-ѳ@ßÈa¦;*¶á©ÝK4e&R§lÿ@q‘‹Énù_R{Fêxl*Êû^¨~9¬ %’¿¯¦uÊv¸MäÃs¨ ^A§ÂaÑXUö_ǃ;+˜Î³’ôÔ&bœŸÓð°ÚÕÛ®ÔÎÙvJ p[§°Y[Ö›­ûàééPÖxÄ6]“nã ÓŒ;—N`ßU»ÖÓéÓ×¹Öõ#ˆH¶œîˆÖo<ÐÙ窟2ÿÀÔ›9ÌO†]>»IÓ»·,îm¡o8­¬’Äy£KŽCÓAsÎ#àT<°(utÐêTsßÐãçRLJ~Šæ„ÒO—À›Äå&Ÿž-JøçJg0›ìË•çÙ¶qÝÿEbý_0ñ©ÿ¾,NqÄN^ÍÒ©ÃrÉG<.ÎxÚb{öM†!œ¹¢‹Jm;œ¾¨W¹^uÞ´ŠÙÙuª]þuçÍÑé«×o_='÷Mø×ÑË?ïn!Ñ‘€þA(bTw=œ#=ž. NIƽ¿—eq¿× ½g Í&ÖÒ"}-¥ë, †å¤Ëœ‰NÆauõ§+·€ÊSRâÁte¨ó÷ب·²}åjo13|õËÜ‘»8“ä$–¤´ÍjS6b¾®Þ Œ“ç|ŒXÉͦv¡ùÇ¢äú]tY×ïXÙ}ÓÝb4v;­©(&Q&^©öEqútÌñlìjN$ˆ=¤}Sº½lÛìiöÒ¶Ô8»½—áôôÒ­wÙ­½Û s±†qfîLu”µdªv$£`'‹ø‚¨æT[—°zN5ÌRF‹¤pRŽgŠ5 îP4hd’FÀŒ£xîx_ÛÅœÉ@ì°´Ì ¼Ó¬IáԪɊæU‡´ê€zçHùjrÄ#ÔÖ—Ã ŠÅžv¢†\UÊð0'såͤ @Z¹*ÜÙi)W-Ïá+3býh<6Lã´^Tç7r­c#s ÷Ç”£FÛÞ‰{&‘We¿_æSt v«"Ü"±{Æõ\&E]4ÑKæš¶½žÀl R¿í´± Qö†5DA¼ùUOÊ¢Õn—Usµ¼ |²…méÓ ™4+£Ñd¨5:AœÃÓ$ª¿£‘ò Íé8“ðRzùÇF4†Sæ‰Ò_¢>Åš¥ûðÑjB³ZS]:ìØ8 eq†þ½06$bÿ4‹g9¹ßº":*™ˆ8Õ—õõÀxyò;³åÙ¤Ýi'É~¸.³t?°Ûˆ@L' ¿2q€ÉÎ<íRV˜› ò[á=Cy\¡éJ¸;Ü»¨tn`X˜ ÞžûAŸèÓó’ïl^c*g!ÉæI°aˆnðfW-º—`W,êíåãQŒÀ66ú–õŠ$M>Oq--{ þt.ó E1R§ ·‚¨©êIz¸Oé#L†9/ÕDë$Tù»¹Ü.ôGŒ—‰‹rµ^žÛÖQ¼…BZß.\Úà7M /ž6Œð q‡Í–¡Gâ¼´§¥å½Z53[+À½-Ë$¥fħÎSï4±íÒyÁÏœ¯Ó°Ûeξ•ï;ÓäŽ m¦úF²Ñh:MþÌ¡88pÏ0Ròg $ªçã%x¸,%1-g\…Ûá(“J–‹ãY· M€>2²Ù|9-I+ž­žÙfhH(ƨá¼Ó¦«O&óŽÃpUSšú{Gn™8¨MTOà¿‘hÏD"qÓ(õ\zeÍ;©·|½O–HȨ÷[îâã9ÅWŠŠy2¹ôƒ_JTÌoô®[EÅóž ¯GÅRÂ?¤‘Òß‘onî8¢Ax/ö0`*áFã`´»¦ª+¦äxv´qäßJÉü¶›õåtëyçŸüZ3Ïo»uîìíòÄË9Ñ0 šøönã+)vn\нZ1q›Ø«È_gw+_XOeÃg å4¨A}Œ|[.!Ô»ÙRë~Û©ýˆ¸‘m ¹aóL¸@TBð²ãiE¿ÌctÝn}í¯Óˆ‹Ém†‰î«rV[ ~ü6ì%qÈ*ãìâ”]œž–ß©Û]^DΟKØU^·²³šÒ#%žO6ùÌ5\E8“)C‰Dœ‚w ^èúŠ!Z¼€êFÊ*ßýmTͰ­º£‚Eܸ·ð!¡ Î,„wX8±q’(ú‰ 1O ÷ÁÇÔ#0Q¤L—£_á@`^nu‡§ñy‘§gÅÙMû ¬Åjc²€ ·"—¯´K#€b«í¿$CDÚù–J§^È œŒC¶þk ª5 pÅ”#‹… ünÛ™iý3TÑ0]ø Åp¾·¸”<®‡ùΟJåÝ› …8|<dDê0ÓM†Np‡©n˜µ Š»Idv’åI޶À´ŸZ­–ŒÃ6Cl§7%ÅTl'%gOô¿ùÀº0G7¥â>¥T¬còÅ#­Z¤îɬ@Æ€?£b¾¶ÃÔÃüD(¥ŒA†B 01,l%A«ûàË#Ì) ¼äÐi°h‰¾Ÿ™XZTϬ‚˜¼…×úA‘ÊŸÃHÄ•Ç u‰g)É¡’š\ÝpÊGÔBIܼ®KÄlÑïàžáUÄ(Ã{¦¸ª£2ÅwÜmìt5e;aÓïµlWr‡˜lÝü%Ð+NuȘuÝÑôN®‹â!bc—Œ‚8”0‡gÐã|6fZ²Ã½©•ÚQ´S6"tâ=fÝÝŒûL#¡È íù¼¸± ežZìÐŽÿÕo¿£i²¯§Ì´ÍAì1Sm‡ãIĉ£ÒE@]WIžTì kõgëÀ ŒzÄ)##æ'Ÿ‡m¢y¡ËRô`ÆQ-ö'ŠPP̉hýdƒ! z“Q™øÛ®D¬?ÈÃŽ3ÊæÎ²àTeWá‰U¢ÓÁ©,âsiÇæP¼ øf¦âR}èn/ÚŠ¸Ýè§¼¢`3Mö<ß1†s³xŽŸBËÖï^ØoŸîúB׸€™°švâ¶ÉÜ„;Px÷dœ$/¹ N#1FÎAJ$¤M©)¦í} ªï‚hˆñœÓʬ) ‘æÖX‚Œ½/Ó{Êå±)´1ðs¤‰§<ìôp b‡º¡> ÆÎÔgÉh¯sI’yèúœ‹UX}BëcçdÞ5âé›L΋±hÒ¹ž*Õ¸‘”KÞÈ@‘íJçe˜?ééƒPÒd8Ùq „Pî”pa†`Rg 1éÏee2K˜1=Ž7ɧ¡æaЃ3£õ⌮!ôµ{ÙsŒ(¿þ9YØ ²ÊJG{£I†ïqÃ!gt, cË5¤x­a½ ‘¥°œ"¾œdýn”ÿ„Cõè0i‰éÞ°¯fÝi»уÙTÑîw;÷†o¾|þþv~Kü5¥ª¬WÖ¿ç}CW€¤’iužÛ†å‚o‚Ìßç© d¾e»yŽŸ*Ó2,Eä¨XÉ¢•¬;´+Íôø¾Í uçf Ã#¤>ùÔÒ&€—iôy¹àÂ4Ê‹rþY÷ÏÖ[¦‡íA '°ôm~…”}\²7'œz)p$¹XÎû§&uħÛ0l”s)™1P*dÍ㶋˶\VDy¥ÃêÝGQÊnÙ l¼·¶Ù"m GNóöþ{B%É™^ [­›3ÚûUœ“)ÌLJåWŸ§D¿Ët2VH&f“›¼á‹HhäÓ×Ü «‹‡,M4iÌYÍ„r 'nR𣔺mIýÑÑ—†66]Vž]‰i‰ÇA¥ø9ü+kÐ9(¬ËYÐAó³p[ù¢ÁÖ)bæ‚ßÅ9Üå˜ E]‡'è#ƒÂmubðËM„o7-™v´.¨Xjäó­~qÛß9ùÉÙe%én^hìbw²?ádŠ.&Iä{2êöp¾¥ii´Öu…ªDV"(˜»­ÎùöÛAÕWæ#Î\êU<6QdK@°®¹4´ %‘gþ>(©ÓHúWä2;ê1??cÁYÞ À{ëPûwj ‰gi<˜’ëMç&Š"h;Mƒ<‡«wú‡Õ;ý¦ r ç)̧¶óÉ[üÃö[üæSeRœ YQƒ!9›¨m.i?µpcÿ—}v`¥fÕ¦0—­÷ì³—âºÚŒOЯá¥óÍ+ÄcRÅY¹e4ƒ¤{K ú‰¨DÛ §äÉóãmñ)×›æ1ÐhV²Û¯Î2²ò€^~šöÐkV´üemm?:Èä$V ‰]¸@]N`øCµˆjI”Í“Šým°ÑÚ3´ÈdÐ.ÅQÊ`îŸÝ$é¶Ü9 Xø‚a°¿‚ɹ`8ŽBó;(Û7U—\ë:cf…Í1·ª‰å©%GŦ3阳;ÚŒ2YÿúZYG'[i‹sùwË)1³ò|n®l”ܰù'HΓ1ϸ˜@‚mŠkuÛ¼'•I/fä‰\=í‹zõýu}Y,ZWØ”.u*ÐþË]a܃Ù‡Çvįç³IV6¥îšS< ä¯ëmo 9É-5}Îw׃\q%tô¶7ÐFí/Á¼;cE†‹âÜ.·Œ%F³Ùè¡ ÎØ‚.×ï(æžð.Ui4bt¹ ¦¶õ& PG‡p|Ó&Áé4ßSsâz›ËÓÛHg‰Ý¼pt–s‚Œs9† ˜BÛ¤PFß•ƒŸjj˜¤Ä ù{¯¨ª‘RaF”Wí¢ b ›¢ )¸Ñæ×#mÅ·¹¡¾æ^ÛO3Šm†^˜}°B2!i§Îç ñ vØç3«²eqݨî‘ÛI\tRpV‘'áFmj?iöò&¹½B–NxÙ§z\lê—ÖKîÈOô©™+ÅÆY8+Îì6)8ÔU®0ß®ñÝ9Ù/0²­’rº=Øn„Ük?©˜`4Š´`ö)A')á¤éP­Žm-°‘VÞ*Z"zð—9)~ÈmdÑ›6‚%Yñv2ºÒ¹-“9èJ ±&gAv>1bC G#Y¤"ÚÂÂÁ@ÜÚ-‘åé¶Û³Ån²rUè¹_eQ†sËšHu@ÂãZE×Ûs@ŸøxŽÇÀ  b S¹;È=‰B¤<(<…Ê‚ÜÄ3Óy†³šøê§5“IÏ5‰µå©Ñª‚”:œ¡jƒT+êéCI—Y©S½ˆn…Ý¡`„Úø£„?ZW†h(ÔÒìQ˜ýcâ+/ݶҫ¸§î½Œë¬š)ä\âÍ*PC– 7BNAÈ é@c©HÄ‚·šûâÒðŒ¡H¦Vê•RS.µ–nì½ÇùQ¸ü¸Ž‡•Í)š ¯/y!fT+šNK_Z‰Ñ9Æ¥­\qZ’¾Ë%ïÅzš :XP÷2=­MÉYºÏÆ “XK‰eÁ<{ñ›ü𯌽šÓ>¡²¹åÎàûa~¿m @ÅÉ °4¤0fƒ±U¦á©+f¢:=+Õ-#najÐ…ô²n¤ôù1½„R1gk§¹s .j’ ®¶ËUué /Ê ¤‘Ê6­Ã–iàºïHÚÎÀ>¶jðúïÒ'nL!sßXqç& eW7ÖMrÕƒ± ÒG¿o©é޾WÑaàôÊ<óìŽ5>-®ÊCßh‹p‡Å€äeÓÉX³6¿§)=¥2FA‚)ºê[ë³Xo¿‚1æa†¶~Öu¼­Ázlã %Ï”ÍãØSò ÚKWXx¦àJcÈ’ÖÚñ]Ö>í]6©Þ‡& ºC̃]AR >R°A(&ì¸M —«á‡EXœoËç¹ÔÚ« E'Ó‰zwͨgÎŒkvû€†‰@¦\¯­Éla'V¾cºØ¤ùÈ€á<ý¦P4¤/ÈÌÌ@Þd*‘á{\ü óD›þ]Æ\{i Èœ¸‹‘â,ý¤>+âPØÝµ£Üv·±1—ó=â‡Ñò»Á’B:÷iú;WæËé4¹à€E»çž©£LtqˆZ0ØS wû§¼#:·Ð\.iWµë‘·Öºˆ1v0ãŒ.‹YØ,Á·Ï{¸Ô³Q»¬¸¯pOË­®“{;Sâ>ì˜eZœÁãuubæ­]äCÓ,_§ç,êGrH½ôå‚f†ZO‰™0“ávZ)[ɰE+ÎÏA§IaµIÍ!¹À¸tñ†B|¨w*eé¨<&Wž•DkSãvœ–ÕÅåY=7–±¹p ²ë’ïÕˆƒ&E¦œ¿¯Ìz%)ëEÅ„ò¨HÉãWT> ˆ­Ü4÷µlsR^Òß%ÛÆëécP,ܵ.õàeBøÑöå£ìY1‰Žôæ•\4ò#ãms@Xœsæß‡3žk˜a»cÉ·Ì Hà×'§O_ýé¥Èc±&Þ¶ öõ뺠.Цçst]SîFØ9.ŒJê6ÔÎ.ÎÑ0}Êù­½¥’ ¥QÖÇ$ Íd*hùÎe¡ƒŒºdãugÕÇD“;âÒJJEs˜}VC(æ3Ò(™/#d“Zg®ZÃûñõú±É)Ç"ÛåúzÄÊcÏ ²`oUDèäe¡†A É$HI^YafÍòø[ ñj]_Ùd¥I÷°ØRö¯ygzh†C Ÿg¨5ßx‰ MU9¯*¢QÛžÏë9‰b6Vùdý8PªY[€«ÎÕ³{yŸTçf±[þLÛ®‰e»ôõÉÑ -  i`ëÄÃÆ9mÞ¥=&™t‰–@ÌczX`}dz’Š•®äa‘ž­Âcýx_ïÖyK©â¬¢_Au™´©ÚEX•Ï·M’¼Ÿñ÷H®¨ QZʧ®XƒáKsRܰan]#c­pjÔ‚ÞYâhhÔÀ:,”M[‰ÛÕ\aÜD¥‹gô#wˆy*ã´öKÅïNNøñå÷oþ|»\x)!fÞ32/b:#¼è»gÏž¿üþ–£8/E—õ{ß„î|ZšëR´B’ogËæÆ&”Õ|®J™šq\€­5G¯_ß2~fÔ?50MOƒöÉ€ŸÿxòÃú#­h “MDѨ‚Ù#ÅP;v¥X`•õº¼;/ñÇ#§d&TÓN¹–šD69`÷°°8ué´¾ŒÈ„tWš÷åñUîDp•àŠê„)CID°´AÄZO•=•VÎÁ“KD#q;Ëš®´É&zÙVVuU~,¸FI«±·¾½%”ú2ÿ+è0†„Ez5b©Ÿd\ÞÌú û%kbDZjm.îH‹ÝÛDØ-ÎY­Ýæ ‰W3UK Ãi_D©ŒLÞeÒ™…Äq•Þ‹l+jÆÁeRÅU{´iM™ÄøôÑö¶U‚wåt’ hm·B-++é×éœi«Ò°í"+K2nH\w-n‹ ¬¦³ŽgµO“6añDI½”oh1㙦º.Ü8^SùyÞ›pÉD’üt+Díy, ²Ñ°µ+å|›JôN—ÛoŠøU4RÔÿÜ{ÖlZÌÈëRðZ^q™Å¤Vò©ÔŽèiÕv^¬êNG-!E§C•ú*£5ï~4]-òÛj¾ÌÄçëÈ»()•ßšEÏI,ø¼‚?qRFV¶œJ—íwí÷ T=Ï58¥I!Ëv˜FJ¶ƒpHâÒ±%vA S²7d^@¡ Âù7œ—“É)½Y:ëÅW«Ÿ Ü œÎ+«ã±J𺚹÷’é"kàPFy`b—…™—Ê:¶]E8ê¾lÝ=wƒ„·j4Þ½Öâ ¶ˆƒÜ4¿„4¤\ŸÏ YÈIvŸ;‡ZE¡v‹ÔQžKŸ ›ò ÷Jm«âÈ^%[©=ÒàâÐWóÖ¨>ÖN–MЦ¹M§ü9ì}«zÙ¡0ëøW‘•ÀA5Õ¥V(špý›¢ŽÛd D•DRûzRïl:¤¹“?¿8}ýæÕÛW´‚ô·Ï^¼~~ôöÙŠ¡mè ÿå 9÷¹"R¢=e`þí³GÖrA‹±>4] ¡ÓÉoúvLŒæÇÒoI_¤|°vgv î´µlS²`æßÄX^Îz"€:ãÕ¢¼jÄ”JË÷í©úQr9‚zM=è™:î.c¥è£ (â­‹¨9¿£Z@ZÃ8å3•Û8I—¤4 qÎâ-ƒýÌ0ŽÑ^Éü¦€Q¬Ù¶Z¸s `°’@rdž|”Ú"UˆE·‡”÷I.Æ9;WˆÆG[ ¥»¡‘ƒ]|›Cftg7¶Ð›˜¯ã²Y¡í¶ŸLªÖ™Ò/'sVv¬¡¼Þ¶Ýd*~D]ZÑÞf2£ePõ‹‡5‡ˆî©AÞ·|" "¸Š:f]ÐZJjí(ÉÁÓsnSlG€f.~%Y‹˜ƒ4!M«àLùãBñ›´°Œ¸莩íWE¯fM{s2ryÐÁy‹íµÞ}.Ƈ€{åºß4¶¬%â…©¡¡È/aŒ5òFT?wJâî ‹j‰7e]©[ü“óÓ¢ÜÝm!/á…K,ôeî'Ëê{´W‹Ìˆ¢D­Pkh€NMÁEŠq1[8S(„ê‰Û8ôµ@“a"ÁƒÙ]ä†iàPq½üPŽ˜¬€¼14lˆ{÷ð×1²ãgô¬d77igA×5Õ>y‘5Øô‘ò?¤¤Ø‡k“bÃ#¯½w½YÅÆïÞ8U¤$Å(h‰µ ©sU‘F3ç››"’É•E¸h{ùĦ¯J“ïàÛddH* MøÑÑpämû…+_y„3×jðû5ÚH"̰l£×|_Íë)ÉNDåŽ}®ÊûÎ<Þ±Ç{TÓÈ …CÀŸ ð)Neìïo§bNíŠ@Æ ëg—Ö9ÙA¡& ÌZþ¾_Ô ë†¾>«‹~eXÄß¼k/æÙÍ=îÂ-.ÕaŽþ˜cºægé>~qp?‚tÃYí rxÝœÜÐ$^Ú5¢JÉÄÎÜ”÷ú«Û°ÒX÷nW(í§-‚‘›€Nù3°Îü·PÂ]U’],Ò…O%* QL*W°ã0ÿáöº2qDÍÞ¢Dct‚n‹GÛdEÕ0¶þRn…ˆófË ñ)ŽÁ>þ¸ÂŸÜ—¨ùSÑýKç–­WÙ}Ò0FÈö$VMêUæ+¯ÌÁ0µ¢P˜Êúž¢`˜µzaôA'û ³P¸¸_DKáÝÐ=Qž£.vQ­ÌÖbé¦H‚ò®,)ëæ&³BPæOéý ªd¼±ºAÈà¥ØS P“Û¶¹aš®MªXÂ9žÚNŸiÃß3Ç–ˆ„V–Ç”$çÚz÷ùÖ·œ)ð6Ž*ÈAD{ˆB t«Å| oPû%}Åà¶œ.²w+D·º«¢²dÿ—×”9có©tò‡n«M×¹âý¬€àM®No¯¹;µ z,š„f~ó-Oó5ôPl|6 œ“9Ø{“&‘]> ›/Xð?su¤•ÿËSÏ>iuÂ’ÅáëY†LŸ¤³›çÓ§ß ™Ñ$Ëí$rgú¥‘ÿðÙ—~l¸É­zVŽŠ«2»\N/æ7÷$WwΈÆrV  5iW3DIÍ_wž¸zx߉Ú|±ˆš]r«™g7^šŸ-Ó‚4¡ÁDÄÁÙ÷ÙSzûÔ©p†¢˜ª—¸3QOo+y/ þ-À…Ûã Ôò¹Óül^•礜íMˆÕÜpçá³éxBŠ”ä€&ÔŽ1ÞÞV"uº¾ýŸ'‹¯Gç÷ˆ>>î’{ÆÂ¾Úv;`žRôt’°z'ô³4›Ò‘l¾ü}ÐÿV(~æîˆÜƺAVp:Ûð¤Õ.ŸmZ9òv¨ ”xŒ;£Òx£Ý¶¿®¨RÒ¨‰àë²ÍÇUEØÅJ‘²ÛÛ¾iU(6Ø9€>nW¤¦MãØ·ß8}=ŠŠ{%þÏØB+zÚAÆJ‹a´Ëi¤~ÚÛÛì²ê©.°ÚbŽoÛ-~^ZÄ¡ÌS˜ŸE“ t1/}8`=Þ¾ºùQÃ\|túãË?¾gÂ1±²Ñ,fZ´/N#‘êq1àI¹ˆíñÜrðÞå’bia}Ô³ü:ïéEÐ#âvךÛCMaÐJS&Ç'µ¦"Ò>¦Z#¾”¯å%ò†ï”Þ})]Ké“Ê(øÙvUÄš]%'ObÑó€X—‘-jLîW¸ëWŽÅ܈iŸ¸ºiëÅ}cu‘ÊØFXT¨¦Bà[gΜLä׈%â[“fÄZˆ¹r¤ãUãøßÎ8—åêLózˆRŒ•„3ú=mƒãïNŸüpôòûg§>|à9"mžÈ¹RèÄv›®ø\»n¯úm{®ç”åüŸgï¥=ZµóúïŸtßIKŸ¦(ôúZ³(uñ²¬‘œBð!ñº‘ÚÝ ”¾ øÊÝ™}Âî̱Ý9_l»9Ãiô¹1­/Ñ-}zGò…OêØ@ÛíßÊiîûgƒo´wqßÐMV)•hÐ}sâœô¬pªm©-ôþ¶›&²ö·Ÿ¤hMSª"d»ô‰Í|eîwU¿F•‚LWœ´ÌAåYc)‚(S)ùý…w0m¨qÊó§.KTu]­¸‚Ú zÜ$m¹7â"¹‰}ßúyæÏŒSUÈHÍN!6F$'tjÖd‘€Íõp?4{B°¸¿·²Z–gê¦'¤l‚£ÓW¯ß¿8z>´_1Í’‡ÂOëUÉœ$ôƒ?D  ’Èó™¾rì‡çž¥íš´½U¿^þ9ö9y‰ñÊÚ¶Aoég掕R˜€)8št¿G=„™Ã¸ÛÊé¼8¥aÄ<åW}WqÏîàœGÝ¢hórTVï·òCfµ-•{Õ‹žðÉ‚Õ~)wÐv¢uÍ{˜”g¸lÀBÅu­¥Öz…!üË[ d%GØi WM9DÕл›Ø³g¶®ßE‰ §‹ K^ë›TSpƒÇ‹«®'ÉÂJ1Ÿ¼¼ úEK@‘õ&i^DŽÿ ¢z¼F·õÔ ²S"FÂ3‹ÚÕ5KTcŸŸb@8 l¼*"ôL3©:žqž&-…xʼn³ÉT¶înØ,K&·ïzðLâ±*r¥éÇÈÞsÞj|I–Ø0ïì­ÓÉtVY·”žtÑO´[v0Ù?ÝöŸ&ü¼q$^AXUϬÚ*𠉻ùÎß@K´åëëuèŸ-ßçÚó·ê[«zv¦þ +zê6‡s©Ǭž÷Y qBïÙCª"¸gƒTš…^¹©? 'ñÓÑŒqk›ÈnÔ8UVºÞÐ0‚?×K†EÀ¦FxÑ%Þ.³¤œïWçèÛ•l¥)÷B²{é:+‹[e±ó½V´.„ɧÂ.Û‹·YAØë6kw'l'Ɖ7‚Ï>ÈTƒZÑ0¶wªÞtü3Z=.“ ,äE-Ëz¦¯†"Ÿ–ÞÓâZñ.¡Ö¹ùO¾u¤];ê²Lœ a:¨PtÉ&êWN$3Œëq‡]:ã0Bù~J¼ðºg‹Ò±zåâIf‚̬åhn´hsp]•Ùcˆ˜ã¯B1çg3||QÌÇÄGÊ5¹¸÷"­„ÝE'¥˜y¥QÀÅCv·1Ç•=È’÷Øýç˜8Œ}Érô|ÙsNèÉÔwû G¹¤Ï“Mµ÷ôµà"o-±ÑÊf½Ûh¨§d¡õ¬e(”ÑÁç‚g˜¸öð ÷“‹@æûçÌ"z îH»Öqz-@Û–]»h%LJÔîõèXC+;}ß{ÿΊïOÏJ-G…hc”̨üxÕl©\9ìvœlý|Õ„¬÷󬙩MÝ=k&sS¯ÏmóíÚ¡úËw® *nªçöøîÍÿ">ÏIgus²˜Úé™óÅ`rwsV fÅ…ÖD+’…ð“Þ*ã“l¥¬w+‘Y ç¬\„ã¦ôW¬ÍÄIÉšrRJ¾§ë'½‹*ÇÈaÂU8u{.y1]kƒÌ%ñœÊ³^¬ÀH@ÞæC©WôZØ2Hà‹Ë ,UŸö‹«Ò¡ª¥˜Kª17öÙæ í–b‡ûѯ¹ßæúuZûN½ «‡(Bà“´ôôÈ%nŸ ¼ª<÷B²Ü€]nÿwOaAlüõèážÒó§y‚ïKw§±V |7*Ô09d‡ý€KØ™g‰·³4M œ,É¿Êj%¥d4|?Ì_›ºlPDPër$±`Þd·^–î¡–mž g˜,Ez±K˜ir…|úþ¤ ]aWôoÎò°woþÌ Éoóvcÿc‡ÝÇ6ó³óP½ÆÉ%2•ÐÆÔ”&vG= üÖaÑäÏÄçéËß…é ºjÝúüI,#œýÞª,±r•¡éŒÇ™¡â9Xu"ÿS"ª•D*œ+¥rµ«›PÆ_ù´|ñ\lµåÒ0!¿ˆ)Â9a}°hŦÛ0ÖU ƒÅ€îëMYeêx9~VèÞ/ð꺅ä̽·µ´‡ÙÂk.ÂÆµø¸úmJ¤îdÄÝŠ…†uê« ?ÓB¢ñbcîŒÿJËÈó6î5`?yå:9Ë(gùÑÚœåðȱU3íÉW~› ¤¸ %è4ÄÛÁÉ×$¼:À FfÍM°à¯4ߨš»P¿%D;,L·`*œµÓ`^cZºÖå›Ï+ªÍ!/Ŭ8«&Õâ†ÑŠ xñãó·ÇGOž<;9a©ËûæÕÑÓ'G'oѼÞ{ñöÇëPaЂtþ§å5…Ë_…ºÝHPW8X DGÜÒì€ó5QÃ<­Ò«¯„S¿†·,F‘ÿkSŸ/ö–³»’×cé ÉìaÎ HèVú«î¦Ðm…ø—³AÚQùúÓ¿6Å´¼‹²¬LV¶ L = ãøµ!fü¨«X'v,P_ÖÕ,’‰zà-[ÙÄ+±3]Lzl¨@çÌ¥œZ4Šš@Üâxï'd µ{+æm5ò.¹íglÎ-ÎÅqÂK>a¢¸î¬+=Ú‚^9(‘².ôí—™È5 x:sÜE|6}ÛpßuŠ«¢Q*É85âdë/04ðEÞ²KÚf(_[nŠÞVImJß껤ȜÔ×{“pOzX g>/—f…wÃWM1›•9pêfòSJ‹™“í5†=Ê3¹œgeäy7™oä–åÃЖƒäúýIÉ0ý/q¾¸nûk—§;+ŸeØ¥£÷â¼d˜¬P˜øBí2U¨…KLs—ózJµ¿q¹PA˜ìغsOìzÐê»ÔĤÐ0éŠÉÐY3*¦MKDÐuÏa!™W'c5lOž˜ t!úÏÉ%·¸ÅÍü³J`aê„Í*²_Ê„#e;(J^Éï ngfÐ%éÃÅPã„Ln2GMX9^3?› !ï]d¿²=m!W=ÅÜ‹R‡0åY5j:lI[ÊH"…;=+Î6B|Ú©,ƦͩÀN‹Â|†h$A Ê[cã®æžÏ¿œ/@ö›TY*©œs¹WBÇ&í–æºâ8`ã®*£kƒþdaˆ‚Ig7§P¶mîÛÀèjü!™wTBr*k°*ÏѦS½âz=ic[ÜMô“fÓ$i µ1ã#±WÃüM¼„óú´ý”°’S¢!š){†ùŸöZM½1œ6l“¯Ö¬=²é2õ7ÞQ"¸Éÿ˜Å‚¹è:÷¶X~©ŠÕJÆ*‹ª£`üÂ6Uª]l‘«^ŽÇ–<(Ñ"p[š³QO•‘*ˆ0äf©%,S"qx—ž@ÙtŸ¢vŒÞUŠùªEê(åŸÛðÝj¸wýk$Þ¯ÿz«têh®zŒBGfÕv×lin@׬¯esZØåv§½ès~IÎÂ/×: Ã#/ÀpÃðEÝĤ“ˆÐÔH„Yïâ T6MqZ¡ÿHPè°ÁùçA?A°Ã6ÅÔv‹ÝBñëùe=Ë">Ö¥!ÃÃÈž»ø{|o€Õf¾ £É˜v¸jû)«…{pÔâåÅ¥«½F0=*†)#'"ÖbÜ?b¬ÉÙËðK1á# VsÐ"åÅuQ`Ç~sVŽê«Ò£ª‘9ÕBt£\Z9ÓÉûRë/0óÙ¤¼Š`¢Öo‰~›ã°\B#‚ ìATd1‘7ãúræÊlÚ.ÁÎ *9½õrn“ŸÅ9µ·ÔüùBJN°î;)%‡‹tTÏ4¾•™´iäÉ“W¯ŸþðŠ=½»áÓ ÞHð#QÕ\{#öaâÁ/²Và˜™®ˆ¸ÔiˆC7Ï ·'†&(¯•˜ª 4ÔeÆïu_ççäJS”¸|ŽÅYÑ‹‹!º©T¿ Á‹‘ÝëÑÍcL¾µÓÛéŸ4Ƹ‡w -Ëþ·e5"‡µ‘ '¶³S@Kå§E:lÙ´Ó°z]ŽÂ|•f“jTÑÙŠtááü¼¯ ÅÆ¾|öÝéÉÛã'ü3Ä,9îAo²dÎíHyÑ9G:b‚Òœ‡Kcæ'¤Iii)ÊièÉRн‚©ìõ´S‰ì W]ŽíšÔZ²ål˜XYzPÀ\FË9ÁmeFt(rN W¢Lõêc/uã|Spª7$KÒÊ¢™êíã ¼ôiêJ̬!ýycPp5£"á½Ä +`SûÄT¬¶êäÑÍð3ØÖ¼#PCF‘(ú.áZè6uþþ3,»)‹9ñ‹Ó;†«ÌÒvBð¾ZÉ ¢0¾/Íls%©9ÚûõåП¾L!¯Ê± Ò“/à88",Ì@Åw^/©øvÇðI׌¯e²‘À®N¶Wgáo¥H‘’r5ĦïÆ&ô,§Ó•!§'ú$âú°—jȘ°Ái.8tXôzè’ÔÔ!)&Mcû{9¯‡ÙñyÒQ‚³Å>Z·qˆd«èc!m)è;­Fá.Èâœò䬉?L³Lœí¸}V\1êÉMëÆ<"Ôùߊ·8€¯Ñ'DŽš„íÐÅÙÔh&¿\È7õæKù2òIô.¦W¼P¢,ÆìÒ»\f†Ã-ªëµ’Ùuí& XÑ™'Ù%£å^VÈ@Ÿ+çgÚË9›׳ž€Ut&õÝ¥®ÀÄż¿šS‚âðƒ5÷äÕÓgß<ùî44ûû{øG~UŒæµ«9Î]_ \Ec¥f’ÞŤìãIÑ#øê‹ÉÍßák£Fýµ‰W_§‡¨΢‘ˈhþ§º´¯è„PÕ°¹N IJ ZÔïJãM…Pò‹!zÔE:ùœÐUˆ7‰³Ÿ»Iå—ß1¿ —j«„‚mé…IËH‰‘¼ÆVlÑ+ŸÏ«Bå#‘‚0ojå9Ëtc5QÔYÝvÒQw©ªÈ­uÙiŠbãZ&ã•»wÇ-ü·ßÐ9°²]Pâ° &± J°ç!8*q+¸‹×ˆ‘ü42pNqCËï‹yÅ„ìu¥ecúªRyËYN?“sF„…k=ù» ’å©%Rõ™—¸šÚê¾uBÕåèБ¤ n¯žÅÿVÆèÐDe %£¨>‰¹ªšÇùQ“j¸øpž–È$%#d𱽂?çxš¼kV7é›òþ7Ñ–¥;+Ó7¡“ú"ÒS8 &Uqv9fkݤ—Éx‡×ôîÙb®—›J;¾U'…|¤8¶ÚíÁþf¨È­µ"bkÁu‰¸3ò—µ—\ wñ®6ÊÓ ‚_\h®µ–*š#щ·…Æåú¬RÑÍ“:HWK ®Ѿ¯9ÏV»hC5IÚk~ƒNZ†:o Äøú;¾(§º@AäI J:ʶË”m‡ia2’Ð.CܘÆ”6 G÷¶Îq‰;2"ç&U«PU›²œö}žbᮚ ûf8êÇø«³ßPú™%‹¨Èrïn ÃëôT ·vs.r‚ÀX×cEΫ¨áÖ// XÊÌMÐRâš~D Ì‚±PPHÏû`(½S>oÇ»oá¶îÄIK&” ˜­ŒN.¸Ý¶Ü2pl"½av<1*…º‹†o7Œ"ôñ¬ñƒËmÇòžà¤3QüÕˆ~°ìóño“ñkš^&:œ–É>[67æ’¢îOà"äü¼¦Ì{ÄoÂzÉ7%¦!’ ‰l •dæÓ!Sb‚G%p ªü-“ BÉ Fß” 3àõIÏuËáô{lú`©”È­QE+Ãàaš‡¥„Ïe|aëI¨Êà¦[m™°1º,ÕS>#¶Ì¼}ÕZ2‹ésüŽ\#¿[ë ¼:]Y•Š‚4¢˜‰'-lx!®Jò4WÍG¨iò¸¨÷ô|Rѹ9+×e9Íè4“¥!jR"™ëHUïÍÑ”Ž2âò¦ŠnvÑNxIFnAzu仡܎]øI®•À(l_ó†|.t®Ü&T••Q:ÀCX3%¥"W*œê NÍQ¸öq†Ü°ðË÷Œ™!oá5½õ’ç ä²5Ášá’0™‹å”k1»F›»˜4uFl0dœ\TDJ‹¬o㢼âä ŽcWÔë´SLè@^\f @jð"©ªÇ3]¬à¿íò)púit€BQWÅÕ µ¤& †í+¢°Z)®T÷PSO–zœë±ó¦7±xÄ{Á¯q¦…®8ëdZO÷šp•¸%t“@÷0«BKc`KÁøj¡TÅ™ÊÛadôOXu7Ô“ w¬$hÕ˱d&X÷ÇÆnËê2§Æ#§ôHjRèA Ÿ‘*E…$ eç5—À0~™ ”ß´œVAåJ˜uò—¹ì… ˆr³ é¼úöÿ~þêÉO|úà­þ…©•Õ=Šƒ1‚I½o_=ý3¾·/žþ§ÿþóÉÜR}¶wì‡?< ÿìß?Ä¿øßáÏá—üÓÁaøîàá—|ùOûáýS¾ÿÙzäþ,é äù?—å¤Xû\0ýº~ÿ?ž¾zòöϯŸåt–ò×?~ûüøI~gïÞ½?ÝrïÞÓ·Où‹ûÃÃü;¢±¹wïÙË;$~pô~ÿó£§ßdùï_<{«&Ü÷Ï^>{sôöÕ›;ù“W/ß>{ùöwžWÓ凧õhïmMöÓÁpŸL¸ð»·ÇoŸ?ûéuØŠ@)çAƒ Ïâ"„Åò˜ÈТóû{ü«ðóçÇ/ÿè¥Ê–*ù›gÏÿ@aǾgÝ3ìyÎÄÏ}~TA”;õïE õô`•Ø;Ü\ìÝo‹=ÈØÄXÜ®1”¹ ?sGߨ™œZÝ÷‡ÔÖÁºÆè‘¤9qàÏ{Ìïô¹pg`‰«FB™ùMIѸyAô Ð_sNKš3YÝâ2\¶™fç/ ° xLCbÓ>–j(BM–I„Bd(UÏ)¨œ´ò©0S;4DFïO€ü¢ÙdkBpf:ŽúæJ}Yà[’ ¬HÎIü3µ±2b†¼š…‹_£° Ù6¥Eж’ü&ó¡V¼úZsÑVrpÝhfM_t/»!ƽ€ÐÅbØtΩYJ¥™ ¾!ê' ´“!ÿ°4Àš€¿ßI»Â1#tã[*¾˜Îâ5ï¨dq}h O/oòkzäîDFÞ ç…àvéÇçK¯ûý×™‚#HÉu¨y‹¤Àåâ+ͨk#¼˜°‡åP§©Ãé)ø@ºæÖE@V@Â…58ÚÉÄäWìñàðÆ÷“€5{¬`ÉÖ¢ÖÒÁ·]˜]µŸøQŽ|E:”>ES+¶ L2özÆFÐÉhƒáŸy‘¥½ F^)´iäÄÿ_²'¬± Ï­Ö¼ó[\O9z°Mb.Éu¦w“;Né"E6«…fúZŒÂ¡d¦‘ ¦ÓÌ‘9@RA¡ÊIS3ª©šÍÊñp_qÊzÆ„wƒ÷‘³'.3éÜ ž+KhH™R‹é»ð=óÓΘ7ô þ?[Ï(®Ou…ŸÄh=mì‹)%ãŸsD«©÷³µ¯D–ÄÜ$~×™y–½ípEÄb7Ý=¾©…Ýÿ ?ÑD'—ÇVVµºDÖžš`zrµÖÄÍ êÙ‘)Â_Šø¨ûF¼ƒW¸íè°'¯óùr§c8‹›°KlA ìuÛ âWÔâ~jËGÿÓiÝd©ZíÞÆBÕ#Ÿ(dE¡4Š69IQpÖ¤-j¼¼2¹¼ÎOé§§ô˜1¡a^švÑß´§!‚YùÁÞ µÊgzÅÈÞ,äŸô¶&ã#MpÁ&Xö|fôjZþ°š][)(ê…Bp­…bz“B†‡† Ÿò‚¤ÈLoÎêq*YÏOñ ™wMøüT‚°,åc$›ä÷ òm›íIqÄOß›N–ý‚;3-å©xŸÝ¾Mu@‘,M/Ów÷±z8ºÈ¨ÖoÏdÈ\¤o" ãNÓÜ*dÉý#Eh»5êô+‰ úÎogÈJ<[+UyVj :bÁ¬}÷ß^ø«+ƒYoÙhRÛ0rȧQ´õ§»çzî@?´Wzl´ e[qóìÉ«—ßzòê»·ð³~8zóô¶RÁléÃ"!êjj-…Ú¯3ó§3xÒ¬4’$îVï‡å¡SIÂ-¯ê#£&ŠÎ˜+ã/@°“‚'ªAy‡]KtÊZШ¦Í›ð%hÈ›³K‹×5â­H⼚³ê™ŒÆº8UÜ&““å½ÿò&R³c<>­ÏÂdŽ&Îp`NDŽn.´â ÇWÉÂäÚƒR,‰}ùé´K8‰^…{Kß PdGeŒcŒ}—“V_8îDèÎbÀ2]o6_N›® ¨µ¾:œ ÚͧO_½|¦¹ú]à±]šÆùîc*™6òúÍ«ïߥ5×Mb¼+8ÿmöR›©Z@\à÷ÿÏÏ~|öT)Ç`ã­bÅŽ—%sqŒ»½kÙNu{7ì¸ëŒ ÐüÉ?¾}úêO/µ{ê2"Häårp>Êt*Q² µ#ƒ$ÇzQ[…f¨8Ì©¾eux†+MrEÞ6ƒX ™6&ñŽIfû{&„%`‡OóNIÑáÁ”r£»É[e‹ËXô²\|Bå,¶e(ZÞ ¸•Ç@0ÅÞ/Âëèª `Kãg°ÎÕ!û”.©{‹¦±% r ÓáaIËÐÒäNÈSÑ·cÅîÍ—;N,/øÅi˜»±KÖOg~ÔRf7â¿°ÔøV`|~ÚÚz-À7<»­\qÒý´H«Ùû³ç#r8é0›Ñý(9ÕÆÓU Pü‚½ZÆÌ%¯šTáF)&ÊÛÓ·XÌVZ´8›ù{\¾t¼½Þã ?$ýáZ}xäyË1½ ×ö_[ÒH×Çd*Þ³Cpí‹r¼HñþHo9Ÿ+gº,0çmö¨^ ®>Ï¢Š bÚQ^q•‹ÆçuØÏ³ææêŒÜõÔÉwåÍuÑ®^ÛW,µôðm‡½ÓÞfPÝSxv€Z>0‰ ô%£ ‘,Ó±:ùó ºmß¾rx%õÅT]ÜÌôèË_|ûìÖ€ÎÀµ ƉÃxIL øü0c=6ìÌ)Ó‰ÅaSrá’33|g§ŒÈœΪˆÌ¥ÔÖÂùà×I?ÿåÕñSf‘m$ó­ëD×oÜ&ûÄ©¼î`ýö– ?:µµ»z »‡ÅÀ6~D€yL;« ÝëIl™š£¯¹¥-g{ViÇímË5Û(ÓSã6¡VÞfˆ$v–T7oæß! 9N’ŠîʲoƈGWÒégÓE¦)‘MMàHŪêÎä·®3½À­ ºc³ò… °q9²>fç ×F5M0a>þB*ju1 ¹«ƒZ´!ÓmÏ—aHe{‹ô‚Lˆµ%XèÈlÙ\žbÿl(Imñ>Ê'Ž~þ9„¡©€ÈÀ)Þà>惢Z;w³ˆ¦ a¦LqÁvé±Ýo®õq5…ž‘³F¸/7­€ ‰®C‹“R#’äqZ ì‘÷y¡ú’]>#êûó&»¸ÞÿÂ-Ç?ëó?îï?Ü?ìä<¸ÿßù¿ÆŸÿ"ùßád7k2?nùqËÌ[e~<\/îo.Üžùy°.ó#|os¶*çã%tëI™>$V“ª™ši´uU7H€Ÿ„4À¡51V É…¢¼dò1¦!L]SÇßP™¦fÑÊnG: eƒ2dk^f žo-ìŸû‚Ó ÿg8’¾síx_<ê¶þp6Ct¡ÏÊyv§!“;¢§¿·)K ¾ý&¨` 6Y–VÇ$S…q)5–pC ©²½+FóÁWÕɯk¶xªQfñv¤#ñ•‡œ‘ŸÔW¥oÎB|>Øi¨è³%dɃ•Ö:êo[’0Û²q…ŽÓÛ Dˆ Sq%?…òl¤§4]§l‡Õ¦òä8]£ÄÇ]í¼=…_:ìî ÊÙˆ?sãk~òͳ·?¾aü‹(Gõ|/V¯æ• ¶•1•Õ$®•BÓ¨ÕŠ4óšÊêã`Z<Ùz’V’Ò>B B¤"ÌÈ0%¶ÃüÜj3Å[]7ÀEÔ³Jó‹ŒW…ÁtÛ‡CT ¸=D sÑusÐÓ”<WyÈQ¾‡„ƒ„²$¯ß7DÒL`~ê‡Õ±ÏxsHÏ’™½»QÑá*ÃÈO¶îæ÷ÇmDÏ´}Ôéׇmhå émḰ^¹¥¦çÝâ‚aÚ14ºö7‡ÞmÃq?ùÑZçÍîy㺞Dþöùþ ? ðÏ“Å׃üƒüŸ/_ÓNüÝï~—+(h˜½%A'ˆây ¦Zœ’Õ{!á!žÉç(´AŒ¹£ÍΖmâbB¬/c–Ñ[ fiu«é霨æÁåÅ ¡!Ÿ‚׋‹wäæˆ¨[W»ä÷l±Ò‹Û˜q¨Õy|ð2 #Ú¿Pãâ@ZÁ$KPÅdÕyS–bóÓvc§&_>Ì8©®*Il`Ï“<ßÄCQ.€ƒåú7´Æ,“l©;EÆËb>¹ÙÝ0v¯ ©ÐÝ>t_EG)±)a“lµîýmØQŸ(7Šöⶆ>'~TÕ5Tq7,Ilžo0酒ŧ… ’N?±™Å|YÌÇ  ã $nR¯3Lõ\ÐÖ3æï¶2jþyð^² ¨¸¢’9Ç“§t¨núõüâ@jê]æ{ 8ÌŸÉ-€™ÖÔÀ!Qþ4×(.YÏUOiÚ½`A”?a·CªºÃø[^RhƒdiùS{Q)OAmÉÞþéÕÑ›ïOÄË$‰—gä«V&Õþ[Znn¿’“Ü’ÅœËlA jºõ´¶ìm‘ 3äQRw¶­ç§óe§lÛÑüï¶lzÆž™/Êöeq —U|hA•‹yÓ~tRMS$zR+´ñÝÊqa ¤Nq·Ù'‹ª ÛJð•ãîœåðÆÖ{§C9œP¢”ÁŠÜ¼D1 ’ÎÜV{·Ì^'Cɪ¢6ƒ˜!°ÿÅ6“ ‡®½¤ §ï^»ÊÀ‰dßÉ"»âT\ÔªÊRfFMq¦N̾]êÿ¾=°+o#=Ž2&N2\i‚îŒh$˜pϪIµ@9Ó¸0ùq03¼i®Ðƒa}úäÕŸrêÔî€M˜b‘!ec.ÈÕ0´úŒì ›ËÐlÐ@•Y‹D˜{àŸG½ô«z^]Hbôü,I²1¬žœîÖ­™mÜꋉ]Ãøi©;ìFjf^*÷ÜŽøHo¤¤ ñ.u¼ž-HLfT^`N…z‹F^9¢Æ£UZÄž©Â…Qðcƒ¡x†T#!àÍÐÚAšfIšâea1ˆlN¶Ý[Í­!CšùOIfï‰ÒãçöŠÅÿ×Þ»w·$ù‚ý7>¦f÷ZêCÑ–dÉ®êê:㇪ZÛ~h-yºçÎÎá€$$¡Ml´Ìºç~÷ÍøED>ð%KU]}Å9Óe‘‰D>"#ãù o˜<6êG|Pð¶£ïašY.—fóà ¸‡2F×Ù ÛvÂráZ±tSfý´Où‚¤¦u‰ù-=E÷#o5~b®£®­£s"’R¨XG¤_ŠÁ€6ö¾ŠìþvN×ãŒ×_f*Ô¿Íe8¨:\ÛMÖ) y,Þhb¶TÝâ¶[ë[݃t.Ç¡ã•MÖ»d¤¡ÖÙ*d£TÕï¬rF¤hœL“+£“íŒálß•œO³À÷cE×ÕaFg6£Ç¶—‚ô|›aCeôÉÈ(ó+øÔ8ü¤„SÈ¥OH¦bdéÙ Ÿ¾YDPm°ÝƲ7DÖß;ºÉÇøª-~»†`«õ·d²½lÞñ(–rþWCÍšz×»m¶Ê„ó§hf›[%©„Åy~XãøH‰ŠO=ÕúÒœi&ŸŠC 1NÛÙ|’ˆÏ~™ì¸ƒ'5F¨Rî(ÏJ"éÝTô™]ì¹¢t›—õâH¤hAÈU"÷ÈN@üúä׊Î@gÔŠ ´¢‘¤é!ìö*º¡2R\ ’¤äÒü_ñÿöLÇNJ'N§ªº—Áà…§ô¢úz^±¨˜Šëm3&áB–ã–Ä ãÅFÔK‹òµª}¡S'´¡áŽçÕQa&ée½+üˆ+SåWÊi\Í3ŒîŸKWGiŸä¦…7†‚-.â;›1‡ëN£ÅÁW󇶑NÙÄŠë¢sámA€Æ[ØìÄá™ìþaa¹~‡è€|D«ÒŽÐä¢Ì˜ÄíN¶™‡Ñ_R1ÆïмQ8ЃT—M2Þøœû½ôã ì7‰,‡Ë< bçäÚl÷¥…{L ¸“4‡ž¹„û‚1«Õ”Î!‚æ¯T#â! Åü>‡ÌBß¼ÄC¾ö!ÒZê&å„ä`Jˆ÷LÀ¸ŠËHë#òÝ©Ðßl­b›ÖM*&¿“$âçu¶3Bj-s ¿õà(Óh6 Æ-„¸oÔ¾ñ-Ó¤¸±?š?¯jC÷‡†ß„^»V›ys*+¦ãÉÔ3Hgàíé»ï œA;¦Ýh˜qø–ÿ»…Þ7‚`IC~Ö¡“úÁ–Ûot:ý€(Í;§„#B1SN¸šb-‹mú¾ª¯«ˆËƒ^TžÖxxØhï<é÷pZNÏ>?ÝåªL6ï„âQ´Y*.+I²KÁè†X"P‹95æT2£mÂ+I÷:µÄ·;Bòˆys˜ÜO®ò4‚þïñ“]©M'Áq$1öt¹ÝJéFÞÑ\²\¬íÓÒx¨r*¬ÃŠËÉâxÌÞõ{¤1¢ŠƒÅ–ç.Õ·&P€ó”Íê¶Ò  qö¢&¥„‰éZ™˜«ñ#fè…J`{f;"ìâM2!T²EmÜ"SAGJý5Ã8@LqôFàqnSËe_P¨>XÈØ5×’ú3:(óJ*ÛJƒŠÇEþ¨v‘ìœ&c ”ƒ4'”ÿu Ë¡ÿæ0ª ã’»î Âi6»>£2÷Â,¹²žI?¶û£øGGgTfHÞÈîÚóų̀‘¢çØ^o(¿‹0ñwÞ²÷íÁ®fIâ´½¥#ûv¢3öE¹µ fÑó>o¥äH86œ*r«W‰™žÊ·0ÐÁ€&e2ÈD AO̽’?ª"ÓŽ lxOl6,d-$²SJ矃ˆ BBÓ{©q½X÷Hw˜ŠrëÿÔA’½ $²ûXÞ6©!}Y© PDäS }íuÓu¬Uë¥6¦ìV|d/ö¢åÌNZ°,ÏòË„I]©¦úD¦•yé MŠ\ª É"øT»ùpsçÈÕÀ‹ó8˜½sË7€ÂŒLTð…#) /:ͽ›Ž¹%åZ‘)HÏ /•¬Ò9 ÑzLÑ„F‹mdbÀVd†¥(ÌÖœñÜœIv*Ëä&YT\ù¦dõ›Øuxñ‹¬ÙsÁc½‹e_±œØÝr]'cb.|d›j~y ûESr2Áÿ‹Ç±gèÊt¿‹Ò='Az ;8êâ*ÿKãºÁxöܨ£•£–‚\רAžÀ/åkÇ#ï¬$˜òwôО—8G)©‘ý£xÇÖÀæ¦Î¸·í5RïèÀ’-4»+D‹ÿ•³÷Ç@ñ:¦‹BÀH%6š_î? /|÷ãUMv±Kä„JÓfN¬&ìfÒìF,ÄÚÚ†A‘™¥°Ÿ/ƒ‡X¦–…q…CP•òl“ñÍ¢g¢j"îˆò×r=Lf+uKžÝ Y¯[%òò•^híºF5™yÚ…f±MVV “ø•]ÚoÖiËf+R›f_º|d¼ïíï;j×·Q›[ƒ³f5V͉RÔûÓ5h‹Ãr+nþ"LØ^DÉvóIGÛâÆ0%.ÓñÄuû #ßèk÷”H m(¨îº¹>ö橊–I—®Ûq«ïèšÿ ,Y;²ë½1q,_·èÓcKrH¨H?z"ÚÔ¤_Ë?R³³ð\5›ãµqžÉ¦Å0î‰xï’$B\c=ËXœÈ «$5ì¾Õxgp¤Q75…ú{ÐÃUû×ïDÏËß¼--tz„šÒi¾Ë¾Ú|×~GÃ|—m`¾kã+ÍwÙæ»í® `kmtÐîš“S®¬¼aóŒë/[ú•ÔÚIq%5»«ÏÜc0þ?Uõo±îí+óöŸ<{Ú‘ÿsôä!ÿç—øüFòδôæŠ  ã 2€žn™t´UÐñj¦óts¦s´>È49Z•tD/²«¶,èˆ|ŽVæ¡ÉKNÜþɨ+Tæ@{^‚.÷ò§3¯4gèk…H@¾-ëh~õðjæâ~›µ[ÄbK‰ZY†»ÂÁ+Ø8‚ ûŸ%£OäL²ï@åzB‘T¹¶˜ª+Ù(ñ ñ‚iðƒžár®#-ÎavQ‚ø4É3x×i¼<*ÓŸ ©Cê-kº/Œä Ó§ÅÓ)Äð$˜ŠFÿå*ªFÇü®Ù&_Ì®©‡FÑœ# Èê”ó[làl"ùÎPð]™7g¢uiê4ÐLk¼gS Ô!ö…KÆÈk÷K«Tâ]“˜0Å(nŽz­3•·i°qNfe²½HÜéeQÔ·‚E<^)Ñ©dzuä aàl.+â)°èaOÓÉ3h¹æ¹HDœ¡/ íÍë3‰©Vju(‚¶¼,aµš'vZ…/lé_Mš–»ôÚ  "R ¡p4 ˆ¹4¤ºðŠ©Jˆ12}>gã9ù\Ül;j´R·®úVè a” »ú"÷’kΫ§ÕÍø+¶é‘Éb>“ç# ÁJJð1;‚¡Ñðq¶æPú®Ä’¦Ò¥Iã?¾’d'¡O$–¬s›—í’Ñ-4ÄPêOsw”€¡à<˜Þ¯Æøe–ÐÇ;·dXbG))ª8Y Õ¼oR _ý0â>-|)Ö-Tm§#x9˜qÄ×i2ÖЛÍaú$GÀЪ¬ Ùò¿ç)æ3&‘qVi\®¬O@—[±÷€t&Ëb™Z¸, #b×VOù|6¶†©Š¡¶a‰5„‚!2ˆ¢ ÿ-²Æv“‡ÇÇ;7©°Ú“qO)®FB×*N40½›ƒ*™gìq&/f6„NÁ«@(䊷 pÆ€f°K²Å¢F°4qeë,6{d¦ÊœÏ«%ã{6ßHàšVÔeŠ<°m¿Ò‚ŸÇ #+ºkkœ‘/@ޤs¬òrÆ×|;‘¿-|³Ëä&™x€êÄ󆶯•a‹7|Ø †Lc•Øí' ²ˆÜ¦h´‚þ¤”„6³¢;é-ŽÄŸØM‹û ç(2,~ä¬ÀdÐÖBÛ)öïý,5$÷gCÉ„@1Lï€8?’úh\ÞcW²&“HÎ@Eœp>I»NB•Ö¶X¶Ç%tpyüÔ .4(»ô3Wa—‚2Oë‘´²€ùD„S°âiËÑÂV g•ÂyQ‡—æœ jŸ3Ò0ÛLÊ`>Ô„,;åwÂmÁ»“ '0‡““þÙ;øò¥ ¶ß#‡n^Ï%óJ–OÑ?@ûü¾ïË€µãWˆxÅ$ë”–Ï…»˜‡;æ>ô¢nuXßéÀ™ArÖŽV²YVÌœYNå©-ƒ±—½BŒKaÏÛÔ»<1¶ˆŸM%€ø©åZúѹfPk¡ð‰ ]d†ýÏT–²0Œ É1\`½ÒÂÚŒš§ÙÕõP?Íýµ+˜ÎH™í Ë ÐW¼Ëg窕Ћ÷öý|Ë9\!tÉ÷.©m\J`5“¢]CiÙ^4 ïäç] ¦ã£00Ÿºü‰¡ev†%<TVA2™çær£yûúˆ0³×Zã’º´Ñ–ãt-A5Ç7)ßÃOØm·ÁË]…ú7š¤I>Ÿq¡Ë$£¼Cª ±Ûm8@ѽí¶ã¯N÷‹[TuûŒždŸÑæ›Üõ:µ!s?­-µo÷Ú±ph8äN°¹VµXW¨ÅÍÕØzÄ‹$WG‘ÛAŠx˜1b®“ÅN¦ÇŽó•QU˜9ÄÕüêJpB¾²”Q÷Œ+ÓSN¨”  »Â.ëÚÜ÷Î3-ROû`Ó÷<­´ê<½ž¸ýùí~+ʥ抗¡wÞª—×O Ó"7¥?W‰1 9±ÊÓ;êwµjJ¬¯ßÕÜ Ö˜¤æ$"M’ÅÖ÷+wç §NÝ£Ž/dИïæ^kšŸ[œn*É}>÷“q:]èoß}<§:[ÞN3ÍÓ>[ûÖ-ö¹c²¹´ÂÌ弋uÙ¨n‰T2”¾©$®¼³UV-´:œW¯Úlšgý¯ NÛº¡Ù®I¬´‰Ý(©t턘˗æ®6ÍÀPli5Z~[¸º½™-[jû‚eQ²ßR*Ÿc^Dæµy-d'³–bÀâr\(ÝÛì]ó½›Ôåѽ¡rµ;%–mySX"lùÝmÉÙΨ|ànõqºôÇj> ~ë§-¢3â, å[ƒ,äÇ_/tJ#úز‰*B®†7iYÂ?üøjwY?Þš]™ï÷è‡îZ3ºVšåè6´àR ÂÙºh¢+à-ˆJ 3'6(íáð~>¢ö½8ƒ£QL'žï‹ óY8p»ÚYxØÁëÐØ5:6=‘§„DmΗ"ºr bï ¹½Ý^S*ÊtùYª orŽžÛïÝ}xФ8OÝ"ì¼V0i›Ûn®uDî_ɾíijO7§®h+ga[ÑÞè”}·iNáã0=jP{¢»c–•öJdN­WX ¢WéÛJþ£ó¶*5p‹êþ4¹ ÊñR:Rhvg{»EõàBÁ`M\)š3~ªÓÑq«èGK-ùÁ U:¡hå:£@:+³¢Ìj}{$/ß 80bóWB6À¿>BkÚ푊™N‡°â“BÊ^Eª­ƒºäÚwÈW°µÐç²9=­®-­ÝOgÆôMÞgN#¹GÊ[WûÊó¬Ã_h̓H“ü$^¯ZAI£Î¡¤—ÐÚR Äáâ° ˆ½Rãjd7å¶‡‰“3» oºk$!×·/¾¬{ÜsòÛB­œX—mMÔg_R‰~`QœèÞÌFZÄbm8x,€ºÕÙ²>ý-OU(îÍ>ÕK÷8UsÔp†±²£;>iM[`—Œ*ƒ¶õ_É6¬Ù¸‰¯|.™QxP«ìç )¢F¡–A.ŒÖXç|m{–#êÀ¢–í‡li:(½[{…¥À~k&ßÚd;–пÚ*в4ß®¸mÖ¦ ù[‡±éæ´P9ÅT#·ò$YPܗФðâ5IIõvY­” `.T$~tpY2¶aÅÅÜ "H*l%,~øŽinc—‡î´Žùf.¥ø¸A¾Ÿz+ #³.Y=XwéÈïR°Á86×¶òdÈ^$ÙZ´Skï¥n/b¼Í§aåéêñëªˆŽ¦Mþ-âŽÓëŽ;"»%|ÇMÁ ø4’X$ÛµðŽéh%fš@Í<¿&D8óî3JçªÑ;ïÏÏ~Ü]ÛO¿ÁýŸg5'ÂM$EõvübªÁ^‹*ÓT ŒrŽJs€ãû¢š]Úøú^¼(æŒ.ˆ Oâ¿RÂÆüG\ou:çªVÛM`Xï¤ý«~ä’ –ù~üz^‹®6­!;•+7‡2Ø»Þù^_:D©}éÎ*/u¶è^JfȪJ’‚†ˆR(?9<9*7­¤rÔ:Q!:›OI: ª¨d´:­T*t oI:ÁÈÝÙ&ç}a(–†þˆÊËi4ªöˆQ“F:¹aIá"r1ð]snlê}‘iC¿h é—`ê¡ûÙ!b§v¿Ý¢¶ŽoÒTOé8 (cpU&³k/»[<^äFå!aJKW"õýWËÎ+ÞT²QÐSù4õ!c‹½=,¤¦#׊vϼýS:c¨¦Ã`3êïDÕì-‘ÙZ îKûãá± Á¼:û¨é0DŸ¬#(á„ƈ"q…ð®7ÎA†Ÿž)ð¡–Šg× ÀoÑi$¢ìîÁy>I9Wˆ}ù³z†U2gôå¼&0Ë©QÊ\ jTÊ!¬’³ÖŒöGu*ÈŽl@J`#ê Ñ òî~_h £ŠUY=OlÚ9F"šQ›¨ìÌ$òÀ¾’\­œÛÒhááÝ?p*ß0¥Î%ùïsVR"‚'lØ’¢ó`o"@˜;âÒ˹’+•Q³tž6÷a‚-iu‰xØå8‚w€Àp0K!V@I¼·bl¢n[‹"YŠBɆÙíXdsŒ¼§“™™Y`F¦Ÿ µ†e5 è“K‹t:í#s*¢+Ã9Ì(èÕ^¤!ÚëEhûIbxÛ¬¤µñÄ/$¾ Ç€xâM²¬Bî9k…+úpÞ–š1u–~9ø´üps*gç#¶Í]ôU&6ZÏs„›÷b¿€a!TÇ>zyþÚœƒŸ`O@–" /Ù|*©†Öœ9\ðQà9˜þ‰§|!ÐR3›œÛµ©šFHýóÛíE.õ†b~H…ɨ<‚ ¬7LÃUˆXU•£Çã §RbÀB5Ž"ÑÚ¿Ó± °î4©Ý#%ê¡©‰…ñ•º5œæµ’b+E)\5Ã& }!‹…–.PB(ä-,‰íPd•z÷®¤>â#¢ê¼~Ô^Â]Që"ÇM¤ÆÝB{¥´#$m /=GQèõ/½^ÔLQÃU½4,¾$Þ—àŒPc\šòÜ8«f~F•‹…'ê¼¢5dfðÙÜvŒèܵ .žˆóólÛçB¿Pv®T†»œÌùÖSáËŒ_MÇøÐ>¸ôU p9ê¨VÆ®dº‹½ À¶GÈ›‘½©í"XãCÇcF\mŽˆ'?"¸Ü Š’_‚Û‰þÆ ÑSÌbãt΄ƒt8ÙK€‡zQphyZa§Ž4 ’ƒ´¥ÊQ’ß¹·{ú¢ŸPó€— z…ËWñ/ÍÉû›y¯ÚUp5©P'Ë€žØ(Ü_2Äp„È“ª·T upxðœH\ñQͨ&ŒÕ‹Œ`Bþ”gNÛ¨ í Ê%³]Êh&»ÃtŠð§iò‰Cóª<™ÖZkº[‡ôÄg‰#dÝ,3H´Ö¡ª©O™S9ý0Öüg_Ìͤô^¤CâÛ΄³™`’ô–@¨Šl(E$ÅÚ¸‰d!$ʬšînïTÃPië³|ž2+¸hsšæ¬Û obôv4{r¹÷]zá¬")nÌfs&1›g‹~û#RhˆÇœ)+iÊi„Ò@¦£DËà@È·éÈÃ…TeR„¶ÿ*Ï~¶Êæ= z‡ ;¦|m’ÞÆl×™àÐ÷0 3#Ÿ²­1þóº íîk?z=`¤¬êiÂ2ØWØMñJé£Ï¸WUq±.õ™ä1n! êIÊôQÕàšÐ ¬_d*õ;—-²°‘©ŽL¥º±õdH00ƒ?l”è{Õ-‹lº ,gõê®$úÏŧ´rÜè–&û¥¯;5n1úÝ3<¯5¾Êû|¼Á¤%ùki«ÚNÐÝk B½PYA”j´eí%Ÿí÷8[Ú2CKkë<žÅl•d/ö¥©fš‡ÖÚµ¥WVÏ›/ˆ»}‘Þ6Mã'£ÅZ4Y«JòÅø2>^:éC€Ã{A‡øŽ{Ôˆ°!  øbFÆ19•ê’2þYê@‹ÏùÅ—Úeä6+À§þ »çJ/éßHZ°‚nÎF“ïly6Wøš¥q`W²¡ÆÒKç"èÖKô½”l8¡—z¡ÕÓÓv=oèGà Ã|£¿ÕeïjuÚ0`=֨ {2/QOL.`Ö§Pì!i¤£Œ±óˆÉK¯ ©ö´Eð hT}0›P§%Ÿ”X]« á¶yÄ·¦Õ¶ŒÜg×”Qn‰*ºc²yetsæ¾ Žôm^’>™rà,.<¤áf£Ú/K¤…½øRa£˜ï¡`y‰¡…­Ÿ…ÈßBÇÃ,Ÿã_BwŒuqGŸQèøô‡w'§?ýéåûƒý¿¼øñInµûÎ1×J3_AÏü‘o„š{é!m¿ß/C$Rÿõòü!ìvuß= y‹¤ùx³ ›Gžp·6R¬jŦ0HÕõDËÝPFvEØWñ©7:_d¼j^~FB’U±‹‹ãñÙîÇT§šxHGF8ËcÎ#"“í¿ˆ¤fµBˆÎp—¼È‡e‘Œaû£g^Ç<ÔZ½zðl#uˆ“ÌÕ8©’-EG.?N›âo»ÖîA‚äß­už$BF!!Kþ†Ïã­|«€‚¶[=Íl®°QYS(üb!7Tf]'"Ñ[™ðjUíÄDäµ%.²zc´lp\9Ø·Šˆ™V1ŸO‡)§Ã™S5òñvEç%KSMÅP2½¹ÝöšZºÿlܲ[bþt`{€wަ*°³Ü‚º_(DàaúD`ëÇ:R°}Œ(d³Òõ&ùM µ»c¤ìcf[eUĨç(&!¦Ïòlëkðma&GD38=¼þÀn¨ZW šßŒâé` ÛLp”¼…d?¬¥Cçä ¿2Û¹ÄFó8ú}¸¢¸õvùÙŽRÒ/ÛqаPép€Z ®*_g¾DUz `.£išR÷@8~yõŸ«“«®·Ì ³w”ì„nk¹¶Ò7ÕnU9usž‡1HºµS­*ªÝËh/IÞp]—ê>]Ìå¨!É‹‡ˆŒÎ¡~+Þëxç䯃“¿ž½ÿpñ˜þùîüüEWö™Û+¯wþ’Á,}aéVz›õ¹IJ±v8òí­öã=5ßw¡Î H󳽡 ŠÐ¬ Âî|•eª6Ub°AYíSë+Jl’3D^Gk™œwº1Hd­Æl¹Ýz³{‘ÿV0#KCâQÅh‰†zøç^‹~;ò¨çÑ2\Æ|(›£ '¼3çYÅÒˆ½g•[Y8ÒÌjË­ªx9iíÅ0Ú¦_ >iMk–‡ë²d|qöns4´çpФ"pÀà;àR³µX¼ŒtéÚ–ø!ÃC/”X£ TIäUÁÉR—”ka£äŒRH¢ \x/&Eߋ͞™¶Wë›Æ¦1;Ö&½)'Z©Fo _€‹P""`졨ˆtÑÅe­õèØ%™Ž­YVs›²sñ sÉÈnÚá\oÛÜQ¸±£k\»÷“©-£#ÑØ>ïg•T"´“ÊÉ&cª“EЗ†\бC3ÔwÜæžX2>Ù*ˆž®ûf°¶§+qøàê}ëòÊVž²Úxâ…$ž¾ãÐíÈ‚Am6‹ôeZ‹ÏªÇ¾¿e‘–Ûj,vÕtëMöx?ôvO%ët·ž÷;‰_‹.ô.;*MÖ`·¾ÞD³E ¶õæu“.|ÙÒ?$«?ÙlÈéÇ0%»‚u¨¥«Ê¶ÖìñâââäíÙ…ZÖÑùîÇI \hTpÚ’Znj»C«Õਛ„²ž m»áÒñ‘¾&#Ad*¨¤âWʶåÓ³ŠA‘ÛŽyk·S1gn•ä8.»µZµÃQ»»Óë"zµÇ;W«„Ð\ Ñúu— ä-0Wiø˜ÂÎaÀÍùx1ÊýèÜÞF蔋Âw)>=¯¨Ôán“ÍÅPx-ð“ 6çñK;â¢Ih™p X]›HÆÅê½uú7Ë·ý§ÄüìYÙ–ƒqèǪ»ª{·6¹ªìM囆ô*¸c² m%÷t)M©T¢w#ùQm[E¦¸r ö…k'N*î±w˜þAÃrÁe`EÀ ˜Žðu ž`ûÂé/Þ¼yýáýÇ‹“瘭wuÀ?ÛÞç(cÉݶ‚(–_má}ýÝv ‚XqñýœBC);ß&IJ‚ñÌ1+ßâ³GSbÂ,F5¡¸R#€ê¥QÛ*Ri›e5Þ˜þ~óþý™Dm˜‘á>+Óiñ™³G`#äJ¿ Ýéóý 3ž–büq Dšˆ—R ×õ¥Üª~ûý+ºÃÝ$-lí„ø2 ëøí²°ï$ÑÚ €{Ùäýõ Øôg3“~=ùd•ÄI“îÍNçð¸³ÈZÁš$=z‡ìüQ˜ŒÔ³‘ûd†´ “¡Pn/G2—ô-ÈÌos¡l&ÁÖÄŒºÓÿ¹¯n¾gëzñC<6t ¶¬ç33킊²£~…6ŒC{@#ì‘‚mñÃÀ#±…“²ÁÑOTÅf2ŽwÈÏkBï0«lšÞ¾øë‹ŸN8¾ÓNÉåÙ”{‹YBfópÃì,éúbB0êm:AÔ¦BJôuN~üprþ§‹Ó·ŒBž„Û†‰VÌÄÍ*ªc,``ò1âpî-b”4iDã*Õ50N©Ž‘’Êñ ÍN²ûœk霴"lQZb–gSÂíFÎ@<¯3Åðî‹ky°$EÏ<Ì"!Ì1TÄ{’qÂ@Î&6–'j÷Q"%{'ú¤Jú†Îû“Hú„¥`1fƒ©ÑYr¿PvE3Á9ĺKÞy›«tÅxäHÑçHžï£ŠÀu@ÛטùuÍ9”²Ù6ˆÓr ¹Y`iGHB sö"/¡w×UÄDp{vÉ˲…½ )8̇ïo©XH»ÙZ–äû6Ú{ÏŠ<.ÈHµUÈØÔ›GëXlm¡Û”¿YÇwEOóVüD|!Æ{"Àð"Hó ©\²®Ä]‚¥õ³ÚúñûÉØçœ‘Ô§÷ãsÉP‚xë–¶AŒ¾.°ªÁÅœÝ7Vi!´šPMÀ¯Ñ‘¬êª²ÜÒš•£Ø^ ÉnE,ô=Yµ†f-ž´´N[8×*å;WøÎþnÌ ej祗ÉT;OÖž‹5ÖÊKÒÞÜ'ýçáæ~H%Á,Rßì£^b°CPnxô‘o­T¶8Õp Î¢j~•(ìQ1[ðÂÜ;¥q/²78ù’8Œ›q{EÊ—æosd"JòµÔvÔ8üí1½Ôc£!š› Ÿ|±ÚüQ{ q¼Ý=³ÏÕ×b˜ŒkG6KêkØ( •˜Ü¶-š9îï‡4sJ'›xð:ûÛ'3à„J®ià3uj-A6ÚŠ~Ô’×IŇ„q¸Ã49ˬ¯è‚~ rŒ!Tz!“ #ÉsØH©ªapÄ^6Ž7T³ËL-…¶)I=— i;³™v—°j¸£dh^â|™„b\J¢½˜«› #è+•jÒ™WŽ£0ý°àmZã²›Ñ"LŠbfzÄ‚pÂdÿ7ç8HÃ#v5R² q†@²å—ÜL•7”íÀk Î+é'(ãkº†#WuRB§Ûíá[³ÖÿâgÔÙé+m îwéØ,ÐÙ½ Õsëšå\@3Œásû=..‰zPKz6ÇWßÑTü9C™¨æú÷`Ș†/ŠùE.ÁÍŸSdèî}²‹î}½® p¿ˆ½YþÚ}ˆ ìÁxJµ®ˆ$ÜQÎé|òdPZL‚n2ŠÉ3Š—Wõ_‰$’ Ž6FBãï,]ù¥qüˆ|„óñˆgóȆ£è(ÉOÌ´²s©ÌÒ³û}6€sö-@«Tš!÷’½÷š!ÅC 5]]èÍf¦´ÙÍSb7OW²Óäƒp‡S/ÿjE-ݧgœˆ?3@­ÌÇ2%,°2ƒëÄ(Ýį¼3N-1¬‘ަ<),‰ ö&³™YP§ø÷lÆzIpÀ\_瀼ˆU¦‹jŠº(!‚Íùša~•çÒp¯šÏŠ\‘K3þ ¡8\¯Ð_Ši2qò3ׂgû;Mh%4Ý1b’1i^ ¶Ê«bÖ‰ÝòÔBA{’¢WÑ)(rRPŽOrÐh–és³{”V«ÜnÄn"Š ú´°¹d7´% TƵâT £s??šâdP<Õ–°4b?‹²ga-X¿Àʵ#×$wúy€\B„o¸¾n<ª¬²”)`|[$«= [ËÅÐ)™^’+©ÁùÍ›5`šáy.q0à@È»- ‹«ÁP[-¥Ÿ¿ =]›Ò‡òƵb`¿.räš0¶M€4#8^Qƒz/P”ã…d[—ËVFŠÉ~†˜t Gã®aš½½º½Õô¬)ë;Ml¶1D[aA{‹°VG@¡Qp1Mkä% > ñkÓêHnÆ*ÞѼP‰»¥vÙ!]x]P™ÐïøÎ¶Ï£’åÄ–â€É—ËÎy¹ Î)MY[gìá`¬-/¶‘…v}¡°•ÒîK;‘Pr󌲓E¼ÃGšÏ3!Ê&“HVÄú@¨ú´9_ÌõTTRvJüˆ¸,& “,z•À˜EAVÄ›Ï!wºŽe^)Y‡R[‚ 1î7³ÕßÊ´•èŠo%~VyŽf¯c¢!ÀlT°’b¦*ùP˜CRŽ×‡Ö*ú£²Í˺ AØ& ¤á™ó³Õ,Àá¤È¯lœ¥W[ kì€4*‰‡!JÝÊ[Ð,2]q¼Ñ¾{ð­¨oÁ0„V üMŠAùøæ sx.~\JN2Ÿ&WÙ(bçà ÄFª±»7È™$o¯²G—l"t„Tú‚dç·¦_ºV`ÉÊ[ÐçšQÁ±½™ËkG¶ ‰”îɧ)cÚ+Öß­è,Â\¾î·P6—ÞÆ£·ÅÂ# VŠ…G,&öbLêZV¥BbjéÓ*PK}@ÁK¢âwŠ–Œ?·02ÀË) 0"Ŧ³ošD9p { ˆØœõ%OŒp61ßÄ=\ÕssEî|øk/¾ø«(+þ¿ÙÁj—t~ïeÖ¤#b8"¹Æ¹˜ëöƒ!·‹î–U‡–‹Pª=Z¤r¿Ž­jãÃPdaVÎ×·(jI¬HyÉ®pÿ¼^±±OŠV^ÉÀ-zÕ#1•(±2@ÄÅ"7ŽÍ ¹vȘ af ¥µÖifœî.D(Fƒâð¯,$êʱ‹t,؆äÜ7Mð‚Ä%ì¨D×r¸ÀÝÃëHÕ¸‡„U¨Û½›©‰ŒE´yË‹F{݇£¢9g@•PKl‘®K#äÍ+ðŽM!àÔ/'ÿ>ø=¤j·KAh¼»v-òYe¥Äì\Ø/fȳ<ŸÏˆVÌeäÌDö þ=}~¼oˆk€]åßå×ãý'Çæ××ïÎöðxæØ¼6ßôèëó7»ËUÐcâ5Ç+yirŽªK˜ ÿ¸Š½àˆ$H"Y Œ0uʨF¥¹áСJCeMw|^¿ƒë¡»¸“â –$²’Šbñ-â¶ù(±Í‡‘F‚èd-"Ž‚h)¡‹0ÕÅÊ_Ÿ³ º'$d²ˆ¡â}¬¦h”G×Ö RV„'Y ÷ˆêÅE|©sM,4t‡+2EXWº.Úøœh:±â'R.‡sÈH»š…$Ô7—GÐ@ˆXA©o8H6Xo5Y+íÇ/ÄIe—›±è(05Rè)Ùz“Z-‰üªdhÄÄf‡[›}PLo`—ÐQwP¨gÀ%Zª§ZPNNﺘ ^.Å—7†s ˜ ‰D’«›}Ç;Èâ3â׃·ß\œž½¸øÓ®²—Ñ!€Œ] ?4ÒQVŽæSvÊU=±¨øßžT„I…o~÷þ݉{)1ý ZºP†LYPOË4 ì –¶TÅJ‹ûknNÒk Áµ¡:k½˜R²Æ—–ýNêh&ùvKx•QU1”!í²wÍ"Q’çe^MRBU4)™¦» ‚QÐÿÜŽ`æBòkícèuL|ÇŒÜBÔ,V«O"í5r»{‘°0Щ õ1« „k_Ù”†ÇT‡Ly‘Õªh«¨ÍÛ­.>nxaÄF8š×kÊ•¨_¾ýX‹·FøÝÿÑo±ïíOÌçøéSúïþ“Ãü½ÏÓ¿Ž·`~Û?zvüôÙ?ŽŽ?¹·yŸ9iuqü»ËÔÈñ+Û9ð—Ð/ûùþ_^¿uñg'1†øìãË7§¯âoö?þËá«Ç__¼æ(ÖãÇ,O&Ÿ¼û†Ž,Ï÷:yñú‡(þþíÉ…òªŸNÞ|xqñþÃ7ñ«÷ï.NÞ]üñ›7Y>ÿòºí]…á ûý'ýo¿¡ç.N/Þœü F`˜!üQ›¶s‹Ê÷]|€ÜØá’¹Öœg~ÜôóæôÝŸ}ñŒDüáäÍéëjsäµ™ #éhg9É17•€ ,Óÿ^8Ê‹Ž,ã`G›s°ã&» ®Ó丿âj ¹É¾øAï‰ðÂ9îïS§û«z¥&§„*5ž‹¡/¸vþ,9’Dƶà¶h5P ×Ð]`ÇFKÊ:h¦·9½Fêå»Z´SߟC0çx“^dnvMò%qªÃí:!ɮЉ§•:ÈèY¯š¹¯§ÁéUq ÀiAqŸ¤¶–AHXîè_‹½DíbdIÀ52ÛðC¤ÏKÓ‹€%”ùÉéªDê 2ÞV®`;Ý9¯æ3¡+%C`ïJÅMúñ+³æ‚õ–Ä—É4›,æQ%¥4"ŸŠ?š­IÉ|CïxS\u-xÇ4ÉLŽ‘2 åßÈŸÿIxÇføÿ…N߇_qDÞ„éR ×ëòñAI⺚CÍdÀÐîWýùÃEø®FîàŸ©jüݾ6Gtä¬S»ð" Ÿ‡äŸ”£þ9WÑ®j86‚ñ¾LS¯<“/ƒ^ª¬©°úe:a„h/$šžo­™C{@‡vUé4‘Z"&†ûHÞ-,°ºŸ…Ì€ÿ%gpØär`ºíVÄ|În;¯góº¿xTæEÄŒF”W†Ëlº9I›Æfå˜êè‘r¦kɤ¤Kû®æód²µ“ÊŒ{@.-ÔøR~ ¥Ç@zAqeË€Iì–]dë*h†|âq¸ˆìÓ\>‚½)•|—Ží²ö 3R@Ãx¥8¯‚»P¨†h†íÐE ™ùfµèš‹€%W®Ò‹n´¥šíŠpÛp<›F³uu¬\ħ’ÀmM#z3x}òòãOl¥-l0¿{†\µ†¡•ÇMšYAnQ9¢²t<ÖD«…AÜF2µGô ûNR(6}è¡‚ñõãõÁ`Ïo½¸®·Û RÁÈe˜öâ`×$ÊË<=´¢¬v¦ØpU+õ~\Ï“À5*‹ÊÐ2âj¨Èþá@ ó.µšÒÉóaíh¹(‰ªß¿œ¾ûñý¶Ä7­®,å¹j¸Z©¸M¿ßׯñO"i©’mI±óMê‰2+P_îaRL‡µǰ˜ÄKÉ5"‚áz~_O¸<ÔöÔeœZOܰO™ëV´.®Ø[ÕN¹‰ÎÜ-àðYñËQû–€•ç"jž‹3Ü‚D“jPôÈ—×DŽdW84,8yáY(QvJ–øÿË]9* ú¢àUdKWä£ÏàÅfs…v{Cèجzš‡qËù ‡Š¹T™ˆ[¶&˺ÿÃ8D²c.= ÿðd(6GÔnõ¬(Su\dª5^iöª 5 ;'ÜÅþ]Œ>¸¿J>’‘–újPsçm å²Ü•€„Ù­gŒ÷udi¨’ݹ.ÀU¸ï‚Ésê¨Ë~[þ¿Ô%²ncR,˜ ² §_ÒÑW+cEvmVœ¥w³úF#ªÿ©VޟЯzúÕT;‘ó°œt÷ ÿ -¹²Rÿ.v#ã0ø¥™kä+€Ð0U |D)bB5“‘`•$3–Ú¡5Ç”½q¼2ÁMD×ÈIãíT|)„¤©³‹º±m 'A Uó!$ {‘Z€þ•5pEïÏãOx‹ÖoÈ·+_¶z‡@~´ Ѷç£k‚V%C—ò£Jé?L`Nó+ˆG‰þŠ8ñ4×$í„,L$ii &¯ ßç´’Œ¯[ ³ Õ_S£†ž`»ç½PØkâ@Ê|b¦2Š3o^Æd¬ÒíˆKBŒ<Ã!Ÿt$¬ø¥6$‘LšÉÚÅlaÕ[NÀˆæð‰ñNYInÄSöÕ‚‹Ä™±o÷»è$sa?ÖfÓ.ž!?ÐܬGî?ë2add3îïNÿú_Q!=M5ôÉ#Žô•2%~G¶r«VÇ[Õ Û]9i¾áö"ÑX½Úˆ­¨Œ¾ä¥ì¶T ñÌÀ '_=ûvÿŽ€ÿr+ < ÜzÃyEì°µ+†¡pAT è&Òüñô%;ìG¨¢V¸º–”J²+0sÔ<4äÂWˆŠæˆ«º¦¡š-5·cÂ¥Ê:•Àwa^a˜H¼Ç#Jņ-¯aaSÛ>õ ;›™4È·}„#ʬ3z GàŒ´P2°ìœqÅ%^®©DÖpHmøÇµ Ôx,wD›c“„9ÒDëÿLñš‰–Ê5Û¥E…dpfB;ås©Ú§Á#Ú¡sÞÃ0>'#åû󽆃A`qÊüŠ­ô‹KÆ-IFF$¡”©UÞ1Ó£9‡ä¹.Ô´üðxBµEn?Q6æ¢ü>Ž8RûRþÜQã+“£DΘ+‹ž jŠž–¢dç]Ö{æéþµo¥—E Õ³±§¦‡eÛìøíÉ–(TËôýúÞº’%g01æ?—³*ì!ΊQí¼í­“T”¨tZ£«y® Q¢£xÏ%Fªÿˆ t`“ƒ,,Íû÷IJ»"v½ÃoÇ—É·Ož>9º<>'û—GÇGÏ¿=~ûÜÜmGÏ.G—Ç«|û÷è{ðíoùñ6äÞÞ±Úÿôdÿà°åÿ7ÿyðÿÿŸßˆÿÿM6Ä…lyü ×ÿó \ÿÇ[ºþŸmåú¾šÁoÎàž­wý›&ÏV¹þÍï«·ÌëÿŒ\úÏVzýÑÄ•)‰=Äž¢G­Wo:ÓðXÙ,¤7}9'fˆ»ÿÅAË„?,‚%•`RÄ‘ô‡ìzQw7vwv AÖÑõ½¤ñbIã•Ëì/„X‚KYù}Òtê¸XH-÷k“üÝ{H!Ÿl¹y‘SÅ–•»a@!€ç|¶QIY­áÇ6\ï•Kè ~ÉÚÁ@"#óÇ»ªÑ¡†@€š5»½HP”)¤ç‡Mã=¼È›2UýºÖ¸©D¬ý§g/7®,pšµ;âVCw%ñ˜n>Hµ1s¼É*6sHN\þaOH3…’`QàE6MÊl²ˆ¬V¨Ájoî…[ìLQÞñÆå?Õ¾ðtº·eûÕþrçËýåŸl½¿Üí‚Ö¸ÙUÐ\×<½ruzîwq¿j½üqê;n±NÓOÄBº±ËäÏj.€´u–¿ RN‰¡/o·yóÈ„Á RMƒ ¤8{éÉË)â“ðX7^½Pà˜R*Ò†4fAÙd@vâ¿= ä²bÚSg%3"5@ŽÚ!S’ª.>Ä6 Ú¦ ÇzYæPïíãÆ¸ÚˆúÚr¥ Êt³…¦–¿Ú‰õFÛ…“xÿå°0>³s»rž8·)úd¼°.6¥CÎÉò_Š?Þ2¨Ì¿ä‚½R0¹% áR„…»ÔáÆÄ­E#–X¶­55Þ£½–qs‚óŠšj!>\^P–愱ޓôK6*P ÑbìåQœíL¬ ‡§õ–+h°eãE4²'Gº,bßUt‹Ó‡’è]‡/Ù·´á{Ðùíaç·O"âbñ|Ž-[`‡È—[`£…F3Ìá_÷»š´št5;l5;ìjö´ÕìéfÜ+0 ;‡˜Q$¸oä3T8Ex]Fì ’0ZÀH%¶·Z+«# ¶¦¹Hr†çf‰+Ä㎩,ÌÞMF)\® Úíe£„.osIÿüõŒ‡y>¡@Š(Pü<ÏHJI·sá­àCKÞµS ‡ÂO;ÃM4·å£˜)èSà0÷:Âr ›®ƒ‰¸µŒÃ¶+.uŠ´ :ÄÂ-’5‰“C|×v¼–3×(ª³eÔኲ„ÑÞÃùå*l··÷–”‘¬¼¡:‡'­8ÌN6åž´–‹×RMNÎÏgƒ7'ï~ºø/ÍíÄ´@Hc³' i² !ƒôø Ol§àžÛlã—ûÙÆkÃÊÆéõ†¶Ò_ލ›Âûñ¼n ÚÉï¼ü‚ñ|:Û¦Œ–Y·™o  —&i²n÷Sl«¹)siìÅö†‘Ž(Èñ’3Bc ® £¢ÏæµÆ*ÓHq߷О0ëÊ‹Ûðö´±džp3N¡HŸq Æ69…cBÀ ‡ ;ªHÃ:ÙÈ¢sæÕ™(F{! ­`§ vZ…–€&oó2TVï”>c‹hÙÎnUž²E)Ýc½ààFÝŽW²õ•B?½èÚCsO…ºa`ó‹XÙŒæ%=¹ e—¤ÛØG1LÆõß lÁÚ:„ºAN[¯rwÔ‚ëæö´D±Lݺ¤ß·Ck# ­Õ7Æ;¼äM›¦­ Äl€!·È[W—ÔI´vÈÄÂé6‡Gßaã"oã>[uÚë°AUºK0¯-°Dû>NÕEÈ—Žªd䤿œ€E[oXQ¶Qœ;-³¤Fy2»Ýì(b~ª¢‡¸º6¢!ƒ;I!´Å쎗†%Õºú諨±ž‹é„²“Íe£TPÁ.UÒ·âð¹Ëimÿœ ¬²Mênyž(òÕ«Ò…9~¡âFÅh©%MWÕÓV©½1"+uKp¡Æ–™Ž?ÉŽ}å:ò(»$S©t_\F—F2¥pO*hø=p·,c:­}(iÕYóe Úï½*í¹£°ž%¬¥®üÕÌñÆT6"î«-oØr¢lbhÞÕåR“zk{¥«Ûíoç{es‹2»"x936û—' ™ßo™2¾ïݼGLºÐÍßîÇ£{{ÇüÏgÏŽŸµð?Ÿ=àþŸßþçet–üÜÓóùLOâ”K‹7à’Ï×#wš&ÏW!wšß½y/Cì|NpœÏW"v>_S§ó-9>&F|¤ Þ—5â‰M\@Þ–>`7.Ã*P¢'¬Ëãy™L"¹ç€>Iò«9ì@ójSmÎg,3L öI²Å'A@0©?®F âÁlâqê¾èÇ/çŒú^Í4?æê€fØiÁž û³Ñ|‚;Ý(kcWÖäüOhZÿm_i®×OfÐ\ýG&µ=ùÎ,Rîöeƒ~^ ‹1ybN›,6n¹Q Õ(uôç5*õ抟’!15k],ø­vh±'Aª ðËhx•¸W¼“¬™ÄÝóÏ‘Ô'U<úž[[ó% põõÐÖ)•üpT]ÏÍŽêÊFY2Ž ì>Ô²¥¹*ogaÆÚ‰Þ:,›ÖëÞ.!Ò Ü/vvs˜7ñMúˆj±ÎÌfRá—yíšGn éUAN’\hž…Û×"bâ~‡›¢B€tLbÜ®z¤,¨• ew¼UÁse<ÄFš•Ó‚Ÿ¡c_q"Ào’ºˆF`4¹#•ðÆ%ÃÍêíY¦_®Ò\’õ¥—ÿa¦'—ešÊ\|òÚµåÝQTŒÜüîyHÝÜt³¼9…u[7yF&N* ý…õþþñ›SÛø­§;Tl¤ö~5wPš”zŒÃþÌ6twy>I†®Yeþj·9ùÌ\^¡ò,CÐìujm3¶èhvÎumÝ;ñwÐðñÇvå×用ô|e.š4´[6Wgóo„~,Ád?¿.&ca”|Ü£{ìÇ? %è”9° ¢Ç¼ó\Ebè-SvSܤ“‰$ŒÂ?w&°G Þ!zS$W2.‹¢æ0 ÍàFÇ’|t8¸A•]º‹¤ß„œ®©wÊÀl©/Éaò9M…×µÒ„ü9œHã<n¡Àå8ý»øÅ„+ ›±4Ø6çH™g3Jf5lzó¢¤+^»ùŒŠœv f-G˜ûÚ(Ÿ}Z;B9äéµ"¸ÃX†Ð€FÐÍÝÑV¥Og›š:^êàPsuÙ u$Úžz°ôŽFA9H9ÒuðÕvqÄ É«œÌLTªKrЇ½Œ¼Áoƒ'WRþ³N™VvK:VÍì8£Àòî[Ùräe²´®¯µ›F¿P.^Áôì =ÅkNi‚$#Øl)x}‡ÔÄÙj}é­^_»ŽÔôÞÖqíJÐÛÝÅüÓ¦qRµdôùÅ“-䘱Ç(bêT,]ÈÝhœÓûà ‹ä×( /†P¢IöpVŽÈ™¦9T”¼ÑIZ$Vò}¹eÏVËQqÖ»Üf·è¬n¸[Ôô×Ù­FÊ4—ÇI5öaȼMª<Í1oÞ!é.§·ñrc¶Ykï6mÊËn“UruMF«o…;¸äÜK×wÉlÌÛêñIWÍqCnâ[í5ªM&.žßýs~²‡Ü{ã6ZkØ*É<"È„Ùâ´øÌó¡{aU%‘yÍŠ:îÇç^È‘}lLKJ]Ê#›Îå™Ýcä(éÓ ½d«KµËæîÌÚ@gÊѶ¡ÐdLHtNjØÖÉÔ~‡­4Ïjþ-ˆÑj(™HEU'D’hš¦ù€:ù÷D>y¶‰ud|4›—³¢­vó“Ï+ÆõQiKs[í£<3 ϸìæKi$jª[HvÓ$O|Ø¿®…^uœÆs„ìp=ÒÛç3Z/?µ.¢'uâçî7É_Æà@ P½¡Ûõœ·ž¯ÌíB“†fÚRº‚ß¡eͲt”Š©ÌèëWs² $MeèÔb‚ eŠZ³ÑhRlP[øÖ …ÅC ‘50X•JШ8ÿ2´¬ªFP{Ó ÄËÐçWè#k͵ùÓO ²q%b&†«:÷]cžv4‰¿™çÙßçé7­U뜵T¦oV"4 h›•å oÀép°Ù¸Ö«ªÃr\MÜŸwqnèD bPùíë¤N][T\ ‰2 /{ÈFÉȹŠÂ™º3h‰Ô†K»Ñõ<ÿ BflCÂi8McèZª%¶ÇWvrÎÔoèáh¸ÒUÏ&%ŠÉaÕ›å_ºw$-äà¤pî&”Ì·“¯tð?ß%yÑLÈöÛ$´Ÿ7¤´^#«š´IÎÁ xû¶4Èߊþ­a3xd†ªÑtë’ûfã ¾m"NH¸‡&£ë$¿JÛºÔá2>…£r\þ±º/ãB‰&(çœ{[Ê2‡aÊÉœPÕ' ¥s¨þQéõEK¸ðzôŠ\ÉÉœ Š`éqò§é!jEÕX.ì‘‹G89o¤ oȱ{qךÁú°Ñ1Šås䢆¤i—é6ç`S ߀J[æ¤Ä‰rÎdä7CB퓟’˜üt¥˜üô›nMKXîhénTu@L篙šMãš3GñeRÕ¾¯Ù•øw kÑŠ²½(@ìB&˜ÅNÄÖ¸d2Xì!xÉf›`Í"¶áÕ×óJ}á¹çjá°»—´çÔfsÜHÝHfÏš»S&›¹šx8ùÔm1b¼ &EܯH#ƒÙ6þÐξÓOО„o° ªžÜÁ€x’}k^â·K¢ð…誅æ¹)m'˜Ù„ÒA°Û[ V Á:à;Ï;»é¾vÄá}µÈe£{?™óÜ[Ðö»[Gòíi€|ð¶©sæv‘D],½ÛV‚†U¨.@Ø`lœÜ$²í„8c xuqýÆø¬hÍ'"i¾†Õz©! ½±´öL1á4È®&Ãû#$3ZWÂMV‹Ê¼¯º\øG˜K)v‰å1rÂÄÒ›4F%â·áŠßh^Å72 ²7IÊ-*dÕ·‹ÆV‚˜ßí™™çF<ƒ]óŸñôÌÕãC¶DI:Œ(ól:cìxZð–¸Þ# O„ŒTóã›d‰ÉËn›T@À™‚ àDçD~×·¦®Ÿï–º`4øg¢­–)ÙÜ®9ÂÝ$ Á·ÃìåëQuR‹?·PÌ«.'s¯h^÷ 93Rá-…ž­·`‹µtîg•E?•[€õ×%g³‘Ð-a2VØÉê*\viG¤U­Ô*L‰ájéø~½æAŠ1o­Ú½ˆWj‰Üª9s´ªšLì@èTq•܃ Ó¿90òùðôÉUÚy¼ÐY‡)@k>ÛØÅÿÇð™øe‘ßdFŤè|h„¿kŽgùx~òîô¯±›ŽÁqÌõûß$;R§±x ‹ò»øE¿‡3ïUÂ(NË'èÃl†ÐÀIœž›ÔðRŠ»2D„”;Ru A¹ ôù[3aÙæ¯O^~üé§Ów?iöye'"¹bbæf²EÞ£W„ñ«—kF-C‡îÓØj‰í)Š>BfŒäyÚk& WFñeh¡¼q 厅–Œ˜5]ï/òúñôe#îUxì,-÷èGÚ¦ô- Qt÷A5¹•²Õº m‹ÆòõúU#þë>3½B= Æ ±q@‚XüR³VÆEÙîÏvײنPOr»„·,3×K\ r›eïè_Íïèeà¥nÉ],œp<¥˜ü1’ëëÃ0µ$,~b›;ÒŒ'0¡u̯à ]„Ux<ÄÌaÉáa.[Vïr}»,r…p*oç!1 o-û-îÝ6:y£H"eÙ…¨õRЉu]¼Çtñ¯¼xM Œnݼüƒðâ”ÐàòÆ”DA"gú%Í9<éþl¸ùÍÌ™úöêkâ¶)Cƒ”dz&0Y© ÅBϥꇂQÍ&,2-#àrp»y!²8ñÓ"/f…Xxuö±_Ò ;™Ñ{O‚¢Ág".vmÃÀ=Ë3#”¸h»{¶ZU¡ ^B S“]ÏlFúyP–•œÐ‘mõILu¼ŠT¸î1`É£¸GN² Àž)I-ô&»VtÇå¼ÂfkþCÊÀÌnvÁHƒ\BBˆ¹W) &|7h£ïöâ4ÿû<óóQúYRÓÄŠf–~1 9Êjº“«OÞð§]u<ËdÍú¬¹ëº¯3tsç÷Ù­¯'ž• ü1ô6G4f/"*ÉSöì@¦a³Š­èèÕ4³ Ó5›ý° ê-7ºyë<8õ6kÙÕ¡ªs¶«­Â¯,9™áTÞ9ÐÞãNØFU¡¢ø鳊ÍÈaÄ™Üf‰Oñd‹òáÌR̶µ5HŽú´ãq¥D¼Ý#!÷jQ.=Øeº—ŒÇn[nœ¼'ܼÁ²² +·VOñ­¶·ë•=¾¿ž&ºÖÙ+5Ô f²–H~EˆüÍ.‰Ò½È:{N<Ø÷-÷J7³“¦­õ㦩Ü9¡F^xDK‰EökíÝdã4òΓ&áèŠBߟ$5Rm2 `Ä”;G¥'FÉ̈³’d›-o¼Z":yÚVU¶¤üíp›o‚g¤>Zh“X®XÙ[O§Y=¤%Í=#iîÙJiÎ4Ñüµvý+ü 1†aJ¬ ¥1dp“U,—CšD‰‡Æ_7Ž# õó³›4"…ƒ»š'¥‘kR27$#€ñ"ìq¢/d»½•öm( ­´5L/‹RƒSª#€%—œYÃj§^ÏÚ¹  ³r<‘Ê:`Ùˆ#篵0·YÇ™d¦Oç£hx‚Äþì#Wé¨ ,AwFÈtcÛF%&Õb«ü–Š i /åaFdæÐn dè#/n˜Ý1:hR9ã Q!µdÄ©Ï e¤âšªýâ¥Ô5©/{¤°Udµòæ›Õ!!Q$’ò¾?g ¹Íy³:+ˆÙÜIOú‘ŒDM3´a­¸—ÍÈ'ÞÎÇŒB—5Î{OÂL%“ÏÕáMcjÁ#L(Þ«k­£®b{‡Œ@’Ù<¬'ì6Ê mÒŽb •éNi9Pd8 g“Úõ¯Å൑\Ì gåâzº½\Œ.îʇ~kQ˜'$0i]êÀ¦œç‚ãà1–¾i9Ë£µ³Y,D6;0tfn²ÍÅ®=Ù…÷¶oZj}k—[â1l¹-]ïÓš‘ÜO·Í­Y]©Í{ì"{”Ë’ž¼¥ ÑŸ•‘ò‹ê"òŽê2ùCÕ¡Áï랢20•‹M6ÂB²±€èøˆò^;¶n‘]5á¼=С¥SuGIŽ1wϸ˜¶2dÜF먊yidááÄg•³qÌ~t]˜{† Ó 8\Ia~†¯ôû­C]BÛ6µ§Åý•g]—¡¦Pb¯ý6ê_Nßñ—%•+Ç€—EmnŸXÙ¡ q'ÔvEÞuñ¶>ƒ^±å®#á²bv÷gl›Ã`P锌+–ý Ôlfh8RÃÎ5j­…ánŠ#²@(›:0÷[Jo²K&O‡…¸ÒjB×&sezrÓ%ëèX¡³e ñ¦pó­Ñ7ªn--À5ÆïŒÇ{ÓéÞÂ|âëëï¦ÓïY*4WžÕ.Ä.aTe:Fºëû¾z_¶Þ“»ÙŠÛmæ[ äã­ü/µà Á‰¶?¥•Ú ¨: ÝŶm©-®£ÀCzüêZî+¶¶Pï^§?\¼¼~qqrqúödðòã?ž|œŸþÏ^® evÝüåufšóÜIð{{¶ÚIJ¥ñøçv &L}õ kÊt£oaÓ„V‰§ÕŒV Bíd ¤Îú²¤àÛó>½ž¯T¨M‹ôÒŽLÀ/ž6íôè\@Ý Ýä²5,+YpMð˜ÈÖ§±ˆV"ÿÂʯ$¢<ÓÑÒ¸=ôÁ ¹'q"[iz¨ù:(àLÑœ^y*LiÀœqIk¯Yˆ~ê¬q½F ù>ti”5—â`¤Œ”öYÐI÷*¿ <ÏiÂQH?Ít€^t…þBÙ‚Ôaíuˆi0*V.è÷¨‹¡[º¦èRœ+VËÒ=.Fc„À™„úʺÑ3(à1KËKÓ¹Y6ªã¼Y(9ËšNÚÖŠ ãW׫ð@„¾ëŠñ´Ðhpx•ìmXªWŽ3RY¹ú4(ŒPåÔÀ±ŽÀ”é7‹‡g °€7Ø™d&ãEÙ/¿¥ò¾€”'µÂoJ’ê ~sE ŠQÊ*êbñ{3‚óó7[AÍ›Œ`>¨kWÛQHèF÷p³¥¹“’I¶×CsqñV IJr«°‘½ýr[Ë“‰®â-ƒ‘fôv0õ5„užº‘ªM˜Ž}.Êç™ÚQ…Êø¡©²I°}¬¡»Q4S×Ä<˜Âþ…z^¢ƒ¥Dî7óŠÎâl ªæ#ªÙÓ£òx›0˜í7zšåw±ÙH#¦¯Óþmlú+¶tj]yz¬"]4«˜µ_d/ÆG£Û^¯ßŒÙ€®Tk‹iJÙ%ÅߨÍŸ¶E(òÍ’ªº ñÈŸøX‹H¿}}äDãE â~·¶cŠÒЫŸ£ÙŠ08ÐØ?»Bû!¹âR#•Èa»Ç’‹{A· ìVÍŠ™/Šrì 7háh+9^˜ hM¹ñøâÕžƒ¥§äÔ2dù ±•=‰‚û§3g&?K²²Švd´½X²«5ÃÈ(DB†¡9 (¿D‰ÑÒe$a±û<·¼ ~O¾ÙTêcŽ)ZÅFüLób~u͘&uTíý«úv,¸b]§ rtqñÇÿòG/s”®xš0V€ A½hÙsôŸ³+ú°Ô.¿wþJ×Ǫ³lÏ5ÜZŒZ’¶¤ToˆP6™E"Ï|1„!?¨U ¡͵ì2TÌnèåmÍ$bÛüý3Ø|¼–±.)¿ë]u~L û¬ïxÃ6©ìÕŒEF ŽV¾]£ …Æ\×.9F|\é ™ìŽšêO ÏÚ¹¨šÕÞá~$VJ)z,þEhªÙtšŽÉQ?Yغ]×ôÜ8û=ЦŸá³®üÎÀ»2õK!Cøs5dñI¤~›JÍžŠÖ˜‰ÕÿhÂÓ¬ª@80öoOp®ÿ~šë¼èñï%Ï‘Z½’X-ž›³íüƒn÷•/“mßúòœO„Ù=]«b–õ²ÖŸ ܽn{-\ÈU±/oBã•WÈͨ¾}Nð mÅe8"X7àÔ‰Ç £ ²ÃïÞqÇèóËjtØ§î±ÆÀêúûOžî6ê?ì?{²ÿPÿá—øü&ê?¬(ú°ï}ÈÍ‘ùyXÇ!žQ]\Ôëôy•†K­¡=ó®ã.ÚÓZŽçŒ'æâå‘븎‰ÈŽ; ñXÇx¼‘ðtL”uÜI}^OÄŸ `Y/éä:é¢2¯Ó†a âj‘®Ë"Ï~ÞDê1Ký¬k UÕ~“ Ë„42aÝê=£•yÖ¹zÏt¸hãŒKnÜg´2Ï:WÏëé y nIO‡ÔS×z=JuVÒÉ$ÉS›¶sî¯YÄ%uìlÉÑÎ"v]‹·¼”ôõ¯Rîn-é-¯†ä÷´¤R«¯eß~_Ý ß­®–á ú]­Blu¸ Åï0Ä@iu±,™ÛÍÝêcY ‘ßG#‡¨ÕDz¨)¿VØ—Âj•»ÝDͨ[ûðyø<|>Ÿ‡ÏÃçáóðyø<|>Ÿ‡ÏÃçáóðyø<|>Ÿ‡ÏÃçáóðyø<|>Ÿ‡ÏÃçáóðyø<|>Ÿ‡ÏÃçáóðù­}þ›¬¬N bird-1.4.0/doc/sgml2latex0000755000103200001440000000157111606273733014211 0ustar feelausers#!/usr/bin/perl # # sgmltools.in # # $Id$ # # SGML-Tools driver. Calls all other SGML-Tools components, contains # configuration information, etcetera. # package main; sub BEGIN { require 5.004; } use strict; use vars qw($prefix $DataDir $BinDir $progs); $prefix = "/usr"; $DataDir = "sbase"; $BinDir = "/usr/bin"; use lib "/usr/share/linuxdoc-tools"; use lib "/usr/perl5"; use lib "/usr/lib/perl5"; use lib "/usr/share/perl5"; $progs = { "NSGMLS" => "/usr/bin/nsgmls", "SGMLSASP" => "/usr/bin/sgmlsasp", "GROFF" => "/usr/bin/groff", "GROFFMACRO" => "-ms", "AWK" => "/usr/share/linuxdoc-tools/awkwhich" }; $ENV{"SGML_CATALOG_FILES"} = "sbase/dtd/catalog"; require "./LinuxDocTools.pm"; &LinuxDocTools::init; my @FileList = LinuxDocTools::process_options ("latex", @ARGV); for my $curfile (@FileList) { LinuxDocTools::process_file ($curfile); } exit 0; bird-1.4.0/doc/bird-doc.tgz0000644000103200001440000027240212142167377014417 0ustar feelausers‹ÿîˆQì[msÛF’ÎgüŠ9åC¨EJ”­Ô9Š®dIvTgË*Y®\nkko I¬@‹D3qþû=Ý=3HZIª.¹ý°ªJ,3==ýþ†iZ%G£E½Ì¾ø£~ñsòìý{tx<á¿äoúí›ç''_MŽžMŽNŽ¿9|þÅáÑäprò…:üÃ0êü4¶Ö•R_ÌŒÉô“ëLeÿ „þÜŸÓ»|wqÿãí•úþþíuûáå›ë µw0ÿp|1_Þ_Ê‹ãÑD½JsÇW7{gÑ)=¥®Î/Ï"uúöêþ\Ýœ¿½únïõÕÍÕÝùý»»=uñîæþêæþ»½7iÞ|¼,âƒû¢È¬:Žþ}öÝ_ß¿¹:{y}w©>€Â_YõºIóB]çuU$M\§E~:–eXÿæúæ?Õ÷wW¯¾Û›’èNXt÷ÔÝÕ›ïró±>‹¶ñ’/ë">’uq‘×&¯-Ð þ§/ß]þˆÎw€>»ØÓñùYt[™Ç´hl]úÙ…ƒÌËO¿¿£ÿMÎN=e,–è¥ú,ˆþ½ÏÏ€â—êñG#uô,ZòÃB×*µŠ,H9p·|[—Ò‘{g +º_•ë¥QÿC{¾¢Í:®ek¥sü^ùz© 5y’æs5+*YJ3UnjuW45½ºÔfYä_¢7¦cký`”VqV€Ñ*+Šäjœ·4:§ ÅŒÿ¤ã_Š·g§WoÏ{üòBý`²l¨V Óü~YèG€Í*£“µ2ËL§¹Ið^×#uMï@;úu´‡j]4ª2K³œšj¨<«éÙ¨û]ô6!8TålUVżÒK5X1êZ% ¿Y>AWFÍ :¸.T’Ú¸xyRଖÅÒ´­i¼P«¢z°´ Ö Q« ºÅy{‘z]‚ˆ¦¦ jP‹ ¤\59“ܤ xÙ¯oŸ)Åý~B˜CŽŠlÄ7ƒýcdhAl¬¬@È•®UêøÁÔVMq€19NÃhZnâÚ$‘;×E•iÜBU¬Ô¢°Ø—µ ËA‡ ¿@ä°Šð±$‘YëŒPh¯QQ\,—MžÆº6j…Û(£VA×)H3Ä6³…ÚZF`y•£"£ÆwtlùÁª‹²ÈŠù:È©CBÁ—±ôbI;giž¨¢¬Ó%phS--mµà*D¾®Òx|È@J1r„tzàÉ9pÀAw\>i*'¦µžbë>8Ÿ0-]²6-­ÉS(Å Ïi=ˆ›¤dU¬² 2M­ç†‘òwÉ U•i“f•ܬ$eŠ›Œ–l(”ˆ·É“VBhû»÷™E¨‰st4W­³í©ºž)%Ö3¬îØHÜ}!¸%jpw}ˌ٪×@ðR ˆv³Ê<ùo3­t€,êº|1¯V«ÑOôfTTó½³]OÙûÓÝÞÞÝ_n°ESÅØÏÍtƒ;‡¾Ûñ²ª¼§x‘)Q¾X—zšf08† B”¥Ë”®Ç抭2ˆS!æ&i€¬íÔzµ„3¯ñ_à‘᜖š?øxoÅW@ð¤F0 Hlc å+„ÅÆ7±í'$80ͧÈ}ê¦å¶U"Zsùf4í;"l–%&T–˜ÃúÁHztkªŒòßÞ¡1€h3ûµ÷Ž\¹¹½£Š“ûC`žÑ½?üáácªÆ­Æœ¹ŽM™*¬¡'¸<Ÿææÿ~,Öf²Ð§ï.¯Î:8¨ƒƒ…ÉÊÓ1¿ ™š#ÑHß8!k£¨ˆRP„—,O’~¤K’WSø/ÁnÍpLN>ë -O·©· >R¤@r±ýH”Тôc÷pÇ¥à–4Åo@¦õ೪XŽ¢–uŸöcöã'…Kî\†³CÒ=K oe!Õ°Âý˜À±­ ;ù¼$‡syæî«Óë3!ÏNÇ×gî¾§——gØBB4OÉn«5ÓƒÜ2ø8B/ÑXGƒöÔ¤„HtsÚÌÕî—K ¤~d¥ ÅÄdÐ$ÇÛ‚wI§B\~2 øö}ðP^sz›v‚HR¾èæÕl _SmZösXKh»AÀ¢« ‹ƒŸ½ƒ‰¬rõ¨3ø $#?™ R5ÛÚWX“&賈"üÇ… àTTv -KÄð„h3Zº¡-(Õ|ŠÇˆdïµr;ø¯(ÛVÂâ,…àAÔ™F„B¨÷eáQWc0ÒÉCmaÜÐê’lc–TE eM—І)¬Yaá”àÄ­1.àûXãX8')`¶M£9HÂTî&ƒç÷¿þør#’[U)Åø­8OÉþP|àÊ$žâÉçÃQÑ߃nIÅIÄçæ3²!Ïž´!Xrˆ·aAØà¶• :Ò×—A‚Ö¨ê'¾üDìP¼×_×Ý8Zì®0‰Ÿë•!ªgÝWZêˆT"rÉej#±Ø.¼ƒ 8ÙªÚwX?tîd‰qÊE œ#"°æ½^Sš‹Ã—Î_Q沄›O—rÊÔúœE·@±Š¢\ɈÞ`z©tb1ôæînr‹ˆÄ}a!Ü# uÑŸ2ûCõ‘$˜níEMJ”n[¢säÉ—e…ªõöê$œ"Q¹C²«Êü£I+lî¨Î ·áâüöo7W÷û·¹)j'òÎ qÂèT Š‘zq ÄA%/êª$ÕG¡¦ÐCgÓ–Qî陫|Ö¢l Õ”¤¥^R˜&ŠÛ)öˆ\¤Ð©'Â@vD”I:ÐÒº©æ‹ô6™ê½ã¾—'*xó^Y˜Ó"Y p¼K©>ŸKĉÒ̶ZM@"Òâ³–8¤š­lºL‘!±lšÕÒe)!=·D4Ý@ߊ©J°,¸dî ôî˜üÜrŽ\Ù‰; ÆG…„Kì, 3»GSîÖ’††“(«µ6eéYû›SªÂJH“Â]‹6äU©òÇjÊ,p|™Z"Zàâ—È·Ei{KW3÷iîËÒN+²Oœäf•³tZé Wé,ëŠNvziuiôõÀ%–­âôpÔ‰þÿo[Ác×`KÛüÿ»ëßþt®÷‡ñôüÇáÉɳo¶ç?žÿkþãÏøù§ÿ8Ÿv3=_oþìÈñÖÈöš£ÎšÒ)ðŽuA‹'¿k\äxÓFô_»ÃϼåØ^Ò9÷WI°dòÔ Þï&`;PÒ©ë‘ BôÊ^h£x݆k´€¬;Üú¶yÇ ¸…ô'*…ÙÏìS[û¢¶]¯>D¿MKÓ?¸ÒmÃÌ…§ÄDJ¶-zDy±Ê]Y¾³Çˆk¶ÜÙÝhøæ®$:4TbÝžTz¿B'IE5eºœ[$kŽ‹;o74'BéÚ4•ÆÂ’±í øö%÷ Þ·2 ¨sÅKm:Õh:Žê±‘ÍÇvÅõmÀÏ7&*Ç‚ºÈ(œq™Ëoßl|}Ìw•9`t庈$ˆÝOx©kWy¶œsJfNUáO»Ü÷v;„ò ÏtÝ)ñt%*êH¨c)6ÔëÒõ­CËF¦,Beßêïz’ä{Œˆ^|› ð*Ä‘äÏŽ}À ¾–&~.ˤlKI‘bkèØI˜(kC¾MåeÃÍ«ÀÛÔJŸÑ7ÃÁÊDÜ#¡‹¹¹ÜÁ"0H€­É¤·áØpÍ© Ïd¸:ëµ»R‹”ã{Y*€…UQ[Å–¬ÁQ711LµíR¾—øzê:tþU=¤°’›]wr׫8îþTêB÷ ½ŠÔŒ”+“ET㤇¾Ê)šÚ+ßm>wÙ~ˆÙ6„{¤¶3yÄõÀ¾©©a°šù‚*í®÷cÝ@Ì£e±)ë!¢QjÂH׺H¨íå›ÉdÎsâ•ùHéñ(@H$Mü`}/‘ê€$žúx=ú3Tê¹Tíꈂܮ°imÜl“ãê±l4'×¾ÛEÈèN'#åŽb˜Ÿàü¦/„L„iUè©uÍCNù[uîR\¦«xÂÄ唡×$‹F2$+*î‹þH‡Ï“œvóaÕ f +n œÅPRA‚@]¤ g!ýk!ç’] a`Fó‘("§„ä·\v”fß5Îu1»ëdšozÝR˜@'rûAzÛÉÍÄÆ–[dn|óƒm$éÛ”a¾N¼( * éhƒ_ŽÇ^¯ëz¿ªÏ€ƒÄ”TÊëÈÍÓ18¥ ÒIgOy›ŸˆCxmÃXéîDíräëkQÑâõmGús…³<©ÆäÖòÓVf<¸ ´ø_.O„Úü8“—Õ‘ƒn"MS Ëù5ñ˜M;_Œ5# ÷íÞ.12—…càt—[ÌÛ}ËÈ3”ìUâ¨*MÒÄSl}ar5µÜùgxˆv²,!#\¥–ÚÆä)ù‡—x›æäo“GÓ\"Wû–³c4E„˜d•{RpŽcxêÝŸ«õ,V’ÚmpL¹(ô\í…Fë´/kÒ1æ<šŽÒm—þÀÿÏ*tîñ‡ñtþÿìdòüp;ÿ?üWþÿgüüÓæÿÝÚá‰ÿ³ßøO~gâü»ÿgO[Éo·Ç¿žøcÉñS‰¿€èRîsŸÓ÷!ÇO~BÂK6?HÙh>¹èÙÏ ‹×ª¦&Ûv¯y¤>”Ô„ÎÕMéºGTÇÝl7öZÏjÐtù¾~ìý–k—«N»œKÌÔ …SéQÃ÷ ¤}ÃSYHõZ¾ ð†† $„vU—y0‰f ´!`¿+h½¿~ýý‡Ûà…ü„›N¤¨&Ú\iœÃÝ\*ô_ÙN#6êÅ„íÕÙƒæÊóª"Ex ·¼ÕuÞ)Œ5×ôÅÌ\¦™VÒɼ¿ Q}MB} ÷büuôõØ¿ä‚täj à–Kšœ=i®Ûÿ×®Õ$Sj2ùÈ }&È·ÕêqG§míÄut†m*Ê=/YQkÿ¬~ñxM+©K¸¢O+êh@i·ó[·oC8"’djZ"hÝuþßû Ñ[S¼Êó/Ôû)³ž„ðЛ–éÉ´­6Ëk½Êò ÄMwGÔÚþö@X©Ž•„©¶í·ÊÜ8g;öÍ:3ý§»òÝÏa4©¤Á[«6~¾T—š?%•¿‡j¸ P1œvWD<(èîwîv¸y³eU'Ͳü5ëM x{wÏKÙüÐ:7¶á"¦%©Ó®a é†RSEP ÀüjO UPÎß&0‘RâNûU9‰ž’WB÷Ó—bÕ| Ê~åg™¶Îìr4—ܾ‹^ÓWÈ~Ì730¸¢óbP|7a UÔ%oÝÄ®ÉeÀªã Õ€R'àK*í1Fûì·QW¿wwÒ.ì#‡½[b·Iíñß@¿0}*l9û4—ŸF£‘úK÷Báz´{2a‡ÿWA=ÍWh<îóÿ µ Ó9ы̚ÈîV‹ŸåÁ¯= û|ÏÍ,QMn X†d]Â(ÓçÞ®ÓÊŸ;eÿó&¦úÓíBÞÞj•{ÒBò¹{ãäb“`!ùHýQ+ù™HVÙM÷Ë6?3ɹ›~  b‚×¾GaéPߥw«ÿeïßÛÛ¸ŽtQ|þîOÑ[ù1é€/’ìȉ÷¦%Ùæ‰nG”&“ã'¦ 4Éh ˆb¢™Ïþ[õÖeÕên€€ly²÷ÍÞ±4V¯k­º¼õ–U¦ƒ"üXz¯Ùü“Ú•Æ`[ÓeNŽç09ßÝè§L/—ÛÂyåêjhï-ë!í­_e[Ùæþ =¸“ÙþÊþþzÙîbƒøéYiVArd^×:×µ- Æ4¼sždÇ éUböîÝñ©8ú¡M[‡v Æûxv#þ£¸©us¹}¬>EÇsJ·1Ì…R¤f̨µ½ã4ÙØ®;» ¦Z¥»™ÒImð]½Û‚0hÀ‰ý¤rlRùc¢uп"ö¢«‡Ø†Ó†£Ü i«‚Ê]û§œÅB›eä[ÅGAªÚùX朷£ïfß•äïi(j™ ¡ë Ä.çÕÈz–ª VžºjÕððî|ñöK†Ã³c‹'j3ñç’¦ØPfà΢¾(±9ØÒ‘¾«³ veC||ø…êEíµP:”qŽ©¥Ä·U“KÚnE¼œUžÍ&a ‚6“Yj£%ŸM)ž”Áè\ÿ ÅÇ+jñηÖ8|!Ýô¶ÑGáòPW]§; Úßaùÿ¤ƒ ³æ6]˜5ø}h.¤>¢lÎÖvÖ©Þròmø÷9MõñOœ|Khñú¸B–â_üƒ¶b ZØyºàzËÚ[@¬ñ䌔â’nõ©'á0fEXãqYΔµ(ÙhâÒ6ÊRê®ë L)ĨÔ<”ù­rwL/’…>9}‘ý`ÿÛŒÚÃNãÎd;öž=Û{ü8¿¼|xuõ° —ºBD|Mø×xxðÎÿõ}ö½V?ÆÐu]Kz;wÊì@Ú!Í/äœF™Å¾å;±Cpå] ÏØNЉ‹`?Ì`Ã_›Å®éŸ€¡iSq˜Üع¶Å– }´ Å#:Æ×wò¯÷÷÷ó0\+«Î‚C¡íCí ‚øÝ»¬Gڅؤ?‹YT{ÛÇ Ýc®…bÅújn“.æãÇ4FkžÎ]÷øÅ÷Æ3† ÖÀV`í4l9Ú*–‰”XLd-FsEÀe&QÏÃÒ3DŒPRb2t¨%Iq¾Pá w<Qe¢r9u¤bW£jAÈ»ˆJtq>Çü.M–ÁP×T“Í_° ïƒÕµnGŽ.fp^ g¸ö¢~ã‚‚žBÏ  y½gM¾í¼.òž tüF-I²½ÿ#_7ͯ^ç; Ô}1¯.Â:/a_K¬tWç?<—É$¶æ©Õ0øÑJV,ÐJº‘oñ¶VÞ}$`ÄÓnHš€hÝIf*¯Š-ä?ŽNèø©°åMã³ãMÊ¿²lŠ‘òNh—•˜&œâãÓLÛ²>7ñáNšhÂE{Áü«—< “ùý£ìÁ½¯ƒFòæs¡éh6ìoøÓe]5Iót 3 l+êÞü- Ä;»$H> 7Ôy‰mòh9'â„$݇Ú@%¡Í’š4±lãŸEãþe±)†!¶¶À¬ž„̨o[cB‚ÇÎÖ£*›Äœ$Z2Ü¿Hì8š ÷έd+ÀÚ³‰ _Ñh!RÚç§ V@à=Q‡'Ä&O…åð“5=¤Ògª¤ÀS‚ú@ðb .HÌcoGZGYG^vüaIüø{%ªéx„˜4•fÌñ¸ågË)Á2 Ý1ÌNkóÝ\E)i—e¡^l—q ä«F‚Á”ب ŒgU«QC€`3%IŒÃýFLõ©äÉ«c߉¹Ø˜™Ê»òTaö¬KB¦Ê¿"ŸOW½!¼… sª8×–úƒÅºf˜8ç ¯P¹È5·À8F£ëóóÖ §õmï+yÓXS3“žò·@ÞBy5[ܬ› \üuY…¶’4m›€lçNCq©3ýys1/á`»£ âä{åy9EÒe’ÂIÙ¢3‚µj¢ÿ.FÒ\ìQ`äçÏüIq«›ŽŸi’]uŽAMZ»+L)ÂÜfÉ"6²í Ú¸Ó²THü¢&ó´Cd†¦ýM“È©iˆü¾  äýÔ6ýåCÁëâ¾'áþmÞQ¤¢ìäéP¶6ÐWQs`>¾XÃÐÁ®5Ê¥åUèÿE=¿éÁ¸ÀŒ`?HyçS•²Fìcþ˜ÌðŸf½ß>ü»-œÏŽ#²áö|ÇÒ[ëèE_(?̪“¹Mz©hdZ`lÿ¬oû·|«€tVïã‘­É}^Ì—=Þš~~^LÌ»âdT»«ãƒ x´+ö½:­ˆ²ÖäRîà»ò&ܪt1€ç\ò©2£ög5g®Ñ•òX]X¬3%+¶8Ûy<¬œÕä×j̲!+Ž<ñe/p¾®å¹bº. Bb¹®ˆ¤H’¬­±6Ujr£KP£”FˆôVÕä?Fµ_VÁœäXöSõ¬¸($¹N‚ä]ÂçÎ ><‰ð‰“•y§iô³Û Ù®ñQq<*o°Œjmä3ÏÁ°þR”‰…C™!ä'6ü€¢‡ï œ†Ï&õè]ø/åÞ+ÂGÕŽÛñE<èòñÐø];#Œ—W.…€W#ãÇû.3vá*¢vÂ׿tÁ ‚¹Öìh~•& “èO4yœéI;lrAÓÒªÂ=¬Æ)O0\ðùS‘#/Îø+™2)›Ø´„±o%ãâþbF»i^ábñi¦gAF—¦ô $+ò.ª¥ÂNÍèž÷[³Ò{S.²qŠ[r¼Ó%¥ÇOêæª,yG†E¶sÉIõgÞ`úšMw˜]ç]u‰L.SŽwá$ú-B@e (`?’YÌþõh2°+2Õ`F.£õ<_-;ÉÙ™ / Q~å`<ƒºÆNÛŸô%Ljú”`!ô†ì4dÈVP–® Ç’i²ˆ1¡å*ÇåK Éù¤¾çæd×–×´`F0ô7æIg.ŒË‹ $íÒqÑõeD$‡ÃC¤]¿+³Ö„l±Cå–• š®*¯qt Û*¶„NáöE÷‘ {3 Yffí+: s‚MPœÈ…SLÚÀ!ãp¤{Ð,ÆsØäRïæØ«U.RbNIÝ/æ2²G ¬·ÕS¿Èb^›…Dúd‰5Å.íó ­^Lë¹)yÃWH^t#J‰O” ˆy(ÕÂ5>2ËÖ——„AJ°îMž $Ò…¥¾‰a¬Ì…±6ßw>tC±ârPû3w8M¯½¬…vI—›Ñ#a?Î&Å&¨8ú¢Œãîô/Ø'%8«:ê î º‘:똅ܡ½!¸ckŒ^7-o.3Á’¢Ü>¤Â€^ÎA¸iÊV/Ãrʸ!ˆ"8Ñ£gcKgá;î"¾û&ÿ ßtg§I*@åÁIpÆÕ“¿< m±g?4›7:ÞŽ{ZO¬zʧ‹#Žâ ºî%ÿw˜+ë|ìɹ0¼¿.Õ—;šp†ÙŽrÓ#lŠíE,³Ã3ˆæHd‘ºæÝH]ŽÝy°È«í:rU,F—¥fߢ¹Š¥¦þkj8ߩΣ¯cW*Y4†ÑòÏK¸0ü"Î#]P3ÄAáÀšËr2á 6cß _ÿÀ·¦Ç°Þf ¡& ´±T ±ez6f¥•oÂjÎi aõ‹–ŒBV ³bßL˜¥z& ¥Ù½:‹gåE¥<À’µù9¨viù>fAÌS*"áˆt‡®ƒ‘;ÜÒåùboQïÍ @“B œ©ß1¿S..÷ï ò=úË—á/”\©wÇè ÞN&€W~:¥ âÎDt&nP„±êSŠ›ªéœ®ACÃÅÛ:Yd†éÎŽ;l€]e-‡NÕ04ˆ£ga‚s!œÐõ4ÚWÇã÷QÐ 2ÐÈLSx³˜™Š„ïB¸Þ ²<ólZ. hÊÛè 'H³ í,Ηw‚ØCBã‡ú&ÿ[Ÿ=vk§¢L’šÝN<“k%i+Õq†½]‹}@Û"ü÷žü÷¾õj¶˜ÝÖŸŒg¦1ö#íVîºÛ C{¿;<øzx0Ü¿{xoë¿÷ÿl27nãñã:S"‘`ž¤²öG6ò%÷àã^ò™o=¹QßTä›wÒõc¥®@Œn¢*Ð_É{Aÿ!¸Ï°ýØ…+°‡o,‚™kÒŠâÝWd8ú/ÏÚý…|Ñ~~­¢aÝõ`=¤ÚâK}4 ˬGX:Ô">Õ7ðÅ‘~äüÈYZƒu‡ú 4„=‡„„#•‡ë0cŒª˜P° ì æf§KA˜âÒ_¢µç°è ý•Fü% Fu¬¤ úèÉbFql£G4¬–èÒâ'/Ïà/AáJö‰¿tkuí=¡?Wî«$☺bQ¢^!ï•îžµ7MLQö‘˜l‡æ;èù䛣ÈånÜhájÙ“Û²W ONHºqO› #­ òý½Ãû÷™}²¢Äz7gÀ m %Ú‚/k%-p%»V‹¡‘òJ}».#(i™°‚ ŠÛùMÝŠéO&,XÄ®¡)wÂ!|0cÝU°át”AEÙÛ¨®Ø(·Ùœ´“0h[h¥Ò掓K²T!ZÅô«%9;;óî Ë¡¢˜(/é*Ñ·¹Hˆ¸ã½««½›ð'ÿñLJϞ=<=]a {©xË&„†þ´þ§ïô÷—Ÿ´`ÃZÊÑŠ7ޱ¶^ë°d¼ÏH}õ˘ÿÖ·ŒŸíëùÿï„ÏÚü÷þ›ÿï×øóËÿ÷ŠYY´²†ðþ€G[ÞÛŠðþz)x´¹¼w;`xäÞ:Àð}{ê<ç¿Ï v C©2ˬ#VWÆç²ÂêtsæØ£¤"yIÁQò?­†êÙ¸FDHrø”ʯƒAQÓŠW±“„²uèg;ÍßKÅ¥…æI1KñBU½ mUC3 %vš1‹º C‡ïrØEà}Ñ?’ý7V‹Ôx;åVɧâ“Ltmñy°È’ñø’W2+šwþ.`JyôH'ÅdüOÃ,àwÃ}.E¹joFå [Y${ÆâÔ›A‚"›Vʇ245•1Ójp ¡Ô¤*Æ{pŸÛTï8ÜÁp8Œ`Ê>Ýsï}«3Âu.‘&}#ñ¡’æ‚Ye´Æª9 iyÇMj<¦Fõ†³ áj‘XVm9búp9¢©à_Û$aŠ€Ú[^% ÎåûA®çXXc0XÎ Ù Ú‘¨I†,˜V óÞwGù§p Ú®-zB'¾ÉÄÉÃóß(çŒ+1uD(:AeÝÐmEtFè‡ä’¨z°ã• °õމH’|Ñ“ æ?‘íçˆ º9âµx°/ãäáVŠûhulƒ}Zbm¼1¶ÆÙ§Œ¢¥˜ÖøßC3ÓÑlº«Õ=âß`¥Ó>} P€Ãqšz.2AB½Ûãj2bäÔ›ÆØVõ¬žÔ7„È_ži!¥Ø^\A†h~Á)sñ*KÙô„°6V˜OÁ(N¿‘wG3§ (îíÔ´· é{µW|ƒ¨,æ2Ï%‹†ÔýÕ7!+WJçeÃÅ*ât¿¬ZE#ô®€´C‹TÝr€r®duöEkK}±z “¦Ÿå? Þù#º… ,cÁùP?Âü‰®Êðɤaç%?>hÊÉ9aX*úo’ãÕ3=^dâ~zzìþbæµ§÷)dZÒ!WÉï nýŒ%-È®í{‡‹°üÔ,Æžßô½ƒ÷YÓ$pP±ûpÀL„áiî¼’ƒüÙë7,aŒ¨$(ÕxªzGÏCaé }äùú¨—sdðPZ©pÅDãÄ¿[5Y~ ú¥DªA"÷üœ•¸r’ÛY©±Î[(O…Ì , ;’Eß7ª•d1Ò"¹u·I6 _wœ×ÑÉ.J TRe­Í˜_«Íî7Îó¼N†ÛºÄ?{Ò)›¾YY ³td[¬œÞHôÔ<É`~g…£«@ˆ/ðíüÊÊ.µw­|ß:]@ÚkÍ«3’0A¨Gm‘ˆ3¡ð[beÒÏ VóñRô©èn9m‹-®$(3P™ÉŽEñ¯œ•#²¨³`¼Œh®‘A{ÎTÈŘ«a‚×J½lÖ-:{èXDöPÝĉYNÇukV¸Mml¬Õ¦lÊÊqÉVö÷óŽûdÕ˜pÕ…ö³K]’)–˜©loiƒŸåéËÖ^ ½ÃÔ\k¼EG­ÝÅINp\ŠèQ=¤Æ’²¦‘ù \/(‡a·Mo#éÝ7dò¿‘€àk×+‰¡Ñ·ÊsYqà&£-´¥rBò‡~$XÉ)#ðL=Ã&äÍ+ FY{3šÚ Æ*6V¯Â1ª¦dnÑ9ù8§ãÌ`„ò½\c”¾Äö bGÂý_5l@ÐÔ­Ù DܶâZißÛ¹H²ˆ¦§þ†gCªÌ<>”³‰Þ„ú7ÓmÀ¯4æ® '€>òI¬Žìµäæ³¾š!œþ(¹UR;Ûú#¨‘Âu¢¢—FÙÔ¦œs¯yÓ1í¸Ãf¹Ë\©3Å£'(}g4Û³Ž£(²'wò˜qSÿTM?Qð—-Ç$÷üêþsPS\æåžÏ—o²nŽr }"YyOÌræÓr¦®œN‹jæv UÓŽ›£s)ñŽæk‰TŽ`¢mèºF§ž:b' L±õÎxv ÉEAIì.÷]UÄn¶rÖ? $;h‡Gf»†&=È"òªà¬íë¥è~“ : ÚÀYÍà`¾¾ÚçÔë3:$ãùåµ€W¶VÅ亸!~Dɱ ŸÔ8s.“ÒaÑ#‡*°ÊwÎc¤$H¹è:ØVöÂD„yºÔê“àì9Ih¶ã†Ñ›©WÇQôrM 8YÏö+2T]ÜŠìl¹3ÍóùXO:E‰ÚÎ%S݃j¡Ÿ'Í•Q»;ÓÁ™Þ"ŽÒ Pcü7ô7¡ºú¸ŠBMkTuiÔnAì~F¬Ú#vÿ7üã6Åg{Çzüïý{GÝúßþÿûküù‡Åÿ~¯ìƒ+¿6þÞÛø{+àïƒõÂôÞæÂôþíÀßðÈýuÀßð½ÍÙªšß÷© ÷ýµ5¿ïoRóÛH´­¼¢Igže ö£ç5R÷F¯º)?J1ÜIþpo×È×A”:WiŸâ(¯¢CÌ¡PFPâªó/¸A²Yž`jQ>²ž5L´ëKKËë8 „š\RzÑxÐQÑ9úºî4Ê¥+¶á¥lr¶7‘æe@¯$&bìV) ŸÃMì)š9õÿºj.Á§ÎÛrʉ™”€9fËY0hvÙ¯ z7ÏþârVÇçbïš1sTц”‰\mf_-@UÁO—…†ÄüW´u¶‹\ËcA“}»¨ë·çÅœ²‘ FûM+7WV«j‡ÊȽep@¾ K<Ë[Âó?¸çbeçrÒø*Óé¾é|áÞ•|ÿ¾gX|Cµ¨{»Å“•ß¡LQy„Ku~V]ÜI;Ùù±ä•ݩ߭ªH}ÜÄ`fYâVEj~8¡Û#â¯U‡R+NœÕã>YüOâŒ4VÎK/„RiRƒ¾;\¥k×JÂiáÍ×yÓêFòº˜‡HÈ-µÉ-o|VTóFËLI>ÒÀpMçÓ{ÞÂ+£Ö” öþF‹Ü^Ë^¨ì—)N|G ¢L‘%ˆXÎÛ¢Ïgs@³Ä®Z×Û]ax<ó¨@ù)„š„P ùqÁ ÅÄbÚ\?ž-Í& zâ|g[-VBÔŠó`× €¤¡ÕŽ&}K-©"` †•,¥©B`='ôçŸkUõ•ÞÄ'[;ˆúFËyã(ó$a;¾‡7Iʼn'$£ò5"Jƒ]¼³ …w¾ÕwzY•~äÆ}:°±ÂÚ¼uãÙ¡æìß»®%ŽKÛW+Îý›)ºî›GwŒèê ÀqJƸÃ+1Üp`ø @AŒ¢Ënkoç/ÚzßúNVÛ¯+Û\†ÓúkÄ¢a€;»ßd­©Ù¹¿‘­Q qÖ Óð7r<âèäÛp>~"Ú¿øb¨æû…‡ÕÃtþåºváÓ …-Ú΢KÆú(æƒx}Ç&Nåëâ&áF¶ù0¦VÞÉzr”Ü1‹Ó©uƒÈ¼jKåÐ,'Hh¥›¸]Œ›ÜÓ¢U¥L3Àæo\§x½ ,Ò&㈟ÔSHÔ„èäIUT,˜—¨è8_N‘P€ÚöQgr¤¯’ÿŽh`T Žói5"êÞ a v³˜6Ê<†ŒÐ¡^Ízam¾ÿÜ¥Þ%j`#EØWGÂúMGnÌÂzNþWè×Ãÿ¼Kªüÿ/Þ嬣½ÆRñ8ò‰}ÐÁo†Hú6&«•Ùñ»ûµ©ãò=³%ýÄüðèááÁ_òÃ{û»ÙÁpp4<ÚÞ=:Ô_,–ÓÉÁªŸ~Õ~ ýdR¯x¾ÝËüfåúÏ“Å7ŒMˆðúláð¬ôïs ?Tá_†ÃîD ê piWïçÿI€Çð6ü&¨fŸ4’®dm[h‡d¡®µÐÂ#)GµZöô»h•ü ‰RÑ”ñŽ~<Ì¿ ö8 Z –/>â7oéT«ria´ÇÙ ;Š©º NK\ÑØãaVë“XIÊ\½è¯÷ÁìÍÞ¿i„…ùwPpÝlK²c<ÙµTIi”¨½E³­Å ölµ’árK¤úy “Ñ_Uʾ˜E=¨Cl€·Î„›Í*ðòHôMĤ9Zhæ(Å=sF¨ë­ƒ¹Ü;Ü×?$Mÿ9Ì_Wj¬õˆ‰±?w Yû¤ˆÝz3UÓ MüCAÖÜôz}§‚{Ð|W Z1YŒ×R Ïö”¨µÐ:§šO‡EôƒÜ'ËñÁýûG÷‡ùÓÐ0i [ ãú1@ê)Õ -%¼C#ÜðÕ×»¶À¯U”zô¬Ì,²‚ÔÄ`²k×Y2‡Îó³ ü²¶f‘e¾I&Ö…ß }}'˜ð×e1^5iã…ô0˜@^ÆðOPo‰\y**¯ëëiSÅÈ•s+ Gf“›Þßhj¡8Q1ÌÕ.n!3QdrÕ ¤%)á—AO™z!üœÓ:G4‡Lò7ÜÈ/6W)>Ç¿çNÄÅéñ#~>+ºªÒõè e¯·þcg{t¸¥‚ò´põ™N^f6§ê™:†÷¸/_ï’û†•—´@7RGŽ žòÖO‘°êOÓåŠks^ª«NüSÏ{ºO£Ó£š¹š!w)fù!4‘ Œ æÐ÷xè¢RÞz+Éê fº‚ ­UTñCizh@Ü å*­$®K7ÔeR{à’†è¶t™ÛP&3-˜I鯤Öz2ùà³@ úà–µ,G+å »ú sZØŽXGDÑ)¨-\‹½}%‡‘Ž\0``Mùƒ{acòƒl²Rš+Ȳ{a†5£ú?´`2QÞ•7ø;™²hÖ'ÍÔçßòïl: -$Ô7†rxaõ¡ÍD»kÕ%Í"B¶AÅœ лIQOk³*‰ø×ñ/pµqôeñÐK_˧ʇ2>ùØM“ê*¸2¸µI®6*U±t4Ú°[Ù:;ù“Gê˜ÏL±0>d¯>Är¹iÿ²žþÕohÛOäμäW7Eøøè˃ýÖ*I#ô½_¥©)2zÛut”ðÀGÊGÒD>V³|^>–£d ®%Ýåê‹ ÜÅ4lq HÌ¥Þe:Í\Ž2}­ÂMr‘>48^ðÅœ¼’Yz‹Š€tðT{‰÷;y°bóèjã¯Êùá ¿?~e¤—ÁÚnù²<‘À‚ì&„ƒ¤º9ÉCÁÓ¬Q&½ïÁžTHúd,·ë)ªƒ/­–j‹”e\N #ïÚ#¼²»ßïï‡ø åÝž;3MÀ³aØû¶W8'„Þ“ùg´a÷äÊV¿ì¬b8<ÓOÝdjýá¦ÜÕ,»§‚.æ'wGèe3Ѳ8 ?Ï48¬O£R^й^•Wµ(íá–|ÌÛ'îà|9¸7 zÈn"Í]û:ûò\8wñ¯‡öWªm¼ƒÙäI‹Lü›s¥{¾³ü^ñG{1Èiò 0ùžf&2púñÈ—qž¸æ™=Eý”:>èbx³Õ—A„ØʬP¤DVv ¡ÀP ›âÞw¼s°‡ŽOŸK ÕÎ6iK¼ŠÈ}0lÚ1Ð{~âá½¹{t¸×ó¶(üR6Α%N “FmWBþŸ¹[ä¿Ü|å†'nÎLׯýÛ½äWj`[=ªšQ½×,n&e¼éáB{Aw ­†ç-  dö¬X•cÒÙ™À°éü^öŸmù>©Û¶ÉúžJ[r·P«±‹´±þ¶ÂªÆ+»R´leÊ=‘ú(ù‹µìÂÆ³ú^kZk5Û!$@ TÊÈ,ñ9ÃŽá-§q¸— Ðn^2½†õ"ãp\¿ÖÅàÚc=»˜…'/ÓᢠqÁ§ ³(J?­¯(㮹iˆ¨^¢~°êõ2o¤Uq«í«…ûDúäK± ªš!t]]FT4Î` &h*bFJød—ngŒÇšéiyRô7ŒôAkWx*W·ú]mt&I_ÖÔyƒŠŒ%ªM’›^7È|©R>vªIfèZâ+`;a ­ÂÏÍŽdÏÐûwaZ÷NCT±’Y`±ªŸþ‰œÍáÛѯè6=öžÁ\žh0›ú-ûÄ\“’__„Ìrúzjس´ËÁé¼Ûš7¨ŽJ-èåÔ›ð6×LëÇDƨ¯£CáÖ¦uZ³žx_ØÐoÝ)ë8ÓÂ÷ìoBŽ@pE+‘ÒFÀd‡T“³&‹¯Âeð‡ü0?Êïç_æ°»€£œÂŒwkyÅòb2¦ª³ñE,1AÍ\yŒ`½&²Tp`27åä}ŒµÙwgî /¯f‹›ÝÌ×s‹aÕ°«µéxŒþg»1pCu3̾oe¬õ. -ë½0S‡äú#è†Æô9žÌ/ñŸL½Ž!¿Wþæ~û7rë*'n s˜:ØWÓ4©¥îÑ~LÉÝAåZ¥’›w߆èîJé£wƒ˜·Þ©œVÒ%òOŠ ŠìÝ͇Ãð?Ž•(4>úÃ_°DÿÓóe'혮”V†n™É^Z<|ɨB†“°G¬Zdr´‹®ôˆä¹# x׎ùá’çÊ|xn²l€OÑ(ÈÑÝX˜|3Âã÷^u> u9/ËÞ‹.Ã<øk.è‰$|©ü|™ÈÏ‚ü=ð‘(§þìF©Dj.Ó߯’£9¸)¯R‰&Ü•ô*·n²/Î3Ãø;ò£ LåÃïYR·N .mÌ¢ Ì+ÊTY¡ã†KœV>cê•5Ó´g&³^2t2ÔÚ¹iMc¤1ÛÌÍ]wz²ÓÓZ8líd®@y¡1kO UÇ톹°1«“ÌÑ”xGçÏêyI€æÁ-K'TB8[Lê 8IV¯U,.íŒ,Xߨ²îØ¸æ– ­;N9AGûR„n(³S¸'fz’ª\M™„$K§píÄå«&.[5qIøÂˆ=ÊÍ#Qn¡`ÙP±Á¯†ÒÄË>¥æÑJ¥&3¥¦ÄDwœ‰ÔWŠÁÎèŠJ§9^áÉ uÃäÝ[âÉH¯‰‚iÇc”\U¢žÀ2¤ì0ã³ kœ ù+¾ÃJä­–Ý“GMæ®3\3Æg–±^Άs®Voß4 "¦å?M“á]~YÍìžØÕ(±Æý$ºIº|I”eÚsl^Š*·{J6°Ó7iºw JzDPÒ£µPÒðÈ ½ÁZHÒ¾¤7Ë͠Ũ£oA‰/ýv°7ørp7†§M£)í™â˳ߎvã3ÌwV5V4b§øÃÙ /þþ—\ÉøïÅâ›?œÅð×Óúnl·lÁ`¦*²áê!Í‘ä ‘þ‡îk†È§ÿŽÁ7øýßÖF.ðñc<Ùiçæ××µVŸvðBoˆñ&ŽwbWó=…´êŽ â¢jìMNB>j”¹ûgegn ¤µ’ Ðß3“å¢ðDÃÌZݨ‡Ü ÚÖ×›ša‹.õnµb¯âER„Œ¾zšKZ-‰Ü}Sx âªÒW4*S2˜‹…4€î“Ê%í­oZ‚Ïü}x r}Œ×‡<ÊÚgŠŸI‡ÅkÁU<Ø ëkÛÌöv¡hmGÈ4¥<º¢y²2šuzX›¡³0Qj‰åæÊîè£éî[p¡òp›Ü sÿèOhÇõ·+&Ä´·É\¡àÌ®+¢/Ö™sÍ÷Ô7¡³ªJóÒBþD WMÏç…%׿{™â‡Š·:ïDQp²À†´<Ï݉ꖤӽúþQþàÞ×Gr ¼È1c2‰OI›„I}Ev jèeV¤0v…RémȊ鉔¨¬¤È Up w½°As¢{/Œ÷ãÓ·/_ÿhµHv néù³8PUƒÃ§oß<ÿãózÞvE;hx„ŸoÿåøéÉã,YçH‚„§ÂÄЃ'Ïñhl+¼œÒ(±46R¹wSˆÑš£Þâ}2÷»”´é,¯ŸÓAÊE‰Í´oº%Ã:èN‘’Õ øÖž#«ÉÝ¥/Wܤ÷è&½·ö&>”4¼u¥*fJ ñìí¦?Œ¹‘ì5¡)ä19é”mx.oTѕūsR¾5"ºD/§Ì$,$D±¿áÄåøéa’K]é’¼þ=‹Ï¿•fÜ'‡ö jCyÊk§Øí cÌ­1æmHyEûH1£…3¹Ä÷Ž=ï§À=U~(GKbnŒd–ß®øMK3-¢{Òëª(OçþeÑM&èܼ²&`vB¬ÞLþw¬ÔÃücƨå·õü­lîŸÈk“|„Äćݤâoðì0ÿ‹K?¦þÆyã„ά;­‡tÎåÈHQFvþBÊ„”çT;ulõFÿ3Jy>„7 ¡YC€-ÈÀ fX¼=Ø]ãŠ! ä‡ûôÐ:þ,˜ûÕlâJÀ±Í?"­¢¶èÚßm "YFþ‰«F«ÓÜç¬ýf{hóÙ |¾µ&+T|ÃEIûg1ûšÉÕeóä›tf*gæ– 0_;źñhÙ’´ W©¡Ý…*aº6 ß&N¦µ³Ù›4¿8p< ‡%ùNŒw¾Ñœ`WkVÛl}uMÿþŽÔàˆvÿýØ|u(}ò¾lqØCt{ñ6¤Á{!ýïè^°Ö+•xvšßÞ)ù÷<ÓÔé;daÐãá»ø!ÅЦTyîïÿ!¸Öüª½Ié=ÙÖíëÜ/÷×^?á‘W­0cëò9VkŽôKIã V½¦ì*9ÜÍl“0Y*ùû2¼³6çV/ä‘ð©K‹?^P}aà&ÂàYw.vÑ '¦ÏÏýÆn&±¬@X5™3 ÚYÙFàAªþòÎüU*ƒ†Ù‹)ÜQœæ ·4"¯5{~çˉ€|âèësÕwãeÔµ Oò,‘KLèšØ†c!ò³sP 5²œÏj—Y•dD¦ŒÛÓ6öú¹VœÒìeÜjÅ4œ(Ã3De=Tjæ;§RsptYÌhH±¨”åf·å¯!Ù£¬ÞÍ(ÌY;Ë¡äU¡#Ãü¥"7Ý©ÊÈé£/Ÿ¼ýñÅékg+¡23+è´_Öä‚ó?#º&oU/ðP.c¥}vyÓÀ@U˜Òߟž¼~Ò…Úów/^ýpüüäÿ=~}òâ¹G8ÅïÍsÖt~öæùÉ¿¹2mPHî» TF!%¬ÌÉ¢ Ð•Ö$ž7N±2ð ùvW“ËÊ’n]ð£É¥ËB+„àrnâ@ëI5ºÉ‹ø).H`?ÕÌ‹sZñuËJ |UZùšücc‚+V X *“¼x%g\ó5ƒúÙKJÇU ‹à6ÏPEêT¸ê›ÞÌŸ À×çH™>;£½ ÿYÑdǧ»ÂÝv|ª$os~¨á“OaWÅ4ØoŠ_ÊäÓtºÔBàd@@iÌ4ÎùÁƒ="¸a4L¶C©9Ã<%k)¡R:¥ìå©”s|ºg6‹¼6óUêÛ†ìÔŠ”yEn\Ùܶ‰wN~x9`¶°`§À&!4ÄÉË]¢dKÈöšŸñA.ëÐQ/¥˜8ŠAÉ[Î÷Â$ÛTбLYg„ÝN»qмº# &äýǧ_P4¦*¬Àxhì”ákËæ%™r„•A7'ï¢jL˜“¼'Œ"4œÙD¡áжý†½BŸËvn [cO6®ãËÙ¸h ûiæŒm£PSZÞhçÁ¡eêð½îº*Šrz[D¶ÝxN¢Cˆ ñB’H9é9#ÁMíR5ZN RvÃkJvÓûºŠe˜Â¿ŸÄb¤)‚/ÌѽȘ¶•FªiF(¥{‡_Ä«â|1{x÷nøßáü|´¢Wõüân5Ý#•ænøœ~2\|XÜùv«Ç!åOR_Nû½†ZFÜFó9Û¡Þüîw_mÙ;úɽÓÇ©w»ƒlTÌôTLË‹zQÉ"SgŽŽ~w¸egè'[tF—Î<{|aSPÑYzÉL ±G‡G_ßß²Gô“-z¤K: éJWêÞуým÷QøÉ6ûH—®ðu:/Ïé>¥³.ý¸wÿÁ¶ý?Ù¦ò¸ôƒ§*­P™NËWÛOËWÛMËWÉ´ÜûÎg½I'¾þÝѶ?Ù¦ò¸t‚4‡´#Õ´ °·½sÿÁƒ¯·ìýd‹þéãè_¤9Ö‰A"‘MX®ZÙ¶=<üzÛ饟ls åqˆPFƒéSê·ý‹áZ)Ëf^œ/6êkÃ{øAsÿÙ«ÊÅù^5žï]Ìîí%“±÷þpoÿv1òÉ­bœÜÌf“ŠýÚÌêÔOžûû÷¶–€á'Û̽¼£AF8%gÑðÀ e]7eÆCš—+¼æV#ø 9žžD@l*›âê¡ÿ8#0½"صá×kšàl(dîC×ëþ (éʉªO~àŒƒ'­Ï™M”ÆnpÖ×ôBˆ¶fèÂ'Â4=®è\Ãk6fÏ›¨ZC§}×£ÊoòiÐ+[ÁP—æÝP {ðÏR ¤P­ÙlÑÈ¥eÀ™š¡1ä©íÞ}cþÞ£oOd·›¾ž5Jµ`ÿ6‘)—1>(P¯Õƒ ¨díXýY±FºVë0ÿª1“e¦89)ÑÂAˆ©×Ž¡£:à§™  Ã1À§Ý@W5m3äÏŸüëë·?¾€9H&‡"&E“&ªeØ`ÚÆ*w\²3¿ŒÅ£>zìŒÌ… !1êüÝ´¾ú´õá:ˆÌ ¯2 ¼Ð*¸¢¼CMW2g1-@ìmÍN]=Ęqå õ2ŠÅ(«yjê¸q`BZYÞh.¹è\£ƒ»‘yJvW´0s’•‹Ž·Fœœ_)ÖÉÑØE$’$©;Æ>цQ§Û±©Þ`CÝ~2ðÑ_¼ ÷YÙãzÌd3´ ÷ºÌ˜>n”س€³s™ñ°NÔ2f)ÁÐ4ô7ZpÔUÎ>uŒyMãeÃ9 ÷cø ˜–°¦ÅÑ—À{ÓQ¹Q¨+ÝO×eñN×,ï 9…”d×’°<Äö+¤Ö¨BU†k¹ Ru7{¡quÁ;´&lX Ò˜ÇEŽo°ˆ‚ÉÄÃ=<4}."B™#ÓE±yÙj², §(ˆü:ŶGÄ”m´ªÝí›q +JMŽŠ³Ò°¨¤Cõaµø¢q 7ÌßL‰ 5¸–œ®´´¤A|¤øðRnÒ;¨’G  Ÿ2¢TÙwñ‹†¥Ì9• ƒˆÐl÷xLb tŸãSª†x d€ÿ&‚8µ^"º ó-f^Ç…g»…}då¶íyÚœZa'ùh"˜ž:S2ÌŽG#:ê%,–ì…a”äÆé›Ç™½ÀQ™[ô–Vp'JÊRB®ÇÌÈòNéȹŸk4àoe£-¾#Ó[‡ ’ûIêMÄâîš)#3-ÅC—¹[w€4[­ZP‘¼©u~uqZg¸%“¹tȰûèÞ£¢‘rÁ¼~ýt×—OV·{øA9&$#Ì•þj®B$õP&?VéºæÍ0 rK)-”6Ži½ê´^T«_A¦R`Wjž¥5wªf$s¥E¯pà= Ï¹/;Œ6#}¥#G%v!®¶®<´ ŸV\¶½ë3}£/’ oÏJ»ã;ó9‰Ò½¼èJFédP*Î[˜øP}çåM€ßþXÏbšolÔ ±I.ük­¡bø™¾w˜³4¡ÛIq’gMa¢Q]ؤ€•e£j>Z^¡ŒÑ1ê¹{“xÅCÓ:YжhÓWÿ]Y¶Ê{|/hçjô lJtÝV‹¥ô„ÙVÓ`sö@¬Ã@Ï‘þðrþ¤äTW¥e°KÚ õ_l_›„©㪅2ÒªfT~)E×Þíñ÷ )Xß„ºi¸rI7¯”)x4LJí¦DãúcÂúy|£UTaÃV*½]³`?ðz‰ S+šqÆ–àÀ5›3\=ñ9¥¹X¤…í"Þf™%ÏJÞÈ"žâ†TˆWNLˆqIP _O³tóÉnSöKZùUm5滋H#4-J}Ñp ¶’lN;üm“ f>lJqLÀüjoíèŽøYæH$$ÉxÕÄù¢Yá9Ûu{¾3?b®¢Ö¨# A¹èVz2'›G¶“ÀÚ)÷É(¶…AZúg2 Aÿ.Gȃõ¯ˆ†™ FÛâ…‘·µÏ­†;YÙù8碦ïËŽ¸ŠbÊù*ÔZE0‘;Vën’¾×RÓ2k6òÐÐïÞ:u5ú‰úgFüª…o;¬D+¥ß:‹n5™lõ› ËáÁª‰:¡i\ƒ,&'Z°{‹4c5c߃ݬÌZýÒµðsD¡ñiÞñ´ œìr–ëÍÞ.³rH®æF°jz9bpnˆÒ ÞwVû){OƒjdâNÂÑH’ŸDãÑ}N4¼V.BrÎM(¸J{Y¯[v=xQšù39OÊ`MÉÞ­ÞKÅzÍb9cI¢.á:ƒíÒ©¶`;‡Œ„7£½âõηüß\–àsnKÞmÍźèú'÷ŸÂîÛ,¦—wj²\ÌÄ·Ò­#ª€^g/DýgšÖŒ‹¶vöNKõS- qÐ;ï²ušÝb`ôrN>;Jq‚ÞÛíá›p*~x}ú,çÒþׇù\ŒRÅ‘‚F»*)€R5WAã—tç•Tª¸ U ˜³º>/£p û2v´Jý’ª¼¹¢¢³d`[ÕE~q)u.Dta‡×:몜BåÉê©Öˆ«‡0ѨOÎùûîuÓÛ&9Ë4¾©å}ƒÖ{br¿…Ü`´ßر+0~h‘É€ÿH®ØI¦4r`Çsàôæ‡Ãã{¿Íwˆ ~wÀÿ¾Ïÿ&.øïN?ÌÂî‘JQˆ‹z EãpM³óå„ð3”"«ˆ•cÛÍm_hÈúŸ×ï«1‹ t*ã–oÕB-.ŸdÝu·$c½õaêEõ[Á|q‹Êò6îõÄç›<;$ònLTOdQ]uDçá” Gp+c…oß•7;_ïî’«8Ì©¹µ{ÆD7ÆšSvªÁQê¯Iò0DÚŽJ\5n¹¸¨Åk9-µhöt,à2Æä…]C‚Ú=?öƒé`EKÌï§oÄ5¬sÖcÏç©*¤T¹¥iP$`g÷\‹½Û%Klhé³3¡žò­ûeùA+l®+ô%ß9t)b±,Á%=b,ž÷¨=NÜ•Òd† ûN—ª{+ÊP4Íøv¾+¯ã,ÞÇtG®Ûþ%ÐãšÒ<¸gÞm•︬W–;»d*Ó¸ ýÅ. óG˜ùô Ü´™Bª°!2£•÷¥UMRŠHTœ«×–ÍGgm›Ûv—èçý[+ë*òV¦;ýX•D¸æål,ix·MH"0X¥—ù“ïÜELá&‰Äx1Cò‰Ì2Ä>¨1¬Ö΃ÞtâZroSÅ"hµ>kê RÍßúúÁïìªb¼wYâÓKi:@š”Z¹jBÖ4B¿dI1&fꉂš‹ã6õ¤ÊFÔ¦bVÀ”Ò:/ìÝØóY¡½þÁ”X‰ˆ\,MþìÉãøùî€CÝ6Y«Äà „‹‚Ó¯µÈ;§<Áé†È™Ž™Ê›y—‘Ük³â‚ÓÓë9}â°LM›ÀZÌod[~PÖ°`.2‘h3&"F¿1^‚úí¤#$#'^l¿UZø]ð>Y†¡©¿fYaãq#Ö‘×DebœQã3ZØë‚O¬`AöÈoœßyGJ4Ó[¥²›edŠDmqæSÔW[ ÒfS ¿¥Ù÷\Y¬šÅã8§“½fë@àC‹`s¦è ÚÖÉF8¿Õ¼Ü&;·xÑR†…ç!µªËN¹–&Qâ3¬Ñtö1Ñ*œ¹¼BàeÖÒL ^Åì`Nñˆw¢• ?¿;øz—×B t¹Qó˜þº$ÔA›‰#Æt;TÆf“Õ.¹‡«íŸ¢›ÄF£vÓT€;BeÉß«§MÅJ3. 9·Ö9þ2n‘iÇlÓü8¨[·EQ›K°ñó³'žÝ°*#L&{t•&¥Q!¡ÃÛ˜´)|pÿðëP>†ï¢ûÜ}¸‹ÈPf¬ú©«'H„ùüx#kƒš0€°Æ&t_Eéÿò`»#\XÛÂBÅ+_ŒáD„òz£Î°Ýú\y 3ÓqÓPâ;i´d ä&€3ï1U߆a ÿC¡ [\ª{UÎR>/ÔR—Ðèo9N$K#…™ãe~à>’kˆjóù ì¶·q )¬ÇIH5é•‹BôlEVEsoÝþKæàXt*ªÎ“DŠÞ¡ÇŒfê¸1à(ÁR}a:ÌS8<gB…÷g72--E3rãRÝÕpE‹ô †ð«e`Ê©ØÛ_OÆR IM7áO· Ä D¾î(ï•.È¢-Q˜Þ~ùEÓÒ”hÅ[f]ÑB96纑U«RÀUv&5çÞ^qMWrÌ¡fkØÄÜ-"†L^/½üÍ’é4:ߴ̹ûÔÐÔš ëøÎÓ™‰ Üd‰èL#Gç'|*$œA&f`’jn±aö§¾©=:üÒT½pÂÙáõ‘}ÈÕN‘ðÏ£›eaß6ÑBÅ=&”ÁFÚgx“gTFƉÝSîZŽb´êãž½_{"íI˜£)â9¾Nô!5—!5Š(š.r”óÏb ·ù9/ðžs1A0£:B,Ën":¯XB ›·o¥Èðüÿ³,..ŠÝôúÖ@ˆb=|=ôœ—%WÀª­š·¼@ÝÁ‚~¤ébç5Hš?Ž×ÅóEÍâÌ2š0-å ÇÎdÄ£þ•¸aFA9&M©¤2t©ðÂcå@×Sù’JÊc•ÄKTE~t™_…´ÂÂ*¬§^*<ßž$Ùô‰ŽÜªÂ’×â¦füÌCÉÑÀ ˆì%l E]Â& 'S_ÉP7%w·Ü+[ÍÄøybê9“8~Ð@¬OaeëöKb´»àºý@ßu9TðØ•üÁ´,&ˆ!0?MÜ qª8Íd›ÝÞ”Nž;¤hq1/y‹H·‡vˆ°S $Ïïí[oläú‚Ó;™(fŒG»ûf9Ë7š£ñˆhûÅœ# NkR¨¬×½ÃXeËѬ)À­T?¬ŸÓð3¡m g"”$qeÝxÛ£x§Ësëñ|ã×YIZI×'—g}®¤Ìä¸ãŽ-¾õØõêLï`Rvæ¥sSó6 ¢$2è?q?ò4gh„õñó`‘œà‹Q0ô&×˃Õs‡@\ŠÛ;µröÌZÔý$!v!Þ_Û·û«zÆÒ£îvl°¦›Ï‚Ô¸Z22>ü}¼ªëEì<Í$áÜD¢ ¸qo¹D°j‚KDD Adp8Ü’^B)27¬(¬º.È=®¸WÜÌðh#¸¾Ud8ˆe†ÓBw YSÒXÙY ÇPµà(µU%Àd¸É§ûþh¿êÃN#tîm»â™Lñ¢µeu†é<µçX[âq½bG6¿Õ*Ʊxì߯Y[»B©ÁuÒip# £\µÑ¸zÓi­¹Ÿ°-‹”XñD®¥ØdB™3ª qqÿ#¬ÞÂì””<-×j1W Bû¤={òØ;[wÆK\ xm ß¿Ëà2]¨^'St럒䣉•#1™*öß´Þ¬Ð+¨Šâ­yVÁ¤ [𔉰ÑFœ¶—øÃÎÝîd/˜ï ê”Ytß$`H —™€þ*Õóè»ÖhbÙ¹!’ìCÕ­w½]ÖÕ:4‡ƒò?F9­ç-xkm2ËìBœä ï«òZñEnÑh<\aï«ñRSÓ‰3‚^ÂxaI0•…T^¬pLa½SXœÂòÊ•¥ût ¸âÜ*L€šÓ'(í…¼LBÐmJ úU‚*Ñ ÷Ù÷ì4Ê(N’ê¾ZMíº¸a",Uüb^QØ3€„¨²•¬þP$æFH¼cš¶b1 ªëÁÅwâ$ªëË&Z+K„wòžFî… ™H$ÑJÚ¿À¬Úù”†|cš¦˜QH!{RÔvíWSynV,[9n9ÁÙb{žT Ü$íÆ Áhª C ­”.DwÉt÷gÉNæÇ8, QhŠW’Ç‘<™ù(´ø‘ÚÂ-Å3´ ÅìguNgí1%ˆÍ' ZõÜdkS­ò5òwíÀj¾ ¢6‰ü·w ®Æw¡wä#:»Ña˜U‘Ÿí‰±¹¡Ç#¦7ÊO'­0>. Ÿ!rãvWòê„~¤BLùˆ,ý} âÛ/šÌ äÁâ¢LÅD/Ó)@§–Z¾¾¬'›ŽúªÛp_ü¥ëß\“´žð÷g\Õ­‡ÇØzk¥ UÈ;ê*Jl@-°±ÝHFI1þ÷bÄf+5LšôrçBÛ¡n­òkŸ “ .òÖ»Y“\~·¡Ðn"þÒ rü­œ×Ýx`’AQ¸·=yöå´YÎ]¾™¯câ-ˆ”-¬iƒYâz+*$}¥S XsŸc¸„ M³NèOè(|—͵:ÌNå~½wïþÖDRá'ÛïD")F<Í1>b_rŠ¥ )Sõ¼¬\zØ:s6ôJ´Bçà6ñC­!&¢ôÕÉ'Ïßžõ¾Ô¶ë¯QM8K×ËÐXÃ¥Ù'Ö,ç|ÑW–Á9-Üóæ Ù™Ö×Ř2ÚÂá ‚åJQŠÔÚeu4Ͻxöòé“XÌD¿ ȼ§ˆ:wÇlu>ÀŠÚNCjqâÃílu¦%[?ý0±ú&ðd±ht醙.†ÓJuf+¸Ó9LS[ÕfÔÝ\Á*c|Ë GóÆ]0‚<ò¸|_Q¹7<­&ƒ¥ÏÑ6ª†9ù/ÕÄ:å‰Ä¤a©DÊ›šÒ˜ÛƒàbÄKˆŠ‹åB’i¢*ºrçDª¢h”½Cúcä¬FáO´vÅΑr•3 T|û\Qª Z6‚wfÎÏ’Y›âÀµšçãtÉb‚âŸ.mó9hÚ´&f¸ž³-¦ô¦šPˆò¯ßJ«Öv 6¤…m Cñ1}jJ%Ç[Æ¥[P晵„I hcp0«W ÒkEs3Óm î±|GIØpê<IJDwÒäâe)Dà/l“xÓ*-á£8#Þ¥p“rß$0¨˜ãU7=ÃxgàKZÚEÙ_I)\`Wd¨æ?åwÂl_Í;šë;ù_ÒzöéäŸpܶ=±¤_1ÖŠì¿iœ|eCáe@w§«]-h í ß¹)ç?àW¬øLÊÕ¨¾˜³K%ìB.5íãȹÃÀ<´Iä€ÃLU–NB“æ+óÚê¼#±‰çVoŸ§?Q‹ZYZ:\ypúÎyOˆÄƒÐR#ëK˜lšÔ,Y°¾Ôl2…³nÊKðóœfÑÍŒ†Ó5¯\,\¨W‘ѰæÍ5›k <EWÔaòO¸¢Ôïr‘@1[¡2 ŽáÚ4æÃYh¾ûOÖ"-ÇÆÙF› -å5Ä@@þ#ÂàC5¢]¶¤)‘_HJ"ÉÞ‡Ú^ÕsÌ݉Úg”}‰îù›üTE†“¾_ØouôwÊÅåþp|= ×ñ7gôËýáþ݃ßlrÑ|´ö<®‰îÌœ'þ.”àXfŸÍ™“˜¨Œ˜Y QªuÂ=ZbÁM—¦îgVäÛŒ«={Ãnaê=àú²ß5»‹Ñ'E~Q×còn–9ˆ»€Çáê##»¢ÅvñâT{¡ÉÔÌ#Ò¤ÓçõºáÏÇEÃepMÑMÚÕ¸n€¹À¿3JoÜuå*ÈpŒô®nR¢2„ª"æf«µéY%d ÆÉ–î(Ū[÷Ìå³ÎÀÝÜSGžr²ªãRƒPâ3"WÒ¼ç«Ïqk›qíÉ⌎+õHÖÖüÀwÄEйi^b’S ç[¹¡,±2á®èŸßd1ñ^ ¿#: k—TxžL/w‡=¼¶âL$ïjŸ³oy\_Á¹ÅVñ4”؇ÝA†„Í¥Ò¹0©m«B¬Üˆé¼´š¥"ÝJ±Î@ô*ˆfIÙXá>D$î€;{Å|ôåA~çË;ß8E$¥dYrPàÕ#âÝD}¸GêýµêCx„ùzÔ‡?¦×Ò­&ü “þ¹ Ìú$‡]z‹HYU4ª¯&ô{jåU³„J:²_4)i˜«©`Wz0^Іí’‡RQÍuÒ:ÛF„˜ «A¤ï`Ö-غõ’"² Dµ“ïb=€È‚ÔlÑZ0!Ó’DSEpçåìî˜B,o]} Û»{¨ñ¦ðÅ¿D¥ð…‹asXn<ŽIyt±•Jïf\)®/ yè›U‘ePá Ã /±t&d å• ôÂrÎëK¶¼!Ìb95bdwϲÜMÑü)—]{ýÛÕ1˜Ôœé~áEÍ…;·¹g+‹$ lç±úÄí0¿/N WøZx‘z/K¬Î1=Qe좦٦ùœ^BlãšÜd:ír+ã.%»DDdº!™Wœ¢qÖçm5„Ÿt ÆmÜ7‰ [š|pí*š‰j~£b‹…Š`5pqYûʆ’²m¹¹¸2Fºn¥»Ðö҉п8y㸠aÔKûÌž9z©åÐpxÚ{í:lëÝ'àu´÷èÍ¥òf'q!†&7”ôá5N±;šÜysIiÿ‚²HJËÝ7Ú1øNôæP'd_M¦ìì )»{¯V†ÝS™ß3±Rèr=IÎ ì uÚÏ `Ç ØZxÉKˆüSÉ Þ‹š~‚ÐÔ8œ÷VGL`sÕÎäÄ#DGJ^Äï: Ê]#ÓääUÌA§:c6°*Óñ|GÐfß¡d zDr_Cñžk­é3Õ¬cìnî¤%ÚD Wã¿_&íZ /P“”(L/Þ¬uЯ¥æOùÝ©ÜMZQxÂU¸¦HÊÿrncŸZÉ—¬„SWhä±r]\ ôñœà”TžÇëM˜öé2Ž‹`)Qï,ŸY}d>-9fàÛ†ÙãüÞ 'Âm(øŒ‘):µ ø¼¹¬f],¹—ä·ßáœzZ—72œ2yv¨|Ç´¯!@_±€qß´à<*ŠNš/ 'GÄ|fP'µ8ÊÍu;þˆ`YëäGBÒ)|“޾åbrüX­µ¬½µdS­1¹6Ì÷)þm½÷ÈBUò%A!ëI‹(¾5¨Àóz6´8È^œî©¡µÛ…åg*íœ,Z/é-¦ñÐïæ‹·ðìE5¾ŽÈ³‰Fµ®`6½ü)Y1‹1Þ¥j!°…ë]Òã²"-f M‚æ§e™Ý-£»Äé>9¼z_°þ ¬Š ° ]yÉRÕ@óúòÕ‹×/>äç“â‚(Á…Ǩ3VÊi“¤¬îÊ ’]*ët#Â6¡]Ö¢LƒÐ0=­YTx&õ{ =‘ú檟ñkW[ßa ËófÞ?€VÆ$PBiŒ|˜½NÅVÀ=âýiyj%>,}¤ÈdggkW‹¢õK@vöÕ­ÀS­Mõˆ•óö†yNþŒÑ„X[õ¹»s¬Ñ‚4ÞB·><cA«Zïð¥ü{TCƒ ݵ!₯šëº%Ï6{m mñ›ü¥dÒ›B¿‡ÆÐúMþ:ÌîÎM&z„Å|XUë4ó›üqÍuéÉñª­P¸™X#šË傼›†¦ún<Êâ¦`“%¸¯Å’¤+±ÁÜZ@°öDß]~À_â‹’[ð`UnõiÝ'ŸÖýµ>­ðP•'œ.æõx9J•ìÄ>rªí—„ú¡Üjc—ÃM]V +ÍÙ© ŸE’ΣæLƒÍH@ ÜÚûÃ]ÎñÕÊ´”“‘n[X—~²U}èC+¬Ëôhi7´ºyÔÓÍüþѽm‹$ÓO¶©ÿ+£›HŸœqúzbÐåŠá»a1Œ{“Ójí&q˜Òs£#2^žqQ$Û­SKò Rƒi__ÜN’•µjÆMiû’ÃZ¬Å€‡Ý¨$¶—iAu}’áOš-3[b¿Õ>€;ãb^ÆzR¹Cø…ëz!ñÂ¥QP@­Ö G7›¹W¦øñ Ô{ÓžCªlÏð3¨ª ò_næŠø `Í”|w'Ù,¯,öh†ºóþe nk:öÊ>=&u?ñf¦*ÅY4ÓE0Âdét%è'´¡/«`ùMÕô™—ÃïÜæçXìyU– ä¸j9ú=æ¾’ 6ÂQHDÖ)?¬¾Ú=/=e[¨sÞ.@"S¶‚Íú„ <@êöÊp“÷ Zn} 7a'¨©öôôØÐeX‰BÛóL=—T—ßj ñaÖÎP8¸c_[Ã'wƧ ÿùééq¾ó¼^ìÖ{§¡ý³›ì8<V_!Žö¾˜W…ÔøŠÅ’“PØ  ®'*Ϋ­Üi`—ú«¹—+&Üñ¬aι› ¬ôdiŒº/ ñvá'è<¾;Ô×=*ƒ²‹O÷žÒˆ)œ&^ó{ ŸßE%6cIªå(¨“ü–U¢Wtv§l‘moW7g4£ÉN‹›±žgRŸ,=E 2à LàyŸ[Üt…|®¸o+¸ÒwÌóNµ´ÁŠùí ª3sàɑҀ°ÕZ%È¥zï(£É³ n«‰GÂ7šm1¸¡WëN=ÛZƒåIÚ£d”ï aù ÞéÛÁ~·úAê‘]Õ=.ŠÓêB•Ð º) |ƒmD2‡P×’cOÉ]øÛ¡zªf.y~ÝDP-i+•:üBqí$—ŠºÞ,ÊÿÙQ|£‹y[á¤?ᤓ$’ÉD;}”BS‘NßK ævÕ$µ„´+£>û$C*í°÷鹬Í*x 1±œZ$3£©ØGtʵЬ±«Îïuç£×{¿õ9émEõzB|K®³ËR#`ê~H‚†§’¯+ªn!ãb»¶ŽôCÅK4¤WP¿Þ]2d²jîu]Œ>`7• Ø ÿÑ.@ãc¬e¾d’3W¢N #;io§¸Ù¡³ÚWè~бk,P±qw#AzÒoÀ#hµFéç,aã‰æ«úu‘,9H9¤çú‰à¥§Wã’— 4«06ßÝÒAÁ<³Ãù•ÉôÀ¹ ÝÕ‚ÛÈ(ÎΔ\&áܧõ3ºݤéœu¤S_‚9û^l%ãmò—¡åI`}¡gËr' üÈÂ,èBÈüÓ­rG±\GEÍ܉Ppï²òçV-‚P,€ïq™LlïbjªE6¾“ÇÂCà³ó3× Øâ!PÌ,"ÞŸ˜¤´»oŠ÷y„ƒ(E-Ý{ãq_ö^!‰ܼ-›,Ñ¿ø_.jÓTRÑ9*É£ÅhÑd,)t¶·¨÷Œˆ]FÅë*/êdüͯ—z{é-[ˆÀx^xBø$¡ð {yl¯½‚бpÀH3Öé—Ê”aêŸó¿µ×À-~g¶×š§æc 37[Ša²Ã*òn;-»×Œè»6×éÅAùæ°8ù•»(&¨–¥å³…Öš9fä Š- ôJŽ•Ü> Qƒ[Y)‘&%Å©…;µ¤ÒÅ$)Å-a‚ ˆò³)Ç ËÓW÷Ø‘ÝIF¼þ3 ‡«BÔW+óü»gÇ:ž9?ìôÑ~^O­¡Æª¢,§a_Lëë !/À(À¸»îÔÝïa¤c<ª>½˜Š+Õk©l[DÔc£à éÉáóÝ0R8ü–ºß…>.gñ+‘N `ÓBtºgXýÄz˜Žó`)À޹×Z¨BRŠ/c+S¢ÑƱ±ÉÏÕ¨2ýJ^ Yb¿ÞW 5Ó€gß©oÏ*†«fô¨ST‰˜È.È-`„9vÓFïg¿ÒïÉ—ë•„9>[V“13Ú¡ìÆè¦§»]£Ë…-׺9Ü¥bâGÊ^@<Å3“–À Áޝ¡ö¿ Ÿà¬ûx’ÛÀd£ås˜j>î)j€f?w¿·î$¹PKBGïÃìÌÍ¿!2 úOÉ·9£SÒá¨C+!:k}áž‘†Õß ÂË,UŒ§$Éh£ð‹<& ¬á?«..´T Æ©´ÍxK…_s®ç/^=;~JD$؈»ÙUIéÞ‡_>{ýf Ûòéñ«žäü…6©q=¹ôöò÷ïu$ÜX-€Q‹8‰Ì:³ß a‡ÿ#u!XEo4¢¥À†Oá^ÀH1…3»ßL¡—d±.u¢]”­ ÿK•š“f—­kˆ£‘Ó…§V¢æB3æ™Ê<Û“]Z»TUf á[,¢øŽáÙ͘ÅcF;ûLèu#-‹&n*¶—ÚÒ' JáeÏ„f¬ŽS)VšWd‰ƒj+ÎêËÅ˼bÓwßË—/)ú³3[Nš] ©¢gÓª¾O-Y¥¥[W6_µ²½KÓûut’¤ Ö>Dêă²:.z²¦œs0}b9£wô_;Q¡÷3v“V¤D=¥iªûð÷Õ'j %Xf*ïä ½BÌqRr‰»$6‡c²Ñdöƒ5[¼’\UBFkQ¹7UWƒ’NL™˜xó§Häˆ(× áñ ƒÜ(©»€”µQÐÓål„ñÆäžRH$Pöj¬†§=`Œ õ°ù3ÛÄûÈ¿tGC¿Å4Pž´™,•NPj,w2ou2“ûØšÞ\µï¹žeG*‰O¸ ?Ã!Òv` ¨„ÖAZy´zÕûl¯?×ËÖú@<{Ãá%»*Ë…VS÷ÐI©Š´ºã§úÉÄÚ»e0â¾™ä7Á^1TGÇ‹aêH>gÌÇ×(@c0Tg‹Ñ6 èA|y”xØPE¦•ĺ$ÌŽß·¢V6'@hÑá&¢óC¼ÇÓÙdIù¯A©‰®°\…¬bE@_Cn“éœô£c‚õ˲U£Žõ§„)‹«uªÌ¥3­î©Uz£™ÜÈXEœlL Í9|ÇAeX0%æ¸fñ ™w…d!o$|‚ÀZ3™A“¤¤Ü`ŒI„œßfg"+xÏ¡8¿ÈŒJƒ-2WŠ/rЉfÇbçÅBRùÁÞáý›xZZ°hBE·êÖ{v7Ž&ߦwCÕ$À¥Þ­²’ÞâßµV«–ßû:ìòsÀh†ù+’*(HåYK”Àµ±gYÐtß´V¸ö=Þ~]½¥õ£5žŽ€ª×…Þ6”?{|?œ¸ ”5äòóSaQ+Ý@¹ª7¦Ïf¢¢7%Í¥«±”àWJ@þ›L|Û 0Æ[T°‘Š~ÈBÒAtráHd/åò@œBÇ£NCËy7Í¿æÁP±)—ýÐ6}:Õ·Áè÷wìõ[…ÀÚà ËûHày»Æ¸Ä^“tq¶UZ^‡:U3c$\_5—¥Êê·Œ2_ç:I5­:ALæQua 8¤*˜'eV D|cì¹`h=-â=6a™#kʹÐнu­µtå®$WÏ0?¦pŠÑ½2߇ð•¼'ò8IwÄ(»ª>(êVŽ5H…MŸ»i‡ý,—P{}½t…(z®aöŒ\ä¶f x18¦„QÝä;ðí³')}|W¾Y…u|ÿí¡½û8ý–;ùy%éN©µõ &¨ Yoƒ‡®ÁbrMæ4C3XBdF­ïPçúu¡5“Rì½÷ÛÎLôµYÀL«¦® +ÿˆòæ…WíÀ»zfW4–w‹K!î‡ë™ŸÖ\y{ã[Á ùìù¢¸ÐžZ=¼";:ôEO[UѲKOD2Ê'Ê7QëøÚðÅù¹ç{qµ#ùL(žpºASáâßt¼ˆ¬¡oìLpU$a«YâAJÕ–yæèmøü®…ÿºå&#Óžå…O»Ë—ÿÐÓ}íâÉ<‡'öã]]jqaóÌÑ*ª† ê·ø;$]ZÉðÖ’„Tócz„+óÐüaà øÌµô€Uàyß" 0#¾\—” @ÀÁÁêþ²áwpƒðµãváâ¯6Î dmt“À¢(Öçýé77³Ùlƒ¹Y»˜k4Ðz}6Ú0cxÍ éŸ$Ó÷ðpoÿÞÞáþþQX݇ûû÷l›ð{ðÕÞþ5q>Ü­Üÿ´ìÝ8Þ (l8ÞÃOïWÔÙûùÁW÷l;^jâPÆ{ððèÞú)Û,Øí¶b>Úß`·ÝB‘ˆ¶_ìç¢-FûDÈê—m@§rð• ÷ïÞ[= yìmA¦Ò*2fu€Q®=Ì8ÌÆ§šlðíxzçMÿK&ý¶Ž{kpð†¯™¤y«öv¸?<Ø ¾ïwÙä5k¸þpõ§p·Ù5»æƒµìšá‘—լ܌]“4°—žô>©Ý ?ž§ƒOé]ìoJų2#ÑhÙ’I=.G”YH‚qÒ;Õ°PWþÊ—mÖàÒ`Å?K-ª.–2ß¾+oH(ïFø²Ò¡"ýÔzÁM*m?Åj\›\pìåäé+(kËUg¡R_Ä„fáíÓÚèZÝYþ­IZÑ ÒÜ5­NOT_ÇÊ ÛnS7 6u°‰3Ë~N*c¥«K©P³N‚åGœ«z\òÿS#]ò§@òöý†W0}OTŒbus†µöc•h3LÏɃ¢ (¦Ø"§¨Œ·ÃQD˜s‰Ÿ.}ö%rÍW\‹RÓ /«R?A o¤ †Çäuß$µ\<;‘°³5q·Í¹®,É•(×LÓsK26rp`öºHZ‰8 ͈B¨4¡þ•½ÚÂáÑÈd¦eÞ: öç¥ ØPø@QñÎ*tu='á“y${PIœd ø)@Ð,ÌU}-‡¾ÑÄó±1rü‘¥º(—i:fr:ôì Ê`U)4­’.båk¤éON@¼ˆÄ Vµý1k™ÅŠÕ  ÍàÓ–y¯hLJ ÏúoS!±Ð'ÁÒmCΞ`Û‘À¢cÍü„R§€¹Ë%C@JyJ‚ÃîÀ‘i»œ•rÊ+£É¤)¡ÃÙøìäŽÀ—\Ñ„öPZïX¡ä­ÙgftÛ*‚*©oJóâF•ŸJ±qö^u)“Bãæ•hF5ã̤€BC;µ• ÐŒ-¼£<öñö¹ s7DŽ•6œbÕp¤&æ@‹òÀõÚ*øAîÒÞª’Œ+ï@êóÔiØ16j”?æ—d–¡¤}*ÃúÕ7=»¸UlTèó)iÅ* zq”)EËFoW!ǤyïùÎmG¹[5‹^*s_ƒhQs¶ƒ+rÌU¾er7÷¨ ¢(´}ó|ýAvtb|¡âGAÁÐ_´Ò{åòG#¦f7­ñ‘.R”47±"s·bŸßéi) H†Áš MŠÝ8¯OK§'è}.9Æx~µŠç )Õ.}ÕWŽ2õÛ èâazãðÍõ4ƒ§³Â…€¦ª÷ä‡Aq¶ª¹”ã®’÷âñ©tŸÑëÉ«)pO¤y…÷8îò®ÜÞDu¼Ã_*êƒq¸4™ …'KÈe‰Ø‡oËB1„Ú§Ž–œï\—_L&D‘4á)’@_sÐõ'úŠ™™æ. ¨UH¢L¢l…agd3¦+w+ Ì•ƒæ’èaî§u£Û…d‰T0††Ça Ñ\6TGÀLn!€PiLh¤•ù3$éü£…(ÚºH­’eévéÔ¹lÜO}•uŠ_Yq¸ööùÂêoPÉÛh¶œÏjÔc¿fƒ ›XGÅUʺ,í®Ò×ÖG­ Â(EíÖe;p4&L Nt±¸l¸ÞëùDÙÖòÙaÍ)ªfõ¢ƒYª=4=õ2üŸß0‹qéFb¿ p§îýç S}õ' „\òf·<·VŽØ5û(­AÑ[ð‚þsèL×ÉÞVÓVÎ.fôÿûºÎÝ'É«úJB$­éµ„ ïÍ´$ƒXSþìï»§|e ýÌééù-c·¾öõ…}ëÚ‘nô`£Žà†ëŸ¾8…´÷×͙ӒþoÆ ôÐæ?åÂPóõoÿ"‘ ¼Dðǧ1G}UO«swú¾=ØçVâGùÜ?öÖ9v,¸ò‡$´–ë-j9„fHÏß9ØýÌ”ÄK°~ú×Nßá?âô~®éÛÀïöùݾZëw ¼:¿ßÜïFO'Æ$¥­&HHÒT8ã-?–à&¾l³n„xâ®A­÷€C$e-ñ ù ¹t3ø¨hjn TºãŠÊ‘Np.àë  _K]Õ0…Am»qeÈ›ª!Q?ïÖ쵇„Ÿê£,ÂWAÉöBdY’À—¤Òã{•OYÊ s^7Ü%?á"\žÖh‹¡gÈ;mi¬¢…œ)K;ãɈúòÞ×¶¤¾¤ŸlA}©c¿%e…??…^;åÌSøÜ¨OölÙ'úÉ}ÒÇAÇy›møºC߈âgl¤Uø¨¤žÞ½½¨ÜùÇJ`Ñ.¬@Óâ>[U¢°CÅÿ4ȇÃá_Òº•J夯O†÷PVÄ2ˆ¬dÁ(W•’ˆ]4›tçç³8põ&6™ãíhf^ö, Š4ƒÑm̤ÜdËØÎxÊ.µpÅrœ)1æMý¸ëë)ŒÝ˜3³¸t®3ÆÈ‘1Ò"Dá5ºdk£5ö.Ùéš©_c4å e̬o#C’+Åß6ü "™lÍûçUÜ¡ÂZ¦mðl§T÷õÁ¥QÊõ¢t°L5õ9†ä«ØÑÄ 00ÛVª¡,EÆsÆ'4h‹¼Q9¢4¤Éö¾¬¯èófTNþ«ùö|¼œãÃÖÀŒõ#1rø(±× #)S=òÞäÂÑ}ÿäCÐá⎱šÆ—ÉãÔ$ÿd yºÓÖ³xfCj=ÂÇ,c®Ž77jLt|²”:tRƒ7A[ÛL1}EHð4´ž/°vZâÁà…`ƒK²¡ÕͪSÙDÛ*SÞº¨Pr•çv—¢sVùð^=bÇ“Öݽ—™÷®„aºm8ìž8¸{tëOºƒ—“âfÝpãÀøQ½¢ð]Іåh/ý ó c>jw¤˜¤ÇlHÜM©å.é5t\ÿøˆ¼Jd;ÆJêyËñdý™Ö­q †ÿå{µ¨3EÀø©ÁyžÖõH¸«År۽ʲÅJ9<{ý&OÓ¤H²£ëÃ|_$èrj7¡ëRûY,»ì>á áwäý»ª&A¯vá0‘×HÛÉ’ ó’ìiǺ„ü éÃŽ¡Ù&Ä €9–iÝ çOdJøÉÑJ¤ØôŽÖ¨ÐVñ²¡ÏóÏ>X YÅèŒH-DåžëðOYcˆYdÕ[·ˆÝaiïËz–[¡•Ÿ±¿~ íÒ´Çí®ÞöÆ´íøõã/ŸlØv£Ox®ÈÈ" œþ£IÅ0w¶¦LAF=a7¢ß9t˜¹ëX-Šzß*\°K~ ]®æ¸ÎÇà.Ònÿ5¾SM!\pNÜÛW¹Ã‚ü"SF(`>ŸJ»–àò±©-ÔÜž-Ïj×F[^È>mÛs‡}Ü`ã=/Q–­ö¼4ú÷=4Ôÿ¢}ÏþsöýcàXÕwwLïÊ´û½êñÏØ4ýL =, ó ú8T\J(pØ—gÛöËÞíoòïA<¨¨ÐKZÕm‰½n”Eë?ÿMþW•x«jp¤v~.*ÃÇwûòš Æúüü‚ãÖjà¦ø'J 8yyK>ꊙúòNMü› ‡¸NÀ¹P¸HŠˆD¡#Aéè÷÷õÃã{aP÷¾îUþ±ÿMÎ`esë·å™z;ßygøÛþªw¶g0ŽðqÏ4ö¾ Áöö¿±¦NnÃ!!:"íŸw{fs@g¿7¥~ÚóÖ†…¾Çû×]׫ûBÞ¼îD0ÄpT_õð ènþÖzb38æ×Çüz-3<òêäåhLQ‹¤à0X§Äå+J9™æ/+ÂRìJ ÀÀ$;’‚ÜÈgP  &Ñ7ù*òºëj…\Ô%Q:šÝ£AÔ&§tyPƘå\…pä.8ñQG!ɵ–÷k_Ì&áT„µAib~§O ÉjžÒÒ=LÄê\ÒúK«:@'/w¥ì×$jJø g,ž:³vÕÔ‚„q£Ø%FXâPÛ%í&2jÀ0m˜åÂfH3©¯ÃÍ»,“_pÊæÁË[üŽMê<Ý,¶§x‡*ƒ¿ŸùK®Ë¾®0pñÿYrAÏÇå[£vÃà£Et¹LôúúzX•‹sDéHÃ|ÌiÊîΫٞü‡õηÛÿ†íÛïÈ÷Hªó<ÛA¹ù¯·.7~²M¹yyœ:À$€Sãí‡û_ïoùvúÉo×Çñv0TRYë ¥ÊŒ¬9¦aA‰¡ ©Vá©÷ÜÙƒýû_o;Uá'ÛL•<ŽÎ‚ã/È1ŽvP`í(NHXB¢¯l1”è¬n?«‡ÛÍêaœU:ZÖ73ÃO^JylbÒìÈ{®È ä“z1ÐM#ÀM(9œÖ 5)æ”1 â&3&Að MQB‘É]j[:†jÍbAH”ž5õ¤$¤úÛ$L¨¹d×z˜Kîø•¿X†»·´O^iÊ£â¸1lå+:ÜpìG™Fæçµ…´ךëá§ù8›$Ý?,>^ï§&§øöp¬..ë±ËW|‰ãœÍÕ¬-™g9õN›+ÇÂS§>ëM·B“è·‘Š`VWgåxl%>Q‘¯8\KœoÒw-í;· š„+ {ð0c –‹öô, ÄîM™S„©b9Á¿s­ø°â:\c:e|`Ó*‰ûkÔ)ZÔç¹°?~T'ü…¬¤Ö z_õTƒ’[ÂÖãxy5óÌÈ£Ú6x -îÎ1Þ46(–*´3¸»PÓ=úc--ŰÝà“ ×.mb’¹TçÂìËÛ¤T¥S¸R ¬À0Q…y}ª‡ò†ÔlÙ„íгåñ¦7+ç{ Ž´]#*lqsÂEm(q*ß—Ÿ2¸;þD/JŸÿ1ñøë2ÜÀ§5—³û(WL¤Â¤¸²œ;ÍzÏÂåœ$¼ã¾P(¸ "h‚áÁù’ó9"w?¸Sß•¾¼iñÊû¢ ú§” á´+˜,f) 嫘¼ã¬¥Èd¥6#á·2MØM»ä©jµ{˜–óÂWz©­RîUµ@É¿¥˜«Q$ìÕ ò¨»Fi Óß#ìHÜ2âøXr¹h•#¬ ݉“Ã²ãØ…%9Lÿœ Õ†WôµDóp›dA°|zÁašF¦”Ì‚zÃ^?Þ#z— }S¼ éž^#½Ñu›Þ`3e®¤FØ è±‹ßÐ{C÷8çüº˜SØ&ôtØwÓ[Êëge÷L·8„ô(î>&壀ž­û‡ûAþ´"¤C p¸\ˆVaÎ2°é\2Q@aÜ.ù?_,¾9Ø?¼Ç*»ÍÄTŠ.†““a˦7'ÿð‡ýN¡$Óÿ7ÝÆÑÆA{ûƒ [3’WP"è)ƒ6e& ’ ’²nìüµýJÜ“«+éÙÒ²‰žYãh?âÞŽsô$“¦¸ïa§iu&×sœ)“¦ ¤Œ ÕÙCû\æŠ]tØ)ãÌI²‡4Fvû`ÉKÕÙ#o4«, ±ö”;H†|ïK?Ã+0‡ÅüŒ/~©~KqTÌÇÒDfE_nå9!y¦4ÛJœá)MVåèi¸¨š½Mn¿rŸŠÄDhÅå; ÷~¼Nô8(Äy˜ÁÝâùÚ" Œ«8 %qþ“Òüʉ’p‹¹ —"/ùƒÆu§¶\³r¬Ò9Nùf}ŠØP·Ð†ä«ñøåxc5;µùÒ ¤ÑÝÙ´²óÃÛˆWŸjÁË9c:'BY7µ(”#òiä|'©£]Ls_£îøTÞ“ › MmʈM¥ó6™"köÓ±ßިƂ6óì&´ý–¤½ó‘ŽË³åEJ¥€[äà¾gÇÁè¯Éa}àžM½ïD·ªËzôMžêrß$lÂdýÝ¡ü.Ò†úß± ¯*®#V]Ç Ú¢ bµ°­îØbÜùFsôý«Z|ú+££JµcøwäþÝZÇpxä”`›£Ä7ÌúÑ¥]ŠåÊ’¢Oê”\Guº")D ÏT Å`Ñ¿¨•ÂI¤J¬>©šD}¾Ð75fØíçKÎ Ÿ^S©—oOéšF«¤¶ I.hF^ÀñÍ´¸F>ô,·Üq®_!dm A•¤ÆÓY‡VÔ‡»Ð¼ h¨6¨’6¡ò8LTxΉb¨Œ2¥ñ£ÜãÙ¤…I¢éàÎA<‚.¦‚F<ÉcºBGã® ¶PXßãv…k$'“’ªÙé'u=kv‡]“ìœàÄœ‡9mxSðd<Ìÿ iêäQûÂhOyN²þʼn˜icJkž]±P"7¿Ðš+Þq½ÂtÛjH}#¶ÒLºãZ’îÈ‚1ˆi…M·o„„Hƒ¤º/)‘U "z¿Úz"¦s˜ÖwËYÃNiHJ⒠Ѻ±h— †“…âLåb,q¡%ãQd…ýª©ãÌVÝÉÔêLÚÚZa:)Õ! ¿ÉÄ€WøN’ÎYÍ×SáÄûÀ íD±ÐF"F¾XE…_v*_ˆä ©“‰¿ø Ç$TŸ‹.Žëx é¸@5"„¬§ÄBÁÛ>ë,hÅ¿’BÓò‹Ä$ìyN%ˆ!Sà”O÷à–8M„²Q…â3&¯¦ªOÇãÉHÙ¨ÀPø„¸;%Ù]ƒ*²¾c7¼åñP&oËêæúKþ=ÂÄ=}io‚?Ëtèá¶C´C¥ÇÈ‹6ˆøÌeîò»›Ûú.=¾c›öÎʉòâ"2–yn‰M…ÅmТ䖥KEÎ ãø(fÈçM=’Æ¡Æ#:ð¶Ž™Ìùè,¬aó^VA«íá{4©å5Ý?Õ„Tãyèj=½«ߌ1YE¼é»Œ¿+ÆlsdWOP#Ý*Þ>²Ž P‡0]Ø~ıQè@7i’ùŽVˆÛUì©Ø8.OjÇ&• dÇw«L +êýUÓ(–ìJ&¢C‹¶+£¡&²Cm6¸äfÞ^Õ/Uý²m«ú=$¨HǨº˜E¢Ó wõðœFQ%IW_2ì'Ôzï^«È o]Ю+”‹ –²«¥B¹u›´œÒ§Éìâ˜ÖQ+ëp¾TcI×E’ø¸€u˜¹©iÚ®-€#¿o“Û-¸vÙC_ø’¨B+–žWøb¸@Às)õeîîC^üîëáýƒáÁþþðàhÿæAŒJcë·úã¯x×Þ}Å>þ‹‹yy!„AW=ŸAϺDIÞ§øtëVmZß ^Ûn|è%#P¢"ŒåòýÝ7æõm­Ö!­ÖáÚÕ ü ˆ»,'³Öš¹`)Gÿ¾ å-'#€ëüßkqbóBj‘¹ YËÙNܼôù¢~Ÿü_è’b£¿ÝùvõwŒXcÜŸVh. þøÿËyêè—ç9ãN aCÔø…•1·ÇÉ=\S*Ðë¬ï£ +ZýÌ@ø›P˜D3­ìÁØ÷Vm®wrV9§óCyŸÝ©¹*þ½žë«º;3+¿ÂÄ0Þ%-ÊLâqÎ$œ!´~=@ÇVcw ÍØþÂ1b¾dÊ¥,¥w8paVÉó‡ª0†™òЛ/…Îmv¶¼H@™RüÆÕ–—Yw» ¾-c"K•)ïûŤ`r§zª+¦? vº†oÁ6*)ú‚`0I |CØP4n>´q=ZF.[~yÁU2hçÍ—S­ó“O „QD¢ä;.–æ§ý¼wrgË3|ÆÀ}óоâeÎw^œ_МrשŒH0w…I—i!1iË WÀV«°àRQêK“Âç옫?š\às”3F¡(jŠkª3aÝ çʵÁÀ՚ǜ9#8,c¥ M+1»Ûr_”R0®Â °‘ÀA¶>„hÛvZhû5ŒÕèm¼XÌË›á»bäÓð*ؼ£å´Ò/¸óíª'ê#rÜdê‚iü z²½û`-3;â¾ÛÿϰlŒŸñ·èÿ÷ÜÛoéÿîÿ·þÿ«üùÕÿרüNå'wnÐŒÚZ|zÈÚ=í™hUÔú:>eíûÅtµÑ·ö®ð̋ӗ߯haUµeßBRn¹Óªº1¾…¤pL§…U©Î¾ŸëÜi`$Î7ÐÆÄ­Úª+¢çYá íÛ¬«}¢ÒÚoÄoÚqŠvZå®ó ­ñסwÝØÕ&šè¯lVîBúõÙÞ±Þþ;<8øêÐÙGˆÿý·ý÷«üù²ÿÂ¥t1/®®`|=ö¶ÈC6B—ÄžÖobvMÃÎCæÐ9¸%dG×7Ýst“ç\ë·†‚zŒ¢vɰW…‚ú ¢´©~ÕÍ•½UÈEzÎÄy ×!aâI\Rò±ú² Y ¾£jQBedcô•ŠRV•h`# ˜ ¬b‡ñ4L ¯FhjüPbQDEfî°Ñz ò :÷6cÛ\}N˶Ëf £UÉõ(wŒ³_‘¦1+Í“"ž}°U„ׂë #ŠZ}ÈJ)JÝYK¸!”V3«cåMÊ4|_NÕƒ~ðr>à N«øÅã (§ï«ð-–×—RGòv9­çà’)®ˆà…­H‘FÌ„ †‰&ˆJ3+‘SÃt–9R!½”Þ"+E$†”ÉM þw7ä“&,ÍW] Su¾œLn²`-ÑA³§ÊósªÇ=ÝB%YæÔßâkÄÌAâ­Úåw¢7¦˜‹pâ¼kdâZÙ…#¦ªÎ¯çaoå¡iÉ(¼\’dŒyŸ!ï´YL!>‹¦YJuV®;«T&È/0}]’~r<]„Íöè²|wY¿Ïï€Hg6\&L,Ö,F¢è*ÜúE4æoîaÁYóÈÑwž_L“,·®>§0w¿Y,ÏÏ™ç¶ä´ˆ0À4œªËiÅ$µÌ‡&Ÿš/? 5œI˜ýTjÕöESNÎ[5[(ö…ƒ#ç­”Ú)ÞmK•>çHKª@oÇ>º¨‹IÓ’*€ä…žÆ˜ŒQŒÈŒ¶/LähBó€ô¬3G Ë•Ä/ø4gvš5Û@x"8ò²˜Ô¼ªI<åäÜý¢Àdp’•­OfñlÁHsT½ˆâ5·¢Xp8C€ÅÙòT ,™j]:.[Å”g]VÊ¢#5\8¨7áT¯ÛC‚ ”Wž(À&>3ÝŽ©‚3á!¿gÔwÕdºƒm‚”»õc‰y¤m+ðþû“oO!`5õTK¦~ žŽu8ý7Ê S6D`—NØö,i®ÂÕ4 ï!2šP‚eSΊ¹âÎcaäøb$òh¯%ä¡Fé]ÏŒÔÅØU$BP£™Å¼$j¡r™pLe(Ÿ¼§ÇÅákGŠTOé[©òÙLЩ€ãÎK{øLÉ{^œ ™}²c+ÎŽÕ¼³†'²p9äèÒJ[,§ÄJJ’˜¤Zr)”ÿü¾®ÆF=‘¦ŸEJ}îR‘4‰¢Š7Åèd(r/t5ô-ü¯Lÿ$½' ®9](ËkÌ<¨ÃæýÅé0ÿŽ*Ýp쪩)`ëPM-K{ƒg5Kq!™b¼”äK€ ÃvÑ? àû@~>ÌŽƒ”H² )‘Ìp¡+¡—TC „mm¢Al$•gºJËF…ÎU’¡d!çÖ£ —±?¦ŽW^×'ES!†:y˜u§í7jÇ_kçZNÊ×MØêà ¬éŒr)˼%Jt¿â#äÙ×¥+¬I…,¯fŒ„©¦áaAhý|;’ªä“ÄÊ9§²¹ó%¹¬ÍB„“¨WQ¼¡F½"‹JF ÝPhPÉèD€>‰à×ZŽB„â]£ØMèÞ•TŠkÂV^°¥3×å¡|5ÞÒ¢êf²Ãj®¯Ç* ÿÑË7 ‰ La„€Nl¯#÷#Z–}xäØÍX±·_™ŽX·yå'%£?MPˆu—®‚8"Ô5MSË“ÍÝ'ôJJÜ#šDùZ’ß|N؈çËéh‘àÉÉÍ@¯ ÇVÖ#„‰TÖŸ3‘ÊRöW´ïô&ºƒ<qø”Äa¬×¸#3þ>zz¢(I`õË™Ïh7£”uèÓêlN¶U:VÖä@ˆ%¯FËD~aƒX{Ï·¡³aÃÃTÀ‹§-29Xcñâ/¬¦wâà÷3+>;dãéªj¦mäÝ›Á#`ã —-r¦7Çz¦c'GÖóùqók’–Ê–,+­ËE}…D@Òʰxš·Ï­ª./,d„\.Áb ¥èÝ®óºTÚ-°<Ì‹‹+½ßÉ*¡ŠU1¹ùY>0$Â)˜/WlÍ´šÍJnáû¬~|~¶ë,ƒÎ=¶íŸïŒÀœÌTÆ!*ÆÎ.{ùØ}ÖÖ_3™w(ré–¼·THø,㜼¾T{¯}³âT1Ž-~fÝy®Âô¼¯ÆKIšNîÂØÔ)vÚ^ô¦¬oÒXîÄgA""3V ®Ñò¤çJÚzÊÝ løoèµ”¡"Õ¤'t£žSvÄxr“%)ò#OOä-ŽE¨%Âû b-9Ññ=A—ÈãwFC'?öUÒòž¿É©…ä‰Ãpnýö·z͇ï3w‘“ˆ^~]Ì ò~+…É´PÏï#ÑÚ(Éž”ëœì¨LÕZT@O¬€9­à^›:çð%4;¨*q`Ì—²ƒä]VI#pÂŽ”Šr$Äægškú1‚rKƒî…hlWO/(óê§òuŒ±l‡‹˜x’÷‡Ò, á ÀY, Q wÔ›XœY­Fô^õÏ‚¤÷1§)­}2à­tU}(ŶQYÿ²œ3+OsYRªÛ4ÉÛÁ¹Q´ÍP‘íl_ PhÌžyS¿Ÿpº_Α¬Ë΢ɒ‰>Ûì)/NMÓ“qFm×n[Ú°#²+»Z§'–Qà!ºrNá{š§c)¶Œ=ô¡‘(OÇÆ®š´z‚ú®jê”ö$ _&¿ã“súó§ Ä¿™ðIôÏǯYæ\m²íæÒ ‹†ÌØÖœŠpX'Ç(‘“ld>4”žò<ƒ‹šÞ9õi-|ºÔ/Zš§Åëò_õZšê6äaë7ã÷ÕŒÖ1»€Qù²n§<Õ´Ó m'¼å‘¸Úuh¢ÂxbæY+ÕWޝ£+†/­rI&ÒÐ;€¸öBM¸õª•XÃ|½S‹fÁlõ(³ÆßP¬rR-ØPÆÞ[Ú{ iÓ<3¦½òœh£é«Ä©:ºÉÀ™Ñh úÉœF¹Oñ¾«p‰úÎô›?ã¼>h|ó‚² Nk¿#õ¢¸«ANOG±TŽ~<¾B“‘¡°›xÿË þÏH˜ù?ì[ÚÏö޵ø¯ÃÃ{÷:ø¯ðõã¿~…?ÿ›à¿ÈÜ_ü:ê¿ºÏø¼¡T‰ü:Ü vÔ–Žé×¼îK4l½÷VäXO>G· vÚôCÆ v¸2†G¾ x'Žgõ»¢i{„èÿòç õcHe⪰õ\¢…(XvåS®ª¹1éÇâ¾'‹HPÔ{*6Ëêè¤Ô*šð,q@˜7ÈþM Å/PôÑÉãW”)Þ”‘a?þŒ™A/Þ,´ÀÀp@vÈÀ¸rÏŽs=‹DíQU¤öª!³›#p:ºœ×SrÖˆ‹3v©„k»ð‹9MqxçDìžÌ,–ñxKd>b© m¡PÐKo°âA(x dµæTø¬a”‘¹a:ü´³+Ž|r”tv^½¥áöÖ¥S}¬©gTFÀ5T:`Š’ÂAUs5ÌþÄÁò°¾{Aî"’ÊÏ0À²€©>`ÆÜàÙ ÚÝ`LjŸ…nâs6Âò盚 žƒRTLn+4Ó°YR»ŸRðŒ[ø÷í…üÑJˆÔZ1›ódrؼ6  ù&Îc5å¹—ŸÁÎä,iªïX™ : }ä—ð>ﺔÚWäV¯Düg.qnY9¶ ðcý®k¢áÜÓ 7¯nXj²‰n¢ã–rÀÒ°•^ך2ž÷íå¨Ú.ا_ÚYåX’€,3Œ#Ò8R äô>W‡fRK”¡ðÕ¡1ªA†´ü(“ª&ìîƒáª6PlNY²P>L (ȳj„á0;Ô\b^F¯¨F}!±*ÙGÁüög7Œ†´ã[i+Œõ’kqòü÷ß‘ð|û§ã§ÜÙ Šò·A¤ŒæuFJ:uòšîÔ'oO_¿z-ÏT©53®™0®Èä&æÅ‡[„¨¨¿—A05'ÌSô…Så¿Ãñ&W½ Û!?l`Ýå_‚æ¢o ? ×yü|fŸ/§,òõš÷·tÂV>Aûò-6œ=¢}yK3¯Ïiçvó½=ᤆãï0]‘"~~±”„)¯ã]38u5‡µ¡UäÓß4f2×xxÄ[,H6Ñ\4œ<ÿó]}kϤÉûð ÇÑB]Vƒ†~Ÿí8#Ý:³vÏØ,à §§œ†<‰ÐÀK•n*"L r4¥aVÔ3öÔã’]MþL!HjmǶk,nÚ^¸œ!¼bïaï2Ûo9·¼ôä±4ÞðäV³·¤ÊĝиÕt¡N¨hŒ;lRߘ:HÇ^2ë—:urâä]qã÷w¹µ¨á‡QK‹Ž%ÓŸ¶Áj_øðbqyËŸÆ™(â\¤±¹yXw­TyZéj¶W øcN¾}þæéSô­:k©á›fûqQn*Ê?mCÐŽ£¾óépSñ o¦Ÿ§°ýÿA›~[áômí©zÕÙi*ôíf€ÁµÝvØj3ÀÄrTøï–³_I&üãn©»ÒkWÆ ¡6o´EÝ•h{œZBíå¦WM‡ðEc7Ù~c°>½áΈûŠ>’ìnèó‰ióä—=Ý‘ßù{µÕ¥ÍtãŽ,·flú¡CƒlEܼc‘MC ŸËê\3®VÚ%£bZsÚTÐw¶]SÂ;ܾ¢½+÷ /ÚY©ÛVKÀ¿id3…n’fÅ•išzT‘&Åq)G­õ°Í²ÝÜ!²²ÅäË1½øóÌ:³ÙÜ!Å…¨tÑ5DdKHШZ4½Ñ¨aö¦)%ƒ’ŸKF®RôJéb[Î$[iZ£ Dêó£ïøá¶\—P†G’¢™í”2ŸÍ©yó2²ªÞ§ØiŸ8œä&Wš¸É.©.™Z_HŠkQƒ ߪÛähë~S÷eÁÅbz”’™¿6‚Ô™d©›‡Âui¾^1½ÉÚÅëäɆÔÃXR+ÓÇ­w‡ù²öJyV4â)Ì1!.+9$š÷«SDÜd¾ˆUû°$uØîxg"É;³‰±¾Ä»«Ì±¸ãÂ`ö® ƒX˜˜!íÁù¢ä_sÂØÈ™à@ðS¶¿á˜´Žb ZiˆC¢äa´ TÂÈ]¡Òxâõbx Ï9#b  GÈÇ{S™ýf2,‘|)Næk¶)Î!ãjZ´×*NdœHùPj€›ã‚6r^e,¸úaŸí4eÙ—™¢è7ÖVB_FUSrb)¯ónN§C¦“ÊÈféd¸D< Q¾jM¼,öîÿÌ<þ-d-ѳ@ßÈa¦;*¶á©ÝK4e&R§lÿ@q‘‹Énù_R{FJ‚l*Êû^¨~9¬ %’¿¯¦uÊv¸MäÃs¨ ^A§ÂaÑXö_ǃ;+˜Î³’ôÔ&bœŸÓð°ÚÕÛ®ÔÎÙö–@à¶Na³¶¬7[öÁÓÓ5 ¬ñˆmº&ÝÆ¦w.Á¾«*v­§Ó§or-H‘l9Ý­ßx ³ÏDeþ©7s˜Ÿ »|v“:§woYÜGÚBß,pZY%‰óF—‡¦ƒæœGÀ©x`Qêè Õ©æ¾¡ÇÏ¥.•.ü6*Í ¥Ÿ.7‰ËM>=[”ðÏ•Î` 6Ù—+ϳm1þâºÿ‹ Åú¿`*â·þû²x‹{$vòj–îL–K>âqqÆÓÛ³o2 áÌ¥[TjÛä ôE½Êõªó¦íPÌήSí:ð¯;¯Žß¾xùúäÙñSrß„?ÿóî- è„"¶Au×Ã9Òãé’à”ôgÜû{Y÷{ Ú;q¶Ðlb-!Ò×RºÎÒ`XNºÌ™èdVWºr ¨ü0%%LwðX†:z+Û‡«2µ¶‹¾úeîÈ]œIr’KRÚæe.1_WïÆÉs>F, gS»ÐücQrý.º¬ëw¬ì¾ên1 »ÖT ƒ(¯Š‰£8}:æx6v5'ÄRÖ¾)Ý^¶€möŒ4{i[Ê¥ÝÞËpzzHéÖ»ìÖÞmйX93w¦:ÊZ2U»F’Q°ŠE|ATsª­KX=o5ÌRF‹¤pRŽgŠ5 îP4hd’FÀŒ£xîx_ÛÅœÉ@ì°´b¡¼Ó¬I ֪Ɋæš´BƒzçH%lrÄ#ÔÖ—Ã ŠUv¢†\UÊð0'seѤ @Z¢*ÜÙiUX-Ïá+3býh<6Lã´^Tç7r­c#s ÷Ç”£FÛÞ‰{&‘We¿_æSt v«"Ü"±{Æõ\&E]4ÑKæš¶½žÀl R¿í´± ѧç%ßÙ¼.ÆTÎ B’Í“`ÃÝàÍ®2Zt/Á®XÔÛË Æã3llô-3êIš|žâZZöüé\ÏŠb¬ÉNnQSÕ“ôp¿¥0Uæ¼T­OPñær»Ð52^&.ÊÕzyxn[Gñ yh}»piƒß4-¼xÚ0ƒÄ6[n„‰óÒž––÷jÕÌl­÷¶,“”šŸ:O½ÓĶKç?s¾Þ†Ý.sö|ß™&w9(h3Õ7’FÓiògÅÁ{†á’?k Q=/ÁÀe)‰¡h9ãrÛG‰˜T²\Ϻmhô‘‘ÍæËiIZñlõøðÌ6CCB1~D çͨ˜6}\}Š0‘˜˜w†«šÒÔß;rËÈÄA¥h¢z¢‡ü•D{ Aˆ ì˜F©çÒ++]ÞI½åëí|²D‚@F½ßr§Ï[ q¥¨˜'“K?ø¥DÅüQAïºUT<íéÐ üzT,%üC)ýùææŽ#„÷b¦n4F»kªZ°bJŽgGGþ­”Ìo»Y_N·žwþɯ5óü¶[çþMo§'^Ή†ÐÄ·w_ùƒL±sãRìÕŠ‰ÛÄ^Eþ:»ÓXùÂz*Ö8ã)§©@ êcäÛrq¡Þͦ¢öëÜNíGÄlKÈ ›g¢‚—íO+úe£ëvëkF\ÔHn3LtpÏX•³:غAðã·a/‰CVgG§Ìèâð´üNÝîò"rþ\Âv¨òº•Õ”.‘(ñ|²Ég®á*™LJ$âļñB×W ÑâT7RVùîl£j†€mÕ,âÆ•¸… epf!¼Ã‰“DÑO‰yj¸‡ >¦‰"eꀼý ór«;<½ˆÏƒŒ|{VœÝ´ÊZ¬F1& ˜p+rÉÁñJ»4(¶Úþ@2D¤o©tZà…ÌÀYÁ8dë¿¢ZÃ7PL9²èP¸À¿h;3­`†*f¢+¤Á÷—²ƒÇõ0ßùS©¼{󠡇g‚ŒHfºÉÐiî' TvÓšHÉÿÆÜtàCÜÝN@ÚÒ¿-ÎêyGR®ßô §º„¦àqü¥ýçù™Ó¥1ú1k¼YÔ30þJxÏˆŽø£ÙJº``¨‚ ‰¹­ÙÓX_&%¤Þv-6ql EQ­ƒk´A÷øû (GoÂH‘è¯7¿ j¢£ÍôgHgõGiZ@ G°b0ò[Î hýÔ2 n ¥éŒ‹Ë’|óAY™¹XšƒZ¬ ;» ’¦BÒ8Ô¥ ××$ÉÀ7Ë3êlŸfô¹vŽEþ{ïÈ”ÿŠ['ÉGâͤ IÅIÜckTਾî÷¶¥ ãçœç“èê¶õݦ“…/sË3õ¬Ú4ú¯q+@m”^;¯Ócy9DX~ RCÌK—qvã2¡>Ý+®}ʉ}ÙÇÊ0Yðð*Oƒªgƒ¼œ4š0Ýúe"z£¾%‘Û*›ŸƒÑëV¡urzlO¸þ e>7Fè<{*ô+Êc×R ÄcÑÂUÿETªâÉÖ,.Á,’7¼ÎŠÅ™);ž…F.Fv %o9%cmµæ•Cm™˜Oªfmdƒâ®FÒ™dyRD‡£-0í§V«%ã°ÍÛéUI1ÛIÉÙÓpío>°.ÌÑM©8¢”ŠuL¾x¤U‹”ãÃ=™ÈðçaTÌÀ7âÁv˜z˜Ÿ Å ”1ÈP&†…­$èbu|y„9”—: -Ñ÷3K‹ê™õQ“·ãZ?(Rùs‰¸òX£.1ã,%9TR“«CùˆZÈ"‰›7Ãu£q‰˜Í úÜ3¼ŠexÏWuT¦³øŽ/;]MÙNÁô»F-›À•Ü!&[7 ôŠS2f]w4½“ëâ†xÈØØ%£ %Ìáô8Ÿ@ ™–ìpoj¥v프xY7B7£Å>$ÓH(2ˆC{>/n¬…ðB™§;´ãõÛïxšìë)3ms{ÌTÛáxqâ¨tP×U’';ÈÚAýÅ:0£qÊȈùÉça›h^èò…=˜qT‹}ĉ"s"Z?Ù`‚ÞäCA”@&þv+ëò0‚㌲¹³,8UÀUxb•ètp*‹ø\Ú±9/($¾™©¸TºÛ‹¶"n7ú)¯(ØL“=ÏwŒáÜ,ž“ÇÐ2‚õ»AöÛ“Ç»ƒ¾Ð5®;*ï`&¬¦¸m27!ÄÞ='ÉKnC„ÓHŒ‘s i“@jŠiF{ˆê£C 1^‚3bZ™54ÒÜK±÷ezO¹ü/6å‚6~îB‚4ñ”‡nBAìP÷"ÔÄØùýw–üˆö:—$™‡®Ï¹X…Õ'´>vNæF<}“Éy1M:×S¥7’rÉ(²]é¼ óG=bJš ';ŽÊ.LÂà @ªàL!&ý¹¬Lf 3f£GÂñ&ùT"Ô< zpf´^œÑu#„¾v/{Žå×?' ›RV¹Cého4Éð=n!䌎eal¹†ô¯5¬±w!²–SÄ—“¬³ŸÂòŸp(£&-1Ý;öÕ¬;­`—À z° ›*ÚýïnçÞð­Ñ—ÏßßÁÎïƒ`‰¿¦T•õÊú\¢o`è T2¢ÎsÛ°\ðMù›à<„Ì·l7ÏÉceú@†¥ˆ+Y´²¢€u‡v¥™ß·™¡îܬax„´Ã'ŸºQÚã2̓>/\ƒFyQÎ?ëþÙzËô°=Èäá–¾­Ó¯²K¶óæ„S/Ž$ËyÿÔ¤Žøt†r.%sã/J…¬yÜvqÙ–ËŠ(¯tX½û(JÙm"[¡“÷Öö/[¤ BáÈiÞ^À_`O¨$9Ó+a«usF{¿JØ€s2…¹‚i@©üêó”hà÷`™NÆ ©ÑÄ,pr“7| |úú›auñP€¥‰& ƒ9«™P®áÀ­@ ~”R·-©?:úÒÐÆ¦ËJÀ³«"1-ñ8¨?Çßbe :…u9 :h~në±1RÔ"Ø:EÌ\ð[ 8‡»¢œ“¡¨ëð}dP¸­N ~¹‰ðíæ %ÓŽvÂK|ž£Õ/nû;'?9[¢¬$ÝÍ ]Ìáî@Öâ'œLÑÅ$‰|OFÝ.·4-Öº®P•èÂÊ@sc·Õ9_À~;¨úÊ|Ä™K½ŠÇ&Šlc 6Â5—†´$²ƒã¬Àß%uIÿŠ\¦qG]#†âçg,8Ë;xojÿNM!ñ,ÇSr½éÜDQm§içpõNÿ°z§ß´Aä<…ùÔ6c>y‹Ø~‹ß|ªLг!ë #j0$gµÍ%í§¢nìâ²Ï¬Ô¬Úæ²õþ}öR\W›ñ ú5¼t¾y…xLª8+#·Œfto TŸ •h»á”¥ózÓÜ"ÍêBvûÕYFVÐËOÓzÍŠ–¿¬­íG™œÄ $± W¨Ë ˆ£Qm#‰2¢yR±?¢ 6Z{†™ìzÂ¥8J Áý²›$Ý–;' ߢC0 öW09· ÇQhžce»@঳ê’k]g̬°9æV5±<•£ä¨Øt&svG›Q&ë__+‹ãHãd+mq.ÿ®c#%fVž/ÃÍ•-ƒ’6ÿÉyò#æH°Mq­n›÷d 2éÅŒ<‘«§}Q¯¾¿®/‹Eë ›Ò¥NÚ¹+Œ{Ð#ûðØŽøõ|6Éʦ´Ã]sЧüu½ím!'¹¥¦ÏùîzK ®„ŽÞöÚ¨ý%˜wbg¬ÈpQœÛå–±Äh–";=”ÁÁ[ÐåúÅÜÞ¥*FŒ.·ÁÔ¶ÞdêèŽoÚ$8æ{jN\osyzéìâ ±›ŽÎrNq.ǰ@Sh›Êè»rðSM “”8!ÿbïU5R*̈2Ðâª]”A dST!÷"Ú<âz¤­ø67Ã×ÜkûiF±ÍÐ˳VH&$­ñÔù4žÁû|fU¶,®Õ=’bÛ!‰‹N Î*ò$ܨí@í'íÃ^Þ$·WÈÒ /ûT‹Má²qÃzÉù‰>5s¥Ø8 gÅ™Ý&‡ºÊæÛ5¾;G"ûF¶URN·Û°“›cí'U¬ƒF‘Ì>%è$%œ4ªÕ±­6ÒÊûOE ADþ2Ç"Ź,ð!zÓFð¡$+ÞNFW:·e2]‰!Ö¤ó,ÈÎGFlHaâh$ËÃ!€TD[XØ#ˆ[»%R£<Ýv{¶ØMV® =÷«, ÒpnY©Hx\«hãòa{è3ÏñtA £a*w¹'Qˆ”…§PY€xfú/ÏpV_ý´f2鹿!±¶<µ1ZUÒA‡3TmjE=}(ér#+u ²WcÙЭ°;ŒPtðGëÊÐâ …Z:B‚= ³B|Eã¥ÛVz÷Ô½—qUó1…œËB¼YjÈôFÈ)9!h,‰XðVs_\ž1ÉÔJ½RjÊ¥Öòï½³÷0?—×Q‚ã°Ò¢9EDáõ%/$ÃŒjEÓiéK+1:'°À¸t¢•«1NKÒw¹DãýXOT‹bê^¦§µ) «@÷Ù˜aKb)±,˜'Ͼu“þ•±×AsÚÃ'T6· Ü|?Ìã×¢­¨8¹–f€Æl0¶Ê4_#¦w‚P*ælí4wn!ÁEMR!ÂÕv¹ª.áE”4RÙ¦uØ2Í\WâIÛØÇV ^ÿ]úÄ )dî+îÜD¡ìêÆºI®z0VAúè÷-5ÝÑ÷*: œ^™gžÝ±Æ§ÅU9°@`èmî°P‚¼l:¡àkvÆà÷4¥§T¦Ó(H0EW}g}ëâW0Æ<ÌÐÖÃÏºŽ·5Xí²3b|¡ä™²y{Jþ±A{é «Ï”\i YÒZ;¾ËÚ§½Ë&ÕûÐ$Awˆy° b"H*ÁG 6Å„—£Iár5ü°ë€ómù<—Z{Õ¡¡h£Qãd:Qï®õLÀ™qÍn_Ð0È”ëµ5™€-#ìÄÊÀwL›40œ§ßІô™™ùÈ›L%2|Ï€K€ŸGÏqk?1Ôãv8 !mª(É ±‹KVԿՈŀٙ‹Ë.ÌGažH¢sӿ˘k/ ™w1RÜ€¥ŸÔgE »»vtƒÛî66ær¾ÇBü0Z~7XRHç~›þÀ•ùr:M.8`QDÁîùgê(]¢ ö”ÂÝþi'Î-4—KÚUízä­µ.âAŒ‡Ì8£Ëb6Ë@ðíó.õlÔ.+îÆ+ÜSÀrë†ëäÞΔ¸;fA™gðx]˜ykùÐ4Ë—é9‹:Çq£œR/}¹ ™¡ÖSbD&Ìd¸VÊV2lÑÇŠósÐiRXmR³AH®0î#]¼¡êJYú*O§É•g%ÑÚÔ¸§euqyVÏel.ˆƒìºä{5â I‘)çï+³^IÊzQ1¡<*Ròø•(b+7Í}-Ûœ”—ôwɶñºFú w­K=x™~´}ù({VL¢#½y%üÈxÛçœù÷áŒçfØîXò‡-søåéÛÇ/þô\ä±X¯[‡ûúu]PhÓó9º®)w#ìF%ujgçh˜¾ åüÖ¿ŽÞRI…Ò(ëc’†Šf2´ü gˆ²ÐAÆ]²ñº³êc"‹ÉGqi%¥¢9ÌŒ>«!” óé”ÎÌ—²I­3W­á½y¹~lrÊD±HÇv9…¾±òØsƒ,Ø[:¹DYG¨ah2 R’WV˜ÙF³<þÖB¼X×Wc`6YiÒ=,¶”ýkÞ™šá@Ãçj@Í7^âßBSUNÅ«Š(GÔ¶çózN¢˜U>Yo¦J5k pÕ¹zv/ïóêÜ,rËŸÉâñqÛ5‘ l—¾ÅC}r4HËÃhØ:ñ°qN›wiI&]bÇ%ó˜Xßñ¬¤b¥+yX¤°çD«ðX?ÞWÄ»uÞRª¸0«èWP]æmªvVåóm¤$ïgü=’«êB”–ò©+Ö`øÒœ7l˜[×ÈXkÜG†µ w@–85°Î# eÓVâv5W7QébÆýˆÇbž Ä8­ýRñûÓ·?¾yþë?ß.^Jˆ™wạ̃̋˜ŽÄ/úþÉ“Ç'ϸå(ÎKÑeýÞ7a£;Ÿ–溭äÛÙ²¹± e5Ÿ«R¦f`kMÀñË—·Œ_„õO LÓÆÓ }2à§oN\?b¤-a²‰èQ"U0{¤jÇ® ¬²^—_ÌKcüñÈ)™ Õ´S®¥&‘MÎ#Ø=,ìN]:­/#2!Ý•æ}y¸E•;\e¸¢:aÊP,m±ÖSeO¥•sðäÑHÜIJ¦+m²‰^¶•U]• ®ÑBÒjì-‚oo ¥þ‡Ìÿ :Œ!!A‘^˜Aê'—7³þÂ~Éš‘–Z›‹;Òb÷6v‹sVk@·9hâÕLÕÒÂpÚG*#“†w™tf!q\¥÷bÛŠšqp™TEqÕmZSf'1>}ô„ý€íƒC•à]9dZÛm€PËÊJúŸÄãµ@:gÚª4l»‡ÈÊ’Œ×]F‹Û¢«é¬ãY-Æã·É›0€x¢¤^ÊÀ7´˜ÆñLÓ?Ýn¯©ü<ïM¸d¢I~º ¢ö<ÙhØÚ•r¾ÇM%ú §Ëm‡·ÆEü*)êî=k6-fäu© x-¯¸ÌbÒ +ùTjGô´j ;/Vu§£–¢Ó¡J}•ÑšÇ÷ ?ˆ®ùmµNß‹fâóuä] ””ÊoÍ¢ç$|^A‹Ÿ8)£?+[N¥Ëö»öûªžŒçœÒ¤e;L#%ÛA8¤ÞâÒ±%vA S²7d^@¡ Âù7œ—“É[z³4>tÖ‹¯V?A¹A8WVÇc•àe5sï%ÒEÖÀ¡ŒòÀÄ. 3/•ul»ŠpÔ}Ùº{¾h ÞªUÐx÷Z‹3Ø"rÓüÒr}>ƒ8d!'Ù}îDljý…Ú-RGy.}‚nrȃÞK(µ­Š#{•l¥öHƒ‹C_Í[£úX;Yn4)šæ6òç°÷­êe‡Â¬ã_EVAÖT—Z¡hÂõoŠb8n“%tUIíëI½³éæNÿüìíËW/^¿ ¤¼~òìåÓã×O6P µhCOø/oȹÏ‘í)óo‡˜=²– ZŒõÉ éRN~Ó·cb4?–~Kú"僅´;³Kp§­e›’-3ÿ&Æò¢ pÖÔ¯åU#¦TZ¾oOÕËÔkêAÏÔqw3(EÇM@!o]DÍùÕÒÆ)Ÿ©ÜÆIº$Ý  Iˆswhìg€q ˆöJæ7ŒbͶÕÂSƒ•’#óä£ÔÖ©B,º=¤¼Hr1ÎÙ¹Bœ0>Ú"`(Ý „ìâÛ2£k<»±…ÞÄ|—Í m·ýdRµFÈ”~9™³²c=åõ¶í&ƒPñ#êÒŠö6“-ƒª_$8ä¨9DtO ò¾åiÁPÔ1ë‚ÔRRkGá úŸfÏÙÇ‘øŒÖçM Zâ²@Ï“ãº(Fäë ò¸Óý$h¬&:”ŽH ßz×7ogòê$õ¹Hx ‡ßì¥S *¶Í)Zãˆéa¼Ý.uÒD—z™L.›)_»i¹a)ßÕDm<áã('—ê–ýñé Òº u³Ø~Âþw[gßBXÜ1Þ‘Ó¡jÁ‚¬—ìÖ‰Æ]rð}Ä>^DŸ°>¿4‘t[;EE¿·þ(¶ŸÐâ¢z‰ÿô/r‘|VêéÉøSY§;jkwžä%\‘¢±B«ŸÖäܱ:)Êüdˆ 䧉ø2v{Þ»ª´k Èw^=yôâù÷'?¼=}ñýk”vÕ~<~õø6/ë/£]Œ9¦ò\=:û¬(⯷®Â(ß6Ñ€'­ßX([#Lü`fXçzZJIuuUŽ©ZåBÓjQQy]xS¸0“;òg;8üvBÐ׉}&GA,*ãV¬ð®z6c8ôÎz·ÖUIË^5W »³“W [JɈcÔ:rà;¯N„¹hહ¥/½,àæ áXsce°Ð%U# íZ†0¯¼*{XsaR-ð6’Ц þ:ÎòèŒx7júbÊ•¯¤Æk¸’㱫•@OG©H\+¬yÇ%F*»šVíF¶c,¯:§A_‡ 5º\½çsÊ}2I­AÇë–®eK­ÝÑqÿv´ƒ¾…w¨Ø­Àþr;Ý’hƒ,Ƶ%ã'eÛ¤mYáÅ~qC3˜äÚp5™÷õ„8Uz-Ê—þhó.j›qVšƒ€rÀœ¡Àaµ*¾WZ~e¤eV»EÃ1\›)(ä1ÅxÕ®B÷„Qrg¶·,Qcr§V\±+µ ?Môƒ«Zúó]Sþ2óˆ¯õÔqôuM ·ˆÙ­¬$ÄÕ(ÃYè˜áJ'ÏáxìÉ5§ãbQñX[õiö†›OY8qbCwú/àÜøÊSq¦¼³’áø gÎ/jûÀqQÑ"݈?7ëËWdâ!5A s©¡Îä©  mÒªI?¥sEŽ—53·£çŽÚzö^vNö|7‹ø§q}R½s± ÃĘOö‰Lf:†M¼öÝÃ$9o¥ÜÀ&z^ù¡Ö)Xåùå\òLF`3›êg &.ßIÑ‘RFvqQpÉÕ´Ûv5 jÜ4:J— ÔÊÖ¨šÌeüëk9k”xä¬ C}EhÞÊwd‹ÊKÞסÞj8ͤ–erk1IE÷HœÙˆNËp¯Ë*» NL²ÄoÀ8àý¨ÅßyÅ"ø„kUx“ªÇò»½âuâKCñ±IŸ7®\PãèÐ2먊ђiwá*Ö½E«oí¸qÐW ¾¼¬=F“Œ(yÞò ò—O¿ýÒŒ­CvwT›Žú¶#ÕöywëO§Äª´Ñ±Å¸§:\tgyƒî`o¡…×ùa¸ªÙáÊ! «|Ñf¹ðè“üElèF!Êv@iæÂa’‰9HóÛäì lõ—X.J Ë~`ø˜)U0lÖ´7‡-—·á&œóÙ^ë½ñbËVÈP$ ˜˜µn !þFdC÷ {`4U÷ι;È¢–ã-c—•êÿdþ´Æww[ÈKxFa©}™ûɲ²Æ<ÖâFâü*ÑÒ# SSp͆b\ÌβÊðzê6}-HÈd˜pðØxbV9p/?”#æ> ç ·‡{ø›(ò3zV²×œ”½ :›¥¼Èlú8þïSŽíýµ9¶á‘—ÞY߬"÷woœ*ð’B´D‚…´Ž©¯ÈÊ™³"@DI Ë"ú´½|â\ÓW¥¹|p•2Ð$•†&üèh8Fó¶9Ä…´<`šK?øýÍäY6±u¾¯æõ”äç5Š®È.\¥‘gZï'ä½ æj$¤Â¿àÏwE2O§2ö÷·3;§‚vE\d…1µÎéë|ö`d“f-÷á/jÕu#iŸÕã¿2Êâo^AÉóÆÌðïã—áʨI3]sÛtã(¿8¦¸ºá¬öÅL¼ªO^m/<Aªd±gnÊ{Ý_À“mX¸¬{·+2÷ÓÁ¸RÀÎü™0Ý?gþ[ ã®*ɇ=颱&•«)Øñ¿ÿx{™š8"ŽoQñ1úT·…·m²¢jg[)·BÄù ³å†ø ÇXCÎ\ážîˈÔt¬èM¦sËÆ°ì‹>i˜ Ád{«&uR󋕦æ`˜¿Xï(,oýb_A5L‚½0º´“}…\(\Ü/b¹ð^íž Ñq ‹‡¨ôfk±TäTyW–”Äs“Y])sÏtcˆ†,Un_µX™‰ Fdpz쩨¹rÛÜ0 ë×&E1ákOm§Ï´áoÁcKD~,K‹Jr}m½û\õ[ÎèLÇ<ä§=¼£†a‰Åg>…†¨ý’¾Úr[NÙ;Žd¢[¬ŠUQÃl²;ÍkʜѱùT:ùŒC·Õ¦ëˆ\q±~V|ñ&W§·×ÜZŸ=Ö`Â3¿?‡ù3Bª§éz¨]¾¹à×Éì½I“@1ÐÍ—F,øŸ¹:ÒÊ?ÀòÔ³OZ0€dqøúÀ…F–!³1éìãæùôé÷Bf4 Æßr;‰Ü™~iä¿|ö¥.@r«ž•£âªÌ.—Ó‹ùÍ]Iý†3âc»œ¤Â¸DÍÖ„SRó×'.FÞw¢6_,â·f—ÜÆjæÙ—ægË´¾Mh0qpö}ö ŠÞ>u .œ¡ÆæÄGþ%ŒMLÉä¤Ûðêß\>ž@­Æ;ÍÏæUyNÊÙÞ„HB@5w>›Ž'¤HIJiÂÃ÷m 2±ëÛÿy²øft~—Øèã.¹›þ,ì«m·¶á[ Æ®QVï„~ÒgS:’—¿Çü ÅÏÜ‘*Y7È Šhž´Ú¥ÇM Q~ÂN‚ò˜q§ã`´ào´Ûö×^5Ë]¶é½ªˆâØB)R²|Û7­âÅ;Ç…¦ÂÇí×´iÙãö§¯GQqïcØÿ[hEO;1¸8Pi1Œv9LR{{›]V=Å V;B¬Vøm»ÅÏK‹‡”éh ós£”ãù%Þ‡ÓÇÛwBW"Ýj˜‹Žß¾yþÇç `8!’7šÅLkÆi$Ž>®-<)±=ž[~س\¡,ÍGì/ò˜ßä=¢zDTãZ3l;ƒcä* Z)‹Ê\û¤ÖTÄÈÌmD¿ò¼DÞð½²Åo#¥«s‰"}rXõCÛŽ£ŠH㯫ääIì zë2îFÉý wýʱ˜1íKm½¸o¬.RÛ‹ ÕtCD}ëÌ™“‰ü±â|kÒŒ§kÙ0õŽt¼jܧÆ\iš1”±’pF¿§mpòýÛG??ÿáÉÛ>ðÆ”“6OäÜ)tb»MW|®]·Š¦ý¶=WŒÇsJšþÇÙ{iVí¼þû'ÝwÒÒ§) }¾Ö,J™E¼,+F$§|B¼n¤¸Æ¥/(.¾rwfŸ°;ó_lwÎÛnÎp}*EÌLtKŸ-’|ásD6Ðvû·ršJÿÙàí]Ü7tÓŸUJ%tßœ8'=«œ¹[j ½¿íf¬ýí')ÚEÓÔ£ªHÞ.c3_c™û]Õ¯Q¥˜Õ'-sÈ{ÖXÀ± ÊTÊåAá]ˆJ¦òüÄ©ËU]W+.¤ ½‚7 G[î¸Hn"Àgß7~ž‡ù£hÕ2RF“]ˆÜ¹8Yäss¼?ÜMÆhïï­J—¥í°ªé9 )9áøí‹—¯Ož?x°˜fÉCá§õŒŠnN6Ã"IäùL_9öÃsÏÒvMÚÞªßÇÏÿûœ<€<{%Û ¿·ô3sÇJQ@<Mºß£¼ÂÌa܈¼åí¼xKÈ}J×ú®âª ÝÁ9ºEÑæå¨¬Þoå‡kk[„+•«=á“ «ýRî íDëš÷:1)Ïp‚-„ŠêZK­õ Cþø—·È2JްÓÀM0®š(rˆy:#æ¢w7±מ¿UßZÕ³3õ‡lX T·9œKE8fõ ¸ÏRxz·È2Ae„ ²6ôª€L­Hýi˜€ŽfŒ[ÛDv£Æ©²Òõ††ü¹^2,®x0‹.ñvÕ&¥¿ª8åß®d«äH© „”ÝK×YYÜ*‹ïµ¢u!L>Õ‰™Ø^¼Í ÂæX·Y»;a;1N4|öÁÍÔŠ†±½Sõþ£ãŸÑêq™a!/jYÖ3}5ùä°ôž׊w µÎÍψ|ò­#õ$èÚQ—ídâd³Km„¢K6Q¿r"‰f\Þ;ìÒ‡ÊôSÚà…×=[ ‘íL.‡O2ómf-Gs£5ˆ˜Ò3èªLFC<ÿ.¹*~6ÃÇÅ|L”z¤\“‹{/²TØ]tZŠ™W£\LYdw£q\…,yÝŽØÃÈœ,åÏWQ×鄞L}׸¯PžK6>ÉÑT{O@_ ®×­äØ/ õô‚,´<¶ …2:ø\ð S>Øžá~rMÉ|ŸãœYDïÏ‚Á¹¢tr·À:.À¡õlÛ²«C‹­äøÚÁ½kh…c§ï{ïßYñýÛ³R«›Daå†F=ªf^5[c*W»ƒç[?_5!ëýêúIï¢B4r˜pNÝK@^L×Ú s#F…½§ò¬+0zÅPê½V#¶ øâ2ƒKŬýâªt¨j©Æ’j }¶9H»¥Øá~ôkî·¹~Ö~…SïÂêaŠø$-==r‰Ûg¯*Ͻpºl7`W€Ûÿ]ãSH?F=z¸§ôüižàûÒÝi¬(}N„ 5Ì5Ù!SàŠxæYâí,MS„'Kò¯²Z9.Ù ßó—f‡.Ô$Ô2I,˜7Ù­—¥;B( E›'Èæ^‘^ì’fš\!Ÿ¾?iBWØ•ý›³<ìÝ›?sCòÛ¼ÝØÿØa÷±Íüìa¢¸Œ­«dÚ‚^9–².ôí—™È5„z:sÜE|6}ÛPéujµ¢Qªð85âdë/04ÐOÞ²KÚf(_[nŠÞVImJß껤ȜÔ×{“pOzHÇ g>/—&™wÃWM1›•9pOêf.UJ‹™“í5†=Ê3¹œgeäy7™oä–åÃЖƒäúýIÉ0ý/q¾¸nûk—§;+ŸeØ¥£÷â¼d˜¬P˜øºï2U(­KÄu—ózJ¥Äq¹PˆñغsOìzÐ껔ؤÐ0éŠÉÐY3*¦MKDÐuÏa!™§#IlOž˜ t!úÏÉ%·¸ÅÍü³Âbaê„Í*²_Ê„#e;(Ê…Éï ng&ä%éõUã„Ln2GMX9^3?› !ï]d¿²=m!W=ÅÜ‹ʉ0åY5j:lI[ÊHâ˜{{Vœm„ø´SYŒ)&LõžSÖ˜ù ÑH‚@”·ÆÆ] ?Ÿ9_€;8)ÚTRuè r¯„ŽMÚ-ÍuÅqÀÆ]UÆþýÉÂõ—ÎnÞBÙ¶¹o£«ñ‡dÞQXÉ©¬ÁªB,¢9[ò@¢D‹ÀmiÎR“=UFV¨ B¸›¥–°L‰Äá]zeÓ}ŠJØ1zW)æ«©£”nÃw«âÞõ¯‘x¿þ÷[¥·ŽæªÇ(tdVmwÍ–ÆáìÏú*0@§U†]nwÚ‹>gáWä,üj­³0<ò< ÷8 ŸÕML:‰MD˜õ.Î@eÓ§ú¤…œô;,`SLmW±Ø-¿þa‘_Ö³,âc]2<Œì¹‹¿Ç÷X`æË0šŒYŒ«¶Ÿ²Z¸A-^^\ºRnÓ£Úš2r"!bÝ)Æý#Æšœ½ ¿„>ÒÐh5-R^\vì7g娾*=ª™S-D7ª¯•s!1¼/µœs;ŸMÊ«&jý–ؼ9Ë9"Ê$ðAE¹q3.Wg®Ì¦íìÜ ’Ó[/ç6ùYœS{KÍ/¤ä$뾓Êt¸HGõLã[™I›ÆHž>zñòÉÛ_°§w7|zÁ ~$*ÂkoÄ>L<øEÖ 3Óq—: qèæ¹áöÄЃ¶S„†ºÌ8â½#°îëüœ\©sŠ—ïñ8+`q1D7•Êà$ h¶3²{#ºyˆÉÞwz;ý“Æ÷ðN¡UÞÿº¬Fä°6äÄv` èo©ZáÉ´H‡-›vV¯ËQB˜¯òÃlR*:[‘}<œŸ÷U¡ØØçO¾{úúäÑÿ 1KŽ{Л,™Â;R^tΑ΃X†`HçÃáÒ†ù)iRÚcZŠrz²ÔÅt¯`f|=íTq{BÁU—c»&µ‡l9&V–p×£ÑrN5u[™Šœ(•(S½úØKÙÅ8ßœêÍÉ’´²h¦zûx/}šº3kHÞ\ͨæx/qÃÊØÔ~ 1‹·:yt3ü ¶5Q$оK¸z¤ÍD¿ÿ ËÆnÊbNüâôŽá*³´¼¯–Cr‚(Œï+=Û\IjŽö~}5ô§/SˆÁ«rì‚ôä 8Ž 3Pñ×KªåÝ1|Ò5ãk™l$°«“íÃÅ^ø[©y¤¤…\\±é»± =ËiÅteÈé‰>‰¸>ì¥ZS2&lpš ½º$u uHjSÓØþVÎëavržt”àl±Öm"Ù*úXAH[ úN«Q¸ ²8§ƒ<9kâÓ,g;nŸ—DŒzrÓº1uþÄ÷â-`Ækô ‘£&a;tq65Ï“Ójj %ÎÞ†a¢ŽæôIÑ¢öÀzhÐ8Þ ` mEü¥c…[ða”‚›jÞšŽ1l"KÓ ºGß½¦¬Ÿð½8ëEv´R6O Äj‰óï^:ÚOZˆ>®ÁM¨TZl“[€­šÉ/òMG½ùR>|½‹é/†( 1»ôîW­áp‹êz­dv]Fg»IVtæ Ï’2ä}Š‘*þV 6Ï'‘8ü/™Ôñàpaˆ ”ÿ×SªØcS®[ Òß3µ>e}¶ð…þ.´­É¶Öʵ趸.´0<Ò”€)û/‘nÉcìÈÄÔrÙ);’Ë) èÀä¯ü™§m6_NËÕW/¾nMÆ­—nÚ¸hZT2¶šÊPºÛ•DdŸçâ²nʬãõ°Éà½Äáéð„-LJN†6@mX~G&èe9¯ÅvAN9ž´?Í ¢¬“oéÜ›Ý=º±þ·ò=ŠÆ,µ*»¤½kæ ™=jÔ'AFn÷ªöœÂÕ>ԯɇúõZjxä“f"Û<ž¡^ðeè©Àü’ì1Üèô(J­í¥­å;žžì2ÕWø›P8ÄZo溸‘:À”ŠÉ“@[y$°š’¢¿È}!bøDça“Þä åÞPÝ‹¥¯1Xku¥pæ¯Ô­'9ŒÔƒ[=û;áÙ7ÏOþ5gi3`ƒ²à¥Ú`SÞ•‹Ýˆ%mÈ…s5iðáÝ †Ï @áf&æSK)Dá-Í„ª ÁWÕ”WgåäûþõK3É"ßj±:¢'5âuËB 73Mfä7q‡…-÷ ½¢>´lŸss!®þMj$5ËyX)óì&ÖDüB'&ì½®k”ÿû…a ~1È¿Îÿ-\D¨‰^Îçõü Œîwù¿57a–?ȇñЮ׃ ŠÕÛèjòŒ&U+Ö wu–Š`YP¨¥ëê#ÊÇ=œ§Zc:ÉAw¯¤ê—»îÒßI¢Ø$\¡c®ªÆ{„‚}²KFË92¼¬>WÎÏ´!–r6 .=«èLÊÅK\‰‹y~5§ÅákîÑ‹ÇO¾}ôýÛÐìïïâùU1š×®„9w~-p•šIz“v°'ADà«/&7ƒ¯yŒIô×&^}¢ø8‹F.#¢ùŸêÒ¾¢BUÃæ:$M(%hQ¿+7BÉ/„<èQéæsBW!Þ$Î~î&Us~Çü*\ª­ :´=¤&-"$Dò[±qD¯|þ=¯ •D Â<¼©Uû,?ÐÕDQgeàIGÝ¥ªf ·Öe§)ŠkÕqŒWîÞ·ðß}KçÀrÈvA‰Ã*˜Ä,(Áž„à¨bj¬à,^#DòÓÈÀy‹ƒZ~_Ì+&d¯+-ÓP•Ê[Î:pú™œ‹0",ÌXËÓÑð!YΑZ"E¤y‰«©­.á['T]ŽI êöê)àQü«2F‡&‚()EõI<ÈUÕ<̃˜TÃŇ·ái‰LR2B¦ÉÖ–e“êm˜ÊpÏÈO¹€!G6åi7d”3c¦/G”@Ií`áÏš™Ë‡ ¶ WðçO“wÍê&}SÞÿ&Ú²tgeú&tR_Dz §Á¤*Î.Çl­›tâ2ïðšÞ=[ÌõrSiÇ÷bç±ôÇV¡=Øß Õ̵VDl-¸.wFþÒ –Ãâ’+ë."ÞÕFù6¨àšk­¥ŠæHtâ-D¡q¹>«Ttó¤ÒÕR‚«F´ïkγÕ.ÚPM’6äÅšß “–¡Î1¾þŽ/Ê©.PyRƒ’޲íÀòeÛaZ˜Œ$ôƒ«7$f1¥Âѽ­s\⎌ȹIÕ*TÕ¦,§}cŸ§X¸«æÂ¾‡ú1þêì7T’f‰Á"*²Ü»Ãð:=íÝ\‡‹\G  0ÖõX‘ó*j¸õË‹–2s´”¸¦(³`,ÒsÇ>Jï”ÏÛñî[¸­;qÒ’ åB'f+£“ëw·-· ›Hgo˜LEŒJÝï¢áÛ £}X*%rëDTÑÊpGx˜æa)ás_Øzj‡2¸)ÇV[&lŒ.Kõ”ψ-3oAµV€ÌbGú\#¿#×ÈïÖºFÂ#/Î@WDEgVe£¢ (fâI` ^ˆ«’<ÍUsÅjš<.ê==ŸTtnÎÊÅuYN3:Íd)Fˆš”Hæ:RÕ;Fs4¥£Œ¸¼i ¢›]´^’‘[^ùn(·c~’k%0 ÛǼ!Ÿ +· U%deT§ðVÇL‰Dé„È• §:ˆS3EÔ®}œ!7,üò=cfÈ[xMo½dã9(¹lM°f¸$Læb9åZÌÀ®Ñæ.&M '‘ÒâëÛ¸(¯x#¹ˆãØõ:í:—ÃE…|„Hªê1ÆL+øo»| œ~ PÔU1@õB-©‰B…aûŠ…(¬VŠ+Õ=ÔÔ“¥žçÃz(À¼éMìCñ^ðkœi¡+Î:™ÖÓ½&\E%n Ý$Ð=̪ÐÒØÅR0¾Z(Uq¦òÄvýVÝ õ¤Â+ Zõr,™I#ÖÆý1‚±Û²úƒÌ©ñÈ[z$5)ô ÐÏH•¢B…²óšK`˜? ¿LÊoZN« r%Ì:ùËÇ\öBD¹YÐt^|÷?}ñèoß<~‰ðÖÿÂÔJ¶‡Ëì(» Õ ©‹ñIÇóìŠêçàú$”Ij„T~f<´…‚¶q&Æuº/nSÜÄqóP5ýó­dÎõxÑÓ!…âL¥1¬Ó§¹ÍgëæòÝa¼·»É…\†£Luzeª²}ë é tðî¶ÊÖñ æ\'ô\ޝèí¶ƒ£Tp°´­‡²ù¥—ã¨åô/<½nó»7iµì,<õ# ŒÈ/I1ÙbEomß…i¹[­oÚ.UbAª•x¤§A] ZiØ<“Îò¢,ú“R!Öí'n9~üm–ÿþÙ“×jsýðäù“Wǯ_¼º“?zñüõ“ç¯ÿpçi5]~x\ö^×dð ÷Éæ ¿{}òúé“o!B^†­HrTÎð,n.˜‰½,Z¿¿Ë¿ ?zòü^ Üc1¿zòô'ì{æÐ=£a»žçL^ñ£Šz„ À¨/r㸧«äÔáærê¨-§ ë6Yïïç ¶“ZxÒAìùHx‚â¬hjÅ9ÑÈ~ÙØV'Z‰øg^dio‚Z ±¹ÙÃÿ—ü«–l²À³¿5ïü™VñB®(œ‹˜íréŽáM‚b¯ÕBs‘-Šâð ²Å°ø:mºÈЈÁTZvh÷ÕlVŽ÷¸Äü ±ÒƒÝ0®¾¼7ÈØ=qêIXReð­YÊÅ@ ©êÀ ˜AwÆÌ¦gðPúèFÈš¨+ü$â è\LÉl2œcnm,Ÿ­m¼9²$æÈñ»ÎiaÞ›E,ÇÓÝã›úú_¡2šèä¶ÜÊîW§ÍÚSS,„mD58±‘3Ümìj•ÛNÊ ©ƒIü—W¸Þé) ¿øùr·h8‹›ð_lA[ìuÛMãWÔ"“ ÌGÿÓiÝd©ZíÞÆ“Õ#Ÿ(¨F"žâaNRœ×i‹oëLnëó·ôÓ·ô˜q.¡a^švYâ´§r‚ãòƒý/ê7˜é}$JK³ÒÛšŒ4›Ù0/àÕ£WsXõÇÕôíÚJAq™ (DÀx˜Ü€«AÓ› 7<Œ@ ]¨;£æ6½9«Ç©d=‹_xT‡8”Âço%LÌR>vAÒÅéA~Ÿ`ó¶Ùžéüô½édÙ/¸3cXUžŠ÷ÙíÛTéÜôòa¸w äˆãŸŒ»M5À°x{&CæŠ)-éE @wªõVAUîi€Û­ tÆ_I\hXz~;‡W*àÙ¼Zi»°Rcà ×dí»ÿöÒd]ÌzËF“Ú²PÈ ÷sVVÓ ^óW¢çæîàV´Ãz¢´gÛˆyõäÑ‹çߟüðöôÅ÷¯ hüxüêñn_ËqÈÚ¸hìfì„¿ìsîC­úüm%G ŠÚÒºEÌ2RÖÕ[ Åag};ÎwðÅ)hk$Éì­‰f”GŒ- Ǿ*©Œ):ÓW!AàDC)ˆ$l˜0Ûš–1‚ÀðHпO&üC žòèÒv“x÷Ò¥QÍYÌõLFc]œ*~•IÚöQ ù#©q3¿­ÏÂdŽ&Îlv˜¥Ø&ä ˆŠ™~åçlYÛ£ãÒ=,/êÙădsÃb•©¯çî'Ô6yi¯.2î·_<¢¼ ]¹©Æßïãc™6òòÕ‹^ =9×Àbì2ê7ØH­ËjŠßÿ?ož¼yòXéã€À[ÅÑ1^–Ì[Çx…öÉcW†;ae®3&—@ó§?¾yýøÅŸžk÷Ô›HðÖËåÐ €ÍI² üDëT…;gk}Êmƒ[i“O„I+nŒUQ6خڇÞ7–JGìPÙË*¡YJ©)Ø9­À÷¬ÚRáÑ¡d‚Ö’¯k¶#.œWÏ„ó½LA·ól®›¸Ÿë~Ö_Ï•Èâ2æa®wªa0ðÒù‘œ‹»Û¯25µz‰ñ¢UŠÀªeÕ÷Ÿð֪ߑ›±–«Y@±Wï$ñê|+&Ý«­É‚œI}! ô¬‡lÞÊÁ˜ÈÏC–NÖãI[%í";¹t³5—n<¼=Ú0E>ÅÕf‡…Æ£ßõÞÆ¡÷0vîÍóØ<ÉÍÎê‰{þâõ'ÏÐÞ9Ñ(Æû¢#\7ñ΋^')šåº÷žÞE]ïæù§^SYß=eÔ^ù6÷U ¡Âtoõu«¥W¹fð†<¼-8rðÙà$Ð'YåºšŽ‘cWÍ;EÇØ ÓÙ>è¦}Ëlaf‹Ç%f3|Jz‚è¿m»-oœœ°&#€Aè> @R~ù €ŽJ¯š»“å¸2uŸ;…AŸM,ØÊ>rk™w>Bà([>º3,Š©xÒªiW‚ݶÜqbyÁ/Þ†¹;¢ tæG-ílv#‘ §B\ˆ[ùÓÖÖñ¾áÙÍ&k£ÝO Ä›'vã¢?£(fyökGÞ¶“òÈÏ¢Y®ô¥ÚÑmr…­Æç2w*¯dÍÍÕ!¨“ïÊ›ë £]­*þ¶¯PêøâÛs¸½ ¬äº§ðìä:}`1èKF*ð@ÇêôÏÏHkxýÂa¥5.iBp‰Ó£Ïß<ûîÉ+ÿ¬%YS/øjFZà%11‘°ÃŒ}GagN™Ê4›ˆ –œ:`Ý# 3! ›ÿ2—R×çƒ_'ýü—'™±N¶‘Ì·®]¿q_˜ì“pr…&Hlo™ð£·¶vW÷t÷°Ø&B(p")ïu¡{c„-'rÅ™_ÜÒ–l÷= «´ãö¶å¹o”e²q›PHÒ3ø£°³¤²RxÃ0ÿ ȯoRʾ5‹ ¡+ ú"™O ÚhjJÌМu—1ñ¾ëL/h<ƒܬMOO›”ħ¢êÔÓ³÷©¡¬k%Xó›AÉÀJŸ+>Dô˵×ú}Ùæn½žÄ7ºÉ`˜ôaQϸRR&ãÿÿ·÷îÝm#I¾`ÿO©ÞK½mI–쪮ª3~¨ªµí×ZrW÷ÃIHB›Øh™uÏÝϾ¿ˆÈ¾d©ª«¯8gº,2‘ÈGdd<a1i*)!Fv ªeäÖU¹Õ–ꇹFC4+0¾ÎÔFþ¿Fä¾é>ÝXé|µºwJ£¢g´^è†S˜v{‚Q/¾Hȃђ£¶pmm >®¤-ûn³ t%:"/Ù™T‰üI AãÜŠÔ d6¯® Ÿ 9©Ý<@Wð‰£Çï‚Zù‰8ÅÜÇ|PTjça&n ‚Ò%•+¥FÂ7³¼ÊÆŒjõ!åk À‘ÔÊ0|Î_8/ôÍ|ǯŠ/?×8üIþ-«‹°3àr.I ŽŽë_¡5Aý‚PÁCF˜_^1yHF;³¶PMܤlK)Å, ”sË$¥pȤA+PýneÍß•²·)U»ày[áÔ[IŠPN>)b0Ôd1Ô°ëI_lrŒ5Åá™ú”U fµ&¶U ”¢mõuJ¸\âMž* Átš‡½ßÁÛ²ÔŒŠŒ¢B§k†a¥šäòêPÖ¸R=6MÞÁ Ó¡?/:MÍ—-ŒÌEUó¥e%X¯h\bŒé!‡R3Ì*ZO=–º:ª%Ùš¿#ÅUR]Ê×}/Xjå}¶Ê)ˆ”òæQ¨]I˜}§nõcóiš$kþ6‹Ê êݹˆ;îÿMzÛåToN–æëÃTª|sŠØ€êá¶+© Fo{VFí aD³² ÀCc+òy'F¦I5ò•«8_pðl¶OãaEýÆa‡ýéå{];b‡‰­ Í-~Ÿå£Éœ R¸ £ÆgŸR®¦ãÈà Sz®ã—'?œ¾99“%é^;Ü)ÁS/^yê"/ÿшÇGSU­7B&Z¦ˆ'ý¾äÏ'ûéíû—úïõ?¾öúõ³÷þ }U¿^sú¯?Ødþ9›dßöB ]”vdŸ:yóRâèŠ@Odje[„MŸ.SÈð£ÔbGø+jgEe95ß‹œ—¾`9ŽZ&9£ùf?·Päž½|I–GNÓIPÞ ÷u2Aî&àp”Òè¿;j\ïhe,+€ëNkDÖNÅ–èéoØY&„£æ›Ùo¹ªÊª~k×S/ºJ'3ÀËÙìÿ=„8Öj Ñ€4©¿$“9ç¨òèÓ|>µ[ŸM — â«×Ã9{{ÿáµ>”cè…ÖÀqCúÆÞo^ï=‹iFFvÌ!6‘˜i%M€ Â´0:uR)@/&­4ò ²V¨®DÛ;L`ûß9ÑöŸôãmù½cMþG­üßÃûüß_äóÉÿýì°Z‘ù{´Aæïá–™¿·Êü=ZÍ87gœ×gþš&Weþšßíš-Ëù}L ½Wæü¢‰×QCÓø›€‘ÁÏ X<"ÓÈ 6IòË9%Ýf*ióUÜbá²(d蟤a#Q5U6WV¥½«ŒF·Þ0©ÄÐÓ‰…q¸hsF‹e¼7 ±§»ýô{ª«YÕ 8"„y|G°—iÄqE0HúqCˆ}Í òú#;WíÓw9ñÖ‡³Yßa––ÑW™(Væ˜|%ªCø¼]²Áñù÷Fn…U2-<©–T_IQLˆRþ+.fЛ Eæº`51E6Hi©É¾{åd¦ž@DzÝY¿¨ú\v*ª’ÈðVQÐ0Óâ”Ý}Kî$V[Wð³°,f² ïÈ}—^ô—PÚ:& BÕJê+]~z'8bâDJµE ÖF®W/$ÔÌ|_É‘µÛoößšé$3À˜ãÂÂø–¶«Žw‹ÝŠqbÑéÊg|[;Kå¡•¯<òÊzà.ÝÛïÅzñ>1„ŸÔìÅßõ⿬ÿH”øõ×_ÇIÕΉÑI‚U™8³KîeöIPÉêÁhÁä"§ØÃr†óŒˆ8™Lߘyô¿´»Y>()Øî·'Ô| þ?½¸˜"7#[»Û)¿g‹®×m0'Ìdî]º í,™Ñ®„ŽñÛ(‰N¬nK ÿ)N5ص^\¥©Jè {cZt¾|8¶{’q|2¹ÍaJ®€ÃÒ ;\°ö˜y’Ýêfb…aåd±6R¼¹º¨Å­R@›|è¾rÖe‚¿‘lµïÝ}Ø£>Q0;Å:Ƕã³Ê*Žx7,ql^o@Fê…¹Ö‚(N§Ÿà#­™á*)Ç@Š`O.nR_f åÇrAÛ‘qÁ[÷Öo ò^d¯3Ür‘˜ uî•ÍBO——ûRùò Þs”ýø¥­J€hVÛUÏ ³D½^Ž¡µ¾D5ð¢T9¥jŽ‚Qü‚m5¡è‚ÀÏÿK"*㚪ÈÑá`,Vв·Â“[¢óŸÞ>{ÿ㙘æ‡bH~µúR±æ¹Åfér‚[2)¹.*ªÂíä…-ÊÍ&*I¸¬ g Þz1(ç­¢B:–¢ùï&o-)äȶ)ë´Ù M°ó¹F5UÀ¬ë²j6dyYI-µÔS3è¥]ê×ÌÄ)6²QÆ}[¾tÞ­³lÞØx¸s9t5å9“û ¨8Ì ç„¼ÑßšÕk%lÛ2öUÏåkJ~bŠêègH÷^PSÂw¯Ü…LöɤvHü8—…в”BZs®èЬMŒ¿×{ÃåmäÖÀQÆÂ à-pÏ;#ê~¡ÒÃl’Õ¨?ï6&ž–—ò±’+dc£X^¼ý)¦AíöX…Iê¹¥¥„ûÂÐô »–¦[#**±0ï]¬@¢`*‡?ev)81å5`-…0l`¥–­¹< ŠáDÌ&vm`¤Ö&5R7eª`Á;bX^H :*”atÔñ®i››Œ¨”ù7êò+GÔ¹ÓJ7ÃU¸’fß!JJÌókA¨˜¤¨$)^%Ö›¨ •¤ÛûXN XO<{O„m¯!XxÃä±Q?â¸CT¼}ÓÌòp¹‡f„dÔ¼Êf¨ˆb',®{A7% ¥E™²H¯ú–žÂ1“‹Ÿ¢e±a×ÑCÔ¿9cZ)T¬#Ò/.¨â ö¾ŠìþvN×ãÔ\×_f½PRYi›ËpPuÄ4Y§ ²x£‰ØRu‹Ûn­ou"й ‡NŒW6Yï’‘†zXgG(A•RU¿³Ê‘¢q2M.ÁO¶3~„ÁOVr>ÅÙµ|‘¬3:³=¶½\û#/™Ì`ÔeÄf ãÍ/áˆä˜ž|@Í?"™Šš¤g3|úfAE´ŠËÞYÿàè&ã«¶øí‚I¬Öß’Éö²yÇ lt]ÊÉs\¾>k^è]ï¶)>Nž£™­Ù¾3çùa ~$%*>õTë s¦%Ýã/1NÛÙ|’H Ã2ÙqOjþP¥ÜQž•DÐnÌ›sŽKȵ¬ŠyY/ŽDŠ–’jBCØöÙ ˆ_÷ÿ».P%:›€xU  o!M±Ò°WÑÕ•‘‚yY&—æÿŒÿ—g:vR:q:UÕ½´/¦‡ò§ç‹Ú”1?é½b /Ç ‰Æ‹¨—åK TûB§NhCÃ*lwTG…}˜¤õ®ð#.%VgtTά晋à÷Ï¥ «Ã¨´OòíƒÂCÁ— ñ͘C‡u§Ñâà‹ùCÛH§lbÅuÑ9Œð¶  [ØìÄá™ì ka¹~‡è€|D«rµÐä¼Ì˜$Vl3£ŸR1ÆïмQéÙƒTHWÒùœû½ôã€7‰,‡Ë¼Ê,ÎÉ#´ÙTî¡ù·9ä9 ðÌ%Ü\dDMéWiþJ5\+’PÌïsåXè“|ýhhÈ—beÊEK†^§ŒœL A² WqiAk¾;µV [«Ø¦uЉÀï$‰øy팠õË\ƒÆÂoýØ1JϚ͂…q !îµo|CË4)®íæÏ+£ÚÐß=åã7¡×®Õfޜʊéx2õ Òx}úfÇ{gÐŽi7fóæ¿Án¡÷:BÒŸuèd…þ.ØrûN§¥yç”`5ACH½fÊ ·@óëe±Mß—õU%À <«<­ñð°Ñ2ÞyÔïà´œ¾ûôx—ËhÚluŠGÑfìÁ+I²KÁè†X"P‹95æü;£mÂ+I÷:µÄ·;BòtàHÜO®ò4‚þïá£])&,…$1öt¹ÝJéFÞÑ\²\¬íÓÒx¨Â*¬ÃŠËHxÌÞõ{¤1¢ì–á.Õ·&PTø”Íê¶Ò  qö¢&¥„‰éZ™XÀu™3FT¥°=³vñ:™Hk‰*„n‘©7åK›aÅ(¦`kZ#ð8·)‰e„²/1a, û£fÈ_)¨ƒ2¯}\`Pñ¸ÈÔ.üŸÓéd ”§‘æã„’æ.`ù¢r 9Œª†Â¸F3ü»Ú.4›]ŸQ™{a–\ZϤ‹ýÎQ­˜CÊ3ª )odwíÙ|fÔHÑsl¯×”GEŒv^³÷õÁ®¦–â´½¦#ûz¢3öE¹µ€ˆÒó>o¥äÈÒ6œ*r«W‰™žÊ×0ÐÁ€&e2ÈD AO̽’?¨"ÓŽ lxOl 1d-dÿS'탈 BBÓ{®q½X÷Hw˜ŠrëÿÔA’½hi²ûXÞ6©!ç[© JHäS }íuÓu¬Uë¥6%s¬0.@bHùìE×Ê™´`Yžå— “ºRMõ‘L+óÒšT%W’'Dð©vóáæ0Α«5çq0{ç–nÅC›,¨B‡Ÿ^tš{7sKJPs°Ø…,•¬Ò ÑzLzF‹mdbÀVd†¥(ÌÖœñÜ«Rv*Ëä:YT\ª°dõ›Øuxñ‹¬ÙsÁc½‹e_±œØÝr]%cb.@ƒ|d›j~qûESF7ÁÿƒÇ±gèÊt¿‹Z‹'AN;8êâ2ÿKãºÁxöܨ£•£–‚\רAžÀ¯çkÇ#ï¬$˜ò7ôО—mHy¼‘ý£xGe€ª”w`›4ym<ÕqG”¿–ëa2ÛX©[òìŽÝ*‘—äõL‹ 7ÒÎÉÌËx84‹mRѰê„íȯìÒ~³NÓX6X‘Úü0ûÜå#ã}oßéP»º‰ÚÜœ5«±‚hÆH”¢ÞŸ®A[¨–›XqëðédÂö"J¶›O:Ú׆)q•¿Ž'®ÚOùFŸX£¸?£ì ÕhCAu×Íõ¡7HU´LºtýØŽ[}GWüAëÓØIà‰cùºEŸ[ÂxCUÛúÑ#Ѧ&½øJþi”šýƒ§ªÙoƒÀ×bwD¼·I’¿!®±že,N ·U’vßj;8Ò¨›šBý=èÎAê«ýˆ ®£çåoÞ–:=BÍ é4ße_l¾k¿£a¾Ë60ßµ‡ñ…æ»lóÝvWÉ6:h·Íɇ¤£Àš5xG­*G¿’<).¥¨vw¹À; Æÿ—ÊbòëÎÞ±2ÿgÿÑÁ£GíüŸƒûüŸ_âóÉÿy§µÒWdoôxË  £­2€ŽW3Ç›3£õ@¦ÉѪ  #z‘]µe9@G”às´2Mžs¶ûF]!4`íy $ßóßyµÔC_+Dòm!XG“Ò‡—3÷Û¬Ý'[JÄÈӑ͆smEmœAP†ûŸ%£äL²ï¸2=c_åÚbª®d£Ä3.¦Áz>f„˹Ž<ˆ=tFYõÓ$Ïà]§ñò¨L6¤ùʬé>3’7LŸ„¨Ó™P(ý—ËÞaó»b›|1»¢fEsŽ(8 «SÎo±³‰$‰CÁwuy‰ÖåöÓ@Yt3Rb6¥P@‚†¸dŒ\‹|nÕöE¼kÅÍQ¯µ ˜¦ò6 6ÎɬL¶‰;½(Šƒ}УˆÇ+%:•L¯Ž$ œÍeEŸ²ñœ|.n¶ÍÔ1éÖµ@ߊw¡!Œ ¦Š š‘{É5çÕÓrÎfüÛôÈd1ŸÉó‘€`%%øXj úC£áãl5Ì; 6ô]'ˆ#$M¥ä“Æïx!ÉNBŸÀu¯,´O#ƒßâi …à4wGYP+ .Ä8éMA~܈Pf q¼q+@À†%v”R‘ÊŠ“Õfó=\Ñ ¢…/?[Ìóš€*àå`Æ_¥ÉXg@o6‡é£üx¬²6dËküžü¥"ýƒDÆY¥q¹²"<]n,<œ,‹ejá²0öŠ][=åóÙØ¦*® K¬! ‘‘'Íùoq5¶›<<6€8Þ¹N…õxx¨ +˜èºVq¢éÝTÉ>‡,;åwÂmÁ»“ '0‡““þÙ;øü¹Y¨GݼžKæ•,ŸB¦€öù}Þ—9 kÇ%®¸4ðŠIÖ)-Ÿ ÷j+Ð<Ü1÷ñŠu«ÃúFÎ ’³tìäI#'½¼Û J›*™Ý TfÍše.ô$Oˆä7¸Hì 4 ÂnŒB˜k¡³EþÉpê´#âÐ wp»Ì³I-©4q¢¤J½ ÀØÄÒZ& •,›M¶%„´dd.2ˆo°…Q½C}$dÌ>·âÀ pm` fOžý0 oðöݳÿç—¶¯¹DÒdº™³Å³ÎÑD‹YÚÊð±’³üÌ‚`lzHd9•§¶ Æ^ö 1.…=oß–ž•*R›JñS«×õ£3Í Ö,Bá(îaØÿLe)‹]ÉÈ™CAÔÌ•}þ1ÏJ\ÍÓìòj¨(©æþÚ l¤Ìö„epqìò»³UšèÅ{û~>€åiI¢·ä‡{—Ô6.%°šIÑ.)¹l/š†wòó.ÓñQ˜O]þ‚ÄÐ2»Ã’GC+« ™Ìss¹€Ñ¼~yD@ãk­ñI]ØhËqº– šã›”ïáGì¶Ûàå®BýMÒ$ŸÏ¸:ÃE’ÑÞ!UdÝí6Hr®D7¶+,u¹_Ü¢"¨;Øgô$ûŒ6Ýä®×y ËŽ-µo÷Ú±ph8äN°¹VµXWȰ`ÎÅi‘zÄ‹¤Ür;H3†¶c²ÀÊÉ”0쑃c¾2ª 3‡¸š_^ ¸êÂW–òqR5ùÝ„ôcä„Jº+ì²®Í}ï<Ó"õ´6}ïaúJ«ÎÓ뉀۟ßî÷¸¥jî¡xz窓zýú8-rSús…©#¼«< ±£œi«Çúr¦ÍÝ`í€IjN"Ò$Yl}¿r'!E71ºù'¹b­FŽ®Rò132O  ˜G`(ê)Td^¨ô0Pö™ÄÙ.ˆ4̪.fÁõÂŒ”‹ù\v›êuÙÕrYw®bŠr^ô9µB4w»õaä)n½ãZ‰Àä­‚ÿEò¶¶>é5븆õnºt0[]*Jâó>ŸQ!—¬ll€Rtb¯ LW´—…‘âsÎpê´AÑ=êøBfQ ™ñn¨ñ)°Å馒Üç0‡?ú¨§Ó…þöá͇3ª‚æí4Ó<í³µoÝ`Ÿ;F ›K+Ì\λX—ê†ðî!C@½ JâÊ 1{P¡ùBËØŠrIb6ͳþWP§m1‘PŠŒ[¦Y¥•HìFI¥k' À¨À\Í=w½°i†bK«ÑòÛB50µ ²m]ú‚eQ²ßRª9d^Dæµy-dǬS׈àZ–Þfïš7èݤF(î •«Ý)é4°l˛ºjËïnKÎFpF¹w«Ó¥?Vóað{Xt†lgi(ØÂm!?þr¤SÑÇ–MTzp%0¼IËþþ‡»ËúñÖ$èÊ|¿G?tèѵÒ,?@·q ×·ÎÖE]oATR˜9±A=Ÿx„÷ƒôµï Àb:ñ|_To€…·«‘Þ²×&#MjÇaAëÐØ5¤8=‘§ßmΗÂà"êÛ?Cno·×”Š2]~F–*È›œ£§ö;wß4)ÎS·È„;¯LÚæ¶›kñ•»W²ozšÚÓ W${~2øüù³Üs§¨½,‘{„ðÑ:í¯½ÉBËF§ÏÆ©«.ÏYØVt„7:eßmšSø8LÔžèî˜e¥½™S‹@kÚ푊™N‡°â“BÊ^EÕ° ºÊD]rí;ä ØZèsÙœž–c:Ón‰§3ãú&ï3§‘Ü!å­+æyaÖá/´æA¤I~¯W-;ƒ¤QçPÒKhmýâpqXEÅ^©ƒq5²›rS‹÷DÌÃÄÉ™ Ý„7Ý5’ëÛ_Ö‹=î9ùm ¡ƒVHN¬ÆË¶¦ê³/©D?°(Ntof#-éb±6<– @ÝêlYŸþ–§*÷fë¥{ˆÇª9j8ÃXÙÑ-Ÿ´¦-°KF•AÛ¢¹dÖlÜÄW>—Ì(<¨Uöó†Ñ £PË W“k,Œs¾¶=Ë‘Fu`QËv„‹ÇC¶4”Þ­½ÂR`¿5“om² Kè_lhYšoWÜ6kÓ†ü­ÃØtsZ¨œbª‘[y’,(îKERxñš¤¤"EÈ,ŽVÊ0È *?:¸(Û°â x$¶’?|Ç4·1‚ËCwZÇ|3ŒR|Ü ßO½•†ž<‡œe1­',Oô6¹L)ñÔCE䱄aŒ7‘·T(:f"­™k»å3S2µ5bº‚ÚTî-€‚.âÔ–›!ˆujǦFÑŽàƒ–×bÕPÅKmNC­'’ Ù«(¡‚ α¹ˆ“6Ô¦³àæ«@ÕoDaxxæ>ÜC E ±’˲!&Ç‚òEW#õкã¶mc%Xè2 Pª D°Ç w,8“[]½·q@¶i»§ß¼e[Ù¼j;¨eüYÒź5Ô~²ò7üøÕ¼×\¢[Cv*W£µÃw½ò½¾tˆR00 ÒœU^Š“3н”ÌU•$ ¥P~rxrTnZI¹91¨u¢ $Bt6Ÿ’tTQÉhuZ© Tè2&Þ0’t‚‘»³)LÎûÂP, ýÕäÓþiTí£<&trÃ’jƒêÎ@(Œ*Z>*6¹ðÌ)6< ´÷ž³¨ýs³œóYäýÈ)ÞN^¥f*ÞFÖ"XsÙ»(Ü;ób<ïrDªøš¬ØIÕ«xP× ‘~6M]Lx–ÃËC¦"sðjíÂIU¦ÿðƨßR™Úæ·ã¡YGû­V.‰7¡D3ÂÜcj0¯œ§ä‹¼/ÍóâÚè—)‹Í ³ÛC MñkbXˆu5ò9…›ÙõžTóÙ¸s½7bÑQÇ1Ȥ(øÉÉ%ß®¦ ò«‹Y1).ù‘‡™ƒ»9vº±õȦ1=¾:{fAk¼aèü{Q2¶cêtAªf1²±ƒ’¦±¶§,HŵLT«Žr©ó^¿#I0æž9*5ÿƒDDª´@í  ¬[ÄP…ó3×hî"jÃ<Ÿ¾#¶I6ô—Œ‘ìü†³¡*¶)õËçmMr"t‰®EÀrdÁÇYùYœÖ£>Q¿Í=ªðr—&7Qä<½Ën‹äbQÅJÂæŸM(רÇXRi§íçCIÑM÷°ò&9¹…]¼´½t•¦Æ&î²|2Däbàºæ ÝØÔû"Ó†~Ð@5 "Ò/ÁÔC÷³-BÄNí~» Dmߤ©žÒqP:Æà²LfW^v¶x¼ÈÊ;B”—®Dêû¯– V¼©Î¥ §òiêBÆ{{XHMG®ížyûÇtÆPM׆Áf†T߈6«Ù["³µÝ—ö)ÆÃb‚yñÃ|:°Ž „b#ŠÄ»VÜ8~úNµÔP<»Z~‹N#ýCwîÌóIʹBìËŸÕ3¬’9£Ïç5YNºPæRP£Ra-œµf´?ªSAvd;RQgˆ^w÷ãø\¥U¬ÊêybÓ~È1ÑŒÚDeg&‘ö•äjåÜ–F“ïþ‘Sù†)u.ÉŸ²’ <Ó?ñt‚/Zjæa“s»6UÓ©ÿ`~»½Èå±^SÌ©0•G„õ†i¸ «ªrôp\áT*B¬XH£ÆQ$Zû {káN“ ™Ñ=R¢ššX_™¡[ÃÙh^+)¶R”ÂU30lÒвXh¹á%„BÞÑÂ’ØE6Q©pïJê#> ªÎëí%ܵ.rpÜDjÜ-´WJ;âÐHÒ¦ðÙs€^ÿÜëu@Í5\ÕKÃâKâ} Î5Æ¥)ϳjægT¹Xx¢ÎKZCfŸÌmLjžÁ]ËàâÙˆX0?϶}®Ž eçRe¸‹Éœo=¾ÌøÕt íƒK_—£ŽjeìJ¦»Ø›l{„¼Ù›Ú.‚5>tËç)³‹6§iκ ú&FhH³''Œ‘{ߤ×Î*’âÆl6ç`³y¶Rº?"…€†xÌ™²’¦l‘6A( „a:J´ „|›Ž<\HU&ÕIhû/óìg»¡lÞ£ w¨°cÊ×&émÌv p£03ò) Ùã?¯ Ú>à¾ö£—sFʪž&,ƒ}‰Ý¯”>ø„{Uë"QŸIã² .¤LT ¡ -°°ÁúE¦R°qÙ";™êÈTª»KQO†3øÃF ‰¾WݲȦÛÀrV¯îJÒˆ ÿT|L+Ç=¡ni²_ú±Sã£ß=ÃóZ㫼¯ÁÇLZ’¿–¸ªíݽ"Ô •D©ö@‹PÖ^òÙ~³5¬)3´T°¶Î#ìùWÌVÙHöb_šj¦yh­][zeõ¼ù‚¸ÛéMÑt0~2Z¬E“µª$_ŒÏé㹓>8¼tˆ_á¸GmAA{Ú8°€/fd“S©.Ù!㟑¥ä°øœ_|©]Fn³|ê²ûÈqþ¨ô’þ¤‹0 xáæl4ùΖgs…¯YŠv%j,½t.‚n½DßKYÀ†z©Z==m×ó†~4üØ0Ì7ú[]ö®V§ Ö3l‰* º'óõÄäâf} Å’F:Ê;˜¼ôªjO[¿€FÕ³ uZòùÁH‰Õ•šnšG|c Y]aËÈ}vM周¢p1&›WF7gî âHßæ%é“)ÎÒéÂ3An6ªý²DXØ‹O!F0Šù –—ZØúYˆ!ñ-t<Ìò9þ%tÇX'wô …ŽO¿srú㟞¿}?ØÿéÙßÄ'¹Õî;Ç\+Í|]=óG~¼j´ý~¿ ‘HýGÔËó‡°ÛÕ}÷,ä-’æãÍB\4l!xÂMÜÚH±ª7v˜Â U×-wCYÙ%a_ŧÞ|è|Eñªyù IVÅR,.ŽÇg»Sjâ= á`,9pŒˆL¶ÿ"’šÕ !:Ã]ò"–E2†íKDŒžyóPkõêÁW°Ô!BL:0Wã¤J¶¹ü8mŠ¿íNX» ’·Öy’…„,ùk>·ò­ Únõ4³¹ÂFeM¡ð‹…ÜP™uˆDoeBÀ«Uµ‘×–¸ÈêQвÁqå`ß*"fZÅ|>¦œgNMÔÈÇÛ—,qL}4CÉTôæfÛohjéþ³qËn‰ùÓQ€íÞ9V˜ªÀÎrè~¡‡qè¬ëHÁö1¢ÍJ×›ä61Ô²™m•U£ž£˜„˜v<˳­¯Á·…™Íàôlðò=»¡j])h~3Чƒ1€l3ÁQò’ý°–“ƒüÊlwæÍãè÷áŠâÖÛåg;JI?oÇ)ÂB¥Ãj)¸ª|ùUé%€¹Œ¦iJe|Ü!àøÅ5ÿÕ~®N.»Þ23ÌÞQ²º­åÚJßlT»QåÔÍyÆ éÖNµª¨v/£½$yÃt]ªût0—£†$/"2:‡ú­x¯ã“¿žNþúîíûó‡ôÏ7ggϺ²ÏÜ^y½ó— fè K·Ò{جÏuRе3À‘ooµ÷ï©ù¾ u^(@š¿Û ªÍ *¼áΗyQ¦jSu!”Õ>µ¾¢Ä&9Cäu´–Éy§ƒDÖÚh̆‘Û­7»ùo3²4$UŒ–h¨‡îµèGñø€±#z­!Ãėr±9ÊpÂ;sžEP,Ø{V¹U‘…c ͬ¶ÜªŠ—“Ö^ £múê“Ö´fy¸ KvÁgOáö0GC{M@*§ ¸#Q.5[‹ÅËH—®m‰2<ôâ@‰5Ú@•Dþ Qœ,uI¹6JÎ(… šÀ…÷bRô½(Ðì™Yapµ¾il³cmÒ›r¢•jô¶ð¸%"ÆŠŠHÇqÝQ\ÔZÿˆŽ Y’éØše5·);§:—Œì¦Îõ¶Í…{0ºÂµÛy?Y‘ÚÙ2:íó~VI%B;©œl2¦:Y}iÈ¥;4C}ÇMî‰%ã“­‚èéºo& Ûa{º‡®ÞÑ×N!¯lå)«'^Aâé;½Ñ‰,(Ôf³HŸ§µø¬zìû[i¹­Æb×iPM·Þd÷Co÷Y²Nwëù·¿“øµèBï²£Òd vûàëM4[b[o^W0éRÀ—ýGýC²ú“͆œ~ìP²+X‡ZŠ°Ú¨lkÍÏÎÏO^¿;×@+ú#:ßýø§”À…F§-©å† ¶;´Z .Œ€ºI(ë Ú¶.ék0D¦âJ*~¥l[>}W1(rÛ1o­Ñùp*æÌ­’Çå@£s·V«v8jwWbz]D¯öxëj•š‹!ZŸ¢â²¼%æ* SØ9 ¸9/F¹Ù›ÃÃrQCø.ŧÇá•:Üm²¹ ¯~tÃæ<~iG\4 -k£kɸX½·NÿÆaùºÿ˜˜Ÿ=+Ûr0ýXuWuïÖ&W•½©|Ó^·L6¡­äŽ.¥)•Jôn$?ª­q«ÈÔáWNÁ¾píÄIÅ=öÓ?hX.¸L¬˜‚Ó¾.Ál_8ýþÙ«W/ß¿ýp~òþ ³õ®ÎøgÛ[ãe,¹ÛVÅò«-Ü£/¿Ûn@+n8¶ŸShˆ"e‡ãÛ$II0ž9fåk\cöhJL˜¨&WjP½4j[C*m¢¬ÆÓ߯޾}'Qfd¸ÏÊtZ|âìØ¹ÒoÂAwú|?茧¥‘‡f#â¥ÅÂu})·ªß~ÿŠ.Âp·I [;!>È:~³,ì[I´ö`Ç^6y}6ýṲ̀_O>Y%qÒ¤{³Ó9<îl²Ö@°&IÞ!;&#õlä>E™!í‚0Æd(”ÛÆË‘‡ÌÆ%} 2óÛ\(›I°51£îôÁî+‚›ïÙº^ü ]ƒ-ëùÌL» ¢ì¨@¡ ãÐÐ{¤àc[üÁ0ðHlá¤lpôU±™Œã2ÂóšÐ{Lã*›¦ƒ×ÏþúìÇŽï´Sr9D6åÞb–Á<Ü0;Kº¾˜Œz›Nµi†RÅ}Ýû“ÞŸœýéüô5£'¡Å¶a¢³q³Šê ˜¼EŒ8œ{‹%MѸJu ŒS*…c¤¤r|M³Ó€ì>çZ:'­[”–˜åÙ”p»‘3ÏëL1¼ûbàZ,IÑ33†Hs ñždœ°³‰å‰Ú}”HÉÞÆ‰>©’¾¡óþ¤’>a)XŒÙ`jt–Ü/”]ÑLp±®ÄÒ†wÞä*]19RôÁ9’ç»Çh£"pÐöÁ5f~]s¥l¶ ât†CBn–XÚ’œ½ÈKèÝu1Üž]ð²la/C óá?ø[*ÒÀn¶–%ù~‡öÞ³" 2RmD26õæÑ:[[è6å¯AÖñmÑSç¼?_ˆ‡ñŽ0¼Ò¼B*—¬+q—`iý¬¶~üv2ö9g$õiÆýøL2T‡ žÇúƒe†€m£¯ ¬jp1g÷UZ­&TðK4A$«ºª,7´få(¶×B²[ }GV­a§YK‡'-­ÁÖÅεŠD9Žž³¿3H`™ÚyéåA2ÕΣu†gb ‚µrÅ’´7÷Qÿi¸¹ïSI0Á‹Ô7û¨—ì”}`$À[+•-Nu¨³¨š_% {T̼0·ÅNigÜ‹ì Ng`A¾$ãfÜ^‘2ä%äŸùû™ˆ’|-µ5{L/õØhˆæfÂ'_¬6Ô^BowÇìsõµ&ãÚ‘Í’ú 6JB%&·m‹fŽûû!Íœ’ÇÉ&¼ÌþþÑ 8¡’køLšCK6…¢µ$äuRqÆ!a`®ÄÀ0MÞeÖ× tA?9Æ*½IБä¹@l¤TÕ0 8â /Ç›ŒÇªÙe¦–BÛ”¤ˆ´ÙL»ŠKX5ÜQ24/q>‰LB1.$Ñ^ÌÀÕMô•JµéLŽ+ÇQ˜~Xð6­qÙÍh&E13=bA8a2‰ÿ›s$ƒá»)Y†8C Ùr‰Kî ¦ÊkÊvà5Pç•ô”ñ5]Ñ«:)¡Óív„ð­Yë?¹Äu6GúJ›ƒû]:6 tIv/ˆAµÆÜºf9Ð #AøÜ~‹K¢^Ô’žÍñÕw´ÊP&ª¹þ=2¦á‹b~ÑKpóçYº{Ÿì¢{_¯kÜïbo–¿v"{0Þ¢R­+" ÷F”s:Ÿ<”“ ƒëŒbòŒâÃåUýA"‰$À£‘Ð8Á;KW~i?àà|<àÙ<°á(:Jò“3­ì\*³†ôì~Ÿ àœ}Ë#Ð*•æDgȽdï½fHñCMWz³™)mvó˜ØÍã•ìÆ4y/ÜáÔË¿ZQK÷ýé;NÄŸ  Væc™X™ÁUb”nâ×Þ§‡ÖÈGSž–Ä{“Ù̬ˆF¨Sü{6c½¤ 8`®/Šs@ÞNDŽ*ÓE5E]”A‚æÀ|Í0¿Êsi¸WÍgE®ÈŠ¥ŠÔÐ ®‰Wè/E‰4™¸ù™kÁ³}&´šnŽÇ±ɘ4¯[åU1ëÄnyj¡ ¿=IÑ«è”G9)(G‰'9h4Ëô¹Ù=J«U n7b7Å}\Ø\²kÚ’*ãZq*ѹŸMq2(žjKX±ŸEÙ³°¬_`åJ‚‘k’;ý<@.@!Â×\_·ƒTVYÊ0¾-’ÕÈ„­åbè”L/É%áŽÔàüæÍ0Í€ð<—8˜ p äÝ–†ÅÕ`¨­–ÒÏŒ_О®MéCybÃÚ 1°_9rMÛ&@š¯¨A½ç(ÊñB²-€Ëe+#Åd?CLº€Ç#Žq×0ÍÞ^^ƒ^€jzÖ”õ&6Û¢­° ½ˆEX«# Ð(¸˜¦5ò’Ÿ„øµiu$7cïh^(ˆÄÝR»ì.¼.¨Lè7|gÛçQÉrbKqÀäËeç¼\甦,ƒ­3öp0Ö–ÛÈB»¾PØJi÷¹H(¹yFÙÉ"Þá#Í癃?f“I$+b} T}Úœ/æz**);%~D\–N…†I½J`Ì¢ +âÍç;]Ç2¯”¬C©-Aˆ÷‡ÙêoeÚJtE€·?« ˆà%QñÅKÆŸZ€ àå„‘bÓÙ7M ¢8†=DlÎú’'F8›‰oâ®ê¹¹"wÞÿµŸÿU”ÿßì`µK:¿÷2kÒ1È\ãÇÜGÌuûÁŠÛEw˪CHËE(Õž-R¹ß ÇVµña(H²0+çaÈ€Ë[µ$V¤< ŠdW¸^/ÙØ'E+¯dàŽ½ê‘€J”X âb‘Çf†\;d̆0³„R‚Zë43Nw"£AqøWuåØE:lCrî&x Á âvT¢k9\àîáõ ¤jHÜCÂ*Ôí‚ÞÍÔDÆ"Ú¼åE£½n‰C„QÑœ3 J¨%¶ÈGW¥òæ•xÇ&Žpêûgƒ“¿ þ©ÚíÅRoÀ.„]‹|VY)ñ=;W£†ö3‚²ìwÓ‘Tâå˜x‘v$õÊÍ1HÔöLCÚ ¡±ìªÆÊ€¨‘§9ËÈ]¬=ʳs½$"mFîYJ íÅj_ ÷D>{ñr3Ç=¿¬HÚD#@@å‰õ¤0‚hÑ -Þ¹ù½Í‡PGb¨hÄ-±jr*ÃD#+ý~ÊüتýEŒ8$ØÐlu¸H°VP¯‘0$7‚õ/Œ¨Z_Ä"W$£ACs»Ô)S|{¥Káb½Ïˆ+ü#áu81Ç‹tk`‰œAsy‹…X(õ5ðÉî­&Ûúñs0SÙåf$@ ŽøËÅ_§VG¥¿,˜2±¹ùÖc”`Ó{È1ôFT}ê0¡%¬zªƒF¸G‰í]3A+¦èºË¦áœÖNi…Ôöfßñr(òñþüåàõ‡Wç§ïžÿiW±Ë§üE¨%.ö€QVŽæSv‰V=±Ï¨òÕžT„I…o~óö͉{)]¹l$B2eÁœ-Ó(°B[ÚR/(ì9I/i<2\ÃW 1N±M)Uæs ~» ßÉI¶ãÀ^U÷Ø–;¤}Cî´Y$J±Ý¡¼·IJ˜–æ %Ót—¡[ ö¢“ pƒ’Ý`%Ã@¯bâ;f´à¢ä²á¢ú(²v#³¾ #Ñ N"_”bÿqí+›0Åà¤ê«"/®]Íj‚kó6ÅJ‚C†^q}Ž¥öš2’@œaU ‚Üröþ„Øû“•ìÝ4y™•¨ãÛÉÞùGÇÞ9è¨X¸¬³±yÒH;!û¾é¹†"Ƈiú¤rg÷ôŠ¡JX°7MLõ½ùN{ǘÕWß¿óúYóçÇòó»2…{ ÝÄ­ÊWß¿`«ê3Ïß¾üVçüµÑÆ~wÿùU?ÞvßÙ;™ÏñãÇôßýG‡ø{Ÿÿ¦ÿnÿ`ÿñùç“G‡¿{´ðèèàwñ£;‘÷™“VÇ¿»H·²Ñ~‰ý²ŸoÿíåÛç{wÓyŒß}xþêôEüÕÞÇ?¾xøðåùKþb}~ÈòdòðáÉ›¯ˆiàø~û§“g/¿âo_Ÿœ+·üñäÍÉûgçoß¿xûæüäÍùw_½Êòùç—Åhï¼( wÚï?êý=w~zþꀌä3"ËÔ(aªØ´[TÆoâ3$Ç™Ìõ†£ð㦟W§oþ쳨'Ì¢â÷'¯¾£›´«Í‘×f&¬¬£åeÇÜTF*01Lÿ[áiÏ:F°Œ‡mÎC›< ;¸ L“ãþŠË‰4%Køì{½©Â+︿Oî¯ê•šœ’²:ž‹¡7¸ø~– ÉBc[ð[ ´"(‹H°ƒ£%e=4Óßœ^#w³´ Ö RßžA5àx£^dd Žò%rªËí66’^++öÑ1²^U#1$N!ƒÓ³âÓ‚â~ÉlX†a cɧ%ö2µ‹’%IÉlÇS ‘~|ÉA0y¦HA\¯ÍLJ%™ïrR 5o”c»_õç÷çỹ£NË< Û—戎œu²bn$éÐ=’r”À?ë*VÍÇFPÞ—iꕇaòeÐS•vµ¬B™N!ú)¨bзÖìÆ¡= C»ªôšÈN-TÃ}$ï&XÄÌJÎà±É#äÀvÛ­¬!-%‘ÂDö‡WƒÓ7?¼Ý–ø¦Õ¥¥+~9rß±ò\DÍsñ· Ѥš4=ò%Âõ±#Ù ÎF^x6R”“%þsWŽŒ‚þ(xŠb42Dx±ùÅEìßz6«®›æaÜòä_Fþ¡b.Uh&▭ɲîþp“,©KÈ?=Y#ŠÑµ[=+ÊT—‹ÍŸ—š½ìR èÏ —±W$c‡î¯Ò€d¥¥ÞÔÜyH¹4w% az+Ä!#Á}Yªdw¾K0@öÛ Aòœ;*ä²ï–ÿß-u‰¬Û˜ ¦Ã‚ìÒéçt4ÇUàʘ‘Ýc›Õgéí¬¾Ñˆê©•÷'t뫞~1ÕãNä<<§ÝþÂÿBK®¬Ô¿‹ÝÈ8̇F~iæù 4LUßQŒ˜DÍd$X5ÉŒ…¥vhÕ1eï¯LðAQã52DÒ¸;_ !jê좀nlèIPÕ|cIÃ~¬VA‡Ê¸¢·gñG¼Å ë×ä]–/[½C GÚ‡…hÛóÑAë’¡KùQ¥ô†n¤ù%Ä#DEž@šk’~B&’´´—WñSZIƀ߯Άلêï©Qð݈óž(ì9q å^9ÓÅ€™8/c2Ö évD­ !fžáO:–üR«@I&Ídýb¶°‹ê-'`dsxåø§¬47â){‹aAÈEâ ÙŠ·ûMt’¹°/k³iO‘hnÖ'øŸu™02¶÷‡7§ý¯¨ž¦úæ‘ GzK™¿#[¹W«#®ê†í® šPp{‘h¬þHmÄVTF‡_òRvœ êA<;pâ)Z€½Ëÿ GÀ¹î½æ¼2vÛÃP¸ ®ôiþpúœCGª¢V¸º–”(èÉsGÍCCNäy…¨xޏ«kªÙRs;&\Úª¬SI|æÖŠÄ=¢T,`HÐò6µíS¯°·™ÙHƒ¼ÛG8¢ÌJ£Çp ÐH "2 ËÎw\âçŠJ¤ ˆÔ‡‡^«àAÇrG´96Iœc]´¾õϯ›h©d³]ZTJg&qX@.U5|E;tá0ŒÏÉHùöl¯á`Lœ2¿b/½ÀâÒqK’‘ËQ¦Î*oŽ˜éÑœCò«€ Z~x8!‚Úƒ"Ç)wQ þG©!î¨ñ•ÉQbwÌ•EOH=EÏk”ž.ë=ótÿÊ·ÒKŠª†jÚØcÓC²}vüödK²eú~}w]É’3@˜s)0—³jì!ΊQíüý/”T”¨vZ£«y® Qâ³xÏ%J«ÿ€  µ`“ƒ,,ÍûIL»"v½Ã¯ÇÉ×>:º8>'ûGÇGO¿=~ýÔÜmGO.FÇ«¢ îÐ3v]°åÇÛ;{ÇjÿÿÑ£ýƒÃ–ÿÿñá½ÿÿ—øüFüÿ¯²!.dËãW¸þŸnàú?ÞÒõÿd+×ÿÓÕ îxs÷d½ëß4y²Êõo~ïX½e^ÿ'äÒ²Òë&®ämÚ•¨‚ …D IoÉ"—Gª y%s)¬± &ÊU" q”LÎwTû¤,òÓwŸã3ÿ8îÇþ$ÃM2ê$%<¯ÍM™²Æ³˜¥Í R’rD‘ž,ØÏ’^•hÑ ‰.ä\äñ˜ ¨iDél&eç6Pø¢ ’–ô—“H¸Á¨,ª¼NÓ'»ƒte”–tP – ìšue©I`l¸$פy„r`ìÚ¸ra²üxnSÄÒ—*!ý ÏÆÙ‹·ïNŸ?¶ÜºbYŸ•ĈRbOñ«Ö«Ž7k x´l– Ò˜¾œ3¬»ðÙA …?,‚%•pVD²ô‡ì"zQw7vwv AÖÑõ½¤ñbIã•Ëì/„X‚KYù}Òtê¸XH-÷lAÜ{H!Žm¹y‘SÅž•»a@1€}¶QIYµáç6\ï•Kè ~ÉÚÁ@"#óÇ»ªÑ¡†@šE»½HP”)ªIÀ›Æ{x‘7eªúv¥qS‰XûOß=Cäºz°ÀiÖîˆ[ Ý•ÄCâºùù ÕÆÌñ:«ØÌ!9]þqù§=!Íð eKùtJÃy@Ù4)³É"²Z¡«QL¾¹n°3EyËS”ÿRûÂÓéÞ–íWûó­/÷ç±õþ|» nXãfWAs]óôÒÕiºÛÅý¢õòÇ©ï¸Á:M? é Äj,“C¾«¹ÖÖXþ2H¢%CŸÞl%òæ‘ ƒA¤š HöÒ“—SÄ'áñn¼z¡À1¥d¨ iÌ‚òÉ€ìÄ-zÈmÅŽ´§ÎJfDj€œµC¦$e]|ˆm@¸MõÒÌ¡ÞÛÇ%pÅõµåJ”íf M-µë¶! 'ñþ1Ê¡a|œ‹,+ç‰s›Ò¡ï@Æ ëbS:ä¬0ÿ¥H2ä-ƒÊüK.Ø \².É”8\PR¢íó”À·{ßð’R5u/aÜ6§Ìåß¶\Ù¼.6$¼î•½¦Ô?Ý²Ú é_la!ZÙÅbõ•Ö¡¶ö+œlHót»›…cϼ¹«óÞ—,#ÏX;­Áé³—/ßNßüåÙ«Ó—®i¿ýÓÛ³óÆWÏß¿}öòųÖ÷ÈtÖïw¥/0Ìx¶íVEùËoNÿròþLü™wŽo—S6reíúšH!X·A(‰¬"‰Ë9MÇÞL¾=ØŠ_ï‚ÝI>%Ù„A,r¶3šC)î'‹]G=‘¯Ëµ#—’V?~6¡ÈÇË«¿]Ì'ÚXÒ«óâ:SÍHVÈͪξú)µàtÎá\è‹´D¤b^ĨF–ºð\q· /•€FijX%¸éJÄ¡øn;æKÖ\Ç~]èù¯G“^1çòÇ)ãL—L¦:%QhS½ÁAª‹`Ù<8úî%“õáêmn€oýÛбÃ=­þ~¹0/»0WY7]™.ks¸¦ Å¡€Š(Pü<ÏHJI·sá­àCKÞµS ‡ÂO;ÃM4¸å£˜)èSàP÷:Âr ›®ƒ‰¸µŒÃ¶+.uŠ´ W:ÄÂm’5‰“C|×v¼–3×(ª³eÔáŠò„ÑÞÃùÅ*l··÷†”‘¬¼¡:‡'­8!ÌN6åž´–ó—RMNÎÎï¯NÞüxþ'^š›‰iÆfOÒd)BéñžØNÁ=7ÙÆÏw³W†•ÓêMÝo¥¿Q7…÷ãwðº-h'¿ñò Æóél›2jfÝf¾.\š¤ÉºÝOE°­æn¤HÌ¥±ÛF:¢ ×KÎ|@ºbDŒŠ?›×«Lw Å}ß@{¬+/nÃÛÓÆyZàÕ8!„"}Æ:ÛäŽ ƒ.ì¨"ëd ‹Î™?Tg¤h~ì…(´‚(ØiZš¼rHÜËPyð4‘8+ʃÈìÖ•ÀÑñ!Ì0ß:—ÜnN)]ÖмÁMóc\̇æg¿¾ «En––@ÒHå?É&ö4ås'!Ýä"4VA%—óR}XoF7EgCša^Ff™Äi>Þ+(íYâä§ø~ú& JÕÜÐ$ýr´H´=DþÈš…‰lJæ¨XêgfÉ­0½Ñ“ao¨µ(æüè¥t/tFh4*œØå®éÞÃ4#‚ªLH­:ߤéS賂ÖHzöçÓwƒçÏ^üYd^6ÉÖÄ]ë$0.<$r8ÄP™ʃœ¶1„ý‰2ÃÊP|V/¼pr„’=Œo’‹Ô•¯`(¬t7ݾƒ¡4&Žr#.øÃÒ”" süI5МtENdÖ—`æ©J3‰¤è Ï]ƒÛ%—ÃŒã"6öt“°¹W§gçƒÓ7¯NߜľwÀ°•Ѿeë VW&вuä•„Þ,OçT42r "¿lÉMxÇ+=©[¶DwŒÃ66ÝÐÏëõ.uÓFC}k¯¼Í3%oß©„íhÑñº›tÕú¢ ä„ߨд×î€LÍߟÜÎ&00æ€O¸ìCÇ4;öà#Á^p_7ÞŠå«ËµN¼5îzÀŽÇ=TH™&ÆÊ9„ÐæNÈ4\Õ ]!‘ÔºQ(ßH´#¹é¦”étíŽxYÛ¨½.ã–‹ávÖ]÷q¨ÞÇkCvCµ¹ˆÖ]É¥DÈB#Kš­5‘/§Ü¬ð=µœ´‚_è ŸÕ‹[ãkéÊiãÈwJ=X®ùxPv"ÆïE²%;#ë ÌßԗpcºV-ií* ¯\k#3%”\³‰rÅÍ»ö5¯TÀ–—ïVØäø‡J‹^~$뤚ãÝÅv¹Àƒû’ÇÛ’’»´ŒCÒ2Veª£É묥“I’§$-Y¹«ß¡q¬„¶šOFæò=øaã‹2qàÍ ›ZlÀ/E^K±oJÝÑe*-b~£Ž–å#ÈhõÌ J[D1ÖÞqWpXJPÕ@­Dªˆë¨S-{‘~ _×eÌTp41ù¹Jö‰X·†GfO[˜ËÐלb£ZÜhÂy, ß(ÍJå ö=ÙGŽÍ,%X¸™{_øÙ¼s*…à4»¾ù¿‡mÀN}_Ž]/™RϨä¤s¯õ#ï‡djµ£;¤T !ýßšTÒº!Ò剪IÃR©ñ&Á#Ì?›q²Í¥Ï;å†ÏØ"Z¶³[•§lÑkJ÷X/8¸Q·ã•l}­ÐO/ºöÐÜ“F¡nØü² V6#ˆ{IOc®BÙ%é6öQ “+ l¶`mBÝ §­W¹;jÁusó@Z¢X¦n]ÒoÛ¡µ‘†Öêã^ò¦MÓV†b6@‹ž<âeÞ Ià‚²D‚áè-a«xW¾¦·oy&Åeg\ɧnV(DDJ jp÷o°;ŸZä¿­«K*%Z½dbát›Ã£ï°q‘·qŸ¬:í‚uØ *]µ°CXÈòqª.Ê@¾tÔP§#' 4ç,Úzʲâ|Üi™%5ÊÓÙ@èfGÃðûP=ÄÕ• ÜI ám,fw¼4,©×ÝÐG_å@õ\L'ÜàazÞø¬9X½Jl£5pŠÜit“´êŸŽœ7T—@Ùí Åªâ—Ú+åÔ^SµœÉb·¡’!‘Ü4)?VÖ NËLvg 5°ýõb­ÉªvÛhG.¨«e»:¹p<(˜j.Íj’TWiåeK¥ÜÈ,g2c³wÅÕ…šÏ_¤Þh@„—¨lgæX3Ó0Á‘ä ¢ ‹Ù¯)€_`»¥@+’?Ék¨œ3ÀlF ¥¤)Í È/‘>Û]ØâD ?U9•-q±‰÷‘l.¥’€ v©’¾‡Ï]Lkûû§d`•mRwËËðD‘¯æìh%÷FθÐaêk®ŠªÙJ®Ñéèñò’3ÂgVLUeN«ÒJ©Ý+`ÍeZÉ BS7uÎmè“J]7!ÈIf’þÒÆégªëmm|G.î¶šIÌÓžú4yaÄ[â'™à/`øP†¨k ²¥Û6öOP<4­…æÇ{ؤC_ùÂòþè:“`Þ€˜-b”uÆyO~ '=rU»,+”R[ˆ‰4£¡ˆ–?Š7åÿüý©”áïýp¶abvfï›3“b¢ã7árú2Þ1÷´Ü~Øv"ú™»‘+íizú½§è»ß^7ßààLåªpŠÚЩ´:Ëã®rðŠÐ2p‘Å"¨•I”P•Œ”g¾ÊF™9;Ûq¿™ßm2¹Ûæq¿=$çÌ3sd€Ãaƒý»¢©9Jl¤‘n¼áÏ‚šŽíÈÜÝ*½`Ä:D’ß8ËHµKª¹D¨J?ר鮔´¿ê¬ù2­™Ù›¯^ù‘; ëYÂZêÊ_ÍO`Le#â.¼ªáò†-÷Ð(ŠÁ&†6ìY].5©·¶WººÙþv¾W6·(³K‚—Ó9c³yÂùý–)ãÛnÐÍ;Ĥ»Ýüí~<Ú¸³w¬Áÿ|òäøI ÿóÉþ=þç/ñùà¾WF·aÉÏM0=Ÿ®Áô$N¹¹x.ùt=r§iòtr§ùÝ›÷2ÄΧÇùt%bçÓ5u:_“ãcbÄGª!~Q#žØtÀ%ìmévã2¬%zº<ž—É$’{øá“$¿œÃ4¯æ0•QÐæ|Æ2ä`Ÿ$[|“úáj” ÜÁ6Q §î‹~ü|ΨïÕHóc®h†æì ²?Í'¸Ó²6ve @Îÿ„¦õßö•æzýhýÀÕo ydBИQÛ“ï\@ÀÁ"ån_6èçŰ“'Và´Ébaã–µPRG^¡R_a®ø)S³ÖÅ‚ßj‡{¤Ú¿Œ†W9€{uÀ»1ÉšIÜ=ÿI}Rţ﹵5_¢×m’QÉGÕÕÜìá ®l”%ã¨ÀîC=![š  òvfܨè­Ã²i½þàí"­Àýbh1‡yq_§¨ëÌl&~™×®yäÆÀYäT 9Á…æY¸}-â &ÞH@àw¸)*HÇ$ÆíªGÊ‚ZÙPÖxÇ[ÝÐK¶:±T»lîά t¦m =AÆ„D礆mLíwØJó¬æßˆ­†’‰TTuB$‰¦iª1@‘¨ƒà_pOÔé“g›XGöÈG³y9+*Ñj7?ù¼òa\•°4·Õ>Ê3òŒËn>—AÒ¨¦º…d7MòćýëZèUÇi£õòSë"Ú‘qR'~î~“üeþ´ÕÚ¹]O)qëéÊÜ.4ih¦-¥+øZÖ,KG©˜ÊŒ¾~9'Û@Ò8ÑT†N-&R¦¨5&ŵ…oí pPX<ÄÀYƒU©]€ó/C+Àªjµ7 B¼ Ýy~…>²Ö\™ÿ7½ñ”Ð)W"fb¸Ú¨sß5æiG“ø«yžýcž~ÕÚYµ^ÁYKeúf%B“ð‡¶YYžðœ›Ýk½ª:,ÇÕÄýywà†NÔ •ß¾NêÔ°EÅÕ(“ð²‡l”Œœ«(œ©;ƒ–Hmè±´]Íó‘ D`Æ6$œ†#Ñ4†®¥Zb{|eW‘!çLð†ކ+݉Qõ aÒQ¢˜V½Yþ¥{AÒBN çnBÉ|;ùJÿóm’mÀ„Œ`¿MBûyCJë5²ªI›äœ€·oKƒL!ñhðçß*6ƒG–Qa¨M·)¹kö×1¾PàÛ&â„t€›Ñq`2ºJòË´]¡! K.ãS8*Çå«û2¾&”h‚rιױ¥,s¦œÌ U}Â`P:‡ê•^_´„ ¯G¯h0À•ìÌÙ –'š¢VTå¹xd€“óJÊð†»w­¬£øW>GÞ)ZaHšv™‘nr6¥ð ¨´eNJœ(çLFq3$Ô.1ù1‰ÉWŠÉ¿êvÑ´„åŽVîF…QDÀtþZ‘©Ù4®9p_$UíûšÍ3t(ø9w∄´,(n×WÅÄ¥ˆ…R*œ\~^j™ï&$šæS‰—°­(Û‹Ä.d‚YìDlK&ƒÉb‡‘l¶ Ö,b^}5¯Ôž{®ž»{ÙIÛx^@m6Ç4Ñdfñ¬¹;e²™¡É‡“Ý#Æ jRÄÝŠ42˜mãíì;ýíIø«À êÉ ˆ'Ù·æ%~»$ _ˆ®Zhž‘›Òvò™M(»½¥ `Ŭ¾ó¼³›îk÷@ÞW‹\6º÷“i1ϽÝh¿»u$ßžÈo›:gn'IÔÅÒ;°m%hX…êr¡¡‰ ÆÆÉM"ÛNˆ3ŠW×oŒÏŠÖlp"’ækX­—BÚÛ!KkÏNã€ìj2¼?B2£qE!Üdµ¨Ìûª‹…?q„ ±”b—Xã 'L!½IcT"~®ø•æU|%³ {“¤Ü¢BV}³hl%ˆùíž™ynÄ3Ø5ÿOÏüW=>dK”¤Ãˆ2Ϧ3ÆŽ§o‰ë=’Ðù@ÈH5O0¾N‘˜¼ì¶Iœ)8NtNäwucêúùv© Fƒ%Új™’Ííš#ÜM|;Ì^ްU'µˆñs õÀ¼êb2÷Šæu¯S¨1#ÞPèÙz ¶XKç~V YôS¹X]r6{ Ý&c…¬®ÒÉE—VqDZÅÑJ­Â4‘®–ï×k¤ó֪݋x¥&‘È­*‘s0G«ZA¡ÉÄ„NWÉ=¨0 ñ«#ŸOŸ\¦ý˜Ç u˜´æ“]ü¿ Ÿ‰ŸùufT<@ŠÎ‡Fø»âx–g'oNÿÊ»éÇ\¿ÿM²#u‹§°(¿‰Ÿåñ[8ó÷^$Œ"ñç´ÌÓI$. ÛôA?~;/]H¡âës‚>Ìf œ¤Áé¹N /¥¸+£ADH¹#U§” BO¿5F0‘mþòäù‡<}ó£fŸW†q"’+&fn&[ä=zE¿z‘±fÔ2tè>­–(Ñž‚Á¡è#dÆH>’§½f2¡peD_„ÖÊW°PîXhɈÙYÓ…ññb ¯NŸ7â^…ÇÎÒr~¤mÚHߢEwT“)[­› жh,_®_5â¿î2Ó+Ô³@ñaœ$ˆÅ/5ke Q”íþlw-›mõ$·KxË2s½ÄÕð ·YöŽþÕüŽ^Ö ^:à–ÜÅ ÇSŠiÁ#9±¾> SKÂâ'¶¹#ÍxZÇü:¬ÐEX•ÇCÌ–6áò°eõ6×·Ë"Wø§òv³ðÖ²ßàÞ]a£“7ÚD!R–]ˆZ/X×Å{LïñÊ‹×4ÑÀèÖÍË?h/®AA .ŸaLI$r¦ŸÓќÓÎàφ›ßÌœ©o¯¾"n›24HI¦gr“• Z,ô\ª~(èÕlÂÁ2P Ó2B.·› ‹?-òbV؈…ï>ôãóB:a'3zïIP4øLÄÅ®m¸gyf„­cwÏV+ ê/tÁKhtj²ë™ÍH? *²2ƒú ²­>Š©ŽW‘ 7Á2,y÷ÈIØ3%©…Þd׊WØlÍߤüÌìfŒ4È%(„˜{•âbÀwƒ6ºñn/NóÌÓ9?¥Ÿ$5A¬hfég³£¬¦;¹úè ºÑUÇ£±L֬Ϛ»®û:C7·~ŸÝøzâY¹ÀCosDcö"¢’«ØŒFœÉm–øO¶(Î!Ål[ûAƒä¨O;WJÄÛ 9r¯åÒƒ]¦{Éxìæ°åÆÉ{ÂÍ,+»°rkõßh{»^ÙØãàûËi¢k½RC ‚Ðh&k‰äW„Èßìb(Ý‹¬³çă}ßr¯tó7;iÚúW?n:ÊJaä…G¸”Xd¿ÖÞu6N#'HìO>Rp•Ž ÂDpg„L7¶MaT"`R-¶JÁo©š–ðRfDfí¶àA†>òâšÙ£ƒ&U‘3®RKFœúLÑPF*®©Ú/^PZ@]³‘ú² [õ@V+o¾ QE")¯áÛ36‘Ûœ7«³‚˜Íô¤ÉHÔ4CÖŠ{ÙŒ|âí|LÁ(tYã¼÷$ÌT2éðLPÞ4¦Ü8„齺Ò:ê*¶×xÈ$™ÍÃzÄn£ÜÐ&í(¦P™î4‘–sE†£0q6y¡]ÿJ ^ÉżpV.®§ÛËÅèâ¶|è7…y"A“Ö¥l Ày.,8cé+–³­ÉýtÛÜšÕ•Ú¼Ç.²Gù¸,éÉÊ-ñY)¿¨."ïx¡.“?Tü¾î)*³S¹Ød#,$ Ž(ïµcëÙU~ÀÛýZ:Uw”äs÷Œ‹i+CÆm´Žª˜×‘FÖN|V9÷ÑÁìGW…¹g¨1Ý€ñÀ•ægøJ¿ß@0Ô%´mS{ZÜÑ_yÖEpj %öÚoC¡þUáôYR¹p xYÔÆáö‰•ÚÙwBmWTá]oë3è[î:Þ!+f·ƶ9 f•Ž AɸbÙ¯@Íf††#5ì\¡†ÑZî¦8" „²©s¿¥ô&»TaòtXØ+­&tm2W¦'7]²ŽŽ:[Æo 7ß}£êÖÒ¼QcìñÎx¼7î-Ì'¾ºúf:ýF‘¥BsåYíBìFU¦ã`¤».±ï‹÷eë=¹­¸Ù6lºJ>ÞÊÿR Þàœh»Ñ ðSZ©­‚úp¡Ò]lÛ– Ðâ:Z<¤Ç/®å¾bk[õÎáuúýùëÁËgç'积OÏ?üðÃÉûÁÙéÿ8áå Rf×Í_^g¦9Ï¿·g«M,[nçÁ`ÂÔwQŸ°¦L7ú6Mh•xZý‡hÕ ÔNÆ@ê ©/K ¾=íÙëéJ…Ú4±H/íÈüâiÓNÎÔÝÐM.! Pò²‘׉l}‹h%ò/¬ü I"Ê3-ÛC,Àp'²•Ö©‡š ƒÎÍ9ᕧ”&Ì—´öšEè§Î÷Ø‹a¤0LëC—FYs)FÊHiŸý—t¯òóÀSðüæ €ôÓLèEWè/”-HÖ^‡˜£bå‚~ºº%±¡kŠ ŹbU°,Ýãb4vñ!L,‘I¨¯¬=ƒ³´¼0›e£:Λ…³Üù é¤m­ò0~uM° DXá»^á!¡O ‡×XÉÞ†¥zå8#••«ƒÂUN KpàL™~ó`±xx¶ xƒ @f2Y”=ðò[*ï HyR+üº$©â7WÄ ¥¬¢!¿5#8;{µ…Ô¼É惺vu°…„nt7[š;)™d{=4çç¯`Õ¤$· ùÐÛ/·µ<™èZ Þ2iFoS_CXg©© Ñ´éØç¢|ž©Ux Œš*›ûчŠÚ¹‹E3u=Lȃ)ì_¨ç%Ê1XJä~3¯è,NÁ¢j>¢š==*?· ƒÙ~£§Y~›ô1bú:í߯¦¿`K§Ö•§Ç*ÒE³zшYûEöb|40ºíÕú͘ èJµ¶˜¦Ô™]Pü}Ðüi[„"ß,©ªëü‰µˆôë—GnA4^D‘ îvk;¦( ½ú9š­ƒ݈ ñ³{!´’+.4R‰¶{,¹¸t ÊnÕ,¬˜ù¢(Çzƒ޶’ã…™€Ö”Ï_¼Ãs°´ò”œZ†,?"¶²'Q0`ÿtæÌägIVVÑŽŒ¶ë@vµf…HȰ#4å—(±#ZºŒ$,6bŸç–·ÁïÉ7›J}Ìñ E«˜ÂˆŸi^Ì/¯Ó¤Žª½¿¬ÿhÇ‚+ÖEpª G/qüoßy™£tÅÓ„±dêEËžûÎÎb¬èÃR»üÎù+]«Î²=sÔpk1jýIÚBRM¼!BÙd‰<óÅ„ü V1„6ײËP1»¡—·5“ˆmówÏ`óñZƺ¤ü®wÕQø1)ì³¾å Û¤°W3-8ZùvuŽ*s]»äñq¥3dr°k8jª?d÷tY¬ŠYÖË:X‚p÷ºíµp TžTü½ W^!7£úö9Â7´áˆ`Ý€S'/Œ‚È¿zÇ-£Ï/«ÑaŸºÃ«ë?ì?z¼بÿ°üäè¾þÃ/ñùMÔXQôaß+ú›#ó=1ò°ŽCxˆö›upô4Ez`´TÃþúa™6lý}›þõw³B“lFüß'õAQÿ!wfô3 ÈĺzÑ»äS:‰_Sn×Gm=£ïþc>ºZ¾ ½iJá‹Òrú÷V3yýÿHþž\—UbT”ä²ø€KÌHúEy©O±ÅYLˆÑ·'¯™Že†®œùÌ_€±¿ ¥Ë¼HI |™i<×JýošwÈâ‚ËyFsòö¿ú~¿£†Ý0¼Ã°osøÅ0,V¼ßUu”ÄÞ~_UûÝ51Z=PO¨ê~O¦ ,¾,…,iõtH=u ú=™6ÏÊÑUFifsŠKèìé1õÔ¦â÷dÚœf¹°^Ëoæpеü²ü/ Ϊu? 5=è\÷ÚüP”× ëª§Ðíó¤êžòAÃëÚ¯cB·ÒcÌ¿%}R_]áõuÈ}FF]fCúr1—tù˜ºìÚ¯ËÇnxæ'óX±„T(iõ +¯ÕïîˆKú:¦¾:Ruü¾Ž¿r&“eý<¡~:‚Dý~ž_Í.¯†$*­X®§ÔW‡Ìï "Ìt*·-‰.éókêóëÕ}š6œÜû@œËŽ„¡Ã®#qh„³îlÝvžC Ú½*&i眉â;O…×¥ió*ýœ±ß.™,~^ÚæÛu.¼ÞL›wäë/׬!öÇ]k÷XÖÎÜ”µD¯ZµÇ´";Wí± m¼þ::9 NºÖÉëÄ´9/3¶5ù"ûL†­u4bNáQ×<¬¬îôU3=¢YuÎôH‰6Ï‹’ Ðühãëdë :g~D³:ꜹשiCÞ¤øìŠâp«:~—ÔWF–)Í?wÞž½ûawIç‡ÔyÁxÁd³îC{D<ñ¨“oz=x|Ó¿,ÖLÓÅB½ž„É—ñ³1adU:u*S«Ëc겋“z]š6gtߎ–ôñ„úèâ¢^¦Íˬ4\j í™wwÑžÖr¡•yÒ¹z^OͳqKz:¤žº–Ðë‰Pª³j”N&IžØ´sÍ".©cgKŽv±ëZ¼å¥ì¤¯ßK¹»µ¤·¼’ßÓ’rH­¾–a|û}uƒ|·ºZ†ƒèwµ ±Õá2¿Ã¥ÕŲdn¿‹F6w«e)D~¢VË¢¦ü>ZaS\ «Uîv5ÿ¾níýçþsÿ¹ÿÜî?÷ŸûÏýçþsÿ¹ÿÜî?÷ŸûÏýçþsÿ¹ÿÜî?÷ŸûÏýçþsÿ¹ÿÜî?÷ŸûÏýçþsÿ¹ÿÜî?÷ŸûÏýç·öùÿàåWDÈbird-1.4.0/doc/prog-3.html0000644000103200001440000003416712244656165014210 0ustar feelausers BIRD Programmer's Documentation: Configuration Next Previous Contents

3. Configuration

3.1 Configuration manager

Configuration of BIRD is complex, yet straightforward. There are three modules taking care of the configuration: config manager (which takes care of storage of the config information and controls switching between configs), lexical analyzer and parser.

The configuration manager stores each config as a config structure accompanied by a linear pool from which all information associated with the config and pointed to by the config structure is allocated.

There can exist up to four different configurations at one time: an active one (pointed to by config), configuration we are just switching from (old_config), one queued for the next reconfiguration (future_config; if there is one and the user wants to reconfigure once again, we just free the previous queued config and replace it with the new one) and finally a config being parsed (new_config). The stored old_config is also used for undo reconfiguration, which works in a similar way. Reconfiguration could also have timeout (using config_timer) and undo is automatically called if the new configuration is not confirmed later.

Loading of new configuration is very simple: just call config_alloc() to get a new config structure, then use config_parse() to parse a configuration file and fill all fields of the structure and finally ask the config manager to switch to the new config by calling config_commit().

CLI commands are parsed in a very similar way -- there is also a stripped-down config structure associated with them and they are lex-ed and parsed by the same functions, only a special fake token is prepended before the command text to make the parser recognize only the rules corresponding to CLI commands.


Function

struct config * config_alloc (byte * name) -- allocate a new configuration

Arguments

byte * name

name of the config

Description

This function creates new config structure, attaches a resource pool and a linear memory pool to it and makes it available for further use. Returns a pointer to the structure.


Function

int config_parse (struct config * c) -- parse a configuration

Arguments

struct config * c

configuration

Description

config_parse() reads input by calling a hook function pointed to by cf_read_hook and parses it according to the configuration grammar. It also calls all the preconfig and postconfig hooks before, resp. after parsing.

Result

1 if the config has been parsed successfully, 0 if any error has occurred (such as anybody calling cf_error()) and the err_msg field has been set to the error message.


Function

int cli_parse (struct config * c) -- parse a CLI command

Arguments

struct config * c

temporary config structure

Description

cli_parse() is similar to config_parse(), but instead of a configuration, it parses a CLI command. See the CLI module for more information.


Function

void config_free (struct config * c) -- free a configuration

Arguments

struct config * c

configuration to be freed

Description

This function takes a config structure and frees all resources associated with it.


Function

int config_commit (struct config * c, int type, int timeout) -- commit a configuration

Arguments

struct config * c

new configuration

int type

type of reconfiguration (RECONFIG_SOFT or RECONFIG_HARD)

int timeout

timeout for undo (or 0 for no timeout)

Description

When a configuration is parsed and prepared for use, the config_commit() function starts the process of reconfiguration. It checks whether there is already a reconfiguration in progress in which case it just queues the new config for later processing. Else it notifies all modules about the new configuration by calling their commit() functions which can either accept it immediately or call config_add_obstacle() to report that they need some time to complete the reconfiguration. After all such obstacles are removed using config_del_obstacle(), the old configuration is freed and everything runs according to the new one.

When timeout is nonzero, the undo timer is activated with given timeout. The timer is deactivated when config_commit(), config_confirm() or config_undo() is called.

Result

CONF_DONE if the configuration has been accepted immediately, CONF_PROGRESS if it will take some time to switch to it, CONF_QUEUED if it's been queued due to another reconfiguration being in progress now or CONF_SHUTDOWN if BIRD is in shutdown mode and no new configurations are accepted.


Function

int config_confirm (void) -- confirm a commited configuration

Description

When the undo timer is activated by config_commit() with nonzero timeout, this function can be used to deactivate it and therefore confirm the current configuration.

Result

CONF_CONFIRM when the current configuration is confirmed, CONF_NONE when there is nothing to confirm (i.e. undo timer is not active).


Function

int config_undo (void) -- undo a configuration

Description

Function config_undo() can be used to change the current configuration back to stored old_config. If no reconfiguration is running, this stored configuration is commited in the same way as a new configuration in config_commit(). If there is already a reconfiguration in progress and no next reconfiguration is scheduled, then the undo is scheduled for later processing as usual, but if another reconfiguration is already scheduled, then such reconfiguration is removed instead (i.e. undo is applied on the last commit that scheduled it).

Result

CONF_DONE if the configuration has been accepted immediately, CONF_PROGRESS if it will take some time to switch to it, CONF_QUEUED if it's been queued due to another reconfiguration being in progress now, CONF_UNQUEUED if a scheduled reconfiguration is removed, CONF_NOTHING if there is no relevant configuration to undo (the previous config request was config_undo() too) or CONF_SHUTDOWN if BIRD is in shutdown mode and no new configuration changes are accepted.


Function

void order_shutdown (void) -- order BIRD shutdown

Description

This function initiates shutdown of BIRD. It's accomplished by asking for switching to an empty configuration.


Function

void cf_error (char * msg, ... ...) -- report a configuration error

Arguments

char * msg

printf-like format string

... ...

variable arguments

Description

cf_error() can be called during execution of config_parse(), that is from the parser, a preconfig hook or a postconfig hook, to report an error in the configuration.


Function

char * cfg_strdup (char * c) -- copy a string to config memory

Arguments

char * c

string to copy

Description

cfg_strdup() creates a new copy of the string in the memory pool associated with the configuration being currently parsed. It's often used when a string literal occurs in the configuration and we want to preserve it for further use.

3.2 Lexical analyzer

The lexical analyzer used for configuration files and CLI commands is generated using the flex tool accompanied by a couple of functions maintaining the hash tables containing information about symbols and keywords.

Each symbol is represented by a symbol structure containing name of the symbol, its lexical scope, symbol class (SYM_PROTO for a name of a protocol, SYM_CONSTANT for a constant etc.) and class dependent data. When an unknown symbol is encountered, it's automatically added to the symbol table with class SYM_VOID.

The keyword tables are generated from the grammar templates using the gen_keywords.m4 script.


Function

struct symbol * cf_find_symbol (byte * c) -- find a symbol by name

Arguments

byte * c

symbol name

Description

This functions searches the symbol table for a symbol of given name. First it examines the current scope, then the second recent one and so on until it either finds the symbol and returns a pointer to its symbol structure or reaches the end of the scope chain and returns NULL to signify no match.


Function

struct symbol * cf_define_symbol (struct symbol * sym, int type, void * def) -- define meaning of a symbol

Arguments

struct symbol * sym

symbol to be defined

int type

symbol class to assign

void * def

class dependent data

Description

Defines new meaning of a symbol. If the symbol is an undefined one (SYM_VOID), it's just re-defined to the new type. If it's defined in different scope, a new symbol in current scope is created and the meaning is assigned to it. If it's already defined in the current scope, an error is reported via cf_error().

Result

Pointer to the newly defined symbol. If we are in the top-level scope, it's the same sym as passed to the function.


Function

void cf_lex_init (int is_cli, struct config * c) -- initialize the lexer

Arguments

int is_cli

true if we're going to parse CLI command, false for configuration

struct config * c

-- undescribed --

Description

cf_lex_init() initializes the lexical analyzer and prepares it for parsing of a new input.


Function

void cf_push_scope (struct symbol * sym) -- enter new scope

Arguments

struct symbol * sym

symbol representing scope name

Description

If we want to enter a new scope to process declarations inside a nested block, we can just call cf_push_scope() to push a new scope onto the scope stack which will cause all new symbols to be defined in this scope and all existing symbols to be sought for in all scopes stored on the stack.


Function

void cf_pop_scope (void) -- leave a scope

Description

cf_pop_scope() pops the topmost scope from the scope stack, leaving all its symbols in the symbol table, but making them invisible to the rest of the config.


Function

char * cf_symbol_class_name (struct symbol * sym) -- get name of a symbol class

Arguments

struct symbol * sym

symbol

Description

This function returns a string representing the class of the given symbol.

3.3 Parser

Both the configuration and CLI commands are analyzed using a syntax driven parser generated by the bison tool from a grammar which is constructed from information gathered from grammar snippets by the gen_parser.m4 script.

Grammar snippets are files (usually with extension .Y) contributed by various BIRD modules in order to provide information about syntax of their configuration and their CLI commands. Each snipped consists of several sections, each of them starting with a special keyword: CF_HDR for a list of #include directives needed by the C code, CF_DEFINES for a list of C declarations, CF_DECLS for bison declarations including keyword definitions specified as CF_KEYWORDS, CF_GRAMMAR for the grammar rules, CF_CODE for auxiliary C code and finally CF_END at the end of the snippet.

To create references between the snippets, it's possible to define multi-part rules by utilizing the CF_ADDTO macro which adds a new alternative to a multi-part rule.

CLI commands are defined using a CF_CLI macro. Its parameters are: the list of keywords determining the command, the list of parameters, help text for the parameters and help text for the command.

Values of enum filter types can be defined using CF_ENUM with the following parameters: name of filter type, prefix common for all literals of this type and names of all the possible values.


Next Previous Contents bird-1.4.0/doc/bird-4.html0000644000103200001440000002461412244656167014160 0ustar feelausers BIRD User's Guide: Remote control Next Previous Contents

4. Remote control

You can use the command-line client birdc to talk with a running BIRD. Communication is done using a bird.ctl UNIX domain socket (unless changed with the -s option given to both the server and the client). The commands can perform simple actions such as enabling/disabling of protocols, telling BIRD to show various information, telling it to show routing table filtered by filter, or asking BIRD to reconfigure. Press ? at any time to get online help. Option -r can be used to enable a restricted mode of BIRD client, which allows just read-only commands (show ...). Option -v can be passed to the client, to make it dump numeric return codes along with the messages. You do not necessarily need to use birdc to talk to BIRD, your own applications could do that, too -- the format of communication between BIRD and birdc is stable (see the programmer's documentation).

There is also lightweight variant of BIRD client called birdcl, which does not support command line editing and history and has minimal dependencies. This is useful for running BIRD in resource constrained environments, where Readline library (required for regular BIRD client) is not available.

Many commands have the name of the protocol instance as an argument. This argument can be omitted if there exists only a single instance.

Here is a brief list of supported functions:

show status

Show router status, that is BIRD version, uptime and time from last reconfiguration.

show protocols [all]

Show list of protocol instances along with tables they are connected to and protocol status, possibly giving verbose information, if all is specified.

show ospf interface [name] ["interface"]

Show detailed information about OSPF interfaces.

show ospf neighbors [name] ["interface"]

Show a list of OSPF neighbors and a state of adjacency to them.

show ospf state [all] [name]

Show detailed information about OSPF areas based on a content of the link-state database. It shows network topology, stub networks, aggregated networks and routers from other areas and external routes. The command shows information about reachable network nodes, use option all to show information about all network nodes in the link-state database.

show ospf topology [all] [name]

Show a topology of OSPF areas based on a content of the link-state database. It is just a stripped-down version of 'show ospf state'.

show ospf lsadb [global | area id | link] [type num] [lsid id] [self | router id] [name]

Show contents of an OSPF LSA database. Options could be used to filter entries.

show static [name]

Show detailed information about static routes.

show interfaces [summary]

Show the list of interfaces. For each interface, print its type, state, MTU and addresses assigned.

show symbols [table|filter|function|protocol|template|roa|symbol]

Show the list of symbols defined in the configuration (names of protocols, routing tables etc.).

show route [[for] prefix|IP] [table sym] [filter f|where c] [(export|preexport) p] [protocol p] [options]

Show contents of a routing table (by default of the main one or the table attached to a respective protocol), that is routes, their metrics and (in case the all switch is given) all their attributes.

You can specify a prefix if you want to print routes for a specific network. If you use for prefix or IP, you'll get the entry which will be used for forwarding of packets to the given destination. By default, all routes for each network are printed with the selected one at the top, unless primary is given in which case only the selected route is shown.

You can also ask for printing only routes processed and accepted by a given filter (filter name or filter { filter } or matching a given condition (where condition). The export and preexport switches ask for printing of entries that are exported to the specified protocol. With preexport, the export filter of the protocol is skipped.

You can also select just routes added by a specific protocol. protocol p.

If BIRD is configured to keep filtered routes (see import keep filtered option), you can show them instead of routes by using filtered switch.

The stats switch requests showing of route statistics (the number of networks, number of routes before and after filtering). If you use count instead, only the statistics will be printed.

show roa [prefix | in prefix | for prefix] [as num] [table t>]

Show contents of a ROA table (by default of the first one). You can specify a prefix to print ROA entries for a specific network. If you use for prefix, you'll get all entries relevant for route validation of the network prefix; i.e., ROA entries whose prefixes cover the network prefix. Or you can use in prefix to get ROA entries covered by the network prefix. You could also use as option to show just entries for given AS.

add roa prefix max num] as num [table t>]

Add a new ROA entry to a ROA table. Such entry is called dynamic compared to static entries specified in the config file. These dynamic entries survive reconfiguration.

delete roa prefix max num] as num [table t>]

Delete the specified ROA entry from a ROA table. Only dynamic ROA entries (i.e., the ones added by add roa command) can be deleted.

flush roa [table t>]

Remove all dynamic ROA entries from a ROA table.

configure [soft] ["config file"] [timeout [num]]

Reload configuration from a given file. BIRD will smoothly switch itself to the new configuration, protocols are reconfigured if possible, restarted otherwise. Changes in filters usually lead to restart of affected protocols.

If soft option is used, changes in filters does not cause BIRD to restart affected protocols, therefore already accepted routes (according to old filters) would be still propagated, but new routes would be processed according to the new filters.

If timeout option is used, config timer is activated. The new configuration could be either confirmed using configure confirm command, or it will be reverted to the old one when the config timer expires. This is useful for cases when reconfiguration breaks current routing and a router becames inaccessible for an administrator. The config timeout expiration is equivalent to configure undo command. The timeout duration could be specified, default is 300 s.

configure confirm

Deactivate the config undo timer and therefore confirm the current configuration.

configure undo

Undo the last configuration change and smoothly switch back to the previous (stored) configuration. If the last configuration change was soft, the undo change is also soft. There is only one level of undo, but in some specific cases when several reconfiguration requests are given immediately in a row and the intermediate ones are skipped then the undo also skips them back.

configure check ["config file"]

Read and parse given config file, but do not use it. useful for checking syntactic and some semantic validity of an config file.

enable|disable|restart name|"pattern"|all

Enable, disable or restart a given protocol instance, instances matching the pattern or all instances.

reload [in|out] name|"pattern"|all

Reload a given protocol instance, that means re-import routes from the protocol instance and re-export preferred routes to the instance. If in or out options are used, the command is restricted to one direction (re-import or re-export).

This command is useful if appropriate filters have changed but the protocol instance was not restarted (or reloaded), therefore it still propagates the old set of routes. For example when configure soft command was used to change filters.

Re-export always succeeds, but re-import is protocol-dependent and might fail (for example, if BGP neighbor does not support route-refresh extension). In that case, re-export is also skipped. Note that for the pipe protocol, both directions are always reloaded together (in or out options are ignored in that case).

down

Shut BIRD down.

debug protocol|pattern|all all|off|{ states | routes | filters | events | packets }

Control protocol debugging.

dump resources|sockets|interfaces|neighbors|attributes|routes|protocols

Dump contents of internal data structures to the debugging output.

echo all|off|{ list of log classes } [ buffer-size ]

Control echoing of log messages to the command-line output. See log option for a list of log classes.

eval expr

Evaluate given expression.


Next Previous Contents bird-1.4.0/doc/LinuxDocTools.pm0000644000103200001440000004031711606273733015306 0ustar feelausers#! /usr/bin/perl # # LinuxDocTools.pm # # $Id$ # # LinuxDoc-Tools driver core. This contains all the basic functionality # we need to control all other components. # # © Copyright 1996, Cees de Groot. # © Copyright 2000, Taketoshi Sano # # THIS VERSION HAS BEEN HACKED FOR BIRD BY MARTIN MARES # package LinuxDocTools; require 5.004; use strict; =head1 NAME LinuxDocTools - SGML conversion utilities for LinuxDoc DTD. =head1 SYNOPSIS use LinuxDocTools; LinuxDocTools::init; @files = LinuxDocTools::process_options ($0, @ARGV); for $curfile (@files) { LinuxDocTools::process_file ($curfile); } =head1 DESCRIPTION The LinuxDocTools package encapsulates all the functionality offered by LinuxDoc-Tools. It is used, of course, by LinuxDoc-Tools; but the encapsulation should provide for a simple interface for other users as well. =head1 FUNCTIONS =over 4 =cut use DirHandle; use File::Basename; use File::Find; use File::Copy; use FileHandle; use IPC::Open2; use Cwd; use LinuxDocTools::Lang; use LinuxDocTools::Utils qw(process_options usage cleanup trap_signals remove_tmpfiles create_temp); use LinuxDocTools::Vars; sub BEGIN { # # Make sure we're always looking here. Note that "use lib" adds # on the front of the search path, so we first push dist, then # site, so that site is searched first. # use lib "$main::DataDir/dist"; use lib "$main::DataDir/site"; } =item LinuxDocTools::init Takes care of initialization of package-global variables (which are actually defined in L). The package-global variables are I<$global>, a reference to a hash containing numerous settings, I<%Formats>, a hash containing all the formats, and I<%FmtList>, a hash containing the currently active formats for help texts. Apart from this, C also finds all distributed and site-local formatting backends and Cs them. =cut sub init { trap_signals; # # Register the ``global'' pseudoformat. Apart from the global settings, # we also use $global to keep the global variable name space clean; # everything that we need to provide to other modules is stuffed # into $global. # $global = {}; $global->{NAME} = "global"; $global->{HELP} = ""; $global->{OPTIONS} = [ { option => "backend", type => "l", 'values' => [ "html", "info", "latex", "lyx", "rtf", "txt", "check" ], short => "B" }, { option => "papersize", type => "l", 'values' => [ "a4", "letter" ], short => "p" }, { option => "language", type => "l", 'values' => [ @LinuxDocTools::Lang::Languages ], short => "l" }, { option => "charset", type => "l", 'values' => [ "latin", "ascii", "nippon", "euc-kr" ], short => "c" }, { option => "style", type => "s", short => "S" }, { option => "tabsize", type => "i", short => "t" }, # { option => "verbose", type => "f", short => "v" }, { option => "debug", type => "f", short => "d" }, { option => "define", type => "s", short => "D" }, { option => "include", type => "s", short => "i" }, { option => "pass", type => "s", short => "P" } ]; $global->{backend} = "linuxdoc"; $global->{papersize} = "a4"; $global->{language} = "en"; $global->{charset} = "ascii"; $global->{style} = ""; $global->{tabsize} = 8; $global->{verbose} = 0; $global->{define} = ""; $global->{debug} = 0; $global->{include} = ""; $global->{pass} = ""; $global->{InFiles} = []; $Formats{$global->{NAME}} = $global; # All formats we know. $FmtList{$global->{NAME}} = $global; # List of formats for help msgs. # automatic language detection: disabled by default # { # my $lang; # foreach $lang (@LinuxDocTools::Lang::Languages) # { # if (($ENV{"LC_ALL"} =~ /^$lang/i) || # ($ENV{"LC_CTYPE"} =~ /^$lang/i) || # ($ENV{"LANG"} =~ /^$lang/i)) { # $global->{language} = Any2ISO($lang); # } # } # } # # Used when the format is "global" (from sgmlcheck). # $global->{preNSGMLS} = sub { $global->{NsgmlsOpts} .= " -s "; $global->{NsgmlsPrePipe} = "cat $global->{file}"; }; # # Build up the list of formatters. # my $savdir = cwd; my %Locs; chdir "$main::DataDir/dist"; my $dir = new DirHandle("."); die "Unable to read directory $main::DataDir/dist: $!" unless defined($dir); foreach my $fmt (grep(/^fmt_.*\.pl$/, $dir->read())) { $Locs{$fmt} = "dist"; } $dir->close(); chdir "$main::DataDir/site"; $dir = new DirHandle("."); die "Unable to read directory $main::DataDir/site: $!" unless defined($dir); foreach my $fmt (grep(/^fmt_.*\.pl$/, $dir->read())) { $Locs{$fmt} = "site"; } $dir->close(); foreach my $fmt (keys %Locs) { require $fmt; } chdir $savdir; } =item LinuxDocTools::process_options ($0, @ARGV) This function contains all initialization that is bound to the current invocation of LinuxDocTools. It looks in C<$0> to deduce the backend that should be used (ld2txt activates the I backend) and parses the options array. It returns an array of filenames it encountered during option processing. As a side effect, the environment variables I and I are modified. =cut sub process_options { my $progname = shift; my @args = @_; # # Deduce the format from the caller's file name # my ($format, $dummy1, $dummy2) = fileparse ($progname, ""); $global->{myname} = $format; $format =~ s/sgml2*(.*)/$1/; # # check the option "--backend / -B" # if ($format eq "linuxdoc") { my @backends = @args; my $arg; while (@backends) { $arg = shift @backends; if ($arg eq "-B") { $arg = shift @backends; $format = $arg; last; } if ( $arg =~ s/--backend=(.*)/$1/ ) { $format = $arg; last; } } } $format = "global" if $format eq "check"; usage ("") if $format eq "linuxdoc"; $format = "latex2e" if $format eq "latex"; $FmtList{$format} = $Formats{$format} or usage ("$global->{myname}: unknown format"); $global->{format} = $format; # # Parse all the options. # my @files = LinuxDocTools::Utils::process_options (@args); $global->{language} = Any2ISO ($global->{language}); # # check the number of given files $#files > -1 || usage ("no filenames given"); # # Setup the SGML environment. # (Note that Debian package rewrite path to catalog of # iso-entities using debian/rules so that it can use # entities from sgml-data pacakge. debian/rules also # removes iso-entites sub directory after doing make install.) # $ENV{SGML_CATALOG_FILES} .= (defined $ENV{SGML_CATALOG_FILES} ? ":" : "") . "$main::prefix/share/sgml/entities/sgml-iso-entities-8879.1986/catalog"; $ENV{SGML_CATALOG_FILES} .= ":$main::DataDir/linuxdoc-tools.catalog"; $ENV{SGML_CATALOG_FILES} .= ":$main::/etc/sgml.catalog"; if (-f "$main::DataDir/dtd/$format.dcl") { $ENV{SGMLDECL} = "$main::DataDir/dtd/$format.dcl"; } elsif (-f "$main::DataDir/dtd/$global->{style}.dcl") { $ENV{SGMLDECL} = "$main::DataDir/dtd/$global->{style}.dcl"; } elsif (-f "$main::DataDir/dtd/sgml.dcl") { $ENV{SGMLDECL} = "$main::DataDir/dtd/sgml.dcl"; } # # OK. Give the list of files we distilled from the options # back to the caller. # return @files; } =item LinuxDocTools::process_file With all the configuration done, this routine will take a single filename and convert it to the currently active backend format. The conversion is done in a number of steps in tight interaction with the currently active backend (see also L): =over =item 1. Backend: set NSGMLS options and optionally create a pre-NSGMLS pipe. =item 2. Here: Run the preprocessor to handle conditionals. =item 3. Here: Run NSGMLS. =item 4. Backend: run pre-ASP conversion. =item 5. Here: Run SGMLSASP. =item 6. Backend: run post-ASP conversion, generating the output. =back All stages are influenced by command-line settings, currently active format, etcetera. See the code for details. =cut sub process_file { my $file = shift (@_); my $saved_umask = umask; print "Processing file $file\n"; umask 0077; my ($filename, $filepath, $filesuffix) = fileparse ($file, "\.sgml"); my $tmpnam = $filepath . '/' . $filename; $file = $tmpnam . $filesuffix; -f $file || $file =~ /.*.sgml$/ || ($file .= '.sgml'); -f $file || ($file = $tmpnam . '.SGML'); -f $file || die "Cannot find $file\n"; $global->{filename} = $filename; $global->{file} = $file; $global->{filepath} = $filepath; my $tmp = new FileHandle "<$file"; my $dtd; while ( <$tmp> ) { tr/A-Z/a-z/; # check for [close; if ( $global->{debug} ) { print "DTD: " . $dtd . "\n"; } $global->{dtd} = $dtd; # prepare temporary directory my $tmpdir = $ENV{'TMPDIR'} || '/tmp'; $tmpdir = $tmpdir . '/' . 'linuxdoc-dir-' . $$; mkdir ($tmpdir, 0700) || die " - temporary files can not be created, aborted - \n"; my $tmpbase = $global->{tmpbase} = $tmpdir . '/sgmltmp.' . $filename; $ENV{"SGML_SEARCH_PATH"} .= ":$filepath"; # # Set up the preprocessing command. Conditionals have to be # handled here until they can be moved into the DTD, otherwise # a validating SGML parser will choke on them. # # check if output option for latex is pdf or not if ($global->{format} eq "latex2e") { if ($Formats{$global->{format}}{output} eq "pdf") { $global->{define} .= " pdflatex=yes"; } } # my($precmd) = "|sgmlpre output=$global->{format} $global->{define}"; # # You can hack $NsgmlsOpts here, etcetera. # $global->{NsgmlsOpts} .= "-D $main::prefix/share/sgml -D $main::DataDir"; $global->{NsgmlsOpts} .= "-i$global->{include}" if ($global->{include}); $global->{NsgmlsPrePipe} = "NOTHING"; if ( defined $Formats{$global->{format}}{preNSGMLS} ) { $global->{NsgmlsPrePipe} = &{$Formats{$global->{format}}{preNSGMLS}}; } # # Run the prepocessor and nsgmls. # my ($ifile, $writensgmls); if ($global->{NsgmlsPrePipe} eq "NOTHING") { $ifile = new FileHandle $file; } else { $ifile = new FileHandle "$global->{NsgmlsPrePipe}|"; } create_temp("$tmpbase.1"); $writensgmls = new FileHandle "$precmd|$main::progs->{NSGMLS} $global->{NsgmlsOpts} $ENV{SGMLDECL} >\"$tmpbase.1\""; if ($global->{charset} eq "latin") { while (<$ifile>) { # Outline these commands later on - CdG #change latin1 characters to SGML #by Farzad Farid, adapted by Greg Hankins s/À/\À/g; s/Á/\Á/g; s/Â/\Â/g; s/Ã/\Ã/g; s/Ä/\Ä/g; s/Å/\Å/g; s/Æ/\Æ/g; s/Ç/\Ç/g; s/È/\È/g; s/É/\É/g; s/Ê/\Ê/g; s/Ë/\Ë/g; s/Ì/\Ì/g; s/Í/\Í/g; s/Î/\Î/g; s/Ï/\Ï/g; s/Ñ/\Ñ/g; s/Ò/\Ò/g; s/Ó/\Ó/g; s/Ô/\Ô/g; s/Õ/\Õ/g; s/Ö/\Ö/g; s/Ø/\Ø/g; s/Ù/\Ù/g; s/Ú/\Ú/g; s/Û/\Û/g; s/Ü/\Ü/g; s/Ý/\Ý/g; s/Þ/\Þ/g; s/ß/\ß/g; s/à/\à/g; s/á/\á/g; s/â/\â/g; s/ã/\ã/g; s/ä/\ä/g; s/å/\å/g; s/æ/\æ/g; s/ç/\ç/g; s/è/\è/g; s/é/\é/g; s/ê/\ê/g; s/ë/\ë/g; s/ì/\ì/g; s/í/\í/g; s/î/\î/g; s/ï/\ï/g; s/µ/\μ/g; s/ð/\ð/g; s/ñ/\ñ/g; s/ò/\ò/g; s/ó/\ó/g; s/ô/\ô/g; s/õ/\õ/g; s/ö/\ö/g; s/ø/\ø/g; s/ù/\ù/g; s/ú/\ú/g; s/û/\û/g; s/ü/\ü/g; s/ý/\ý/g; s/þ/\þ/g; s/ÿ/\ÿ/g; print $writensgmls $_; } } else { while (<$ifile>) { print $writensgmls $_; } } $ifile->close; $writensgmls->close; # # Special case: if format is global, we're just checking. # $global->{format} eq "global" && cleanup; # # If the output file is empty, something went wrong. # ! -e "$tmpbase.1" and die "can't create file - exiting"; -z "$tmpbase.1" and die "SGML parsing error - exiting"; if ( $global->{debug} ) { print "Nsgmls stage finished.\n"; } # # If a preASP stage is defined, let the format handle it. # # preASP ($inhandle, $outhandle); # my $inpreasp = new FileHandle "<$tmpbase.1"; my $outpreasp = new FileHandle "$tmpbase.2",O_WRONLY|O_CREAT|O_EXCL,0600; if (defined $Formats{$global->{format}}{preASP}) { &{$Formats{$global->{format}}{preASP}}($inpreasp, $outpreasp) == 0 or die "error pre-processing $global->{format}.\n"; } else { copy ($inpreasp, $outpreasp); } $inpreasp->close; $outpreasp->close; ! -e "$tmpbase.2" and die "can't create file - exiting"; if ( $global->{debug} ) { print "PreASP stage finished.\n"; } # # Run sgmlsasp, with an optional style if specified. # # Search order: # - datadir/site// # - datadir/dist// # So we need to fetch the doctype from the intermediate. # # Note: this is a very simplistic check - but as far as I know, # it is correct. Am I right? # my $tmp = new FileHandle "<$tmpbase.2"; my $dtd; while ( ($dtd = <$tmp>) && ! ( $dtd =~ /^\(/) ) { }; $tmp->close; $dtd =~ s/^\(//; $dtd =~ tr/A-Z/a-z/; chop $dtd; $global->{dtd} = $dtd; my $style = ""; if ($global->{style}) { $style = "$main::DataDir/site/$dtd/$global->{format}/$global->{style}mapping"; -r $style or $style = "$main::DataDir/dist/$dtd/$global->{format}/$global->{style}mapping"; } my $mapping = "$main::DataDir/site/$dtd/$global->{format}/mapping"; -r $mapping or $mapping = "$main::DataDir/dist/$dtd/$global->{format}/mapping"; $global->{charset} = "nippon" if ($global->{language} eq "ja"); # # we don't have Korean groff so charset should be latin1. # if ($global->{language} eq "ko") { if ($global->{format} eq "groff") { $global->{charset} = "latin1"; } else { $global->{charset} = "euc-kr"; } } if ($global->{format} eq "groff" or $global->{format} eq "latex2e") { if ($dtd eq "linuxdoctr") { $mapping = "$main::DataDir/dist/$dtd/$global->{format}/tr-mapping"; } } create_temp("$tmpbase.3"); system ("$main::progs->{SGMLSASP} $style $mapping <\"$tmpbase.2\" | expand -$global->{tabsize} >\"$tmpbase.3\""); ! -e "$tmpbase.3" and die "can't create file - exiting"; if ( $global->{debug} ) { print "ASP stage finished.\n"; } # # If a postASP stage is defined, let the format handle it. # It should leave whatever it thinks is right based on $file. # # postASP ($inhandle) # umask $saved_umask; my $inpostasp = new FileHandle "<$tmpbase.3"; if (defined $Formats{$global->{format}}{postASP}) { &{$Formats{$global->{format}}{postASP}}($inpostasp) == 0 or die "error post-processing $global->{format}.\n"; } $inpostasp->close; if ( $global->{debug} ) { print "postASP stage finished.\n"; } # # All done, remove the temporaries. # if( !$global->{debug} ) { remove_tmpfiles($tmpbase); } } =pod =back =head1 SEE ALSO Documentation for various sub-packages of LinuxDocTools. =head1 AUTHOR SGMLTools are written by Cees de Groot, Ccg@cdegroot.comE>, and various SGML-Tools contributors as listed in C. Taketoshi Sano Csano@debian.org> rename to LinuxDocTools. =cut 1; bird-1.4.0/doc/bird-3.html0000644000103200001440000005120012244656167014146 0ustar feelausers BIRD User's Guide: Configuration Next Previous Contents

3. Configuration

3.1 Introduction

BIRD is configured using a text configuration file. Upon startup, BIRD reads prefix/etc/bird.conf (unless the -c command line option is given). Configuration may be changed at user's request: if you modify the config file and then signal BIRD with SIGHUP, it will adjust to the new config. Then there's the client which allows you to talk with BIRD in an extensive way.

In the config, everything on a line after # or inside /* */ is a comment, whitespace characters are treated as a single space. If there's a variable number of options, they are grouped using the { } brackets. Each option is terminated by a ;. Configuration is case sensitive. There are two ways how to name symbols (like protocol names, filter names, constats etc.). You can either use a simple string starting with a letter followed by any combination of letters and numbers (e.g. "R123", "myfilter", "bgp5") or you can enclose the name into apostrophes (') and than you can use any combination of numbers, letters. hyphens, dots and colons (e.g. "'1:strange-name'", "'-NAME-'", "'cool::name'").

Here is an example of a simple config file. It enables synchronization of routing tables with OS kernel, scans for new network interfaces every 10 seconds and runs RIP on all network interfaces found.


protocol kernel {
        persist;                # Don't remove routes on BIRD shutdown
        scan time 20;           # Scan kernel routing table every 20 seconds
        export all;             # Default is export none
}

protocol device {
        scan time 10;           # Scan interfaces every 10 seconds
}

protocol rip {
        export all;
        import all;
        interface "*";
}

3.2 Global options

include "filename"

This statement causes inclusion of a new file. The maximal depth is set to 5.

log "filename"|syslog [name name]|stderr all|{ list of classes }

Set logging of messages having the given class (either all or { error, trace } etc.) into selected destination (a file specified as a filename string, syslog with optional name argument, or the stderr output). Classes are: info, warning, error and fatal for messages about local problems, debug for debugging messages, trace when you want to know what happens in the network, remote for messages about misbehavior of remote machines, auth about authentication failures, bug for internal BIRD bugs. You may specify more than one log line to establish logging to multiple destinations. Default: log everything to the system log.

debug protocols all|off|{ states, routes, filters, interfaces, events, packets }

Set global defaults of protocol debugging options. See debug in the following section. Default: off.

debug commands number

Control logging of client connections (0 for no logging, 1 for logging of connects and disconnects, 2 and higher for logging of all client commands). Default: 0.

mrtdump "filename"

Set MRTdump file name. This option must be specified to allow MRTdump feature. Default: no dump file.

mrtdump protocols all|off|{ states, messages }

Set global defaults of MRTdump options. See mrtdump in the following section. Default: off.

filter name local variables{ commands }

Define a filter. You can learn more about filters in the following chapter.

function name (parameters) local variables { commands }

Define a function. You can learn more about functions in the following chapter.

protocol rip|ospf|bgp|... [name [from name2]] { protocol options }

Define a protocol instance called name (or with a name like "rip5" generated automatically if you don't specify any name). You can learn more about configuring protocols in their own chapters. When from name2 expression is used, initial protocol options are taken from protocol or template name2 You can run more than one instance of most protocols (like RIP or BGP). By default, no instances are configured.

template rip|bgp|... [name [from name2]] { protocol options }

Define a protocol template instance called name (or with a name like "bgp1" generated automatically if you don't specify any name). Protocol templates can be used to group common options when many similarly configured protocol instances are to be defined. Protocol instances (and other templates) can use templates by using from expression and the name of the template. At the moment templates (and from expression) are not implemented for OSPF protocol.

define constant = expression

Define a constant. You can use it later in every place you could use a value of the same type. Besides, there are some predefined numeric constants based on /etc/iproute2/rt_* files. A list of defined constants can be seen (together with other symbols) using 'show symbols' command.

router id IPv4 address

Set BIRD's router ID. It's a world-wide unique identification of your router, usually one of router's IPv4 addresses. Default: in IPv4 version, the lowest IP address of a non-loopback interface. In IPv6 version, this option is mandatory.

router id from [-] [ "mask" ] [ prefix ] [, ...]

Set BIRD's router ID based on an IP address of an interface specified by an interface pattern. The option is applicable for IPv4 version only. See interface section for detailed description of interface patterns.

listen bgp [address address] [port port] [dual]

This option allows to specify address and port where BGP protocol should listen. It is global option as listening socket is common to all BGP instances. Default is to listen on all addresses (0.0.0.0) and port 179. In IPv6 mode, option dual can be used to specify that BGP socket should accept both IPv4 and IPv6 connections (but even in that case, BIRD would accept IPv6 routes only). Such behavior was default in older versions of BIRD.

timeformat route|protocol|base|log "format1" [limit "format2"]

This option allows to specify a format of date/time used by BIRD. The first argument specifies for which purpose such format is used. route is a format used in 'show route' command output, protocol is used in 'show protocols' command output, base is used for other commands and log is used in a log file.

"format1" is a format string using strftime(3) notation (see man strftime for details). limit> and "format2" allow to specify the second format string for times in past deeper than limit seconds. There are few shorthands: iso long is a ISO 8601 datetime format (YYYY-MM-DD hh:mm:ss) that can be also specified using "%F %T". iso short is a variant of ISO 8601 that uses just the time format (hh:mm:ss) for near times (up to 20 hours in the past) and the date format (YYYY-MM-DD) for far times. This is a shorthand for "%T" 72000 "%F".

By default, BIRD uses the iso short format for route and protocol times, and the iso long format for base and log times.

In pre-1.4.0 versions, BIRD used an short, ad-hoc format for route and protocol times, and a iso long similar format (DD-MM-YYYY hh:mm:ss) for base and log. These timeformats could be set by old short and old long compatibility shorthands.

table name [sorted]

Create a new routing table. The default routing table is created implicitly, other routing tables have to be added by this command. Option sorted can be used to enable sorting of routes, see sorted table description for details.

roa table name [ { roa table options ... } ]

Create a new ROA (Route Origin Authorization) table. ROA tables can be used to validate route origination of BGP routes. A ROA table contains ROA entries, each consist of a network prefix, a max prefix length and an AS number. A ROA entry specifies prefixes which could be originated by that AS number. ROA tables could be filled with data from RPKI (RFC 6480) or from public databases like Whois. ROA tables are examined by roa_check() operator in filters.

Currently, there is just one option, roa prefix max num as num, which can be used to populate the ROA table with static ROA entries. The option may be used multiple times. Other entries can be added dynamically by add roa command.

eval expr

Evaluates given filter expression. It is used by us for testing of filters.

3.3 Protocol options

For each protocol instance, you can configure a bunch of options. Some of them (those described in this section) are generic, some are specific to the protocol (see sections talking about the protocols).

Several options use a switch argument. It can be either on, yes or a numeric expression with a non-zero value for the option to be enabled or off, no or a numeric expression evaluating to zero to disable it. An empty switch is equivalent to on ("silence means agreement").

preference expr

Sets the preference of routes generated by this protocol. Default: protocol dependent.

disabled switch

Disables the protocol. You can change the disable/enable status from the command line interface without needing to touch the configuration. Disabled protocols are not activated. Default: protocol is enabled.

debug all|off|{ states, routes, filters, interfaces, events, packets }

Set protocol debugging options. If asked, each protocol is capable of writing trace messages about its work to the log (with category trace). You can either request printing of all trace messages or only of the types selected: states for protocol state changes (protocol going up, down, starting, stopping etc.), routes for routes exchanged with the routing table, filters for details on route filtering, interfaces for interface change events sent to the protocol, events for events internal to the protocol and packets for packets sent and received by the protocol. Default: off.

mrtdump all|off|{ states, messages }

Set protocol MRTdump flags. MRTdump is a standard binary format for logging information from routing protocols and daemons. These flags control what kind of information is logged from the protocol to the MRTdump file (which must be specified by global mrtdump option, see the previous section). Although these flags are similar to flags of debug option, their meaning is different and protocol-specific. For BGP protocol, states logs BGP state changes and messages logs received BGP messages. Other protocols does not support MRTdump yet.

router id IPv4 address

This option can be used to override global router id for a given protocol. Default: uses global router id.

import all | none | filter name | filter { filter commands } | where filter expression

Specify a filter to be used for filtering routes coming from the protocol to the routing table. all is shorthand for where true and none is shorthand for where false. Default: all.

export filter

This is similar to the import keyword, except that it works in the direction from the routing table to the protocol. Default: none.

import keep filtered switch

Usually, if an import filter rejects a route, the route is forgotten. When this option is active, these routes are kept in the routing table, but they are hidden and not propagated to other protocols. But it is possible to show them using show route filtered. Note that this option does not work for the pipe protocol. Default: off.

import limit [number | off ] [action warn | block | restart | disable]

Specify an import route limit (a maximum number of routes imported from the protocol) and optionally the action to be taken when the limit is hit. Warn action just prints warning log message. Block action discards new routes coming from the protocol. Restart and disable actions shut the protocol down like appropriate commands. Disable is the default action if an action is not explicitly specified. Note that limits are reset during protocol reconfigure, reload or restart. Default: off.

receive limit [number | off ] [action warn | block | restart | disable]

Specify an receive route limit (a maximum number of routes received from the protocol and remembered). It works almost identically to import limit option, the only difference is that if import keep filtered option is active, filtered routes are counted towards the limit and blocked routes are forgotten, as the main purpose of the receive limit is to protect routing tables from overflow. Import limit, on the contrary, counts accepted routes only and routes blocked by the limit are handled like filtered routes. Default: off.

export limit [ number | off ] [action warn | block | restart | disable]

Specify an export route limit, works similarly to the import limit option, but for the routes exported to the protocol. This option is experimental, there are some problems in details of its behavior -- the number of exported routes can temporarily exceed the limit without triggering it during protocol reload, exported routes counter ignores route blocking and block action also blocks route updates of already accepted routes -- and these details will probably change in the future. Default: off.

description "text"

This is an optional description of the protocol. It is displayed as a part of the output of 'show route all' command.

table name

Connect this protocol to a non-default routing table.

There are several options that give sense only with certain protocols:

interface [-] [ "mask" ] [ prefix ] [, ...] [ { option ; [...] } ]

Specifies a set of interfaces on which the protocol is activated with given interface-specific options. A set of interfaces specified by one interface option is described using an interface pattern. The interface pattern consists of a sequence of clauses (separated by commas), each clause may contain a mask, a prefix, or both of them. An interface matches the clause if its name matches the mask (if specified) and its address matches the prefix (if specified). Mask is specified as shell-like pattern. For IPv6, the prefix part of a clause is generally ignored and interfaces are matched just by their name.

An interface matches the pattern if it matches any of its clauses. If the clause begins with -, matching interfaces are excluded. Patterns are parsed left-to-right, thus interface "eth0", -"eth*", "*"; means eth0 and all non-ethernets.

An interface option can be used more times with different interfaces-specific options, in that case for given interface the first matching interface option is used.

This option is allowed in Direct, OSPF, RIP and RAdv protocols, but in OSPF protocol it is used in area subsection.

Default: none.

Examples:

interface "*" { type broadcast; }; - start the protocol on all interfaces with type broadcast option.

interface "eth1", "eth4", "eth5" { type ptp; }; - start the protocol on enumerated interfaces with type ptp option.

interface -192.168.1.0/24, 192.168.0.0/16; - start the protocol on all interfaces that have address from 192.168.0.0/16, but not from 192.168.1.0/24.

interface -192.168.1.0/24, 192.168.0.0/16; - start the protocol on all interfaces that have address from 192.168.0.0/16, but not from 192.168.1.0/24.

interface "eth*" 192.168.1.0/24; - start the protocol on all ethernet interfaces that have address from 192.168.1.0/24.

tx class|dscp num

This option specifies the value of ToS/DS/Class field in IP headers of the outgoing protocol packets. This may affect how the protocol packets are processed by the network relative to the other network traffic. With class keyword, the value (0-255) is used for the whole ToS/Class octet (but two bits reserved for ECN are ignored). With dscp keyword, the value (0-63) is used just for the DS field in the octet. Default value is 0xc0 (DSCP 0x30 - CS6).

tx priority num

This option specifies the local packet priority. This may affect how the protocol packets are processed in the local TX queues. This option is Linux specific. Default value is 7 (highest priority, privileged traffic).

password "password" [ { id num; generate from time; generate to time; accept from time; accept to time; } ]

Specifies a password that can be used by the protocol. Password option can be used more times to specify more passwords. If more passwords are specified, it is a protocol-dependent decision which one is really used. Specifying passwords does not mean that authentication is enabled, authentication can be enabled by separate, protocol-dependent authentication option.

This option is allowed in OSPF and RIP protocols. BGP has also password option, but it is slightly different and described separately.

Default: none.

Password option can contain section with some (not necessary all) password sub-options:

id num

ID of the password, (0-255). If it's not used, BIRD will choose ID based on an order of the password item in the interface. For example, second password item in one interface will have default ID 2. ID is used by some routing protocols to identify which password was used to authenticate protocol packets.

generate from "time"

The start time of the usage of the password for packet signing. The format of time is dd-mm-yyyy HH:MM:SS.

generate to "time"

The last time of the usage of the password for packet signing.

accept from "time"

The start time of the usage of the password for packet verification.

accept to "time"

The last time of the usage of the password for packet verification.


Next Previous Contents bird-1.4.0/doc/sgml2html0000755000103200001440000000157011606273733014037 0ustar feelausers#!/usr/bin/perl # # sgmltools.in # # $Id$ # # SGML-Tools driver. Calls all other SGML-Tools components, contains # configuration information, etcetera. # package main; sub BEGIN { require 5.004; } use strict; use vars qw($prefix $DataDir $BinDir $progs); $prefix = "/usr"; $DataDir = "sbase"; $BinDir = "/usr/bin"; use lib "/usr/share/linuxdoc-tools"; use lib "/usr/perl5"; use lib "/usr/lib/perl5"; use lib "/usr/share/perl5"; $progs = { "NSGMLS" => "/usr/bin/nsgmls", "SGMLSASP" => "/usr/bin/sgmlsasp", "GROFF" => "/usr/bin/groff", "GROFFMACRO" => "-ms", "AWK" => "/usr/share/linuxdoc-tools/awkwhich" }; $ENV{"SGML_CATALOG_FILES"} = "sbase/dtd/catalog"; require "./LinuxDocTools.pm"; &LinuxDocTools::init; my @FileList = LinuxDocTools::process_options ("html", @ARGV); for my $curfile (@FileList) { LinuxDocTools::process_file ($curfile); } exit 0; bird-1.4.0/doc/Doc0000644000103200001440000000002211606273733012617 0ustar feelausersD prog-intro.sgml bird-1.4.0/doc/prog-7.html0000644000103200001440000005216712244656165014214 0ustar feelausers BIRD Programmer's Documentation: Library functions Next Previous Contents

7. Library functions

7.1 IP addresses

BIRD uses its own abstraction of IP address in order to share the same code for both IPv4 and IPv6. IP addresses are represented as entities of type ip_addr which are never to be treated as numbers and instead they must be manipulated using the following functions and macros.


Function

char * ip_scope_text (unsigned scope) -- get textual representation of address scope

Arguments

unsigned scope

scope (SCOPE_xxx)

Description

Returns a pointer to a textual name of the scope given.


Function

int ipa_equal (ip_addr x, ip_addr y) -- compare two IP addresses for equality

Arguments

ip_addr x

IP address

ip_addr y

IP address

Description

ipa_equal() returns 1 if x and y represent the same IP address, else 0.


Function

int ipa_nonzero (ip_addr x) -- test if an IP address is defined

Arguments

ip_addr x

IP address

Description

ipa_nonzero returns 1 if x is a defined IP address (not all bits are zero), else 0.

The undefined all-zero address is reachable as a IPA_NONE macro.


Function

ip_addr ipa_and (ip_addr x, ip_addr y) -- compute bitwise and of two IP addresses

Arguments

ip_addr x

IP address

ip_addr y

IP address

Description

This function returns a bitwise and of x and y. It's primarily used for network masking.


Function

ip_addr ipa_or (ip_addr x, ip_addr y) -- compute bitwise or of two IP addresses

Arguments

ip_addr x

IP address

ip_addr y

IP address

Description

This function returns a bitwise or of x and y.


Function

ip_addr ipa_xor (ip_addr x, ip_addr y) -- compute bitwise xor of two IP addresses

Arguments

ip_addr x

IP address

ip_addr y

IP address

Description

This function returns a bitwise xor of x and y.


Function

ip_addr ipa_not (ip_addr x) -- compute bitwise negation of two IP addresses

Arguments

ip_addr x

IP address

Description

This function returns a bitwise negation of x.


Function

ip_addr ipa_mkmask (int x) -- create a netmask

Arguments

int x

prefix length

Description

This function returns an ip_addr corresponding of a netmask of an address prefix of size x.


Function

int ipa_mklen (ip_addr x) -- calculate netmask length

Arguments

ip_addr x

IP address

Description

This function checks whether x represents a valid netmask and returns the size of the associate network prefix or -1 for invalid mask.


Function

int ipa_hash (ip_addr x) -- hash IP addresses

Arguments

ip_addr x

IP address

Description

ipa_hash() returns a 16-bit hash value of the IP address x.


Function

void ipa_hton (ip_addr x) -- convert IP address to network order

Arguments

ip_addr x

IP address

Description

Converts the IP address x to the network byte order.

Beware, this is a macro and it alters the argument!


Function

void ipa_ntoh (ip_addr x) -- convert IP address to host order

Arguments

ip_addr x

IP address

Description

Converts the IP address x from the network byte order.

Beware, this is a macro and it alters the argument!


Function

int ipa_classify (ip_addr x) -- classify an IP address

Arguments

ip_addr x

IP address

Description

ipa_classify() returns an address class of x, that is a bitwise or of address type (IADDR_INVALID, IADDR_HOST, IADDR_BROADCAST, IADDR_MULTICAST) with address scope (SCOPE_HOST to SCOPE_UNIVERSE) or -1 (IADDR_INVALID) for an invalid address.


Function

ip_addr ipa_class_mask (ip_addr x) -- guess netmask according to address class

Arguments

ip_addr x

IP address

Description

This function (available in IPv4 version only) returns a network mask according to the address class of x. Although classful addressing is nowadays obsolete, there still live routing protocols transferring no prefix lengths nor netmasks and this function could be useful to them.


Function

u32 ipa_from_u32 (ip_addr x) -- convert IPv4 address to an integer

Arguments

ip_addr x

IP address

Description

This function takes an IPv4 address and returns its numeric representation.


Function

ip_addr ipa_to_u32 (u32 x) -- convert integer to IPv4 address

Arguments

u32 x

a 32-bit integer

Description

ipa_to_u32() takes a numeric representation of an IPv4 address and converts it to the corresponding ip_addr.


Function

int ipa_compare (ip_addr x, ip_addr y) -- compare two IP addresses for order

Arguments

ip_addr x

IP address

ip_addr y

IP address

Description

The ipa_compare() function takes two IP addresses and returns -1 if x is less than y in canonical ordering (lexicographical order of the bit strings), 1 if x is greater than y and 0 if they are the same.


Function

ip_addr ipa_build (u32 a1, u32 a2, u32 a3, u32 a4) -- build an IPv6 address from parts

Arguments

u32 a1

part #1

u32 a2

part #2

u32 a3

part #3

u32 a4

part #4

Description

ipa_build() takes a1 to a4 and assembles them to a single IPv6 address. It's used for example when a protocol wants to bind its socket to a hard-wired multicast address.


Function

ip_addr ipa_absolutize (ip_addr x, ip_addr y) -- convert link scope IPv6 address to universe scope

Arguments

ip_addr x

link scope IPv6 address

ip_addr y

universe scope IPv6 prefix of the interface

Description

This function combines a link-scope IPv6 address x with the universe scope prefix x of the network assigned to an interface to get a universe scope form of x.


Function

char * ip_ntop (ip_addr a, char * buf) -- convert IP address to textual representation

Arguments

ip_addr a

IP address

char * buf

buffer of size at least STD_ADDRESS_P_LENGTH

Description

This function takes an IP address and creates its textual representation for presenting to the user.


Function

char * ip_ntox (ip_addr a, char * buf) -- convert IP address to hexadecimal representation

Arguments

ip_addr a

IP address

char * buf

buffer of size at least STD_ADDRESS_P_LENGTH

Description

This function takes an IP address and creates its hexadecimal textual representation. Primary use: debugging dumps.


Function

int ip_pton (char * a, ip_addr * o) -- parse textual representation of IP address

Arguments

char * a

textual representation

ip_addr * o

where to put the resulting address

Description

This function parses a textual IP address representation and stores the decoded address to a variable pointed to by o. Returns 0 if a parse error has occurred, else 0.

7.2 Linked lists

The BIRD library provides a set of functions for operating on linked lists. The lists are internally represented as standard doubly linked lists with synthetic head and tail which makes all the basic operations run in constant time and contain no extra end-of-list checks. Each list is described by a list structure, nodes can have any format as long as they start with a node structure. If you want your nodes to belong to multiple lists at once, you can embed multiple node structures in them and use the SKIP_BACK() macro to calculate a pointer to the start of the structure from a node pointer, but beware of obscurity.

There also exist safe linked lists (slist, snode and all functions being prefixed with s_) which support asynchronous walking very similar to that used in the fib structure.


Function

LIST_INLINE void add_tail (list * l, node * n) -- append a node to a list

Arguments

list * l

linked list

node * n

list node

Description

add_tail() takes a node n and appends it at the end of the list l.


Function

LIST_INLINE void add_head (list * l, node * n) -- prepend a node to a list

Arguments

list * l

linked list

node * n

list node

Description

add_head() takes a node n and prepends it at the start of the list l.


Function

LIST_INLINE void insert_node (node * n, node * after) -- insert a node to a list

Arguments

node * n

a new list node

node * after

a node of a list

Description

Inserts a node n to a linked list after an already inserted node after.


Function

LIST_INLINE void rem_node (node * n) -- remove a node from a list

Arguments

node * n

node to be removed

Description

Removes a node n from the list it's linked in.


Function

LIST_INLINE void rem2_node (node * n) -- remove a node from a list, with cleanup

Arguments

node * n

node to be removed

Description

Removes a node n from the list it's linked in and resets its pointers to NULL. Useful if you want to distinguish between linked and unlinked nodes.


Function

LIST_INLINE void replace_node (node * old, node * new) -- replace a node in a list with another one

Arguments

node * old

node to be removed

node * new

node to be inserted

Description

Replaces node old in the list it's linked in with node new. Node old may be a copy of the original node, which is not accessed through the list. The function could be called with old == new, which just fixes neighbors' pointers in the case that the node was reallocated.


Function

LIST_INLINE void init_list (list * l) -- create an empty list

Arguments

list * l

list

Description

init_list() takes a list structure and initializes its fields, so that it represents an empty list.


Function

LIST_INLINE void add_tail_list (list * to, list * l) -- concatenate two lists

Arguments

list * to

destination list

list * l

source list

Description

This function appends all elements of the list l to the list to in constant time.

7.3 Miscellaneous functions.


Function

int ipsum_verify (void * frag, unsigned len, ... ...) -- verify an IP checksum

Arguments

void * frag

first packet fragment

unsigned len

length in bytes

... ...

variable arguments

Description

This function verifies whether a given fragmented packet has correct one's complement checksum as used by the IP protocol.

It uses all the clever tricks described in RFC 1071 to speed up checksum calculation as much as possible.

Result

1 if the checksum is correct, 0 else.


Function

u16 ipsum_calculate (void * frag, unsigned len, ... ...) -- compute an IP checksum

Arguments

void * frag

first packet fragment

unsigned len

length in bytes

... ...

variable arguments

Description

This function calculates a one's complement checksum of a given fragmented packet.

It uses all the clever tricks described in RFC 1071 to speed up checksum calculation as much as possible.


Function

u32 u32_mkmask (unsigned n) -- create a bit mask

Arguments

unsigned n

number of bits

Description

u32_mkmask() returns an unsigned 32-bit integer which binary representation consists of n ones followed by zeroes.


Function

int u32_masklen (u32 x) -- calculate length of a bit mask

Arguments

u32 x

bit mask

Description

This function checks whether the given integer x represents a valid bit mask (binary representation contains first ones, then zeroes) and returns the number of ones or -1 if the mask is invalid.


Function

u32 u32_log2 (u32 v) -- compute a binary logarithm.

Arguments

u32 v

number

Description

This function computes a integral part of binary logarithm of given integer v and returns it. The computed value is also an index of the most significant non-zero bit position.


Function

int patmatch (byte * p, byte * s) -- match shell-like patterns

Arguments

byte * p

pattern

byte * s

string

Description

patmatch() returns whether given string s matches the given shell-like pattern p. The patterns consist of characters (which are matched literally), question marks which match any single character, asterisks which match any (possibly empty) string of characters and backslashes which are used to escape any special characters and force them to be treated literally.

The matching process is not optimized with respect to time, so please avoid using this function for complex patterns.


Function

int bvsnprintf (char * buf, int size, const char * fmt, va_list args) -- BIRD's vsnprintf()

Arguments

char * buf

destination buffer

int size

size of the buffer

const char * fmt

format string

va_list args

a list of arguments to be formatted

Description

This functions acts like ordinary sprintf() except that it checks available space to avoid buffer overflows and it allows some more

format specifiers

I for formatting of IP addresses (any non-zero width is automatically replaced by standard IP address width which depends on whether we use IPv4 or IPv6; %#I gives hexadecimal format), R for Router / Network ID (u32 value printed as IPv4 address) and m resp. M for error messages (uses strerror() to translate errno code to message text). On the other hand, it doesn't support floating point numbers.

Result

number of characters of the output string or -1 if the buffer space was insufficient.


Function

int bvsprintf (char * buf, const char * fmt, va_list args) -- BIRD's vsprintf()

Arguments

char * buf

buffer

const char * fmt

format string

va_list args

a list of arguments to be formatted

Description

This function is equivalent to bvsnprintf() with an infinite buffer size. Please use carefully only when you are absolutely sure the buffer won't overflow.


Function

int bsprintf (char * buf, const char * fmt, ... ...) -- BIRD's sprintf()

Arguments

char * buf

buffer

const char * fmt

format string

... ...

variable arguments

Description

This function is equivalent to bvsnprintf() with an infinite buffer size and variable arguments instead of a va_list. Please use carefully only when you are absolutely sure the buffer won't overflow.


Function

int bsnprintf (char * buf, int size, const char * fmt, ... ...) -- BIRD's snprintf()

Arguments

char * buf

buffer

int size

buffer size

const char * fmt

format string

... ...

variable arguments

Description

This function is equivalent to bsnprintf() with variable arguments instead of a va_list.


Function

void * xmalloc (unsigned size) -- malloc with checking

Arguments

unsigned size

block size

Description

This function is equivalent to malloc() except that in case of failure it calls die() to quit the program instead of returning a NULL pointer.

Wherever possible, please use the memory resources instead.


Function

void * xrealloc (void * ptr, unsigned size) -- realloc with checking

Arguments

void * ptr

original memory block

unsigned size

block size

Description

This function is equivalent to realloc() except that in case of failure it calls die() to quit the program instead of returning a NULL pointer.

Wherever possible, please use the memory resources instead.


Next Previous Contents bird-1.4.0/doc/bird.sgml0000644000103200001440000043673412244656136014023 0ustar feelausers BIRD User's Guide <author> Ondrej Filip <it/<feela@network.cz>/, Pavel Machek <it/<pavel@ucw.cz>/, Martin Mares <it/<mj@ucw.cz>/, Ondrej Zajicek <it/<santiago@crfreenet.org>/ </author> <abstract> This document contains user documentation for the BIRD Internet Routing Daemon project. </abstract> <!-- Table of contents --> <toc> <!-- Begin the document --> <chapt>Introduction <sect>What is BIRD <p><label id="intro"> The name `BIRD' is actually an acronym standing for `BIRD Internet Routing Daemon'. Let's take a closer look at the meaning of the name: <p><em/BIRD/: Well, we think we have already explained that. It's an acronym standing for `BIRD Internet Routing Daemon', you remember, don't you? :-) <p><em/Internet Routing/: It's a program (well, a daemon, as you are going to discover in a moment) which works as a dynamic router in an Internet type network (that is, in a network running either the IPv4 or the IPv6 protocol). Routers are devices which forward packets between interconnected networks in order to allow hosts not connected directly to the same local area network to communicate with each other. They also communicate with the other routers in the Internet to discover the topology of the network which allows them to find optimal (in terms of some metric) rules for forwarding of packets (which are called routing tables) and to adapt themselves to the changing conditions such as outages of network links, building of new connections and so on. Most of these routers are costly dedicated devices running obscure firmware which is hard to configure and not open to any changes (on the other hand, their special hardware design allows them to keep up with lots of high-speed network interfaces, better than general-purpose computer does). Fortunately, most operating systems of the UNIX family allow an ordinary computer to act as a router and forward packets belonging to the other hosts, but only according to a statically configured table. <p>A <em/Routing Daemon/ is in UNIX terminology a non-interactive program running on background which does the dynamic part of Internet routing, that is it communicates with the other routers, calculates routing tables and sends them to the OS kernel which does the actual packet forwarding. There already exist other such routing daemons: routed (RIP only), GateD (non-free), Zebra<HTMLURL URL="http://www.zebra.org"> and MRTD<HTMLURL URL="http://sourceforge.net/projects/mrt">, but their capabilities are limited and they are relatively hard to configure and maintain. <p>BIRD is an Internet Routing Daemon designed to avoid all of these shortcomings, to support all the routing technology used in the today's Internet or planned to be used in near future and to have a clean extensible architecture allowing new routing protocols to be incorporated easily. Among other features, BIRD supports: <itemize> <item>both IPv4 and IPv6 protocols <item>multiple routing tables <item>the Border Gateway Protocol (BGPv4) <item>the Routing Information Protocol (RIPv2) <item>the Open Shortest Path First protocol (OSPFv2, OSPFv3) <item>the Router Advertisements for IPv6 hosts <item>a virtual protocol for exchange of routes between different routing tables on a single host <item>a command-line interface allowing on-line control and inspection of status of the daemon <item>soft reconfiguration (no need to use complex online commands to change the configuration, just edit the configuration file and notify BIRD to re-read it and it will smoothly switch itself to the new configuration, not disturbing routing protocols unless they are affected by the configuration changes) <item>a powerful language for route filtering </itemize> <p>BIRD has been developed at the Faculty of Math and Physics, Charles University, Prague, Czech Republic as a student project. It can be freely distributed under the terms of the GNU General Public License. <p>BIRD has been designed to work on all UNIX-like systems. It has been developed and tested under Linux 2.0 to 2.6, and then ported to FreeBSD, NetBSD and OpenBSD, porting to other systems (even non-UNIX ones) should be relatively easy due to its highly modular architecture. <p>BIRD supports either IPv4 or IPv6 protocol, but have to be compiled separately for each one. Therefore, a dualstack router would run two instances of BIRD (one for IPv4 and one for IPv6), with completely separate setups (configuration files, tools ...). <sect>Installing BIRD <p>On a recent UNIX system with GNU development tools (GCC, binutils, m4, make) and Perl, installing BIRD should be as easy as: <code> ./configure make make install vi /usr/local/etc/bird.conf bird </code> <p>You can use <tt>./configure --help</tt> to get a list of configure options. The most important ones are: <tt/--enable-ipv6/ which enables building of an IPv6 version of BIRD, <tt/--with-protocols=/ to produce a slightly smaller BIRD executable by configuring out routing protocols you don't use, and <tt/--prefix=/ to install BIRD to a place different from. <file>/usr/local</file>. <sect>Running BIRD <p>You can pass several command-line options to bird: <descrip> <tag>-c <m/config name/</tag> use given configuration file instead of <it/prefix/<file>/etc/bird.conf</file>. <tag>-d</tag> enable debug messages and run bird in foreground. <tag>-D <m/filename of debug log/</tag> log debugging information to given file instead of stderr. <tag>-p</tag> just parse the config file and exit. Return value is zero if the config file is valid, nonzero if there are some errors. <tag>-s <m/name of communication socket/</tag> use given filename for a socket for communications with the client, default is <it/prefix/<file>/var/run/bird.ctl</file>. <tag>-P <m/name of PID file/</tag> create a PID file with given filename</file>. <tag>-u <m/user/</tag> drop privileges and use that user ID, see the next section for details. <tag>-g <m/group/</tag> use that group ID, see the next section for details. <tag>-f</tag> run bird in foreground. </descrip> <p>BIRD writes messages about its work to log files or syslog (according to config). <sect>Privileges <p>BIRD, as a routing daemon, uses several privileged operations (like setting routing table and using raw sockets). Traditionally, BIRD is executed and runs with root privileges, which may be prone to security problems. The recommended way is to use a privilege restriction (options <cf/-u/, <cf/-g/). In that case BIRD is executed with root privileges, but it changes its user and group ID to an unprivileged ones, while using Linux capabilities to retain just required privileges (capabilities CAP_NET_*). Note that the control socket is created before the privileges are dropped, but the config file is read after that. The privilege restriction is not implemented in BSD port of BIRD. <p>A nonprivileged user (as an argument to <cf/-u/ options) may be the user <cf/nobody/, but it is suggested to use a new dedicated user account (like <cf/bird/). The similar considerations apply for the group option, but there is one more condition -- the users in the same group can use <file/birdc/ to control BIRD. <p>Finally, there is a possibility to use external tools to run BIRD in an environment with restricted privileges. This may need some configuration, but it is generally easy -- BIRD needs just the standard library, privileges to read the config file and create the control socket and the CAP_NET_* capabilities. <chapt>About routing tables <p>BIRD has one or more routing tables which may or may not be synchronized with OS kernel and which may or may not be synchronized with each other (see the Pipe protocol). Each routing table contains a list of known routes. Each route consists of: <itemize> <item>network prefix this route is for (network address and prefix length -- the number of bits forming the network part of the address; also known as a netmask) <item>preference of this route <item>IP address of router which told us about this route <item>IP address of router we should forward the packets to using this route <item>other attributes common to all routes <item>dynamic attributes defined by protocols which may or may not be present (typically protocol metrics) </itemize> Routing table maintains multiple entries for a network, but at most one entry for one network and one protocol. The entry with the highest preference is used for routing (we will call such an entry the <it/selected route/). If there are more entries with the same preference and they are from the same protocol, the protocol decides (typically according to metrics). If they aren't, an internal ordering is used to break the tie. You can get the list of route attributes in the Route attributes section. <p>Each protocol is connected to a routing table through two filters which can accept, reject and modify the routes. An <it/export/ filter checks routes passed from the routing table to the protocol, an <it/import/ filter checks routes in the opposite direction. When the routing table gets a route from a protocol, it recalculates the selected route and broadcasts it to all protocols connected to the table. The protocols typically send the update to other routers in the network. Note that although most protocols are interested in receiving just selected routes, some protocols (e.g. the <cf/Pipe/ protocol) receive and process all entries in routing tables (accepted by filters). <p><label id="dsc-sorted">Usually, a routing table just chooses a selected route from a list of entries for one network. But if the <cf/sorted/ option is activated, these lists of entries are kept completely sorted (according to preference or some protocol-dependent metric). This is needed for some features of some protocols (e.g. <cf/secondary/ option of BGP protocol, which allows to accept not just a selected route, but the first route (in the sorted list) that is accepted by filters), but it is incompatible with some other features (e.g. <cf/deterministic med/ option of BGP protocol, which activates a way of choosing selected route that cannot be described using comparison and ordering). Minor advantage is that routes are shown sorted in <cf/show route/, minor disadvantage is that it is slightly more computationally expensive. <chapt>Configuration <sect>Introduction <p>BIRD is configured using a text configuration file. Upon startup, BIRD reads <it/prefix/<file>/etc/bird.conf</file> (unless the <tt/-c/ command line option is given). Configuration may be changed at user's request: if you modify the config file and then signal BIRD with <tt/SIGHUP/, it will adjust to the new config. Then there's the client which allows you to talk with BIRD in an extensive way. <p>In the config, everything on a line after <cf/#/ or inside <cf>/* */</cf> is a comment, whitespace characters are treated as a single space. If there's a variable number of options, they are grouped using the <cf/{ }/ brackets. Each option is terminated by a <cf/;/. Configuration is case sensitive. There are two ways how to name symbols (like protocol names, filter names, constats etc.). You can either use a simple string starting with a letter followed by any combination of letters and numbers (e.g. "R123", "myfilter", "bgp5") or you can enclose the name into apostrophes (<cf/'/) and than you can use any combination of numbers, letters. hyphens, dots and colons (e.g. "'1:strange-name'", "'-NAME-'", "'cool::name'"). <p>Here is an example of a simple config file. It enables synchronization of routing tables with OS kernel, scans for new network interfaces every 10 seconds and runs RIP on all network interfaces found. <code> protocol kernel { persist; # Don't remove routes on BIRD shutdown scan time 20; # Scan kernel routing table every 20 seconds export all; # Default is export none } protocol device { scan time 10; # Scan interfaces every 10 seconds } protocol rip { export all; import all; interface "*"; } </code> <sect>Global options <p><descrip> <tag>include "<m/filename/"</tag> This statement causes inclusion of a new file. The maximal depth is set to 5. <tag><label id="dsc-log">log "<m/filename/"|syslog [name <m/name/]|stderr all|{ <m/list of classes/ }</tag> Set logging of messages having the given class (either <cf/all/ or <cf/{ error, trace }/ etc.) into selected destination (a file specified as a filename string, syslog with optional name argument, or the stderr output). Classes are: <cf/info/, <cf/warning/, <cf/error/ and <cf/fatal/ for messages about local problems, <cf/debug/ for debugging messages, <cf/trace/ when you want to know what happens in the network, <cf/remote/ for messages about misbehavior of remote machines, <cf/auth/ about authentication failures, <cf/bug/ for internal BIRD bugs. You may specify more than one <cf/log/ line to establish logging to multiple destinations. Default: log everything to the system log. <tag>debug protocols all|off|{ states, routes, filters, interfaces, events, packets }</tag> Set global defaults of protocol debugging options. See <cf/debug/ in the following section. Default: off. <tag>debug commands <m/number/</tag> Control logging of client connections (0 for no logging, 1 for logging of connects and disconnects, 2 and higher for logging of all client commands). Default: 0. <tag>mrtdump "<m/filename/"</tag> Set MRTdump file name. This option must be specified to allow MRTdump feature. Default: no dump file. <tag>mrtdump protocols all|off|{ states, messages }</tag> Set global defaults of MRTdump options. See <cf/mrtdump/ in the following section. Default: off. <tag>filter <m/name local variables/{ <m/commands/ }</tag> Define a filter. You can learn more about filters in the following chapter. <tag>function <m/name/ (<m/parameters/) <m/local variables/ { <m/commands/ }</tag> Define a function. You can learn more about functions in the following chapter. <tag>protocol rip|ospf|bgp|... [<m/name/ [from <m/name2/]] { <m>protocol options</m> }</tag> Define a protocol instance called <cf><m/name/</cf> (or with a name like "rip5" generated automatically if you don't specify any <cf><m/name/</cf>). You can learn more about configuring protocols in their own chapters. When <cf>from <m/name2/</cf> expression is used, initial protocol options are taken from protocol or template <cf><m/name2/</cf> You can run more than one instance of most protocols (like RIP or BGP). By default, no instances are configured. <tag>template rip|bgp|... [<m/name/ [from <m/name2/]] { <m>protocol options</m> }</tag> Define a protocol template instance called <cf><m/name/</cf> (or with a name like "bgp1" generated automatically if you don't specify any <cf><m/name/</cf>). Protocol templates can be used to group common options when many similarly configured protocol instances are to be defined. Protocol instances (and other templates) can use templates by using <cf/from/ expression and the name of the template. At the moment templates (and <cf/from/ expression) are not implemented for OSPF protocol. <tag>define <m/constant/ = <m/expression/</tag> Define a constant. You can use it later in every place you could use a value of the same type. Besides, there are some predefined numeric constants based on /etc/iproute2/rt_* files. A list of defined constants can be seen (together with other symbols) using 'show symbols' command. <tag>router id <m/IPv4 address/</tag> Set BIRD's router ID. It's a world-wide unique identification of your router, usually one of router's IPv4 addresses. Default: in IPv4 version, the lowest IP address of a non-loopback interface. In IPv6 version, this option is mandatory. <tag>router id from [-] [ "<m/mask/" ] [ <m/prefix/ ] [, ...]</tag> Set BIRD's router ID based on an IP address of an interface specified by an interface pattern. The option is applicable for IPv4 version only. See <ref id="dsc-iface" name="interface"> section for detailed description of interface patterns. <tag>listen bgp [address <m/address/] [port <m/port/] [dual]</tag> This option allows to specify address and port where BGP protocol should listen. It is global option as listening socket is common to all BGP instances. Default is to listen on all addresses (0.0.0.0) and port 179. In IPv6 mode, option <cf/dual/ can be used to specify that BGP socket should accept both IPv4 and IPv6 connections (but even in that case, BIRD would accept IPv6 routes only). Such behavior was default in older versions of BIRD. <tag>timeformat route|protocol|base|log "<m/format1/" [<m/limit/ "<m/format2/"]</tag> This option allows to specify a format of date/time used by BIRD. The first argument specifies for which purpose such format is used. <cf/route/ is a format used in 'show route' command output, <cf/protocol/ is used in 'show protocols' command output, <cf/base/ is used for other commands and <cf/log/ is used in a log file. "<m/format1/" is a format string using <it/strftime(3)/ notation (see <it/man strftime/ for details). <m/limit> and "<m/format2/" allow to specify the second format string for times in past deeper than <m/limit/ seconds. There are few shorthands: <cf/iso long/ is a ISO 8601 date/time format (YYYY-MM-DD hh:mm:ss) that can be also specified using <cf/"%F %T"/. <cf/iso short/ is a variant of ISO 8601 that uses just the time format (hh:mm:ss) for near times (up to 20 hours in the past) and the date format (YYYY-MM-DD) for far times. This is a shorthand for <cf/"%T" 72000 "%F"/. By default, BIRD uses the <cf/iso short/ format for <cf/route/ and <cf/protocol/ times, and the <cf/iso long/ format for <cf/base/ and <cf/log/ times. In pre-1.4.0 versions, BIRD used an short, ad-hoc format for <cf/route/ and <cf/protocol/ times, and a <cf/iso long/ similar format (DD-MM-YYYY hh:mm:ss) for <cf/base/ and <cf/log/. These timeformats could be set by <cf/old short/ and <cf/old long/ compatibility shorthands. <tag>table <m/name/ [sorted]</tag> Create a new routing table. The default routing table is created implicitly, other routing tables have to be added by this command. Option <cf/sorted/ can be used to enable sorting of routes, see <ref id="dsc-sorted" name="sorted table"> description for details. <tag>roa table <m/name/ [ { roa table options ... } ]</tag> Create a new ROA (Route Origin Authorization) table. ROA tables can be used to validate route origination of BGP routes. A ROA table contains ROA entries, each consist of a network prefix, a max prefix length and an AS number. A ROA entry specifies prefixes which could be originated by that AS number. ROA tables could be filled with data from RPKI (RFC 6480) or from public databases like Whois. ROA tables are examined by <cf/roa_check()/ operator in filters. Currently, there is just one option, <cf>roa <m/prefix/ max <m/num/ as <m/num/</cf>, which can be used to populate the ROA table with static ROA entries. The option may be used multiple times. Other entries can be added dynamically by <cf/add roa/ command. <tag>eval <m/expr/</tag> Evaluates given filter expression. It is used by us for testing of filters. </descrip> <sect>Protocol options <p>For each protocol instance, you can configure a bunch of options. Some of them (those described in this section) are generic, some are specific to the protocol (see sections talking about the protocols). <p>Several options use a <cf><m/switch/</cf> argument. It can be either <cf/on/, <cf/yes/ or a numeric expression with a non-zero value for the option to be enabled or <cf/off/, <cf/no/ or a numeric expression evaluating to zero to disable it. An empty <cf><m/switch/</cf> is equivalent to <cf/on/ ("silence means agreement"). <descrip> <tag>preference <m/expr/</tag> Sets the preference of routes generated by this protocol. Default: protocol dependent. <tag>disabled <m/switch/</tag> Disables the protocol. You can change the disable/enable status from the command line interface without needing to touch the configuration. Disabled protocols are not activated. Default: protocol is enabled. <tag>debug all|off|{ states, routes, filters, interfaces, events, packets }</tag> Set protocol debugging options. If asked, each protocol is capable of writing trace messages about its work to the log (with category <cf/trace/). You can either request printing of <cf/all/ trace messages or only of the types selected: <cf/states/ for protocol state changes (protocol going up, down, starting, stopping etc.), <cf/routes/ for routes exchanged with the routing table, <cf/filters/ for details on route filtering, <cf/interfaces/ for interface change events sent to the protocol, <cf/events/ for events internal to the protocol and <cf/packets/ for packets sent and received by the protocol. Default: off. <tag>mrtdump all|off|{ states, messages }</tag> Set protocol MRTdump flags. MRTdump is a standard binary format for logging information from routing protocols and daemons. These flags control what kind of information is logged from the protocol to the MRTdump file (which must be specified by global <cf/mrtdump/ option, see the previous section). Although these flags are similar to flags of <cf/debug/ option, their meaning is different and protocol-specific. For BGP protocol, <cf/states/ logs BGP state changes and <cf/messages/ logs received BGP messages. Other protocols does not support MRTdump yet. <tag>router id <m/IPv4 address/</tag> This option can be used to override global router id for a given protocol. Default: uses global router id. <tag>import all | none | filter <m/name/ | filter { <m/filter commands/ } | where <m/filter expression/</tag> Specify a filter to be used for filtering routes coming from the protocol to the routing table. <cf/all/ is shorthand for <cf/where true/ and <cf/none/ is shorthand for <cf/where false/. Default: <cf/all/. <tag>export <m/filter/</tag> This is similar to the <cf>import</cf> keyword, except that it works in the direction from the routing table to the protocol. Default: <cf/none/. <tag>import keep filtered <m/switch/</tag> Usually, if an import filter rejects a route, the route is forgotten. When this option is active, these routes are kept in the routing table, but they are hidden and not propagated to other protocols. But it is possible to show them using <cf/show route filtered/. Note that this option does not work for the pipe protocol. Default: off. <tag><label id="import-limit">import limit [<m/number/ | off ] [action warn | block | restart | disable]</tag> Specify an import route limit (a maximum number of routes imported from the protocol) and optionally the action to be taken when the limit is hit. Warn action just prints warning log message. Block action discards new routes coming from the protocol. Restart and disable actions shut the protocol down like appropriate commands. Disable is the default action if an action is not explicitly specified. Note that limits are reset during protocol reconfigure, reload or restart. Default: <cf/off/. <tag>receive limit [<m/number/ | off ] [action warn | block | restart | disable]</tag> Specify an receive route limit (a maximum number of routes received from the protocol and remembered). It works almost identically to <cf>import limit</cf> option, the only difference is that if <cf/import keep filtered/ option is active, filtered routes are counted towards the limit and blocked routes are forgotten, as the main purpose of the receive limit is to protect routing tables from overflow. Import limit, on the contrary, counts accepted routes only and routes blocked by the limit are handled like filtered routes. Default: <cf/off/. <tag>export limit [ <m/number/ | off ] [action warn | block | restart | disable]</tag> Specify an export route limit, works similarly to the <cf>import limit</cf> option, but for the routes exported to the protocol. This option is experimental, there are some problems in details of its behavior -- the number of exported routes can temporarily exceed the limit without triggering it during protocol reload, exported routes counter ignores route blocking and block action also blocks route updates of already accepted routes -- and these details will probably change in the future. Default: <cf/off/. <tag>description "<m/text/"</tag> This is an optional description of the protocol. It is displayed as a part of the output of 'show route all' command. <tag>table <m/name/</tag> Connect this protocol to a non-default routing table. </descrip> <p>There are several options that give sense only with certain protocols: <descrip> <tag><label id="dsc-iface">interface [-] [ "<m/mask/" ] [ <m/prefix/ ] [, ...] [ { <m/option/ ; [...] } ]</tag> Specifies a set of interfaces on which the protocol is activated with given interface-specific options. A set of interfaces specified by one interface option is described using an interface pattern. The interface pattern consists of a sequence of clauses (separated by commas), each clause may contain a mask, a prefix, or both of them. An interface matches the clause if its name matches the mask (if specified) and its address matches the prefix (if specified). Mask is specified as shell-like pattern. For IPv6, the prefix part of a clause is generally ignored and interfaces are matched just by their name. An interface matches the pattern if it matches any of its clauses. If the clause begins with <cf/-/, matching interfaces are excluded. Patterns are parsed left-to-right, thus <cf/interface "eth0", -"eth*", "*";/ means eth0 and all non-ethernets. An interface option can be used more times with different interfaces-specific options, in that case for given interface the first matching interface option is used. This option is allowed in Direct, OSPF, RIP and RAdv protocols, but in OSPF protocol it is used in <cf/area/ subsection. Default: none. Examples: <cf>interface "*" { type broadcast; };</cf> - start the protocol on all interfaces with <cf>type broadcast</cf> option. <cf>interface "eth1", "eth4", "eth5" { type ptp; };</cf> - start the protocol on enumerated interfaces with <cf>type ptp</cf> option. <cf>interface -192.168.1.0/24, 192.168.0.0/16;</cf> - start the protocol on all interfaces that have address from 192.168.0.0/16, but not from 192.168.1.0/24. <cf>interface -192.168.1.0/24, 192.168.0.0/16;</cf> - start the protocol on all interfaces that have address from 192.168.0.0/16, but not from 192.168.1.0/24. <cf>interface "eth*" 192.168.1.0/24;</cf> - start the protocol on all ethernet interfaces that have address from 192.168.1.0/24. <tag><label id="dsc-prio">tx class|dscp <m/num/</tag> This option specifies the value of ToS/DS/Class field in IP headers of the outgoing protocol packets. This may affect how the protocol packets are processed by the network relative to the other network traffic. With <cf/class/ keyword, the value (0-255) is used for the whole ToS/Class octet (but two bits reserved for ECN are ignored). With <cf/dscp/ keyword, the value (0-63) is used just for the DS field in the octet. Default value is 0xc0 (DSCP 0x30 - CS6). <tag>tx priority <m/num/</tag> This option specifies the local packet priority. This may affect how the protocol packets are processed in the local TX queues. This option is Linux specific. Default value is 7 (highest priority, privileged traffic). <tag><label id="dsc-pass">password "<m/password/" [ { id <m/num/; generate from <m/time/; generate to <m/time/; accept from <m/time/; accept to <m/time/; } ]</tag> Specifies a password that can be used by the protocol. Password option can be used more times to specify more passwords. If more passwords are specified, it is a protocol-dependent decision which one is really used. Specifying passwords does not mean that authentication is enabled, authentication can be enabled by separate, protocol-dependent <cf/authentication/ option. This option is allowed in OSPF and RIP protocols. BGP has also <cf/password/ option, but it is slightly different and described separately. Default: none. </descrip> <p>Password option can contain section with some (not necessary all) password sub-options: <descrip> <tag>id <M>num</M></tag> ID of the password, (0-255). If it's not used, BIRD will choose ID based on an order of the password item in the interface. For example, second password item in one interface will have default ID 2. ID is used by some routing protocols to identify which password was used to authenticate protocol packets. <tag>generate from "<m/time/"</tag> The start time of the usage of the password for packet signing. The format of <cf><m/time/</cf> is <tt>dd-mm-yyyy HH:MM:SS</tt>. <tag>generate to "<m/time/"</tag> The last time of the usage of the password for packet signing. <tag>accept from "<m/time/"</tag> The start time of the usage of the password for packet verification. <tag>accept to "<m/time/"</tag> The last time of the usage of the password for packet verification. </descrip> <chapt>Remote control <p>You can use the command-line client <file>birdc</file> to talk with a running BIRD. Communication is done using a <file/bird.ctl/ UNIX domain socket (unless changed with the <tt/-s/ option given to both the server and the client). The commands can perform simple actions such as enabling/disabling of protocols, telling BIRD to show various information, telling it to show routing table filtered by filter, or asking BIRD to reconfigure. Press <tt/?/ at any time to get online help. Option <tt/-r/ can be used to enable a restricted mode of BIRD client, which allows just read-only commands (<cf/show .../). Option <tt/-v/ can be passed to the client, to make it dump numeric return codes along with the messages. You do not necessarily need to use <file/birdc/ to talk to BIRD, your own applications could do that, too -- the format of communication between BIRD and <file/birdc/ is stable (see the programmer's documentation). <p>There is also lightweight variant of BIRD client called <file/birdcl/, which does not support command line editing and history and has minimal dependencies. This is useful for running BIRD in resource constrained environments, where Readline library (required for regular BIRD client) is not available. <p>Many commands have the <m/name/ of the protocol instance as an argument. This argument can be omitted if there exists only a single instance. <p>Here is a brief list of supported functions: <descrip> <tag>show status</tag> Show router status, that is BIRD version, uptime and time from last reconfiguration. <tag>show protocols [all]</tag> Show list of protocol instances along with tables they are connected to and protocol status, possibly giving verbose information, if <cf/all/ is specified. <tag>show ospf interface [<m/name/] ["<m/interface/"]</tag> Show detailed information about OSPF interfaces. <tag>show ospf neighbors [<m/name/] ["<m/interface/"]</tag> Show a list of OSPF neighbors and a state of adjacency to them. <tag>show ospf state [all] [<m/name/]</tag> Show detailed information about OSPF areas based on a content of the link-state database. It shows network topology, stub networks, aggregated networks and routers from other areas and external routes. The command shows information about reachable network nodes, use option <cf/all/ to show information about all network nodes in the link-state database. <tag>show ospf topology [all] [<m/name/]</tag> Show a topology of OSPF areas based on a content of the link-state database. It is just a stripped-down version of 'show ospf state'. <tag>show ospf lsadb [global | area <m/id/ | link] [type <m/num/] [lsid <m/id/] [self | router <m/id/] [<m/name/] </tag> Show contents of an OSPF LSA database. Options could be used to filter entries. <tag>show static [<m/name/]</tag> Show detailed information about static routes. <tag>show interfaces [summary]</tag> Show the list of interfaces. For each interface, print its type, state, MTU and addresses assigned. <tag>show symbols [table|filter|function|protocol|template|roa|<m/symbol/]</tag> Show the list of symbols defined in the configuration (names of protocols, routing tables etc.). <tag>show route [[for] <m/prefix/|<m/IP/] [table <m/sym/] [filter <m/f/|where <m/c/] [(export|preexport) <m/p/] [protocol <m/p/] [<m/options/]</tag> Show contents of a routing table (by default of the main one or the table attached to a respective protocol), that is routes, their metrics and (in case the <cf/all/ switch is given) all their attributes. <p>You can specify a <m/prefix/ if you want to print routes for a specific network. If you use <cf>for <m/prefix or IP/</cf>, you'll get the entry which will be used for forwarding of packets to the given destination. By default, all routes for each network are printed with the selected one at the top, unless <cf/primary/ is given in which case only the selected route is shown. <p>You can also ask for printing only routes processed and accepted by a given filter (<cf>filter <m/name/</cf> or <cf>filter { <m/filter/ } </cf> or matching a given condition (<cf>where <m/condition/</cf>). The <cf/export/ and <cf/preexport/ switches ask for printing of entries that are exported to the specified protocol. With <cf/preexport/, the export filter of the protocol is skipped. <p>You can also select just routes added by a specific protocol. <cf>protocol <m/p/</cf>. <p>If BIRD is configured to keep filtered routes (see <cf/import keep filtered/ option), you can show them instead of routes by using <cf/filtered/ switch. <p>The <cf/stats/ switch requests showing of route statistics (the number of networks, number of routes before and after filtering). If you use <cf/count/ instead, only the statistics will be printed. <tag>show roa [<m/prefix/ | in <m/prefix/ | for <m/prefix/] [as <m/num/] [table <m/t/>]</tag> Show contents of a ROA table (by default of the first one). You can specify a <m/prefix/ to print ROA entries for a specific network. If you use <cf>for <m/prefix/</cf>, you'll get all entries relevant for route validation of the network prefix; i.e., ROA entries whose prefixes cover the network prefix. Or you can use <cf>in <m/prefix/</cf> to get ROA entries covered by the network prefix. You could also use <cf/as/ option to show just entries for given AS. <tag>add roa <m/prefix/ max <m/num/] as <m/num/ [table <m/t/>]</tag> Add a new ROA entry to a ROA table. Such entry is called <it/dynamic/ compared to <it/static/ entries specified in the config file. These dynamic entries survive reconfiguration. <tag>delete roa <m/prefix/ max <m/num/] as <m/num/ [table <m/t/>]</tag> Delete the specified ROA entry from a ROA table. Only dynamic ROA entries (i.e., the ones added by <cf/add roa/ command) can be deleted. <tag>flush roa [table <m/t/>]</tag> Remove all dynamic ROA entries from a ROA table. <tag>configure [soft] ["<m/config file/"] [timeout [<m/num/]]</tag> Reload configuration from a given file. BIRD will smoothly switch itself to the new configuration, protocols are reconfigured if possible, restarted otherwise. Changes in filters usually lead to restart of affected protocols. If <cf/soft/ option is used, changes in filters does not cause BIRD to restart affected protocols, therefore already accepted routes (according to old filters) would be still propagated, but new routes would be processed according to the new filters. If <cf/timeout/ option is used, config timer is activated. The new configuration could be either confirmed using <cf/configure confirm/ command, or it will be reverted to the old one when the config timer expires. This is useful for cases when reconfiguration breaks current routing and a router becames inaccessible for an administrator. The config timeout expiration is equivalent to <cf/configure undo/ command. The timeout duration could be specified, default is 300 s. <tag>configure confirm</tag> Deactivate the config undo timer and therefore confirm the current configuration. <tag>configure undo</tag> Undo the last configuration change and smoothly switch back to the previous (stored) configuration. If the last configuration change was soft, the undo change is also soft. There is only one level of undo, but in some specific cases when several reconfiguration requests are given immediately in a row and the intermediate ones are skipped then the undo also skips them back. <tag>configure check ["<m/config file/"]</tag> Read and parse given config file, but do not use it. useful for checking syntactic and some semantic validity of an config file. <tag>enable|disable|restart <m/name/|"<m/pattern/"|all</tag> Enable, disable or restart a given protocol instance, instances matching the <cf><m/pattern/</cf> or <cf/all/ instances. <tag>reload [in|out] <m/name/|"<m/pattern/"|all</tag> Reload a given protocol instance, that means re-import routes from the protocol instance and re-export preferred routes to the instance. If <cf/in/ or <cf/out/ options are used, the command is restricted to one direction (re-import or re-export). This command is useful if appropriate filters have changed but the protocol instance was not restarted (or reloaded), therefore it still propagates the old set of routes. For example when <cf/configure soft/ command was used to change filters. Re-export always succeeds, but re-import is protocol-dependent and might fail (for example, if BGP neighbor does not support route-refresh extension). In that case, re-export is also skipped. Note that for the pipe protocol, both directions are always reloaded together (<cf/in/ or <cf/out/ options are ignored in that case). <tag/down/ Shut BIRD down. <tag>debug <m/protocol/|<m/pattern/|all all|off|{ states | routes | filters | events | packets }</tag> Control protocol debugging. <tag>dump resources|sockets|interfaces|neighbors|attributes|routes|protocols</tag> Dump contents of internal data structures to the debugging output. <tag>echo all|off|{ <m/list of log classes/ } [ <m/buffer-size/ ]</tag> Control echoing of log messages to the command-line output. See <ref id="dsc-log" name="log option"> for a list of log classes. <tag>eval <m/expr/</tag> Evaluate given expression. </descrip> <chapt>Filters <sect>Introduction <p>BIRD contains a simple programming language. (No, it can't yet read mail :-). There are two objects in this language: filters and functions. Filters are interpreted by BIRD core when a route is being passed between protocols and routing tables. The filter language contains control structures such as if's and switches, but it allows no loops. An example of a filter using many features can be found in <file>filter/test.conf</file>. <p>Filter gets the route, looks at its attributes and modifies some of them if it wishes. At the end, it decides whether to pass the changed route through (using <cf/accept/) or whether to <cf/reject/ it. A simple filter looks like this: <code> filter not_too_far int var; { if defined( rip_metric ) then var = rip_metric; else { var = 1; rip_metric = 1; } if rip_metric > 10 then reject "RIP metric is too big"; else accept "ok"; } </code> <p>As you can see, a filter has a header, a list of local variables, and a body. The header consists of the <cf/filter/ keyword followed by a (unique) name of filter. The list of local variables consists of <cf><M>type name</M>;</cf> pairs where each pair defines one local variable. The body consists of <cf> { <M>statements</M> }</cf>. Each <m/statement/ is terminated by a <cf/;/. You can group several statements to a single compound statement by using braces (<cf>{ <M>statements</M> }</cf>) which is useful if you want to make a bigger block of code conditional. <p>BIRD supports functions, so that you don't have to repeat the same blocks of code over and over. Functions can have zero or more parameters and they can have local variables. Recursion is not allowed. Function definitions look like this: <code> function name () int local_variable; { local_variable = 5; } function with_parameters (int parameter) { print parameter; } </code> <p>Unlike in C, variables are declared after the <cf/function/ line, but before the first <cf/{/. You can't declare variables in nested blocks. Functions are called like in C: <cf>name(); with_parameters(5);</cf>. Function may return values using the <cf>return <m/[expr]/</cf> command. Returning a value exits from current function (this is similar to C). <p>Filters are declared in a way similar to functions except they can't have explicit parameters. They get a route table entry as an implicit parameter, it is also passed automatically to any functions called. The filter must terminate with either <cf/accept/ or <cf/reject/ statement. If there's a runtime error in filter, the route is rejected. <p>A nice trick to debug filters is to use <cf>show route filter <m/name/</cf> from the command line client. An example session might look like: <code> pavel@bug:~/bird$ ./birdc -s bird.ctl BIRD 0.0.0 ready. bird> show route 10.0.0.0/8 dev eth0 [direct1 23:21] (240) 195.113.30.2/32 dev tunl1 [direct1 23:21] (240) 127.0.0.0/8 dev lo [direct1 23:21] (240) bird> show route ? show route [<prefix>] [table <t>] [filter <f>] [all] [primary]... bird> show route filter { if 127.0.0.5 ˜ net then accept; } 127.0.0.0/8 dev lo [direct1 23:21] (240) bird> </code> <sect>Data types <p>Each variable and each value has certain type. Booleans, integers and enums are incompatible with each other (that is to prevent you from shooting in the foot). <descrip> <tag/bool/ This is a boolean type, it can have only two values, <cf/true/ and <cf/false/. Boolean is the only type you can use in <cf/if/ statements. <tag/int/ This is a general integer type. It is an unsigned 32bit type; i.e., you can expect it to store values from 0 to 4294967295. Overflows are not checked. You can use <cf/0x1234/ syntax to write hexadecimal values. <tag/pair/ This is a pair of two short integers. Each component can have values from 0 to 65535. Literals of this type are written as <cf/(1234,5678)/. The same syntax can also be used to construct a pair from two arbitrary integer expressions (for example <cf/(1+2,a)/). <tag/quad/ This is a dotted quad of numbers used to represent router IDs (and others). Each component can have a value from 0 to 255. Literals of this type are written like IPv4 addresses. <tag/string/ This is a string of characters. There are no ways to modify strings in filters. You can pass them between functions, assign them to variables of type <cf/string/, print such variables, use standard string comparison operations (e.g. <cf/=, !=, <, >, <=, >=/), but you can't concatenate two strings. String literals are written as <cf/"This is a string constant"/. Additionaly matching <cf/˜/ operator could be used to match a string value against a shell pattern (represented also as a string). <tag/ip/ This type can hold a single IP address. Depending on the compile-time configuration of BIRD you are using, it is either an IPv4 or IPv6 address. IP addresses are written in the standard notation (<cf/10.20.30.40/ or <cf/fec0:3:4::1/). You can apply special operator <cf>.mask(<M>num</M>)</cf> on values of type ip. It masks out all but first <cf><M>num</M></cf> bits from the IP address. So <cf/1.2.3.4.mask(8) = 1.0.0.0/ is true. <tag/prefix/ This type can hold a network prefix consisting of IP address and prefix length. Prefix literals are written as <cf><M>ipaddress</M>/<M>pxlen</M></cf>, or <cf><m>ipaddress</m>/<m>netmask</m></cf>. There are two special operators on prefixes: <cf/.ip/ which extracts the IP address from the pair, and <cf/.len/, which separates prefix length from the pair. So <cf>1.2.0.0/16.pxlen = 16</cf> is true. <tag/ec/ This is a specialized type used to represent BGP extended community values. It is essentially a 64bit value, literals of this type are usually written as <cf>(<m/kind/, <m/key/, <m/value/)</cf>, where <cf/kind/ is a kind of extended community (e.g. <cf/rt/ / <cf/ro/ for a route target / route origin communities), the format and possible values of <cf/key/ and <cf/value/ are usually integers, but it depends on the used kind. Similarly to pairs, ECs can be constructed using expressions for <cf/key/ and <cf/value/ parts, (e.g. <cf/(ro, myas, 3*10)/, where <cf/myas/ is an integer variable). <tag/int|pair|quad|ip|prefix|ec|enum set/ Filters recognize four types of sets. Sets are similar to strings: you can pass them around but you can't modify them. Literals of type <cf>int set</cf> look like <cf> [ 1, 2, 5..7 ]</cf>. As you can see, both simple values and ranges are permitted in sets. For pair sets, expressions like <cf/(123,*)/ can be used to denote ranges (in that case <cf/(123,0)..(123,65535)/). You can also use <cf/(123,5..100)/ for range <cf/(123,5)..(123,100)/. You can also use <cf/*/ and <cf/a..b/ expressions in the first part of a pair, note that such expressions are translated to a set of intervals, which may be memory intensive. E.g. <cf/(*,4..20)/ is translated to <cf/(0,4..20), (1,4..20), (2,4..20), ... (65535, 4..20)/. EC sets use similar expressions like pair sets, e.g. <cf/(rt, 123, 10..20)/ or <cf/(ro, 123, *)/. Expressions requiring the translation (like <cf/(rt, *, 3)/) are not allowed (as they usually have 4B range for ASNs). You can also use expressions for int, pair and EC set values. However it must be possible to evaluate these expressions before daemon boots. So you can use only constants inside them. E.g. <code> define one=1; define myas=64500; int set odds; pair set ps; ec set es; odds = [ one, 2+1, 6-one, 2*2*2-1, 9, 11 ]; ps = [ (1,one+one), (3,4)..(4,8), (5,*), (6,3..6), (7..9,*) ]; es = [ (rt, myas, 3*10), (rt, myas+one, 0..16*16*16-1), (ro, myas+2, *) ]; </code> Sets of prefixes are special: their literals does not allow ranges, but allows prefix patterns that are written as <cf><M>ipaddress</M>/<M>pxlen</M>{<M>low</M>,<M>high</M>}</cf>. Prefix <cf><m>ip1</m>/<m>len1</m></cf> matches prefix pattern <cf><m>ip2</m>/<m>len2</m>{<m>l</m>,<m>h</m>}</cf> if the first <cf>min(len1, len2)</cf> bits of <cf/ip1/ and <cf/ip2/ are identical and <cf>len1 <= ip1 <= len2</cf>. A valid prefix pattern has to satisfy <cf>low <= high</cf>, but <cf/pxlen/ is not constrained by <cf/low/ or <cf/high/. Obviously, a prefix matches a prefix set literal if it matches any prefix pattern in the prefix set literal. There are also two shorthands for prefix patterns: <cf><m>address</m>/<m/len/+</cf> is a shorthand for <cf><m>address</m>/<m/len/{<m/len/,<m/maxlen/}</cf> (where <cf><m>maxlen</m></cf> is 32 for IPv4 and 128 for IPv6), that means network prefix <cf><m>address</m>/<m/len/</cf> and all its subnets. <cf><m>address</m>/<m/len/-</cf> is a shorthand for <cf><m>address</m>/<m/len/{0,<m/len/}</cf>, that means network prefix <cf><m>address</m>/<m/len/</cf> and all its supernets (network prefixes that contain it). For example, <cf>[ 1.0.0.0/8, 2.0.0.0/8+, 3.0.0.0/8-, 4.0.0.0/8{16,24} ]</cf> matches prefix <cf>1.0.0.0/8</cf>, all subprefixes of <cf>2.0.0.0/8</cf>, all superprefixes of <cf>3.0.0.0/8</cf> and prefixes <cf/4.X.X.X/ whose prefix length is 16 to 24. <cf>[ 0.0.0.0/0{20,24} ]</cf> matches all prefixes (regardless of IP address) whose prefix length is 20 to 24, <cf>[ 1.2.3.4/32- ]</cf> matches any prefix that contains IP address <cf>1.2.3.4</cf>. <cf>1.2.0.0/16 ˜ [ 1.0.0.0/8{15,17} ]</cf> is true, but <cf>1.0.0.0/16 ˜ [ 1.0.0.0/8- ]</cf> is false. Cisco-style patterns like <cf>10.0.0.0/8 ge 16 le 24</cf> can be expressed in BIRD as <cf>10.0.0.0/8{16,24}</cf>, <cf>192.168.0.0/16 le 24</cf> as <cf>192.168.0.0/16{16,24}</cf> and <cf>192.168.0.0/16 ge 24</cf> as <cf>192.168.0.0/16{24,32}</cf>. <tag/enum/ Enumeration types are fixed sets of possibilities. You can't define your own variables of such type, but some route attributes are of enumeration type. Enumeration types are incompatible with each other. <tag/bgppath/ BGP path is a list of autonomous system numbers. You can't write literals of this type. There are several special operators on bgppaths: <cf><m/P/.first</cf> returns the first ASN (the neighbor ASN) in path <m/P/. <cf><m/P/.last</cf> returns the last ASN (the source ASN) in path <m/P/. Both <cf/first/ and <cf/last/ return zero if there is no appropriate ASN, for example if the path contains an AS set element as the first (or the last) part. <cf><m/P/.len</cf> returns the length of path <m/P/. <cf>prepend(<m/P/,<m/A/)</cf> prepends ASN <m/A/ to path <m/P/ and returns the result. <cf>delete(<m/P/,<m/A/)</cf> deletes all instances of ASN <m/A/ from from path <m/P/ and returns the result. <m/A/ may also be an integer set, in that case the operator deletes all ASNs from path <m/P/ that are also members of set <m/A/. <cf>filter(<m/P/,<m/A/)</cf> deletes all ASNs from path <m/P/ that are not members of integer set <m/A/. I.e., <cf/filter/ do the same as <cf/delete/ with inverted set <m/A/. Statement <cf><m/P/ = prepend(<m/P/, <m/A/);</cf> can be shortened to <cf><m/P/.prepend(<m/A/);</cf> if <m/P/ is appropriate route attribute (for example <cf/bgp_path/). Similarly for <cf/delete/ and <cf/filter/. <tag/bgpmask/ BGP masks are patterns used for BGP path matching (using <cf>path ˜ [= 2 3 5 * =]</cf> syntax). The masks resemble wildcard patterns as used by UNIX shells. Autonomous system numbers match themselves, <cf/*/ matches any (even empty) sequence of arbitrary AS numbers and <cf/?/ matches one arbitrary AS number. For example, if <cf>bgp_path</cf> is 4 3 2 1, then: <tt>bgp_path ˜ [= * 4 3 * =]</tt> is true, but <tt>bgp_path ˜ [= * 4 5 * =]</tt> is false. BGP mask expressions can also contain integer expressions enclosed in parenthesis and integer variables, for example <tt>[= * 4 (1+2) a =]</tt>. There is also old syntax that uses / .. / instead of [= .. =] and ? instead of *. <tag/clist/ Clist is similar to a set, except that unlike other sets, it can be modified. The type is used for community list (a set of pairs) and for cluster list (a set of quads). There exist no literals of this type. There are three special operators on clists: <cf><m/C/.len</cf> returns the length of clist <m/C/. <cf>add(<m/C/,<m/P/)</cf> adds pair (or quad) <m/P/ to clist <m/C/ and returns the result. If item <m/P/ is already in clist <m/C/, it does nothing. <m/P/ may also be a clist, in that case all its members are added; i.e., it works as clist union. <cf>delete(<m/C/,<m/P/)</cf> deletes pair (or quad) <m/P/ from clist <m/C/ and returns the result. If clist <m/C/ does not contain item <m/P/, it does nothing. <m/P/ may also be a pair (or quad) set, in that case the operator deletes all items from clist <m/C/ that are also members of set <m/P/. Moreover, <m/P/ may also be a clist, which works analogously; i.e., it works as clist difference. <cf>filter(<m/C/,<m/P/)</cf> deletes all items from clist <m/C/ that are not members of pair (or quad) set <m/P/. I.e., <cf/filter/ do the same as <cf/delete/ with inverted set <m/P/. <m/P/ may also be a clist, which works analogously; i.e., it works as clist intersection. Statement <cf><m/C/ = add(<m/C/, <m/P/);</cf> can be shortened to <cf><m/C/.add(<m/P/);</cf> if <m/C/ is appropriate route attribute (for example <cf/bgp_community/). Similarly for <cf/delete/ and <cf/filter/. <tag/eclist/ Eclist is a data type used for BGP extended community lists. Eclists are very similar to clists, but they are sets of ECs instead of pairs. The same operations (like <cf/add/, <cf/delete/, or <cf/˜/ membership operator) can be used to modify or test eclists, with ECs instead of pairs as arguments. </descrip> <sect>Operators <p>The filter language supports common integer operators <cf>(+,-,*,/)</cf>, parentheses <cf/(a*(b+c))/, comparison <cf/(a=b, a!=b, a<b, a>=b)/. Logical operations include unary not (<cf/!/), and (<cf/&&/) and or (<cf/||/). Special operators include <cf/˜/ for "is element of a set" operation - it can be used on element and set of elements of the same type (returning true if element is contained in the given set), or on two strings (returning true if first string matches a shell-like pattern stored in second string) or on IP and prefix (returning true if IP is within the range defined by that prefix), or on prefix and prefix (returning true if first prefix is more specific than second one) or on bgppath and bgpmask (returning true if the path matches the mask) or on number and bgppath (returning true if the number is in the path) or on bgppath and int (number) set (returning true if any ASN from the path is in the set) or on pair/quad and clist (returning true if the pair/quad is element of the clist) or on clist and pair/quad set (returning true if there is an element of the clist that is also a member of the pair/quad set). <p>There is one operator related to ROA infrastructure - <cf/roa_check()/. It examines a ROA table and does RFC 6483 route origin validation for a given network prefix. The basic usage is <cf>roa_check(<m/table/)</cf>, which checks current route (which should be from BGP to have AS_PATH argument) in the specified ROA table and returns ROA_UNKNOWN if there is no relevant ROA, ROA_VALID if there is a matching ROA, or ROA_INVALID if there are some relevant ROAs but none of them match. There is also an extended variant <cf>roa_check(<m/table/, <m/prefix/, <m/asn/)</cf>, which allows to specify a prefix and an ASN as arguments. <sect>Control structures <p>Filters support two control structures: conditions and case switches. <p>Syntax of a condition is: <cf>if <M>boolean expression</M> then <M>command1</M>; else <M>command2</M>;</cf> and you can use <cf>{ <M>command_1</M>; <M>command_2</M>; <M>...</M> }</cf> instead of either command. The <cf>else</cf> clause may be omitted. If the <cf><m>boolean expression</m></cf> is true, <cf><m>command1</m></cf> is executed, otherwise <cf><m>command2</m></cf> is executed. <p>The <cf>case</cf> is similar to case from Pascal. Syntax is <cf>case <m/expr/ { else: | <m/num_or_prefix [ .. num_or_prefix]/: <m/statement/ ; [ ... ] }</cf>. The expression after <cf>case</cf> can be of any type which can be on the left side of the ˜ operator and anything that could be a member of a set is allowed before <cf/:/. Multiple commands are allowed without <cf/{}/ grouping. If <cf><m/expr/</cf> matches one of the <cf/:/ clauses, statements between it and next <cf/:/ statement are executed. If <cf><m/expr/</cf> matches neither of the <cf/:/ clauses, the statements after <cf/else:/ are executed. <p>Here is example that uses <cf/if/ and <cf/case/ structures: <code> case arg1 { 2: print "two"; print "I can do more commands without {}"; 3 .. 5: print "three to five"; else: print "something else"; } if 1234 = i then printn "."; else { print "not 1234"; print "You need {} around multiple commands"; } </code> <sect>Route attributes <p>A filter is implicitly passed a route, and it can access its attributes just like it accesses variables. Attempts to access undefined attribute result in a runtime error; you can check if an attribute is defined by using the <cf>defined( <m>attribute</m> )</cf> operator. One notable exception to this rule are attributes of clist type, where undefined value is regarded as empty clist for most purposes. <descrip> <tag><m/prefix/ net</tag> Network the route is talking about. Read-only. (See the chapter about routing tables.) <tag><m/enum/ scope</tag> The scope of the route. Possible values: <cf/SCOPE_HOST/ for routes local to this host, <cf/SCOPE_LINK/ for those specific for a physical link, <cf/SCOPE_SITE/ and <cf/SCOPE_ORGANIZATION/ for private routes and <cf/SCOPE_UNIVERSE/ for globally visible routes. This attribute is not interpreted by BIRD and can be used to mark routes in filters. The default value for new routes is <cf/SCOPE_UNIVERSE/. <tag><m/int/ preference</tag> Preference of the route. Valid values are 0-65535. (See the chapter about routing tables.) <tag><m/ip/ from</tag> The router which the route has originated from. <tag><m/ip/ gw</tag> Next hop packets routed using this route should be forwarded to. <tag><m/string/ proto</tag> The name of the protocol which the route has been imported from. Read-only. <tag><m/enum/ source</tag> what protocol has told me about this route. Possible values: <cf/RTS_DUMMY/, <cf/RTS_STATIC/, <cf/RTS_INHERIT/, <cf/RTS_DEVICE/, <cf/RTS_STATIC_DEVICE/, <cf/RTS_REDIRECT/, <cf/RTS_RIP/, <cf/RTS_OSPF/, <cf/RTS_OSPF_IA/, <cf/RTS_OSPF_EXT1/, <cf/RTS_OSPF_EXT2/, <cf/RTS_BGP/, <cf/RTS_PIPE/. <tag><m/enum/ cast</tag> Route type (Currently <cf/RTC_UNICAST/ for normal routes, <cf/RTC_BROADCAST/, <cf/RTC_MULTICAST/, <cf/RTC_ANYCAST/ will be used in the future for broadcast, multicast and anycast routes). Read-only. <tag><m/enum/ dest</tag> Type of destination the packets should be sent to (<cf/RTD_ROUTER/ for forwarding to a neighboring router, <cf/RTD_DEVICE/ for routing to a directly-connected network, <cf/RTD_MULTIPATH/ for multipath destinations, <cf/RTD_BLACKHOLE/ for packets to be silently discarded, <cf/RTD_UNREACHABLE/, <cf/RTD_PROHIBIT/ for packets that should be returned with ICMP host unreachable / ICMP administratively prohibited messages). Can be changed, but only to <cf/RTD_BLACKHOLE/, <cf/RTD_UNREACHABLE/ or <cf/RTD_PROHIBIT/. <tag><m/string/ ifname</tag> Name of the outgoing interface. Sink routes (like blackhole, unreachable or prohibit) and multipath routes have no interface associated with them, so <cf/ifname/ returns an empty string for such routes. Read-only. <tag><m/int/ ifindex</tag> Index of the outgoing interface. System wide index of the interface. May be used for interface matching, however indexes might change on interface creation/removal. Zero is returned for routes with undefined outgoing interfaces. Read-only. <tag><m/int/ igp_metric</tag> The optional attribute that can be used to specify a distance to the network for routes that do not have a native protocol metric attribute (like <cf/ospf_metric1/ for OSPF routes). It is used mainly by BGP to compare internal distances to boundary routers (see below). It is also used when the route is exported to OSPF as a default value for OSPF type 1 metric. </descrip> <p>There also exist some protocol-specific attributes which are described in the corresponding protocol sections. <sect>Other statements <p>The following statements are available: <descrip> <tag><m/variable/ = <m/expr/</tag> Set variable to a given value. <tag>accept|reject [ <m/expr/ ]</tag> Accept or reject the route, possibly printing <cf><m>expr</m></cf>. <tag>return <m/expr/</tag> Return <cf><m>expr</m></cf> from the current function, the function ends at this point. <tag>print|printn <m/expr/ [<m/, expr.../]</tag> Prints given expressions; useful mainly while debugging filters. The <cf/printn/ variant does not terminate the line. <tag>quitbird</tag> Terminates BIRD. Useful when debugging the filter interpreter. </descrip> <chapt>Protocols <sect><label id="sect-bfd">BFD <sect1>Introduction <p>Bidirectional Forwarding Detection (BFD) is not a routing protocol itself, it is an independent tool providing liveness and failure detection. Routing protocols like OSPF and BGP use integrated periodic "hello" messages to monitor liveness of neighbors, but detection times of these mechanisms are high (e.g. 40 seconds by default in OSPF, could be set down to several seconds). BFD offers universal, fast and low-overhead mechanism for failure detection, which could be attached to any routing protocol in an advisory role. <p>BFD consists of mostly independent BFD sessions. Each session monitors an unicast bidirectional path between two BFD-enabled routers. This is done by periodically sending control packets in both directions. BFD does not handle neighbor discovery, BFD sessions are created on demand by request of other protocols (like OSPF or BGP), which supply appropriate information like IP addresses and associated interfaces. When a session changes its state, these protocols are notified and act accordingly (e.g. break an OSPF adjacency when the BFD session went down). <p>BIRD implements basic BFD behavior as defined in RFC 5880<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc5880.txt"> (some advanced features like the echo mode or authentication are not implemented), IP transport for BFD as defined in RFC 5881<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc5881.txt"> and RFC 5883<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc5883.txt"> and interaction with client protocols as defined in RFC 5882<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc5882.txt">. <p>Note that BFD implementation in BIRD is currently a new feature in development, expect some rough edges and possible UI and configuration changes in the future. Also note that we currently support at most one protocol instance. <sect1>Configuration <p>BFD configuration consists mainly of multiple definitions of interfaces. Most BFD config options are session specific. When a new session is requested and dynamically created, it is configured from one of these definitions. For sessions to directly connected neighbors, <cf/interface/ definitions are chosen based on the interface associated with the session, while <cf/multihop/ definition is used for multihop sessions. If no definition is relevant, the session is just created with the default configuration. Therefore, an empty BFD configuration is often sufficient. <p>Note that to use BFD for other protocols like OSPF or BGP, these protocols also have to be configured to request BFD sessions, usually by <cf/bfd/ option. <p>Some of BFD session options require <m/time/ value, which has to be specified with the appropriate unit: <m/num/ <cf/s/|<cf/ms/|<cf/us/. Although microseconds are allowed as units, practical minimum values are usually in order of tens of milliseconds. <code> protocol bfd [<name>] { interface <interface pattern> { interval <time>; min rx interval <time>; min tx interval <time>; idle tx interval <time>; multiplier <num>; passive <switch>; }; multihop { interval <time>; min rx interval <time>; min tx interval <time>; idle tx interval <time>; multiplier <num>; passive <switch>; }; neighbor <ip> [dev "<interface>"] [local <ip>] [multihop <switch>]; } </code> <descrip> <tag>interface <m/pattern [, ...]/ { <m/options/ }</tag> Interface definitions allow to specify options for sessions associated with such interfaces and also may contain interface specific options. See <ref id="dsc-iface" name="interface"> common option for a detailed description of interface patterns. Note that contrary to the behavior of <cf/interface/ definitions of other protocols, BFD protocol would accept sessions (in default configuration) even on interfaces not covered by such definitions. <tag>multihop { <m/options/ }</tag> Multihop definitions allow to specify options for multihop BFD sessions, in the same manner as <cf/interface/ definitions are used for directly connected sessions. Currently only one such definition (for all multihop sessions) could be used. <tag>neighbor <m/ip/ [dev "<m/interface/"] [local <m/ip/] [multihop <m/switch/]</tag> BFD sessions are usually created on demand as requested by other protocols (like OSPF or BGP). This option allows to explicitly add a BFD session to the specified neighbor regardless of such requests. The session is identified by the IP address of the neighbor, with optional specification of used interface and local IP. By default the neighbor must be directly connected, unless the the session is configured as multihop. Note that local IP must be specified for multihop sessions. </descrip> <p>Session specific options (part of <cf/interface/ and <cf/multihop/ definitions): <descrip> <tag>interval <m/time/</tag> BFD ensures availability of the forwarding path associated with the session by periodically sending BFD control packets in both directions. The rate of such packets is controlled by two options, <cf/min rx interval/ and <cf/min tx interval/ (see below). This option is just a shorthand to set both of these options together. <tag>min rx interval <m/time/</tag> This option specifies the minimum RX interval, which is announced to the neighbor and used there to limit the neighbor's rate of generated BFD control packets. Default: 10 ms. <tag>min tx interval <m/time/</tag> This option specifies the desired TX interval, which controls the rate of generated BFD control packets (together with <cf/min rx interval/ announced by the neighbor). Note that this value is used only if the BFD session is up, otherwise the value of <cf/idle tx interval/ is used instead. Default: 100 ms. <tag>idle tx interval <m/time/</tag> In order to limit unnecessary traffic in cases where a neighbor is not available or not running BFD, the rate of generated BFD control packets is lower when the BFD session is not up. This option specifies the desired TX interval in such cases instead of <cf/min tx interval/. Default: 1 s. <tag>multiplier <m/num/</tag> Failure detection time for BFD sessions is based on established rate of BFD control packets (<cf>min rx/tx interval</cf>) multiplied by this multiplier, which is essentially (ignoring jitter) a number of missed packets after which the session is declared down. Note that rates and multipliers could be different in each direction of a BFD session. Default: 5. <tag>passive <m/switch/</tag> Generally, both BFD session endpoinds try to establish the session by sending control packets to the other side. This option allows to enable passive mode, which means that the router does not send BFD packets until it has received one from the other side. Default: disabled. </descrip> <sect1>Example <p><code> protocol bfd { interface "eth*" { min rx interval 20 ms; min tx interval 50 ms; idle tx interval 300 ms; }; interface "gre*" { interval 200 ms; multiplier 10; passive; }; multihop { interval 200 ms; multiplier 10; }; neighbor 192.168.1.10; neighbor 192.168.2.2 dev "eth2"; neighbor 192.168.10.1 local 192.168.1.1 multihop; } </code> <sect>BGP <p>The Border Gateway Protocol is the routing protocol used for backbone level routing in the today's Internet. Contrary to the other protocols, its convergence doesn't rely on all routers following the same rules for route selection, making it possible to implement any routing policy at any router in the network, the only restriction being that if a router advertises a route, it must accept and forward packets according to it. <p>BGP works in terms of autonomous systems (often abbreviated as AS). Each AS is a part of the network with common management and common routing policy. It is identified by a unique 16-bit number (ASN). Routers within each AS usually exchange AS-internal routing information with each other using an interior gateway protocol (IGP, such as OSPF or RIP). Boundary routers at the border of the AS communicate global (inter-AS) network reachability information with their neighbors in the neighboring AS'es via exterior BGP (eBGP) and redistribute received information to other routers in the AS via interior BGP (iBGP). <p>Each BGP router sends to its neighbors updates of the parts of its routing table it wishes to export along with complete path information (a list of AS'es the packet will travel through if it uses the particular route) in order to avoid routing loops. <p>BIRD supports all requirements of the BGP4 standard as defined in RFC 4271<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc4271.txt"> It also supports the community attributes (RFC 1997<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc1997.txt">), capability negotiation (RFC 3392<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc3392.txt">), MD5 password authentication (RFC 2385<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc2385.txt">), extended communities (RFC 4360<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc4360.txt">), route reflectors (RFC 4456<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc4456.txt">), multiprotocol extensions (RFC 4760<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc4760.txt">), 4B AS numbers (RFC 4893<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc4893.txt">), and 4B AS numbers in extended communities (RFC 5668<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc5668.txt">). For IPv6, it uses the standard multiprotocol extensions defined in RFC 2283<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc2283.txt"> including changes described in the latest draft<htmlurl url="ftp://ftp.rfc-editor.org/internet-drafts/draft-ietf-idr-bgp4-multiprotocol-v2-05.txt"> and applied to IPv6 according to RFC 2545<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc2545.txt">. <sect1>Route selection rules <p>BGP doesn't have any simple metric, so the rules for selection of an optimal route among multiple BGP routes with the same preference are a bit more complex and they are implemented according to the following algorithm. It starts the first rule, if there are more "best" routes, then it uses the second rule to choose among them and so on. <itemize> <item>Prefer route with the highest Local Preference attribute. <item>Prefer route with the shortest AS path. <item>Prefer IGP origin over EGP and EGP origin over incomplete. <item>Prefer the lowest value of the Multiple Exit Discriminator. <item>Prefer routes received via eBGP over ones received via iBGP. <item>Prefer routes with lower internal distance to a boundary router. <item>Prefer the route with the lowest value of router ID of the advertising router. </itemize> <sect1>IGP routing table <p>BGP is mainly concerned with global network reachability and with routes to other autonomous systems. When such routes are redistributed to routers in the AS via BGP, they contain IP addresses of a boundary routers (in route attribute NEXT_HOP). BGP depends on existing IGP routing table with AS-internal routes to determine immediate next hops for routes and to know their internal distances to boundary routers for the purpose of BGP route selection. In BIRD, there is usually one routing table used for both IGP routes and BGP routes. <sect1>Configuration <p>Each instance of the BGP corresponds to one neighboring router. This allows to set routing policy and all the other parameters differently for each neighbor using the following configuration parameters: <descrip> <tag>local [<m/ip/] as <m/number/</tag> Define which AS we are part of. (Note that contrary to other IP routers, BIRD is able to act as a router located in multiple AS'es simultaneously, but in such cases you need to tweak the BGP paths manually in the filters to get consistent behavior.) Optional <cf/ip/ argument specifies a source address, equivalent to the <cf/source address/ option (see below). This parameter is mandatory. <tag>neighbor <m/ip/ as <m/number/</tag> Define neighboring router this instance will be talking to and what AS it's located in. In case the neighbor is in the same AS as we are, we automatically switch to iBGP. This parameter is mandatory. <tag>direct</tag> Specify that the neighbor is directly connected. The IP address of the neighbor must be from a directly reachable IP range (i.e. associated with one of your router's interfaces), otherwise the BGP session wouldn't start but it would wait for such interface to appear. The alternative is the <cf/multihop/ option. Default: enabled for eBGP. <tag>multihop [<m/number/]</tag> Configure multihop BGP session to a neighbor that isn't directly connected. Accurately, this option should be used if the configured neighbor IP address does not match with any local network subnets. Such IP address have to be reachable through system routing table. The alternative is the <cf/direct/ option. For multihop BGP it is recommended to explicitly configure the source address to have it stable. Optional <cf/number/ argument can be used to specify the number of hops (used for TTL). Note that the number of networks (edges) in a path is counted; i.e., if two BGP speakers are separated by one router, the number of hops is 2. Default: enabled for iBGP. <tag>source address <m/ip/</tag> Define local address we should use for next hop calculation and as a source address for the BGP session. Default: the address of the local end of the interface our neighbor is connected to. <tag>next hop self</tag> Avoid calculation of the Next Hop attribute and always advertise our own source address as a next hop. This needs to be used only occasionally to circumvent misconfigurations of other routers. Default: disabled. <tag>next hop keep</tag> Forward the received Next Hop attribute even in situations where the local address should be used instead, like when the route is sent to an interface with a different subnet. Default: disabled. <tag>missing lladdr self|drop|ignore</tag>Next Hop attribute in BGP-IPv6 sometimes contains just the global IPv6 address, but sometimes it has to contain both global and link-local IPv6 addresses. This option specifies what to do if BIRD have to send both addresses but does not know link-local address. This situation might happen when routes from other protocols are exported to BGP, or when improper updates are received from BGP peers. <cf/self/ means that BIRD advertises its own local address instead. <cf/drop/ means that BIRD skips that prefixes and logs error. <cf/ignore/ means that BIRD ignores the problem and sends just the global address (and therefore forms improper BGP update). Default: <cf/self/, unless BIRD is configured as a route server (option <cf/rs client/), in that case default is <cf/ignore/, because route servers usually do not forward packets themselves. <tag>gateway direct|recursive</tag>For received routes, their <cf/gw/ (immediate next hop) attribute is computed from received <cf/bgp_next_hop/ attribute. This option specifies how it is computed. Direct mode means that the IP address from <cf/bgp_next_hop/ is used if it is directly reachable, otherwise the neighbor IP address is used. Recursive mode means that the gateway is computed by an IGP routing table lookup for the IP address from <cf/bgp_next_hop/. Recursive mode is the behavior specified by the BGP standard. Direct mode is simpler, does not require any routes in a routing table, and was used in older versions of BIRD, but does not handle well nontrivial iBGP setups and multihop. Recursive mode is incompatible with <ref id="dsc-sorted" name="sorted tables">. Default: <cf/direct/ for direct sessions, <cf/recursive/ for multihop sessions. <tag>igp table <m/name/</tag> Specifies a table that is used as an IGP routing table. Default: the same as the table BGP is connected to. <tag>bfd <M>switch</M></tag> BGP could use BFD protocol as an advisory mechanism for neighbor liveness and failure detection. If enabled, BIRD setups a BFD session for the BGP neighbor and tracks its liveness by it. This has an advantage of an order of magnitude lower detection times in case of failure. Note that BFD protocol also has to be configured, see <ref id="sect-bfd" name="BFD"> section for details. Default: disabled. <tag>ttl security <m/switch/</tag> Use GTSM (RFC 5082 - the generalized TTL security mechanism). GTSM protects against spoofed packets by ignoring received packets with a smaller than expected TTL. To work properly, GTSM have to be enabled on both sides of a BGP session. If both <cf/ttl security/ and <cf/multihop/ options are enabled, <cf/multihop/ option should specify proper hop value to compute expected TTL. Kernel support required: Linux: 2.6.34+ (IPv4), 2.6.35+ (IPv6), BSD: since long ago, IPv4 only. Note that full (ICMP protection, for example) RFC 5082 support is provided by Linux only. Default: disabled. <tag>password <m/string/</tag> Use this password for MD5 authentication of BGP sessions. Default: no authentication. Password has to be set by external utility (e.g. setkey(8)) on BSD systems. <tag>passive <m/switch/</tag> Standard BGP behavior is both initiating outgoing connections and accepting incoming connections. In passive mode, outgoing connections are not initiated. Default: off. <tag>rr client</tag> Be a route reflector and treat the neighbor as a route reflection client. Default: disabled. <tag>rr cluster id <m/IPv4 address/</tag> Route reflectors use cluster id to avoid route reflection loops. When there is one route reflector in a cluster it usually uses its router id as a cluster id, but when there are more route reflectors in a cluster, these need to be configured (using this option) to use a common cluster id. Clients in a cluster need not know their cluster id and this option is not allowed for them. Default: the same as router id. <tag>rs client</tag> Be a route server and treat the neighbor as a route server client. A route server is used as a replacement for full mesh EBGP routing in Internet exchange points in a similar way to route reflectors used in IBGP routing. BIRD does not implement obsoleted RFC 1863, but uses ad-hoc implementation, which behaves like plain EBGP but reduces modifications to advertised route attributes to be transparent (for example does not prepend its AS number to AS PATH attribute and keeps MED attribute). Default: disabled. <tag>secondary <m/switch/</tag> Usually, if an import filter rejects a selected route, no other route is propagated for that network. This option allows to try the next route in order until one that is accepted is found or all routes for that network are rejected. This can be used for route servers that need to propagate different tables to each client but do not want to have these tables explicitly (to conserve memory). This option requires that the connected routing table is <ref id="dsc-sorted" name="sorted">. Default: off. <tag>allow local as [<m/number/]</tag> BGP prevents routing loops by rejecting received routes with the local AS number in the AS path. This option allows to loose or disable the check. Optional <cf/number/ argument can be used to specify the maximum number of local ASNs in the AS path that is allowed for received routes. When the option is used without the argument, the check is completely disabled and you should ensure loop-free behavior by some other means. Default: 0 (no local AS number allowed). <tag>enable route refresh <m/switch/</tag> When BGP speaker changes its import filter, it has to re-examine all routes received from its neighbor against the new filter. As these routes might not be available, there is a BGP protocol extension Route Refresh (specified in RFC 2918) that allows BGP speaker to request re-advertisement of all routes from its neighbor. This option specifies whether BIRD advertises this capability and accepts such requests. Even when disabled, BIRD can send route refresh requests. Default: on. <tag>interpret communities <m/switch/</tag> RFC 1997 demands that BGP speaker should process well-known communities like no-export (65535, 65281) or no-advertise (65535, 65282). For example, received route carrying a no-adverise community should not be advertised to any of its neighbors. If this option is enabled (which is by default), BIRD has such behavior automatically (it is evaluated when a route is exported to the BGP protocol just before the export filter). Otherwise, this integrated processing of well-known communities is disabled. In that case, similar behavior can be implemented in the export filter. Default: on. <tag>enable as4 <m/switch/</tag> BGP protocol was designed to use 2B AS numbers and was extended later to allow 4B AS number. BIRD supports 4B AS extension, but by disabling this option it can be persuaded not to advertise it and to maintain old-style sessions with its neighbors. This might be useful for circumventing bugs in neighbor's implementation of 4B AS extension. Even when disabled (off), BIRD behaves internally as AS4-aware BGP router. Default: on. <tag>capabilities <m/switch/</tag> Use capability advertisement to advertise optional capabilities. This is standard behavior for newer BGP implementations, but there might be some older BGP implementations that reject such connection attempts. When disabled (off), features that request it (4B AS support) are also disabled. Default: on, with automatic fallback to off when received capability-related error. <tag>advertise ipv4 <m/switch/</tag> Advertise IPv4 multiprotocol capability. This is not a correct behavior according to the strict interpretation of RFC 4760, but it is widespread and required by some BGP implementations (Cisco and Quagga). This option is relevant to IPv4 mode with enabled capability advertisement only. Default: on. <tag>route limit <m/number/</tag> The maximal number of routes that may be imported from the protocol. If the route limit is exceeded, the connection is closed with an error. Limit is currently implemented as <cf/import limit <m/number/ action restart/. This option is obsolete and it is replaced by <ref id="import-limit" name="import limit option">. Default: no limit. <tag>disable after error <m/switch/</tag> When an error is encountered (either locally or by the other side), disable the instance automatically and wait for an administrator to fix the problem manually. Default: off. <tag>hold time <m/number/</tag> Time in seconds to wait for a Keepalive message from the other side before considering the connection stale. Default: depends on agreement with the neighboring router, we prefer 240 seconds if the other side is willing to accept it. <tag>startup hold time <m/number/</tag> Value of the hold timer used before the routers have a chance to exchange open messages and agree on the real value. Default: 240 seconds. <tag>keepalive time <m/number/</tag> Delay in seconds between sending of two consecutive Keepalive messages. Default: One third of the hold time. <tag>connect retry time <m/number/</tag> Time in seconds to wait before retrying a failed attempt to connect. Default: 120 seconds. <tag>start delay time <m/number/</tag> Delay in seconds between protocol startup and the first attempt to connect. Default: 5 seconds. <tag>error wait time <m/number/,<m/number/</tag> Minimum and maximum delay in seconds between a protocol failure (either local or reported by the peer) and automatic restart. Doesn't apply when <cf/disable after error/ is configured. If consecutive errors happen, the delay is increased exponentially until it reaches the maximum. Default: 60, 300. <tag>error forget time <m/number/</tag> Maximum time in seconds between two protocol failures to treat them as a error sequence which makes the <cf/error wait time/ increase exponentially. Default: 300 seconds. <tag>path metric <m/switch/</tag> Enable comparison of path lengths when deciding which BGP route is the best one. Default: on. <tag>med metric <m/switch/</tag> Enable comparison of MED attributes (during best route selection) even between routes received from different ASes. This may be useful if all MED attributes contain some consistent metric, perhaps enforced in import filters of AS boundary routers. If this option is disabled, MED attributes are compared only if routes are received from the same AS (which is the standard behavior). Default: off. <tag>deterministic med <m/switch/</tag> BGP route selection algorithm is often viewed as a comparison between individual routes (e.g. if a new route appears and is better than the current best one, it is chosen as the new best one). But the proper route selection, as specified by RFC 4271, cannot be fully implemented in that way. The problem is mainly in handling the MED attribute. BIRD, by default, uses an simplification based on individual route comparison, which in some cases may lead to temporally dependent behavior (i.e. the selection is dependent on the order in which routes appeared). This option enables a different (and slower) algorithm implementing proper RFC 4271 route selection, which is deterministic. Alternative way how to get deterministic behavior is to use <cf/med metric/ option. This option is incompatible with <ref id="dsc-sorted" name="sorted tables">. Default: off. <tag>igp metric <m/switch/</tag> Enable comparison of internal distances to boundary routers during best route selection. Default: on. <tag>prefer older <m/switch/</tag> Standard route selection algorithm breaks ties by comparing router IDs. This changes the behavior to prefer older routes (when both are external and from different peer). For details, see RFC 5004. Default: off. <tag>default bgp_med <m/number/</tag> Value of the Multiple Exit Discriminator to be used during route selection when the MED attribute is missing. Default: 0. <tag>default bgp_local_pref <m/number/</tag> A default value for the Local Preference attribute. It is used when a new Local Preference attribute is attached to a route by the BGP protocol itself (for example, if a route is received through eBGP and therefore does not have such attribute). Default: 100 (0 in pre-1.2.0 versions of BIRD). </descrip> <sect1>Attributes <p>BGP defines several route attributes. Some of them (those marked with `<tt/I/' in the table below) are available on internal BGP connections only, some of them (marked with `<tt/O/') are optional. <descrip> <tag>bgppath <cf/bgp_path/</tag> Sequence of AS numbers describing the AS path the packet will travel through when forwarded according to the particular route. In case of internal BGP it doesn't contain the number of the local AS. <tag>int <cf/bgp_local_pref/ [I]</tag> Local preference value used for selection among multiple BGP routes (see the selection rules above). It's used as an additional metric which is propagated through the whole local AS. <tag>int <cf/bgp_med/ [O]</tag> The Multiple Exit Discriminator of the route is an optional attribute which is used on external (inter-AS) links to convey to an adjacent AS the optimal entry point into the local AS. The received attribute is also propagated over internal BGP links. The attribute value is zeroed when a route is exported to an external BGP instance to ensure that the attribute received from a neighboring AS is not propagated to other neighboring ASes. A new value might be set in the export filter of an external BGP instance. See RFC 4451<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc4451.txt"> for further discussion of BGP MED attribute. <tag>enum <cf/bgp_origin/</tag> Origin of the route: either <cf/ORIGIN_IGP/ if the route has originated in an interior routing protocol or <cf/ORIGIN_EGP/ if it's been imported from the <tt>EGP</tt> protocol (nowadays it seems to be obsolete) or <cf/ORIGIN_INCOMPLETE/ if the origin is unknown. <tag>ip <cf/bgp_next_hop/</tag> Next hop to be used for forwarding of packets to this destination. On internal BGP connections, it's an address of the originating router if it's inside the local AS or a boundary router the packet will leave the AS through if it's an exterior route, so each BGP speaker within the AS has a chance to use the shortest interior path possible to this point. <tag>void <cf/bgp_atomic_aggr/ [O]</tag> This is an optional attribute which carries no value, but the sole presence of which indicates that the route has been aggregated from multiple routes by some router on the path from the originator. <!-- we don't handle aggregators right since they are of a very obscure type <tag>bgp_aggregator</tag> --> <tag>clist <cf/bgp_community/ [O]</tag> List of community values associated with the route. Each such value is a pair (represented as a <cf/pair/ data type inside the filters) of 16-bit integers, the first of them containing the number of the AS which defines the community and the second one being a per-AS identifier. There are lots of uses of the community mechanism, but generally they are used to carry policy information like "don't export to USA peers". As each AS can define its own routing policy, it also has a complete freedom about which community attributes it defines and what will their semantics be. <tag>eclist <cf/bgp_ext_community/ [O]</tag> List of extended community values associated with the route. Extended communities have similar usage as plain communities, but they have an extended range (to allow 4B ASNs) and a nontrivial structure with a type field. Individual community values are represented using an <cf/ec/ data type inside the filters. <tag>quad <cf/bgp_originator_id/ [I, O]</tag> This attribute is created by the route reflector when reflecting the route and contains the router ID of the originator of the route in the local AS. <tag>clist <cf/bgp_cluster_list/ [I, O]</tag> This attribute contains a list of cluster IDs of route reflectors. Each route reflector prepends its cluster ID when reflecting the route. </descrip> <sect1>Example <p><code> protocol bgp { local as 65000; # Use a private AS number neighbor 198.51.100.130 as 64496; # Our neighbor ... multihop; # ... which is connected indirectly export filter { # We use non-trivial export rules if source = RTS_STATIC then { # Export only static routes # Assign our community bgp_community.add((65000,64501)); # Artificially increase path length # by advertising local AS number twice if bgp_path ~ [= 65000 =] then bgp_path.prepend(65000); accept; } reject; }; import all; source address 198.51.100.14; # Use a non-standard source address } </code> <sect>Device <p>The Device protocol is not a real routing protocol. It doesn't generate any routes and it only serves as a module for getting information about network interfaces from the kernel. <p>Except for very unusual circumstances, you probably should include this protocol in the configuration since almost all other protocols require network interfaces to be defined for them to work with. <sect1>Configuration <p><descrip> <tag>scan time <m/number/</tag> Time in seconds between two scans of the network interface list. On systems where we are notified about interface status changes asynchronously (such as newer versions of Linux), we need to scan the list only in order to avoid confusion by lost notification messages, so the default time is set to a large value. <tag>primary [ "<m/mask/" ] <m/prefix/</tag> If a network interface has more than one network address, BIRD has to choose one of them as a primary one. By default, BIRD chooses the lexicographically smallest address as the primary one. This option allows to specify which network address should be chosen as a primary one. Network addresses that match <m/prefix/ are preferred to non-matching addresses. If more <cf/primary/ options are used, the first one has the highest preference. If "<m/mask/" is specified, then such <cf/primary/ option is relevant only to matching network interfaces. In all cases, an address marked by operating system as secondary cannot be chosen as the primary one. </descrip> <p>As the Device protocol doesn't generate any routes, it cannot have any attributes. Example configuration looks like this: <p><code> protocol device { scan time 10; # Scan the interfaces often primary "eth0" 192.168.1.1; primary 192.168.0.0/16; } </code> <sect>Direct <p>The Direct protocol is a simple generator of device routes for all the directly connected networks according to the list of interfaces provided by the kernel via the Device protocol. <p>The question is whether it is a good idea to have such device routes in BIRD routing table. OS kernel usually handles device routes for directly connected networks by itself so we don't need (and don't want) to export these routes to the kernel protocol. OSPF protocol creates device routes for its interfaces itself and BGP protocol is usually used for exporting aggregate routes. Although there are some use cases that use the direct protocol (like abusing eBGP as an IGP routing protocol), in most cases it is not needed to have these device routes in BIRD routing table and to use the direct protocol. <p>There is one notable case when you definitely want to use the direct protocol -- running BIRD on BSD systems. Having high priority device routes for directly connected networks from the direct protocol protects kernel device routes from being overwritten or removed by IGP routes during some transient network conditions, because a lower priority IGP route for the same network is not exported to the kernel routing table. This is an issue on BSD systems only, as on Linux systems BIRD cannot change non-BIRD route in the kernel routing table. <p>The only configurable thing about direct is what interfaces it watches: <p><descrip> <tag>interface <m/pattern [, ...]/</tag> By default, the Direct protocol will generate device routes for all the interfaces available. If you want to restrict it to some subset of interfaces (for example if you're using multiple routing tables for policy routing and some of the policy domains don't contain all interfaces), just use this clause. </descrip> <p>Direct device routes don't contain any specific attributes. <p>Example config might look like this: <p><code> protocol direct { interface "-arc*", "*"; # Exclude the ARCnets } </code> <sect>Kernel <p>The Kernel protocol is not a real routing protocol. Instead of communicating with other routers in the network, it performs synchronization of BIRD's routing tables with the OS kernel. Basically, it sends all routing table updates to the kernel and from time to time it scans the kernel tables to see whether some routes have disappeared (for example due to unnoticed up/down transition of an interface) or whether an `alien' route has been added by someone else (depending on the <cf/learn/ switch, such routes are either ignored or accepted to our table). <p>Unfortunately, there is one thing that makes the routing table synchronization a bit more complicated. In the kernel routing table there are also device routes for directly connected networks. These routes are usually managed by OS itself (as a part of IP address configuration) and we don't want to touch that. They are completely ignored during the scan of the kernel tables and also the export of device routes from BIRD tables to kernel routing tables is restricted to prevent accidental interference. This restriction can be disabled using <cf/device routes/ switch. <p>If your OS supports only a single routing table, you can configure only one instance of the Kernel protocol. If it supports multiple tables (in order to allow policy routing; such an OS is for example Linux), you can run as many instances as you want, but each of them must be connected to a different BIRD routing table and to a different kernel table. <p>Because the kernel protocol is partially integrated with the connected routing table, there are two limitations - it is not possible to connect more kernel protocols to the same routing table and changing route destination/gateway in an export filter of a kernel protocol does not work. Both limitations can be overcome using another routing table and the pipe protocol. <sect1>Configuration <p><descrip> <tag>persist <m/switch/</tag> Tell BIRD to leave all its routes in the routing tables when it exits (instead of cleaning them up). <tag>scan time <m/number/</tag> Time in seconds between two consecutive scans of the kernel routing table. <tag>learn <m/switch/</tag> Enable learning of routes added to the kernel routing tables by other routing daemons or by the system administrator. This is possible only on systems which support identification of route authorship. <tag>device routes <m/switch/</tag> Enable export of device routes to the kernel routing table. By default, such routes are rejected (with the exception of explicitly configured device routes from the static protocol) regardless of the export filter to protect device routes in kernel routing table (managed by OS itself) from accidental overwriting or erasing. <tag>kernel table <m/number/</tag> Select which kernel table should this particular instance of the Kernel protocol work with. Available only on systems supporting multiple routing tables. </descrip> <sect1>Attributes <p>The Kernel protocol defines several attributes. These attributes are translated to appropriate system (and OS-specific) route attributes. We support these attributes: <descrip> <tag>int <cf/krt_source/</tag> The original source of the imported kernel route. The value is system-dependent. On Linux, it is a value of the protocol field of the route. See /etc/iproute2/rt_protos for common values. On BSD, it is based on STATIC and PROTOx flags. The attribute is read-only. <tag>int <cf/krt_metric/</tag> The kernel metric of the route. When multiple same routes are in a kernel routing table, the Linux kernel chooses one with lower metric. <tag>ip <cf/krt_prefsrc/</tag> (Linux) The preferred source address. Used in source address selection for outgoing packets. Have to be one of IP addresses of the router. <tag>int <cf/krt_realm/</tag> (Linux) The realm of the route. Can be used for traffic classification. </descrip> <sect1>Example <p>A simple configuration can look this way: <p><code> protocol kernel { export all; } </code> <p>Or for a system with two routing tables: <p><code> protocol kernel { # Primary routing table learn; # Learn alien routes from the kernel persist; # Don't remove routes on bird shutdown scan time 10; # Scan kernel routing table every 10 seconds import all; export all; } protocol kernel { # Secondary routing table table auxtable; kernel table 100; export all; } </code> <sect>OSPF <sect1>Introduction <p>Open Shortest Path First (OSPF) is a quite complex interior gateway protocol. The current IPv4 version (OSPFv2) is defined in RFC 2328<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc2328.txt"> and the current IPv6 version (OSPFv3) is defined in RFC 5340<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc5340.txt"> It's a link state (a.k.a. shortest path first) protocol -- each router maintains a database describing the autonomous system's topology. Each participating router has an identical copy of the database and all routers run the same algorithm calculating a shortest path tree with themselves as a root. OSPF chooses the least cost path as the best path. <p>In OSPF, the autonomous system can be split to several areas in order to reduce the amount of resources consumed for exchanging the routing information and to protect the other areas from incorrect routing data. Topology of the area is hidden to the rest of the autonomous system. <p>Another very important feature of OSPF is that it can keep routing information from other protocols (like Static or BGP) in its link state database as external routes. Each external route can be tagged by the advertising router, making it possible to pass additional information between routers on the boundary of the autonomous system. <p>OSPF quickly detects topological changes in the autonomous system (such as router interface failures) and calculates new loop-free routes after a short period of convergence. Only a minimal amount of routing traffic is involved. <p>Each router participating in OSPF routing periodically sends Hello messages to all its interfaces. This allows neighbors to be discovered dynamically. Then the neighbors exchange theirs parts of the link state database and keep it identical by flooding updates. The flooding process is reliable and ensures that each router detects all changes. <sect1>Configuration <p>In the main part of configuration, there can be multiple definitions of OSPF areas, each with a different id. These definitions includes many other switches and multiple definitions of interfaces. Definition of interface may contain many switches and constant definitions and list of neighbors on nonbroadcast networks. <code> protocol ospf <name> { rfc1583compat <switch>; stub router <switch>; tick <num>; ecmp <switch> [limit <num>]; area <id> { stub; nssa; summary <switch>; default nssa <switch>; default cost <num>; default cost2 <num>; translator <switch>; translator stability <num>; networks { <prefix>; <prefix> hidden; } external { <prefix>; <prefix> hidden; <prefix> tag <num>; } stubnet <prefix>; stubnet <prefix> { hidden <switch>; summary <switch>; cost <num>; } interface <interface pattern> [instance <num>] { cost <num>; stub <switch>; hello <num>; poll <num>; retransmit <num>; priority <num>; wait <num>; dead count <num>; dead <num>; rx buffer [normal|large|<num>]; type [broadcast|bcast|pointopoint|ptp| nonbroadcast|nbma|pointomultipoint|ptmp]; strict nonbroadcast <switch>; real broadcast <switch>; ptp netmask <switch>; check link <switch>; bfd <switch>; ecmp weight <num>; ttl security [<switch>; | tx only] tx class|dscp <num>; tx priority <num>; authentication [none|simple|cryptographic]; password "<text>"; password "<text>" { id <num>; generate from "<date>"; generate to "<date>"; accept from "<date>"; accept to "<date>"; }; neighbors { <ip>; <ip> eligible; }; }; virtual link <id> [instance <num>] { hello <num>; retransmit <num>; wait <num>; dead count <num>; dead <num>; authentication [none|simple|cryptographic]; password "<text>"; }; }; } </code> <descrip> <tag>rfc1583compat <M>switch</M></tag> This option controls compatibility of routing table calculation with RFC 1583<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc1583.txt">. Default value is no. <tag>stub router <M>switch</M></tag> This option configures the router to be a stub router, i.e., a router that participates in the OSPF topology but does not allow transit traffic. In OSPFv2, this is implemented by advertising maximum metric for outgoing links, as suggested by RFC 3137<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc3137.txt">. In OSPFv3, the stub router behavior is announced by clearing the R-bit in the router LSA. Default value is no. <tag>tick <M>num</M></tag> The routing table calculation and clean-up of areas' databases is not performed when a single link state change arrives. To lower the CPU utilization, it's processed later at periodical intervals of <m/num/ seconds. The default value is 1. <tag>ecmp <M>switch</M> [limit <M>number</M>]</tag> This option specifies whether OSPF is allowed to generate ECMP (equal-cost multipath) routes. Such routes are used when there are several directions to the destination, each with the same (computed) cost. This option also allows to specify a limit on maximal number of nexthops in one route. By default, ECMP is disabled. If enabled, default value of the limit is 16. <tag>area <M>id</M></tag> This defines an OSPF area with given area ID (an integer or an IPv4 address, similarly to a router ID). The most important area is the backbone (ID 0) to which every other area must be connected. <tag>stub</tag> This option configures the area to be a stub area. External routes are not flooded into stub areas. Also summary LSAs can be limited in stub areas (see option <cf/summary/). By default, the area is not a stub area. <tag>nssa</tag> This option configures the area to be a NSSA (Not-So-Stubby Area). NSSA is a variant of a stub area which allows a limited way of external route propagation. Global external routes are not propagated into a NSSA, but an external route can be imported into NSSA as a (area-wide) NSSA-LSA (and possibly translated and/or aggregated on area boundary). By default, the area is not NSSA. <tag>summary <M>switch</M></tag> This option controls propagation of summary LSAs into stub or NSSA areas. If enabled, summary LSAs are propagated as usual, otherwise just the default summary route (0.0.0.0/0) is propagated (this is sometimes called totally stubby area). If a stub area has more area boundary routers, propagating summary LSAs could lead to more efficient routing at the cost of larger link state database. Default value is no. <tag>default nssa <M>switch</M></tag> When <cf/summary/ option is enabled, default summary route is no longer propagated to the NSSA. In that case, this option allows to originate default route as NSSA-LSA to the NSSA. Default value is no. <tag>default cost <M>num</M></tag> This option controls the cost of a default route propagated to stub and NSSA areas. Default value is 1000. <tag>default cost2 <M>num</M></tag> When a default route is originated as NSSA-LSA, its cost can use either type 1 or type 2 metric. This option allows to specify the cost of a default route in type 2 metric. By default, type 1 metric (option <cf/default cost/) is used. <tag>translator <M>switch</M></tag> This option controls translation of NSSA-LSAs into external LSAs. By default, one translator per NSSA is automatically elected from area boundary routers. If enabled, this area boundary router would unconditionally translate all NSSA-LSAs regardless of translator election. Default value is no. <tag>translator stability <M>num</M></tag> This option controls the translator stability interval (in seconds). When the new translator is elected, the old one keeps translating until the interval is over. Default value is 40. <tag>networks { <m/set/ }</tag> Definition of area IP ranges. This is used in summary LSA origination. Hidden networks are not propagated into other areas. <tag>external { <m/set/ }</tag> Definition of external area IP ranges for NSSAs. This is used for NSSA-LSA translation. Hidden networks are not translated into external LSAs. Networks can have configured route tag. <tag>stubnet <m/prefix/ { <m/options/ }</tag> Stub networks are networks that are not transit networks between OSPF routers. They are also propagated through an OSPF area as a part of a link state database. By default, BIRD generates a stub network record for each primary network address on each OSPF interface that does not have any OSPF neighbors, and also for each non-primary network address on each OSPF interface. This option allows to alter a set of stub networks propagated by this router. Each instance of this option adds a stub network with given network prefix to the set of propagated stub network, unless option <cf/hidden/ is used. It also suppresses default stub networks for given network prefix. When option <cf/summary/ is used, also default stub networks that are subnetworks of given stub network are suppressed. This might be used, for example, to aggregate generated stub networks. <tag>interface <M>pattern</M> [instance <m/num/]</tag> Defines that the specified interfaces belong to the area being defined. See <ref id="dsc-iface" name="interface"> common option for detailed description. In OSPFv3, you can specify instance ID for that interface description, so it is possible to have several instances of that interface with different options or even in different areas. <tag>virtual link <M>id</M> [instance <m/num/]</tag> Virtual link to router with the router id. Virtual link acts as a point-to-point interface belonging to backbone. The actual area is used as transport area. This item cannot be in the backbone. In OSPFv3, you could also use several virtual links to one destination with different instance IDs. <tag>cost <M>num</M></tag> Specifies output cost (metric) of an interface. Default value is 10. <tag>stub <M>switch</M></tag> If set to interface it does not listen to any packet and does not send any hello. Default value is no. <tag>hello <M>num</M></tag> Specifies interval in seconds between sending of Hello messages. Beware, all routers on the same network need to have the same hello interval. Default value is 10. <tag>poll <M>num</M></tag> Specifies interval in seconds between sending of Hello messages for some neighbors on NBMA network. Default value is 20. <tag>retransmit <M>num</M></tag> Specifies interval in seconds between retransmissions of unacknowledged updates. Default value is 5. <tag>priority <M>num</M></tag> On every multiple access network (e.g., the Ethernet) Designed Router and Backup Designed router are elected. These routers have some special functions in the flooding process. Higher priority increases preferences in this election. Routers with priority 0 are not eligible. Default value is 1. <tag>wait <M>num</M></tag> After start, router waits for the specified number of seconds between starting election and building adjacency. Default value is 40. <tag>dead count <M>num</M></tag> When the router does not receive any messages from a neighbor in <m/dead count/*<m/hello/ seconds, it will consider the neighbor down. <tag>dead <M>num</M></tag> When the router does not receive any messages from a neighbor in <m/dead/ seconds, it will consider the neighbor down. If both directives <m/dead count/ and <m/dead/ are used, <m/dead/ has precendence. <tag>rx buffer <M>num</M></tag> This sets the size of buffer used for receiving packets. The buffer should be bigger than maximal size of any packets. Value NORMAL (default) means 2*MTU, value LARGE means maximal allowed packet - 65535. <tag>type broadcast|bcast</tag> BIRD detects a type of a connected network automatically, but sometimes it's convenient to force use of a different type manually. On broadcast networks (like ethernet), flooding and Hello messages are sent using multicasts (a single packet for all the neighbors). A designated router is elected and it is responsible for synchronizing the link-state databases and originating network LSAs. This network type cannot be used on physically NBMA networks and on unnumbered networks (networks without proper IP prefix). <tag>type pointopoint|ptp</tag> Point-to-point networks connect just 2 routers together. No election is performed and no network LSA is originated, which makes it simpler and faster to establish. This network type is useful not only for physically PtP ifaces (like PPP or tunnels), but also for broadcast networks used as PtP links. This network type cannot be used on physically NBMA networks. <tag>type nonbroadcast|nbma</tag> On NBMA networks, the packets are sent to each neighbor separately because of lack of multicast capabilities. Like on broadcast networks, a designated router is elected, which plays a central role in propagation of LSAs. This network type cannot be used on unnumbered networks. <tag>type pointomultipoint|ptmp</tag> This is another network type designed to handle NBMA networks. In this case the NBMA network is treated as a collection of PtP links. This is useful if not every pair of routers on the NBMA network has direct communication, or if the NBMA network is used as an (possibly unnumbered) PtP link. <tag>strict nonbroadcast <M>switch</M></tag> If set, don't send hello to any undefined neighbor. This switch is ignored on other than NBMA or PtMP networks. Default value is no. <tag>real broadcast <m/switch/</tag> In <cf/type broadcast/ or <cf/type ptp/ network configuration, OSPF packets are sent as IP multicast packets. This option changes the behavior to using old-fashioned IP broadcast packets. This may be useful as a workaround if IP multicast for some reason does not work or does not work reliably. This is a non-standard option and probably is not interoperable with other OSPF implementations. Default value is no. <tag>ptp netmask <m/switch/</tag> In <cf/type ptp/ network configurations, OSPFv2 implementations should ignore received netmask field in hello packets and should send hello packets with zero netmask field on unnumbered PtP links. But some OSPFv2 implementations perform netmask checking even for PtP links. This option specifies whether real netmask will be used in hello packets on <cf/type ptp/ interfaces. You should ignore this option unless you meet some compatibility problems related to this issue. Default value is no for unnumbered PtP links, yes otherwise. <tag>check link <M>switch</M></tag> If set, a hardware link state (reported by OS) is taken into consideration. When a link disappears (e.g. an ethernet cable is unplugged), neighbors are immediately considered unreachable and only the address of the iface (instead of whole network prefix) is propagated. It is possible that some hardware drivers or platforms do not implement this feature. Default value is no. <tag>bfd <M>switch</M></tag> OSPF could use BFD protocol as an advisory mechanism for neighbor liveness and failure detection. If enabled, BIRD setups a BFD session for each OSPF neighbor and tracks its liveness by it. This has an advantage of an order of magnitude lower detection times in case of failure. Note that BFD protocol also has to be configured, see <ref id="sect-bfd" name="BFD"> section for details. Default value is no. <tag>ttl security [<m/switch/ | tx only]</tag> TTL security is a feature that protects routing protocols from remote spoofed packets by using TTL 255 instead of TTL 1 for protocol packets destined to neighbors. Because TTL is decremented when packets are forwarded, it is non-trivial to spoof packets with TTL 255 from remote locations. Note that this option would interfere with OSPF virtual links. If this option is enabled, the router will send OSPF packets with TTL 255 and drop received packets with TTL less than 255. If this option si set to <cf/tx only/, TTL 255 is used for sent packets, but is not checked for received packets. Default value is no. <tag>tx class|dscp|priority <m/num/</tag> These options specify the ToS/DiffServ/Traffic class/Priority of the outgoing OSPF packets. See <ref id="dsc-prio" name="tx class"> common option for detailed description. <tag>ecmp weight <M>num</M></tag> When ECMP (multipath) routes are allowed, this value specifies a relative weight used for nexthops going through the iface. Allowed values are 1-256. Default value is 1. <tag>authentication none</tag> No passwords are sent in OSPF packets. This is the default value. <tag>authentication simple</tag> Every packet carries 8 bytes of password. Received packets lacking this password are ignored. This authentication mechanism is very weak. <tag>authentication cryptographic</tag> 16-byte long MD5 digest is appended to every packet. For the digest generation 16-byte long passwords are used. Those passwords are not sent via network, so this mechanism is quite secure. Packets can still be read by an attacker. <tag>password "<M>text</M>"</tag> An 8-byte or 16-byte password used for authentication. See <ref id="dsc-pass" name="password"> common option for detailed description. <tag>neighbors { <m/set/ } </tag> A set of neighbors to which Hello messages on NBMA or PtMP networks are to be sent. For NBMA networks, some of them could be marked as eligible. In OSPFv3, link-local addresses should be used, using global ones is possible, but it is nonstandard and might be problematic. And definitely, link-local and global addresses should not be mixed. </descrip> <sect1>Attributes <p>OSPF defines four route attributes. Each internal route has a <cf/metric/. Metric is ranging from 1 to infinity (65535). External routes use <cf/metric type 1/ or <cf/metric type 2/. A <cf/metric of type 1/ is comparable with internal <cf/metric/, a <cf/metric of type 2/ is always longer than any <cf/metric of type 1/ or any <cf/internal metric/. <cf/Internal metric/ or <cf/metric of type 1/ is stored in attribute <cf/ospf_metric1/, <cf/metric type 2/ is stored in attribute <cf/ospf_metric2/. If you specify both metrics only metric1 is used. Each external route can also carry attribute <cf/ospf_tag/ which is a 32-bit integer which is used when exporting routes to other protocols; otherwise, it doesn't affect routing inside the OSPF domain at all. The fourth attribute <cf/ospf_router_id/ is a router ID of the router advertising that route/network. This attribute is read-only. Default is <cf/ospf_metric2 = 10000/ and <cf/ospf_tag = 0/. <sect1>Example <p> <code> protocol ospf MyOSPF { rfc1583compat yes; tick 2; export filter { if source = RTS_BGP then { ospf_metric1 = 100; accept; } reject; }; area 0.0.0.0 { interface "eth*" { cost 11; hello 15; priority 100; retransmit 7; authentication simple; password "aaa"; }; interface "ppp*" { cost 100; authentication cryptographic; password "abc" { id 1; generate to "22-04-2003 11:00:06"; accept from "17-01-2001 12:01:05"; }; password "def" { id 2; generate to "22-07-2005 17:03:21"; accept from "22-02-2001 11:34:06"; }; }; interface "arc0" { cost 10; stub yes; }; interface "arc1"; }; area 120 { stub yes; networks { 172.16.1.0/24; 172.16.2.0/24 hidden; } interface "-arc0" , "arc*" { type nonbroadcast; authentication none; strict nonbroadcast yes; wait 120; poll 40; dead count 8; neighbors { 192.168.120.1 eligible; 192.168.120.2; 192.168.120.10; }; }; }; } </code> <sect>Pipe <sect1>Introduction <p>The Pipe protocol serves as a link between two routing tables, allowing routes to be passed from a table declared as primary (i.e., the one the pipe is connected to using the <cf/table/ configuration keyword) to the secondary one (declared using <cf/peer table/) and vice versa, depending on what's allowed by the filters. Export filters control export of routes from the primary table to the secondary one, import filters control the opposite direction. <p>The Pipe protocol may work in the transparent mode mode or in the opaque mode. In the transparent mode, the Pipe protocol retransmits all routes from one table to the other table, retaining their original source and attributes. If import and export filters are set to accept, then both tables would have the same content. The transparent mode is the default mode. <p>In the opaque mode, the Pipe protocol retransmits optimal route from one table to the other table in a similar way like other protocols send and receive routes. Retransmitted route will have the source set to the Pipe protocol, which may limit access to protocol specific route attributes. This mode is mainly for compatibility, it is not suggested for new configs. The mode can be changed by <tt/mode/ option. <p>The primary use of multiple routing tables and the Pipe protocol is for policy routing, where handling of a single packet doesn't depend only on its destination address, but also on its source address, source interface, protocol type and other similar parameters. In many systems (Linux being a good example), the kernel allows to enforce routing policies by defining routing rules which choose one of several routing tables to be used for a packet according to its parameters. Setting of these rules is outside the scope of BIRD's work (on Linux, you can use the <tt/ip/ command), but you can create several routing tables in BIRD, connect them to the kernel ones, use filters to control which routes appear in which tables and also you can employ the Pipe protocol for exporting a selected subset of one table to another one. <sect1>Configuration <p><descrip> <tag>peer table <m/table/</tag> Defines secondary routing table to connect to. The primary one is selected by the <cf/table/ keyword. <tag>mode opaque|transparent</tag> Specifies the mode for the pipe to work in. Default is transparent. </descrip> <sect1>Attributes <p>The Pipe protocol doesn't define any route attributes. <sect1>Example <p>Let's consider a router which serves as a boundary router of two different autonomous systems, each of them connected to a subset of interfaces of the router, having its own exterior connectivity and wishing to use the other AS as a backup connectivity in case of outage of its own exterior line. <p>Probably the simplest solution to this situation is to use two routing tables (we'll call them <cf/as1/ and <cf/as2/) and set up kernel routing rules, so that packets having arrived from interfaces belonging to the first AS will be routed according to <cf/as1/ and similarly for the second AS. Thus we have split our router to two logical routers, each one acting on its own routing table, having its own routing protocols on its own interfaces. In order to use the other AS's routes for backup purposes, we can pass the routes between the tables through a Pipe protocol while decreasing their preferences and correcting their BGP paths to reflect the AS boundary crossing. <code> table as1; # Define the tables table as2; protocol kernel kern1 { # Synchronize them with the kernel table as1; kernel table 1; } protocol kernel kern2 { table as2; kernel table 2; } protocol bgp bgp1 { # The outside connections table as1; local as 1; neighbor 192.168.0.1 as 1001; export all; import all; } protocol bgp bgp2 { table as2; local as 2; neighbor 10.0.0.1 as 1002; export all; import all; } protocol pipe { # The Pipe table as1; peer table as2; export filter { if net ~ [ 1.0.0.0/8+] then { # Only AS1 networks if preference>10 then preference = preference-10; if source=RTS_BGP then bgp_path.prepend(1); accept; } reject; }; import filter { if net ~ [ 2.0.0.0/8+] then { # Only AS2 networks if preference>10 then preference = preference-10; if source=RTS_BGP then bgp_path.prepend(2); accept; } reject; }; } </code> <sect>RAdv <sect1>Introduction <p>The RAdv protocol is an implementation of Router Advertisements, which are used in the IPv6 stateless autoconfiguration. IPv6 routers send (in irregular time intervals or as an answer to a request) advertisement packets to connected networks. These packets contain basic information about a local network (e.g. a list of network prefixes), which allows network hosts to autoconfigure network addresses and choose a default route. BIRD implements router behavior as defined in RFC 4861<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc4861.txt"> and also the DNS extensions from RFC 6106<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc6106.txt">. <sect1>Configuration <p>There are several classes of definitions in RAdv configuration -- interface definitions, prefix definitions and DNS definitions: <descrip> <tag>interface <m/pattern [, ...]/ { <m/options/ }</tag> Interface definitions specify a set of interfaces on which the protocol is activated and contain interface specific options. See <ref id="dsc-iface" name="interface"> common options for detailed description. <tag>prefix <m/prefix/ { <m/options/ }</tag> Prefix definitions allow to modify a list of advertised prefixes. By default, the advertised prefixes are the same as the network prefixes assigned to the interface. For each network prefix, the matching prefix definition is found and its options are used. If no matching prefix definition is found, the prefix is used with default options. Prefix definitions can be either global or interface-specific. The second ones are part of interface options. The prefix definition matching is done in the first-match style, when interface-specific definitions are processed before global definitions. As expected, the prefix definition is matching if the network prefix is a subnet of the prefix in prefix definition. <tag>rdnss { <m/options/ }</tag> RDNSS definitions allow to specify a list of advertised recursive DNS servers together with their options. As options are seldom necessary, there is also a short variant <cf>rdnss <m/address/</cf> that just specifies one DNS server. Multiple definitions are cumulative. RDNSS definitions may also be interface-specific when used inside interface options. By default, interface uses both global and interface-specific options, but that can be changed by <cf/rdnss local/ option. <tag>dnssl { <m/options/ }</tag> DNSSL definitions allow to specify a list of advertised DNS search domains together with their options. Like <cf/rdnss/ above, multiple definitions are cumulative, they can be used also as interface-specific options and there is a short variant <cf>dnssl <m/domain/</cf> that just specifies one DNS search domain. <label id="dsc-trigger"> <tag>trigger <m/prefix/</tag> RAdv protocol could be configured to change its behavior based on availability of routes. When this option is used, the protocol waits in suppressed state until a <it/trigger route/ (for the specified network) is exported to the protocol, the protocol also returnsd to suppressed state if the <it/trigger route/ disappears. Note that route export depends on specified export filter, as usual. This option could be used, e.g., for handling failover in multihoming scenarios. During suppressed state, router advertisements are generated, but with some fields zeroed. Exact behavior depends on which fields are zeroed, this can be configured by <cf/sensitive/ option for appropriate fields. By default, just <cf/default lifetime/ (also called <cf/router lifetime/) is zeroed, which means hosts cannot use the router as a default router. <cf/preferred lifetime/ and <cf/valid lifetime/ could also be configured as <cf/sensitive/ for a prefix, which would cause autoconfigured IPs to be deprecated or even removed. </descrip> <p>Interface specific options: <descrip> <tag>max ra interval <m/expr/</tag> Unsolicited router advertisements are sent in irregular time intervals. This option specifies the maximum length of these intervals, in seconds. Valid values are 4-1800. Default: 600 <tag>min ra interval <m/expr/</tag> This option specifies the minimum length of that intervals, in seconds. Must be at least 3 and at most 3/4 * <cf/max ra interval/. Default: about 1/3 * <cf/max ra interval/. <tag>min delay <m/expr/</tag> The minimum delay between two consecutive router advertisements, in seconds. Default: 3 <tag>managed <m/switch/</tag> This option specifies whether hosts should use DHCPv6 for IP address configuration. Default: no <tag>other config <m/switch/</tag> This option specifies whether hosts should use DHCPv6 to receive other configuration information. Default: no <tag>link mtu <m/expr/</tag> This option specifies which value of MTU should be used by hosts. 0 means unspecified. Default: 0 <tag>reachable time <m/expr/</tag> This option specifies the time (in milliseconds) how long hosts should assume a neighbor is reachable (from the last confirmation). Maximum is 3600000, 0 means unspecified. Default 0. <tag>retrans timer <m/expr/</tag> This option specifies the time (in milliseconds) how long hosts should wait before retransmitting Neighbor Solicitation messages. 0 means unspecified. Default 0. <tag>current hop limit <m/expr/</tag> This option specifies which value of Hop Limit should be used by hosts. Valid values are 0-255, 0 means unspecified. Default: 64 <tag>default lifetime <m/expr/ [sensitive <m/switch/]</tag> This option specifies the time (in seconds) how long (after the receipt of RA) hosts may use the router as a default router. 0 means do not use as a default router. For <cf/sensitive/ option, see <ref id="dsc-trigger" name="trigger">. Default: 3 * <cf/max ra interval/, <cf/sensitive/ yes. <tag>rdnss local <m/switch/</tag> Use only local (interface-specific) RDNSS definitions for this interface. Otherwise, both global and local definitions are used. Could also be used to disable RDNSS for given interface if no local definitons are specified. Default: no. <tag>dnssl local <m/switch/</tag> Use only local DNSSL definitions for this interface. See <cf/rdnss local/ option above. Default: no. </descrip> <p>Prefix specific options: <descrip> <tag>skip <m/switch/</tag> This option allows to specify that given prefix should not be advertised. This is useful for making exceptions from a default policy of advertising all prefixes. Note that for withdrawing an already advertised prefix it is more useful to advertise it with zero valid lifetime. Default: no <tag>onlink <m/switch/</tag> This option specifies whether hosts may use the advertised prefix for onlink determination. Default: yes <tag>autonomous <m/switch/</tag> This option specifies whether hosts may use the advertised prefix for stateless autoconfiguration. Default: yes <tag>valid lifetime <m/expr/ [sensitive <m/switch/]</tag> This option specifies the time (in seconds) how long (after the receipt of RA) the prefix information is valid, i.e., autoconfigured IP addresses can be assigned and hosts with that IP addresses are considered directly reachable. 0 means the prefix is no longer valid. For <cf/sensitive/ option, see <ref id="dsc-trigger" name="trigger">. Default: 86400 (1 day), <cf/sensitive/ no. <tag>preferred lifetime <m/expr/ [sensitive <m/switch/]</tag> This option specifies the time (in seconds) how long (after the receipt of RA) IP addresses generated from the prefix using stateless autoconfiguration remain preferred. For <cf/sensitive/ option, see <ref id="dsc-trigger" name="trigger">. Default: 14400 (4 hours), <cf/sensitive/ no. </descrip> <p>RDNSS specific options: <descrip> <tag>ns <m/address/</tag> This option specifies one recursive DNS server. Can be used multiple times for multiple servers. It is mandatory to have at least one <cf/ns/ option in <cf/rdnss/ definition. <tag>lifetime [mult] <m/expr/</tag> This option specifies the time how long the RDNSS information may be used by clients after the receipt of RA. It is expressed either in seconds or (when <cf/mult/ is used) in multiples of <cf/max ra interval/. Note that RDNSS information is also invalidated when <cf/default lifetime/ expires. 0 means these addresses are no longer valid DNS servers. Default: 3 * <cf/max ra interval/. </descrip> <p>DNSSL specific options: <descrip> <tag>domain <m/address/</tag> This option specifies one DNS search domain. Can be used multiple times for multiple domains. It is mandatory to have at least one <cf/domain/ option in <cf/dnssl/ definition. <tag>lifetime [mult] <m/expr/</tag> This option specifies the time how long the DNSSL information may be used by clients after the receipt of RA. Details are the same as for RDNSS <cf/lifetime/ option above. Default: 3 * <cf/max ra interval/. </descrip> <sect1>Example <p><code> protocol radv { interface "eth2" { max ra interval 5; # Fast failover with more routers managed yes; # Using DHCPv6 on eth2 prefix ::/0 { autonomous off; # So do not autoconfigure any IP }; }; interface "eth*"; # No need for any other options prefix 2001:0DB8:1234::/48 { preferred lifetime 0; # Deprecated address range }; prefix 2001:0DB8:2000::/48 { autonomous off; # Do not autoconfigure }; rdnss 2001:0DB8:1234::10; # Short form of RDNSS rdnss { lifetime mult 10; ns 2001:0DB8:1234::11; ns 2001:0DB8:1234::12; }; dnssl { lifetime 3600; domain "abc.com"; domain "xyz.com"; }; } </code> <sect>RIP <sect1>Introduction <p>The RIP protocol (also sometimes called Rest In Pieces) is a simple protocol, where each router broadcasts (to all its neighbors) distances to all networks it can reach. When a router hears distance to another network, it increments it and broadcasts it back. Broadcasts are done in regular intervals. Therefore, if some network goes unreachable, routers keep telling each other that its distance is the original distance plus 1 (actually, plus interface metric, which is usually one). After some time, the distance reaches infinity (that's 15 in RIP) and all routers know that network is unreachable. RIP tries to minimize situations where counting to infinity is necessary, because it is slow. Due to infinity being 16, you can't use RIP on networks where maximal distance is higher than 15 hosts. You can read more about RIP at <HTMLURL URL="http://www.ietf.org/html.charters/rip-charter.html" name="http://www.ietf.org/html.charters/rip-charter.html">. Both IPv4 (RFC 1723<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc1723.txt">) and IPv6 (RFC 2080<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc2080.txt">) versions of RIP are supported by BIRD, historical RIPv1 (RFC 1058<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc1058.txt">)is not currently supported. RIPv4 MD5 authentication (RFC 2082<htmlurl url="ftp://ftp.rfc-editor.org/in-notes/rfc2082.txt">) is supported. <p>RIP is a very simple protocol, and it has a lot of shortcomings. Slow convergence, big network load and inability to handle larger networks makes it pretty much obsolete. (It is still usable on very small networks.) <sect1>Configuration <p>In addition to options common for all to other protocols, RIP supports the following ones: <descrip> <tag/authentication none|plaintext|md5/ selects authentication method to be used. <cf/none/ means that packets are not authenticated at all, <cf/plaintext/ means that a plaintext password is embedded into each packet, and <cf/md5/ means that packets are authenticated using a MD5 cryptographic hash. If you set authentication to not-none, it is a good idea to add <cf>password</cf> section. Default: none. <tag>honor always|neighbor|never </tag>specifies when should requests for dumping routing table be honored. (Always, when sent from a host on a directly connected network or never.) Routing table updates are honored only from neighbors, that is not configurable. Default: never. </descrip> <p>There are some options that can be specified per-interface: <descrip> <tag>metric <m/num/</tag> This option specifies the metric of the interface. Valid <tag>mode multicast|broadcast|quiet|nolisten|version1</tag> This option selects the mode for RIP to work in. If nothing is specified, RIP runs in multicast mode. <cf/version1/ is currently equivalent to <cf/broadcast/, and it makes RIP talk to a broadcast address even through multicast mode is possible. <cf/quiet/ option means that RIP will not transmit any periodic messages to this interface and <cf/nolisten/ means that RIP will send to this interface butnot listen to it. <tag>ttl security [<m/switch/ | tx only]</tag> TTL security is a feature that protects routing protocols from remote spoofed packets by using TTL 255 instead of TTL 1 for protocol packets destined to neighbors. Because TTL is decremented when packets are forwarded, it is non-trivial to spoof packets with TTL 255 from remote locations. If this option is enabled, the router will send RIP packets with TTL 255 and drop received packets with TTL less than 255. If this option si set to <cf/tx only/, TTL 255 is used for sent packets, but is not checked for received packets. Such setting does not offer protection, but offers compatibility with neighbors regardless of whether they use ttl security. Note that for RIPng, TTL security is a standard behavior (required by RFC 2080), but BIRD uses <cf/tx only/ by default, for compatibility with older versions. For IPv4 RIP, default value is no. <tag>tx class|dscp|priority <m/num/</tag> These options specify the ToS/DiffServ/Traffic class/Priority of the outgoing RIP packets. See <ref id="dsc-prio" name="tx class"> common option for detailed description. </descrip> <p>The following options generally override behavior specified in RFC. If you use any of these options, BIRD will no longer be RFC-compliant, which means it will not be able to talk to anything other than equally configured BIRD. I have warned you. <descrip> <tag>port <M>number</M></tag> selects IP port to operate on, default 520. (This is useful when testing BIRD, if you set this to an address >1024, you will not need to run bird with UID==0). <tag>infinity <M>number</M></tag> selects the value of infinity, default is 16. Bigger values will make protocol convergence even slower. <tag>period <M>number</M> </tag>specifies the number of seconds between periodic updates. Default is 30 seconds. A lower number will mean faster convergence but bigger network load. Do not use values lower than 12. <tag>timeout time <M>number</M> </tag>specifies how old route has to be to be considered unreachable. Default is 4*<cf/period/. <tag>garbage time <M>number</M> </tag>specifies how old route has to be to be discarded. Default is 10*<cf/period/. </descrip> <sect1>Attributes <p>RIP defines two route attributes: <descrip> <tag>int <cf/rip_metric/</tag> RIP metric of the route (ranging from 0 to <cf/infinity/). When routes from different RIP instances are available and all of them have the same preference, BIRD prefers the route with lowest <cf/rip_metric/. When importing a non-RIP route, the metric defaults to 5. <tag>int <cf/rip_tag/</tag> RIP route tag: a 16-bit number which can be used to carry additional information with the route (for example, an originating AS number in case of external routes). When importing a non-RIP route, the tag defaults to 0. </descrip> <sect1>Example <p><code> protocol rip MyRIP_test { debug all; port 1520; period 12; garbage time 60; interface "eth0" { metric 3; mode multicast; }; interface "eth*" { metric 2; mode broadcast; }; honor neighbor; authentication none; import filter { print "importing"; accept; }; export filter { print "exporting"; accept; }; } </code> <sect>Static <p>The Static protocol doesn't communicate with other routers in the network, but instead it allows you to define routes manually. This is often used for specifying how to forward packets to parts of the network which don't use dynamic routing at all and also for defining sink routes (i.e., those telling to return packets as undeliverable if they are in your IP block, you don't have any specific destination for them and you don't want to send them out through the default route to prevent routing loops). <p>There are five types of static routes: `classical' routes telling to forward packets to a neighboring router, multipath routes specifying several (possibly weighted) neighboring routers, device routes specifying forwarding to hosts on a directly connected network, recursive routes computing their nexthops by doing route table lookups for a given IP and special routes (sink, blackhole etc.) which specify a special action to be done instead of forwarding the packet. <p>When the particular destination is not available (the interface is down or the next hop of the route is not a neighbor at the moment), Static just uninstalls the route from the table it is connected to and adds it again as soon as the destination becomes adjacent again. <p>The Static protocol does not have many configuration options. The definition of the protocol contains mainly a list of static routes: <descrip> <tag>route <m/prefix/ via <m/ip/</tag> Static route through a neighboring router. <tag>route <m/prefix/ multipath via <m/ip/ [weight <m/num/] [via ...]</tag> Static multipath route. Contains several nexthops (gateways), possibly with their weights. <tag>route <m/prefix/ via <m/"interface"/</tag> Static device route through an interface to hosts on a directly connected network. <tag>route <m/prefix/ recursive <m/ip/</tag> Static recursive route, its nexthop depends on a route table lookup for given IP address. <tag>route <m/prefix/ blackhole|unreachable|prohibit</tag> Special routes specifying to silently drop the packet, return it as unreachable or return it as administratively prohibited. First two targets are also known as <cf/drop/ and <cf/reject/. <tag>check link <m/switch/</tag> If set, hardware link states of network interfaces are taken into consideration. When link disappears (e.g. ethernet cable is unplugged), static routes directing to that interface are removed. It is possible that some hardware drivers or platforms do not implement this feature. Default: off. <tag>igp table <m/name/</tag> Specifies a table that is used for route table lookups of recursive routes. Default: the same table as the protocol is connected to. </descrip> <p>Static routes have no specific attributes. <p>Example static config might look like this: <p><code> protocol static { table testable; # Connect to a non-default routing table route 0.0.0.0/0 via 198.51.100.130; # Default route route 10.0.0.0/8 multipath # Multipath route via 198.51.100.10 weight 2 via 198.51.100.20 via 192.0.2.1; route 203.0.113.0/24 unreachable; # Sink route route 10.2.0.0/24 via "arc0"; # Secondary network } </code> <chapt>Conclusions <sect>Future work <p>Although BIRD supports all the commonly used routing protocols, there are still some features which would surely deserve to be implemented in future versions of BIRD: <itemize> <item>Opaque LSA's <item>Route aggregation and flap dampening <item>Multipath routes <item>Multicast routing protocols <item>Ports to other systems </itemize> <sect>Getting more help <p>If you use BIRD, you're welcome to join the bird-users mailing list (<HTMLURL URL="mailto:bird-users@bird.network.cz" name="bird-users@bird.network.cz">) where you can share your experiences with the other users and consult your problems with the authors. To subscribe to the list, just send a <tt/subscribe bird-users/ command in a body of a mail to (<HTMLURL URL="mailto:majordomo@bird.network.cz" name="majordomo@bird.network.cz">). The home page of BIRD can be found at <HTMLURL URL="http://bird.network.cz/" name="http://bird.network.cz/">. <p>BIRD is a relatively young system and it probably contains some bugs. You can report any problems to the bird-users list and the authors will be glad to solve them, but before you do so, please make sure you have read the available documentation and that you are running the latest version (available at <HTMLURL URL="ftp://bird.network.cz/pub/bird" name="bird.network.cz:/pub/bird">). (Of course, a patch which fixes the bug is always welcome as an attachment.) <p>If you want to understand what is going inside, Internet standards are a good and interesting reading. You can get them from <HTMLURL URL="ftp://ftp.rfc-editor.org/" name="ftp.rfc-editor.org"> (or a nicely sorted version from <HTMLURL URL="ftp://atrey.karlin.mff.cuni.cz/pub/rfc" name="atrey.karlin.mff.cuni.cz:/pub/rfc">). <p><it/Good luck!/ </book> <!-- LocalWords: GPL IPv GateD BGPv RIPv OSPFv Linux sgml html dvi sgmltools Pavel LocalWords: linuxdoc dtd descrip config conf syslog stderr auth ospf bgp Mbps LocalWords: router's eval expr num birdc ctl UNIX if's enums bool int ip GCC LocalWords: len ipaddress pxlen netmask enum bgppath bgpmask clist gw md eth LocalWords: RTS printn quitbird iBGP AS'es eBGP RFC multiprotocol IGP Machek LocalWords: EGP misconfigurations keepalive pref aggr aggregator BIRD's RTC LocalWords: OS'es AS's multicast nolisten misconfigured UID blackhole MRTD MTU LocalWords: uninstalls ethernets IP binutils ANYCAST anycast dest RTD ICMP rfc LocalWords: compat multicasts nonbroadcast pointopoint loopback sym stats LocalWords: Perl SIGHUP dd mm yy HH MM SS EXT IA UNICAST multihop Discriminator txt LocalWords: proto wildcard Ondrej Filip --> ������������������������������������bird-1.4.0/doc/old/���������������������������������������������������������������������������������0000755�0001032�0000144�00000000000�11606273733�012753� 5����������������������������������������������������������������������������������������������������ustar �feela���������������������������users������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������bird-1.4.0/doc/old/status.tex�����������������������������������������������������������������������0000644�0001032�0000144�00000005477�11606273733�015035� 0����������������������������������������������������������������������������������������������������ustar �feela���������������������������users������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������\input mjmac \hsize=7truein \vsize=9.5truein \language=\czech \chyph \centerline{\Big Projekt BIRD} \bigskip \centerline{\Big\ss (Basic Internet Routing Daemon)} \bigskip \centerline{\large\it zpráva o~stavu projektu ke~dni 10. 11. 1999} \vskip 0.5in \leftline{\Large Obsazení} \noindent\halign{\quad \hfil # & \quad # \hfil \cr Vedoucí projektu: & RNDr. Libor Forst \cr \noalign{\medskip} Úèastníci: & Ondøej Filip \cr & Pavel Machek \cr & Martin Mare¹ \cr } \bigskip \leftline{\Large Specifikace} Cílem projektu je vyvinout program umo¾òující dynamický routing internetovských protokolù (IPv4 a IPv6) pro operaèní systémy kompatibilní s~UNIXem (zejména pak pro Linux). Tento program komunikuje s~ostatními routery v~síti (respektive její èásti, na ní¾ se dynamický routing vztahuje) prostøednictvím standardních protokolù (RIPv2, OSPFv2, BGP4), vymìòuje si s~nimi informace o~topologii sítì a jejích dynamických zmìnách a podle takto zji¹tìné topologie nastavuje routovací tabulky jádra OS. Program dále zaji¹»uje distribuci routovacích informací mezi jednotlivými (jinak na sobì nazávislými) protokoly, pøièem¾ tyto informace umo¾òuje filtrovat podle pravidel specifikovaných v~jednoduchém programovacím jazyku, èím¾ lze mimo jiné realizovat policy-based routing, který je jinak dostupný pouze v~drahých komerèních routerech. Projekt si rovnì¾ klade za cíl vyu¾ít nejnovìj¹ích vymo¾eností moderních UNIXových OS, jako jsou vícenásobné routovací tabulky, netlink apod. Router bude mo¾no za bìhu ovládat prostøednictvím øídících pøíkazù pøedávaných po lokálním socketu. To zahrnuje výpis stavových informací celého systému (routovacích tabulek, topologických map protokolu OSPF, atributových tabulek BGP a jiných údajù nezbytných pro správce sítì) a zejména zmìnu konfigurace bez nutnosti restartu protokolù zmìnami nedotèených. \medskip \leftline{\Large Stav projektu} Po ztrátì jednoho z~èlenù týmu pokraèuje vývoj ponìkud pomalej¹ím tempem ne¾ se pùvodnì oèekávalo, nicménì zadání projektu hodláme splnit v~celém rozsahu a projekt bìhem tohoto ¹kolního roku dokonèit. V~souèasné dobì chybí zejména dokumentace (její nynìj¹í podoba se omezuje výhradnì na~bohaté komentáøe ve~zdrojových textech) a podpora protokolu BGP. \medskip \noindent Stav jednotlivých èástí projektu: \medskip \halign{# \hfil & \qquad \hfil#\cr Building system & 100\% \cr Jádro routeru & 90\% \cr Správa datových struktur & 80\% \cr Podpora IPv4 & 100\% \cr Podpora IPv6 & 70\% \cr Interface na Linux 2.0 & 100\% \cr Interface na Linux 2.2 & 100\% \cr Interface na FreeBSD & 20\% \cr Protokol RIP & 90\% \cr Protokol OSPF pro IPv4 & 40\% \cr Protokol OSPF pro IPv6 & 10\% \cr Protokol BGP & 0\% \cr Interpreter filtrù & 70\% \cr Parser konfigurace & 70\% \cr Dálkové ovládání & 20\% \cr Dokumentace & 0\% \cr Online help & 0\% \cr } \bye �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������bird-1.4.0/doc/old/banner.tex�����������������������������������������������������������������������0000644�0001032�0000144�00000002146�11606273733�014745� 0����������������������������������������������������������������������������������������������������ustar �feela���������������������������users������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������\input mjmac \language=\czech \chyph \nopagenumbers \centerline{\Big Projekt BIRD} \bigskip \centerline{\Big\ss (Basic Internet Routing Daemon)} \vskip 1in \large\fixfont \parindent=0pt \halign{\quad \hfil # & \quad # \hfil \cr Vedoucí projektu: & RNDr. Libor Forst \cr \noalign{\medskip} Úèastníci: & Leo¹ Bitto \cr & Ondøej Filip \cr & Pavel Machek \cr & Martin Mare¹ \cr & {\I (tímto je projekt obsazen)} \cr \noalign{\medskip} Cíl projektu: & \vtop{\hsize=0.6\hsize Cílem projektu je vyvinout kompletní podporu dynamického routingu Internetovských protokolù (IP a IPv6) pro operaèní systémy kompatibilní s~UNIXem, zejména pak pro Linux. Základní rysy programu: \itemize\ibull \:Podpora pou¾ití obou verzí IP souèasnì na~té¾e síti. \:Komunikace s~okolními routery prostøednictvím protokolù RIPv2, OSPFv2 a BGP4. \:Filtrace routovacích tabulek. \:Mo¾nost re-exportu informací získaných jedním protokolem do~protokolù jiných. \:Vyu¾ití vymo¾eností Linuxového jádra (vícenásobné routovací tabulky, netlink apod.). \:Dynamická rekonfigurovatelnost za bìhu. \:TOS-based routing. \endlist }\cr } \bye ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������bird-1.4.0/doc/bird.tgz�����������������������������������������������������������������������������0000644�0001032�0000144�00000254740�11703033250�013641� 0����������������������������������������������������������������������������������������������������ustar �feela���������������������������users������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������‹�¨6 O�ì\[sÛÆ’Î3~Ŭò`*E‘å8µ¶¬-Y’ÕÚ²J–+›MÊ!‰#ÀÁ�’™8ÿ}¿îž�$¥$u6Ù<UÙÁ™žž¾ßàiZ%{£E½Ì¾ø£~öñóìéSú÷`ÿpŸä3ýöÍ×Ïž}qpðÍþáþááäðë/ö&û“ÉjÿèóÓØZWJ}13&Ó®3•ý3úsŽþíìýéÍ÷WçêÛ›woÕÕÇWo/NÕÎÞxüÝáéx|vs&_Ž&êušël<>¿Ü9ŽŽè)ýs~rv©£wç7'êòäÝùË7ç—ç×'7ï¯wÔéûË›óË›—;oÓ¼ùtVÄ{7E‘Yu0Úýûí»¹¸y{~üêâúL}…ŸXõ¦Ió\]äuU$M\§E~4–eXÿöâò?Õ·×ç¯_îLIt',º;êúüíËÜ|ª£ÍE¼ä˺ˆd]\äµÉk ôÇ‚ÿÑ«÷gß㟓- /öh|r]Uæ.-Û_×~|ê óò£o¯é¯Éñ‘§ŒÅ’ƒ}©Ñ¿÷É1PœàR}8ö`Ä ƒEK¾[èZ¥V)îŠo+àR:rç˜aE7 £r½4êhÏÚ¬ãºÑY¶R:ÇïU‘¯– Z“'i>W³¢’¥Ä1Så¦V×ESÓWgÚ,‹üÉ(zkj0¶Ö·Fig­²¢¸U@®ÆyK£sÚPÌø#ÿ\P¼:>:w,Øã—çê;“eCuo°0Íoé—…¾ج2:Y)ó©Ìtš›ßëz¤.èà-hG¿ŽöP­ŠFUfi–SS U‚g5=ûõ|o·‹Þ:‡ªœ­Êª˜Wz©÷ŒºV ÃÇo–OЕQó‚® •¤6.î@ž8«e±„4íF÷‹4^¨û¢ºµ´ V Q« ºÅy{‘zU‚ˆ¦¦ jP‹ ¤\59“ܤ xÙ/®îž*ÅýþŒ0‡ÙîˆoûÇÈ&ЂØX%X÷ºJT©ã[S[5ÅÆä8  i¹‰k“Dî\KXU¤q[Uq¯…ž¼¨UX:Tø"‡U„%‰ÌŠXg„B{ºˆâb¹lò4ÖµQ÷¸2ht­‘‚4Cl3[¨e–W9*2j|÷@Ç–L º(‹¬˜¯‚œ:$„|K_,iç,ÍU”uºÎmª¥¥­\…È×Uï‚H "FŽN<98èŽËg MåÄ´ÖSlÝç¦e¢KÖ¦¥5Ù` å¢x¡ó9­q“”¬ŠU¶!@¦©õÜ0Rþ.´ ²2mÒÌ£’›{ÏÞM‚ E>RïÀ:,!êXèÈÈâ°/1 “< R㯘ڸÁÂYZ-ïi‡\æfAâTÇòY:§581"ù(JÝ5_)¾à мÃJ<L†ô9­”-Mœ‚øï^צó|Q·Æ”ª)E(²¢fr,Òùb�€¸§ ôLãCrÒ;¨V®æ&7•Îöʦ*aÙHÐJÖʤ�{FêuQÕMd«!4Úò5*Í<´+[‘ ºÃÇË‹ÿR3h6ÙZÖ ÍÚ¿[­T  âZL3Ä”MUÌ á½Ó"G#Ò7b10Éé¤8.Dî MšLdÆlï‘¶‘·z'Šì^ß`²Õ#þAÖù"$ði.-ò=&!0Oa±½Y òGSà=Ç}p¢ #îí]©+’·VE2 •³r*­»šn£íª>$eŠ›Œ–¬)”ˆ·É“VBhûû™Ek¨‰st4W­³í©ºž)%Ö3¬îØHÜ}.¸%jp}qŌ٪7@ðL ˆv³Ê<ùo3­t€,êº|>ßßß~¢oFE5ß9Þö”½?ÝíÝõÍÙ�[4Ul€ýÜŒ@×1¸ówè»/«:À{l™å‹u©§iƒcØ DYºLézl®Ø*ƒ8bn’ÈÚV­WK8ó‚ä±ËNmÏßõåЩ¹«xW¤ é’S1è§]@!!#Øa‡Öئ,ñˆWGƒ<˜xáÄÁâÝC]$zÏއËDБ»§&ò«sƒÌbÖÔþ2øV‚Ä@ˆx m ©1âÈËZR}€,¯øÐZàÍÆÕh ›1R'¸ÿÜ ÙÌh‚Ygš¹[ZX}¤àýíÅñ‹Åó†=·( xÕ²Éê´ÌÌš®´ ˆ0¯Ä¯“ÌÞ땺r`ÔàÕÀßí/ö<»È!OKMž¥³*p7YÛñžŒÿbž"]iàý:­ðk¶½ÿpõún2Tüïá–ÞIw^§ÖPhÅžWnÍV±Ý¡Õ]Z‰f{ð´Ô|¿CâÄúÚ<I:›AáózÝ wY<�ýè”î!d«@ø=¸]Óz˜V øü¥,p &¥9y6¢XDÑÌu<HâL±?Á3àc¼R aO Z"®óX™ùDFGÎbœ,醻-îÁª¿#qVðîõæ—ðé™a[§ÎV"€€V™=2†d¤ù"5œ.”Î. H!l€…µ¦ F3‹œåuáG÷lŠ™A¼§D$Oï ¸Q“ƒð¶µ3¬á¸rºÚ‚® %v»Œ)‹{ð¢É4{Þ Jbö3Ëéz`ú¼aÌÊÔ±O MbA2a`ÛàîŸé¼Öð:5GïH‚‰ W‹•Mcèé)l ÌÇ&±²i€áªÒóÆ £ÓŸ`Ôµ)›iGÈ®HHÞœ¦lv7'ë@Þ‚Â/©J§ìWàV÷!¥o.?ª7ÂDWü-µÜšÑCwjÍ+F‡Tìó!¬Èñ\TÃø`[´N 2…Ðá€Ôd´O '£gCï$rE&‹Š^ãF¯>œ Õ¥©ñ//!“ÀÏh™‹sœ‡uÕ�§æ{zQ‘SÄ Ðd ‘©ã`BA¯†ì; G€x¼D.žé*êè>a¼au©TH£z¶T\#[1ߤsÐ’$²A G‡b`8yÉ ðÈpÎKMo}¼wÏW@ð¤F0 Hlc å+„ÅÆ7±íÏHp`$šO‡<ûÔM Êmª4D´æòÍh4ÚuDX/KL¨,1y´,1¡"ðÍ2bÙ–ÊÄ{2˜0Z$ÛI 7e’W'KdÁFƒ7§§ 1©N3à¹|Š?úÖHzteªŒòßÞ¡1€h3ûµ÷Ž\¹¹º¦Š“ûC`žÑ½þˆðð.UãÆVcÎ\ǦŽÇL ÖÐ\žOsóŸï‹†µ™,ôÑéû³óãjooa²òhÌ_L͉h¤oœµQTD)(ÂK–'I?Ò%É«Î)ü—à ·f8{{&'Ÿµ—–wÏ<l‰wå ÛK )#!gcq²7 Јa{Á*¿ì`[r‹B!›AÑ(U´KÊo+áùdâ†ý'™l>·©7 >R¤@r±ýH”ТôS÷pÇ¥à–4Åo@¦õ೪XŽ¢–uû! ûá£ÂŽ%×.ÃÙ"éžÇ¥†·²jXá~LàØÇV|ž‘Ã9»9vwŒÕÑű‰‹gGã‹cwߣ³³cl!!š§d 7ÕšéAnü¡è ¬£A{jÒ?B$º9mæj ÷Ë¥R?²R†bb2h’ãmÀ;£Ó !.?…�|ó>x(_sz›v‚HR¾èúÕl _SmœZösXKh»AÀ¢« ‹ƒŸ½†‰¬ru§3ø $#?™ R5ÛØ¯°&M†<PgE$øÃ… àTTv-KÄð„h3Zº¡-(Õ|ŒÇˆdïµr;øS”m+aq–Bð‡ êL#B!Ôû²p§«1éä¡Î60nhuI61Kª¢„²¦wÀË EÃÖ¬°pJpâÖð}ªñ!ΉA ˜mÒhN'’0•Û‰Áàùûß |¶ÉÝW)Åø­8OÉþP|àÊ$žâÉçÃQÑçA·¤â$â!‡ù”lÈÓGm–\â­Y6¸m%ˆŽôõe 5*ú‰/?û¯Áõ×u7Ž»+LâçúÞ‰Õ³n*-uD*¹ä2µ‘XlÞAPœlUí;¬:w²D‚8å"PÎØó^¯(ÍÅáKç¯(sYÂÍ'€K9ej}΢[ XEQ®dDo0½T:±ús÷�7¹ÈEDb €¾°îкèO™ý¡úH’ÀL·ö¢&%J·-Ñ9òä˃²BU‰z{uN‘¨Ü!ÙUeþѤ6wTgÐÛpzrõãåùÍ_á6—EíDÞ™!NêƒA1R/N8¨äE]•¤ú(Ôz(ã¬Û2ÊÝ"=s•ÏZX´• ´š’´”ÂK Ó¤ Bq;Å‘‹:õDÈŽˆ2IZZ7Õ¼q‘Þ:S½wÜõòDoÞ+ óbZ$« Žw)ÀçsÉ@‚8QšÙV« HDZÜà`Ö’T³• "€M—)2"–M“ Zº,%¤çÖˆ† è[1UI–—Ì]Á“Ÿ[Α+;qDÀø¨p‰…af÷hÊÝZÒÐpeµÖ¦,=+s*BUXéiA¸kц<¢*U~—BM™¢ŽÏ S+@D A|àÒù¶h-moéïjæ>íÂ}ù@ÚiEö‰“ܬ£²`–N+]á*e]ÑÉV/-¢.í¾¸Ä²UœžŽ:Ñÿÿm+xìÌci›ÿwýÛŸÎõþ°3ŸÿØúõááÆüÇÁÁ¿æ?þŒŸ¿ìüÇÉ´›éùzóƒs ‡s ›k:kJ§À[Ö-žü®q‘ÃuÑÿÚ~ì-Çæ’ι¿:H‚%“ÇIðýv¶%º¹ D¯ì…ÖŠ×m¸F ȺíOa›Wy¼€[Hò¡R豑}`ŸÚصíz5ð!úUZšîøÁ¹nf.<%® R²mÑ#ºÍ‹ûÜ•å;{Œ¸fËݵö‡oîJ¢CC%ÖíI¥70ð+t’TTS¦Ë¹ÕH²æ¸¸óÖyCs"”®MSi,,ÛΠ€o_rßPà½éAÃx,^j{Û©FÓqT—ˆlö8¶+.®~¾1Q9ÔEFáŒË\~ûfãëc¾«Ì£ë,×E$Aì6xÂK]»Ê³åœS2sªºÚå¾·ÛÙ€$”gx¦«N‰§+QQG¢@K±É ^•®oZ62e*û¾PÝ“$ßcDôâÛ\€W!ˆ$vì“�ñµ4ñsY&e[ú$EŠ­¡c'a¢¬ ù6•— 7¯oS+}Fßh ÷&â ]ÌÍmäAlM&½ dž Nmx&ÃÕX¯Ý•Z 8 ìßkÌR,¬ŠÚ*¶d Žº‰‰aªm—ò½Ä×SŸÐ  ó'õÂJnvQÜÉ]C®â¸ûS© Ü­ô*R3R®LQ“ú*§hjGp\¬|½þÜeû!6fÛî‘ÚÎä×û¦¦†Ájæ ª´»ÞuS�1–Ŧ¬‡ˆF© #]ë"¡¶—o&“5:ɉWæ¥?Ä£H�!‘4ñ­õ½Dª’xê¯áQôèÏdP©çPµ¨# r»Â¦µq³ULŽï¨Ç²yМt\ûn!£;Œ”;Ša~‚ó›¾2¦U¡¤Ö5e8åoÕ¹Kq™®â —S†^w,ɬ¨L8¸/ú#>OrZø`(ÿºé¿lÿÈO‡&ØÇÿ‡ß<Ûÿó¯øÿÏøùËÆÿ§ÝÚÁ#ÿÓßøO~gàø»ÿ§[”Éo·(‡¿øcÉác¿€èRî¡òCš?|t„œ—¬¤¯Ÿ÷ôs‚jUS‘}³×4RKja@çê¦tÕcªã¬·z­'5h:|_/ö5@×.Sv—˜¨‚УG _'”ò-Oe4"uTkE<öœ:4ÔLm«.ñ`Í@h×BäJÐúpñæÛW¡âè'\t"E­0ÑâJcìîr©Ð=±FLÔ›)&„h¯Înå0WžSíÙ¡yp.òNal¨¨ °¢‰ù¹L#1­¤’+x*ª4MNuL÷Åø«è«±ÿ’kˆR‘¯¹˜ ÷_Rçô¤¹N?ü[»R³L©Èä/ô‘ ßV«;]¥p´¹“«èÛP”kž^²˜!‚ÙÏê×´’¼Ä%}­Èªv“?Úí|áö­ GD’L­�K¥±@Îo}•è­©¨Íýoªý–YOBxèÅ5Ë;I²HŸ Y»éu/s*‹ˆRψ Ò›³ÇÂJu°O1mASª¡ß"s£fmÙ7ëô\û#!véûÏa4¡¤Æ¾­_¨µŸ/Õ÷Ú+³,î|ŒKg»¹Š¦NÎ0t)òH7&û/z`>Ð7îØ~*ל„k`BÓ-_¬ãÔ¶.Ý¢œÒ°_¢¨“±Ðzç†-jÛP{„î=¸UZv€vP Ï$H_{æýv¾Úy€[¦@6­ö„¬öc6¼äMVL)¹uÚxõ§?@æqÖ@åw: x²Â;ýž*WøiÞ[:Ðî0òf?ÿ!}Q8ÑŸøˆ)÷[y¯âëõf.µM7Žÿìú©?p3Û5Ä雿}–n>ÑóóÏôM|É(…²œ ýÒGÿŽ´¹›^ =Ý…¾ó…7"A0ÔÀÍs ~8¨c"Џy[Uƒ9‚ïíw‹6/Bž\“%âùK-΄_P˜¥ÞP†®=µWòù0r·g!Œ%y…ï‰ ýû:ŽP¡²©Éë ºÃ=4$±Ö ½×UÎcŒ½§|)².òx¦áüc²PkMqy;Ç÷oýitwµS~ÿP¹µLÆvìœ Çw¯¥÷G%2<Õ4FW–0ѪŸñ0d•jó¦ËÔN q½`—#ë!ª1dÝÔ‹@ÞHO@u?ˆ1ÓiÆÖnÃÚMC…ƒ­"¾´RÉ DX¿’Ò ¿FB¤   ûiÜ«˜ÚE`*¯¸jUÔ‘-áÌàsžLè8~ÿ&•ÌÒáËu”q›6÷&Ý*f3èë<#†~è‹ ÃÞ;14iIï•øá훋Qr3&\nì˜f/abíƒñ$éI‘cû¬ðCÒ¾ºÓ^ho¿ŸmfcÂAÇæèÈ©kvl…e½· ûÌä¼ðë†ê€Û½Ým²^|4¿J&Ÿ‡j¸X1œvWD<(èîvî¶¿~³eU'Ͳü5ëM xw}ÃKÙüÐ:×¶uÓ’‚Ôi×0…—ôÂNy«`|@�ó!Ôª œ¿M`<"[¤Äö«r=&'®„槯Īù@•ýÊÏ2m'œÙæhθ|-½¦·ý˜_f`pEçÅ øj⪨KÞºŽ]“Ë€EǪ¥NÀ—†€q˜]â&êêwàîNÚ†}ä°wKì&©=þkèw¦Ï…-gŸ§óòóh4R?t/ô×Ý“ ;ü¿ ê@l¹B[àuãÑþJA¦s¢™4‘Ý­?˃;@öë7³@ï²Â Ëð’œKeúÔÛuzCñ¡Svˆ01ÑŸnò¦ðV÷¹'-$Ÿ«·N.Ö b‘OÔ±’ñ›Idµ‘Ýtßlñ3Sœ»é[š $xí÷2 2ª»önÕ=*ò—¢ù‘¾_ ô§°«è¼²ã&Ð$u©Ô«7W Ϋ•WxzÓ£3Û.ï•úRúl I¶þ± 'þ“òdv¢ _ꟗ¯«u-÷O¦&tXÜ$‘tæ<ÿ9æZl7ÔÔtCŸœÄðKo®g×9»]5à–GÓ¡Ý0ÆÔâ8]¹úQ+Ô^¸:rìgxüt¬¼Ò"0FêÄý—…ÌŒ؃N$ÛÂíèÇnD—YŸZ#ßL¯“…ËoÆ,2€M–NÌK¶Ê-t¶ÊŸ{Q}j{¯›qH8¸µD¶!·voÿKr*Sì$,1wne°ÍÕ((T›S¥’¹}î(ze¨Þcý X˜Lê¾ ¤M•ưJ“ \©KK 'ãªþñ+‡E'¡OçÁ´ÛÝkJ–Þ ÔÅܰpH¦ã^àYNav@<± !îá­óÂÿw‰bÒÒ‹/—¢ þ.¬ïx_œùÿ.‚f{³d`Mžþƒ†¼éE+„Dq(ä€Ì¾÷D£¶òdð Åÿ²÷¯ím\I–(ÜŸóWä¨Îi‘.âE’]rÙ3´$Û<¥ÛÑ¥«ëø©‡’d–@$ ˆb—»û»cÅeÇÎL€€lyºçmõLY"3wîk츬X¡1tÊu}(½n^Mùw’:ÁÕpwRH8Çsæô¤®g”5nÀW}úÅ€ƒñÑùE3T,êùMG‹ u äNþ“~*̘›¬¿æ?Á_A²Q‚‹áG”…ôן€|Sëë(¦<h‚Ú»Æ r>úNfÀ}‚ûŒ¼·Þ}Aæ1ÿš<€†hmá B£Qä ½7ˆPÚ<âz íÚV$hñCüßnìâÁ—ˆs{UËtC-Úe4ƒe«PÕa…Ký‘¾Ê9Rœõ¤Ü&†¡ ¶V9|2»Ê³k׿jηÉMüo!`ÆíuÑD@ÿ4«'”m'ÛÅRÅ:÷huUr:·ý³®ÔÏtæ6G 9€¡k Þ}ñ׸dïl·erù8É ßîÁ;‡>»ÉÐᮥs$ÿ:Xmöž²û\)7‘I³‚2æNd$þmyN“¸Yòà±»™ÆØÏ¢ ×Lú¶©;«Z ™m¿ X d¡­1­ÉùÜ× ËFÀ¢v–ÉLzßž|þ}NS½CyÓ'ß߆x«”]Èõ!ÄÔ‰°ótÀe”µ·€X‘É)Å•Úê ÓáP{gEXãqYΔm#ÙhâŠ5ªRF®ë þÄÒ<’ù­2Ó§ÉBŸ¼y™õpÿ�ÛŒÚÃNãÎd; öž?ß{ò$¿¼|tuõ¨ —‘Gzà¶¢¥ì—;ÿ÷÷ÙÿýVíï¡ëº–ôöÙ”Y-´CšÃXhFGľå;±CpAÍ�ÏØNÐé(‡v?Œ6öšÅ®éM€OhSq˜Üع¶Åž }´ Å#:Æ·wò/÷÷÷ó0\+‚N‡ï C¡íCí ‚øÝ»¬Gڅؤ?‹YT×ÚÇ ÝãábÅú*&_óÉ#5Oç®{üâwãÃk ã²‚v¶Ä(6Ö³“ÈZŒæŠ5£^-æ¥K(Ž"!®f¯*†·žÂÃg¤›YQ¡ Sâr¤V£jAÙDãÂR”¨œq¢r¸+5o^®ÜÅ«ü.kÑw»ý}J‰rPÂ-=®¨Ó­Ÿ©ƒ€‰]À¯ Oš8J’­v`¡ñuÙ˜xäUÇÔKB#ßkvÇØa>0:üŽ¢$?[N)âhËaö¦6³äŠØ·è êõh^)‰Heˆ´]q’éW¬w[ŠÈ•QóÅÒ¸Q]"ˆ· ¸ÓA§v-Ö÷FRÀÔÊc³À¬G&]ðVªÞ©žP@xÂø-2g’Á ¹—,:R˜½à¬65{ƒ2‹LHNž<çø…d)Kn<‡OÇ1ÐRŸŸ·>8­oû^É›1ãš34™Ï‹Ã¼`.nÖMÅÿuY…¶’ $›€lçNC.דØÉp1/a;ÞÑHCmp¹ò¼¼Äö2AgF¾‘è'ÐC¦f_8·úŒÒçÂb¶íVž ˜Jq«ÊÏ4ÉΊV¨#‘ÖîI°’ŽQÄFÖ¢9¡=AwZ–Š]Ô¤Áv8:Âд¿Î—,ö:¥hFú&€V÷SDà×r¬ iœƒ®yON¸²A¥D$� 2Ê:Å| ®¸&ù”­F‚ ƒÍ!ôÿ"Ø{=á4çs”°¦�^(¥jªR¶êL;è<1þ;âl,Ä©ºO£„ES~¥¹“ÙŽýœé D¸ÃRiõlžBŠ©j M!äñr6”žgaÎÉͦ ÈÒ¦qIh²äÒh±¼ ,€ªÛ å; Þ!y##Eìêuɯ؊¼d!öؚ¿l¼d~e/â“€ƒ”£2Ü´FwÓ# z"¬Ù.Dc]´Ѥ H§þ“HÍä;•]æT? |ù~È.ÉM‚°¥± .2|Í ~æÅó¤Å ÉÒ‡<¶:ºqy®“ؘÐ.J@,‹j~˜QñMôÆœ4ÃSYm˜é}® ½‹K¡#ãÀé&J+‘Gâ‡Aô„?õPêÔ0Í‘¾‚&J‡·§ª˜ᕈPî¾橇&9­N/Öݼ`[Ž> O ³—5q A›G2[I×tÖoÊÎ µ…7Ï»œO†n~b'O–-¶Êº;«¤Ý’Áhi¿Ôîc„õä?nþ“Fa¨Úÿ. gÖs°!<Ãαø@ê=n½è.á‡Yu2ÏI/Ìx·zû·ìˆÎU@:kÈ}^Ì—=ÍÇF¯Ÿ[º4[ËdT»«ã£ú(y´+ö}:­ Ô¼ îàûò&ܪt1„s %™±Ö²š3WÞˆR4:ƒqSÒUGÈFà=Lî“àÄý ,†"*&(ó¯ÊÝ{ÀÕ  Í&Åb\&ZÆ®(ú—óuÑ–^ég¿Í>eofªœrb ©ÿê‘Lw\J¾:MËzaR»L³d…„ÕŸrî“6½d9‘özÜŒö*º¹…ú:Þä?íý5ÿ ‹@™xìÀ¢Ÿ$eúÉ€¨°è78×ÜEüîëü'üæßó¿ö[b ‡{Ê@†d'qÖž?¡LÁÍ*.çL²Ð²MÆGEó¸§õä#hdqŒDSU Üî;aÛïín†¬ócŸg‰á Sl—Ñ„Á‚;J3o.¶W³+Ê0?x”$wvX€‚®4ïÀ»Á.6Yq®#á¶]– ¤FsÕ94f ý¯©á|§:wû®6¶ðÏKÎgx#Îc¸ÍŸS3A»H°|Íe9™0žÍØ÷B½6ð­é1,¤·YÂP]Lë¹0ª¸eDJz6f®Öò‚2�Dø4ü¢%£•¬Øo(â[cž2Y(jë,ž••Rº�ß,r´Â*œïc)¡J)$Ì_它\iœOÊóÅÞ¢Þ›“WŒ&…ÈR=;¿S..÷ï ò=úËá/„“UÍö6=Á®ÀÉ„X–öIœ¼3]Ap ðbl¦CÅMÕtN× ‰Ìà6kHx]9@Ñw؉ÈZ LÕ°·œ½EOpå0§é�@ íëãñ‡(è¨5¦i¤Z¸648 ·é¼,ÌKº<ó‰‘Ñ5åmô”±î,H;‹óÅ öÀ5o©~_çÿnë³Çf\*ÊŸîv ä™\+I[©¾;ìíBXìÚá¿÷忬W³Åì¶þdä(‚óˆý¢i·r×­ÐØÚ;øÃáðàáWÃáþ½Ãûƒ\ÿ½þ}ðp“¹q÷S‹D‚Ú‘6ÊiÉA§Î’_rþ ÷’Ï|ëÉú¦" ß¼“®+uJÎUþJÚ"tý‡„BÃöc“%ì+úÑ׿±Ë¤!4÷+r-ú_Hˆ·û†ü¢ýüZEúëãWêlOµÅWúh–Y°t<üT¿ÀGú#ïÐül!dDj¡šåì-†ìx§Âu˜qØV xì fVÒ¥À£laµ‰¡ŒÝ€ƒö¯ÔÃ-^ç3Ê5f%eÐÓGmôˆ†ÕBBü$ÚâaâÈr&6 ,š³G·Vjû;&+¥ÏL¬ÿ¨Å9~Ù^!ï•îžµ7MLùò ¦Ø¡ùz>ÙúsÔ+Ø-\-{r[öjáÉ I7îɳa¤µA¾³¿wøà T„Ñ¡o3˜Q2ð3}Y×A… ï8©Ðb#­C#å•uR”´L¼î¼S·|Ø“  »…‰ÎE´0c]‘‘2²è†·|f_#ì†âJÜfsÒNÜ~m¡•J›;NJt,ÉR…h‘tKòÜtæ+º‘ùHõ P)(b5,ˆ¢_s–¿¸ã½««½›ð'ÿñÇGÏŸ?zóf…)ì¥â-˜@àÓúŸ~Ó Ü_Ò‚ kè±_þcm}ÖÅN;¼Ÿ1‹ù¿"/Âÿ¿üqkÿÙ¾qKý¿Žö»üÿ]ÿï7ùóŸ–ÿá5gåIdg ă  ޶$€¸¿ăõ¢óhsÑyÿvˆðÈýuá÷í©óœoAî"óRe„³ÎŒWÔ²Âê41óqÂHMnCÒŠ”üA9¢ÁÞŸë+hŒ…U*‡N V‰¯S]W<+ݨC?58ÿ Œ»‘0AÈX * Võ ¢ýDðƒf2­~…?tøƒ´ðš9Uò 4Çj €÷®×£€ž‹.Æ'™èȼè1.À ÖùïäÊÌŠæ½ÿ@,ÔRR`Ù˜ŒÿiÁ•œuP„ôŸ«¶dT`˜¿äI“¹´,ÞNYP…§r%¤³B‚3eOX(„“¸ïÁçnS½#QDõp8Œˆƒ—6½÷¡ÕẒˆ‰~‘òZQIaÁY…Šì™ƒr=ÕD8VÖ/î 7ã0®so™P-µi,v“¥›;ü—´çߌ°qBâËyã&%ª_dÂöß”œ]«aIAƒ…ïqâ|˜ôl'††Q�í Bo\�¹*8HL'õ9ªÜé$séË$êÒŽõÄ<¤”9™Tu2A*- P_U x½”“%Ê) §¼Úf— #?›Wå¹%yHD—âšØkúaYÃÆC1±æg!ÿ9új~ž–Á¦=«çÍÏ‘Âígc½IÕã'Ô¨Šk {’b\,0_¢t‹–EôØ„¿ÚJ9ç›�ÆÔò«Xˆl.¿Åç°è–ޱœá˜BN½K¦tøVA¦ÞoG#ñ§pþÚÎzB'¾/-ËCpÝhcº›º¬. “D‡=D/MPЉWõ …*bêe|ú0›gtÈ"ëÇ~Ù—8€Q3Nž”ï`d+q­î‚m°OëB,³‚/ÆÖ’̸ ŠêŒÿš™Ž´ŠéÕêñ;Xé´OŸ0äâw Z…ž‹LÄ•øÜãÒá %¦Þ4®²*;% ÖòÌê·òââb^^À_nE]:’êŸØæÂŠžÅXÆ•Ñ]Öòáîhæ„ÐÔNMk$ª‘òRû›ÎCÖäþí4—yb4¤ ¾ Y¹RVv³Å*’ª±k×Gãñ½ë#a|ÜÁgQõï^ÎÕßÉî¶¶ÔÝ•r-Ü©¿`£I ²š}ßp¾÷ŸšeXèùMß7ŽÎÓÝÜpØöÃC ¥Ì€G8ÈŸ¿}Ç'ϲº‚feÄ7ŸExKgä)Ë]¬<£V¬¤W\•MKmlaé\ì"ZüôS˜Ü¿¦ØN ¡dh‹Ð%ùQ„ãqC䯯„ë²ä¿`¦©}*òÝÏ ¿Ð¬ÚþzmS¤îœY·j%PúƒU°;Èô~Td­B×@‹µ£É¦FKÀi­ ¨¬n™”ê¬<Ͱ)(jâÄŒ²·! ÕÊ+ûJPRÀ„Eô½’‰’ߙމµ¸�aÒf¹Ü›szBŸ¼:tØ,ÂþËu¼Écœ`µz+?‹¢‚{Š—4A>2*ÇòqFD</yt Yx¦V2ؤXHQA¨²]¦0õŠN¬»Ù5Â+ómÐ¥¡)&w6mðigI3Eˆ †+ò˜šQÜyMz» Ø5Ê`‘"ÍÙé£ëð~gØu¡wIz?”K¾ˆU²¤ÇŽªq–7ÿ&ɸ‡3Ü£Òºh8;Šé®†¸jOȹ1Ps, ʹÕBä)7ÀI Þý9­Û_áË1'3Ò1²½Ç½Ò¿p¼ÊbòrYvP‘Û¡q™òÒ•–´I½þìÛŽHÔ¦uê¨Î[Jf‡·.¡p.FDAFY£¶fåZQþ» ˆ†”dÚìô˜£�L$”A1±A÷}ìžj9pms†~¢š¬¢k:âÀ>móu9©‹q›F“ù˜c¥¯¡‹i)Õ,)¥êˆ'Û¥T“lŠÌ9 `Š)Pà)(°ÿ Ú]W¤”<Ö*HS¡³n,~‚Ú,µ¾‡;C‹°º˜ç‰BœiRZž Ÿ b±%=ü.à º,:PøkÝO »¯½”äVé’ÉÖHËvo¾|nWÊmcÁ¢bëY˜¡7šˆGÀ}ÒI2߬¬C3ÚRL+\3?K>ÍÏ: 'ß~fÌUÌ’oJM¸C#Ëv¢ ™àÙ¥·EóÑÄa¼Óovd¬·-¿çæÝüS5ý9LÕ_·“œ…5ý‡¨dTؼÜd6¯JÖ…=G_ &öD4rÊÕ\¯²FÙÉÍ Bª€BU:Ó^I71CÞx/PŽˆM Ì÷F»mêÑÅ;q�õ<³ÞíFdk(´N…ŠÃq-f´1çUaé+â8RgkØ«Yÿ,P¸™ÎS<ç;Ø54éå:œŸjÑ>Œ-¤# Sµò Ås<=»ŽlEQúc¯Cò‘oÉ©ñ‡åµ­U1¹.n¨˜W8ÇåXгřsàc߈™¸Dß—ïœÇ.«A( µè;é ,)öÂD„yºTî]¤uœ$d qCUèЛÕÕi“äÇ|æ« ßj{³ U×#7Ê”-÷b¦ Raì˜'dV¶-€%¦ E«?•Î)©ãÎôÏ`Þhåå?ë9ûÙvìÏš õóª,;eèëfÚÝäþŒ‘šÿ¢An7-Ÿíëã¿÷Ãß;ñßûÿÿý-þü§ÿ~¯)š+¿7üÞß2ðû`«ÀïÃõâäþæâäÁíßðȃußð{›³UœÿˆÐÿÁZÎÿ›pþ»â[\Õhi“pg/‹‹ +í¼¨÷ &äÝåøqÍÆ+ºyíí:â–ŒŠëÔg]ª’$hCìn@ö˜†—†ºI dÁQÖX2㥟áP< sMdg¥‚GQ •ãuI–iË…7¾!ÍÚ§8Vb2™@8Ô˜êü.7¨¶¾A7%¦ úØzÆ‚jyù‡ÔÁÉ'Ô«FžF÷hÝ#º ®ÔÇ häB 0ú$9íÙ—êÊ$‘§…6Üx Î Vß%бÛ(hTX]­&:IP™QÐþRÑ<yöµ’ÒŽgËa3L])9Ø›´!e†Am%³0Èoâ§ËBCÊrC[çQ›ä^ ºÜ颮OÏ‹9AØ)šÿu™Û+ãªÛ!ÉSvQæDüSF>{ý^οqÏEf÷rÒx–ùô…ƒ¯;¿pßJ~ÿï¾gX|M\ô½Ý’BTw^,σ*È_ÜI;ÙyYÀˆwê÷«é#BiÊr·*°Ëùe8à„nˆA²­2÷Pi^>YüŠÏseÔcÇK/YšÂ4«®§féÛ5JH%Þ}ëú­n$Ÿ‹àUÊõP«Ô’ fE5o$=—yÂd§põÄ´qþ0 °ç+ìˆ4ý”kT*XøØg}{- uÕÙ3Ó´ÉøNÀ”¨>1A|D:#ߤj¥Á:ÖõvWœÁÞͼoPÂ]õäY˜¥÷ ™»rÇÅÄ<\?‚m­& z"Æak%2¡2 ‚\>³RÜØ¨h‡4ö•Z Bý%\FYLS…6@ £Õ/#r¬‡gO¶vÐ0MUË…[—™HxWÆïð&©xD2*_#¢ôìâ](|óT¿éeUú› 7ЭÇÿÔg‡š³ﺖ8b¿ZqîßMÑõpß<¸c„ÂáåhR SQŠƒÛá•ÎU@80|º*äœ''»­½ï.´õ,~3ôaÊå»yµýºãÀ4¼Ö_˾ÜÙý:kMÍ΃ÝxŒlå(•QGÌUÔäZò²´[ ¿ çã'JÕÿ«'CÖÌé°Gè!Ž-0çQùõAÉ#¶R6lÑvÝŒõÇ‘ÊÉë;6éÈ“½.n ›Kgç¬''t`YœH­`ÊT[’Z,^1¦H©Ãâv±„ ˆV•2g@šÜ¸Nñ%z¨6LÆ1v%!JÔ„èæHUT­JCóåÔ¶ˆ:Ó jE\rƒÛ8*PÇù” ÆÐ% °;:TenÑ-pQ]~$ë‰KµI‘r½LÔÀF˜¬Ø[EÂúMGnÌÂzNþWè×£ÿ@ɬÿ+ÞcÔÙ^cPLv‘ƒë:øÍH¸o#X±Ì„ õÞW¦ŒËœbû;¤òãG‡ÍwïïïfæÂÁÑðhxxïèPßX,§“ƒU¯~Ùþ ½2©W<ßîeþ?3<ÿÇÉâkÂÆP9ýláÂäôïsú7#6$¶ù×á°;‘§#(\ÚÕùPD Ú–(H_Õì“FÒ•¬m í,´uõ}ðÈ‚µ€©eŸA°[öWÉ?!ÑC*šÒ$ÐËÃü»`“Ë| Ñ|ñQR¬ø §Ên8ÑSé 6kdqt¸ípEc‡Y­œù,ÉzÑOŠvV×-o¿±\ägÜA|°-É"Œ£p×B%×(›M‹‹DŸŠ5z~©-‘êwã ¶Õ]])û\õ Œ… ;#„~càæ‘è—‚ &m]ËD@^Ñ[s¹w¸¯Hšþ>þs˜¿ šÍ9¬I%DCýWcíÍýÜÿxpxtßÄåM°a?Ò—‰rŒ4ñYsWÐsèó Aó]5PhÅd1^ Ñ©í)Qk¡uN‚ŠEôƒÜ'ËñáƒG†ù³Ð0iU¼ÆòÐ�©§Äå\(Va‡F4xðð˯v=_'«ƒ2B‹aŸ•™ÅˆœLví:KæÐùb~V-æ”Õ¨k©xš$d`]øýá ÐÏwÜéÿº,Æ«&m\„K rxu €õ–ë[gFSîùô‰ywå܊‘Ù俇6šZ(Nĸ”Eîò6€ d½«%T¾¤„[e@ÏÒ;­sÄ3ÈDàZÉü†%Çݫ΄+óÖ8Ë€±^üëEíS ¬§¿%ãL�g˜’bzczgØ”p u[š»8Ìßðè&2Y﮼ә e¿O¸r½™õL'†€¥ðšÙoŽ¿?‚Ø–ÔvÅbVMÊ=h<)x@�þ%G&A³W~U˜ á¦Â’ø¡øQÑûuÐ"àå-rGóÈ‚bq¸OJÂýý.:§í?:ztÿÑ£ƒ.W!ñ¥X(€(+ÔÞ…ËNL#ÖãG¤"VtT3 \é…&G%/k �O´=: ÉAyZ8Ë“W™MÅõL ‡GÃûÜ—¯vÉ}ÃJƒNÑÔ­„Ãx´[\Á\‚4‚œ.W*€¡ÜxfRN/—È Á?õ¼§û4:=ª™#V»GQ»¡‰ÎVÏ×<º¨<I^�GFn]ÁLWLGÜ[°‹ðKv�Ä­P~$þIq]º¡Æ`~Ú±¢ÛÒenCÓßù\Æ““¶ÑZOf¬bhAÞ²–åh¥äqWÿFœ¶#ÖÁ´‡8ò2K²¸ÑÛW`¿tä¦T³™ï‡ÉO ²ÉJi®Pœî…ÖŒHiÁd¢¼/oðw2eѬ?Nå¥Ã¿ø=›ŽBÙûưS/ŒgßL´{Æöí9,ÅâÌÅœ Ð{¢Ž×óê‚ ¡ÒfU[”˿᪠RÊâ¡—¾–7N”ÊøäÇnšTWÁ5Á­MrµQ©Š¥£Ñ†ÝbÕqHï%çà úXó™)F¢åÕ‡H~—ö/ëéñC…¶ýDîÌëA~uS„}q°ßZ%i„~ïWijŠŒÞv%<ð3 ågÒD~®f?óyù¹ýLÆ�!;Ò]®¾ÂŒ]Lç€Ä\Ha @‚¼à2n±[ÊEúÈtàxÁsòJféE,*2(Rí%ÞïäÁŠ]Ì£«ýS~0ÈùƒáðKcJ ÖvË— è…d7!$˜ä $§MM³Fé¾GÊ}P!é'ƒd¹]'HQ|¡+ÖNÊ—SB†È·v@ݯSîýýÝᢼÛsg’š»L_ Ã>Ø·½ÂŒ¹ôÌ?£ »'W¶úE÷`Ãá™þÔM€Õ¶ÃM ÏXvO ]ÌO’¦é¤Ðl%šÞLÂú4*奬÷UyU‹ÒŽ’ØÁìpç‹ÁýaÐCviîÚ×ÉØ—ç¹;ˆ=´¿R]±Ìþ OZdÎ¬ÇØ˜+Ýóýà÷Š?Ú‹AN+…É÷43‘ÓG¾ˆkôÔ5OhÙj®~Jt1|Ùê‹ BlYõ+eªÙ)$kL$lŠûßñÎÁ:~óBxæ;Û¤-ñ*JîİiÇð$Ù%÷cø ùé‰’Ž ^zR„:ÒU¥~�u§Õ´¸‘™˜| VΜŸI¶ª–ž’òæ,Mhx_šs|¡øV°¨¾ññ:ù1É×oÞ°¿ï~'"(¯ÇãÆýX×:ŸùŸ–#ü¬ ?‹?¤7ƒÂñ}6ˆ«ß™õpÿþEø¿½ðï?„å?ÈÿêÛçWÂ^ Oþ ùÎÑà>çûƒ¯è_‚Ô ÿy88Òß¾ÿ~–´SJ;´3Üý2ˆ?ù=º¶æÁÃ/ðÿöðk¹‚ œ§m¶]¸ ,Ú_ ¬#=’„Óg {Ç¥cX.²ÆÁóÌH…]аòg­’ûwÔʼ†þJEYéï’ËDvMh#¡‰o1(£bÚ5ÿê¡{õÐ>o÷_&¤c”«½šîÐW¤æšˆ€©bšzØÐøvÔ{˜xˆ"Z®äIhîÒo‚ɤãŽÊ\Ó¡­Æí’c‘nv‚ßkEZ6n‚çTZA1‚>F…]Ch¬<ȹ:s-™q§¢Ðµ9Ì_žaCM”+4²[êèÀÉöê!Àlˆ¯­¬ûê0å§…Ä3ªI2G²9Å=ÐÚ‡² ŸhÕ WrvË«€³Vw¶m¤¯Â'¸¯¢ãV™ìàð+ý Ìá«[Fé-ýó[ì”̱<Içmï*ÍèêBD«§eÿñï¶ý~é0²t3fÍwÒÆ”rPùÓ*q}ïáÆ¦›j!zýëïƒüÕ¿ï‘¢!ÿûÁÃÁáýH÷§{8Ka-Ú°©ÇaÒ­w&+W<:šªõðQëaçv(Õ£pøÏôÑ–§äñÄ5A»íà!’÷‡6 }Úÿûá~ïÑ1ëÓe!ÏÇ®“˜EÿÀîªO²ô¾Ÿxxoîîõ|- ¿”sEd‰ȤQÛ•ÿGîùï_ºá‰[SIÒõk¿»—¼… ¶Õc*.¾×,n&e¼éáB{Aw ­†ç-   ˆ¬X•cÒÙ™À¢é¼/ûÏ6‹ü>!ûL[d}O¥-¹[¨ÕØEÚX[aUã•ÝNªYjÁWËaÒW‚ÅJ²œ6Ö˜Õ÷Z“Ÿ¨¦WU6) J R†d‰Ïv ‡xh9ø¯L€vó’“ü¬‡ãúûµ.×ëÙÅ,<y™U >˜EQúi}îͼ¹iˆÝP¢~°êõ2!ë±EÓÞöÕÂ}"}ò<ÂA¬"avÝFW—3ƒ‰ä¾˜“~²Ë¥�Jq3=-OŠþ†AÁaí2ÉšV¿«-©2é«Óš:bP‘«@µI²sÂç™#UJâGDö†®†ÙNà‚ÄyáçfGòG&(ïG¦uï4D+™‹H8îŸÈÙ°ýݦÇÞ3˜Ë fSË>1פdXÅO!³œ„¾¾1ìYÚå`‡t¾mÍTÇj“NPN½ oƒqÍ´^&þý ·6­ÓšõÄû†>u§¬ãL ¿gxûr‚iÐEJ[¸RM¿Ë˜,~.ƒoòÃü(‘cwG9… ßÈȽ|Åòb2QTƾXD^R"èbºz‚õš<ÈRyÀ=‚ÉÜ”“1ÖþEß¹ƒâµ(­¶›ù"�1¬vµ6Ñÿl7† õî;ÃìûVÎVï¢Ð²Þ3uH®?‚nhœAŸãÉüùÉÔëò{å;ÚïÈe¬«œ¸)Ì5bê`O\9LÓ¤²öp˜Ã¹“Pqíȶû–Ê“uv¥ôŒ‚Ñ»AÌ[ïTN+H ‰zù·J£÷òá0üä8Ór…æÂ¾ù+–èúß|ÑÉn¦+¥•£…[&E²Á—VXY2ªPŠ~Ã#V-29Ú‚E Gò܉‘|kÇüƒpÉs9<7Y6ÀˆÇ§häèn,äWáñ{¯:кœ—eïE—aü5ôD>U~¾JägAþø‡H”Sv£T"„5—éû«ähάÈåU*Ñ$ɹ’^åÖ @öŹr©L¸šÇ7)åšóíNgöaF5&ß[ÛíÖcZ·™MnX}=דX� çˆsŠ]—ÔlX æ¤„“uPlÔ×; ó.!óªdñÅŽ¾ë“a Ìeßg³îg™ÞܾÚ¢ëÄɰrßûh¡Ò¦ÝsOÌ`#³š}nþðÖèzníÇrk'»ÝÞÚðÆÆ[CiâUßmýxåmÙm݇Î!ám²"Lb/úXÒ™ˆwS2‰ÝøoWü=©ü+˜‚.†õ®ï‰˜B| 3~™õ„° ²—Å—“‘º©Éòô1Å[LNC:0ïx19ã0̹šs}Ó0ˆ`ÿ°+š7âe53¸«áO hIØN ùæ¥öû‹Â¥íž’q§$…ëJý> :¾Ö–úÅ#/U4· ’}Ù\–t@‹QÇ :Šw œü~°7øbp/Æ]íª.í™â‹³ßvã30ßæUcl˜;Å7gƒ¼øø_ò‘â¿‹¯¿9‹qgõü³nÙ‚%H5uµI*‰ØüÝ׌‡Ÿþc8_ãô×ømmyã?ÿÏCö¦s¥éçZ«O;øÁÄ*‘rO‹;±«ùžb5uGP©µb¦Æ ?j”ŒûgegnÈyRÇHèûU£D$æbZˆÐê.Ð*d?GÌV_clC 6+úŠ»µ›•‰II�~ ©jõ4—’<Z ªû¥ð@Åe¤¯ASf1Ôà(Ò�ºOº„´·¾i‰ªòïÃGÄ‹G_Ög I‡ÅgzR¶TúÚ6{´]6KÛ¡C{ÀEj‰ÞÊvôÑtÛ,˜ú•ìWn“[Á íÚ*ýíŠR;ímÒh9™uJdV¤ËwÍÇ ‹®¬¹O²æþZY#d�ih»°¸À%´ð%íÎnæè£˜Ŧ´Íy oX}çÒaÆUUY˜¡:' B±Ói!IƱƒ} \A9‹ñ§‡Iuå¦&þ{Ÿ?•fÜOí' öœ[Nô êÐf“V„lg®8\¤®µ*e¦Dô¸cÙÙó~ ÜSåÇr´$vŸÈvÔyçpÅ;=´V´ˆîI›£€©}¯Š&Èú •ðÊZÕ ÆÄRáùß±RòŸ3,žÖóS�?‘Á–ü9Iºù„_ãÙaþW—yHýuÔ‘Ë•u ìÁçÌDM¢Z)áøBªYžS­±Õ§øˆßDez³Ž!øÖ—“qÝ=S¶Ô\ñ‰ösŸYÇŸs¢šMû7«éü’—-k[y’0"N\õ’VEöÄQûÍöÈæƒ+æ |ª¥â”+eÄNÐ~-&^2»›lž|“ÎLåÌÜÒ!e(“Nqr^<ZöBÒ6ͳªÒÑS ¦«%ûmâdZ;a [:(z.Eúð‘¤!Þ ‚ñÎ×úìªqÍ›­¯®éßÿÝå3ÑîÛ™N¹pA3h¥=ÛCäžçmH?FÊs†ÌŸ£ûÁž©XTâÙi~gxG¤äßóL³&ïF‡ßÅ’û|J¤ãÿw´åWíMJ/ô$Z¶¯Ð><X{ý„G^·" ­ËçXõ]¦J_°{4[Oy¸þ%{«FD^†’.nê?N«\È#á§.#ö8ˆå«™$sað¬è8#]�œ¹˜¤æ}m· rX@j5ã"ú§6µ2-wŸb¸úäÝ*ƒ†ÙË)ljÎp„G A—š>óåDâûqôõ¹*ï0àÒ†')VH#¤À$—…T^;G–1ékËù¬vII2TJV:mÃ._(?³&.âV+&($�r^Ê9’þa¾óFèæG—ÅŒv€P+§»-‹–d`áófæ¬ p.ùÇ*БaþJA[ ìReäÍã—¯žžþøòÍ[g@(é'Uë´_†é$¯S‹·;ˆíªŠ›1vxvyÓÀT"îäôý7'oŸvQ¶ü»—¯8~qòÿ¿=yùÂ#œâæ[h:¯½{qòOO_¿yê_áBááL}¨x "Ñu厢\úÈJXÝK0¡WÅü½NTd?ä«ZévyÛQ aÕ¬ëqÛÁ¬çXmæ¿#}ºä¯ìç­5ÿ'À,Ìþž¤p}òÖ«fæKìî;IƒŠe’ù�‰Áâ@sÒ»þ¬üÈÅuûx…«ú²žõš›¨Qcrb Ñ£Ð÷bÅz>¤™G˜ÜzQw‡¤¬ 3_ß�Ï S\i™…[ÇÏ0‚œé—¯Ùæ”Ï1€+ ˆü‚X§8Ö•ûõÛ7§OÞ=þ—€~þæm8V{~qòâǧ¯OÞöüæÉÓ:yüte[«ÿúé““×O÷µùšx™;?%ö?>=9^õ›§ÿüö`Íï{~÷Ý}ŸuòjÍQ´UsUp•“³òáyÌÜ“kø1óÇlj˜ Òf~e¼ûêߣg¿{ýòø‰{zàÚyþîÙÛ“¿;~ñÿ ¢µ ¡Šõ^’â‡Ï[9ßk@ôWÕÿéï"Ýv7ÜÈăÝ:@7| 9†l±ïùüÆsŠt› Twt,ON_¿|÷öék?]Ž‹› Ö ì€~À¢'ÎÅ“tG2¬^¥½Ìià“›½XtCPb¾‘ïž?þÓ/Ÿ%í8pêz5á¥WͲÆ7ðîÅë§Ç<þîY÷p<9}õúå'ß¼ímÈ{›!ö±hQ¦“ÇÏ_áB*œ•bÈïñÏ‹ñU5­©¹ê5é’óú²:«PJHêñܲ¨zåTÊkÔÌ\IU»A;5l]-Zšr&4ÍŒj—Õ%]ÅåI• É“b±,´Ð&¹¨‚s—SuéðŸTw°í|‚”J®›[TA§{þ‡WœyLîàÒ©©”z…®–”Fy“iE ” :+ƒ9»« aг3»Y¢ *S8Mœ@¢£.àw%ÂÕª+!Oú¢£ f2NUs3:Y FžD*ÐÆÊ A^5³šSUcÕ¡9ö›?Éüy¸Öü ¼äð±c)ê:üÁEŸö&1ïCQMhk÷V+BF›7äêÚåJ‘ŠŒ!^ÀùgŸ4f¼¿èçÏÂÕõSâái±€3%èxñ´­¶«ÕcÜñ«œ]6f%¯éÍkùý*_D¤1iqØH~ž2Ú�Tˆ:1««i§Ôºþ³Ù~¨&'S‰ÿ°51¯è­Là_+•¼°)'®âS–¨Ñ®†“Â*Nc¬ÙñÒ,¸^Lg=ÿuY-h_¶D˜¾×HݼwÜ1ÚX‚jRÑ0˜ßÂeûÉ'ÿ‹rÙþ÷Ÿíÿ¸­ôÙ¾±–ÿ÷ðààÁþÃ.ÿïƒÿæÿý-þü§åÿ} ý­d�þrà[2�?ÜŠøËõBøÁæBøáí Àᑇë€Ò‡lÖVq�?$‚߇k9€ñL׎õ]='®ÎÂF”s¯\íUKõÎ/gÁä8«§e6)ƒ½`Šr¸¨ÇÅMXühÄå‚*ÌN÷)Š<#]= ` ‚)][*£Ëš�ës²F(~¥•‘¨&)†1 oÍ)nCúKvU¼—b®> Yá_¸‰­'ÕèF벊sJrÇÌÖ3Ž)­ùÀ•B-úUiA-r’ xUbE´¼Lòb•œUp× êeK.©1R-,ŒC×è£Nu¤éEþ#£>GÊäÙíU8ÑŠ&;~³+ÜMÇo”äinav5®`. p檘ÛOa™ü4.µb8EŒ@iÊ4®ùÁÃ="¸`´o¶CÐüaž¿–µE)Òìäò£ÔŠ8~³gv•|Öëíp˜IÑb†üÌ+òåÊæ¶M¼sòÃ«Õ †Ý{}òj—¨ÄØZ³½&d¤g|P„Ë6t4Ö‰-Å[ JÎr¾&Ù¦R mÊ:¹ÉÛÝÎ8E6œ”ÓãÇoîRH¦*€/Ãxhì”áþÉæ%™›‰•ANküQ=ÌŽI¾FÎl¢ÐpE Û~Ã^¡Ÿk‰TèÿØ“ëør6.$¤ÂΚ¹”m]4YZYÎh§‘ ®…?¬¼)™Ò„U“ô–8ˆl'&ºðœD¯×J â…$‘rRsF("œÚ¥j´œ©@v¯)Ùvê*Ò„3…w?‰-Ä’òS S˜£û‘1©ð…³×ß?Îï~y¯ŠóÅìѽ{á‡óóÑ^X@ aÕó‹{Õt8š{áçôÊpñqqçÛ­‡”?YH/í·I 01šøÙõîàørËÞÑ+[ôN§Þí²Q1ÓS1-/êE%‹L9:úÃá–¡W¶èŒ>.yþäb§ ¢²ô’3©c¾z°eè•-z¤K:XÒJWêþÑÃým÷Qxe›}$KWø:—çtŸÒY—~ÜðpÛ~„W¶é‡<.ýà€»Šp+Õ£ÓòåöÓòåvÓòe2-÷¿óY/Ò‰¯þp´m'Â+ÛtB—Næv„nÒ•{çÁÇ_mÙ?ze‹þéãè_¤9–¬óA"‘MX®ZÙ¶=<üjÛé¥W¶9…ò8D(ƒeÁô'ëÚ>ÐŒ¨f•4žç‹zÆÚð^hîá?{U¹8ß«Æó½³‹Ùý½d2ö>îíß.F>¹UŒÑ›ÙlR±ï9úÉsÿàþÖ0¼²ÍÜËãÔ'uI„Ì”yVóƒ s$ÕK‚f¢†ûþ§7JøÄ>páš÷Bl  7%®Š‰HºâŠ”ƒ÷˜îÓHýu58bdÝÎDÙa°¦ðæÇÌçPs£¯€`´gŠÉEÐû—W\Â{QèÝ dpFƒD°,5ŒOÞ9 ûðŽ/È;Mσ†‚A¶ºnÊŒ‡ÊD]ƒ¦²u2õïÈðìDpbSÙWmüg�{8,éÁ® o¯i‚“F¹ ]¯ûBPÒ•/¬ÿO``öÓÖÏ9›š”ÆnpïÖ×ô”ˆ¶fçÃ4=©è\ó6fÏ›¨ZC§}Ï×ÓöïHƒ^Ù &€º48Êp–Z ýƒjÍf{ŒF.«EÈÕ qOm÷Þ;óI}{"»Ýôõô¨"}ðD¦ZÆØ¢@½Vj�’µcµœ|Çjæ¦ ËLÁ:sR>¢…ƒ0X¯CGuÀNÓ͆S P»Á¸jÚÎÎ_<ýç·§?¾„9H&"nF“&ªeØ`ÚÆ*w\rÀ¤ÀU ™ŒS¦4™ eBbÔùû)/¯zöHRԉȬô #ÑÀ «‚+Ê;T5$sfÁöbogˆM]=”1å õ2ŠÅ(«{jÚ¸qžrÙwÙâÑ\rÄFKfvÃó”ìªaæ$*o0¸8¿R¬“1®Î!a®¤¶°DÈa”Á)Ånlª7 Èx·Ÿ ôW¤áÉ}VöÄáž0ÙVÃÆ½.3N‡%¶,(î\f<¬µÃƒŒ‡YJX4 OŽ–³Oc^Ãx™ÁpÎÂý~PLKaXB +9u„åeEà]é~º.‹÷ºfxÈ)¤$›.Ø…å!¶O!µEš2\ËUª»ÙKý àØØa5GÌj`#o‡yäø‹(˜ÜA¼ æ#bDÓç",”9ò\¤÷‘­&˲pŠ‚Èï l{D`ÙF«Úݾ�±²¬RUZž¨¤AAÿaµ¸Û¸…æïPÄÝŠXÇacIƒøHAâ¥Ü£o(Z%h>e”R ²îâ݆¥Ì9• ‚ˆÐ”ÚxL*“µÐ}ŽßP5´k( ü7)"ŪÉKDWa¾ÅÌë¸p¢âl·"Å­à¬=O›S+l$HMÓKgJ†ÙñhDG½¤“€Å’½a4 …’L$«§Ù•±E˜™aw©¤,%äzÌŒ,ë 9÷ºAvG:êÐâ;2½u¸$¯Ÿ©ÞB,®á®™2Œ1Óò0<t™»u(t©T$_j_]œÖîGòÀik·Ó½GEãä‚yûöÙ®/¤›<¬n÷ðB9&ÃÌ•þÝ ?U C+®V€Í0 rK‹ë(m4ÓzÕi½˜V¿‚L=$vàki²å6wX󓹋ҢW8ðÐgƒÜ—F›á¾U ‘£»W[WÚ…O+.ÛÞõ™~£’ _ÏJ;ãvæsþ¤{yÑ•ŒÒIªCßµÀ‡ê;/_÷Çzæ`Ó|c£f€Hrá_j ÃÏô»Ãœ¥ ÝNЦ“tT ‚èÂ&—s6ªæ£åʘ\£–»×11‰W<4­˜I¥õqG<U †É„z‡Iøy<¯g?sæìq·ãž!"®^íÁÆF®JuUZò«äc û•õiÏ×Ïtbñ¥j¡,ªíBO“7¥Ñû=^wߢØMÐÙ­‹kˆôUpAÁ !Aë¢äRú@T¨©?&ð ³Æ/Z•¾v›j±ä=ÁÕ.‹YЩ7#Z%�H­¨`Æ©L^Ô¬âsEI §ç”ÿaѶØã*àà)yqåÈÆ}+¬9ŒØ±:Ðo^O³ôÐJš£2ÂÑʯj‹êƒó¿³HJ‹R_4œ£­$[§Óÿ¶Ñ2ïaSᓤ½a´£;â{àï$-®š8_4+<g»Nhtæg@l.Ôu$cÁ —ŸÓ4COædïÈv8Z#%°b{€­ðEË‹Lf!è¤å ¢þÑX´g;hº0B£ö¹Õ +�?ϹÐ߇Öý˜<±ä/¥Ò¼IË.fcÇ’ÛMòšàZ*®?³f#…½wêT¸è;é?žUµª¾í°zq3”~ë,º²Õ_V`+‡Ìª&êI¦… ²˜9›h†î+ÒŒÕQü�ÆŸ2kõK×ÂÏ…‹§yÇû€‹ËY®·]»hÄÊ!¹>d˜Á3¨9b³*éúr‘ŠGZ§Õ^ebPLÜI0¢É~“5ºÏx×ÊÏE« i/ëÄæ¸¥¢’C¡ ¶Â”lÀêÑ8T|×/–3–$ªõÅ#¬l輇2s•º¶KHP…Œ¦§ &GwŠ \ÌÄ)Ð-€§hYg»-Doåt}{ÆÕ; ÜÒY”Æ4Â^§lJ²X�u¼œ“³‰t °u{ø.lÝÞ¾yžs,dÿ«Ã|¾1)è…ªA]•äù¯š« &ñ&]L¨h]\Ð}tãY]Ÿ—Q…ÍAP¼þ’­¼¹¢j‰dZ¹0þp8÷u.œ³$§É"ÁgYPN¡—dõT‹ŒÕµ•¨‚'çüûîu“çÚ¶$ ¾Nå{ƒfgb+e Û—k†ö{$#O’1ðŸÈ‡8É”DANÕøQ€Ù£üpøpxtÿ÷ù±ïøßøßDbüÝ›'²°»G¤à’ûü¢Hµ#¤KF›â|9!àå:È*䨅vsÛÚ2[çõ‡jÌrʸeÛ·«TE ('9cÝ-É@j}˜úCáèVZüy²¼û<Q&ωz€ý¹2TaexÜĒ.á·ïË›¯vwÉÇæÔü±=c"±¾æ”½Ñ¨õ×Äm"mÇ µs .w´\\Ôân›–Zíu:TƒÉ®!iêƒBûAòy°¢%¦ØÒ/â®Ô9ë±äæóT_QŽÇÒÔ‹€³—v®UŠí&$¶£ôÙŠ PPôÖý2Äv6 wGêê¾Ô1–'m)6% –¤GR þÏ’hÂn`³‰Ý8q¡I“¢Iìô[ª‚¬ð8Qã×ùB»Ž_°@Ó{¹nû@ÙjJs=žy‹™w>š]²ñhÜ…¢Õb†ùcÌ|únÚìö±ÛÇR$:*_ihÕC®V\[6µmnÛ]¢D÷o­¬«m[}ÙôǪÉÁfž—³I°ïá–A.‰À`:^æO¿s1ÅI$„l¨» ™2wÊoBJ›_Z;Ê͉kuÈjM_ŠhËú¬©'H”ð談G¼[°«ŠñÞe=ŠO,¥Ù[iRjÉ• ™¼½6È’‚#L19ŸÚtã6µœÊFUaÖ¯”mÎ:/´³Øó†µ ½þñêøíyêØx_–AE{þôIüùÚ8½sZ©5’·{º2…)P79«ØÊ"GgÁ¼Ü£ñ‘CʵM4O V{lŸª:²!¯¥IÔZÂiÕ°ö4]g. ËEšXC±œ<Ãy04(ì<⨚‡öà_íò-.•BܨyLÿº¤ðg›-·™Ù mlæ¹]í)á‡h;H2xäZ¼­‰YrG¨>êuoèrsÄ&ãÚTÓqkã›ñ–švÔpM&òОu[D¡}ÁÜG à~öÄVeÄ^ÉÉdDcR£ '.›Ö{‚×ÔjI~u�¦¯ð»èÇó¿>Ü…‹:3zßÔ¾ÎGÅ|~ÃÕÔµ jŠê$Õ}O³!gi„¢ ‡TX¨(ÂE‰¥²$G*èéâØ¨£‹×03%iì°e¬µ‹$QS¥røœwS©Ai ¦¿qLtG‹KõiÉYÚf/Õò’è Ùa-K#"ãe~`³‹X!É-“Þ6.!ñó€‰í$½rîО­(ªhî¯ÛÉ\+Å¥Îú¡¯ej-‚ðUŒÏEÍ uæ).—gB…½¥g72--Å!rR¸ ÖŒE+ð†°=eàí¨ØÅìw©Ê ª¸Ð«¦[b…"û§)IHR¢Cšzt¶D…\{ónÓºùhÅ[f]ÑB`ÿsÝÈzK*r€JLÒµu¯¸&5,‚¹‡Ùš61w‹ˆ!Æ‹D/³d:-÷Û7-sE>5t£fÂ"Ëtf"c*i–:ÓHh†%ëy…O…$Ýr´Û ºªÁt4ÌþÜ7µçA'#ò+mƒ/œ°Cvx}drÙ5 ¯ãyt³,l©&Zˆe|B©4¤M„/‰G\edœØ½yÉuíØuÜÎ>Ž{vöaí‰<¶'a^¤ÐËø9qÛ«úËPQ çw!lœó]ÍnUt®à ÌÁŒ­…MšÍ~:¯XBŠßµo5Qðüÿ»,..ŠÝôúFÐsä3ï;ùï8AD®€U[5oYõÝÁ‚~¤ébà-H5?¢äz ,ŠšÅµŠ˜ó0á}I¸bŒÑ7Ì(X/¤IH$Z÷.yR™jžÇÊÑï"@íÉ"9¼u«¾I.+<ˆk•ƒ¯0Ȏã%°‹cU¨àʇc¤Ÿä�¤€"’‹V.ŠM" ‹Ìõœùß>êt!¢`”õ>Ê/ƒ˜lÝâÑïúrìJþ§ ×¸”™#.]¤ÞòÀÀA¤ð"·\aØ“Ò _‡/+.æ%ïGƒöõ1–\+ü4;¼¿o½ˆ‚ë ŽÚd¢HN7ënÀL—³|£9ú'£´7æìæu*Žì„’ƒŒF8ZfWM!@%aeš†Ÿ ãK![ˆ+ëÆÛÅ{]ž[‡ð$ÈÒ¿ÎÊïØpáu[ÂçJ^Sp‰Øâ[]¯ˆ{.¨óqg^:×*o¢f!`×'îGžæ °ò|ì-²ûù“¨0}ÉõòàpåÜaƒ}q{§VΞ™vºŸ$)¬Ækûö`UÏXÚ`ÔÝŽ ÖtóyWK–B ‡¿Wu½ˆ§™$tŒH4m 2([Å•™;^甊º=O”Îïq«¯º. Ý]¸ÜÌðh#‘s¾d8àõ§….�Rá§V[œ¨©ÇñŒò“á&Ÿ.ç£ýýþ©;0}·íŠç2ŋ֖Õ¦óÔžclhsw]±‘¿juf´ ð{é}ï®PVa‡tÜHÃ(Wm4¦Æf¢ 5·àS6|"¼•\â LM&d £ ê÷?‚q-I©ŒÓr­Êqò¥OêÑó§O¼§kg¼Ä‚϶PÁ»9 üèBõz„ Dt]’|bá°&#öMÅΖ֗œ½ÎC5;#Ø_aK“26Úˆ“}çUß̳úQÌ¢¯%ñ¾q4@Xš*T©RF¿kÖáÏ ÉYREx×Q]­C‘߄崞·XË­µÉ,Nz¤t¨ÊkE`¸E7Žâp…}¨ÆKMhi$ȃ¤t£”$ÁTR¯©Â1…©M1IЉ* îÓ"ˆ®sª1ZjNŸ °<[d™ÄÿÚ‰øôVw×¼ØãìáÉÈI}“wœAD\7Lñ£Š_ÌF{AsU¶’ÕjŒÝ|>q6O3öÍaœŸRÙ N¢ú©l¢µF9Õ‹ÇžbšŽÂ„ì’h%í_`Ví<:ßP‘¦)æ!‘ûÆžõ‡s“«©|N7+–­+žYö>›7೓ PƒT“ݘWí*áu •Ò…è.™îþ,ÙÉÃüxïT#Š 6EÐßÉ“™.|Éù(ÜÒ`òz5žŸ(Õ!’­M¥È×HʵšrAxl m5î–è,\bïCïÈõrv£Ã0ý??y¢~uù{l Y¿IgT àbb `u ýD"ä3¨6Œ-«.k¢C/K ïß_¿FŠí:àxcc"IÊÊ’¤,ô”jOŸç%‡?ƒ#îS×鎪㻠…|ûëz~œ2ð wMJœ°dDš?Èãlõˆš,àÇ�µó #d)3ßMµ ä^À8"Á„ó%'ˆò Il R0Ƽ`¶1EF_ë`?ÛÙGi»y¹‡Ò¸XÓnÊxvôí±ã3O28n¬èh+‹€òµQê^Qϵ#æïÕåñ/¼Œ'²Fw5A—ADœ’²æRG€³‘"x€4„xõ£ü¹Ìî¥~ŽÛVg/ ¸i‰5_ÖµE<k,ºÔnÉ>Ö;Nò&ºš-Rwüv‘CÈ3M�q"S 4ÕV•º=o0óзžÐ•z<b*û:i¥xð©pI¶Œ$Òœwy®NØEú§¿&ùÃĈü¡ùæÝ&³€9ùš¸òJ1ÑKÆ´?º)‹ ¸`uj©åë`éo:ê m¸/ÿÚu®IJMHº3®‘ÓÃ¥j½µ M*ä5 ´ ã‰mé†iaè+F¬à³úÁIÑA³ Gà�´êÖ*¿½tœ3©à"'¸›5ÉÕu á&â›ÆºO%w»a¶ ^¸Âe<y´å´YÎ]>‰/Vàuý¢Å¶CºÇüãzkú]ú$ê#@æ>Ç(U9™fˆš¤›û.›t˜½‘ûõþý[Å„W¶#ÖˆD1 ™c|ÄF¼ä*œ¥ŠtOn·½9'»W¢½”tm·‰i¡ ¥¯O~8yqzbüÚYå}à-:øjš<uXʬþŸ4ûÔšeŒóÝ>îuç^pÏ›ÏbgZ_cÊX ‡3–+Å( e7ÖÕÓѼxüòù«gOcÅuÑb( ž"˜Û³ÕØæ÷NCj_ÃAj¦u»ö0¹ú&ðd±htéD™.†ÓJuf+8¾9‘ÃÞRµÙTt7W°Ÿ>”z·%4NÜ#À²\â1z*ÍöòUÙB#—l$›ëYs(|À¶®RO·šß¨º¸:A<_U£Óââb¾Fºs0­WjgZni>¯ |±<±�gNÛ‹nÂF•5@Ç`sÐz¾¬´�õ©¼° ñŽ”ûQÃm²Æ´Ôd Ä­Ê%VZ®l®§jÑ.ÉÙ†gÂßy¨´ÎDÓÔ# 43‹{°6ÂduÐCífÐz°ó’'e¡ÞuäU±<j±(2.4w¥ø•v©+ÂM'å!¥Èû«UóeGõ®Tß¡ n¬†è°Ù"åÙx,Ú'<9¾öèºQμ¹¯I<©Ãa ŸX6‘T-¶j¸tÞ#‚_ŸÀ*`¶M¿¼&“4yO  ÝqMÚœ\RáñwoŽ9]êð]ÊɇšM_&yQ­ |x‡pá_š[ ,nçó²Ó-‹²Ñ Ûãt¤\Š` Ѭ΢Ù~)è©´±û˵ºHâróÍØ-ÛšuveÞÙ•=Kb2 ÜfI1"n2PÑ=çj½ eMìW’ÜI//š]&éñÙ VKÓ °ËÃ>š�dî«îYƒ»3žãKÔÙôg'_qvºtÙŸ£ Ð8­¢Î{2È{cš6Eá� ²´ÙÇÁ`f9‘b.R¹M¤ŒHÇ{•h"Š~Z¥ÄwäÃ…O]‘àMÆf}cà է”|ò¤1€ÖŠðkO Q¹˜WlbõÔ´Íð§ìˆ6¸/æf:Tª«ç&yMþðÁþþþ×yïŸßç/bi\oÉŒWkÆP¥øj´ÐƒýýáÁÑ>¾ÿ¿æf^úŒäáphïkþÉŠh7¨¢ÙB1wˆnLNl‹Õãýï«ü3D*¿==€ò& ʬýFÐZ$‹ù›<V¼¡%™†ü.ȼŒHÕ/ Ð!Ç]Vê¸!첤£¨Zõxr!£ ÷VnððþƒýƒÝݯ×}hNÒ¨† ©¹ךwÏ"®†™4ETÌôu5*W¾fM#ùä?}Û-ÿ毘¸•¯ù1ƒJJNxÍPÑýý¿w~ ±øä¿Ç¿J°*LVüY+ƒÝoöû_çñ Ð~²R+ÃÿÖZ‚‡‡Dü|¸–ø9<ò¤üPQ±¨÷3ÿ"ZM†öò¢mT sò_ªˆu‚ÓÇH)7È›šò8wŸPXÄ;†²jåBr¢*ºrcD*’h”½G–Xä¤Eu?´‡jêË)2SrWŠo� TOC`ÄR�›YYâÀµ¢‰çýᬲb‚ Ølç¦k ¨’^¹ž³-¦ô…š5ø†ò+ßJ›Ôv 6¤…m ñÑwj�J%GîZÆ¥[P¤QQH^hcpØ«W ÒkEs3Óm n¡|GI–Çé<Ä’éveÒ|âe)D¿Ùk“ôÒ*-á£8#^•p“rß$„§èãýS7=xgàKZÚEÙ_Í%\`Wd¨æ?åwÂlS‘lšë;ù_ó¤œc:ù'amO,©ÄWŒŠ"ûo'_™83@ÙÀÍç Ô .BûÐÀw.–Éix‹ŸIù±Õóbv©„<H9¥}95B‡6‰ük˜©Ê"!EǸ%i|£¶:yr²nõöEúŠZ¬àÈÉÒú˜à‚ÓwÎ{‚D$„–,ÂdÓ¤fÉ‚õe°’)”˜uS^’Eä1Ì¢› §k^¹¨µP+"Q`Í—=•÷1@ä2Š®¨ÃäŸ0Ç=âÉïr‘@1× Ú)ŠáRÎ!ušk ¢·¢ôÉZ¤%¡8‰§s´¥¼Ksv^cD¸�|¨F´Ë–4¥D~ÉÜ"ÙûÈÕg爵cîNÔ>£ì;HtÏßåoTd8é ˜„½«£¿S..÷ï„»øpxðð«a¸Ž¿î<£¿Üîß;xøõ&wðÝÁGkïàðÈIÉïÞÁÌßàïàB LeöÙ\‘9ÑT&r¨±uœõð|eR'Ü£ênº4Ã9“°"ß¶`TìÙI9t àe¿kÒãDŠü¢®ÇäÝ(ŒK wÃAEÒB‹àåí…æœ2'B“Nœ×ë†Oéø —Á5E7iWãº:ÿήÃ)Ýutô $¡FúF7)QBÕ�s³ÕÚô¬’ñâdKw”BÑ­{æÒkYgàî@î©#O9 q©A(ñ‘+Ù°ŒHÑß| ¶¶׿+ÎØøç8°24dmÍÜ-\阛æ%& 0 ÝV˜gnƒ%V¦ËýK6Y=u¬e‚·âÈúf%ìEÉTç×\`ÝI›T§Š—4ÝBPOóŸd?þµŸå.Ý…Ý(¶à¯2‘¹òÀº>fŽÆ½C+mFÎiÔŒ ü~ÚfyFÚKr|³$eµB#wqíU>*šÌ>w‡]w¶ÚÌ�ì*ײÓp\_ÁkÁGG¿4”؇ÝA†·¥Ò0a«ü ˆºt^ZÍ{s· ¡ÓüýÝ"7ºZ6¾Y¸ñf‰;àÎ^1}qgßùâÎ×î† Ö™ ìí}ý˜ˆû6¹îÓ½pí½aþ‹ž{áO©¼¹Õ6;af*ç]AQ`zoõ+gC…qÂ$€#JÕ÷êß,NïÝ&e¶qdØ&«ƒVZ4¬p8F†R“Iëè+[W"Y3C!áš§ßA__°Ùâe°t�¤d¥];1ÁŽX`A,×JëfB’%©0!N—³{còi#¼rÄà¶9v3v=âKáÿRPúý]œäxËx“˜HÏ,'”ËÐ>Dâ•"̱¡oV¢Ñbƒõ±I™kœsæU°~%,½œózD®ýwdY/–Sc´t,7E÷V@uJ¸Ô^ÿ6­9"NšcjK’¶¯$N„ëÂ5W6‚ 1©œx¾¹æ÷åÃ;¾ˆQä‡Êõ“aú¦�¨Œ]ÔKÔä.@4KìDƒ“›L§] gˆäÂ)"2ÝÌi(V§¨ÁÎm ¬ttÆmÜ7‰ ›|0é5U;C¦ÑA£BE°Z.°Þ|I*Iqµ\FÜ J廕îBÛK'ÂûòM̳Åm\£TÚgv¹ÐG-!cZÆ©Ëö’¹ûS[¡:ù˜}Go.•7;‰'�Á¹¡¤_ ZmŠÝÑäîÈ›¯Aû7_Â8º¢ûF;£Xo`ŽÑpU)6Â3¥ÕMØt=Þvµ–ãžÊüž‰%†„í®GÓÌ™:w¡ÞXË W츱Z«Ï!¹(¹”{Q…K‚Þš„óÞêˆ l.·–œxÄ^È™>ù�ùnlD™¿+ >(™CÈtfÀ0‰$!¨B9¢Ýh$¡�F#º4¢o½ÖŠvSÍ:6Íæ¾8JGPh5Ì÷-±·ñA¯Ù�¥IisôÎZÇþZJ7”éÑÊÝë¡B_…K‹dþ¯çô¹n|åJÔ¬O:ù/ãÛ�ŒçŽ¢Ò}<Ž| ¢´¦ƒœÉ2Ž‹ò DK0UWˆÏù˶½E9÷fd0}I~dj°Å,ƒ5o.«Y2ìåúíã·¡e¥fËö&‡S 2f:ýûÓÅJxÆe�}œÏã¾ëhÁ‰-„2“/'{s>ž8ÈO*[ÔÊ£ÖºàÃþêÕ vúîï]áÅ+Nñõ¼bŠ0J+€ÝîäzF)ºnÇ¿ðSÖ:yI(ë„}Í0°·\SΟ«í–µ·–lª5Ø&Èè>3 ”öŽ7(N¾²$?é´…1…x^Ïæ -•c?ÈË7Vý}·‹¾Îþ\Ú9Y´>Ò[ÁÐkïç  |›ù¨¼¶Ã³dõ¨×7 „ ³wÂ/ÕŠªEP/]õµ’À Ôm˜ÿȬ‰Ù™9ÓÛå@"J`5p—†@6×Õ­ÀSI³Ãü1_MæÒ ËqN¶m0ƒXRqsk€þX]‚©S•d>¬_ìâëâf½ñ+ûÿïíà7B—=&-á6%õ]6 šëºµ›7ûl+¤ú»ü•x]S9¡¿Ç}Ñçÿ]þ 7L°Ž“[Ä»|Qwšù]þ¤æâ²WAàh+S¢$îær¹ ‹pSÿsŸ¼£¤Jò([¾éÚ€qºÌÝóú÷Ïžh;ËøKüP"ö÷WuáVÿÆòo<Xëß—4ñnP¡éb^—£TÅzId�o—ùŠ �ß#^³Cmì²Où_—ÕÂêku ¼fј ó¨)Œ`‘È#·öáp—Sî´¼¯³Ã£Ãm«ãÑ+[y<´êxL-”vóa«›G=ÝÌÝß¶Ò!½²M?yÝDŽ0KÓ÷ÐÂM^ ß‹aDÑ2b”Vk7^U{{l? K)”ˆ˜egÌž¤´t BÝ%õ(˜yõÅ€¡øª®fìÜ’¶/ÙwÍ:Ü ·ÙJbû˜V R7¤×0{£åÙZ 4Ó1.æe,º%TãµX× ¤¡Ø‚¼æµ6P¸ìo@UÌÔžâåAÿ<¨%ߎÝÁzÿ6Ç‚ä("DnæŠèY Ë–|w Õ,¯,À`F›ó%Õ•Å‚UUoaü"üe¦Ô›*=PTÒEPÁeét%èÚЗUÐû§ªøÎKÃÚvnós,Ö„*KPrâ-½¹¯„r_ø½ˆÄñ\Æaõ ÈÖ„¹ò.Ul C,n·¡š˜Ë¡qlÒô§Ô“ 5.."{D· Û ï/TNd·.3)Yž$iÞ(„Ûö·Î+f-ˆÕÑ{d+3»µœ9>JJ*9]±5ñÈû©yÔ•å½oz®J€AÀB»Gð`3Aˆ!'.›‘dw¶Õ„'x ¼OdéQrRÜáÑn ¬êpBÇ1|àäQ"Hht˜ s¬ã󊞀#ûÇ`Ð×/ÉØ Õ ï‰N ±<¶àˆÀêè’Æ7Ó⊛GTZ÷»‰9€?7± 6Çp{ö¢ðŽRÁž(Ã^; ß³¸Ýùn´Ÿ*ñ#*ó‘pú”0Vy9®{PÞ·ºOÄYLW€¹jMV}U"æÌhÂÕWi¹– KÁ3à> ô9úàˆ÷÷­!ã«‚ú‡Ž}&e}•~÷ƒÉÊ>±_%¿É(ó_ãWh?i™ä-$•o™‹³°Ø³5'Ú£i==›×ÅxD·†¹ÄWjÖu3;Ïÿq²øš(ùÿñ"¨¹Q·§’Û¾:Bîøq¿è±¨ô…mòž[X^¥¿)GW³ÖkùOLEæžÿk|Ò~U[]1-z±<ë‚-§á@u.)Ø«:®ÝE­lü0îãÞQ÷=y¸þQµ°Ã…qÛ÷Ý£TT‹iè’Æ»³£P†îtêj€Tý_íNnáMÀ¯výf}Xñx¸AׯE·ï´çˆØú¶ö?·fÄ¢ÄܶäÖþ†ûYÿܾE»c7/Ž¡ýK€ · èö/ÚXÂ\m<K\›µ”ŽÉfOñY8J-a´¦e2;‡mÕÓ •ÚèÉ1¹æA‚¸Åó›ðc~¶¤[-ÿiJÚÞägÀUî—½í?ÈÚùÉ®’ŸÏð¿Èf¬ñ¿?ϳŸoÔûëèçéÙU!Mðu)í\ÍÖtD0,ɽ¶ñ¸,GïYÙÙô\Z×%`!MsZ:ƒæzZþ̾¶ŸGó›ÙBa´kÆhµ;îÐ'AZÒ7ïlýš³©ª wþ10ì|Ž”À[ú×y;¨¯Û¾+\“Ÿô]yw‹¯þûê_Eúöé…Øœm6µñÙ<èÍUâeÛ =?úPÍ”Ç`[~¥&¥¶®ÛŠÌÿ Bð7=nAþ½×šÆ8Rýz] ØaêQÑ™\ üZ%* D£×Ñ„"ÿð¹-ôÊŽ?}œÆõ“YÞõ´[z‹Ì¿õ3!§.ñvaSD´÷–3„ýɬ»km“ âMi‘ D'Î)¦2åÏ€[ç`=ƒÑùøÕ;®vôobi‚M@Ì^¥˜ÏŠ…3ùY‘ Æ ‡gÌ‘0¡ú'šžƒnbr¸’¡ÔºÚÆëKR¨—K+Ò€sMR±žRq«ò_ƒ Ùƒ6Ç÷t±¸Ü5ÿÔ›¾ÌȨjK‹ ÓÒB*œKc´ÎÏ ²£ýv¡N¦ÝÀFu²J²B®)w§Ã›MÔ\”wKQX<³°8FÔ? (‘Õ-K—IBÙJ©<ìP©“K…|Ç+ŽrLSÏÍÁ‡ô¢"œ þ}ò„«J+3“5"2Ëù‘DqÎ ±ªí'Ovy{nâ;ÅT_üÍÆNøÌ>ëàæSôÏæÌR—÷wy¶V\1l ‰þ[velÐO8Äzn_¡<'9™¸ åÖç^;A-¢goŽ Âƒu‘`¯=Ï4NIuQyWk‹³64[]ÍŒ™}mW3nšâÓ†ÿâÍ›ã|çE½Ø{Sï½ íŸÝdÇáªcM¿B¸êC1¯ )C;!‹%'¡°A¢ð8ç±ò©å®òZ®˜pÇY„9çn2–Í1´EœmƃWÐy`*w¨¯{ÄÔ¿‹Ÿî=£SÔJœÓ7\~~Å‚Œq¤–£ ¾è[V‰>ÑÙ²E¶½]ݜь&;-nÆzžñhySz¡‘¼Á)i6³…”¡õQ­ ¯Jm€×pgˆÿ»·O½Ì5¶³Ðê±4¥ê‘`_°ó{ $²óÌï$K-LfZ£ƒ8Ó‹,=oÈÙSÂR4Q’ÛœŠŠÙ¥-¤2$É)mè¼ÏûlºB¾FWH<u·•è;æy§ Ï`Å|ƒÂ !9¾ãˆ¼h@Øj­*9ŽH8‹w”QNÙ‡ÓÄ#áͶ˜ÜЫu§žm­‹Áò$íQ2ÊŒwHаüïôí`¿Ëù:>WuKA´ºP%]nŠˆ’`‘Ì! «ÀÚá§8 ë;Ö½¶Þ€š_.uÝDPœ*i+•:üA!÷KKVû¡ëÍb5ÛŠoôän+œôUN:I"™L´ÓRüüñ»ÄÛkWMRA¸(ã·ë“ ©´ÃÞ§ç²6C×5ÄÄrJj¯„½ØGȵ ƒ±«þÜuç£×I¾õ9émEõz‚ÕJÞl³+a".é^$AÃSÉ×Õt‹q}?[GŠ­gßr»èÔ¯å¼5d²jîw]tòc7• Ø ÿÞ.»àãO¬e¾b WEIk1:io§H³Ùo3DWè.Êß±k,°qw#ÙpÒo hµFéÏYÂÆ3ÌWõ?ê"Yrr>H/ôy’@ÈUt•EYr,ŠÌT£iŽ:†-)æ}C'u°ÕAý1ô]®b /Óh¾…¢K.&&‰)mFM¥È+¦12š'ù0Eÿmí¤ —éT²Q=U“üƒ¨U‰aîi¢´¦°+à”Ïæ©E0Ü”R˜"¤ô”al1sƾCYÿ­oEÂiÖó­¾;ƒSEV€ÄɬIÖÆM&`•¢(O^ð)"Ø}b<îLW43ýïËàôM÷]ÿþ ŸYr/q¤É Á…Dd,ÛQ³™@ZM mf6Hð®À4Mû$‚O”ž^K>6ÐD®Ø|wKóÌ~ÆÈŸL¦ÎíîØ—ÉËΔ¨!᯦õ³Ôgݤéœu¤S_No_¶â:ÑWµb"ŽŽ¹ó|•‚¾O0yÌÚš%�Ƚ#†@Ž›Ñ^EÍ܉]¢NJËŸÇ:ÁB€‡› &8eôÎáþ‰òÏh¥Þy‹¼Ž‹#'�t-Š ÎÞ¢Þ3Â_™Kž !P{*ÂÛK•ìU¤S沺€”ÂKÀò]ÀlÂS! "k¯S,iŠüÆ|caT³¥(Ô;¬Úí¶38{Õß>q¿NŸ J“°Çĉ©œ€› ¶‰V&jSæ'JÆ xî7Ò‡ØÇû,DÍce]+š”Æî‚’ªBÒ wBD‘Á¥§gW9z4ÏŸËÓO÷Ø?ÝIF”÷3 ‡™Áë+¥ ƒyñÝócHÏœvúè‚%¿¬§ÖPcÌøËiØÓú:œ÷ $3,«;uzX‰8нªO/§â4<…Қƕ`X™}Jú]øùn˜©ÉúËd¾ïB—³ø+‘ÈHf•XqVºg˜áƒ(( IÃtœ»AñW̿ӑ2wÁL˜’Í5Ž‘G^WeJàkù($›½½¯šU¦¹¾SßžUºVÍè1@‰¨é50qZ9«õâ½½ÖýJï“&rÖ‡9>[V“1³z}tÓÓÝ®±àÂmkÍs'ðMüõ9ÄS<3) :Q—‡†ãg¨ý/ÂOpÖ}Yþ ½Ðb‡ Š1÷[£ÙÏÝï­;Iæ0 £HÈãCØ9À¢ù/Dv)ÿSòÉͨÃTÍgÔ¹Ó"°c­Mî©8UýTOyÉ2‰xJ’„'ºŒå1Én WìYuq¡…4¾¢mÆ[*¼Í¥X^¼|ýüøqpuì쪤\ÐÃ/ž¿}7mùìøõOsþ…6©ñ(¹ôörÔ�ïØöä~iÁRZ+dŽÆ”ý50d:T©ÓNî,zQåtx ŸæÆÅˆi<Ùmd QúH«ˆ)Úa 8¼T©90iyÙº†8Š6]xj.4cLž©ÌÃØ¥µK•¸Vv±ˆâ7:$„k1ã„ÿíì3¡XŒ Šë'o/µAMHÜuVŸEc\„EˆJ›Ô–Èf—7B÷‘\° o 2n9e‰è ™vÌÖ%ÑMü=Rêä•X%»½{¦]J÷Ì«Tiµi6;¼ó‡vS-ê ,ã0Qg¾W 5Ó¦µŸ“Ô»)u±2fÑ Ú€æ\K©h$A–ŠAž¥ð²gB3¶­¨pÍ+RHÁÊgõÕâU^±!»ïÕ«WµX„™-'Í®vÔpîÙ´ª‹SKVmãÖ•ÍW­lïÒt@b$iƒµ‘:ñ ,„Ë_@Ö”³b“Ð3fG@ bôžþk'*-&ž=£iªûð�žâÕ'j 4ü³ •xò† Ÿ V6)¹ÌQSÂ1Ùh2{ŽÁš-Þ‚Ö­*# õHܗǪ«AI'¶4L¼ù$âAìL…PMø…AêŒpoÃ=]ÎFoÜAÞQ'eiĬx‚˜¿>o[ɇè‚&GUDˆºÄϳ¾ž¹=;~Œ3»Ký˨]“® @¼ÕÂO ÙbâˆM·œj6žnT™nµQõLŇЫ ã{µxþÊ‘Ýl`ÿ9䧘à||Ñõ·ãk×¾|ƒ°Æ"È.È(ÍH\¬ÝÁûÆ¢¤e$)Ž,—`ØHtéÍ?M–”ÝdR´¼¨ÕU§Ÿcý Y=ST¤5òæÈ¼,[eFXü%,\pIýrg¤š´ÐZL¢"'ÌBœlLX¡9h$‰_0ùÕ¸ÆV¶ ‰|\$Çl£Åò�ÔµZ.cu:�ñóB—’À Í@Q€M¤ð"ÈtBCËp&¼¯S…‰fÇ¢¦ÅZ�ùÁÞჇ›J-4ñZ¥hjCÛ9É®©UNMeùáãå½,¼­òÛâÖ©¥S+¨|vù‚3üµ?ÁdÔªOZ ‡®ž%0@J{–O°&s¥½°Ú´ïñõë²èˆÖK X1 ½E´:þäA8q¨Lõ>§ÂRºraFLžÍÄ3J_JšKWc)>×dîþ7™¸¦ ý4gt#Upü%›¨b‘È^É=NQ•fAVÖˆ hˆÂ–ª¾ïò+DTf8%ÊÕnËöžæ_ñ`¨^€ŒË^´MŸNõmYzÿŽ}þøc®8‰‚åí2‘âòO’YÕh uzKD>x<j®,6•ÕoéT¾Ta6Bf%¦<Uuˆð(nåÁ‰U¤Û9q€uXAr‰Ž$h¥KW‡')î:ÌžsÌ,É9†ÀîT oò˜Áxš&Ö&ucÑGò 2ïùí¡}û8ý-MTòz%ˆ\¦…WÉÖ3˜pÍf½ º‹É5i’ŒBÉ ±¾#� êCÖ…ÖLJ­ËÞßvf¢o¬ÍJ5uE¨ø%Ê(<å7l°«gvEcy§±¸BsªPx]øá–“¯'È‹YÕlû ÆQÿÇÅ…öÔÊÙÑ¡¯ùÔ*š”qdÞ$M­lñ¯#ükàKcçç>Þ•Îá3:U‚V…[žkÒñZ\ö€õhWD¸Bʦ$6™Ï)‡ÎƒŸß3Ïw·Ú‰ê=šö÷?í._þ ÐBûÚ ¸Â’yOìǺºÒ̺TÖç7˜£UI¬7eÓÊ\=ìЗh!—[+²åñåXV¦øÃÀð™K‰ „&XÁ¾!D®Ú ‚±.a±°ƒƒÕýe«æàÁ9skÇí"%_nœÈÁšÜ&9EQ¬OÕÐ?nnf³Ùs³v1×hoõúl´a6ךÒ?IÖááÞþý½Ãýý£°ºö÷í?Ü6ëà˽ýjâ ?8|´Zyði™Uq¼AQØp¼‡Ÿ0Þ/©³òƒ/í=:<Øv¼ÔÄ¡Œ÷àÑÑýõS¶Y¦–ÛmÅ|´¿Án»%›6mØÏE[Œö‰ÕÛ ÑüàKªŽ0<îß;¼¿z@òØ!Û"ͼEÅfu€Q®=Ì䯧šì×íW{çMÿ Œ&ý–ôæûkp‘½¯~„F+vq¸?<Ø O±ï½ Žlò™5\¸ú³îÚ¼c‰wìáZÞ±ðÈ«jVnÆ;FØ+O›”®‚ÌÓ¤¦ÄwöÕ¤ŠâUµEn™D(9ùm\Ž& #G|¡m;Õ°”x<ós 1må«Ö¡L‚ÄrDMG‹ª‹¥œ€ïËÊ»q¦DqȲ^p“JgKnJ×&×›«'yÉ Ú;sª´p7æ  £‘–†ÔâvòoÅå*Óo¤5Ò>ž¨¾Ž”5¯Ý(¦n6«›j¡•P¢±Þ·ºD×"šäåâ_©xw=†ŸA~ÊौÍô+#<w󺥭Gu¨± êœmÃŒS´È~â!f?*g7rùPJḂÙj"I|Ò´:×̾×öi‹opÜ[;™è¿aêt^‚Z˜!Nôˆð¡Ð‰UgèúÞ¶f¦Š:ø0‰ŽìÌMðF“iÄm¼m²u39 7cÅ^ŠHpänb¢„Âr]ù¸Ð2ùQºÙ•ÉUàYH(²]­|.)8Šö(6œÏ76~#jììF]ái†K²{õlH�lUAåµNg°ò•>ôŠtQª'‚D£jE¥ÍšåcoÜÉ´.40Ó@d&¥T­ý·]ñƒØGÜàˆ`õ�3&Ø^¨5{¢ÌJ¯ˬ«VI•†3º;ðlÊ\N9üo_4%äN?»j&‘áøï’™¸Q­8)Ǧ©±­ÙoÕ^/4¸Ÿ”_¢yq£ÊßH-D¶á JµÞÿиy šQÍ)ðÇN˜fÌA¤´Wúxeà·ÃU˜»±‹ ‘¾UÑ’=¥–‡[±ETMî|U óÇC*óÔiHñ#j”ÌÉ ô­}*ÃúÕ7=»¸U Iˆ lõp¼8È4<¥Û0»›<&Ï4߉«ÀÃM? «gÒ_Ô8þ™«ÁÆEerwö\ër‘·ýÎ|QAÌþì„è*pâBEâÕ _h!ÊÊ¥ä�ÙNÍnÊM.R”47±`\·ŒOŸ_èY)xFh™‹KHÚFÖNQ¢Óô²ˆæ‰ …™È‹ARÈ¡]À¡¯¨RêW\gbF?Ïà‰$âYiªú µÞ¯«æRŽ»HÞ‹Ço¤û ¬L^¤òàES’f¾W\à¸k¡uûVÕñ}¥uM"F“ÙPˆs²„\^Hä&hEËBá-Ú§Ž›ï\—w'b˜ðI«9èúûŠF}¹LëHsÔ¢@†(“q+H˜ˆç1c¦†±²‡¶àö®ZWl sw­¡%ZqZÖ®ÝYH–˜]o@MVªï䲡j0ŒY§ª…8�ÜA½ !ÀÔdZN:¡ó[p}m¹êh‘Z…7ÒíÒ©ÖÔ¸W}HÒ1­ÄI{ûܵºÀúð6š-ç³å"¯Y¹ Ã#³ë*<\–vWiÖPë�‡£ÆV !p£ê䀸\惩^ã(cW,.®Z†òãø^X6;¬£9ÅâÇ?:€…§º9X[Ñ„Ý,XâHìÝ`¡v³é?=õ¼—¿1|\É›ÝÒ#ZÜá±k+س{©ºé?‡Î4wìmå0m…ª®‡ÿß×uî>´lÑTб¹®×V»ÝýÌb×’—xdß=å9Áõgž¾¼§ç·ŒÝúrØ×ö}kGºÞý:‚nE%w›BÚûëæÌéIÿ732æ?òŸòIúÿê÷•H¾ Ûã71íoUO«swú¾=ØçVâòoÜ?öÖ9^,øñMúèL?øŠ¥o2}‡k§ïð?ãô~®éÛÀ/ö%ùž\ë ¼>ØÜ/FO§¥i§ePHNÆÈ%øˆ_6 §4Ž!q¬€å 4䉓²–ø¯†ü„\º¼Tú« ·Î*´p]ÀÈÐ4\`P…¯¥:XN¥ÙƒB´kQ†s©õónå9{H8}³3*jØS°¾Y–äÖÀe¨Ä¾¢FE2SâƒCÖ wÉÏED¸Å‚%\d Öh‹ô`È…¦liŒ‹û¬$U¤ž=w«ŒÀý¯lÉ&F¯lÁ&¦ƒMì6;ìmR« åQX OyœyK¦Ͻ=W޾M³,é·îÇýkn)›ßšô}ÒÛ…9hþqbc˜A ûÐ22 ”UǸ¥cÍ'ÝùåY¨œ8· ìIæs»„øWEpž™`ò éÁ±3;¶³“a,}~©K,hFs¾¬§)Ï0"#Lzqé\RŒ«"%¿•»Í´êíÅ^¶%»e3õüúòóÈ/šÖëÛÈІÀãù÷†I! UO¼-zÿÄŠ‹QV.˜0ªv´üVé‰Ñ'bÕS™@¥ˆÛM?hUšª™ë¹ ªB5_Kê…í¶‡ßCvxæºI7³- ;ßYyNÜD< ÷U"#–ü™£çè]˜Ø»óžý åÖ™äAëËo¦Ý±¶ Ÿ¬<‘½2æªø˜Ï‹˜.ÎL@OѲwÓÞI—§Üc)¸6½3»SB„&õQÖÖò*Ÿ”Ó‹Å¥y ãË—ÌŠÔ°*Á ßß;øjß|Gò‡ûûm?Uh`£Ñ®é%UyhõRK|k'3ëäsẠOpÕ•#æ•X0•Þѽûùyk ,ëö‘\ê÷Žúžêm\NŠ›uƒŠÝçGWÕZì]àAæ§ßúxÔîˆTÔÛ‚¨Ë&ɺ' ÂãðäÇǤ~Ñm‹¥å- Íú3­[bg…TçþÕ{µ¨3 zù©àT´u}DH÷j±ÜvGò]m4’Ïß¾Ó.ªëÿì&Cׇù¾dG.§–ìºÔ>*– a<·=)xÔä«j®Qa6 y üi–Ìh¸—tAºÌY�¥;– JØ‚ë(Ë´î†S&’#¼rôûƒÞÑZ:ûªÜzôyþÙ X†Ü"1ž÷Õ þ–¶b™Ö-bwXZÆë²žåFòú öסgh'Ýe°’]ÖËû{‡ô¯‡Õ÷WP¾MªóòoÀÎrä;(ìÃNI:½3Ü´¯wåœS¸Y* ]ä8SB•$é,¹�SËš{i™‘u%¹¿À µÑ ^OoKÃÚD°ùwt]®eÉß¡4èù•2wÅÝPvz;ÝD«2}öέ5Þ×ôñvëo¾É•.ÚðœXUÕœ,1¾Çi¥PQ©Ír µ‚gKØ‹EúW‘·d7+woBÖvs–jû‘µsóùÕÃûûûùÎA>.nv{l2®œú›Ïn2ìHÐä=P¡l´fçP!΢RïÜÜ ¬ìà>†~?ôg9ovo«•Ú /Ÿ‡½ìÜ)’ú°`ØÖÖH€âwù÷¤\Rm3â÷cÛ ªê³ê¶ÄZÁýÏ—¿Ã´ˆvS#±ò°óºìŽGîõ:ͽ%@}~þ5Å9j•©c‰"³'¯nâ­˜©/î´Ã4¿Ë_ÔÌ t.¹+{g1’a÷Ñþ“ï¾ztpxt? êþW=£êÙѨ»JQ âÖ`çˆh§ ìí|ç›áoû«¾ÙžÁ8Â'=Ó¸¥wö+òÎ~µÖ;y}òj ç,(dï0\›Dø5E…O¦ù«*ÛFЍJ)aû"ß›/òf˜×&ßq…î"?E6®˜O8ö&?,¥!ë,—X u"‘Xßå¤ê$•©4`‚DuA•ûCê\1z?Ì¿‹?#y«®5†;8Œ4À{ò«ÕE]Rö² f%ùi¸˜^W@Hqèw!ÙÜ ÆAé($•Õ0fö‹Ù$쥃°6 H#Žú‰sVrnÉÀg áAòÆ“QiU’ò)­£Ï�ëhîÜ‚a™È.Ûc·Sò”x§x>·~êî%ÚU dÑ’kŽ,XГޠáÍ’¥¬¸&í�¸ÈqS̉EX˜h¿™Ô×A¦/Ëä Fp<4Ó](vÔy’‡¶§x‡*׌ŸùKfBz]¸hÆH2Q™ æ=µ]¥— x²¯¯¯‡U¹8‡›Žä0ÌÇœ¦ìÞ¼šíÉ?pXï|»ý;\Oã;JuC1â<ÛAA/·.è^Ù¦ ‡<N`L/¢+øúáþWÛÖ¦W¶)w,ãëZÚN}¬ÃܪÊ3 ³° ”PäExêÃwö`ÿÁ¶µ™é•m¦JGgA ¾ÐÒÌĮŠKH™Ú­„ÕÃígõp»Y=Œ³JGËú¦6 M/  ¤ñ޼gî ÉÕÔPæPuuT‡AÐÄpZ3Wxu@4R&3&Aðr#SeVŽœ#ÂoÑY£È —ñbAÔt$JÏšzRRàj‡©8w|‰ tò¹ãWþbînPfTËä"aS¼ðé0¢¥N*ç�ûQ¦‘…ùy­¸~rŒ÷ƒ=é$?Ï&Tåºü¸øùjü U¼ñ×C'°¸¬Ç@:<“£WÃ…=qŽ(%Ú\9–´RÍØµÞtÛ!ˆªþ6&rÎÕY9‰2—ܦO,Î7é»–v‹Õÿ‡&I¦Ë¼Dt9Áå¢== ¨^{SN`VÆûÛ Õ8Šëp-©Ÿa`M‹tüÖ¨C¯”¾¹$kÿ¬ Nø éö­ô&óTÝ2jfXÖxy5ó@b®æV_¡ÅÝ9Æ—ÒyŒ$KwªfDƒÑ¢Ô’ËñŠï"î1§Â#‰Ù—¯ ©ÁåÙ2+0Ì«g6˜çJ|$_H}%i€VÏ–TPâäÊ„8+ç{>®Ÿå·RéaC[p‹Heó7“Šo€Õ(Ÿ~ŽtSÿº 7ðÏÓš‰W–+&f®“÷L΂`³p9'øW„æÁ²AM0<8_rØ9òMq6ˆ¸4ÒïQ/^a_TAÿr+~Áz‰X³”„òULÞ3ˆ!&ž©¥S~@&Æï¥]ò|7Ú=ÌN«x†;¯ô5à*‹üªZ€œVKaEn ”FÝ5Jþ‘`Ÿ�ŽCq 0AÒSâÜj‘d?89,;Ž P’ÃôÏ §(‡„Ù@&Yà,œÞÄ@—´6`à„Ì‚ú^Â^/ïQÖù„ê÷Xb ¦t’Bóe9(ºnÓl¦Ì‘?¡$gu0ÑwC÷‚z]Ìɯz:ì»i�™JJ†õ_-dÒ£¸û8‡–Xµôl=8Üò§ÅÞ1´@JÇ…h`æ,CÆË%ㆠKõÈ©zÞÁþá}VÙm&¦BLN†-ûEÞ<ùæ›ý¥Ÿéÿ ŠncsŠë‹qPjxåß1Ë¥øÂÑ+:RÑ@vÊLV‚˜%â:ð.;¿®_‰Ól5ç«!«»î€öGû1ºwÌÅê2iŠûvšòºžã¼¡§âƒHª‹‚ö¹ÌVÀ#»¨¬ s’ì!õÞ>XòRý‹HóÂ* ÿo?³W2äû_øN™"¬_ÅüŒðï¿V¿‚¥8*æc¸'õŠ¾Üšö@òLYqGï3Va‹DR†å4¹ýÒQQ뎵Eã!ùNB˜³¯=±Ü->½2æEÀ(˜ª×JÚ‡¢š0ÄUüš"‘ä±9.f‘—üƒÆu§¶\³r¬Ò9F€²>HU¨[hC`6<~9ÞXÍ‹l:¡‘ã¥;›VØãQøQHQµ 9gœÝŪ k £’k±›$dÒèç;I¥‚bš{6Õã7òL’;º•ݬòÌ-3BÜ*~:öÛuCxÐfžß„¶OIÚ;ÿç¸<[^¤ÈjÜ"|2»F’MëC÷‹ÔgL캬G_ç©.÷uîð›è{‡ò^Ìò÷ï± ¯*®ãAX—ðßB"SžeØVwl1î|­]ÿ©ü[ß²ì´ô­ à ÇðÖ:†Ã#o(8=J|ìñ/ºYX‘XSÎ&k#ꬴÞ;]3ºW”c±Z(8.øE­]"U"O²jõ9énšü(Â7´ŸI83ñrÐpÆ~K(3˲²ê)8’L½I^ÀñÍ´¸’Tc©GGB*©c¹› EL¥–V_‡VÔ‡‹ì”År>†j>Ï 1Ar6úÃÅvÂÝPRP8Œg“z&‰¦ƒ;g…l‚-&ÅJÂÑ:_º.Ø@ ü7°ãhL ™!ëšT•H&5©ëY³;ìšd焉¡DZÌiÛ‚'ãQþ/@Ó’Gí®±ðœdý‹‘!Fl0Äb²Òˆ_hÍ#ܬLMI̬ݶR߈\@ëWº–¤;²`e]aÇí;'6Â&&Ãç\†6æ(1&eûÖÖ1ô¾_Φ►5ä ¤42©e ‹vÙ lˆ0Yà!-£`‰K–¢´Õ·Š‘:1Î,@aD¦~¤ÆˆlkkTøtRªB~“‰¯ðÌÊ`Ìë)è¢qÄ>24%Q,´‘ˆ’b8W5…_v*_ˆA; ò„Ô‡ÉÄ_üéƒE‡»Ç•j%‘`¹�ùå‡SEå�Ã: Z1ů¤$‚¼‘˜„}"/–—BžxZöøU\5¼g4hM"®"ÇID$§ª·8&#EE—&ê™õq ªÈúŽÝð–oÄC™|-ÿ©ÃAû×ü'z„í=}iïaþX§C·¢bÙ%/VØ zà3ÕŽÂião7·õ]z|Ç6í•åÅEL`ô˜øM…ÅmТ䖥KEÎ ãø(fHX¤/]Iã*rEüÄmÏëÙÏœôsز—UÐe{’¾MVyñL—xxÝəޅt(“`ŽÚô»ŒWŒ) Ø,æàsª_ïVÅÜŽªº‡¨ºq‰3>UnGâ«f·t‹¯šÕè~ºê”«¤ûŽ«:9ØZüCÓ _ÿŠ8£çåUýa#zé<ÒKgÛÒK?"øAÇ乘EV‚ õÄœeRO¯UTì¹ôhÂÛ×§ë ¥¦ BS!S‘Ù’õ-—ñ›dv!ž§uÔ™:Ä�¯Ô”Ñu 1*Ä¡ÃL‰CÓöh-›¤¼ßÎD]pA†²'×øw$Aì0¯ŽEg¾¾Àsi…!ÍþðÕðÁÁð`xp´ÿ5'-G•®õî¾ü•¾Ú›ç©8î UÚŸÛW2ð.€¨õèáþŠ'(áòpèr`¹›‡ûG”“{pÄ|n’(Ý|cZwwpHà¤W¨yæÉûZÞ2Þ õbõYJô—$¥éK À¿(9úÙúõùõ« 5Wõ²é>ª;C$ryêÞw/ŸüÆÕÛçaÿÃÙ?n¢>Û7õýðþ}úïÁþÑ!þ}Àÿ¦?÷üÃÁÁ—ûGûGG‡Gþaÿà0ü¿È÷?[ÜŸ%ÛÊó8/ËI±ö¹ Ÿ‹ý¶þø?ž¼|üö/¯žæ´“óWï¾{vò8¿³wïÞŸß»÷äíþÅÑð0ÿžàJ÷î=}q‡Ž6þ|züäÛ,ÿãó§oÕMñÃÓO_¿}ùúNþøå‹·O_¼ýæȇžÔ£½·5ñYPªûîÐ{oOÞ>{ÊUœÞ…¾Ûä?,ÃUýˆÄëh²l8EŸ ?;yñ'†òÎ_?}öÍLÎqÏsv¿äG…i«Á ÆþÈšDEKL<Ü\L|ÙI‰ '<òåpû†›ˆ#?þÖÀ}‰'èËáµt°®)zäû%) ˆ^¶ÜAÇ*¨ôbL¾¡´¶£ &7ì¨éP’ ÈLoƒ1 Ðˆr¢Ù ÌrÖ„ŸL(¼<ByhZ GßιŸôCý’kûmµg'ß¾dº¸goŽï†¹ ?ÀO_³W] ¿j¹¼óI4ë ”äï‰O·nʦõDH;ýḃ‚B„2H~ïùY[«uH«u¸vµÂ#?Å h—ådÖZ3žäØ[ø×]ZÞr2ì¯ÎÿVk‘TÚ¼Zd Â¥Eöi¶7/ý|Q?ŠOþ/tIMŸÑ¿Ýùvõï#ÆH;¥äj. þ¸ÊyÅÍÎsÆ’\å†r6ðF˜ì 0]¹ÇÉ![£¤u Ú¥QÐÿŒÀ3àZ]Ìqh%‰õÁØ÷¹S'žÕãæ²£y l±îÔ\«çãúªîÎÌÊ_ab8Yö’e& M8g@üßha«±{†lÿÂ¥ÉK<æz—b/áÀ…Y%_v¨fJeÞ Ôà<[^$0H¡6¼‰‹"³îv¼Ê#(K•)ñÒŤ€7§©'ºbB9I­b7gøí Ø;TÁ“ï$)ð;(ÿ@c¢qóZëÑ2’IðÇ ¦©£7_N•Å1§Ú"Qò½òÓ~Þ;¹³å~ÆÀýæ‘ýŠ—9ßyyN¼s¢õ'?ªêÄÂóÇ1iË WáA«ÐPPÅ“K“Ö옫˜œÎs ÄÁ¤JMqÁ.0ȹ´CI•¶ Ò“¹LK&È'Þðá ‰ÚÓ´µ’-÷E)Œ}pÎm€Fò°õCˆ¶xD§Õˆ¶_ÃHM]€ÞƋż¼¾/æA> ¯‚;ZN+]€ð;ß®zâ‘>"ÇM¦.˜»?Р'ËÑûÿAFo4~å»ýÿ ÀÆø¿q‹þÿàáýý–þððÁëÿ¿ÉŸÿ¤úÿ•ÿÀ©üä@ šQ[‹OùAÛ  §=Ó­ŠúA_GÂOYû~9ÏË¿…Y˜T3r«ýãdñ5vÍÿŠ×¡Hê ²Wá›äÏ)çâ½>=£Ÿý¯åè:yò9Š=‡GIo–'¯þÖyL>ÿÿ âÕšlÂQõÿÍÏçezBÂXßbÍ‘Ä"øô9çóé-•�ÚÝ­ËUy1%vÃ(ˆôIQH:¨äÞ Mh{EØ:Ï`ˆôX=¶4iÖR´yTïOÚ¢µËGšû]Óà™?Ë]I`‘ÝiéZêÑÊ}K‡Ô=ıò¶¢±#jìh}cá™×¢£¬ié>µt}K÷éÖª>T“ò¢Ô©×ú-†!öMÿ¡Lÿ1’]R’O¿ =M†õ5y$M¶ ÷ë—ôˆ–ë¨wItÄx¦½OzZ:¤–ú–ÔµD––Ý( Qo[dߊº¶Žh´(‘omåj„•»ß7u÷eê^‡“µ(•ù–uxpçÛ}©só{&[¾mÐì>è]:Ö­ÀšÝ½+àZ Ï<)\¯»öÐÌ>è}×Nxæ% «õ|U3÷©™¾Ãäš¹ÏÊÝ¡€yù0V´‡°¾½ðÌëÔoEk©µžò¾µðÌKv6PÌëÊ© «¶Š^ô4õ]ók¬ßiÍöÚA<óݯzGø–úaïvp Ðv@ÈvEGÔFßVpm„gž ·¢ûÔFß>pm„gþ²Õm< 6úÖÞµž¡ªd+ZXUŽÄ·Ô#é´°Š¸Ñ·07vZX•\ì[ðÙÅVÐ|mÚª­ºÂ!jÁ›ÞоͺÚ'*­ýNü¦§h§¡Uî:ßÐz× Hm¢‰þÆfePà.¤_Ÿíëí¿Ã`ú:ûïñŸðŸÿ¶ÿ~ƒ?ÿ‰ì¿p)]Ì‹«+_O¼-òˆ'¨XßobvMÃÎCæÐ9¸%dG×7Ýst“ç\ë·†‚zŒ¢vɰW…‚ú ¢´©~ÕÍAƒ½UÈtžgâ¼´ª²$.)ÝW}ÙÐóÑeµ(¡2 ²1úJ¬ðUcœªld^Uì0¾*†ë±ªšÚŸø“XÑÅ™;P³ž‚ÓPàxνÍh2GoùÍbÙŒa´*ßekq¾)°4f¥™IÅhÁüá³`Jˆ¢Vó†’8§RøÁ`ú�ß6•jfu¤¾§Ü¾åT=è`,çó0 â1Ê]O@9ýP…ßb)€)]pU&¤K—ÓzÎ‘â …ßˆñ–iÄLˆ‰?L4ÁNšY‰,&P°\ ôY)â5¢Üi‚Í¿¿!Ÿ4ÁNi˜ö8LÕùr2¹É‚µÍW*ÏÏ© ÎttX”äuSwˆnsõˆ\q—³Ê‰6b.Bc„󮑉ke-‹8©:¿žSõðдäð].É 2–Zí”i¢†,&£ƒDÓ,¥<~Pòdj˜¾]’^9ž.Âf{|Y¾¿¬?äwÞP^û4l¸L¸O-‚ÔÌ;T9á.E4æoîaÁyêÈŠwžÐMLgô´®>' w¿Y,ÏÏ1aš>hèB áT]NÁlÀL»H£æËHÆfr7?•Z6iÑ”“Ðåú‚©º°9(ö…ƒ#ç û¾œ——mK•>çHKª@oÇ>º¨‹IÓ’*€Ù…žÆ˜ŒQŒÈŒ^/LähBŒÕ@o º˜£†åǪ±Ë4vš߯¨:‘ œÓXYLÈqkOc9ù0¿(0œÖdë“Y<[PÉÄ0T/vxÍ,¸ gˆ°8[ž%S­KÇü¶ÌŒõ¯ËJyk¤ÈuÂããâ&\‚êu{ŽA».—Bªaâ#á¤EèÍt˜Ï8ëªÉt-¢!˜»õcЇy¤m+ðþÇ“oß0BÀ�kê)WBý@</ëpúo4ï^§lˆÀ .°íÇJëL u"£ ¥46%À¤w¬L2C‹Dí³„&Ô(½ëï™Ñ¨Ÿ‰DÈT”#³˜—¨·ÇÜ8¦²F”ÁÝÓãâŒ@®#ņ§ŒnD‘<Ä)€½¸óÒ>Wºœ—oÌ>Ù1„ç£j¦WÃY¸¬mté%œ-–SbJ#ILRh$¥ã4ãøC]ì!7=‹”úÜ%ÿhÚDq\,ŠÑ{É ä�^èjè[ø_™þIçù@è<\sºP–I˜yP‡ÍûË7Ãü»pEH!šª©'¨0f¨¦–½Á³šYŒëÄ8º”tG ‘ÃvÑ?� àû@^fÇAJ $½”Hj7ŠÐ•ÐË0š Ä^m¢Al¤qgºJRk1TŸd!çÖÂÓ\Uš×õiÑTˆ¡N> fÆiû†Úñ×Úy€Ö„Óàu¶úðk:£¬_Êën‰Ýï€øL(bL):óXŽ(ï¯fŒ„©¦á›aAhý|;’äÓ²Ê9'¹ó%Ù£ÍB=“¨WQ¼ù2{è 4—jzT2: ,"HµÖC¢!sä(¶Š£ÆCZê˜oq©%gdg”9µG•L®Ö+àgÂF[šC 6Åz—*Û ¾ÌFÆu¥Úœð×›2 ³°BzáÔ§ù)\Ìs/eÒÄz=¯å5m˜Ã@Ç“¶`ã`án¼ü²±¢@˜ku‚ŠÐâ{´kÁ5Zò¡+E|ø¶ÏnbõÙj®ˆ›=¼äÊ9..—Mƹ7¬R·G$Ì$²šEÐÊœ›ˆ½o眷¼{1;¯$C™�Å\ÓºÂÆ©'ʺسx¾àÉΪD8¯Ã§Ѻq_k´®HFÁõ;?.°oâcN‘È»aÊ0Œµ'Aý±}Ò†u~ÃtÆ¢w¤´ŸK–Hœ2¦BÉ€3táv7OsU‡;‘2–ÆÅlÁ,6³D–¶œŸáB—¤K+&·<6},ׂ”° M|}Bî~kOÙ/Î,¾1aÞ*V‡=Ü"e‚"Ç[n^&CH®L4ìóq,«hy­–qÄÁN®¾G\œ‘„RÎz“ïpùEH`T¶hb±NM7¹Ò”l‹]ÊÚ¶Jlªùx;¦µòBK¼rE"¿9¹d’8qýZô\W8“™šìP> h ËiLÎO’+ÜfgÈŽ‡Š/L%š¿µ#—±Ñ®é˜‡âÄŠ;ݱ²W!z6j•ë<ÿþ-çH¾yþöU¶£É&tb–lÙSSrÉé˜#CeDb¢˜VÜRAÉòåãÒÊ¿/N”…ÊG‡@·A Ç«‚w¿*¤´.PÕ4 ÅP"Înk˾S^D<[ø‰[€wí1E²`ªuj* ‚ÎUTT bq9W]R]&QPGKÆ[!o¿öv­ »:& ñáãã’j‚ ú×è²$HÈC˜§˜ÓòùÄ]±<;/à`ö  N’ØÔ$nÁô2Ä,ÓA³0ÒJ‰aƒ‘ùÌ¢êB”A‘±•¦–4TÞ€áJ¿”„WžÔÕ\qŽC……j5ý@ Ãq«Ý‚W‹S«¦©é —0§”ò*Ó!¥uy‰‡ùñ™_a· ”P¥ ž¤¥Ò~’ "«„ÀôÇäÿàƒÝ„î]I ® Kg®ËC9h¼¥EÕÍd‡Õ\ƒU(ÿãWïÌßL„€Nl¯#÷#Z–}xäØÍX•€·_™Ší,¬¯ü¤,´Z* ±îÒUG„ºF¢ij™é¢¹ûZIs{L“(¿–„6Ÿ''6âùr:Z$xrr3Ð'ȱ•õa¢qõçL¤ò€O–hßéMu#x,âð‰ÃXíeG.<æØ}üìD P’Àê—3ŸÑnFIâ6ÐgÕÙœl«t¬¬5ÈK^–‰¼aƒX{Ÿ{·¡³a©:ó‚½xqÚ"w‚5/þŠÿ$þ�þ~Å«àIŒ§« •=é—\«o¸l‘3 ö•|wc'GÖsùqók’–Ê–,+­ËE}…ä>Òʰxš)Ï­ª./¼|d„\.Á %ÅÝ®óºTÚ-ð*Ì‹‹+½ßÉ*AñÊi1¹ù7²|`H„S0_®6Øši5›•ÜÂcö=X¡©ü"l×Y{lÛ?ß«˜ÉµSŒ]öò±û¬­¿f2îPäþÒ!,y9n©ðYÆ9y{©ö^û&yÿfÅ©b[0ü̺ó\…éùP—®ú¸÷üHSo°Óö¢7e}“Æ+'> ™ñ8py‡– ø(¨'Ó…¶ž²eÃ#þzÍÎ9¨ ¡õœ²#Æ“›,IJ‡yv"_q¼=-Þk‰ððÈIR|±%Ä\"ß üØäÈ ¢é‡ïòÇj!yª.œÛÇ¿ÿ½^óá÷™»È/KïåçÐż ï·’†L õü>­ÒÚI¹ÎÉŽÊT­S¾xb}õHuZÁ½6uÎáKhvPU2b˜/eÉ»¬&’Fà„))åH¨"ÌÏ4×”bä–Á ÐØ®ž^P8æ#Õeâë8cÙNù‘Ø| <ÉûC ?…dùK1焚…;êM,ΖV#éÌU|D }YDi½è'ÞJWÕG­§²þU9gœæ²¤T-¶i’¯ƒå¢h›¡"ÛÙ¾ Âˆ9<%ò¦~3>7`ásoΑd¬Ë΢ÉÒ×—|%/ߘ¦'ãŒÚ®Ý¶´aGdW v%´NO¤Ûç!ºá÷4OÇBÊŸŒ=ô¡‘(OÇÆ®š´z‚ú®jê”h$ _&ïñÉyóÃóg Ä¿™bIôÏ'oYæ\m²íæÒ ‹†8ÃØÖœŠpX'Ç(Ñ .`~Eî9éÃ<ƒuŠšÞáéLH4±ðéR¿hižoËÖkiê«êÝäú›ñ‡jFë˜]À¨|U7‹7<Õ´Ó m'|屸Úuh¢Âxbæ�Y+ÕWޝ#†/­rI&ÒWÌÞ Md4áÖ«Vb 3äN-š}—ùáQy…;/¾¡X £Z°¡F¹½=¶´÷@‹¦yfLe!å8Ñ*FÓ!W‰Ått“£Ñ@(ô-’9²â{WáÙœé79^ã¼>h|3q² Nk¿#U¹«ANOGÆ]ëÇWh2rv³éÄÿ 3ÿ‡ýqKûÙ¾±ÿux¸¸ÐÁ>üoü×oñç¿þ‹Ìý5À¯£ð«ûŒÏZAȯíðaGmé˜þúÀ€×}‰†­ïÞŠëÉçè6ÁN›~ÈØ!áÁ×BÆðÈ÷‘sîÄ1›~W4mýÿïO¾ãd¸b É¢L\®žKB´ýË®ühÊU5o•S’g ‚zOUæX”ü·¦„g‰ÂR†9û1ï¢LÙã“'¯)S¼)#§}|¹ü@èÝ,´”Ίý×ÊÙq®gq‚è =ªŠÔ^5dv³`NG—ózJÎqqÆ.•pm>âcƒ"§)ßœˆÝ“™Å2´26|þÄ<ÚBiž¡žrY!x dµæT «aø‘¹a:ü´³+Ž|r”tv^ÒáöÖ¥S}¬©gTEÀ5T¬`Š’ÂAUs5ÌþÌÁò°¾{Aî"’ÊÏ0�À�²€©^ÆÜàÙ ÚÝ`LjŸ…nâçl„5äÏ7 64�<¥¨˜ÜVh¦a³¤v¯RðŒ[ø÷íƒüÑ‹†ÔZ;šódrؼ6 � ù&Îc5å¹—×`gr–4ÕŒK¬L…> òKxŸƒŽw]Jµ)r«× ¢Ú3—8·¬¬Öø±~×5_îé„›×N7,5ÙD·ªæ"¤¥¬«4l¥·µ¦Œç}{9ª¶ 6äéM;«Ke†qDâDjœÞçêðÂLjQ0´sA£CcTs iy)“:"ìîƒáú5PPZNY²PJ (ȳj„á0;(,îÍËèÕ¨/$V%û(˜ßþì†ÑPƒv|+b…±^ò»'Ïÿø ÏÓ??ûÓÎnP”¿ "e4¯3RÒùW'oéN}zúæíñë·òL•Z3ãšÙùâŠLnb^|¸Eˆüù{³?sÂ<E_8Uþ;orвbåà ÖÝYþˆé!úí�„ƒá:?ŸÙÏ—Sùúš÷S:a+Ÿ }yŠ gh_Niæõ9íÜn¾·',Ðp\àà#à¦+’²Ï/–’0%ãuLœk§®æ°6´Š|šâ—ÆLŸx‹éÁ&š‹†“ç¾«_í™4ù~ñF´•h“××έ4„}a+sP”Q¹UÌu‰£Ôó™ÑMKøÖpÁï®êOº’ê÷D*Ë•"? eq“ú‚—WÔ–4ß0ƒ=]Võ…ÞÏvœ‘nY»gl–a…S„SNCžDhà¥J7¦9bÐ0+ê™ {êIÉ®&¦$µ¶c[5·m/ \Î^±÷0ŒwH™í·œ[ÞGzrƒXoxr«Ù)©2ñWEüÕt¡?œP™wØXaB©ãØK¦qýZ§NNœ|+nüþ.·5¼è*Ñ›c‰û'ítƧm°Ú~x±¸¼eßÄ™(â\¤±¹yXw­TÉRéj¶W øcN¾}ñîÙ3ô­:k©á›fûqQn*Ê?mCÐŽ£¾óépSñ+o&|§°ýÿA›~[!Ömí©3ÕÙi*|´íf€ÁµÝvØj3ÀÄräóï—³ßH&üçÝRé¤×®ŒBmÞhŠº+Ñö8µ„ÚÊM®šáË´n²5üÆ`}zÃ÷ýüi²¸¡Ï'¤}Ô¨“7{º#ïù{ßÚêÒf ºqG–[3þúСA¶"nÞ±ŠÈ¦!Ïeu®™@W+í’Q1­9íG *è;Û®)án_ÑÞ•û•í¬Tƒm«%àwÙL¡›¤…A1G¥†Cš¦U¤Iq\F @kjó€l7wˆ¬l1yÅrLþ<s‡Îl6wBqé'EtM'Ù4ªMo4j˜½kJFÉ Èæ’‘«½RÆDºØ–3ÉVšÖ(¼úühÆ;>G¸-×%”ᑤLe;¥ÌgsjÞüŒ¬††ª÷)vÚ'§¹Éµn²Kª¦‡Ö—nâêÏTý:•ÈÑÖý¦î˂˳ô(%(k©+2=ÈR7…ëÒ|½bz“µËÅÉ“ ©‡°¤V¦[ïó§dí-”Æþ¬hÄ+R˜cB\VrH4ïW/¦ˆ¸É|É «¯aIê°ÝñÎD’wf }‰;vW™cqÇ…Áì]±0?0CÚ/:ƒóEÉosÂØÈ™à@ð*ÛßpÌZG1P­íÃ!Qò0ZÉM*ä®Pi<ñz1¼„çœËÿ°P#ä㋽‹©Ì~3–H¾”óUÒçqý*Úk'2N¤`'5ÀÍq 9¯2Üý°‰Ïvš²ìËLQôk+¡/£ª)9±”×y7§Ó!ÓI¥ d³t2\"(_µŠ ^‰ û@÷fÿˆ–²–hY oä° ÓÛðÔî%š2©S¶ ¸ˆÈÅd·ü/©=#E86å}T?Œœ V…Éß× Ó:e;Ü&òá9Ô ¯ SaȰh¬¤û¯ãAŽLçYIzj1aÎÏixXíêmWjg‚l;%¸­Sج-ëÍV}ðôt (k<b›®I·q…iÆK§F°ïªŠ]ëéôÇéë\‹òD$[N÷FDë7èìsÉN™`êÍæ'Ã.ŸÝ¤ÎéÝ[÷±¶Ð7 œVVIâ¼Ñ%Ç¡é 9çp*X”::huª¹ßÐãçR J~Šæ„ÒO—À›Äå&Ÿž-JøçJg0›ì—+ϳm1þÅuÿ/‚³_”Å)î‰Ø‰«Yºó´Û.¹ˆûÍM[l¿¾Á‚™Ë­¨T¶Çæ‹z•kUçEÛ¡˜œ]—Úuà[w^Ÿ¾|õöäùñ3rÏ„¿øËî+lyè„¶AuçÛ9Êãé‘à“ôgÜû¾,‹{_ƒòN\-4[Xë~HK+×Q¹iñô¸ÓÁ‚Î9e¬ë[(Eµ÷ ˾Ÿeȧ›I‘G4RnåÕ±1W/(ƒÙ9i"ÖJ³ùYh’°h¢~+\Öõ{ÖH_w÷‰FvÝvi*‡\„@¼†WÅDêiQ0=sÜ໚¸ö ©öÞ”nÁ�`Ã:#õ[Ú–*b·÷2lãžRŸõ.»µwt.V ÎÌæÇTGHVšªÀÈ Ê|±ˆO Ò)ˆK5H)ÓäT ½|kd´HŠùä £¨ì¹€EÍ•A&X¦mÈjvŇ’()æt‚Ha‡¥…ü„…fMJ“VMV4ï©þ¢ÕßÓ‹A D“#¡¶RNP,§´ÕØ"èÐX‡9Ù\( &¬ÿim¨p±¦ÅR†<‡A/gÄú?Рi˜Æi½¨ÎoäîÅ,Fzî Ž)‡v¶½ÄJ"¾Ê~çɧ(*íVE†¹Û~Šë¹LŠúQ¢+Ë5m{;=3ÀÂî}Ûic¸îæŸlp½¯Ñ“×ü¾™Ö*¶f¥Ä�Iö‹Ð†•–ïúôû~Rvo|ŽÅâcãÏn=PÉŒ«jaH"þîúvdöÚ-ùRÕݦÖèþDD¨‘ádLchE¿bñ9øa‹Ép«‹¹Òó®®‘nö,Ý”A¿¾AÝw‚ªdEÚ§ëŠbѵŒ÷žÀª(“Ç“•p'IªCri[ÎhåRQ:4_ Ö6ó‚{ÒäÏ'AŒòýTB“ø·r oö¹6N‚#Ô#D_X|ÍžeÌJ¸î¤àÆ´^HN0¹ù”õ¬š’éÒ”špAµ-¦v{¸Nß æan0ÙäÖ–o‚v%ÂgwÀW_ËÉD×ÔÙ%^{Í$±MŒ<™@¨ûk–©ÒO\›ìwÛYnçÅ>ö™lC‘›²ùõn+[Å ¡0ÈI˜8@€ó®HöÊUY «Õe°¸”4ô;ü*ûâ?µÎ®;w8ßϲd¡õqI€/6³G,ð´b þ†ž MX¬%Ÿž¬o®Hu‚‡•öR#|;Ê‘ôDz<ì›õLt-ëP5mwžêú”ó¯K¬ÏÜf%\Õ¿ô…f¦£VhøÕkSª[„ÓÆ›…Å,³sHác’Î&ºO”¨a Q¼n~Õ“h5Ö%Õ\-/(u¬@Z:ÅtÏfA�ÍÊh?@N§ë4‰á£¼ZFs:Î$’”ªñ„cá”)¡ôÍAÔÊ’J÷0Ê¢°Zû\:ìˆ7 «q2þ½06Äbÿ4ag9M»ßF#æ)™ˆ8ÕõõÀ(xò;³åÙ¤Ýiç�É~¸.³t?°‡8?L'x¾2ñuÉÎ<óíRÖ1˜†lò®Pœ¡® µÐt¥Üî]T$7Ü+Œo‰)ŒøNtßyÉw6¯‹1U.ƒd#'XBÄ,x³«äÝK°+õör‚ñ8Û ÝÈ pE>&Ÿ§¸––¨×9—ã…º žS2[A,Tõ$=ܧô#L†9/ÕÐë$T¡»¹Ü.ÊGŒ—‰7rµvžÛÖ'¼…ZZß.2ÚঠOF$hÂfË€"q^ÚÓÒRlWÍÌ/W™Ý$¥ÆÈ§ÎSï4±ÔùÀ/œ¯Ó°Ûeξ“ßw¦ÉAŽÿÙLõd£Ñtšü…CqÈßža8Pä/HTÏÇKPpJ"#ZθZ¶ƒL"ü”,‡®¶Úl¾œÞꌶ¡âé_ѼeoãsÛíí8‰fÊ8Ž'æ°�y’gFÅ´Ih¼¤>7XÒ颛©í Ẅ²²xo+•ʼnúÓ'€-taÖŸY_z€h¾šÜ}U#f5“ p¼¿ÅƸÝ`ˆ‘èÔŒÿÞ­6O†F/üZûl~Ë.£oݺ˞õthÞK €‘¢NGƽù:‰âƒØö�ê„‹žÃñîö®¬¯SÝç‘ó0¥3ÜnÖ—Ó­ç_ù­fž¿vëÜ¿ëí2åË9Q šøönã<È=8.ÅŒ¯˜ºNÌxd𳯒uR¬§ò3s¢´Ã>NÂ-‡0úÝ|n¹?|·âñÑÛrÃæ°q¡º„âf;<ÖŠ~™CîºÝúÚ·Ó —úÚä7V嬮 áÇoCŸ‹®rîŽ Ä™ÓÆE7hùÒe†ä ÂîEÑtòÓšÒEzÛ†O6$4 GH›) W'†aˆ‹¿¾b/ zײÊw`Us$l«î¨`¹…|¼-ƒ±3Nl³%öO"HÌÅ=dø5õ\)Wé�ôíèW8˜—[c ‚9–SrdäéYqvÓ>(kÑ*؄ܑ›lÚ¥B²ÕößÄ­Ì"í|K}Å¢ZdÏ Fb[ÿ5Êר‘bÒ•…Þ‚Ns·íãµþ«h˜‹¯@ð•d`\\Ê×Ã|çÏ¥2΃zD,Fž 3b•˜ë'C§ ºD:ùMk¢eÿ7fç#äîvÒ–þ´8«çI¹~ÐqèÔ±¿ö¢ÿ2÷{º4FÀf7‹zÎÃQ §"2d<â”À÷u 45¹5{H-À%…$ËÛŽ …^2½¤8²u€•vÚþ¾ÌÒ›2S$ZóͯcZt´™þ 鬾”&F´+#ïr^DëUË­¸-N©3.j8…,‚²2sJFYÓw94M;‰¦q¸SÁï¯I³’o–iÕÙ:>Ñêsí –ü÷Þ‘)ÿ ·N’‘Å›IS²� ”pÐÖ¸ÈQ}Ýï„L F:‡0öm!ë»M' _æ–-nîYµ)Ò ô_Ãy Á(Ú8Åvf«G3sä´üHÅ–˜™/ã:0Ý0Ø " ºW\û”"ú²!b,².`€àU&¦ UÏy9i4e¼õf„T"¨¥.7‚ÑÛ* þVñûV¢uV`OÐú„+ÀP„ÎÓ]˜ú+Êä×b(ÄäÑB–ÃíGd²âà×<6AmR ÎŠÅx¤)ûã…H/Vv")q9%gŽøµæ•#™@¸5T7ÌÚèÅ‹´ 2;Éò¤@¡`ÚO­ZMÆÑ¬!¶Óë’BM¶“’³§QÚß|`]ô§›TrDI%브ñH«+‡Í{rK3áÏè˜#Á¨ÛÑûaþFH¥C†R(01,š'±(«|á DÌ)ξäˆr°h©€sÑ´È®Y5{ 3¯”b1Ž®[ +`Ô%æÜ¥4Jª’u£„( Q ]&±g¸n4\ó9D¿s)Œ]#NÞ3ÅU•é,~ãnc§«)Û)3˜~רåS¸¢CÄåëæ/Áµq²GƼóލxr]Ü;Ð'»dÄ¡„9<£8'gTn4Ó¢%îK­ä–¢´q©ï1ïHw´Ü‰äZ I±ˆÏçŵ>(óÔâÇv ¸~ûO“}=e®qŽí™l<O¢Ž•.0ìºJò¤b�Y;¨À£ƦÔ#Nš1Cû<l3v'sÁ�¡…fU£qª Å ˆ€ÖO6¢£ xùX)’‰¿]ÀmÄúƒ<ŒÈC#­î, NUF0xžX%:œÌ#>—vÈå ûf*.5´àö¢­ˆÛ~Ê+ŠÁÓdÏóãx7‹çä ´Œ`ýîEl„½{òdwÐÑÇuG.€z…Õ´·Mæ&„ø‘·'ã$}Ëmˆp‰3sZ&¡­¤Q1Íhïs~tª%†‘pNP+·¨ ÜJš]d)Bö½Lï)—Ǧ\ÐÆÀP^Hì*žò°ÓÃM(@&ê^D@<§ÿÎ’—h¯sQ–yèúœËuX…FëcçdÞ5êí›L΋ñˆÒ¹ž*ٺѴKæèP‘ïKçe˜?îécsÒt@ÙqŒQö˜paLˆÐRh 1éÏee2K¸A=Ž9Ê'S¡êcЃ3#6㜶¡4¶{Ù³¬h…s²°7fµK”÷FÓ,?à†JÒèXΚkHÿðYr{"Ka9E|9É:û)Ü( ‡2êÑaÒÓ½“°šw¨jtHDfSE»ÿÛíì#¾5ú ú;Øy?–ø6%ë¬WÖà"}CW�0“iužÛŽé‚o‚Ìßç© dÆi»yNž(× rLEä¨XÉ¢•¬;´+Íôø½Í uçf Ã#�"~ò©¥M1.ÓLðórÁ¥Ah”åü³îŸ­·Lß… @N0ÿÛ:ý )|¹d;oNI�¥ ´äb9ÔŸnðQÎ¥hp|c dКÉn—m¹¬ˆòJ‡Õ»¢”Ý&²:Ùxomÿ²Eâ$”Μæíüö„J’3½¶Z7g´÷«„ X7Sô/¸”̰>O©þžíd¬M̃'7yÑ駟¸VXšhÒhšóº üN�Ü ¤àG)uÛ’ú££ mlº¬„Ç»*ÓƒLòsø-VÖ…PX—³ ƒægá¶÷#E-‚­SÄ´¿Šs¸+Ê9 FOÐ !¸Õ‰Á››ßn‚_2íh'\P±ØÊç9Zýâ¶¿sòÊÙ…5én^hìbwò:?ádŠ.&iô{2êöp¾¥ii´Úw…ºLV#(˜»­ÎùöÛAÕWfdÎ\^[<6QdOB°®¹8¶€H‘gþ>(©ÓH{Xä2;ê±ä~Æ‚³¼�ƒ×¡öïÔ4S€¥ñXE®7›(Š í4 ò®ÞéWïô›6Èœ§0ŸÚfÌ'oñÛoñ›O•Iq6ddD †äl¢¶¹¤ýTÔÂýC\öÙÛU›Â\¶Þ?°Ï^Šëj3FE¿†—Î7¯Igeä–Ñ ’î-ú$¢m7œ’ÇÏN¶Å§t>oš[„†£Y]Èn¿:˨ DRÌ>I{è5+Zþ²¶¶dr+Ðä.\¤.+2ü!Ž\Eµ$Ê Šæ˜Åþˆ6ØhõZd²è —?*…@$‚�ï$é¶Ü9 †ú‚ÑÁ¿É¹Ž:ŽB“H;àã7U—Dö:cn‰Í¡Èª‰å©%GŦ3é¸Ã;ÚŒryÿöZYG'[i‹ã<ØXÆÈš•çËpseË ä†Í?A΢¼ÄLëb ¶)®Õmóž T&½˜‘'rõ´/êÕ÷×õe±h]aSºÔ©Dý¯w…qzdÛ¿žO²YÙ”v¸kNñ4¿®·½-ä$·Ôô9ß]r Ä•ÐÑÛÞ@µ¿óNìŒ. t»Ü2žMÞd ‡288c º\¿§˜{Â<U¥ÑˆÑå6˜ÚÖ—,@ÂñK›§Ó4XMìm.Oo#]$vóÂÑYΩ^cê(á m“B}W^ÕŒ9Éú3ö^Q]'%(-/ÛEÄ@6ERp/¢Í#®ÈÚŠosC1|ͽ¶W3Šm†^˜}°B2!—§Î§æñ vø÷3«3fqݨî‘ÛI\t2“VÑGáFmj?iö2G¹½B–NøØ§z\lê—ÖKîÈÐô© =ÅÆÉI+Îì6™IÔÕëËz’Ö,ióÎqû¿ÂȶÊUêö`»vR–¬ý¤Nb‚uÐ(Ò‚ù·¤”›¦Cµ:¶µÀF¶}ÿ©h!ˆèÁ_çX¤ø!·‘>D_Ú>”ØÉèJç¶Læ +qäštžÙùب) L,•dy8Šh {±‹·Dj”§ÛnÏuÌÊU¡ç~“EAÎ-k"õ k5}\C>lÏ}Fàã9ƒ.ˆc5Låî ÷Ü‘ ¢ðü4 r‰OÿåÎj⫟ÖL§=×<$Ö–§6F«‹R:èp†ºR¯©§%]nd¥NAwkD'ºv‡‚jãîþh]!^<¢¡PKGH°GaöOˆ j¼tÛJ¯ânÚv!ã:«æc 9—…x³ TÑ%èpvr C:ÐXj2±à­æ¾¼6<c(ªµŠ¥Ø–Ë8æ÷½³÷(?—W’‚ã°Ò²AEDáõ%/$ÃŒjEÓiñO+²:'°À¸t¢•ëQNKÒw¹H壽XQ ‹bòb&èµ) «@÷Ù˜aK"o±,˜§Ï¿u“þ•±×ASýÃO¨ppA¹3øý0?Ž¿m @ÅÉ °4¤�0fƒ±U¦á©k†¢>=+õ=#najÐ…ô²n¤4bz'¥bÎÖNsç`Te*`m—ë Ó^”AI#•mZ‡-Ó @$&Þ‘´ý˜XËÆý»ô‰SÈÜo¬¼u…²«œë&¹êÁX飿o©éŽÀXÑa LË<÷îŽ5>-®ÊCßh‹p‡Å€äeãËÑr~ôvÆàï4¥'•¦Ó(H0EW}g}ëâW0Æ<ÌÐÖÃÏºŽ·5Xí&9"¡䙲y{Jþ±A{騚?fZàZkH§-õXv(µwÙ¤úš$èq3vALI%øHÁ¡˜°ãr4)\®†ap¾-ŸçR«Ï:4m4jœL'êÝ5£ž 83®ÙíK�æG™rź&°e„ ŒÈ¤mºØ¤ùÈ€á<ý¦P4¤/IÍ´Š@Þd*‘á{ÖtâxŽ[û‰ ·ÃiHiSM=HNˆ]\² 6ø«ÆÚÌάX\va> óD›þ]Æ\{i Èœ¸‹‘â,ý¤>+âPØÝµ£Üv·ñQ—ó=â‡ÑÄÁ’Bùiú€+óåtš\pÀ¢ˆ‚Ýó‚'0)]¢þ“esÙ~µ“wDCç(]ÙòiëÖZñ ÆÃ Ñe1 ›e øöy›|6jVwãJ.`¹uÃurogÊŠÞ!³ L‹3x¼®N̼µ‹|hšå«ôœEã¸Q*©¿\ÐÌPë)ë$³‘2ÜNk…+¸ècÅù9¸J)¬6©Ù $×j ]¼¡*¾2ü¿ övš\yVÛOÛqZV—gõÜÈ׿B09È®K¾W#š™rþ¡b0땤¬Sê£&'_Qù€"¶rÓܯe›“ò’¾—l¯k¤A±p×zà 2!ühûòQR±˜DGz“v.yÉ8 çœ+ÀÏUܰݱäZæ$ð«7§O^þù…Èc±&Þ¶ öõ뺠.Цçst]SîFØ9.ŒJê�6ÔÎ.ÎÑ0ý ®ÿ}¥’­QÖÇ$ Íd*hÎe¡ƒŒºdãugõ×D“;âÒÊÕEs˜«XC(¦yÒ(™/#d“Zg®ZÃ{÷jýØä”‰ „c‘Žír }=bå±çY°·*â¹r‰²Š®Ärˆ×ˆL‚”A—f¶Ñ,¿µ/×õÕ8ªMVšt‹-…›÷¦‡f8$Ððy†0Ž—ø·°w•Sñª"ʵíù¼žïç#Ÿ¬wÓ ¥šµ¸ê\=»—÷ù@un ¹åÏdñø¸íšHP¶KOñPŸ ÒrÀ0š¶N<lœÓæ}Úc’I—Øq OÄ<¦‡Öw<+©XéJ)ì9Ñ:DÖÑ‘·”*.M+úT—yA›ª]†VÉ’[)ý>ãï‘\ P¢´”O]±×椸aÃܺFÆZ#à>2Ô¨½²ÄÑШuÉ9›¶·«¹Â¸‰J3Îè%wˆy*ã´öKÅïßœþøîůÿr»\x)!fÞ32/b:#|èû§OŸœ¼øá–£8/E—õ{ß„î|ZšëR´B’ogËæÆ&”Õ|®Ë™šq05[ýúñøÕ«[Æ/ÂŒú§¦iãiÐ>ð³wo~\?b¤-™Ê–EѨ‚Ù#ÅP=w¥X`•õº¼;§ìÂ%EvÈ)™ Õ´S ª&‘MÎ#Ø=,ìN]:­_FdBº+Íûòh‹:"¸ÊpEu”¡$"XÚ b­(ËžJ+háÉ%¢‘¸ˆeMWÚd½l+«º*/ ®ÑBÒzô-öto ¥þ‡Ì¿ÆàŸ¯F9…óŸd\ÞÌú+û%kbDZju2îH‹:ÝDØ-ÎY­‚Ýæ ‰W3Õ‹ Ãi_D©ŒLÞeÒ™…Äq•Þ‹l+jÆÁeRÅÕ»´iM™ÄøôÑö¶NÕ$…’ hm·B-++é×ñœi«Ò°í"+K2nH\w-n‹ ÈÆPUìõ­³ZŒÇ§É›0€x¢¤5ÊxãõOä¼Ú‚!&Š…äÕ­µç[‚fy› ˆ-u÷nx…YZ]¾�žñ+®ö˜´Âš6Uüe©šÂØŠÅåEoõ•Ú'(µwãÊÊp|¼ªfŽz—TS©0JãÝ*üt—³Õ"ÇB'£%uî6n•�h¼c¥E¢k¾f‘1ÛÕ¢õòåU5JФ¯&ÉHªÊ»Ä–ѤhšÛ.°_B¶ª—¾¤Ž3hö¸®)ö³âVƒŸ1žŸŽ&K@½‘èŽéÉó±éæÞüåùé«×/ß¾$«ŒþñöéóWÏŽß>ÝàRâüžXCÞ'‘kÛ$¢:ûj‡;2G 4…/¯p­R¼Œ};&†c¥­¤/R­Uˆ“3;ì;í+ÝntA³ø/1põ[³žpƒÎxµ(¯ÑÛÒji{z×g”ÉŠBSz¦Ž»Ë�%©Å¡Kò·zU&^Ó頻‹–ŒMÉEÍLr³ˆ®9ÙqÎâ-ƒ²ÎÞvv8Ó^Éü¦€®©}Z'q ¢2Îq"ÚÜâ|µ‡”÷Iðœ-9" ð®]A^ènhÄ¿)©�ÛÄçug7¶Ð›èÊã²é¯NÒyRXÃõžy¦Ì_.sVv¬¹^‘Þd*~$€´¢½ÍdFK{ë ¦fÖ—î©AÞ·|" b$úf] HZhí(<ûHÿÃìˆ8 â ÖÒͼ)#D\Øßr\ň ë ;ÝO¢ F¡ Céˆú­w}s:Sÿz'³¡Ïã-ÞÙK§*fÃo›À°Æêë¡×Ü.ßmÒDÿ]™L.›*)g¶g4þPTU=…°ˆCœÉZ¨JöǧÓÕê*ÔÍbûe/ýW[gßBX#Þ1¼ja¬—lCƘ]rð}x0^DŸ°>¿6km[;Em¶SÛOh­G½DŒìöW¹H>+Ïídü©·µµ;Oò.nG¡òÀ´öGy;(ÍŒ…9jH b³íö|wU¥Í46™ï¼~úøå‹ïO~8}óòû·¨´©?øñøõ“Û\:¿ io1À‘J$õèTlJ“ïÕ_o]…Q¼KmÄ“E¹[ïXÜLÝÙü`fÀÊzZ d½ºº*ÇT±‰/iµÊñ0—Ï…/… 3‰æ!Y¯ V.Ù A_o$Ð’±¨ŒÈ­Â·êÙŒcÏÐ;k®{UÒ²WÍÕÃîìäUÖ²/2â"‹„Ûcɧ†¢1uõ’7·ô¥—rØ pl5VŠ}PÐÙ®å&“(ÁßCtŒKLj‘­‘ÄQ^ÔñÌíD_G×PÓS®>$Õ:Ã¥]­éÈàÊ{àzMÍ{.ó@¸ÌØÕ´¦c7Œ‹yÕ.-úuØP£ËÕ{>§D £¬ÓÙ¬f¾½t-[ lÕ莎û·£ô-¼ƒàm…,–ÛéT? ý‚ÃiKÆO‚ö§mYñ»~qC3˜�û¹¢Ç‡zBÈóeŠ‹¸N´y"Ê8ÆáÍ8:ǸðZß+-ŸrT2+O¡¾_®ò˜Ï¸jW¡{B·&@ýí-KÔùÛÀ©WìŠtB†!6ª–þr×”¿Ì<¼dýul[—4)Ü"f´R àÄ'à·³Ð1BÌLžçñØ3ùMÇÅ<Bp±¶êR¨¸›ÏX¬#Æîô'^þ�Õð•§âLI.%êΜ_ÔöãÂŽEºiЉ¯ŠÃCj‚@Æà»“§‚N�{IG¨f½JçŠ/kfnGϵõ>ìÿ2|ì&œìùnÁãú ^çbA†‰1Ÿìc³Ët ›:ŠÓÃ$�çSá6ß$8‹"/*)ú àÀ¯þàÌg›ùÛT?CLp Erè fÒ?‹‹‚Ë^¦Ý¶«I(ã¦ÑQºlˆ4¼j2ƒ¯ðÛ×rÖ(ËÁY1‰8:½›ïÈ•J,®C½ÕpšI-Ëä&Ö‚~ %>8³–á8Uvœ˜d‰ß(ZjÀûQËxó<ŠEð ×jí³Q ®íµŸ¹˜ƒ¤µ`FÓŒ™`"ýú¸…|èX2$¨ æ>^q˜5­[B¡3ËfsŸ}Ö»<Eaô°>€Ú-›µŽ¥P¹Â},ʸÂIˆ« °Xu*w±ï²x•xóÃå¹EÁ?™R9-fÛÝòžQDS\æ~²¬~§‡´Ø.1/W¡ žBäÊ)˜…»³…S_30½q‡~-Ø–d˜”ØäÑŽÎÛÎ<A¨T\~,GœÍJ4 GÔ=üuôÆû=+Ù5I7jÐOLK>d 6}¬Í(kêÁÚ¬©ðÈ+ïmVÑ5»/NJC~eZ"5AÛ‹ÉLÀYÏYÚR´F þYĵ—O<ú©4;þ(ÆÞ§u/°Çšë8jÛ:'—Fñ8&óöû5ê„@“¨L6ñ¯}¨æõ”ägªÈ…Ì~2%æDoïŒá½ .R¤Áˆóg‚»"9Š(Räæ‚v…óy…ƺγæ£àØ‘f-ͯª:wßխºÒ•ík¬7fëô¸x¶¸ Wº¦×à¶\âµØÆ]gõ¯Žë‡m8«}Ži¯O‘ëÄ‹ƒCEØ™E™›ò^ˆÔ6,EÓ½Ûkõi‹`ÙïàÛüL(½_2ÿ-Y·h›m.Àß…%è/ÊYT®JTÇÉùãí…âˆ8¹E ¯è¸Ú¿µÉŠª1cü¤Ü ç7Ì–âS$cˆ|Ìh…°/ÇEöÑeGç–-Ù}Ò0ʰö$VMê ä+ñÀÁ0¹&9˜7ú‹}E.pZ3ôÂè7LöRª pV+Ü»{<óΓìl*¦Ö@¬í³äß—%Á²o2«b6p7Pcˆ1ekd¶‡5"ƒe¹§ f?lsÃ$<.›”9ƒC3µ>Ó†¿=Ή-O èždoÙz÷ùC·œ)Ô5ŽKb}¡r ÄrŸB,±¢|yR-hËé"{Ç¥ w˰*jÀ8öYxM™1º›O¥“Ï8t[mºŽÈ?ÖgÌnruzxÍÝ©wcU ¼˜ùýÙ{+&‘5>l›O³Xã¿p¦¥•ÿS]Ï>i¦Ã�’‰æ«�—YyÌ•¡³[äÓ§ß "´dÍÆZÈÙ?ìgË”Ð>4˜œ�ø‚>;b¼·O†å3Õšøè›„’ˆqz[ÉÜ(Ÿú—• ¿ÆEÕò{Á’žWå9ÝÝ{Ê ·ÌyøÙt<¡{VrHj¨Bkß‘zU¿þ“Å×£ó{D?}ó÷2€ýa›ûƒ¶ö)DÖÜ!«wB?Ë£ÝIÉFá»ÁÇñ~åûæîŽÈ¨d'¤ OZíòᥕ§>a§!õQ‰K¸Óq0Za…7ÚmûëŠ*-Œšˆ§,Û|UŒ¤nqg*;®í››p±ÁÎq˜šðãvEKÚ4ŽÝiûÓ×£¨×õQêþ‚-´¢§ðP¨´FK%ï•:boo³Û§‡xµlÅAoÛ-~^ZÄcœ^˜Ep±% ;¬,¾¾ºùÕÂ\üp|úîÅŸ^ çò„X]h3-ú§‘Hy¸˜à¤\ÄöxnÙ7nÏrI’4 ¥Ÿõ°¾Î{:EhôˆrCǵfótÇè1Ø;RÉuIQ©ˆô‡©Z(ßúkùˆ|á{¥‡ÝFJWçdøä¨ †µý ±.Å·«ää‰k9¦…Y“†l~ƒ»~åXÌË”ö‰«£µ>Ü7VÈŠm„E…²¹!ªµuæÌAfo,1Ûš4#æX6œk/¯ÇsÆðô«3…ê% + gô>mƒ“ïOÿxü⇧§?~ä9¦lžÈ÷RèÄv›®ø\»n/ëm{NË ÿçÙ{iVí¼þû'ÝwÒÒ§) }q Ö,J]%|,+F$§à›B¼n¤ö§†Š¤/¨&ºrwfŸ°;ó_mwÎÛnN«ÈÍhÙ˜©“è–±üÂã´7Ðvû·ršAùÙ¢ûí]Ü7tÓŸ[µÂ{ôí.ö;V™f·dRÖ»oÚò{í»Ÿ¤hMSª"AY:Dôf®(ö,ë®êרRÜØŠ“–9ô«äÞM9K½¯ÎøD¬+®Ü˜~§.KTu]­¸Â­ô¸I8ÚroÄErÛ¾ ôó<ÌŸ'›¾È@ œ›ðÆÎû,¸¸D^÷G+ËaÐyV5=)„O_¾z{òüøÙ@�<Å4K ¯Ö3ª²5Iè‹~�pP7æC—ç3ýäØÏ=KÛ5i{«~¿øKìsò�r]•õeƒþÞÒÏÌ+%þÓ`4éþ>e‹½¼X|ãrLÿ┆³j”Ÿí}ÅeÀºƒsW ²ÌËQY}ØÊÅš¶¶Wî6/zÂO6¬ö¦ÜAÛ‰Ö5ßubRžaÚá-„ŠêZK­õ †ø·È2JްÓ<®š(rˆj2£Ê¾ïob#xÌžÙºþa‘OļÖ7©¦àW]O’…•b�¹•vЬ7ÉܸAÑß_ì7êñÝÖS«ÿ1%N<³¨]M2³D54ö)„l…ôªˆÈ$MŽ 4hÆ©;˜´'Î&suQ÷,™Ü¾ëÁ3‘ƪ2H¤—¹2vÄ3H?†ygÇh/fâȺ¥x¤‹~¢Ý2°³€É‚é¶EÀ’Ì#ñ ªz(ÕVÁ6HÜÍwþZ¢-__¯Cÿlù>מ¿UßZÕ³3õ‡lXL·9œKE8fõ °ÀRr¡{·È²À]„ fN÷ª€Ì¥Dýi8/—Žf kÚDvƒŠ©²Òõ††ü¥^rÔ®x$ÿ2�ˆ.ñv™匽ª8íÖ®d+ÝDpê¤nƒë¬,n•ÅÎ÷ZѺ,m±˜×Û‹·YAØë6kw'l'Æ)œÏ>ÈØ‚ZÑ0ôsªÞtü3Z=ÑëNe=ÓOC‘OKïiq­x—PëÜü‚ˆÀ'ß:B M׎ºl''C˜áe#U²‰ú•Iöàzža—Î8ŒP~¤W¹Ž²Ó=[äQílŠXVO2le-Gs£E˜Ã+èªLA¹ö¢"?›áÇÅ|LLJ¤\“‹{/fŠÛ]ô¦3¯4F­˜6Äî6k8Úä,ùŽÝ.¹ÞU,íÆ—MÕ鄞L}׌ á8•ŒX’£©öž`‚\$¦%6Z jw õôÆíµ¦ …�ÿ|.x†)'cÏp?¹ˆT¾ÏqÎ,‚»gÁàŽ|-:¹[@áÈØÖvmÙÕ¡‹Vr|Híà^Ž5´Â±Ó÷{ïßYñûÓ³²Y´…˜ ” ÄT¾´j¶†Ü­vZ̶^_5!ëý<kfjSwÏšÉÜÔësÛ|»vèGýå;W ç䨍ú^ïÞü/âóÜÁ‘tV7㣩‘9_ &w—KÆ×³âBkªÉŠBøIo•ÄE¶RÖ»•È,ƒsV.ÂqSFÖfâ¤dM9)%…Ëõ“¾EÌóR\pNÝK@>L×Ê«ëˆQRgÁ™ëÅ Œ¤b]1ÒvE¯Õˆ-ƒ¾¸Ì`ÀRõJ¿¸*ªZŠ¡°¤#‰~‹Š½-±Ãýè×Üosývj.»°:Õ*æ ü$-==r‰Ûg¯*Ͻð*l7`W€Ûÿ]ãSˆÍ?F=z¸§ôüiÙ‡ÒÝi¬(…E„ 5Ì÷ÖIhæ8æYâí,MS„'KÒs²ZyæØ¥æù+³Cµ4¸ðz'±`Þd·^–î¡mž g˜ÿ@z±K˜ir…|úþLª‚§†ÜAÿæ,{÷æ/Üü5o7ö?vØ}l3?{éK~c+r‰-å¨05¥‰ÝQ(5BX470ñyúò9aGº‚pZ÷6Ëf´*fË»[eh:ãqf iNï"¢ŒH)bô—”§hå§)卨¯òõ¢5Ž¿ò…íø&â¹øä"æs ¿(ùÛ9a}°hŦÛ0ÖUJRú€îçMYeêx9~QèÞ/ðêºGä̽·µ´‡CÂ+.âµ|¸z^JÇîdíÜŠX‚uê« ?ÓB¢ñbãtøÿJËÈó6î5`?yå:)­)¥õáÚ”ÖðȉUCëIg}› „žò7JÅçÜ\^à‰#³æ&XðWšŽRÍ]¨ßòe¦[p ÎZ€i0¯1kYëúÌçÕvŒ—bVœU“jqÃèE<÷ìíÉñãÇOß¼a©Ë?þîõËã'ß¼EóR¸çùÛw×- Â )éü1OËsI‘*uêv#A]}ä`1—‘· Í85PS–÷ÈÞNýÞ²Eþ/M}¾Ø[ÎîJÚ‡e &³‡9ƒ ¡[éoº›B·iâG\ÎiGåçПþ¥)¦å]”ucþ¡aòhèa'¯ 1ãG]Å:sÛ`ú’rÖ`ykÒoÙÊ&^‰éb‚ÔcC¾¶ #äÌ_ض8¾û I%-äÞŠy[¼Kgnû[…s‹s¶ø„ªÔ1E')]Ö‚^9XN².ôí×™ÈMJU£‹*ølú¶¡³êgC£TÒijÅÉÖOZwµdËÙ¸Ç%ÖZU±IlÜü’›ìOÊÃèÿˆsuÛ¿­€³ ¨ÃÀk¤{×{“p]Ozx 9g>«“ôæî`*U$ÏKF˜À�blƒ¯1*S…2nÄ[t9¯§T¶²Óý�|ÜċĆ…{’¿ƒVߥœE%yÐH¤J†>ÈšQ1mZ»“nŽHÈ|¼|30ެöä‰õC²Øÿœ¬òÈZØË,+b¦NòÌÙ—/û¥¡´*Òó§Thüݰ�É7„‘6>×ñŠÂU~iŽš°r¼f~*6BÞ»È~e{ÚBm ÷ýUz`Eò­Ütx\¶”<D1tzVœm6´SYŒ)IµSY‘–ø 0оß^ËÛ•‹ñÙdóE3hi·D8…x;?…zGŠÍuÅ!¨ÆII#ÿ‹ƒþda6m˜÷›Sèy6÷mLn5þ˜Ì;½åµ¥`М£…M§zÅôÕÆ¶¸<é•fò܉A'h]‰ò0ë¼±WÃüu²SÊ´ý”_—`zS"D {†ÙDñZM½+œ6ª’_­Y)zdÓeêo¼£ìp“ÿ{ –ŠëÜÿ¶ÅòKU¬V2V)óãWVçSíb (|,Ø4n=ÑßDà¶”6©ÿ™*#+Tá[ÌR#L¦DBÀO‰\óžËoÛÜ ¦Þb‘ØñÚ\[-÷®Äñò_o•NO=âhvÚž‚-í’ È?õS �M+Ú¹´â´}~ª/ÉOõåZ?UxäE‚UíñU=¯›˜ïÁê7ÃQüP­"Çè?ðê=õœìg·XA1µ]Åb·PèôÇE~YϲÍt°pn±Ó(¾ßV2âh/Ãh2&±¬Ú.²já\µxyqé*ùBŒªyÉȉ…u§rŽð^ò32òF ÚsT®šƒ°%/¨ÚqPîì³rT_•Ћ¤˜ÅwʹÐ+N>”ÊæÍÔžg“ò*âXZï™+‡�™=âoìAŠ{Wd1‘1ãjEæEkÚިΠ*é¤õrËÒÇ9µ¯Ôü™á%ãÓ'ú^ á"Õ3 ­d&mGm÷æñËWOO|ÉNÆÝðÓ ÞHpaPzû"öaâ<.²VÌ’9xPHZ§!ݜܞš PUÊœ‚€8—[wQ|Ÿ“oNÊòC8gE(†è¦R¹Å‚ËjFv¯ó60ùBûK_§ÒãÞ)´¢è¿.«ùJµfHj; &‚ë²ï’u\¤Ã–M; «gËa¶ÁʳI5ªèlEòÙp~>T…Â2_<ýþôÍÛ“Çú Ä,ùŒi‹ƒƒ6a[èœ#± AˇÃ!è‡ùÒ¤´Ç´å4ôd©‹ÔXÁÄÈzÚ©ºã„âz.½sMV'Ùr6L¬,=(`5­G£åœªøµ@ùì~ÎØýp%ÊT¯>öRu+Î7ÅEzÓ²$£)š©Þ>ÞÀAœfMĤÒŸ7Æ£V3ªoÙ˰2÷2µHLÅÚ}NÝ ?ƒmÍ; ¡ß’4ÿÞi3Qçï?ò±›²˜£|søÆp•YÚÎEÝWË!9AAöµ%m®$+D{¿žŒýéKRaܤ;ª{‹ 8ލÔ2„×Açt ŸtÍøZ&‰.²²}˜ëŸ+%/”Nkk5}7679£•® 9=Ñ'1ׇ}TKŠÅ\ΰÀ¡ Ã¢×C—> |I5LÛ¿•óz˜œ'%$Uì£u‡H¶Š>VÈ“âÓjî‚,Îé OΚøÃ4ÁÁÙŽÛ'd%ÁŠž´¨®»=¢l?ñð­øŠÃ6ñ}BТIxØ\ˆGÍó¤Ç´ÚŸžˆ³·a„¢£9}R ¢=°ž4Î_6(H°~í0ÕT ¥@vÚƒ÷uFcøtDn¹ {ôÝkJ8A±z8ëEv´²è¸®ufñóTK´psÇðÒÑ~ÒBô1§mÂâÑ`›WÜcÐL~½hc:êÍ—òE¤2è]L¯x²¾,Aë2‹\´€Ã-ªëµò¨uí&¹?Ñ™'?“å&½½+FªøgX1Ø<ŸÄð¿yɤÂ�€)ë3‘_O©LTM¹nHÏÔ ø”õÙÂúk¸Ð¶æyZ+×¢ÛâºÐºÀÈœé‹tKcG&¦–«ŽØ‘\N焆É?ù OÛl¾œ–«¯^üº5·^ºiã¢iQÅÀj*Cénך;ë‘ìó\\Ö ÕXoy=lò#n,qx:(›E “Šc¡ °êUcE~‘ zYΫE±]S΃§OÓÑ‚(ë¤ú9÷fwn¬ÿ­üŽK-Ê+ך4A¦Gµ…Oz¯jÏ)\íCýŠ|¨_­õ¡†G3_#ãêÅý…ž  ٰ>ŒNßE½8jm/m-ßyüìd—Y¦ÂßÔ€Â!ÖJ×Å”¤,@žÚº¨"ÉgÕ”ýE昫(‰…Ot6éMÞPÚ•Xü¸XúSµÖ} gþJÝz’>G=¸Õ³¿ž}÷âäŸsF/66( þ¡›jêÑûr±aŒ ¹°bš >|»Áð9÷@á¨ÛÉ ³|j){%|¥™Pøªšòêl¢tpß¿}…ß<q˜Ï×Ü{•d9(Ë…<JËwÀQÇÂ\ ôƒ¸Ì´S �K© heè 2¤ç{ãꢒéñ…åÙ‘š‘ ‹¯•Tá'%¢}ù0ÇÉÍ.û™‚@#ZÔêb]©H’hi„'NòܪøŸ¨¾’óÌ’Ø3ç±n+*csAnŽ0E I¡aÏ /}£žÎiój”¡4¹ î5ãRý�þc. ­žR~¨­C.�Î)¹Ûd…vŸ£NÔ÷™ùýøV‹Å±<Ÿ¯[úH¸™™h2ó ¿‰¶*l¹×èõ¡½`ûœ qõ/R½¥YŽÈÃJIO7±$Ö]˜°÷¸âJþ/ì†zw•ÿK¸ˆP·œÏëù]Œîù¿47a–?Êã! ]¯A'Fʶ½ä7MªV¬îê,Á² �Qý1+#ÔÇÃ{8Oµ•,t’ƒî^I="wÝ¥ïIŽÒ$\¡c®÷Ä{„‚}²KFË9’‹Œb]_=Ù¦ ±³YpuÔ úq@gR-Xúà¨ï/æExkN¹ ÖÜã—Ož~ûøûÓÐìïáùU1š×®‚-w~-Ð䌕HzóE°'ADà«/&7ÿ_óÕ[è¯M¼ú:=DíY\à@SÕ¥}E'„êÍuIšP6Ê¢~_e'„’_,y0s.Ò Ìç„®B¼IœýÜM*æùž©=¸ˆT%Ùÿth{øLZD H<ˆä5¶bã8Fùü{JÐE®L5ojÅÞÊtc5QÔY`ÒQw©Þx•uÙiŠbãZtã•»wÇ-üwßÒ9°ô¥]°±° &± J°ç!8*˜kK‹×ˆ‘Ô(2pNqCËŠy…óŸ© Çzª²HËYD<“sF„…kuâ» ’åY ZÚKŒªê¼ºÁTO¨î:’ÔíÕSÀ£øg%+MQ>,Šê“x«ªy”0©†‹§ái‰L>SܾµC5'¥tÒ¤: Sîy•K«qdSžvCÆA93RÄñrD¹{ÔéÐþ\ ™¹üœ ô þ9ÇÓä[³ºI¿”÷‰¶,ÝY™~ Ô‘žÂ©Š³Ë1[ë&¸LÆ;¼¦oÏs½ÜTÚñð­Öm,1"=À±ÕFhö7C%­[ ®˜Â‘¿4`¦_\raÅEÄ»Ú(Oƒ ~q¡i¾ZDeŽÞB—ë³JE7Oê ]-åVjDû¾æOí¢ Õ$iC^¬ù :iÉѼ1ãëïø¢œê‘'Õñè(Û,?R¢¦…y0B?¸¨eCbSÚ(ÝÛ:½"îȈœ›T­:m¶lÚ7öó wÕ\Øo†Ã¡þuö ‰²Äƒ`YîÝaxžŠáÖn®Cƒ­#Pëz¬Èy5ÜúåEK™Óâ[J\Ó”Y0 é¹c ¥÷J%í(ß-ÜÖ8iÉ„r¡³•ÑÉå[Û–€[ŽM¤³7ÌN¦"F¥ìkÑðí†Q„>ž5~p¹íX¾Âœt& €¿ÑÖ€}Ê[8¶âm2jGÓËD‡Ó¢«gËæƒÃ\RÔà \„œÖ”yøMù¦Ä4D>‘ ¤’Ì|&^cJLPà¨8'UŒ×É—aP#ÈoJP1‰Ú¤çºåpú#¸}°TŠwÖ‰¨¢•áŽð0ÍÃRÂç2¾°õ$ÔepSz§¶LØ]–ê)Ÿ[fÞ>‚j­�™ÅŽô¹Fþ@®‘?¬u„G^ž)'ˆÿÞºžo‘~T>QÌÄ“À6¼W%yš«æŠ#Ô4y44R˜'›³rq]–ÓŒN3YŠ¢&Å[ÁvƒÓEhŽÆ—_¿¼i ¢›]´CUÇÉ-HŸŽT+”Û± ?ɵrç„í‹cÞυ΂ۄªž,ª x«c¦D‚µ?Òt©ÎâÔL5€«²fHK o~`Ì y ¯é«—l<%—­ Ö —„É\,§\%Ø5ÚÜŤ©3""!ãä¢">T<`}åo$Wšm»¢^§bBòâ2cØ@sYùY³³ úë1ÆL+¨W»©üœù PÔU1@]5-ö‡jaûŠ…(„JŠ+Õ=ÔÔ“¥žçÃz$À¼éMìCñ^ðkœiÙÎ:™ÖÓ½&\E%n Ý$Ð=̪Ъ ØÅÕB‰/„%7Syb;ŒŒþ «î†zR᎕£w9–̤kãþÁØmYýAæÔxä”IM =ô©RTàPbXs ógáÍd ü¥å´ *è7¬“¿|Ìd@”›Mçåwÿϳ—ÿtúîÉ+t€·Fø¦VR€=\fG‰=¨üI]ŒGÈwgWTºÿÐ'¡LR#DÞAð“0ã¡-ü(hgb\§ûâ6ÅM¬7o�UÓ?O%s®Ç‹ž&)g*a>Ím>[ç0—ïèÎã½ÝM. Ô2%I³ZìÌÝ©DÓúAº�(¹»­²uœ9W0<—ã+z»mÄÃà( ,më¡l~é%Á8j9=ä O@¯ÛüîMZm‡; OýH#ò&)&[¬è­í»0-~Kji»T‰©VâMžu1hA¤aðL8Ë‹²èLªTX´Ÿ¸ñÌ9ëŽó%S!ì¢I%œÍáŒ5Q­ÈËÐÞŠë]ÎŒq»$"/½27/Yyô_ä#^O"Ð ³OwÉÐm÷ÌV›;õQ_ù5•7,Düh“)³Ím*œÓ­†<Y¢¬íA]£4€ ÖÏ’_ȯ_‰¾ûHT÷(Æ&Qô¾{ùä/PøÞ>{úþûÏÿÎ?nµ?Û7ö߇÷ïÓöñïþwøsøåÇÿppðåþÑþÑÑáÑÑ?ìîßøùþgë‘û³¤³”çÿp^–“bísÁ¢ü-:ôÛþùãÿxòòñÛ¿¼zšÓqÌ_½ûîÙÉãüÎÞ½{>z|ïÞ“·OøGÃÃü{"a¹wïé‹;$ÁpzÿøãÓã'ßfùŸ?}«VàO_<}}üöåë;ùã—/Þ>}ñö›;Ϫéòã“z´÷¶&ì`¸OV`xïíÉÛgO¿…P{¶"Å`ÊyP‚ó¸Kaô<"*¯hýñ¿^vòâO^0ÝgÁ”¿~úìŠ\ö=sèžÑ@bÏs&ÁŽøQÅaBtaÔIvÜÓƒU’ópsÉyÔ–œÓ‰½9®±µ¹ ?sÇߪ¥îGÃjë`]côHÒœÄ�æ=|ú\¸v°ÄU#ÑЃü¦¤€Þ¼ |° ®‹9g6Í™jmqîëLüˆ <,"1‹É?µGä&ã&¢)20ªç—NZHÙ@˜gœp+#.Îy£Ùdk¢xf}ŽúæJÝa` ’ 2IþMü35ÓPäþjt ä&TÑ”Y)vÜJê–ÌGkñ=êkÍ%GÉGv£É9}@ÜFõ:CÉö©$±霳»”2|CÄE«'_À# Û€Œ„'í ‡Ðï¨t`:‹×¼; ÕÅõ¡i€JF¬²ÉÛôIÿ‰|²íÂé/i¼îý¯3ÅWžì€÷Œ×Æ×IQïHø0Á)P8 NS‡3RASü‚tÍ­‹à¬ü‹ŒpÀ*RaÉ[ì4á Æ÷“€5{ iIøêT™ïxG0»j‚ñ£<‹Œ$(܉¦VlXuì8 “ÑŒÃ?ó"K{ìÄRH¿Èþ¿$`X%];ž¬yï·¸ž6òa›Ät”ëL'î&w´(ÒE ŽV M¶0‡ÈL#›L§-X4sଂ%£“¦f`T5›•ã=®h½â”õ€+ŒÇíß "gO¼nÒ>¸œ_–1"› p�fW1ëå\ˆ><Ÿ4€&ê ¯Ä€?mì‹)Ù5˜sP¬ì÷³µ»E–Ä<-~×™…žmíÐMÄR-Ý=¾©‘Þÿ `ÑD'—ÇV†¹zUÖžš`½ø•ÂÄˆÍ êÙ*Â_JШHŒW¸íèó'Çõùr¿e8‹›TlAiëuÛâWÔB‡­ËGÿÓiÝd©ZíÞFdÕ#Ÿ(êEÑ8 X9IQpâ¥-j¼¼2¹¼ÎOéÕSzÌH‘Ð0/M»dmÚSA!Á²‡ü`‰ö3½bäoòOúZ“ñ‘&Äa3æÜnôiŽ{þ¸šÚ[[)(p…cp¥€bz“…†‡É ·ôâ¤ÈLoÎêq*YÏOñ†‡]ˆÇ'üüTâ¸,åc$Ÿ›äï xn›íI¡ÈOß›N–ýŠ;3Æ=å©xŸÝ¾Mu@‘oM/Æãw÷±`‚8@ÉÀØUœoÏdÈ\M£…" ôØNÓÜ*êÉý#Eh»5êô‰ Ïo'ÙJ<[+UyVj }bñ”¬}÷ß^¶ª+ƒYoÙhRÛHòé§ ´õ§»çzî G´Wzl´c[qýôñËߟüpúæå÷o #h?øñøõ“Û Eг¥‹�d©«µvÀÎÌwüÖ ZS¼ÓHòÀ[½f”ÊFd' 3ºª ¼(:c®€­¿�GOŠ¿«åvE,0)kA Š,ó8ûtÂ/JÜ‘7g—Y¯k6Ä[‘Äy5gÔ3uÑ*Ë3µ6€²1€!õ"5;ÆãÓú,Læhâ ¦Uä�éBëåqˆ–,L®œ'¥~8N»D¤èS¸·ô DE‚UÆPÈØ—q9iõ…CWËîl Æ<ÓÕá kóå´éj� |뻡Ù Ý|úäå‹§šîßÅ.Û¥iŒå>,“i#¯^¿üáµ2sՆ̂±Þf/µ™ªÄÞÿß=}÷ô‰²–Á0ÆWÅŠ/K¦Kã0y{ײêönØq×s ù7?¾{ûäåŸ_h÷ÔeD¨ÊËåˆ�`œéT‚p¿µ#ƒ$ÇjG[Ew¨´É©~eu„‡ë$r FÞ6 ƒp ™6&ñŽIrû{&G`‡Oó^±MÑáÁ¬tæ»É[e‹ËXô²t~¢ å,¶e(ZÞc¸ØÇX2æ$߯äë誊KCpóε û”.©ÚK~±% ~ ÓáaI�ÑÒäNÈSÑ·c½éÍ—;N,/øÅi˜»±Ë÷Og~ÔRf7â¿°ì øV`|~ÚÚz-À7<»­ØnÒý´Ä¨Ùû³ç#rPé0›ÑýI,9ÕÆÖÓU \ý‚½ZFî%ŸšTáF)&JýÓ·XL0VZÀPù\¾t¼½Þã ?$ýáZ}xäYË1½ ]×ö_[ÞI×Ç|,Þ³Cˆï‹r¼HS!s>!6WN–Y`ÎÛ.ìQ½$$]}žEAYÈ´-bÍâ OIêpwgÍÍչ멓ïË›ë £]µþm_©T‚Ão; ö5‹êžÂ³äàêôŒl Mˆ§™ŽÕ›¿<§ÛöíKyRïQÌöÅÍL¾x÷ü»§¯ý³†•4N`RžÀGb~…ø‡ë±agN™‘,›ò—œÜ1à;;%Uæ¼rVEd.¥2ÎNúùO/Ož$d¾uèúûÂdŸ85�ù�ïßÞ2á¥S[»«ûº{X lãG”8‘Ç̵ºÐ½žÄ–©Y1€›[Ú’´¶§a•vÜÞ¶tµ’E5njÝhFYòÂÎnþð…aþ=ò&%Ùìã,ûva¤zt%‘ÁFåë%«²© _©ÐDUÝ™?×u¦û•AwlV26.Ç÷ÇáÚ¨¦ ¬ÌÇ_HE­.¦`Ò wuP‹6$ËíÙ ã2 ©lo‘žçiIÿ×ÙÐø9ÐëöFh>åÂçÿiu>ø+[ZØ+º–î7©«‡oŽo7³IÆ<žažõ½Þ© ¥G.ݲџ Wìï™Í0r NƒàaK2튌ƒ</÷äYojшÑ4ÔÆÂ…ƒ—r<X¯Ð¯OÓÓÓ&#ñ©ƒ¨:Yì{jÕkÇZyRüedV²Òçj‹bGEíµ_µ)Ø®'ñ‹nr%š*}XÔ3.xÉø-µ¼žkÙaäçm‰•·¥ù®Ñ””Âm̘&ék¶®÷¶�x¡ùrc¤÷Óê|šÓ¶¢ùºK7œf˳£Ø)Fƒü¼ oJGÚÂ7¶-‡L:“V8Ô@:=pvl5¢f)à#ÈœZ[2Š…ŽÌ–Íå)öφ’Ô¨|âèõÏ! MDšNñ÷1ÕÚ¹›Eì¨m5%› 桚6Õ˜ÉIA„zF°K ȬLƒì~â\€<üŒ?• ííT£uø'ù¢´0'<9̣ʼ5*¹$*K$EÐо®CòRP–—¼=$1 ¯5Jp«ùÔ‘mwJ=K6J»eRRmÇ¢µ!ÖùøfeÿoWDZÍ㎵¸ãL¬‡‹v+׎N†bÖöÅ•+&Q´>LЇª©\UtÏ•ÁG~[{]”’S\®ií… O5¢åá¯÷ÏpÀ¶dŒW•QLèätbÎÐͤâ‚\^=æ1°pGkÍãðÈ+¸azŒâïê^g@ÛòÅ})RT-_šVbçÈÆsôQ@ÑR€Œš3*øœ˜ÇB¯V’U3zµ¥¼í{Q P ¿Ñw›)AM(ýí&K­+Á¦õÚV?´ß¦A²åoÉ80Q1Üðð/ÒÚ.£æ@º M»ƒ«Tƒ á±ÕÑukq Õ /{5Ϻ Âцj’³±Œ" †üïEÐiJÅÇp@©ÍÚfßQÔŒX£"ÈO^ëÜ‘8,¬!?ñ»j:š,)㙟aò×êCɤøq<ιd¬5üäé÷'/ž¾‘%wNœÜ)É[Ÿ½qêÛ^þÕŒûGCU«7B%V¦ñ¼åÎ>ò§§ùóË×Oô;îó?¼>~þüøµï´7õrÓ}g‹åÇjRQü±0ûD,Wfo=}ñD_âHOb'òne_„eAYÁ^Kõ7¢ÔÎêÆ$5ß‹œ^¶~Æ6L°|«ëÁ?yBžG£LT)Á}]L‚¬vä;·ÚïÇ–é­‚e ÿÌÉQÊ Ú©f½ýG^7ŽºS,AϤªêªþéØÒ »,'3°ÄdÒ‡ˆC:(f€õOÅdÉ©&Üûrº¼²¥¯&°KP¸Mœëé˜ÝÚ¿{®¯¬vF­Tö±Kì~s­Œî)ôŒü˜5Â}™¸iLHŒZZ“i”g3 e|À€Ì Õ—/óQߟ7_ÆõþWn9þYŸÿq´ÿ`ÿ°“ÿþóßù¿ÁŸÿ"ùßãd7k2?lùq´eæÇý­2?¬—G›Ë€û·g~„Gî¯Ëü¿·9[•óqŸ:î¯ÍùÀ#®¡–Òü¡Ç€Ë\³Ãåza<)¦KJº¨Tiä_ÜSÍõ¤z~C>ëI™>$V“ª™ši´uU7H€Ÿ„4@Ã51b!I@…¢¼dþ2f !L]S'ßR¥§fÑJG: %”2dk^f žo-ìŸû‚Ó ÿg8’¾síx_<ê¶þp6Ct¡ÏÊyv§!“;¢§ïÛ”¥œBß}T0!!›,K+…’©Â¿¸”2M¸!…—Ù¾•£yŽà«êä×5[<Õ(³x;ÒŠƒøÉCÎHÈßÔW¥oÎB|>Øi¨n.dɃ•–Kêo[’0Û²q…ÑÓÛ Dˆ Sq1 ?…òld¸4]§l‡Õfå8]£ÜÉ]í¼=…_:ìî ÊÙˆ/йñ5?ùúéÛw¯ÿ"ÊQ=ß‹µ—y%ˆ°eL•9‰®¥ÐLlµ"ͼ¦€²ú8˜YO¶ž¤ØŸ•¤´P†ƒ©32L‰í0?w…MñVWÅ põ¬Òü"£fáCðnûpˆ Ô¡ ‡¨a.ºnzš’Gâ ` 9Ê÷p°“°žäõûâ†x‚ ¬ÓOý°*ìoNÀéY2³w7Š":\eù)ÂÖ]Š€¸è¹ƒ¶:ýõaZ9Cz[8.¬Wné†éù¶¸`˜¹ ®}çлm8î'/­uÞ<æž7®ëIäoï`ïòÿ8Y|=È¿äÿx±øšvâþð‡\AAÃì- :AÏKP9Õ┼¨>ðÌ_G¡ "È»hv¶¬h"޳ŒÞ5K«[MOçÄVÿ+./N�8ùü‡^\¼#7GDݺÚ%g‹•^ܶÀŒC­Îã·€í¬Ñ®  øk„Ò 2Z‚*&«6È›²›Ÿ~`7¦ÑròåÃ$ƒ“ꪒdÁö<yaANTå8X.¡CkÌ2É–ºS§¼,æ“›Ý cÇñJ  ‘jÝíC÷Ut”!6ÉVëÞ߆õ‰Ò«h/n‹aèsâGU]CÕwÃ’Äæù‰‘^(Y|Z8.éô¡‘YÌ—Å| ;Jâ&õ:ÁTïËm=c p«ÄæŸuæ ŠŠ{ ú ™¶<yz@÷ˆjáF¡·çR–ïâ0ß‹`ÀaþÄxrÌ´¦1ˆ r | ¹¾@}Êz®zJÓî ¢ü1»RÕÆß 8ð’B$KËt8˜ŒhLy jKööÏ/_ÿðF¼L’xyF¾ju`RùÀ¥åæö+9É-Y̹Rª¦[Ok+ÉÞÉ0C%ug Ùz~:_vÊØÈÖ±ÍÿnËÖ9¡gì™ù¢l?P§pYŇT“i±˜7íG'Õ4%Q¢'µø@¿Ñ->Æ@êw›}²(,º­_9îÎY_l½Ü;J…*§ Vä6à%ŠYœpæ¶Ú»eö:JVXµÄ4ý—¨×™9tí%M8ýöÚåPO$ûN‘§â¢VU–23jŠ3uböíjyø÷í]ùyèq”1q’áJ<pgD# D¦{VMª*¢Æ…ɯˆË€ÉåMs…n ëÓÇ/ÿœS§vl‹ )sA®†¡ÕgdgØ\†fƒªä\$ÂÜ·Ø€…=j𥿪çÕ…$FϯA´$ÃJÒéaÝš ËAÏž±˜Ø5ŒŸVËÃn¤fæ¥Ò×íˆôFª¢us°QÇ»áÙ‚ÄdF æTë·hä“#j<Z¥EìI*\[/s $Ç3¤Ò o†ÖÒ4KÒ/ ŒéDds²íÞjn ÒL¡J2{O”?·×P,\7¹oÔŽÄ �ð¶Þ0ÌjšN—fóËÌÙ‡JH—Õ Ý6`¹pM힙Ӭ†åò-„ŒMKóWJHÑj~bÒ¦³.Ï£ÿæD$Ý¡â‘v ƒ;"n¬ý(³õ!ëœ6Ü€3^b{•T„ë›Ëð´é m·E§ðî%ºxë‘б•æ?»µ½Õ߉ĿŠ"61>Ù½+zšÚa½ ¡(B5*Õü®šèDÊÆÅUq0:ùÎøÎö]+ù4 ü WB}™ta1ì{¹&VÐýÈõ 7Š«OnÀŒ²¼@Lá's¥A~ºO:3HË¡ûô“› &¢í6Ö½¡²~÷ÍtŒuÕïø „Äzû­˜l¯›÷|À€b%çOqAÕª}¡÷}Û²U&œ?E#Û¬^+i%¬ÎóËŠã##*?q¦õy8Ó¼}†¢Ÿ8¶³å¤˜ý*Ýqoj*ŒìJ¹£œ—DÒ»©n4‡Ø§Jô>6È3Ñ¢…dW]h@ €äõ7ßðß5êÖÀfÖŠ{E‘déö ]0 —‚$)¹4ÿžÿ»sG-$šê.ƒÁÁSÙârÙ°ª ÌGÃ%»™ÖðF¦ã7/œí^š”_ºAµ Ùhã2*mxpGê‰óŠj¯°“ò|±+òˆ‹[Ôó+\`ü™_åͲŠ`t.U \Ò6)Lt _H[\*$w6=ÞÖ‡¿X>tt*&Ö\½ÝHo âDÞÂg'a ç²Sú‡“ú=1¢CŠ­K;Â#oço »“o¦'`ôçRœñ;4nÔ Ê •v“Œ7>羕aþ,;$M2“p•ã:fuN^¡Å&~`š¸{Ä£;)§pÀ³”ˆ?`Úku¥3D0ü«TäQ~FJ1/³Ò·l„ñ#l_‚}H†´±º.9!9ðžW}ži‰E¾;•=œ½UìÓº.ÅEà)2~_G;#²×ùTñOéO= Š2f³dbâDHøFýhš&õµý2üó2˜6ôïðÐð—Ðjßl³l.eÆ´?•Fé <?y±ãÞÀ´>ífg÷ül ÝO„Áš†üZ»N^èo’%·Ÿèp†É¦ ß¼")ì!dóÎI—@S¬e²CÛ‹Ë&ãJÄØdzŽZOæ;ûÃáÑ!NËÉ«÷w¹°“åýc£¸&jËëº%9¤ƒƒì‹°Y2ì–Ðsz˜SÉ‚µ‰¨$Ýëô$~º#[˜·È9ÀMñàÙžAñÃÿÝÛß•òvŽ#q ÓgJ'0sGsÅt±uv@S{tèXåTY‡—“ÅñšÝõ{d1¢„ÑÓs“[“à|Ån [é ¦Êæd;í’îH ×tb.è#‚˜© €í…åȰŠ×Å„XÉæ¨‹'™jBRêoèÈr ÓAÆÅE)Lʺ Ö}2‘¹ï5—’6Ú©ðIªüJÊÇõôî""Ù93Lú@)åt\Pþ×9<_D <…S5ì0®HØõÈ6N£Ùõ‚*Ü ³âÂ"“Û‰õž¢~££+ªT$_äpí›å,˜‘bçX«×”ßE´ú;ÏÙûüpW³$qÚžÓ‘}~°É¦ ÖE¥µ°fÑû‡¾o¯R¦H8’*‹³×ˆ›‘Êç‡pÐÁ€%^ /È@†ž„{ez·ÉÂsìT`Ç{aٰеÈN)UœŽM–ÞwŠ{äºFºÂ|PTZøW=[r„D¦â�ÓÛÝjH_Ö]P€("ó»„~ìšé;ÖjõJÃÔƒÄÝ”qáç@öâ »Vɵy&/ Þêºkš÷äZYÎ]פN¦†œÁ§:އ‡sŽB l±ÄˆCX»8-(ÍÈä†jÆ0’2È¢“©»éXZR®¹‚ô¬ðTÉ,½ ÁC4a4¡Þby3` rÃÒ aÎŽDî@Î$+“er]Ü4\<gÎæ7‰ëôâ]%³sÁ}N½‹e]1X] ]c. ~dŠM³<?‡ÿ¢Î)9™àÿÅýØ û*4¿‹ê?N’ ½„‹ú¢”øKëºAöb¯³µ½ ÁT稵=Á_Ê×N<Fî¬ò#ziÏ%ÎQJjf?p{ ß±2Úühtîíf{­Ô;:°ä‹ÅžÝ•M‹ÿ•³÷M¢È¸ÎÊ›ZÈHÍ÷/# ßÿz³ ¿ ñØrÂß—å #'Q“63i7#b}Ú`PdEVå)ÄÏ)Oƒc,SÏÂ8¡Â!¨)y¶ÉøfÕÆ9†¨ …¨;büuB“ÙÆFÝŠw7HÖë7‰\¾Ò±–¿keP“›—©]hÛdUaÖ‰2‰?ÙgýV½®±jvj*uøÅìc_ŒŒ×½ûóÞ€Ú姘ÍΙ[ ÄÐGÚ)ýé봱ưÞĆ[O¼H“>/ªd÷ñIϳõuJ\w¦çËîA¿Ñ7n1Ü)‘@-ÚTQÝc½çÆ­Š¦I§n˜[¿5vtÉÿ .Yê;²ë]ŸËׯú ؆ª#2ÌöÅšš òKùk0jv¿RËæá­¸ ç²éŒÏ´yÍ-ùlÄ[¼g«ÓBYaFRËà½&à;ƒ‚#õï¦Ô~Oš‹²ê?â hyõ—·Ý ½¡ö‚ôºïª_ì¾ë~£å¾«6pßu»ñ ÝwÕî»í® pkmtÐ~mI~Vrqæ[6_q gÛ¿’Z;©/¤Ìc›ÏÆÿ?ª€›¬Ïöµù?û¾<|Ø­ÿòåçÿüþ‹äÿ¼Òêk2€ntË  [e�=\/tîo.tÜžy°.è}ÈfmUÐJðy°6|ljÛ?s…ÊhË+Øå¾ûá•«î™ÆZ¡Pl `ͯ>»˜EÜo»v‹xl)C‹ÃqWGz«ñÈÀl¨¸Ð¹ýY1zOÁ$ûÆehÔµª×ÖWJF<S¼`ü¢‹1.rlq‘³‹įŠi…è:õ—{Ú3HRoÙÒ=š7\ŸÆ§S‹ãI89ŠFÿåB¬AÇø.Ù'_Ï.é1†Fј3T‹’ó[ 8[H¾3 üX).ºhcš:u´Ò2ñÕAµ Â}“1¦Êµû±Smx×"'N1ÂÍQ« !ä,åk 6ž’[™|/‚;=¯ëæ­ WÇ› :•\¯q; œÝeu~.zøÓtðLZ®y.‚ˆ û Âóáó•`ªu·FA«PK\­áNá «ŒMS–ó]úlRH)Ha£Ÿâh@‹iH‹ÚÕc•"cdú|¨ÆKйÄÑö”y¥fãh[©Â(Ezú¢ðR|œgO †þ7ìÓ#—År&ïg�ÁL ø˜Iרû8[-÷vÚ^À’¥Ò"¥)ó×ß?–d'ÙŸDH,Yç–—“ÑâLêO¦ñ( CÍx&p½)_Mìñ]Ê,¡#Žo�·dxbG%)j8Y Á¯K0_ÑþaÆ}šø¹x·Pµa\Žå`Á‘_–ÅXG@_‡é½ü;‡Vc>d“5¾åSþ¡¸Ïx‹Œ«Fq¹2#<�nåÞÓ™L‹ µtZ˜FÄæVOùr66ÇTÃTÛðĆ‚.2‰bè ÿ[d­å¦ˆóëRD£ödÞSÂÕt­áDƒÐz8¨’yÆgŠbVg°)xˆ…€Bñf�WLh&kð$5ÀÒ$•-XÖ( •%Ÿ«%Eç–o$tMkê2eŽlÛWZÐúõ¸adFw­ÆÅäHÆÀ*Og~Y#¶“ùeá›m</®‹‰#T'™wf5®‚X¼æÃN4dŠUâ°ŸLÈMEÑ ú+ÝI@°…ÝJo „�Zc5÷AÏQDü(zÉ¡­µºK¬ßËY¶ÜŸÂ(&DŠZxÆù‘ÔGãò»B5™dr’„ËIÙwšraõ¶<èèòø­ÓE}J±K¿æj#RPáiA©a+ÈÈ'ªˆ ’‚ O«h _-‚UJçE ž‡svºð’!l°ÌP†ôT2í”߉°v'N`N'ísöôãÇ6Ùþ€ºÓÅR2¯dú”ý{Ÿ¿—á{UÜí¸Ä•bQ1É:¥é3Px, €qÄcî©w€ºÕn=ÒŽ³€ä¬í;EÒ(ˆE›^¾¥3©oNT2»•sËÜše.\êw%Oˆô™Ø¹Lü Ô ¢ÅmõB„k­\©õôCÔå0â0*w»,«ÉBRiòB·*µv Á&žÖyq£:€ÑŠY²-‘}£p‘A}3î&ðu‡4{'¤¾}J7ã‰Â ÌcHSŸJÞéËWÇÿï;®"�šÚp‰”ÅÕfÁç£Ö³²“ácšÍªzèô’èrªOm Æ^õ q.¥-oS2;‰ÄX?K%€ú©åZ†ÙÍ Ö,B‘ºÈ‚øŸ©.e4ŒLÉ ®ÑÞhmnf–ÕÅå™~†ûkW8‘2;‘A5¤/x•_½9¥Z ƒ|ïÀç˜äˆµÔ%?Ü]RÛ„” j&u·†Òªµh;Þ)Î{sz5~ó©Éßp3tÜîI·ä•}ÐAýÿÚûöç¶‘+ÝüŒ¿;©»–¶(Ú²lÙ™L¦â‡f¢?T–œLvï$! c`�P篿ýG?�ð%KóÈZU»“`£ûôéÓçù¬"Ídž›Ë…ÍÛ×O™½Ö°Ô¹Í¶§kª9 “ò=üˆ£Ñv¼ÚU2ÿF“4Éç3n4pždøÂ;¤ »Ý†(Ú€to»íô¯Îð‹#*%uûL#É>Ó›nr×ëÔ‡Ìã´¶Ô¾Ý{Ž•C#!w‚͵¦Åºþ@ ,nîÆF¥GL$¹:ŠÜNRÔÃŒsíœ,Fp2;Õà˜Œ©ÂÂ!®æ‚ºð¥|LqO¸¹=jB¥]�î KÖµµïgZ´žöÁÆç<­<Õyz=pûóÛý×”KÝ=È—Á;oÕŽË'°ÇAä¦öç:1FôB.¬ò,ÄŽþ]­žëûw5wƒ­f©9T¤I²Øú~åAO“†‰i˜_Ék-ÊpvÍ”jê„2ƒ{‚Úôz F½²$ƒ î…Jó€ú2&6û© ³ª‹Yp½° å¾4—Fܦz]vC5‚l;×1E%/89µ%"»õaä%n½ãÚL¸èÖÀÿ¬yW[ŸÆáÒšíÑÂÖ-]6˜m”%ñÙ+_Ψ’ /; h×{†\WØÆ‹Âhñ9W8uú p:¹Y@c¼›G­±u>¾8ÝTè}>÷“…q:]èwß}<EŸ-o§™ç±ÏÖ¿u‹}î˜l.(ÌRλX—Íê–Hå¡@ Ö7•ä•âö@gÕB»ÃyýªÍ¦yÞÿŠÌiÛ#Ô"Û=‰•W"ñ%•ÒN€1¹}iîFa× 9Š-¯FËo ×·7³mKíXäY”ê·ísÌ‹àQŸ|!;™­°·;àFéÞfïš7èݤN(ï —«ß)ét°l+›ÂaËïnËÎFq¦ÎîV§K¿¬æÃàû° |gi¨Ød¡<þ|…¤SÑŸ-[¨"ôЕÀð&-Oø‡ï^í.Ç£I0”ù|_t÷šQZi•A·q¢·jÉÖÅ] oAVRX9±AkŸyDöëSÖ¾7çp4†éÄ‹}:Ÿ•·«‡¬±N}PcBÇÆ/òHÔæ|)¢+· öÎÛÛí-¥¢L—Ÿ‘¥ò&çè¹ý 8èîóƒÇMŽóÌ-¸ðÈÁ´"—¶¹íæÚGäþìÛž¦örÃÄ͵^ nnnàž;Em²tDEÀ®G묿ö& /›>§®i+Wa[Õ‘¢Ñ)ÇnÓéãäzÔ¤öDwÇ{%:§ö+¬Q‹»ôm¥ˆÓy[“Î:¸%u–ÜíxQŽºÝÙßn‘E=øP1$°&îÍ• ¸FÕè!ukèGK=ùÉ U:Á ´s±? Îʬ(³ZßÉËw L¹ù.*Bÿ$Ý€þë#YM»=˜˜étH^|¤U$¦¢nëÄ]rí;ä3ÄZsÙœŸV÷–Öa!ÓYðú&ï3—‘Ü#ç­ë}åEaÖá/´ÖÖDœÄU;¨PѨ (é%´¶$\6±Wê`\ì¦ÜVáâ=÷0$9‹¡±[𦻱FrcûêËzµÇýN¾ÛBé�…äÄj¾lkyÄ}ö%•ØÅ ÷f6Òî$kÃÁcÙԭΖéoyªBuoö©^ºÇz¬–£¦3ŒUÝñIkú»tT™´íÿ ß°Vã&¾ñ¹dEáA­²Ÿ6äˆf…z¹1Zƒ0.øÚŽ,GšÕAD-Û.ž ÙÒuPz·ö OýÔ,¾µÉv%¬¡¶W åh¾]qÛ¬O›ôoƦ›ÓBåWÜÊ“d¼/U `ðÒk’ýv¨²8Z©»@nPÑøi€ó’± +næF*‚”ÂV’Àâ§ï˜ÇmŽàòÔÖ1ß,£7ØÂSoea„'Ï!gY @ À½M.Sžz¨ˆ<—0ñ6ºâ–EÇJäiÀúÜò•)›Úv']Ém.÷  ‹ô µI›Q6ÛÔ:M¢É­¨Åª©J”Úœ†ZNÐ 9ª(©‚Pž-åä¢NÚT›ÎÞ‘oS¿‘…áá=šûp*PÄFeCL$�ÇŠŸòYW#FhÝqÛ·±,tP(ÚÜ�öxáŽWrk¨÷.È–*m÷ò›·lc+›WmZΟ%C¬£¡Ž“åiR€'WµJm”÷™uéêÝe@°ß¹`ƒqn®}ÊO¿Hªµ°Skï¥î(b˜¼Í§aåéêñëªGÓqÇéuÇ2»%}Ç-ÁKø4“X$Û½ðžééJÌ&z„ÌÌÓK ™wŸ �œ»Fï¼?=ùnwIn?¾ ’ûÿ9Ïj.„›H:#ŠêíxcªÁ^‹*ó¨ ãœ:Íl'ØÕìÜæ×÷âE1gtAJò„ü•î6ç?â~«Óé<W³Úæh†õNÚ¿è÷ —½äo�üøå¼×ÜmZSv*×nŽÚ`ïzä{}é¥÷]”8¯¼ôÙf {i™!T•"ME*?žœ•›VÒ9 µ.”DÀgó)´“ ‹Jê´J8©ÐUL4¢aÐt‚™»³)BÎûÀp,¦þ�íåt¼F�º}Ä(ÏI3Ü´¤qž†3$Šf-Ÿ»\x æF¼÷«ðüKCÎù,ò¾äo'/S³o#k Ð\ö. ÷μ˜~ïjDªø^ì¤jÌU<0ÆuÖϦ©Ë ÏrŠòÀUDɼ‡Ú†oR•é?½9ê§è¸Úüt<4t´Ÿjç’xN4«àsƒyå<E�,ò>4oÌ‹k£ _¤¬6;˜Ý"5Å3¬!°(×ÕèçH7³ôžTóÙ¸“ÞL1 §èç¨Ó1!IQð/'p¾]NìW³bR\,<öC„™“»9wº±õTMcF|sú‚ÖxÓÐõ÷¢dlç<6Üé’T 1²±ƒ’Æ\ÛK¤âZª 4¹UŒù€^¿#E0æ=sTjþ¨ˆè´€í ¬[ÌP…ë3×hî2jÃ:Ÿ¾c¶I6ôIÆHvþDÃÕ  €íª‰qyúØÖ$£Kv-%,Gv|œUžÅi=ê3õûÜ‹§Z�/w iq2çñ.»-R‹…æ‹Àæ"9› Ö¨ÇXœRi—í×CIÿH÷c•Mrr K¼´MºJKcŒwU>eäÒĸæH»±¥?öEæ|;ÀD5!"ÒI¨‡ágÛ„ˆƒÚýö�ˆÚ¾a©ã8 PŽ1¸(“Ù¥W]A[<^äÆäQÁ=®\ û¯– 6¼Ñ²QÐSù4õ�‡±ÇÞ˜éTk…Ý3oÿ”ΪéÚØÌÈ€êk±Æcu{Kf¶vBÀ}iÅx8ÂlÂ0¯N>j9 øàê± %\ÃQPW€w­¸q2üøDµÕP<»\üN#˜þ¡»wæù$åZ!ŽåÏêQɜїó`–Sc.”¹4Ô¨TBX$W­ë}*àG¶€ØÈ:£ìyw?ŽÏ4QŠQŪ¬ž'¶ì‘+j3•]™dØW"Ôʵ-G"úñî¹”o˜bp)þ»ÊJ"xʆm):/ ìMsGœ{5Wr¥2j–®ÓÖÞPD°%­á#Q¿gðÑ 0,R P‘Ä{+Î& Û"ŠT) 'a·caÍ1ò~ÌÌÌ e32½2Ü¶Õ E!-Ø*8í#s*¢ #9Ì,ðj/Ӟ׋Ð>ì‰ÑÛf%hã©_TøB5‰×ÉB° y䬕®èÃy[n¦¥³öËÉo°òÃÍ©œŸb›!ºð3t†­ç9¥›÷b¿!èc½<}mÎÁ÷äO *E‚¼d÷©”ZwæpÁG×`ƇL|!¡¥f69?׿jÌãëÛíE®Žõ9?0a2´G„õ†k¸ «ªrôp\Ñ©T„X§°À¢¦£^û޽�µp§aBf¸GJꇦ.ÆWfèÖp5Z× ÃVšR¸nFLþ¢*›B @(ä-,‹í ³ ­HzWÒñ¸:¯´I¸+f]äà¸Áj<,Y¯(;âÔHXSôÙsj @výKoÔSÔp5/ˆ/!û:#x˜.MùÝ8«f~E•Ë…w^€†, ®ÌmLjžÁ]ËàâÙ"˜Ͼ}nôKÆÎ…êpç“9ßzª|™ù«ë˜>z>¸ôU!p5êÔ­ŒCɸ‹½oÈ›‘½©-¬ó¡ãgF]mΙ4O¤är«(J} ÝNø7ݹ¤úqé€!6€Î•p’{)xªg…�‡v±§UFèÔÁ‚¤Oª%õ{{±g/úõäðJ€)‚^Ñ嫸—æäýhÞ«~ºšT©2ÐHì”aÉ/bt„È“j·THÐz|ðø9X\ñQͬ&ŒÕKÁ@þ”gÎÚ¨ ï Ê%‹]T4Ãï0RúÓ4ùÄ©yUžÌŒh­µÜ­C{â³Ä²n•i´6¡¦©Ï™AŒS%¾ký³¯æfÒz/Ò)ñÄí`"ŒÙÍC`’ø ‘@¸ >”"’æmÜDx! BUËÝíj*¶>Ëç)‹‹6§iζ AXTf ŒÑ{ߥ×U*Š³Ûœ“IÌæÙ¦ßþŒšÔc®”•2e‹´IŒÒ�@¦£DÛà’oË‘‡ éʤ6 ¶ÿ"Ï~²Êî=$½“ ;F½6´·1ûu&thDzƒ™‘OYÉÖÿy]`û÷µ½ž 0RVõ´`™ÄWPØ|¥ôÁÝ«j¸³.óú?!u‰$eú jH-h!y¿à*õ;(/[t'ÂFF™Jm7ˆdH20ƒ?lTèGÕ­ˆl† ¬dõú®$ ú«âSZ9éIè–.û¥¯?5ÝbøÞs<¯u¾Êûr¼!¤¥økiƒ«Ú.ÐÝkÄ„z¡²(Ý@„²öŠÏö{\­a]™¡§‚­užaÏ¿b¶ªF²ûÒR3­CkíÚÒ+«ç­—˜»}‘Þ¶M'ã£ÅÚ4Y»JòÅø2Ð>^:íC€Ã{Á€ô-î©·  @„#mœXÀ3U#¨T—ñÏÈÒ�rØ|Îo¾Ôn#·Y>Ù}ä<êô’þmÁ" ^¸9M¹³åÙ\k–&Ä_ɦË(DЭ—ì{i ØB/Bk¤§zÞ0ŽF_6óñV·½«5hÀõ [¢ƒîɼ¤~brqf}J†=ié(cDì<böÒ«Bº=m‘üB<ª1˜M¸Ó²ÏwFK¬.Õ…pÛ:â[sÈê[Fï³4e”ÊDÛ€›1Ùº2Üœ¹¯ˆSù6“¤WK§ Ïi¤Ù¨öÛiba/>&­0"§˜¡`}‰¡…mœìHßBçÃ"Ÿó_ÂpŒ ñ@WÔèøøÛwGÇßÿååûƒý¿¿ø‡Ä$·Ú}˜k•™¯Ë gùÈ?o¤š{å!í¸ßÏÃ$Òÿ‘úåùSØí¾{ò)óñV!!v�žp“°6•XÕŠ;LÉ!U×mwƒ*ŒìØWñ±·œ¯ˆt¼j^^QA’5±‹‹óñÙïÇ\§–xŽŒr0–Ÿ9pL™ìÿ¥Lj6+„éŒtÉ‹|Xɘ|_¢bôÌëX†Z¯WbÛh¢Ä¤s5NªdKÕ‘ÛcSümwÊÚ=hü½õÎC#dxò×|žoå{´ÝÚifsEŒ MÉà¹á2:ÞꄯVÕNý¡Œ¼¶Æ¯7Íd£À•ƒ}«ÀÌ b>ŸS.‡3§&jÔãíŠÍ Os–b8Mon·ý†§–î?;·ì–˜:°#PtŽ ¦*ð³Ü‚º_(LàaúL`'BÞu¬`Ç!e³RzC`Cíîiû˜Ù§²*bÔsj&!®Ïólûkðma¦Ÿ^à0T­”"Ëo†|:rÀ7%‡µ|肈+³ß™[l4£?†kŠ[oWŸí8%½ÙNR„J‡ê¥àºòuÖKT¥W�æ*š¦)Úø¸„€ãç×ü¯öïêä¢ë-3#ì';¥Ûz®­öÍNµ[uNÝ\¦QÀ˜XºµS­.ªÝd´—$o¸‚®KwŸ®ærÔÐä%B§shßJô:Þ9úálpôÃÉûgñŸïNO_tUŸ¹½òFçÌ2°–n¥÷cCŸë¤og€#ßÞjïg¼§æó.Ôyá�yüdo(¨"X™ðF:_äE™ªOÕ¥lÐVûØÆŠ[äL*¯ãµLÎ;n ¨¬µ±˜ ·[ov/òßJÂÈòDTi¶à¡ýç^‹0vä§^DkÈpó¡\lŽ3œòÎ’g4KƒxÏ*G!ifµ•VU¼œµöbrÚ¦7d>iOkÖ‡ëUÉ.øâì)Ü­ÑðžÃAŠ h@º#©\j¶–ˆ—Á–®m‹8zq`Äk J"’Ôžº¤\ %g)”MàÒ{iQø\ hŽÌ¬ð ¸^ߘ›æìXŸô¦’h¥½-|]„’AÎdE¤ã8Èî(Îkí„cO2Ž­!«¹M98Mù s©ÈnúáÜhÛÜQtcF—tívÞOV¥v¾ŒŽBcû{¿ª¤¥&'»ŒÑ' З†]бC3ÔwÜæžX2?Ù*R=ÝðÍ‚a;mÏVâôÁÕ;úÖä•í<e­ñÄK!H<{Ç¡7Ú)Áƒ‘Ùlˆt3­%fÕãØß²LËm-K§A5Ýz“=ÙOv»§ÈÂ;ÝmçßýNÒ·Ez—•kp؇>ÞIJ¥DlÍëJ&] ø²ÿ¨�¯?|6úq�Œ€’]Ã:ê¥H^Õm­ÛãÅÙÙÑÛ“3M´2¢;ÂùîÇO.4*¸lI=7€Úî°j5¹0"ÔM ¬'ôlûÁ¥óƒ½& #Af*ý ’Ž_)û–O*Enæ­7:NŹU‘ã¸hvîÖfÕgíîJN¯ËèÕïܬFs9DëKÔ‰¹l"oIs•¦)ìM¸¹/G¹Ú›ÃÃrSCŠ]JLÓ+* ¸Ûbsq^ ü$ñ »óø¥yÑPZ&œ�(ÞF÷L$óbóÞý‡åý'~ö¬l+Á8õcÕ]Õ½[›\Uö¦ò]CzÜ1Û„¾’{º”¦h•èÝH~V[ãV‘¥S \%ÇÂu§÷8:ŒÿÀ´\r™&X˜‚Ó)}]’'Ø¿püí‹7o^xÿñìèÃ)­Ö»: Â?ÛÞç8cÉݶ‚)–_má}þÝv †Xqñÿ©!Š”Îo“"%Áx朕?Ð5f¦ä„Y Œj‚¼R£€ê¥QÛ.Òiˆ²šoŒ¿yÿþD²6ÌÌè>+ÓiqÅÕ#ä#äN¿ 'ÝéïûÁ`¼,Åøãˆ<tA–"‹…ûú¢¶ªß~ÿŠ!Ât·„жBÜ à¿]öZ{ °c¯š¼¿¾�ÿlVÒ¯gŸ¬’<iØÞt;{¬7D“”GïÀÏ…ÅH=›¹Œ 3¥]bŒ1…rÛx5ò¤³qKßn~[ e+ ¶– fÖñ#ŠŸû†àæ{¶n?ÅcÃÐ`Ë{>3Ë.Дú µaúiH>¶ÍŒ�Äcƒ³ŸÐÅf2Žwà„gšà=Lã:›Go_üðâû#Îï´‰Sr9D¶äÞb–À`~Üp;K¹¾¸Œy›N(kÓL!EÇ}݇£ï>þåìø-£'¡Ç¶á¢·¤Y…>Æ&o'×ÞRŽ’h^¥†Æ)Zá-©_cušÝçZK¤e e‰YžMÛM5ñ¼Îû/®åÉ’Èžx˜1©„äŽAïIÆKr6±¹<Q{Œ’J²· ¢Oªd oè¼?ñ€”OXg6 5œ%÷ ª+šÎ!Ö•xÚè·¹JWÌGŽÞ 8Gòûî9Ú¬º°}3ß®9‡Ò6Û&q:GŽa!·JXÚ–Æœ½È+èÝu1)¹=;g²lá/£–Ãÿáo©xH¿ÙZ‘äÇ6Ú{Ï‹<.à¤Úˆ+dnÍ‹­=t›Ê× êø®ø©sÝŠŸHH„ñž0¼Ò¼¢R.¡+¤K@Z¿ª­¿ŸŒ}ÉIšq?>•Š�µ! óØ~°Â`Äéë«RÌù}cÕB¯ z~Ž%HŪ®+Ë-½Y95Ûk!Ù­È…¾'¯Ö°Ó­¥Ó“'mÁöÅ!œkU‰rJ;–PøÎþnÌ ej×¥—tªGë� OÅDÞÊ$ioî£þóps?¤R`B,•¾ÙŸz…ÁA¹Ñ'ŒŠÖJg‹c¥€Ã�uUó­daŠÙ‚ #p[”vνÈÞà8 Ä’8›q{EË— >óãœ*¥øZz;jþö˜^±ÑÍÍ”O¾Xmý¨½„8ßîžÅçêk1,Ƶ3›%õ%ù(JŒ°m‹gûû!Ï#âd ^g?~2NÐrMŸ1¨9´€l´%ý¨¥!¯ÓŠ;00€q°Ã<r’¬¯è_5ƤTz)“ÄGRçBj#JUÃ"àˆ+¼lo2гË,-%kSŠz4/›´íÌVÚUܪŒ’¡y‰‹Id’Šq.…x1W7AFh¬Tº È`r\9ŒÊ·yš.»ˆ0)Š™‘“Iü?\ã  8ÔˆbH†@³µéüí=z‚=z²rÌ#„¤Ç^ÑÊŠ¤ŽO¸zyfÄf­;fw’:»)/c©€É ­dœZðVrá "Z'¢X6C¾ÚšÖ‹¤álÆÊ\³JÛœy‡©Ø!‚wß QM©™DXv503Ž©<?°{Õ|Vä GWªlþ£Æ»iÿ'^w´”úJÉÂýÌœ%Ïa@<˜€Z£K?ã2wª`ú¼ÈT1tâX&žP¤ÔžÔ5U¸""¤› 4LâÝOÊžc`vµˆjö’H¸�6-)>-lÎ5¶dAíDí­:œÝÜ/*Eruœ´}ÿŒ®ÄòSö,l éw¥¸” Ηµ_<ŸñÈ«¼æ¦¤ð rX´‚íΠ Táó@*óm ç°W“ €5Ô$TÌ›5Ë”Q´y-q°*ž—w[ÿ¬á¶ZúårÑw{¹¶ŠzºÖ17“ µç” Ï€ <‡€E î=£¾‰œd!ÛB£ ûcDöÝ-çä&Žc¼ù1¦ÙÛ‹ îtžµÿ¿Öê©æ3†i+"h/â{ß*VÔ‘'\LÓšŠ9Ô!Þ'ò?•JŒ*ÞÑb:bjB‡]ŽâÞè­ø5 :û{jÿ7±ý ÈOƽº¼zÉCjöÖeNt0ÖödÚÈ­µ¾»ÒJá¥]HxÝyž¬‰±™ùHóyæÌÍOÙd E¬ã-{Íùb©§÷‹ŠSÈ#HYœ&äÓHé±^[,¢ÈB¸X¾„Üq$Vx¥0©SÛ·‰p5Üwœ›¨ß•i«:˜8‚d+äYåEçd>L=’¢¬DhKlØ“k‰Vª‘BĆ“r¼>Q!óü“í†Ñ]Üv›ÜùF8Ã/ñ±¨p“"¿°ÉiæŽoUùpÔÆèqð"þu+kw†ýtbãùîÉ·ReøL-Dàþã›7,á¹cl)peî4¹ÈF{ä9ÒNŸx� 6½‡cdA¡Bd*]†¾ðÕ7`÷: ÜZ}ÓE%”·H¹5´w`°£™ËkDÑ?»TýTt¯HBÁ`ël1±ò ʦn4ƼÇáe mo[-¤ÖöOWª…OY-4BìÅ:nV¥ÂbºüóÔÊŽôèT Ì-íG_&ã«®ï è´°Ù¼ô²ošà×;¾Ù†>²¸‰QÎ&F㛸Wµ±Eã?ôâ³uVAÓÍV»0”¼—Y;X*²(m“£ä ¹‡úEà«Öݲ†;Õ2RþÉžCzÑ–ÞN9¶À8~í>4 C9xƒ¤¼…žJb…ÓL2Žúçõ‚=$ÒI­òú¬íh§ Ô�jßG$y®V,zãØ¬.ŒÙ{`H(}{µ¹-ƒwÁè0„çÌd!SWN\¤c„CD´ÑíœE^‰£9.QZt÷0½­š4î!�Þt»ÈÉÜ ›·¼Ó®7,$D˜Jʉ֒ÝA ˜ùè²4JÞ¼Ò ïØl{ M~x18úÛà?È@ªÐ‹€»èÒh¡E?«¬–ø#RQ#luÃÙ3†-WXˆ‡‡+Eyä”Ú—œ}þrÕé'N—LkFÍ9f$�cq\s:D¥éf8>N_“†é!V8Föô>h”ÒÒ[ÊâEØ|CÈ—Íìô1™Z< ²maú¾U®²„þA !ŸÁÑçÜ ŠËŽm£º×\¢n ¢Ù_”†/"ÃzíFèñË}~0iRí/tÉÈ­”.ƒò”[ «vHedÉ90¾¸ã8 7É#à%b¤·„¢¿’GM6ûñKÛPYr3¾’í"…ÓqÙzש5b@ð‹’áÞ[ñjýAc#ì„Ç€7R/5áž§Àƒ„UO”ˆ-ÎÅe1 PÄÌ!ì¦áš‚³¥¢‚ÑæØñU&íôÃÙëÁÛoÎŽO^œýeWOªËRT3Ò[]r2Œ£¬ͧh¨zbÀ«vÞ^TD‹ ßüîý»#÷RÈ䊌há Y² 9–iäƒÔ9ÞR h—ìÓÜœ¤×˜Läô¥á:ë\˜"ý¦&ÇÄßÃZ̤†h`¯2–$Meˆ}£ŠDêoV…j’ úØã %Ót—èÂD3wÅR‚f!5WbîâËrÇÌ–¤…XAlÙVŸDkÔ«ö"a¸ÛiPA“îô×EXZÙ2†üS'syÙ¢j«¦-Û„Üœ|Üè…wMà EïQ–QÞVáâ“€[.ÞŸA¼?[)ÞÍ#¯³’ºcvŠwþÒ‰wN¥*Âd­}×9_+"7=‡kĨ M/©ôƒðc^‹AI¶ó–IKý`þŸ¿¦½CZÕWß¾£Ð‹æ×Oäë“2½¢fûG•¯¾}Åa Ux_¾ý¢ÎÙ[£®ÿnã?ob›ÿhË¿GæïðÉüïþ£ƒÇôï}þ7þëéÁþ£ßíï?{tðèààñÁÁïí?~tðôwñ£{›‘÷7‡Ç¿;OJºò9£Òüúyÿ¾ù·×ï_ýãä(çÄ'_¾9~µ÷ðáß^=|øúì5XïwYžL><z÷Ø›훿½xýmóöèLÏõ÷GïŽ>¼8{ÿá«øÕûwgGïÎþôÕ›,Ÿß¼.F{gEaÎÑ~ÿQÿ_áwgÇgoŽ .}s¹N>ù ŠÍ³s‹Êõu|J�™±„çÑð>ÿÜŒóæøÝ_ýÃôŒSüáèÍŸ ó»žyê=3“C×ñœ=u‡ü¨ +:n´üoäô½è˜Á²ÓþtóÓ~Ø<í$ZQj9쯣Б—ðÅ·*SCá|ØßÇ û«FÅ#Ç@•ÏÅgˆè¿–ní±ü§­&´ ¨ +poØ‘ÑXw­ô4§×hˆ|¯‰¡uêý))±oîEæT5.AX„S§ôœBÀ’yÃþž‹¢ Â³Ê^ÐðŸD6@dî¶Ä™¿©¸Ø´@Þ,°ÀÉE¶>ßÑýK1ýÕÅ£XWàà%†H^À¡–Hæ§j¯bCF[äzv9J×mž¡k%H ŠwEs÷ãW†æ‚õ”ÄçÉ4›,âA%Pú‘6 ÿh¶&…'ïxS\êRðŽi’S2)Í”yÐØ±FWû/àš àü7pü>üñAó&L!Ep¿ÚÉŤjÝv¿ê¯ÎÂw5j‡þŠ®Ñöµ9¢#çh©8Iú,iÉI9J(Ôä:ZUÍÇþÞ—iêµ`öeÐ;ÕËV»L'Œ@š>ÔXB±î[Ç\ãÐ>Æ¡]Õú‘Z¢R…ûˆ@ X#©Âf Àï’3¸mò0bqn»1›Áƒ†ó ô+ŸÓ?~+åÁÔ™“"æšQJ¸ÜfÏ•ÈHÙ$¡aVŽK®GÊya¥’ —ö€.æód²u¼ÅÌ{€hƒ6j{)ßÈ2„”º¸°m€$wÃÙz½›)_ôsŠvØ_kGz*ù,[²ö' AL)Ϋæ!´Ôš!ZÉ æ2Ìùf½¨šD ×®ÎËn²­Z-EøÙp>›f³t ¬RÄç’ ‹½¼>zùñ{v8”l<÷ »*¾á•‡MžY—An¸œ²2t>ÖÛ¨ÜF2·Gø„ûNR(š}ä¡ñõãÁ`¯�„¶I÷Œ·Û •‚ ú•öâ`×$ËÃüz*h%Yí¼Š!U+uä_žÀÀ¤VœÚP²ânˆ”ýÏ1ó.u�âäù°V ŠˆÈ™óoÇï¾{¿-óM« Ëy®&-TÜ¢ßïëÇôŸG‚Tɶ¬Øù& ª Ôç{´(æÃZÀñ-&éRvÀ0ÜÏëó—§Ú^ºÌSû ñ)kÝŠ×%Êà1{«Û!?¢+w„â\>+~;Zßj^y.¢æ¹8¡[<©Î7}Á¸> j$»u¯q6òÂóæQÛ!ñÿË];të@òUKV7gÐör3¹C³½!ô�bVåÍøå È?ýEBÅܪÊ,Ä‘­)²îÿp|~Kȯž­)!Ë1µ£žUeªŽË�nMóÏ ­^s©¦èÌ7±W,c§OÒ_µÉD[ý4¸¹ó6v9îJ ‚¹­'Œ÷ylÉÝèmä ¦Ô…÷.xA@Ç…Üö×Êÿûå.Ñu‹bÅtXÀƒšÞ¤£9]® üÛPœ¥wC}cÕÿR”÷tçTO?›ëéNä: gÝ=á&’«(õïb73ÎXÀ¬H^šµF¾H¦ïQBˆTÍd$XÉŒ•¥v–È!²·W&xÓ#bÆk[Êø: _dC4mv1@7ö ô$Ÿ¡j¾1„$àˆK л²®èýiü‰Þb•õkÄAåÃÖèd�à û°k{>º´"]**åÿ°€1Í/H=Ò¤Úð[JyNs-ÒLàa‚¦¥-X¼†\Wi9„ŽAª:fô_R§†+<g¿ç½#ƒ3'æ ’Š™qà#̬yÃY3ÄíH=V*Ê–ñ‡|Ò)aÝoµG•äɤY¬YÌ–¨9 F0§ø_à¨Jp3žr\3P„]$eнx»_GG™Ë`±>›6x¾|µÙèÕÕeÂȨfÞßÿðßQ!#M5‹ÇcNZ•6þ@¶s£vÇZ5 û]¹h¶ÑíÕX#gú{QxÉK9Ä;*ЉRs 'qmŽƒÆÿE‘€øqÿñ|#yy½ñš‹ 8ÂiÉFóᮈ’  þüîø%G¸)/Nõ­Ä–ŸJ¸ˆ5jžÄ<çeùrQ]c¾f_Í™p“²N%‘[$XØ "’pë¥TH 96µÏ§^wW³²‘&­¶Ïq„òcÌpÊÊH»UQÉÑžË.¸ÏÃ%úä ”yLem…D¶<Ñ<ÂÙJANÍÐ&§?!ÿ0Ñ~™fÏ´³ˆLÎ,(â(v.­»4ÛB ‚»­ˆç=Æ@nñüòçÿyÛtoïXÿ}úhÿñA;þûìKü÷çøûÄßdC’Å6æ°"ôû|ƒÐïá–¡ßg[…~Ÿ¯{‡›‹½gëC¿æ‘g«B¿æûê-‹ú>CH÷Ùʨ/=âZÞ¥]9×´¡óŠÜ\¿‘ ‘ci;6{-ó€UŽ¥&ú2€™qÄ•º}¡ÏçñÉÕº¨Ìöc R¬a›¤C9„Û®ÎRÖx³´ œ,ý§PîD•v‚ý(•‰‚^K—ÕE”9¦€ZF•ÊfÒFinSÏ ´´Â¿\„Œ‘ˆGeQm…r–ìN3éÊ(­é –Zr²?µ€À"á‘Àؼ@hÊüéÜ–6®]ˆŸ~·© ºô¥ŠC„“gûôÕû“£ÁÍÍ aˬk–!ðIì($vòÈ´³QUz¡sl’Í’AúO3– b…¸Ë7Z übTï(ç.à?J”Ç Œ¹³q¸«c BG7ö’‡K^IfŸâ ,…òûPuê¸^È#ÚîÑ‚ º7ö¨.~´å^äEÄþ•»a‰N…âùb£’¶*ÃÏlHï•$ô&¿„vÜ8™gæÏw‡âiF}f’ÂŒAv{‘P,R`óÍÃ{ô"oÉèúr©y3‰x{O^PŽ­F0HÒ¬ÝG Ý•ÄCâ¸ýù@ö±YãuV±™+å þqùÕžfx^ÅRc=xϦI™M‘-®Òd%d›{á;S”w¼1Eù/µ/¼œîmÙžÚ7wNî›1zßÜ-ÁhÜì*hÒ5O/\Ÿ†û%îgÑËŸ§¾ãtš~‚éJÄiÉ!ßÔÜ�cëŸ ÒNƒ¡ÏnG‰¼ydÂd�ASçÉR½ôäåÈøßÆÔ Ž)Ê66ä1 Ê#² ÿ¥øI 7;Êž:«™ÕrÎNõvJ|RÛ<€P[ñ7ú¥˜C½·O7–ÀFkKJÊn3BãÉ_ìÄz³m¨ÂI¼HíPh~†sK9OÛ”ý�"½°.6åC®_ñ_JåP¼ed2ÿœ{¥`BKáÊáx‚Ã5%‹ãþe ðÍžT¢Sú´T-2J¨Ã³§¬åß¶¤l^2^7e/ åWGV[Ëù³¶q )E';_lH[y:´Ö~“­ižnw³pî‘w#÷b Þúšeä9KÈ¿xýúÃàøÝß^¼9~ÍézöÓ¿¼?=k|ôòÃû¯_½h}N5™úù.NŽÏ—¢ÃJ¢ øñÝñߎ>œ ‚/ ðÎùírÊ~®¢]_s -„è65‘U,q1ÇrìÍäPƒ­øå.Øä*É&dVg9ûÍ¡”·“Å®ãžÈ·åÚ™cKY«¿˜ óíâ2¢ïÎç}X Aóâ:çXk'{Ê«êŒÒ¯R‹³ä®„ yž–”©–q ªaÐR Ï÷êP±ðRÉ1#^ÅÚ¤ÁMU~€„ÐgÛ _xsøu©Ç¿�&µbÉåMŽ‹[™2n™œò(ô©Þâ ÕE@6޶›dBîÞâ&¸±ó¶1¾M:x¼§Ý_/Öb?sá*tSÊty›Cš/6à Û)Â!Õ¶ÔCÅU{ŸßûPîÒ†gÈG‹F.©l[ki¿G{-çæ„Î+aº«‡˜ ®òUz& åúNÒ›lTP+8Êâ(â¬fš` H‘Ö[.È‚-/ÂÌEœä°ˆýPÑ-NµÄí:|ɾå ÿÓÇŸt~ú$`"nÌGàЊRì¨ó˜çhQžŒpøý~×c[=îzì õØA×cOZ=ÙLZaa×sÅ=͉\† §”ބˈCA’ Fª¹°¿ÕzY5M` �µ¥Ft/#•¸l/mö®3”ð¸68·×\Þæ’þéóË|�Ú‰*p™ü<Ï ¥¤Û…ðVÈ¡%ïÚ@(…Sá_;ÇM€™µç£˜‘ô'È~{„°RÃÖëd"~ZæaŸ+Îs V±9Ä"Ç!‚šDÅ!Gj?^+˜k ÕÙ2îp üa¶ïp~¾ Ûí½%g$+o¨ÎéÉÓg‹ÜN¶äVËÙëL“£ÓÓÁÉàÍÑ»ïÏþ¤¹š(iìöd%MHÑPÒHPÈžÚŽäžÛlãÍýlã¥eãtDý&¾l¥Oލ›Ãûñ EÝØÉ¯½üòñ|:Û¦Š¡ÛÌwÐ…¤Iš¢Ûëll«¹1µ4÷b{ÇHÇD¯uÉ™¡1Q׌€žgóZÓTqú}¦·ØKZuååmx{Ú ÜÓÅÈôæ`l‹8'„ôpa×€Žl“=¢ä�!:W~ %b1"Ìä±—¢ÐJvzŒd§UÕòôÈ*» `’ž&’g…<øŒ ¨ºkå9;ZÐ0±6¢Á¥¶—‹J—µOMÞ‚ä&‹ù0.æCóµ? ß„Õ"7¤œ%Ò“ñŸdI{šò¹“lÞaRX§ÔÏrž“V_Pš/õÅb³Q™Y^ ùu™Äi>Þ+PvBUˆS5>‰‚Ðkxß;ZPÅC¡Qþ=ãdç ­Â£l$óW¬õ3 ¨äÖ›ÑðËp4ê±(æ¤ùá?Jž2¼h0 ‘¤ÚÄ’»¦$çýó0*¨ê„xªóMšy>%{VpåÀ¡§=>¼|ñꯢó²K¶öÀ¸Â\'ñ°à‘ƒÔ$3!\©üÓö‡äÿ¥B‰ae8>«muC))íÆàIržúøÈ9 +Ý Æôµï`(…‰ã܈ÿY›R°LÎ?©Z“¬oó×—ùØ’@LÆ(3ˆªlšMY»¡½BÎýŽ¿=φ=Ý$mîÍñéÙàøÝ›ãwG±0be�Þ·b¸Õµ ²bJ Â/V¦s)œxˆ$±ø†¼ã•žÖ-[¢wÌÃ>Œ>Àæëõv—®ºé£ÁØ:*oóŒá-à{ •´Åïׯ»IWm�¤Ðgm€TÎÿÆv�Ë^»²4 |ip7›À~>á²ËìØŸö‚ǺõV,§.Ãö{4îúû¾§$žÆÊ9,ÃæNÈ2€<ƒn b$mt4ÒÚ™ÜvSÊtºvG¼ª]ê½*ó–‹ánè®û8Ô¯ãµ)»ŒöØ$¢ W2*><4BÒl­‹|9çfõ€ï©åò£•ü‚+|V/îLF¬å+¦#ß©õHb¹–b‘±1Ò(Ûq0²Ò<üE}Ž4ÆÅ°Š¤µë$¸’ÖFgJPZ³‹œôŠÛ»ö-¯±I –—ïc„orüC£E/?è:©Öøv‰]Æ*wò|[Zr—•q�+cU¥2=ò6«Féd’ä)´%×·ÃâX§m5ŸŒÎåGðÃ>†çeâŠ×›þ’6µ®°_ †¼¶bÝ”º§#Ë�DŠ|o¾Ã@Ëêd¶zf) Š-B΄õwÜW9<Ñ�Åš¨•HQuªþìSŠu¨#σŠMÌ~®“m"Þmé¯{|©S›ÛÐÖ\b£VÜhÂu,€ºn´fCýGÏö©Æf–læÞã7~LÐ/ž{Ù®¿´þä°Kß—ZS7Jf—Ô3&9lîµqäýÃM­utœª)¤ÿ«YÕaB&]΀¤Q5y8²]ÉNÜ8#Áüg3O¶Iú¼S_`ø„-²e;‡U}Ê6½D¹ÇzÅÁͺ¯d[Å„qz±µ‡æž4uÃÁæÄ[Ý `ÜRžÆRÕ%é6þQš&c o¶`}ÂÝÄN[S¹;kÁ sûDZp,s·’ô›vjm¤©µúÆx‡IÞôiÚ&',@lJáÉ#&ónHB!(Ë$´3œ½%b•ÞÄ/7é%Ý8�“â¢3¯äª[ C'¡œý[ìÎU‹ý· õqwDû,L,œjsz¶AwämÜ•5§]²;Teè±$óÚ^1Ø÷qª!ʈ€\qÔ¨£@ 4ç,l½EÙFy>î´Ì’š:-Ù ÔÍŽ~\áç! &W—F5dpéé´±šÝñÒ°;T÷ƒ>ú&'j¬—bºà† ;Ç;XµJ|£5áÔ¸Óèi+9o¨’@ÅvÐâUñŽ+í•NWFk¯Ñ×c²ØíEÔ” ,7MÊO•uˆƒÌð;Kª¯S{¬j?íȵ`³lW·zÿ™K³š$ÕeZy•ÇÒô12äLfìö®¸Jó÷çÌMˆð •íʼ^Afz’&8’ºAjaökJ˜ä»E¢U:âÔ+c¸É9#˜Åˆ¡t´¤¹ù$šÂÝ…-NÄðªÊ¨jIˆM¢Í&ß•$TpHöVþî|ZÛ﯒5¶aî–á‰B¬æ%ØÙJê­‚qaÀÔ·\U±U\£ËÑãåg„¿Y±TÕ9}¬B«¥vSÀºË´}‹U…§,næ6’í¿kiØCÙ°šcé“6NoТÖú4ø&Ž\Þm5“œ æ=;mòܨ+¶I2¡¦º¼Ò•"Zºmãøò¡A ­{Ø”A@–0žò…•ýÑu6†bÞ€¥^ãfƤFÙ`œðäŸÑI\!+ ¥)åD¢ÛùÉÕá%šò~¬eøs?€§m„˜]Ù‡æÊ¤/ÞÃød¸¿ŽwÌ=-·í ýŒÌÝÈu©3£NýQ!)úî»·Í78ú~r‚—aJúJa§+“Jh¾6ßåìD±÷ÑâZ"€¼Ûßû­©ÑP‰g¢Íµy• “á ¦rÿ*Emè4ZÂåIW9x Eg¸èb‘ÔÉ,Šn³FË3e£Ìœí¤ßÆÂï.…Ü]˸ߞŒ"$ßÎ3sÈ€R‡ ñïúÿåÔb!tã|¶Ä8¶#swTxÁ`e”qˆ¸1áìr zWTsÉP•q®©=±Ê´mçîøf…gı̯“cîËòÙ¼A—S{ ÃvoÈòýèe§ûWÂ6ã³;W¿6U¹¼Ýû-qeSnËxë«*]šã šÛ£¥ž4¥ªg­âyib(uKp¡Æ–™?ÉŽ}&y–]š©4í.Σs£™âÀ®#š¿}C¸ËN—1ƒÖ>”°Ou¶|ƒô¯á´dî(¢cIÞR×þhædcêwá5À•7l¹‡ÆP 61ôaÏêr©K½µ½2Ôíö·ó½²¹E™]�^N×L›ýó3†¬ï·ÌßtCqÞ#&Ý(ÎßîŸÇ÷öŽ5øŸÏùýŸþçÓG_ð?Ž¿ßþçt¶|ÜÓóùLOHÊ%xÆHÉçë‘;Í#ÏW!wšï½u/Cì|8Îç+;Ÿ¯éÓø‰QÑíø¼¦|b3�7ÛnôJgXz’wy</“I$÷AGO’übN~ y5'W’6ç3Ö&Ç$Ùã“PB0ÌŸˆ®FIâ¡;Ø ÄãÔ}Ð_Îð»šÒø˜»Ã™i§yDæ€lÏFó ÝéÆX;X{J çÿ$Këì+ÍõúÉLúÃïv8UB`ÎÔÛ‘ï\‚€#”»}Ù¡ŸÃbŒH¬ôX†ÇÂæ-7za£ÿ¼¤Nm…¹â§p$¦†ÖÅ‚ßj§FøåPmž_Fé¶¹àÝœ„f’wÏ_GÒŸR¡È{޶æC€çNÕ¡¯S**ùÇQu97{8&PWvÊÂ9*ˆëdžÀ—樼%7nÔ.ôÖiÙ²^ò–„TVྱÚ¡œÃ¼¸Ž¯ÓèÅ93›)½Åíã‘›C:dUPSAÅ .5Ï"­+ˆ¿¸x#iÕ¹Ã8¼ 5nW#RÔʦ²Æ;ˆá¹3åFÊiÃGJ¡Û•>ë^‰�¿Iúâ…ÑhäŽIT›?ýP*Üœ£Þže|s‘æR¬/c¸ú³<IÀ8/ÓTÖâ³×®m…MM¥æwç!JŠÝ5®Cà„—û”úì!}S?âfysLÞmÝä.Z8Lü‹èýÍÃ7Çöá·žíP±“ÚûÖÜAiRê1Ç3ÛÐ=äé$ºÇ*ó¯ö3GW,åå!ê<ÊÌ<vF}JícÔÓ ã±SîkêÞIÿ|ø±Ýùó9 •ž¯¬e¢Gšm冄Ԧ³Iýà%ÙþóËb2AÉÇ=jˆÇ~üpQBƒ²vICø™wž©;½eÊaŠët2‘¢"b#†ðÏØ£DÑ!¼) Ž;Ù–EQóX„fFŸ%ù‚Êá( ªâÒX*úMtM½SFÂÁ¶z’&_²a)LGœgsÉ žÃ…4.²áERŽËØ¿Ž_L¸³¬™KCls”ùm†bVcÁÖ©·.]1íæ3ô·0âš„µak£zÓúÊÙ O¯­Á}æ2„4@7wg[•>ŸmêBèx©ƒ# ¦Ö4X—ŸPg¢Ïc$–ÞÑžÔ”œFé:øjKqhñ*3 •î‚\â¡M#oòÛàÉ•HÁ_âÖ)ÓÊnI՜Î+ ¬ì¾•/G^&¤uc­Ý4|ƒZ¼‚ùÙSzŠ hŽŸi#Øl+p}‡´CÙŠ¾8F«ékéˆGïŽk)·+º‹ùO?™ÆiÕRÑç7ϵPcÆCÆÔ±xº¨v£qN{ƒ7"’_£"¼’±M²+‚³rLÎ<Í©¢ˆFWд Vò}@zËžíÁ®ê†mw¸Íná¬n¸[xô—Ù­FÉ4·GM5öaȼMª>Í9oÞ!én§¶1¹‰ ÛÐÚ» BŸò²Û@ÔdÕ\Ý#£Õ·Â\rîeè@ºd6çmõüd(‹æÆ¸!×ñ­öš]M&.ŸßNGZŸ{³¥›Ãm´ö>°]ryF¤S�³Åhñ™çC÷šJ¢óšP*긟z)Gö5N±Akûä“á5[Îå¹ÝcªQÒ_7ì’­N,ÚVÍÝ™µ‰Î¨Ñ¶‰£àp&$º&u ldj¿Ãvg3ÿ�@ b´©ªê”H¨¦iª9@‘¨“à”_’žÔ§M~ÛÄ:²G>šÍËYQ‰U»ùÉgʇy}h-`yn«}”ß —Ý|)OE£Zê²Ý4Éö¯‹Ð«ŽÓxN);Ü[ vû|zù¥uvdœÔ‰_»ßd™G€?BV€Ú íÚ®ç(Üz¾²¶‹iX¦-£+øž¬¬Y–ŽRq•{ýbß@Ò8ÑýèÌzL(IYk6MúÌé¾·é äñCd Ö¤t<D’ZQU3¨½e�ñ2 çyŽˆOðÖ\šÿ3£ñ’hPv®D,ÄèjÃà~h̳Ž&ñWó<ûç<ýªµ³ê½ gm•軕€&áOm³¶<á 86»×FUuZNªIøó.îÀ ƒ¨A*¿}Ö©°M¥Õ‘(‹ðª‡l–Œœ«(\©;ƒ–Imê±<7ºœçŸ"Aˆ Û”pL§Õ¾=¿²«É ¦Fô† ×µ‘fÕ3Œ‰£„œ6½YÿŽKIÒÂN çaBÍ|;ýJ'ÿÓ]²6`'Øo“Ñ~ÚÓzªjX“\ƒÈömy9$þ_ŃÍÜ‘eLZFÓ­3Jî[úuÌ/Ô÷¶I8 p;6óKF—I~‘¶4l©Óex Çät÷ǽŒ¯ $çœG[Î2gaʵœd©O J×Pý1BçíEK·ðFôÚŶ’’9H`éqí§!j%ÕØోÇtpÞ t uXzqÍÈù°Ñ1Šásä¢~¤i—é6ç`S߀K[Þ¤ÄirÎcä�7CFíÒ’Ÿ@K~²RK~òUw„¦¥+w<EÊݨ0Ö€è—.\+*5{Ƶd€âÄçIUû¡fó þk¿œ€;qL#‹ì6nÆî^©øa¡’J1 î>/m£ö"š–SIxP‹V“íE`‚YèDÚWKF${ˆFŠÙ&D³ˆ]xõå¼ÒPxîEZxíåmcâyAV³9n0D7R™%°æî”ÉfQ„¦N>u;Œ.¨É÷«ÑÈd¶M?´«ï ´áû«ª§v0^ ý’Ck^Ý·«¡ðuèªæ¹%m§˜Õ„ÚA°Û[*V É:Ü;/8»é¾vOÄÁ}µØe£{?™óÜ#èFûÝm"ùî4B|ð¶©såv‘$],½ÛN‚†S¨.š�Dll\Û$ªí’1°»º¤~c~V³fXš¯au^jñÞ0,­;S<8²«µðþ áE+â ÜpZTæ}ÕùÂ_8e ±–bI,?ã'Z8eô&Y‰úm¤âWZVñ•¬î&©¸¥Yõí’±•!æw{fæ¹QÏÈ­ù¯xzæ¿èñ+Qj#žMg ‚·Ôõ4t>¤d¤Z&_'‹H<^vÛ¤)ŠQý7øìwykîúén¹‹|ÿJ¼Õò$›Û5§l7©hÈí°x9"zTÜ"¾Ï-ÌóªóÉÜë™×M!g"àa*¼¥Ò³õlAK}V YìS¹Ø~]r6{”nÉ’±ÊNVWéä¼Ëªx «âéJ«Â<")\-;‚>_o9"Å·Öì^Ä+-‰DnUIœ#o´šÈL†8>UX%÷CEiˆß<6úùˆÐé“‹´ó|Éf¦„YseSÿ¯‘3ñË"¿ÎŒ‰Gˆ¢ó¡Qþ.9åãéÑ»ã8a7“Ä1×ïÿ@wÄ ± ‹òëøE¿§XþÞ«„A$þš–y:‰$Ba}ÐßÏK—Q¨ðú\ŸO^3Ê œ¤Áé¹N,EÚ•± "ª¸ƒ©SÈÀäßZ#ÀTlþúèåÇï¿?~÷½ŸWFpR"W an[ä=¼"L_=ÏØ2j9:tŸÆÖJ”dOàPð¸1’O´×Ì&ÈV¦$âóÐ;‚²qÅ å…—Œš5#ï(]ŒØë»ã—´W‘±³´Ü×ئì-d(ºû šÜÊØjݵ…¹|¾}ÕHÿºÏB¯ÐÎ"ŽÓ„Ø9 9,~§Y«cˆ¡l÷g»kÙlCh'¹]¢·,óÖKZ Or²wŒ¯Þweâ¥né]¬œp:¥¸ü9"HôõQ˜Zÿb›;ÒÌ'p¡u¬¯Ã ]„Mx>æäÉái–‡=«wIß.\áã›ÊÛyJ,Â[d¿Å½»ÂG'o´‰B ,KˆZ/]X×Å{ˆ‹÷påÅkѼèÖÍË_hÿ.nAzWÎ0F TÎô&Í9;é”ÂÙå7+gîÛ«/!mSF)ázFü^*²bÉÎEóC¨fΕ!2-#ê¿åÐvóBòcéÄO‹¼˜6aáÕÉÇ~|VÈ c¦Ñ{’Mr&â^×6 Üó<3@‰KÖ±»g› ù .xÉl ›~=³éÕ ”•™œðضú$®:¦"ú6€;éäÉCÚ#×X ¯g ­o²´Â—3…ÍÖüCº›Ýì‚ѹƒ2ˆyTé .�úlÐ7ÞíÅiþÏy:çßGé•T¦3†V–ÞB޲wrõÉ›þt£«Žgc…¬¡Ïš»®û:£aîü>»õõÄ«ry?†ß攌ًÀ%yÊ‘ÒiØ­bErôjžÙFèš›ý°õÈMC‡²už6õ6´ìPÍ9;ÔVÙW–Ìt*ïèèñ×kSS¡¢øéoš‘³ˆ3¹ÍŸãá‹òÑÌ)£˜}kßiŽÆ´óqD¼Ý#!÷jQ.=Øeº—ŒÇn [nœ¼'ܼÁ²® +·VOñ­¶·ë•=ð½?Ÿ'ºèìuj0„&3YO$¿"þ拨€àt/±Îžõ}˽ÒÍßì¤éÓ¿øqÓ‰T‚‘ OIàÒa‘ãZ{×Ù8¼ó¤58JQ²÷'IM•6Œ˜FXÄ(ÃE†êÄ(™5cVB·ÙïÆÛ¡õ'¢S¦mÕD`KÎß¶™á&xE£%«sË+[`Ûé4›‡´´¹gÐæž­ÔæÌ#Z¾ÖnE_HŠaXk3i \g• �‹†ÅÝ&Qâñ×ãHˆú ùÙÍ‘¢Á]Ì“Òè5)Ü Éˆ°ø ö¸Î—t»„F+íÛ"ÆOZmk˜ž¥æ¦H¨Î€"(¹”ÌR/¬võ(¡ëY?—aƒaVŽ#˜¬ÖPï¹x­E¹Ä:.$3c :’áˆ}åWé¨�” åvFTèÆ¾)š•(˜hÅV)ö-z i/•aFeæÌn‹dø#/®YÜ18hR9à ¡Z2âÊg$C­¸F³_zAiñtÍFêË(jÕ¡VÞ|euHJTR¦áûSv‘ lΛÕÙ@Ì–NzÚ$j•¡Íj¥{ÙÌ|âí|Œd\ÖtÞ{’e*…tô› 9¼yOðÃ-(ÐÞ«Km£®j{M?2 If˰qØ(7¼‰¥%Tf8­£åR@Ñá%Î./z®)¯ôb&œÕ‹ëéöz1 qW1ô[«Â¼ ~IÛR>‚y.,6ýŒµ¯@[Îòh­ÂlˆE‰ÍˇóœYšls±ëH–ð޶Л–zßÚÝ–x[nK×û´e$Óísk6WjËKdóé²Ä/o©C´Ôg¤ü¢ºˆ¼ãEm™ü©êÔ(îë~….ä*ŸlD„dgÐñå½vbÝ»j½ÉöÀ>&+Í¥6ÆÜ=ãbÚ*q­³*æu¤™uF†CΪdã1:„ýè²0÷ úãœH®DšŸ‘+ý~kÁT—ð¶­ìiIGŸòl‹Ðe¨”´×þ3Èô¯ gïødIåJ cÀdQ‡Û'6v°³!ì„ú®Ðà]‰·õôz-w ï³»?cÛ3JgÐàdºb9®€Çf†‡#uì\R £µ(ÜMuDD]Sæ~Kñ&Kª°v:ìëÀV\›,•ñËMIÖ1°"gËâMÑæ[³o4ÝZÚ7jÌ=Þ÷¦Ó½…ù‹//¿žN¿V@diÐ\y^»º„A•qŒv×¥ö}ö¾l½'w³·Û†M·@ÙÇ£üÏEð†„à:ÛN€_ÑŠgÔG Àv±Ï¶L€–ÔÑà!?~v+÷[Û§w¯ãoÏÞ^¿8;:;~{4xùñ»ïŽ> NÿóˆÉTÌ®[¿¼Î,sž; ~oÏ6›XFO~n¡É„•ïb>M™oô-ìšÐ&ñ þCzªÁ¨‚æ Ì—%ýÞž÷ ØëùJƒÚ<b^Ú™ ôgM;;:LwÃ7¹¤,–•"¸&vLdÛÓX@+ÑÉ˯ˆ$b<ãhiÞÁ €Âp‚¯´N=Ð|J:((˜"ª9×»òR˜Ó$9ãŽÖÞcQ úi°FÔ=Žb-ŒÈí¡Kc¬¹£e¤Øgÿ…íUÞ <ÏOiÒQ~šé½ì ýÅ‚°ö¤e0(V.à÷ÔC·$6|ì�Λ‚eé~.Nc—ÂŒÀ™¤ú Ýðêß1KËs3¸!Ú8o– €`¹‹AÚÞ äIüâv`‡°½w½">‚ O‹‹Fá®±2½MJõzqFª)ZF¥rFàXRG$’ñ‡‰ÅÓÛÂi†7*ò ®]Cj·Wa@Û°–Ǿ -[Ù÷ìì ù¤<¨° Ú6Šf·_n›j2´Ð´e2òÞNâuÍ&Ÿ¦n¦ªÎ‚˜éØ—g|²ðZ- öKeç\?úX*‡!¯¨ëÇ€�LÉEµÄL¥Ã¹ïÌ+:»D°«¦šÐ<§‡>ô69êÛoô4Ëïb³© âW—ýÛØôWìsÔïøY•rŸúFöØÏ²ã§ce^®ßŒÙ�—›õŠ4õ¿ì™0ö‡æŸö‰Pùš%Uu! ²÷P»9¿}ýÔD37’á~·¶c‰ò ×ÈFëÉôÇÝÔP» ¡ãà†?ל!„N÷X‡p/èVYÕ,¾—ù (Ç„ÃVræ.3К¾ßñÙ«úù<{á%ÖŸ(˱'ù(0·éÌ™ÅÏ’¬¬¢™m/Ö‰ìjó.¸gpÝÛšJ}Pb-%#Ô¶FòÜÊ6Š@ò-£úK<ÒgUa`èÍ4/æ— .RGÕÞ¿_Ô´s¡ëÎåRªJÏ “8þ·?y5œ¸n±`¢�\2½hÙïþäÿ΂襉ø½ËW\«Î²=sxpk•fýIÚB©Q›¸¡ÎزÉûäUˆA)ñÓKÅ% ,jn*—Qëꆅܶ"ö’ß¿€ÍÇkë’>¸ÞU‡D`¨ú=¾ã Û¤¯×¼•jKèhåÛ5ª¨ã—Ú•©H´)QMi£¦!è–v-jð´w¸‰¿PºK¤lÆl:MÇ™O¶¡\z•ýulÆ×=®üÁHv'pºKGAЬjòà£H#(•º}=c©±k‰aÁÓÌ An÷ínÀØoÃs=ý÷’ßÁÀ]ɬXÍyY~%¬Û}åËbÛ·¾üÎç@2vOAÉbͽ²^6ÀúDw¯Û^ œAìAí©Ïc{o‚ùÊ+äfÔ(;#ø.¯â<œù(¼y2åЃßFãŽaàeÍ2ìdïñ«û?ì?z²Ðèÿ°øìñ—þ?Çßo¢ÿʦû^ӇܜÔoq„}³»ß샣‡8Òsª­ö×OË<Ãîß÷¹›? M².ŽŸÔ$Žú³\ÕýÑOÐË!1{ÑIr•Nâ·(îú¤OÏðÙŸç£ëàÉ·„BoEþ¢<9ý±õ˜¼þ?“³‘²JŒe”\r‰™I¿(/ôWìrbôÍÑ[¿cY¡kg>ó 0ö `Aà‰Pdë™—PR衯cäÚI¢ÿÍCó!. WÏkn$åþWßîwtðFï0·†¹yüf+ÞªOƒu´ÄÑ~_UûÝ=1Z#=ÆH¨êþHæžX|Q$ŠYÒé�#u ú#™g^”£Ë ufs$&tŽô#u ©ø#™gŽïŠ\?D¯ò›5<î"ÿc!ÿ«‚§³ŠîAÓÇt¬3£g¾+Êë„MäcèöeRu/ùqŸ¦×µ ÞÀ@·ÖcÌ¿%c`¬®ðÆ:à±�’Q—ÙÿEŘK†|‚!»vÄò‰›žùÊü¬XÂ*Qµú¸«°Õî)ô†ÃKÆ:ÄXµ:þX‡_9OͲqžaœŽ,Qœg«ÙÅåÚ r=ÇX2,Òœ¦SÁ¸åtIšà’1ÿ€1ÿ°zLó W·Æ>ç²#axà ëHØ#ááã¬;àûƒÎ³q ¤g‚Q“´sÍàøƒÎSá ižy“Þd¸K&‹Ÿ–ŽFëí:Þhæ™ûË5´3Ìþ¤‹vO„v榬%xÕž€"O:©öD'EÏxãu òƒtÑÉÄ<sVfì¨4ÖùyvÚ:1§ði×:ŸZÁ;é«Vú«xÚ¹Ò§:IzæeQ¢Í÷Æ¿N±¾ såO±ª§+÷5ϼ‡wìô‰¸UŸ$õ¥ÑeJóŸ;ïOO¾Û]2øïbop0L6ë>´O!ŸvÊMoOnú—Åš…ÓÆt‰Poä§"äËøÅYY•N¥ÖòCvIRoHóÌ)îÛÑ’1žaŒ.)êažy•FJ­á=ó®Ã.ÞÓ^ާ (ææ©Øq#‚É;ñPçx¸‘òtÎ:ìä>o$ȧ‚°¬— r€Aº¸ÌÄ<Ã8qµÈG—e‘g?m¢õR?ë"¡Zøo²a™�áASÖQï(ó¬“zÏtºôŒóµ,¹qŸ2Ï:©çô˜Pó,BÜ’‘0R ½‘€RU£t2Iò`ÓvÍý5D\ÒÇζílb×E¼å­ìd¬ßK»»µ¬·¼’?Ò’vH­±–a|ûcuƒ|·†Z„èµ ±5à2 À¥5IJjnˆF9wkŒe5Dþ"¢ÖËÒ¦ü1ZySÜ «Õîv3ÿWæŠûò÷åïËß—¿/_þ¾ü}ùûò÷åïËß—¿/_þ¾ü}ùûò÷åïËß—¿;ýûÿËá´�P���������������������������������bird-1.4.0/doc/slt2001/�����������������������������������������������������������������������������0000755�0001032�0000144�00000000000�11606273733�013302� 5����������������������������������������������������������������������������������������������������ustar �feela���������������������������users������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������bird-1.4.0/doc/slt2001/slt.tex����������������������������������������������������������������������0000644�0001032�0000144�00000032234�11606273733�014632� 0����������������������������������������������������������������������������������������������������ustar �feela���������������������������users������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������\magnification=\magstep1 \input epsf.tex \input mjmac.tex \language=\czech \chyph \hsize=160truemm % A4 with 25mm margins \vsize=247truemm \parindent=2em \nopagenumbers \def\hdr#1{\medskip\leftline{\bf #1}\smallskip} \def\\{\hfil\break} \def\BIRD{{\sc Bird}} \def\inititemize{\vskip 1pt\begingroup \parskip=1pt plus 0.3pt minus 0.1pt \advance\leftskip by 3em \advance\rightskip by 3em \parindent=0pt } %%% Úvod a historie projektu \hdr{Na poèátku bylo vejce aneb Úvodem} \noindent Internet i UNIX jsou na svìtì ji¾ pìkných pár pátkù. Poèítaèe pracující pod nepøeberným mno¾stvím unixovských systémù od nepamìti fungují jako internetové po¹tovní servery, name-servery a men¹í routery. Skoro by se zdálo, ¾e si tyto dva svìty u¾ nemají co nového øíci. V~posledních letech ov¹em výraznì vzrostl výkon bì¾ných PC-èek a objevily se pro nì karty podporující nejrùznìj¹í sí»ové technologie, a~tak se tyto poèítaèe staly vhodnými kandidáty i~pro funkci routerù. Na~mnoha místech tak star¹í PC-èko s~volnì ¹iøitelným softwarem pøedstihlo svého star¹ího a dra¾¹ího komerèního sourozence. Aèkoliv podpora routingu, firewallingu a inteligentní queue management v~jádrech tìchto~OS (a~zejména Linuxu) je ji¾ velice vyspìlá, je¹tì nedávno byly notnì zanedbávány protokoly pro dynamický routing, tradièní unixovskou koncepcí umístìné do~u¾ivatelského prostoru v~podobì routovacích daemonù. Tento nedostatek se pokou¹ela mezi jinými napravit také skupina nad¹encù na~pra¾ské Matematicko-fyzikální fakultì UK, která se rozhodla jako svùj studijní projekt vytvoøit nového routovacího daemona, který by se stal nìèím víc ne¾ jen dùstojným konkurentem komerèních routerù -- nejen kopíroval u¾ známá øe¹ení, ale také pøispìl nìèím novým; na~jedné stranì být stabilním a efektivním programem pro praxi, na~stranì druhé ov¹em i~laboratoøí pro snadné experimentování s~novými my¹lenkami. A~tak se narodil projekt {\it BIRD Internet Routing Daemon} (zkrácenì \BIRD\footnote{$^0$}{Projekt si samozøejmì vyslou¾il nejrùznìj¹í pøezdívky -- od Ptáèete a¾ po~Ptákovinu.}). Pùvodní plány byly smìlé a rozhodné: Vytvoøit nejlep¹ího routovacího daemona na svìtì, který by fungoval na~v¹ech platformách, vy¾adoval minimum strojového èasu a pamìti, podporoval v¹echny routovací protokoly atd., zkrátka sen, jaký má být. Pøeskoème nyní dva roky vývoje\footnote{$^1$}{bìhem nich¾ z~nìkterých po¾adavkù samozøejmì se¹lo -- napøíklad logem projektu se nakonec nestal ptáèek nesoucí v~zobáèku snítku byliny øeèené routa \dots} a podívejme se, co z~toho vze¹lo. %%% Svìt routingu %% v~ti¹tìné verzi pøeskoèíme %%% Co BIRD doká¾e \hdr{Kdy¾ ptáèka lapají, pìknì mu zpívají aneb Feature list} \noindent \BIRD\ dostal od svých sudièek do~vínku mnohé dary: \def\icirc{\raise0.2ex\hbox{$\circ$}} % Signs frequently used for \itemize \itemize\ibull \:Schopnost komunikovat protokoly IPv4 i IPv6. \:Podporu v¹ech základních routovacích protokolù: \itemize\icirc \:RIPv2 (Routing Information Protocol, viz RFC 1723 a 2080)\\ Urèen pro interní routing, dnes významu spí¹e historického.\\ Algoritmus: distance vector (Bellman-Ford).\\ Velmi pomalá konvergence, pou¾itelý pouze pro malièké sítì. \:OSPFv2 (Open Shortest Path First, viz RFC 2328)\\ Urèen pro interní routing, v~souèasné dobì asi nejbì¾nìj¹í.\\ Algoritmus: link state (Dijkstra).\\ Rychlá konvergence, ale velice komplikovaný.\\ Zatím podporujeme pouze pro IPv4. \:BGP4 (Border Gateway Protocol, viz RFC 1771 a 2283)\\ Standardní protokol pro externí routing mezi AS.\\ Rychlá konvergence, mo¾nost administrativní filtrace.\\ Algoritmus: path vector (upravený Bellman-Ford). \endlist \:Propojování protokolù a výmìnu dat mezi nimi. \:Schopnost uplatòovat routing policy -- urèovat, které routovací informace budou od~kterých protokolù pøijímány a do~kterých protokolù vysílány. \:Snadnou konfiguraci a údr¾bu, ale o~tom a¾ pozdìji. \:Modulární architekturu umo¾òující snadné doplòování nových protokolù, filtrù i jednoduché portování na~dal¹í systémy. (Interface k~routovacím slu¾bám jádra je bohu¾el i mezi jednotlivými unixovskými systémy natolik rùznorodý, ¾e dokonce i~Linux 2.0 a Linux 2.2 jsou naprogramovány jako dva odli¹né porty.) \:A v~neposlední øadì kvalitní dokumentaci jak u¾ivatelskou, tak programátorskou (to je vítaný dùsledek bytí ¹kolním projektem). \endlist %%% A jak to v¹echno propojit \hdr{Svìt z~ptaèí perspektivy aneb Jak to v¹echno dát dohromady?} \noindent Hlavním problémem ov¹em není ani tak v¹echny tyto vymo¾enosti naprogramovat a popropojovat, nýbr¾ udìlat to tak, aby z~toho nevznikl neudr¾ovatelný a neefektivní zmatek\footnote{$^2$}{Nádherným pøíkladem je Mendelùv pes, jak ho kdysi nakreslil pan Kantorek.}. Z~toho se zrodil modulární pohled na~svìt routingu a následnì i celá modulární architektura programu: \bigskip \centerline{\epsfxsize=0.9\hsize\epsfbox{../slides/obr5.eps}} \medskip Základem pohledu na~Internet z~na¹í \uv{ptaèí perspektivy} je routovací tabulka. Na~ní jsou pøipojeny jednotlivé routovací protokoly -- jak protokoly reálné, tak i nìkolik virtuálních, jako je napøíklad protokol Kernel zaji¹»ující synchronizaci tabulky s~tabulkou jádra nebo protokol Static generující podle své konfigurace statické smìrování. Ka¾dý z~protokolù posílá do~tabulky polo¾ky pro v¹echny routy, které se na~základì svých informací o~topologii sítì dozvídá. Tabulka pro ka¾dou sí» vybírá na základì preferencí jednotlivých protokolù a jejich metrik optimální smìr a ten oznamuje zpìt protokolùm. V~cestì ov¹em v~obou smìrech stojí filtry, které mohou tok dat regulovat -- nìkteré polo¾ky odmítat, jiné upravovat (napøíklad jim pøenastavovat metriky èi tagy; to se dokonce vztahuje i~na atributy doplòované cílovým protokolem, proto¾e nejprve cílový protokol nastaví implicitní hodnoty svých atributù, pokud je ji¾ polo¾ka neobsahovala, a teprve pak dojde k~filtrování). Routovacích tabulek mù¾e dokonce existovat vícero a pomocí protokolu Pipe si mohou pøeposílat vybrané polo¾ky. Tím mù¾eme zajistit napøíklad routing závislý na~zdrojové adrese èi vstupním interfacu: u~Linuxu 2.2 èi novìj¹ího nakonfigurujeme jádru více routovacích tabulek a ka¾dou z~nich pøipojíme na~jednu tabulku na¹i. \hdr{Ptaèí zpìv aneb User interface} %%% User interface: konfigurace, logging a filtry. Remote control. \noindent Sí» se mìní a s~ní se musí mìnit i konfigurace sí»ových komponent. Ta se pozvolna stala tradièním kamenem úrazu vìt¹iny routerù. U~tohoto kamene se toti¾ scházejí dva odvìcí nepøátelé: snaha o~snadnost a flexibilitu konfigurace a snaha o~nepøetr¾itý provoz sítì. A~jednou sleví ten, podruhé onen -- autoøi nìkterých routerù vsadili na~sílu textových konfiguraèních souborù za~cenu toho, ¾e se po~ka¾dé zmìnì konfigurace musí router restartovat a po~nìjakou dobu neroutuje, jiní zase podøídili non-stop provozu v¹e ostatní a stvoøili konfigurování nepøeberným mno¾stvím online pøíkazù, pomocí nich¾ se nìkteré vìci provádìjí snadno, jiné, na~které autoøi speciální pøíkaz nevymysleli, u¾ obtí¾nìji a je¹tì jiné vy¾adují do~výsledného stavu dospìt postupným provedením mnoha zmìn, co¾ má obvykle za~dùsledek daleko del¹í výpadek ne¾ jaký by byl vznikl reloadem celého routeru. \BIRD\ se sna¾í dosáhnout obojího: pou¾ívá textové konfiguraèní soubory, u¾ivateli tak dává mo¾nost vytváøet konfiguraci víceménì libovolným zpùsobem -- a» ji¾ ruèním editováním, interaktivními programy èi automatickým generováním pomocí scriptù. Po~zmìnì konfigurace je ov¹em schopen si novou verzi souboru pøeèíst, porovnat s~právì pou¾ívanou konfigurací a zmìnám se za bìhu pøízpùsobit (pokud jsou zmìny pøíli¹ velké, mù¾e to zpùsobit restart nìkterého z~protokolù, ale provoz tìch, kterých se zmìna netýkala, to nijak neohrozí). Konfigurace ka¾dého protokolu (lépe øeèeno ka¾dé jeho instance -- protokoly mohou být spu¹tìny nìkolikrát na~rùzných rozhraních èi nad rùznými tabulkami) vypadá pøibli¾nì takto: \verbatim{ protocol bgp TestBGP { # instanci si mù¾eme nazvat local as 65000; # ná¹ AS neighbor 195.39.3.64 as 5588; # sousední AS export all; # posílat budeme v¹echno import filter { # na vstupu nìkteré odmítneme if !(bgp_path ~ / ? 5588 ? /) then reject; if net ~ [ 10.0.0.0/8+, 192.168.0.0/16+ ] then reject; preference = 101; # zbylým nastavíme preferenci accept; # a pøijmeme je }; }} \noindent V¾dy popisuje protokol, jeho parametry, pøipojení k~tabulkám (v~na¹em pøípadì pou¾íváme tabulku implicitní) a nastavení vstupních i~výstupních filtrù. Filtry jsou popisovány jednoduchým procedurálním programovacím jazykem, který má k~dispozici v¹echny informace o~právì zpracovávané polo¾ce, mù¾e se podle nich rozhodovat a libovolnì je mìnit. Díky tomu je mo¾né jednodu¹e zadávat i velice slo¾itá pravidla, definovat si podprogramy sdílené filtry patøícími k~více protokolùm, i~poèítat metriky pro jeden protokol na základì metrik protokolù ostatních. Vítaným pomocníkem pøi odhalování problémù v~sítích je rovnì¾ volitelné logování dùle¾itých událostí a trasování èinnosti protokolù: zde si je mo¾no pro ka¾dý protokol vy¾ádat prakticky cokoliv poèínaje základními informacemi o~bìhu protokolu (pøipojování a odpojování sousedù apod.), pøes výmìnu polo¾ek mezi protokolem, filtry a jeho tabulkou, a konèe detailním výpisem v¹ech pøijatých i odeslaných paketù. Mimo to \BIRD\ disponuje \uv{dálkovým ovládáním} -- jednoduchým pøíkazovým rozhraním, pøes které se mohou pøipojovat rùzní klienti a vydávat jak nìkteré øídící pøíkazy (restarty protokolù, reload konfigurace, pøepínání trasování, \dots), tak po¾adavky na~vypisování stavu routovacích tabulek a protokolù. U~tìchto pøíkazù je mo¾no vyu¾ívat plné síly filtrovacího jazyka, tak¾e chceme-li napøíklad znát v¹echny routy smìrované pomocí BGP na jednoho konkrétního souseda, staèí polo¾it dotaz typu \verbatim{ bird> show route where source=RTS_BGP && gw=62.168.0.1} \noindent a dozvíme se ihned v¹e, co jsme potøebovali. Ladìní filtrù navíc usnadní i~to, ¾e se mù¾eme zeptat na~obsah routovací tabulky z~pohledu nìkterého z~bì¾ících protokolù. %%% BIRD uvnitø %\hdr{Ptaèí anatomie} %% existuje progdoc %%% Netradicni pouziti \hdr{Cesty ta¾ných ptákù aneb Za hranicemi v¹edních dnù} \noindent Hotová modulární implementace routovacího daemona samozøejmì svádí i k~ménì tradiènímu vyu¾ití. Zde se fantazii meze nekladou, autory samé bìhem vývoje napadly napøíklad tyto triky: \itemize\ibull \:{\I multirouter} -- \uv{schizofrenní} zaøízení pracující na rùzných skupinách interfacù jako rùzné routery øídící se rùznými pravidly, le¾ící tøeba i v~rùzných autonomních systémech. To je mo¾no zaøídit patøièným nastavením jádra a buïto více bì¾ícími \BIRD{}y nebo dokonce jedním pracujícím s~nìkolika rùznými routovacími tabulkami. Tak by mohl napøíklad celý pra¾ský NIX bì¾et na jediném routeru (pravda, bì¾né PC by na to nestaèílo), a pøesto by si ka¾dý provider mohl sám urèovat a konfigurovat svou vlastní routovací politiku. \:{\I ¹edá eminence} -- \BIRD\ by ani nemusel bì¾et pøímo na~stroji, který pakety routuje, mohl by také hotové routovací tabulky diktovat nìjakému dedikovanému routeru disponujícím výkonnìj¹ím hardwarem, a tak skloubit ¹pièkovou propustnost \uv{velkého ¾eleza} s~flexibilitou routeru be¾ícího pod unixovským systémem. \:{\I inteligentní mirror} -- aplikace se nemusí zastavovat u~routingu jako takového, mnohdy je mo¾no informace získané z~provozu routeru vyu¾ívat k~dal¹ím úèelùm, napøíklad k~inteligentnímu pøesmìrovávání klientù na~nejbli¾¹í mirror va¹eho archivu. \endlist %%% A co dal? \hdr{Èas ptáèat aneb Co dál?} Pøesto¾e po~úspì¹ném obhájení projektu a prvních nìkolika desítkách spokojených u¾ivatelù (a samozøejmì i~pár opravených chybách) nyní vývoj spí¹e stagnuje, autoøi ji¾ spøádají plány do~budoucnosti, které by mìly \BIRD{}ovi pøinést mimo jiné také routování multicastù, agregaci sí»ových prefixù, OSPFv3 pro IPv6, on-demand linky a porty na~dal¹í systémy. %%% Reference na nás a ostatní routery \hdr{Snù¹ka odkazù na závìr} \noindent {\sc Bird Team} pod vedením RNDr. Libora Forsta ({\I forst@cuni.cz}) tvoøili: $$\vbox{\halign{#\hfil & \quad \it # \hfil & \quad \it # \hfil\cr Ondøej Filip&feela@ipex.cz&http:/$\!$/feela.ipex.cz/\cr Martin Mare¹&mj@ucw.cz&http:/$\!$/atrey.karlin.mff.cuni.cz/\char126mj/\cr Pavel Machek&pavel@ucw.cz&http:/$\!$/atrey.karlin.mff.cuni.cz/\char126pavel/\cr}}$$ Domácí stránku projektu najdete na {\it http:/$\!$/bird.network.cz/,} odtamtud ji¾ vedou odkazy na~aktuální verzi, online dokumentaci i mailing list u¾ivatelù. V¹echna zmiòovaná RFC i mnoho dal¹ích naleznete na {\it http:/$\!$/www.rfc-editor.org/}, první my¹lenky o~vyu¾ívání ptactva v~Internetu sahají a¾ k~RFC~1149. \BIRD\ není na~svìtì sám, má i~pøíbuzné; mezi nimi za zmínku stojí daemoni {\sc GateD} ({\I http:/$\!$/www.gated.org/}), \hbox{\sc Zebra} ({\I http:/$\!$/www.zebra.org/}) a {\sc Mrtd} ({\I http:/$\!$/www.mrtd.net/}). O~IPv6 se bohu¾el zatím jen pí¹e, na~jeho celointernetové nasazení se stále èeká a mezitím pøibývá address-translatorù a dal¹ích zvìrstev. Snad jediná vìt¹í sí» pou¾ívající tento protokol je experimentální virtuální sí» 6-bone (viz {\it http:/$\!$/www.6bone.net/} a odkazy odtamtud). Dotazy a pøipomínky posílejte buïto autorovi nebo celému {\sc Bird Team}u na~adresu {\I bird@bird.network.cz}. \bye ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������bird-1.4.0/doc/slt2001/Makefile���������������������������������������������������������������������0000644�0001032�0000144�00000000232�11606273733�014737� 0����������������������������������������������������������������������������������������������������ustar �feela���������������������������users������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������all: slt.dvi slt.dvi: slt.tex csplain slt.tex slt.ps: slt.dvi dvips -o slt.ps -D600 -ta4 slt.dvi clean: rm -f *~ *.log *.tfm *.*pk *.*gf *.ps *.dvi ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������bird-1.4.0/doc/kernel-doc���������������������������������������������������������������������������0000755�0001032�0000144�00000062552�11606273733�014160� 0����������������������������������������������������������������������������������������������������ustar �feela���������������������������users������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/usr/bin/perl ## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ## ## ## ## This software falls under the GNU Public License. Please read ## ## the COPYING file for more information ## # # This will read a 'c' file and scan for embedded comments in the # style of gnome comments (+minor extensions - see below). # # Note: This only supports 'c'. # usage: # kerneldoc [ -docbook | -html | -text | -man | -gnome | -bird ] # [ -function funcname [ -function funcname ...] ] c file(s)s > outputfile # or # [ -nofunction funcname [ -function funcname ...] ] c file(s)s > outputfile # # Set output format using one of -docbook -html -text -man -gnome or -bird. Default is man. # # -function funcname # If set, then only generate documentation for the given function(s). All # other functions are ignored. # # -nofunction funcname # If set, then only generate documentation for the other function(s). All # other functions are ignored. Cannot be used with -function together # (yes thats a bug - perl hackers can fix it 8)) # # c files - list of 'c' files to process # # All output goes to stdout, with errors to stderr. # # format of comments. # In the following table, (...)? signifies optional structure. # (...)* signifies 0 or more structure elements # /** # * function_name(:)? (- short description)? # (* @parameterx: (description of parameter x)?)* # (* a blank line)? # * (Description:)? (Description of function)? # * (section header: (section description)? )* # (*)?*/ # # So .. the trivial example would be: # # /** # * my_function # **/ # # If the Description: header tag is ommitted, then there must be a blank line # after the last parameter specification. # e.g. # /** # * my_function - does my stuff # * @my_arg: its mine damnit # * # * Does my stuff explained. # */ # # or, could also use: # /** # * my_function - does my stuff # * @my_arg: its mine damnit # * Description: Does my stuff explained. # */ # etc. # # All descriptions can be multiline, apart from the short function description. # # All descriptive text is further processed, scanning for the following special # patterns, which are highlighted appropriately. # # 'funcname()' - function # '$ENVVAR' - environmental variable # '&struct_name' - name of a structure or a type # '@parameter' - name of a parameter # '%CONST' - name of a constant. # '|code|' - literal string # match expressions used to find embedded type information $type_constant = "\\\%(\\w+)"; $type_func = "(\\w+\\(\\))"; $type_param = "\\\@(\\w+)"; $type_struct = "\\\&(\\w+)"; $type_env = "(\\\$\\w+)"; $type_code = "\\|([^|]*)\\|"; # Output conversion substitutions. # One for each output format # these work fairly well %highlights_html = ( $type_constant, "<i>\$1</i>", $type_func, "<b>\$1</b>", $type_struct, "<i>\$1</i>", $type_param, "<tt><b>\$1</b></tt>" ); $blankline_html = "<p>"; # sgml, docbook format %highlights_sgml = ( $type_constant, "<replaceable class=\"option\">\$1</replaceable>", $type_func, "<function>\$1</function>", $type_struct, "<structname>\$1</structname>", $type_env, "<envar>\$1</envar>", $type_param, "<parameter>\$1</parameter>" ); $blankline_sgml = "</para><para>\n"; # gnome, docbook format %highlights_gnome = ( $type_constant, "<replaceable class=\"option\">\$1</replaceable>", $type_func, "<function>\$1</function>", $type_struct, "<structname>\$1</structname>", $type_env, "<envar>\$1</envar>", $type_param, "<parameter>\$1</parameter>" ); $blankline_gnome = "</para><para>\n"; # bird documentation %highlights_bird = ( $type_constant, "<const/\$1/", $type_func, "<func/\$1/", $type_struct, "<struct/\$1/", $type_param, "<param/\$1/", $type_code, "<tt>\$1</tt>"); $blankline_bird = "<p>"; # these are pretty rough %highlights_man = ( $type_constant, "\\n.I \\\"\$1\\\"\\n", $type_func, "\\n.B \\\"\$1\\\"\\n", $type_struct, "\\n.I \\\"\$1\\\"\\n", $type_param."([\.\, ]*)\n?", "\\n.I \\\"\$1\$2\\\"\\n" ); $blankline_man = ""; # text-mode %highlights_text = ( $type_constant, "\$1", $type_func, "\$1", $type_struct, "\$1", $type_param, "\$1" ); $blankline_text = ""; sub usage { print "Usage: $0 [ -v ] [ -docbook | -html | -text | -man ]\n"; print " [ -function funcname [ -function funcname ...] ]\n"; print " [ -nofunction funcname [ -nofunction funcname ...] ]\n"; print " c source file(s) > outputfile\n"; exit 1; } # read arguments if ($#ARGV==-1) { usage(); } $verbose = 0; $output_mode = "man"; %highlights = %highlights_man; $blankline = $blankline_man; $modulename = "API Documentation"; $function_only = 0; while ($ARGV[0] =~ m/^-(.*)/) { $cmd = shift @ARGV; if ($cmd eq "-html") { $output_mode = "html"; %highlights = %highlights_html; $blankline = $blankline_html; } elsif ($cmd eq "-man") { $output_mode = "man"; %highlights = %highlights_man; $blankline = $blankline_man; } elsif ($cmd eq "-text") { $output_mode = "text"; %highlights = %highlights_text; $blankline = $blankline_text; } elsif ($cmd eq "-docbook") { $output_mode = "sgml"; %highlights = %highlights_sgml; $blankline = $blankline_sgml; } elsif ($cmd eq "-gnome") { $output_mode = "gnome"; %highlights = %highlights_gnome; $blankline = $blankline_gnome; } elsif ($cmd eq "-bird") { $output_mode = "bird"; %highlights = %highlights_bird; $blankline = $blankline_bird; } elsif ($cmd eq "-module") { # not needed for sgml, inherits from calling document $modulename = shift @ARGV; } elsif ($cmd eq "-function") { # to only output specific functions $function_only = 1; $function = shift @ARGV; $function_table{$function} = 1; } elsif ($cmd eq "-nofunction") { # to only output specific functions $function_only = 2; $function = shift @ARGV; $function_table{$function} = 1; } elsif ($cmd eq "-v") { $verbose = 1; } elsif (($cmd eq "-h") || ($cmd eq "--help")) { usage(); } } # generate a sequence of code that will splice in highlighting information # using the s// operator. $dohighlight = ""; foreach $pattern (keys %highlights) { # print "scanning pattern $pattern ($highlights{$pattern})\n"; $dohighlight .= "\$contents =~ s:$pattern:$highlights{$pattern}:gs;\n"; } ## # dumps section contents to arrays/hashes intended for that purpose. # sub dump_section { my $name = shift @_; my $contents = join "\n", @_; if ($name =~ m/$type_constant/) { $name = $1; # print STDERR "constant section '$1' = '$contents'\n"; $constants{$name} = $contents; } elsif ($name =~ m/$type_param/) { # print STDERR "parameter def '$1' = '$contents'\n"; $name = $1; $parameters{$name} = $contents; } else { # print STDERR "other section '$name' = '$contents'\n"; $sections{$name} = $contents; push @sectionlist, $name; } } ## # output function # # parameters, a hash. # function => "function name" # parameterlist => @list of parameters # parameters => %parameter descriptions # sectionlist => @list of sections # sections => %descriont descriptions # sub output_highlight { my $contents = join "\n", @_; my $line; eval $dohighlight; foreach $line (split "\n", $contents) { if ($line eq ""){ print $lineprefix, $blankline; } else { $line =~ s/\\\\\\/\&/g; print $lineprefix, $line; } print "\n"; } } # output in html sub output_html { my %args = %{$_[0]}; my ($parameter, $section); my $count; print "<h2>Function</h2>\n"; print "<i>".$args{'functiontype'}."</i>\n"; print "<b>".$args{'function'}."</b>\n"; print "("; $count = 0; foreach $parameter (@{$args{'parameterlist'}}) { print "<i>".$args{'parametertypes'}{$parameter}."</i> <b>".$parameter."</b>\n"; if ($count != $#{$args{'parameterlist'}}) { $count++; print ", "; } } print ")\n"; print "<h3>Arguments</h3>\n"; print "<dl>\n"; foreach $parameter (@{$args{'parameterlist'}}) { print "<dt><i>".$args{'parametertypes'}{$parameter}."</i> <b>".$parameter."</b>\n"; print "<dd>"; output_highlight($args{'parameters'}{$parameter}); } print "</dl>\n"; foreach $section (@{$args{'sectionlist'}}) { print "<h1>$section</h1>\n"; print "<ul>\n"; output_highlight($args{'sections'}{$section}); print "</ul>\n"; } print "<hr>\n"; } # output in html sub output_intro_html { my %args = %{$_[0]}; my ($parameter, $section); my $count; foreach $section (@{$args{'sectionlist'}}) { print "<h1>$section</h1>\n"; print "<ul>\n"; output_highlight($args{'sections'}{$section}); print "</ul>\n"; } print "<hr>\n"; } # output in sgml DocBook sub output_sgml { my %args = %{$_[0]}; my ($parameter, $section); my $count; my $id; $id = $args{'module'}."-".$args{'function'}; $id =~ s/[^A-Za-z0-9]/-/g; print "<refentry>\n"; print "<refmeta>\n"; print "<refentrytitle><phrase id=\"$id\">".$args{'function'}."</phrase></refentrytitle>\n"; print "</refmeta>\n"; print "<refnamediv>\n"; print " <refname>".$args{'function'}."</refname>\n"; print " <refpurpose>\n"; print " ".$args{'purpose'}."\n"; print " </refpurpose>\n"; print "</refnamediv>\n"; print "<refsynopsisdiv>\n"; print " <title>Synopsis\n"; print " \n"; print " ".$args{'functiontype'}." "; print "".$args{'function'}." "; print "\n"; # print "\n"; # print " Synopsis\n"; # print " \n"; # print " ".$args{'functiontype'}." "; # print "".$args{'function'}." "; # print "\n"; $count = 0; if ($#{$args{'parameterlist'}} >= 0) { foreach $parameter (@{$args{'parameterlist'}}) { print " ".$args{'parametertypes'}{$parameter}; print " $parameter\n"; } } else { print " \n"; } print " \n"; print "\n"; # print "\n"; # print parameters print "\n Arguments\n"; # print "\nArguments\n"; if ($#{$args{'parameterlist'}} >= 0) { print " \n"; foreach $parameter (@{$args{'parameterlist'}}) { print " \n $parameter\n"; print " \n \n"; $lineprefix=" "; output_highlight($args{'parameters'}{$parameter}); print " \n \n \n"; } print " \n"; } else { print " \n None\n \n"; } print "\n"; # print out each section $lineprefix=" "; foreach $section (@{$args{'sectionlist'}}) { print "\n $section\n \n"; # print "\n$section\n"; if ($section =~ m/EXAMPLE/i) { print "\n"; } output_highlight($args{'sections'}{$section}); # print ""; if ($section =~ m/EXAMPLE/i) { print "\n"; } print " \n\n"; } print "\n\n"; } # output in sgml DocBook sub output_intro_sgml { my %args = %{$_[0]}; my ($parameter, $section); my $count; my $id; $id = $args{'module'}; $id =~ s/[^A-Za-z0-9]/-/g; # print out each section $lineprefix=" "; foreach $section (@{$args{'sectionlist'}}) { print "\n $section\n \n"; # print "\n$section\n"; if ($section =~ m/EXAMPLE/i) { print "\n"; } output_highlight($args{'sections'}{$section}); # print ""; if ($section =~ m/EXAMPLE/i) { print "\n"; } print " \n\n"; } print "\n\n"; } # output in sgml DocBook sub output_gnome { my %args = %{$_[0]}; my ($parameter, $section); my $count; my $id; $id = $args{'module'}."-".$args{'function'}; $id =~ s/[^A-Za-z0-9]/-/g; print "\n"; print " ".$args{'function'}."\n"; # print "\n"; # print " Synopsis\n"; print " \n"; print " ".$args{'functiontype'}." "; print "".$args{'function'}." "; print "\n"; $count = 0; if ($#{$args{'parameterlist'}} >= 0) { foreach $parameter (@{$args{'parameterlist'}}) { print " ".$args{'parametertypes'}{$parameter}; print " $parameter\n"; } } else { print " \n"; } print " \n"; # print "\n"; # print "\n"; # print parameters # print "\n Arguments\n"; # if ($#{$args{'parameterlist'}} >= 0) { # print " \n"; # foreach $parameter (@{$args{'parameterlist'}}) { # print " \n $parameter\n"; # print " \n \n"; # $lineprefix=" "; # output_highlight($args{'parameters'}{$parameter}); # print " \n \n \n"; # } # print " \n"; # } else { # print " \n None\n \n"; # } # print "\n"; # print "\n Arguments\n"; if ($#{$args{'parameterlist'}} >= 0) { print " \n"; print "\n"; print "\n"; print "\n"; print "\n"; foreach $parameter (@{$args{'parameterlist'}}) { print " $parameter\n"; print " \n"; $lineprefix=" "; output_highlight($args{'parameters'}{$parameter}); print " \n"; } print " \n"; } else { print " \n None\n \n"; } # print "\n"; # print out each section $lineprefix=" "; foreach $section (@{$args{'sectionlist'}}) { print "\n $section\n"; # print "\n$section\n"; if ($section =~ m/EXAMPLE/i) { print "\n"; } else { } print "\n"; output_highlight($args{'sections'}{$section}); # print ""; print "\n"; if ($section =~ m/EXAMPLE/i) { print "\n"; } else { } print " \n"; } print "\n\n"; } # output in birddoc sub output_bird { my %args = %{$_[0]}; my ($parameter, $section); my $count; print "

".$args{'functiontype'}."\n"; print "".$args{'function'}."\n"; print "("; $count = 0; my $ntyped = 0; foreach $parameter (@{$args{'parameterlist'}}) { if ($args{'parametertypes'}{$parameter} ne "") { print "".$args{'parametertypes'}{$parameter}." "; $ntyped++; } print "".$parameter.""; if ($count != $#{$args{'parameterlist'}}) { $count++; print ", "; } } print ")"; if ($args{'purpose'} ne "") { print " -- "; output_highlight($args{'purpose'}); } print "\n"; if ($ntyped) { print "Arguments\n"; print "

\n"; foreach $parameter (@{$args{'parameterlist'}}) { print "".$args{'parametertypes'}{$parameter}." ".$parameter."\n"; output_highlight($args{'parameters'}{$parameter}); } print "\n"; } foreach $section (@{$args{'sectionlist'}}) { print "$section\n"; print "

\n"; output_highlight($args{'sections'}{$section}); } print "\n"; } # output in birddoc sub output_intro_bird { my %args = %{$_[0]}; my ($parameter, $section); my $count; my $id; $id = $args{'module'}; $id =~ s/[^A-Za-z0-9]/-/g; # print out each section $lineprefix=" "; foreach $section (@{$args{'sectionlist'}}) { print "$section\n

\n"; output_highlight($args{'sections'}{$section}); } print "\n\n"; } ## # output in man sub output_man { my %args = %{$_[0]}; my ($parameter, $section); my $count; print ".TH \"$args{'module'}\" \"$args{'function'}\" \"25 May 1998\" \"API Manual\" LINUX\n"; print ".SH Function\n"; print ".I \"".$args{'functiontype'}."\"\n"; print ".B \"".$args{'function'}."\"\n"; print "(\n"; $count = 0; foreach $parameter (@{$args{'parameterlist'}}) { print ".I \"".$args{'parametertypes'}{$parameter}."\"\n.B \"".$parameter."\"\n"; if ($count != $#{$args{'parameterlist'}}) { $count++; print ",\n"; } } print ")\n"; print ".SH Arguments\n"; foreach $parameter (@{$args{'parameterlist'}}) { print ".IP \"".$args{'parametertypes'}{$parameter}." ".$parameter."\" 12\n"; output_highlight($args{'parameters'}{$parameter}); } foreach $section (@{$args{'sectionlist'}}) { print ".SH \"$section\"\n"; output_highlight($args{'sections'}{$section}); } } sub output_intro_man { my %args = %{$_[0]}; my ($parameter, $section); my $count; print ".TH \"$args{'module'}\" \"$args{'module'}\" \"25 May 1998\" \"API Manual\" LINUX\n"; foreach $section (@{$args{'sectionlist'}}) { print ".SH \"$section\"\n"; output_highlight($args{'sections'}{$section}); } } ## # output in text sub output_text { my %args = %{$_[0]}; my ($parameter, $section); print "Function = ".$args{'function'}."\n"; print " return type: ".$args{'functiontype'}."\n\n"; foreach $parameter (@{$args{'parameterlist'}}) { print " ".$args{'parametertypes'}{$parameter}." ".$parameter."\n"; print " -> ".$args{'parameters'}{$parameter}."\n"; } foreach $section (@{$args{'sectionlist'}}) { print " $section:\n"; print " -> "; output_highlight($args{'sections'}{$section}); } } sub output_intro_text { my %args = %{$_[0]}; my ($parameter, $section); foreach $section (@{$args{'sectionlist'}}) { print " $section:\n"; print " -> "; output_highlight($args{'sections'}{$section}); } } ## # generic output function - calls the right one based # on current output mode. sub output_function { # output_html(@_); eval "output_".$output_mode."(\@_);"; } ## # generic output function - calls the right one based # on current output mode. sub output_intro { # output_html(@_); eval "output_intro_".$output_mode."(\@_);"; } ## # takes a function prototype and spits out all the details # stored in the global arrays/hsahes. sub dump_function { my $prototype = shift @_; $prototype =~ s/^static+ //; $prototype =~ s/^extern+ //; $prototype =~ s/^inline+ //; $prototype =~ s/^__inline__+ //; if ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\)]*)\)/ || $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\)]*)\)/ || $prototype =~ m/^(\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\)]*)\)/ || $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\)]*)\)/ || $prototype =~ m/^(\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\)]*)\)/) { $return_type = $1; $function_name = $2; $args = $3; # print STDERR "ARGS = '$args'\n"; foreach $arg (split ',', $args) { # strip leading/trailing spaces $arg =~ s/^\s*//; $arg =~ s/\s*$//; # print STDERR "SCAN ARG: '$arg'\n"; @args = split('\s', $arg); # print STDERR " -> @args\n"; $param = pop @args; # print STDERR " -> @args\n"; if ($param =~ m/^(\*+)(.*)/) { $param = $2; push @args, $1; } $type = join " ", @args; if ($type eq "" && $param eq "...") { $type="..."; $param="..."; $parameters{"..."} = "variable arguments"; } if ($type eq "") { $type=""; $param="void"; $parameters{void} = "no arguments"; } if ($parameters{$param} eq "") { $parameters{$param} = "-- undescribed --"; print STDERR "Warning($lineno): Function parameter '$param' not described in '$function_name'\n"; } push @parameterlist, $param; $parametertypes{$param} = $type; # print STDERR "param = '$param', type = '$type'\n"; } } else { print STDERR "Error($lineno): cannot understand prototype: '$prototype'\n"; return; } if ($function_only==0 || ( $function_only == 1 && defined($function_table{$function_name})) || ( $function_only == 2 && !defined($function_table{$function_name}))) { output_function({'function' => $function_name, 'module' => $modulename, 'functiontype' => $return_type, 'parameterlist' => \@parameterlist, 'parameters' => \%parameters, 'parametertypes' => \%parametertypes, 'sectionlist' => \@sectionlist, 'sections' => \%sections, 'purpose' => $function_purpose }); } } ###################################################################### # main # states # 0 - normal code # 1 - looking for function name # 2 - scanning field start. # 3 - scanning prototype. $state = 0; $section = ""; $doc_special = "\@\%\$\&"; $doc_start = "^/\\*\\*\$"; $doc_end = "\\*/"; $doc_com = "\\s*\\*\\s*"; $doc_func = $doc_com."(\\w+):?"; $doc_sect = $doc_com."([".$doc_special."]?[\\w ]+):(.*)"; $doc_content = $doc_com."(.*)"; $doc_block = $doc_com."DOC:\\s*(.*)?"; %constants = (); %parameters = (); @parameterlist = (); %sections = (); @sectionlist = (); $contents = ""; $section_default = "Description"; # default section $section_intro = "Introduction"; $section = $section_default; $lineno = 0; foreach $file (@ARGV) { if (!open(IN,"<$file")) { print STDERR "Error: Cannot open file $file\n"; next; } while () { $lineno++; if ($state == 0) { if (/$doc_start/o) { $state = 1; # next line is always the function name } } elsif ($state == 1) { # this line is the function name (always) if (/$doc_block/o) { $state = 4; $contents = ""; if ( $1 eq "" ) { $section = $section_intro; } else { $section = $1; } } elsif (/$doc_func/o) { $function = $1; $state = 2; if (/-(.*)/) { $function_purpose = $1; } else { $function_purpose = ""; } if ($verbose) { print STDERR "Info($lineno): Scanning doc for $function\n"; } } else { print STDERR "WARN($lineno): Cannot understand $_ on line $lineno", " - I thought it was a doc line\n"; $state = 0; } } elsif ($state == 2) { # look for head: lines, and include content if (/$doc_sect/o) { $newsection = $1; $newcontents = $2; if ($contents ne "") { # $contents =~ s/\&/\\\\\\amp;/g; $contents =~ s/\/\\\\\\gt;/g; dump_section($section, $contents); $section = $section_default; } $contents = $newcontents; if ($contents ne "") { $contents .= "\n"; } $section = $newsection; } elsif (/$doc_end/) { if ($contents ne "") { # $contents =~ s/\&/\\\\\\amp;/g; $contents =~ s/\/\\\\\\gt;/g; dump_section($section, $contents); $section = $section_default; $contents = ""; } # print STDERR "end of doc comment, looking for prototype\n"; $prototype = ""; $state = 3; } elsif (/$doc_content/) { # miguel-style comment kludge, look for blank lines after # @parameter line to signify start of description if ($1 eq "" && $section =~ m/^@/) { # $contents =~ s/\&/\\\\\\amp;/g; $contents =~ s/\/\\\\\\gt;/g; dump_section($section, $contents); $section = $section_default; $contents = ""; } else { $contents .= $1."\n"; } } else { # i dont know - bad line? ignore. print STDERR "WARNING($lineno): bad line: $_"; } } elsif ($state == 3) { # scanning for function { (end of prototype) if (m#\s*/\*\s+MACDOC\s*#io) { # do nothing } elsif (/([^\{]*)/) { $prototype .= $1; } if (/\{/) { $prototype =~ s@/\*.*?\*/@@gos; # strip comments. $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's. $prototype =~ s@^ +@@gos; # strip leading spaces dump_function($prototype); $function = ""; %constants = (); %parameters = (); %parametertypes = (); @parameterlist = (); %sections = (); @sectionlist = (); $prototype = ""; $state = 0; } } elsif ($state == 4) { # Documentation block if (/$doc_block/) { # $contents =~ s/\&/\\\\\\amp;/g; $contents =~ s/\/\\\\\\gt;/g; dump_section($section, $contents); output_intro({'sectionlist' => \@sectionlist, 'sections' => \%sections }); $contents = ""; $function = ""; %constants = (); %parameters = (); %parametertypes = (); @parameterlist = (); %sections = (); @sectionlist = (); $prototype = ""; if ( $1 eq "" ) { $section = $section_intro; } else { $section = $1; } } elsif (/$doc_end/) { # $contents =~ s/\&/\\\\\\amp;/g; $contents =~ s/\/\\\\\\gt;/g; dump_section($section, $contents); output_intro({'sectionlist' => \@sectionlist, 'sections' => \%sections }); $contents = ""; $function = ""; %constants = (); %parameters = (); %parametertypes = (); @parameterlist = (); %sections = (); @sectionlist = (); $prototype = ""; $state = 0; } elsif (/$doc_content/) { if ( $1 eq "" ) { $contents .= "\n"; } else { $contents .= $1 . "\n"; } } } } } bird-1.4.0/doc/prog-8.html0000644000103200001440000005773212244656165014220 0ustar feelausers BIRD Programmer's Documentation: Resources Next Previous Contents


8. Resources

8.1 Introduction

Most large software projects implemented in classical procedural programming languages usually end up with lots of code taking care of resource allocation and deallocation. Bugs in such code are often very difficult to find, because they cause only `resource leakage', that is keeping a lot of memory and other resources which nobody references to.

We've tried to solve this problem by employing a resource tracking system which keeps track of all the resources allocated by all the modules of BIRD, deallocates everything automatically when a module shuts down and it is able to print out the list of resources and the corresponding modules they are allocated by.

Each allocated resource (from now we'll speak about allocated resources only) is represented by a structure starting with a standard header (struct resource) consisting of a list node (resources are often linked to various lists) and a pointer to resclass -- a resource class structure pointing to functions implementing generic resource operations (such as freeing of the resource) for the particular resource type.

There exist the following types of resources:

  • Resource pools (pool)
  • Memory blocks
  • Linear memory pools (linpool)
  • Slabs (slab)
  • Events (event)
  • Timers (timer)
  • Sockets (socket)

8.2 Resource pools

Resource pools (pool) are just containers holding a list of other resources. Freeing a pool causes all the listed resources to be freed as well. Each existing resource is linked to some pool except for a root pool which isn't linked anywhere, so all the resources form a tree structure with internal nodes corresponding to pools and leaves being the other resources.

Example: Almost all modules of BIRD have their private pool which is freed upon shutdown of the module.


Function

pool * rp_new (pool * p, char * name) -- create a resource pool

Arguments

pool * p

parent pool

char * name

pool name (to be included in debugging dumps)

Description

rp_new() creates a new resource pool inside the specified parent pool.


Function

void rmove (void * res, pool * p) -- move a resource

Arguments

void * res

resource

pool * p

pool to move the resource to

Description

rmove() moves a resource from one pool to another.


Function

void rfree (void * res) -- free a resource

Arguments

void * res

resource

Description

rfree() frees the given resource and all information associated with it. In case it's a resource pool, it also frees all the objects living inside the pool.

It works by calling a class-specific freeing function.


Function

void rdump (void * res) -- dump a resource

Arguments

void * res

resource

Description

This function prints out all available information about the given resource to the debugging output.

It works by calling a class-specific dump function.


Function

void * ralloc (pool * p, struct resclass * c) -- create a resource

Arguments

pool * p

pool to create the resource in

struct resclass * c

class of the new resource

Description

This function is called by the resource classes to create a new resource of the specified class and link it to the given pool. Allocated memory is zeroed. Size of the resource structure is taken from the size field of the resclass.


Function

void rlookup (unsigned long a) -- look up a memory location

Arguments

unsigned long a

memory address

Description

This function examines all existing resources to see whether the address a is inside any resource. It's used for debugging purposes only.

It works by calling a class-specific lookup function for each resource.


Function

void resource_init (void) -- initialize the resource manager

Description

This function is called during BIRD startup. It initializes all data structures of the resource manager and creates the root pool.

8.3 Memory blocks

Memory blocks are pieces of contiguous allocated memory. They are a bit non-standard since they are represented not by a pointer to resource, but by a void pointer to the start of data of the memory block. All memory block functions know how to locate the header given the data pointer.

Example: All "unique" data structures such as hash tables are allocated as memory blocks.


Function

void * mb_alloc (pool * p, unsigned size) -- allocate a memory block

Arguments

pool * p

pool

unsigned size

size of the block

Description

mb_alloc() allocates memory of a given size and creates a memory block resource representing this memory chunk in the pool p.

Please note that mb_alloc() returns a pointer to the memory chunk, not to the resource, hence you have to free it using mb_free(), not rfree().


Function

void * mb_allocz (pool * p, unsigned size) -- allocate and clear a memory block

Arguments

pool * p

pool

unsigned size

size of the block

Description

mb_allocz() allocates memory of a given size, initializes it to zeroes and creates a memory block resource representing this memory chunk in the pool p.

Please note that mb_allocz() returns a pointer to the memory chunk, not to the resource, hence you have to free it using mb_free(), not rfree().


Function

void * mb_realloc (void * m, unsigned size) -- reallocate a memory block

Arguments

void * m

memory block

unsigned size

new size of the block

Description

mb_realloc() changes the size of the memory block m to a given size. The contents will be unchanged to the minimum of the old and new sizes; newly allocated memory will be uninitialized. Contrary to realloc() behavior, m must be non-NULL, because the resource pool is inherited from it.

Like mb_alloc(), mb_realloc() also returns a pointer to the memory chunk, not to the resource, hence you have to free it using mb_free(), not rfree().


Function

void mb_free (void * m) -- free a memory block

Arguments

void * m

memory block

Description

mb_free() frees all memory associated with the block m.

8.4 Linear memory pools

Linear memory pools are collections of memory blocks which support very fast allocation of new blocks, but are able to free only the whole collection at once.

Example: Each configuration is described by a complex system of structures, linked lists and function trees which are all allocated from a single linear pool, thus they can be freed at once when the configuration is no longer used.


Function

linpool * lp_new (pool * p, unsigned blk) -- create a new linear memory pool

Arguments

pool * p

pool

unsigned blk

block size

Description

lp_new() creates a new linear memory pool resource inside the pool p. The linear pool consists of a list of memory chunks of size at least blk.


Function

void * lp_alloc (linpool * m, unsigned size) -- allocate memory from a linpool

Arguments

linpool * m

linear memory pool

unsigned size

amount of memory

Description

lp_alloc() allocates size bytes of memory from a linpool m and it returns a pointer to the allocated memory.

It works by trying to find free space in the last memory chunk associated with the linpool and creating a new chunk of the standard size (as specified during lp_new()) if the free space is too small to satisfy the allocation. If size is too large to fit in a standard size chunk, an "overflow" chunk is created for it instead.


Function

void * lp_allocu (linpool * m, unsigned size) -- allocate unaligned memory from a linpool

Arguments

linpool * m

linear memory pool

unsigned size

amount of memory

Description

lp_allocu() allocates size bytes of memory from a linpool m and it returns a pointer to the allocated memory. It doesn't attempt to align the memory block, giving a very efficient way how to allocate strings without any space overhead.


Function

void * lp_allocz (linpool * m, unsigned size) -- allocate cleared memory from a linpool

Arguments

linpool * m

linear memory pool

unsigned size

amount of memory

Description

This function is identical to lp_alloc() except that it clears the allocated memory block.


Function

void lp_flush (linpool * m) -- flush a linear memory pool

Arguments

linpool * m

linear memory pool

Description

This function frees the whole contents of the given linpool m, but leaves the pool itself.

8.5 Slabs

Slabs are collections of memory blocks of a fixed size. They support very fast allocation and freeing of such blocks, prevent memory fragmentation and optimize L2 cache usage. Slabs have been invented by Jeff Bonwick and published in USENIX proceedings as `The Slab Allocator: An Object-Caching Kernel Memory Allocator'. Our implementation follows this article except that we don't use constructors and destructors.

When the DEBUGGING switch is turned on, we automatically fill all newly allocated and freed blocks with a special pattern to make detection of use of uninitialized or already freed memory easier.

Example: Nodes of a FIB are allocated from a per-FIB Slab.


Function

slab * sl_new (pool * p, unsigned size) -- create a new Slab

Arguments

pool * p

resource pool

unsigned size

block size

Description

This function creates a new Slab resource from which objects of size size can be allocated.


Function

void * sl_alloc (slab * s) -- allocate an object from Slab

Arguments

slab * s

slab

Description

sl_alloc() allocates space for a single object from the Slab and returns a pointer to the object.


Function

void sl_free (slab * s, void * oo) -- return a free object back to a Slab

Arguments

slab * s

slab

void * oo

object returned by sl_alloc()

Description

This function frees memory associated with the object oo and returns it back to the Slab s.

8.6 Events

Events are there to keep track of deferred execution. Since BIRD is single-threaded, it requires long lasting tasks to be split to smaller parts, so that no module can monopolize the CPU. To split such a task, just create an event resource, point it to the function you want to have called and call ev_schedule() to ask the core to run the event when nothing more important requires attention.

You can also define your own event lists (the event_list structure), enqueue your events in them and explicitly ask to run them.


Function

event * ev_new (pool * p) -- create a new event

Arguments

pool * p

resource pool

Description

This function creates a new event resource. To use it, you need to fill the structure fields and call ev_schedule().


Function

void ev_run (event * e) -- run an event

Arguments

event * e

an event

Description

This function explicitly runs the event e (calls its hook function) and removes it from an event list if it's linked to any.

From the hook function, you can call ev_enqueue() or ev_schedule() to re-add the event.


Function

void ev_enqueue (event_list * l, event * e) -- enqueue an event

Arguments

event_list * l

an event list

event * e

an event

Description

ev_enqueue() stores the event e to the specified event list l which can be run by calling ev_run_list().


Function

void ev_schedule (event * e) -- schedule an event

Arguments

event * e

an event

Description

This function schedules an event by enqueueing it to a system-wide event list which is run by the platform dependent code whenever appropriate.


Function

int ev_run_list (event_list * l) -- run an event list

Arguments

event_list * l

an event list

Description

This function calls ev_run() for all events enqueued in the list l.

8.7 Timers

Timers are resources which represent a wish of a module to call a function at the specified time. The platform dependent code doesn't guarantee exact timing, only that a timer function won't be called before the requested time.

In BIRD, time is represented by values of the bird_clock_t type which are integral numbers interpreted as a relative number of seconds since some fixed time point in past. The current time can be read from variable now with reasonable accuracy and is monotonic. There is also a current 'absolute' time in variable now_real reported by OS.

Each timer is described by a timer structure containing a pointer to the handler function (hook), data private to this function (data), time the function should be called at (expires, 0 for inactive timers), for the other fields see timer.h.


Function

timer * tm_new (pool * p) -- create a timer

Arguments

pool * p

pool

Description

This function creates a new timer resource and returns a pointer to it. To use the timer, you need to fill in the structure fields and call tm_start() to start timing.


Function

void tm_start (timer * t, unsigned after) -- start a timer

Arguments

timer * t

timer

unsigned after

number of seconds the timer should be run after

Description

This function schedules the hook function of the timer to be called after after seconds. If the timer has been already started, it's expire time is replaced by the new value.

You can have set the randomize field of t, the timeout will be increased by a random number of seconds chosen uniformly from range 0 .. randomize.

You can call tm_start() from the handler function of the timer to request another run of the timer. Also, you can set the recurrent field to have the timer re-added automatically with the same timeout.


Function

void tm_stop (timer * t) -- stop a timer

Arguments

timer * t

timer

Description

This function stops a timer. If the timer is already stopped, nothing happens.


Function

bird_clock_t tm_parse_datetime (char * x) -- parse a date and time

Arguments

char * x

datetime string

Description

tm_parse_datetime() takes a textual representation of a date and time (dd-mm-yyyy hh:mm:ss) and converts it to the corresponding value of type bird_clock_t.


Function

bird_clock_t tm_parse_date (char * x) -- parse a date

Arguments

char * x

date string

Description

tm_parse_date() takes a textual representation of a date (dd-mm-yyyy) and converts it to the corresponding value of type bird_clock_t.


Function

void tm_format_datetime (char * x, struct timeformat * fmt_spec, bird_clock_t t) -- convert date and time to textual representation

Arguments

char * x

destination buffer of size TM_DATETIME_BUFFER_SIZE

struct timeformat * fmt_spec

-- undescribed --

bird_clock_t t

time

Description

This function formats the given relative time value t to a textual date/time representation (dd-mm-yyyy hh:mm:ss) in real time.

8.8 Sockets

Socket resources represent network connections. Their data structure (socket) contains a lot of fields defining the exact type of the socket, the local and remote addresses and ports, pointers to socket buffers and finally pointers to hook functions to be called when new data have arrived to the receive buffer (rx_hook), when the contents of the transmit buffer have been transmitted (tx_hook) and when an error or connection close occurs (err_hook).

Freeing of sockets from inside socket hooks is perfectly safe.


Function

sock * sock_new (pool * p) -- create a socket

Arguments

pool * p

pool

Description

This function creates a new socket resource. If you want to use it, you need to fill in all the required fields of the structure and call sk_open() to do the actual opening of the socket.

The real function name is sock_new(), sk_new() is a macro wrapper to avoid collision with OpenSSL.


Function

int sk_set_ttl (sock * s, int ttl) -- set transmit TTL for given socket.

Arguments

sock * s

socket

int ttl

TTL value

Description

Set TTL for already opened connections when TTL was not set before. Useful for accepted connections when different ones should have different TTL.

Result

0 for success, -1 for an error.


Function

int sk_set_min_ttl (sock * s, int ttl) -- set minimal accepted TTL for given socket.

Arguments

sock * s

socket

int ttl

TTL value

Description

Can be used in TTL security implementation

Result

0 for success, -1 for an error.


Function

int sk_set_md5_auth (sock * s, ip_addr a, struct iface * ifa, char * passwd) -- add / remove MD5 security association for given socket.

Arguments

sock * s

socket

ip_addr a

IP address of the other side

struct iface * ifa

Interface for link-local IP address

char * passwd

password used for MD5 authentication

Description

In TCP MD5 handling code in kernel, there is a set of pairs (address, password) used to choose password according to address of the other side. This function is useful for listening socket, for active sockets it is enough to set s->password field.

When called with passwd != NULL, the new pair is added, When called with passwd == NULL, the existing pair is removed.

Result

0 for success, -1 for an error.


Function

int sk_open (sock * s) -- open a socket

Arguments

sock * s

socket

Description

This function takes a socket resource created by sk_new() and initialized by the user and binds a corresponding network connection to it.

Result

0 for success, -1 for an error.


Function

int sk_send (sock * s, unsigned len) -- send data to a socket

Arguments

sock * s

socket

unsigned len

number of bytes to send

Description

This function sends len bytes of data prepared in the transmit buffer of the socket s to the network connection. If the packet can be sent immediately, it does so and returns 1, else it queues the packet for later processing, returns 0 and calls the tx_hook of the socket when the tranmission takes place.


Function

int sk_send_to (sock * s, unsigned len, ip_addr addr, unsigned port) -- send data to a specific destination

Arguments

sock * s

socket

unsigned len

number of bytes to send

ip_addr addr

IP address to send the packet to

unsigned port

port to send the packet to

Description

This is a sk_send() replacement for connection-less packet sockets which allows destination of the packet to be chosen dynamically.


Next Previous Contents bird-1.4.0/doc/prog-head.sgml0000644000103200001440000000105311606273733014726 0ustar feelausers BIRD Programmer's Documentation <author> Ondrej Filip <it/<feela@network.cz>/, Pavel Machek <it/<pavel@ucw.cz>/, Martin Mares <it/<mj@ucw.cz>/, Ondrej Zajicek <it/<santiago@crfreenet.org>/ </author> <abstract> This document contains programmer's documentation for the BIRD Internet Routing Daemon project. </abstract> <!-- Table of contents --> <toc> <!-- Begin the document --> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������bird-1.4.0/doc/bird-7.html��������������������������������������������������������������������������0000644�0001032�0000144�00000004511�12244656170�014147� 0����������������������������������������������������������������������������������������������������ustar �feela���������������������������users������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 1.0.9"> <TITLE>BIRD User's Guide: Conclusions Next Previous Contents

7. Conclusions

7.1 Future work

Although BIRD supports all the commonly used routing protocols, there are still some features which would surely deserve to be implemented in future versions of BIRD:

  • Opaque LSA's
  • Route aggregation and flap dampening
  • Multipath routes
  • Multicast routing protocols
  • Ports to other systems

7.2 Getting more help

If you use BIRD, you're welcome to join the bird-users mailing list ( bird-users@bird.network.cz) where you can share your experiences with the other users and consult your problems with the authors. To subscribe to the list, just send a subscribe bird-users command in a body of a mail to ( majordomo@bird.network.cz). The home page of BIRD can be found at http://bird.network.cz/.

BIRD is a relatively young system and it probably contains some bugs. You can report any problems to the bird-users list and the authors will be glad to solve them, but before you do so, please make sure you have read the available documentation and that you are running the latest version (available at bird.network.cz:/pub/bird). (Of course, a patch which fixes the bug is always welcome as an attachment.)

If you want to understand what is going inside, Internet standards are a good and interesting reading. You can get them from ftp.rfc-editor.org (or a nicely sorted version from atrey.karlin.mff.cuni.cz:/pub/rfc).

Good luck!


Next Previous Contents bird-1.4.0/doc/birddoc.sty0000777000103200001440000000000011606273756017315 2tex/birddoc.styustar feelausersbird-1.4.0/doc/bird.conf.example0000644000103200001440000001411712074014514015410 0ustar feelausers/* * This is an example configuration file. */ # Yes, even shell-like comments work... # Configure logging #log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug }; #log stderr all; #log "tmp" all; # Override router ID #router id 198.51.100.1; # You can define your own symbols... #define xyzzy = (120+10); #define '1a-a1' = (30+40); # Define a route filter... #filter test_filter { # if net ~ 10.0.0.0/16 then accept; # else reject; #} #filter sink { reject; } #filter okay { accept; } #include "filters.conf"; # Define another routing table #table testable; # Turn on global debugging of all protocols #debug protocols all; # The direct protocol automatically generates device routes to # all network interfaces. Can exist in as many instances as you wish # if you want to populate multiple routing tables with device routes. #protocol direct { # interface "-eth*", "*"; # Restrict network interfaces it works with #} # This pseudo-protocol performs synchronization between BIRD's routing # tables and the kernel. If your kernel supports multiple routing tables # (as Linux 2.2.x does), you can run multiple instances of the kernel # protocol and synchronize different kernel tables with different BIRD tables. protocol kernel { # learn; # Learn all alien routes from the kernel persist; # Don't remove routes on bird shutdown scan time 20; # Scan kernel routing table every 20 seconds # import none; # Default is import all export all; # Default is export none # kernel table 5; # Kernel table to synchronize with (default: main) } # This pseudo-protocol watches all interface up/down events. protocol device { scan time 10; # Scan interfaces every 10 seconds } # Static routes (again, there can be multiple instances, so that you # can disable/enable various groups of static routes on the fly). protocol static { # disabled; # Disable by default # table testable; # Connect to a non-default table # preference 1000; # Default preference of routes # debug { states, routes, filters, interfaces, events, packets }; # debug all; # route 0.0.0.0/0 via 198.51.100.13; # route 198.51.100.0/25 unreachable; # route 10.0.0.0/8 unreachable; # route 10.1.1.0:255.255.255.0 via 198.51.100.3; # route 10.1.2.0:255.255.255.0 via 198.51.100.3; # route 10.1.3.0:255.255.255.0 via 198.51.100.4; # route 10.2.0.0/24 via "arc0"; } # Pipe protocol connects two routing tables... Beware of loops. #protocol pipe { # peer table testable; # Define what routes do we export to this protocol / import from it. # import all; # default is all # export all; # default is none # import none; # If you wish to disable imports # import filter test_filter; # Use named filter # import where source = RTS_DEVICE; # Use explicit filter #} # RIP aka Rest In Pieces... #protocol rip MyRIP { # You can also use an explicit name # preference xyzzy; # debug all; # port 1520; # period 7; # infinity 16; # garbage time 60; # interface "*" { mode broadcast; }; # honor neighbor; # To whom do we agree to send the routing table # honor always; # honor never; # passwords { # password "nazdar"; # }; # authentication none; # import filter { print "importing"; accept; }; # export filter { print "exporting"; accept; }; #} #protocol ospf MyOSPF { # tick 2; # rfc1583compat yes; # area 0.0.0.0 { # stub no; # interface "eth*" { # hello 9; # retransmit 6; # cost 10; # transmit delay 5; # dead count 5; # wait 50; # type broadcast; # authentication simple; # password "pass"; # }; # interface "arc0" { # rx buffer large; # type nonbroadcast; # poll 14; # dead 75; # neighbors { # 10.1.1.2 eligible; # 10.1.1.4; # }; # strict nonbroadcast yes; # }; # interface "xxx0" { # passwords { # password "abc" { # id 1; # generate to "22-04-2003 11:00:06"; # accept to "17-01-2004 12:01:05"; # }; # password "def" { # id 2; # generate from "22-04-2003 11:00:07"; # accept from "17-01-2003 12:01:05"; # }; # }; # authentication cryptographic; # }; # }; # area 20 { # stub 1; # interface "ppp1" { # hello 8; # authentication none; # }; # interface "fr*"; # virtual link 192.168.0.1 { # password "sdsdffsdfg"; # authentication cryptographic; # }; # }; #} #protocol bgp { # disabled; # description "My BGP uplink"; # local as 65000; # neighbor 198.51.100.130 as 64496; # multihop; # hold time 240; # startup hold time 240; # connect retry time 120; # keepalive time 80; # defaults to hold time / 3 # start delay time 5; # How long do we wait before initial connect # error wait time 60, 300;# Minimum and maximum time we wait after an error (when consecutive # # errors occur, we increase the delay exponentially ... # error forget time 300; # ... until this timeout expires) # disable after error; # Disable the protocol automatically when an error occurs # next hop self; # Disable next hop processing and always advertise our local address as nexthop # path metric 1; # Prefer routes with shorter paths (like Cisco does) # default bgp_med 0; # MED value we use for comparison when none is defined # default bgp_local_pref 0; # The same for local preference # source address 198.51.100.14; # What local address we use for the TCP connection # password "secret"; # Password used for MD5 authentication # rr client; # I am a route reflector and the neighor is my client # rr cluster id 1.0.0.1; # Use this value for cluster id instead of my router id # export where source=RTS_STATIC; # export filter { # if source = RTS_STATIC then { # bgp_community = -empty-; bgp_community = add(bgp_community,(65000,5678)); # bgp_origin = 0; # bgp_community = -empty-; bgp_community.add((65000,5678)); # if (65000,64501) ~ bgp_community then # bgp_community.add((0, 1)); # if bgp_path ~ [= 65000 =] then # bgp_path.prepend(65000); # accept; # } # reject; # }; #} # # Template usage example #template bgp rr_client { # disabled; # local as 65000; # multihop; # rr client; # rr cluster id 1.0.0.1; #} # #protocol bgp rr_abcd from rr_client { # neighbor 10.1.4.7 as 65000; #} bird-1.4.0/doc/prog-spell.sed0000644000103200001440000000042211606273733014754 0ustar feelauserss%[^<]*%%g s%[^<]*%%g s%[^<]*%%g s%[^<]*%%g s%/ ]\+/%%g s%/ ]*>%%g s%&[^;]*;%%g bird-1.4.0/doc/prog-foot.sgml0000644000103200001440000000001111606273733014765 0ustar feelausers
bird-1.4.0/doc/prog.html0000644000103200001440000001055312244656165014041 0ustar feelausers BIRD Programmer's Documentation Next Previous Contents

BIRD Programmer's Documentation

Ondrej Filip <feela@network.cz>, Pavel Machek <pavel@ucw.cz>, Martin Mares <mj@ucw.cz>, Ondrej Zajicek <santiago@crfreenet.org>


This document contains programmer's documentation for the BIRD Internet Routing Daemon project.

1. BIRD Design

2. Core

3. Configuration

4. Filters

5. Protocols

6. System dependent parts

7. Library functions

8. Resources


Next Previous Contents bird-1.4.0/doc/sbase/0000755000103200001440000000000011606273733013272 5ustar feelausersbird-1.4.0/doc/sbase/dist/0000755000103200001440000000000011606273733014235 5ustar feelausersbird-1.4.0/doc/sbase/dist/fmt_latex2e.pl0000644000103200001440000003616211606273733017014 0ustar feelausers# # fmt_latex2e.pl # # $Id$ # # LaTeX-specific driver stuff # # © Copyright 1996, Cees de Groot # # Support for PDF files: added by Juan Jose Amor, January 2000 # © Copyright 2000, Juan Jose Amor # package LinuxDocTools::fmt_latex2e; use strict; use LinuxDocTools::CharEnts; use LinuxDocTools::Vars; use LinuxDocTools::Lang; use File::Copy; my $latex2e = {}; $latex2e->{NAME} = "latex2e"; $latex2e->{HELP} = <{OPTIONS} = [ { option => "output", type => "l", 'values' => [ "dvi", "tex", "ps", "pdf" ], short => "o" }, { option => "bibtex", type => "f", short => "b" }, { option => "makeindex", type => "f", short => "m" }, { option => "pagenumber", type => "i", short => "n" }, { option => "quick", type => "f", short => "q" }, { option => "dvips", type => "l", 'values' => [ "dvips", "dvi2ps", "jdvi2kps" ], short => "s" }, { option => "latex", type => "l", 'values' => [ "latex", "hlatexp", "platex", "jlatex" ], short => "x" } ]; $latex2e->{output} = "tex"; $latex2e->{pagenumber} = 1; $latex2e->{quick} = 0; $latex2e->{bibtex} = 0; $latex2e->{makeindex} = 0; $latex2e->{latex} = "unknown"; $latex2e->{dvips} = "unknown"; $Formats{$latex2e->{NAME}} = $latex2e; $latex2e->{preNSGMLS} = sub { $global->{NsgmlsOpts} .= " -ifmttex "; # for Japanese jlatex users if ($global->{language} eq "ja" && $latex2e->{latex} eq "unknown") { $latex2e->{latex} = "jlatex"; $latex2e->{dvips} = "dvi2ps"; # for Japanese platex users # $latex2e->{latex} = "platex"; # $latex2e->{dvips} = "dvips"; } # for Korean users if ($global->{language} eq "ko" && $latex2e->{latex} eq "unknown") { $latex2e->{latex} = "hlatexp"; } # default process command $latex2e->{latex} = "latex" if ($latex2e->{latex} eq "unknown"); $latex2e->{dvips} = "dvips" if ($latex2e->{dvips} eq "unknown"); $global->{NsgmlsPrePipe} = "cat $global->{file} "; }; # extra `\\' here for standard `nsgmls' output my %latex2e_escapes; $latex2e_escapes{'#'} = '\\\\#'; $latex2e_escapes{'$'} = '\\\\$'; $latex2e_escapes{'%'} = '\\\\%'; $latex2e_escapes{'&'} = '\\\\&'; $latex2e_escapes{'~'} = '\\\\~{}'; $latex2e_escapes{'_'} = '\\\\_'; $latex2e_escapes{'^'} = '\\\\^{}'; $latex2e_escapes{'\\'} = '\\verb+\\+'; $latex2e_escapes{'{'} = '\\\\{'; $latex2e_escapes{'}'} = '\\\\}'; $latex2e_escapes{'>'} = '{$>$}'; $latex2e_escapes{'<'} = '{$<$}'; # wouldn't happen, but that's what'd be $latex2e_escapes{'|'} = '{$|$}'; my $in_verb; my $remove_comment; # added 2000 Jan 25 by t.sano # passed to `parse_data' below in latex2e_preASP my $latex2e_escape = sub { my ($data) = @_; if (!$in_verb) { # escape special characters $data =~ s|([#\$%&~_^\\{}<>\|])|$latex2e_escapes{$1}|ge; } return ($data); }; # # Translate character entities and escape LaTeX special chars. # $latex2e->{preASP} = sub { my ($infile, $outfile) = @_; # note the conversion of `sdata_dirs' list to an anonymous array to # make a single argument my $tex_char_maps = load_char_maps ('.2tex', [ Text::EntityMap::sdata_dirs() ]); # ASCII char maps are used in the verbatim environment because TeX # ignores all the escapes my $ascii_char_maps = load_char_maps ('.2ab', [ Text::EntityMap::sdata_dirs() ]); $ascii_char_maps = load_char_maps ('.2l1b', [ Text::EntityMap::sdata_dirs() ]) if $global->{charset} eq "latin"; my $char_maps = $tex_char_maps; # used in `latex2e_escape' anonymous sub to switch between escaping # characters from SGML source or not, depending on whether we're in # a VERB or CODE environment or not $in_verb = 0; # switch to remove empty line from TeX source or not, depending # on whether we're in a HEADING or ABSTRACT environment or not $remove_comment = 0; while (<$infile>) { if (/^-/) { my ($str) = $'; chop ($str); $_ = parse_data ($str, $char_maps, $latex2e_escape); if ($remove_comment) { s/(\s+\\n)+//; } print $outfile "-" . $_ . "\n"; } elsif (/^A/) { /^A(\S+) (IMPLIED|CDATA|NOTATION|ENTITY|TOKEN)( (.*))?$/ || die "bad attribute data: $_\n"; my ($name,$type,$value) = ($1,$2,$4); if ($type eq "CDATA") { # CDATA attributes get translated also if ($name eq "URL" or $name eq "ID" or $name eq "CA") { # URL for url.sty is a kind of verbatim... # CA is used in "tabular" element. # Thanks to Evgeny Stambulchik, he posted this fix # on sgml-tools list. 2000 May 17, t.sano my $old_verb = $in_verb; $in_verb = 1; $value = parse_data ($value, $ascii_char_maps, $latex2e_escape); $in_verb = $old_verb; } else { $value = parse_data ($value, $char_maps, $latex2e_escape); } } print $outfile "A$name $type $value\n"; } elsif (/^\((VERB|CODE)/) { print $outfile $_; # going into VERB/CODE section $in_verb = 1; $char_maps = $ascii_char_maps; } elsif (/^\)(VERB|CODE)/) { print $outfile $_; # leaving VERB/CODE section $in_verb = 0; $char_maps = $tex_char_maps; } elsif (/^\((HEADING|ABSTRACT)/) { print $outfile $_; # empty lines (comment in sgml source) do harm # in HEADING or ABSTRACT $remove_comment = 1; } elsif (/^\)(HEADING|ABSTRACT)/) { print $outfile $_; # leaving HEADING or ABSTRACT section $remove_comment = 0; } else { print $outfile $_; } } }; # return the string of the name of the macro for urldef sub latex2e_defnam($) { my ($num) = @_; if ($num > 26*26*26) { die "Too many URLs!\n"; } my $anum = ord("a"); my $defnam = chr ($anum + ($num / 26 / 26)) . chr ($anum + ($num / 26 % 26)) . chr ($anum + ($num % 26)); return ($defnam); }; # # Take the sgmlsasp output, and make something # useful from it. # $latex2e->{postASP} = sub { my $infile = shift; my $filename = $global->{filename}; my $tmplatexdir = $global->{tmpbase} . "-latex-" . $$ . ".dir"; my $tmplatexnam = $tmplatexdir . "/" . $filename; my @epsfiles = (); my @texlines = (); my @urldefines = (); my @urlnames = (); my $urlnum = 0; my $tmpepsf; my $saved_umask = umask; $ENV{TEXINPUTS} .= ":$main::DataDir"; umask 0077; mkdir ($tmplatexdir, 0700) || return -1; # # check epsfile is specified in source file # check nameurl specified in source file # { my $epsf; open SGMLFILE, "<$filename.sgml"; while () { # for epsfile if ( s/^\s*/$1/ ) { s/\s+angle=.*//; s/\s+height=.*//; s/\"//g; $epsf = $_; chop ( $epsf ); push @epsfiles, $epsf; } if ($latex2e->{output} eq "pdf") { if ( s/^\s*/$1/ ) { s/\"//g; $epsf = $_; chop ( $epsf ); push @epsfiles, $epsf; } } } close SGMLFILE; } { my $urlid; my $urlnam; my $urldef; while (<$infile>) { push @texlines, $_; # for nameurl if ( /\\nameurl/ ) { ($urlid, $urlnam) = ($_ =~ /\\nameurl{(.*)}{(.*)}/); print $urlnum . ": " . $urlid . "\n" if ( $global->{debug} ); $urldef = latex2e_defnam($urlnum) . "url"; s/\\nameurl{.*}{.*}/{\\em $urlnam} {\\tt \\$urldef}/; push @urlnames, $_; push @urldefines, "\\urldef{\\$urldef} \\url{$urlid}\n"; $urlnum++; } } close $infile; } open OUTFILE, ">$tmplatexnam.tex"; # # Set the correct \documentclass options. # { my $langlit = ISO2English ($global->{language}); $langlit = ($langlit eq 'english') ? "" : ",$langlit"; my $replace = $global->{papersize} . 'paper' . $langlit; my $hlatexopt = ""; $global->{charset} = "nippon" if ($global->{language} eq "ja"); $global->{charset} = "euc-kr" if ($global->{language} eq "ko"); $replace = $global->{papersize} . 'paper' if ($global->{charset} eq "nippon") || ($global->{charset} eq "euc-kr"); while (defined($texlines[0])) { $_ = shift @texlines; if (/^\\documentclass/) { if ($global->{language} ne "en" || $global->{papersize} ne "a4") { s/\\documentclass\[.*\]/\\documentclass\[$replace\]/; } if ($global->{charset} eq "nippon") { if ($latex2e->{latex} eq "platex") { s/{article}/{jarticle}/; } elsif ($latex2e->{latex} eq "jlatex") { s/{article}/{j-article}/; } } $_ = $_ . "\\makeindex\n" if ($latex2e->{makeindex}); } if (/^\\usepackage.epsfig/ && ($global->{charset} eq "euc-kr")) { $hlatexopt = "[noautojosa]" if ($latex2e->{latex} eq "hlatexp"); $_ = $_ . "\\usepackage" . "$hlatexopt" . "{hangul}\n" } if ((/\\usepackage.t1enc/) && (($global->{charset} eq "nippon") || ($global->{charset} eq "euc-kr"))) { s/^/%%/; } if (/%end-preamble/) { if ($latex2e->{pagenumber}) { $_ = $_ . '\setcounter{page}{'. $latex2e->{pagenumber} . "}\n"; } else { $_ = $_ . "\\pagestyle{empty}\n"; } $_ = $_ . $global->{pass} . "\n" if ($global->{pass}); } if (/\\nameurl/ && $latex2e->{output} ne "pdf") { $_ = shift @urlnames; } print OUTFILE; if (/%end-preamble/) { if ($urlnum && $latex2e->{output} ne "pdf") { while (defined($urldefines[0])) { $_ = shift @urldefines; print OUTFILE; } } } } } close OUTFILE; # # LaTeX, dvips, and assorted cleanups. # if ($latex2e->{output} eq "tex") { # comment out, because this backup action is not documented yet. # # if ( -e "$filename.tex" ) { # rename ("$filename.tex", "$filename.tex.back"); # } umask $saved_umask; copy ("$tmplatexnam.tex", "$filename.tex"); if ( ! $global->{debug} ) { unlink ("$tmplatexnam.tex"); rmdir ($tmplatexdir) || return -1; } return 0; } # # Run LaTeX in nonstop mode so it won't prompt & hang on errors. # Suppress the output of LaTeX on all but the last pass, after # references have been resolved. This avoids large numbers of # spurious warnings. # my $current_dir; chop ($current_dir = `pwd`); print $current_dir . "\n" if ( $global->{debug} ); # # copy epsfiles specified in tex file # for my $epsf ( @epsfiles ) { $tmpepsf = $tmplatexdir . "/" . $epsf; print $epsf . " " . $tmpepsf . "\n" if ( $global->{debug} ); copy ("$epsf", "$tmpepsf") or die "can not copy graphics\n"; } # # go to the temporary directory chdir ($tmplatexdir); my ($latexcommand) = "$latex2e->{latex} '\\nonstopmode\\input{$filename.tex}'"; # # We run pdflatex instead of latex if user selected pdf output # if ($latex2e->{output} eq "pdf") { $latexcommand = "pdflatex '\\nonstopmode\\input{$filename.tex}'"; } # # run hlatex if hlatexp is used # for pdf: how about status?(for hlatex and hlatexp) # if ($latex2e->{latex} eq "hlatexp") { #$latex2e->{output} = "ps" if ($latex2e->{output} eq "pdf"); $latexcommand = "hlatex '\\nonstopmode\\input{$filename.tex}'"; } # # We use jlatex for Japanese encoded (euc-jp) characters. # pdf support for Japanese are not yet. use ps for the time being. # if ($global->{charset} eq "nippon") { $latex2e->{output} = "ps" if ($latex2e->{output} eq "pdf"); $latexcommand = "$latex2e->{latex} '\\nonstopmode\\input{$filename.tex}'" } my ($suppress) = $latex2e->{quick} ? "" : ' >/dev/null'; system $latexcommand . $suppress || die "LaTeX problem\n"; $latex2e->{bibtex} && system "bibtex $filename.tex"; $latex2e->{quick} || system $latexcommand . ' >/dev/null'; $latex2e->{quick} || system $latexcommand; if ( ! $global->{debug} ) { my @suffixes = qw(log blg aux toc lof lot dlog bbl out); for my $suf (@suffixes) { unlink "$tmplatexnam.$suf"; } } # # go back to the working directory chdir ($current_dir); # # output dvi file if ($latex2e->{output} eq "dvi") { # comment out, because this backup action is not documented yet. # # if ( -e "$filename.dvi" ) # { # rename ("$filename.dvi", "$filename.dvi.back"); # } umask $saved_umask; copy ("$tmplatexnam.dvi", "$filename.dvi"); if ( $global->{debug} ) { print "Temporary files are in $tmplatexdir\n"; print "Please check there and remove them manually.\n"; } else { unlink ("$tmplatexnam.tex", "$tmplatexnam.dvi"); for my $epsf ( @epsfiles ) { $tmpepsf = $tmplatexdir . "/" . $epsf; print $tmpepsf . "\n" if ( $global->{debug} ); unlink ("$tmpepsf"); } rmdir ($tmplatexdir) || return -1; } return 0; } # # output pdf file if ($latex2e->{output} eq "pdf") { # comment out, because this backup action is not documented yet. # # if ( -e "$filename.pdf" ) # { # rename ("$filename.pdf", "$filename.pdf.back"); # } umask $saved_umask; copy ("$tmplatexnam.pdf", "$filename.pdf"); if ( $global->{debug} ) { print "Temporary files are in $tmplatexdir\n"; print "Please check there and remove them manually.\n"; } else { unlink ("$tmplatexnam.tex", "$tmplatexnam.pdf"); for my $epsf ( @epsfiles ) { $tmpepsf = $tmplatexdir . "/" . $epsf; print $tmpepsf . "\n" if ( $global->{debug} ); unlink ("$tmpepsf"); } rmdir ($tmplatexdir) || return -1; } return 0; } # # convert dvi into ps using dvips command chdir ($tmplatexdir); if ($latex2e->{dvips} eq "dvi2ps") { `dvi2ps -q -o $global->{papersize} -c $tmplatexnam.ps $filename.dvi`; } elsif ($latex2e->{dvips} eq "jdvi2kps") { `jdvi2kps -q -pa $global->{papersize} -o $tmplatexnam.ps $filename.dvi`; } else { `dvips -R -q -t $global->{papersize} -o $tmplatexnam.ps $filename.dvi`; } chdir ($current_dir); # comment out, because this backup action is not documented yet. # # if ( -e "$filename.ps" ) # { # rename ("$filename.ps", "$filename.ps.back"); # } umask $saved_umask; copy ("$tmplatexnam.ps", "$filename.ps"); unlink ("$tmplatexnam.ps"); if ( $global->{debug} ) { print "Temporary files are in $tmplatexdir\n"; print "Please check there and remove them manually.\n"; } else { unlink ("$tmplatexnam.tex", "$tmplatexnam.dvi", "$tmplatexnam.ps"); for my $epsf ( @epsfiles ) { $tmpepsf = $tmplatexdir . "/" . $epsf; print $tmpepsf . "\n" if ( $global->{debug} ); unlink ("$tmpepsf"); } rmdir ($tmplatexdir) || return -1; } return 0; }; 1; bird-1.4.0/doc/sbase/dist/fmt_html.pl0000644000103200001440000001013611606273733016405 0ustar feelausers# # fmt_html.pl # # $Id$ # # HTML-specific driver stuff # # © Copyright 1996, Cees de Groot # package LinuxDocTools::fmt_html; use strict; use LinuxDocTools::CharEnts; use LinuxDocTools::Vars; use LinuxDocTools::FixRef; my $fixref = $LinuxDocTools::FixRef::fixref; use LinuxDocTools::Html2Html; my $html2html = $LinuxDocTools::Html2Html::html2html; my $html = {}; $html->{NAME} = "html"; $html->{HELP} = ""; $html->{OPTIONS} = [ { option => "split", type => "l", 'values' => [ "0", "1", "2" ], short => "s" }, { option => "toc", type => "l", 'values' => [ "0", "1", "2" ], short => "T" }, { option => "dosnames", type => "f", short => "h" }, { option => "imagebuttons", type => "f", short => "I"}, { option => "header", type => "s", short => "H"}, { option => "footer", type => "s", short => "F"} ]; $html->{'split'} = 1; $html->{'toc'} = -1; $html->{dosnames} = 0; $html->{imagebuttons} = 0; $html->{header} = ""; $html->{footer} = ""; $html->{preNSGMLS} = sub { $global->{NsgmlsOpts} .= " -ifmthtml "; $global->{NsgmlsPrePipe} = "cat $global->{file}"; }; $Formats{$html->{NAME}} = $html; # HTML escape sub. this is called-back by `parse_data' below in # `html_preASP' to properly escape `<' and `&' characters coming from # the SGML source. my %html_escapes; $html_escapes{'&'} = '&'; $html_escapes{'<'} = '<'; my $html_escape = sub { my ($data) = @_; # replace the char with it's HTML equivalent $data =~ s|([&<])|$html_escapes{$1}|ge; return ($data); }; # # Translate character entities and escape HTML special chars. # $html->{preASP} = sub { my ($infile, $outfile) = @_; # note the conversion of `sdata_dirs' list to an anonymous array to # make a single argument my $char_maps = load_char_maps ('.2html', [ Text::EntityMap::sdata_dirs() ]); while (<$infile>) { if (/^-/) { my ($str) = $'; chop ($str); print $outfile "-" . parse_data ($str, $char_maps, $html_escape) . "\n"; } elsif (/^A/) { /^A(\S+) (IMPLIED|CDATA|NOTATION|ENTITY|TOKEN)( (.*))?$/ || die "bad attribute data: $_\n"; my ($name,$type,$value) = ($1,$2,$4); if ($type eq "CDATA") { # CDATA attributes get translated also $value = parse_data ($value, $char_maps, $html_escape); } print $outfile "A$name $type $value\n"; } else { print $outfile $_; } } return 0; }; # # Take the sgmlsasp output, and make something # useful from it. # $html->{postASP} = sub { my $infile = shift; my $filename = $global->{filename}; # # Set various stuff as a result of option processing. # my $ext = "html"; $ext = "htm" if $html->{dosnames}; my $img = 0; $img = 1 if $html->{imagebuttons}; # # Bring in file # my @file = <$infile>; # # Find references # &{$fixref->{init}}($html->{'split'}); LINE: foreach (@file) { foreach my $pat (keys %{$fixref->{rules}}) { if (/$pat/) { # Call rule function then skip to next line &{$fixref->{rules}->{$pat}}; next LINE; } } &{$fixref->{defaultrule}}; } &{$fixref->{finish}}; # # Run through html2html, preserving stdout # Also, handle prehtml.sed's tasks # my $filter = ""; # $filter = "|$main::progs->{NKF} -e" if ($global->{language} eq "ja"); open SAVEOUT, ">&STDOUT"; open STDOUT, "$filter>$filename.$ext" or die qq(Cannot open "$filename.$ext"); &{$html2html->{init}}($html->{'split'}, $ext, $img, $filename, $fixref->{filenum}, $fixref->{lrec}, $html->{'header'}, $html->{'footer'}, $html->{'toc'}, $global->{tmpbase}, $global->{debug}); LINE: foreach (@file) { s,

,,g; # remove empty

containers foreach my $pat (keys %{$html2html->{rules}}) { if (/$pat/) { # Call rule function then skip to next line &{$html2html->{rules}->{$pat}}; next LINE; } } &{$html2html->{defaultrule}}; } &{$html2html->{finish}}; close STDOUT; open STDOUT, ">&SAVEOUT"; return 0; }; 1; bird-1.4.0/doc/sbase/dist/birddoc/0000755000103200001440000000000011606273733015643 5ustar feelausersbird-1.4.0/doc/sbase/dist/birddoc/html/0000755000103200001440000000000011606273733016607 5ustar feelausersbird-1.4.0/doc/sbase/dist/birddoc/html/mapping0000644000103200001440000001373711606273733020200 0ustar feelausers % Converts qwertz files to html files ready for fixref and html2html. % % This file is R-Rated because of uglyness. % % -Magnus + "<@@enddoc>" +
+ "<@@enddoc>" + + "<@@enddoc>" + + "<@@enddoc>" + + "<@@enddoc>" + % Manual Pages are expected to be formatted using nroff (or groff), unless % they are included as sections of other qwertz documents. + "<@@title>" + "

" "

" + + "

" "

" " and " + "Thanks " + "

" "

" + "
"
" "[[ID]]" "[[NOTE] ([ID])]" + "
" "
" + "\"" "\"" + "" + + "" + "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "

Function

\n"
"\n" "

" "

\n" % url support by HG + "<@@url>[URL]\n" "[NAME]\n" "<@@endurl>" + + "<@@url>[URL]\n" "[NAME]\n" "<@@endurl>" + % ref modified to have an optional name field + "<@@ref>[ID]\n" "[NAME]\n" "<@@endref>" + + "<@@ref>[ID]" + + "<@@ref>[ID]" + + "" + + "" + "" "" + "" + + "
\n
"		+
		+	"
\n
" + + "
"		+
		+	"
" + + "
" + + "
" + + "
" + + "
" + % theorems and such + "" + "" + + "" + "" + + "" + "" + + "" + "" + + "" + "" + + "" + "" + "" "" % mathematics + "" + + "" + + "" + + "" + "" "" "" "" "" "" "" "" "" "" "" ""
    "
      "
    "
" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" % figures
+ "
" +
+ "
" + + "" + + "" + + "" + + "" "" + % tables + "
\n" +
+ "\n" + + "
\n" +
+ "\n" + "" + "" + "" + % slides + "" + + "" + + "" + + "" + % letters + "" + + "" + + "" + + "" + + "" "" + + "" + "" + + "" + "" + % first end definition of name
+ "
" +
+ "
" + + "" "" + + "" "" + + "" "" + + "" "" + + "" "" + + "" "" + + "" "" + + "" "" + + "" "" + + "" "" + + "" + + "" + % end of html replacement file bird-1.4.0/doc/sbase/dist/birddoc/groff/0000755000103200001440000000000011606273733016746 5ustar feelausersbird-1.4.0/doc/sbase/dist/birddoc/groff/mapping0000644000103200001440000002723211606273733020332 0ustar feelausers% linuxdoc replacement file % translates into nroff, using ms macros % manpages can be processed using the man macros % does not use neqn for math. % Based on qwertz replacement file by Tom Gordon % linuxdoc mods by mdw % Groff dependencies are few. To port to another roff: % 1. Check and modify, if necessary, font changes. (e.g. In psroff the % same fonts have other names.) % 2. Check the code for including Encapsulated PostScript, generated % for eps elements. % 3. Also make versions of general.grops and math.grops, which are sed % scripts translating character entities into groff character references. + ".nr PS 11\n" % Hacked by mdw ".nr PI 3n\n" ".ds CF \\\\n\%\n" ".ds CH \\&\n" ".ds dR $\n" % dollar, to avoid EQN conflicts % Start with no TOC ".ds printtoc\n" % Footnote style ".nr FF 1\n" % James Clark's trick to prevent unintended paragraph % breaks ".tr \\&\n" % horizontal line ".de hl\n" ".br\n" "\\l'\\\\n(.lu-\\\\n(.iu'\n" "..\n" % paragraph spacing ".if n .nr PD 1v\n" % margins added by mdw ".nr PO 0.25i\n" ".po 0.25i\n" ".nr LL 7.0i\n" ".nr TL 7.0i\n" ".nr HM 0i\n" ".nr FM 0i\n" % Turn off right-margin filling ".na\n" % h is 1 if first paragraph after heading ".nr h 0\n" % initialize heading level ".nr il 1\n" % Number registers for list ".nr bi 0\n" % initialize begin items ".nr ll 0\n" % list level, stores current level ".nr el 0\n" % current enumeration level % Not all list levels are enumerations, as % itemizations can be embedded within enumerations % and vice versa % type of list level is in \n(t\n(ll, where % 0 : itemize, 1 : enumerate, 2: description % enumerator for an enumeration level is in % \n(e\n(el -- i.e. \n(e1=2 means current item of % enumeration level 1 is 2 % context-sensitive paragraph macro % Bug: There's some problem using this to re-start paragraphs after the %
and
, so after verb and code I insert .LP. That's fine % except that is loses indentation when using verb or code inside of a list. ".de Pp\n" ".ie \\\\n(ll>0 \\{\\\n" % within list? ".ie \\\\n(bi=1 \\{\\\n" % first par element of item? ".nr bi 0\n" % reset bi flag % if itemization, mark with a bullet ".if \\\\n(t\\\\n(ll=0 \\{.IP \\\\(bu\\}\n" % itemize % if enumeration: increment and print enumerator % for this enumeration level ".if \\\\n(t\\\\n(ll=1 \\{.IP \\\\n+(e\\\\n(el.\\}\n" % if first par element of descrip, do nothing ".\\}\n" ".el .sp \n" % subsequent par element of item ".\\}\n" ".el \\{\\\n" % not within list ".ie \\\\nh=1 \\{\\\n" % first par after heading ".LP\n" ".nr h 0\n" % reset h flag ".\\}\n" ".el .LP \n" % Changed from .PP, mdw ".\\}\n" ".nh\n" "..\n" % for each level, a number register is created % to store its type and current item number, where % -1=bullet of an itemized list. % Format of list level enumerators ".ds f1 1\n" ".ds f2 a\n" ".ds f3 i\n" ".ds f4 A\n" % Number registers for theorems ".nr def 0\n" ".nr prop 0\n" ".nr lemma 0\n" ".nr coroll 0\n" ".nr proof 0\n" ".nr theorem 0\n" % Reference commands % redefine superscript strings so that refer tags look like [this] ".ds \[. \[\n" ".ds .\] \]\n" % set initial level of headings, in register il
+ ".nr il 0" +
+ ".if '\\*[printtoc]'true' .PX\n" + ".nr il 1" + + ".bp\n" ".rm LH\n.rm RH\n" ".TC" + + ".nr il 1" + + ".rm LH\n.rm RH\n" ".bp\n" ".TC" + + ".nr il -1" + % Hacked up titlepag stuff to look more reasonable. Titles and author % names are now stored in strings, printed by the end of . % Wake up! This uses groff-like long string names. You must use groff % to format this. + ".ds mdwtitle\n" ".ds mdwsubtitle\n" ".ds mdwdate\n" ".de printabstract\n" "..\n" + + "\\*[mdwtitle]\n" ".br\n" ".if !'\\*[mdwsubtitle]'' \\*[mdwsubtitle]\n" ".br\n" ".printauthor\n" ".br\n" "\\*[mdwdate]\n" ".br\n" ".printabstract\n" ".br\n" % + ".TL" + % + ".ds mdwtitle " + % + ".br\n" % ".ft R\n" % ".SM" + % + ".LG" + + ".ds mdwsubtitle " + + ".ds mdwdate " + + ".de printabstract\n" ".LP\n" + ".." + % author needs to be set up as its own macro, fired off from .printtitle. + ".de printauthor" + + ".." + % + ".AU" + % + ".br" + "\\**\n" ".FS" + + ".FE" + + ".br" + % + ".br" + + ".br"
+ ".EH '" "'''" + + ".OH '''" "'" + + "(*" + + "*)" + % New abstract given above --mdw % + ".AB" + % + ".AE" + + ".af H1 A" + % limitation: no list of figures or tables. A table of contents % is always generated for books and reports. Thus these next three tags % are no-ops % For now, no table-of-contents in ASCII output. (Uncomment this if % desired). % + ".ds printtoc true" % + ".bp\n" ".NH \\n(il " + + ".NH 1+\\n(il" + + ".NH 2+\\n(il" + + ".NH 3+\\n(il" + + ".NH 4+\\n(il" + + ".NH 5+\\n(il" + ".ds h " + "\\*h\n" ".XS \\n%\n" "\\*(SN \\*h\n" ".XE\n" ".nr h 1\n" % set heading flag to true

+ ".Pp" +

+ ".nr ll +1\n" % increment list level ".nr t\\n(ll 0\n" % set type of level to itemize + ".nr ll -1\n" % decrement list level + ".nr ll +1\n" % increment list level ".nr el +1\n" % increment enumeration level ".nr t\\n(ll 1\n" % set type of level to enum ".nr e\\n(el 0 1\n" % initialize enumerator ".af e\\n(el \\*(f\\n(el\n" % style of enumerator ".if \\n(ll>1 .RS" + + ".if \\n(ll>1 .RE\n" ".br\n" ".nr el -1\n" % decrement enumeration level ".nr ll -1\n" % decrement list level + ".RS\n" ".nr ll +1\n" % increment list level ".nr t\\n(ll 2\n" % set type of level to descrip + ".nr ll -1\n" % decrement list level ".RE" + % number register bi means "begin item". Used in the .P macro to print % bullets or numbers at beginning of first paragraph of an item. % If bi=1 then the paragraph is the first one of the item. + ".nr bi 1\n.Pp" + + ".IP \"\\fB" "\\fR\"\n" ".nr bi 1" + "" "" "" "" + ".\[\n[ID]\n.\]" + + ".\[\n[ID]\n.\]\n([NOTE])" " (-- " "--)" + "\\*Q" "\\*U" + ".RS\n" ".nr LL \\n(LL-\\n(PI" + + ".nr LL \\n(LL+\\n(PI\n" ".RE" + "\\fI" "\\fP" "\\fB" "\\fR" "\\fI" "\\fR" "\\fR" "\\fR" "\\fI" "\\fR" % Changed by mdw "\\fC" "\\fR" % Added by mdw "\\fI<" ">\\fR" "[NAME] <\\fC[URL]\\fR>" "[NAME]" "``[NAME]''" + "\\#" "\\n" + "\\#" "\\n" "??" + ".\[\n" "$LIST$\n" ".\]" + + ".DS L\n" ".hl\n" ".ft R\n" + + ".hl\n" ".DE\n" ".ft P\n" % ".Pp" + % continue previous paragraph (changed mdw) ".LP" + ".DS L\n" ".ft R\n" + + ".DE\n" ".ft P\n" % ".Pp" + % continue previous paragraph (changed mdw) ".LP" % tscreen added by mdw + ".br\n" ".po 0.75i\n" ".ll 6.0i\n" ".ft C\n" ".LP\n" % Used to be Pp + ".br\n" ".po 0.25i\n" ".ll 7.0i\n" ".ft R\n" % This might not be correct ".LP\n" % Used to be Pp + ".br\n" ".po 0.75i\n" ".ll 6.0i\n" ".nr LL 6.0i\n" ".LP\n" % Used to be Pp + ".br\n" ".po 0.25i\n" ".ll 7.0i\n" ".nr LL 7.0i\n" ".LP\n" % Used to be Pp % theorems and such + ".sp\n" ".nr def \\n\[def\]+1\n" ".B \"Definition \\n\[def\] \"" + + ".ft P\n.sp" + + ".sp\n" ".nr prop \\n\[prop\]+1\n" ".B \"Proposition \\n\[prop\] \"" + + ".ft P\n.sp" + + ".sp\n" ".nr lemma \\n\[lemma\]+1\n" ".B \"Lemma \\n\[lemma\] \"" + + ".ft P\n.sp" + + ".sp\n" ".nr coroll \\n\[coroll\]+1\n" ".B \"Corolloary \\n\[coroll\] \"" + + ".ft P\n.sp" + + ".sp\n" ".nr proof \\n\[proof\]+1\n" ".B \"Proof \\n\[proof\] \"" + + ".ft P\n.sp" + + ".sp\n" ".nr theorem \\n\[theorem\]+1\n" ".B \"Theorem \\n\[theorem\] \"" + + ".ft P\n.sp" + + ".B\n(" ")\n.I" + % mathematics -- this nroff version needs work. + ".DS L" + + ".DE" + + ".DS L" + + ".DE" + "{" "} over " "{" "}" " from {" "}"
    " to {"
"}" " prod " " int " " sum " % limitation: eqn only does square roots! " sqrt {" "}" + ".TS\n" "center, tab(|) ;\n" "[ca]." + + ".TE" + "\n" "|" " sup {" "}" " sub {" "}" "{" "} under " "{" "} bar " " bold{" "}" "{" "} vec " % limitation: no calligraphic characters, using helvetica italics instead. Is there a better font? "\\fI" "\\fP" " roman }" "}" + ".br" + % figures
% + ".KF" +
% + ".KE" + + ".if t .PSPIC [file].ps\n" ".if n .sp 4" + % Are TeX units properly handled by this translation of ph? + ".sp [VSPACE]" + + ".sp\n.ce" + % tables + ".KF\n.R" +
+ ".KE" + + ".TS\n" "center, tab(|) ; \n" "[ca]." + + ".TE" + "\n" + "|" % + "_" + % gregh + ".hl\n" + + ".nr PS 18" + + ".bp\n\\&" + % letters -- replacement for email, using mh format. + ".nf" + + + "From: " + "To: "
+ ".de Ad\n"
+ ".." + " <" ">" + "Subject: " + "Sref: " + "In-Reply-To: " + "cc: " + ".fi\n.LP" + + ".LP" + + ".XP\n" "encl: " + ".LP\np.s." % end of roff replacement file bird-1.4.0/doc/sbase/dist/birddoc/latex2e/0000755000103200001440000000000011606273733017207 5ustar feelausersbird-1.4.0/doc/sbase/dist/birddoc/latex2e/mapping0000644000103200001440000001442511606273733020573 0ustar feelausers % birddoc to LaTeX replacement file % The \relax is there to avoid sgml2latex rewriting the class + "\\relax\\documentclass\[a4paper,10pt,openany\]{book}\n" "\\usepackage{birddoc}\n" "\\usepackage{qwertz}\n" "\\usepackage{url}\n" "\\usepackage\[latin1\]{inputenc}\n" "\\usepackage{epsfig}\n" "\\usepackage{[OPTS]}\n" "\\pagestyle{headings}%end-preamble\n" + + "\\end{document}" + % Manual Pages are expected to be formatted using nroff (or groff), unless % they are included as sections of other qwertz documents. "\\progdoc" + "\n\n\\begin{document}\n" "\\maketitle\n" + + "\\title{" "}" + "\\\\\n" "{\\large " "}" + + "\\author{" "}" + "\\and " + "\\thanks{" "}" " \\\\\n\\\\" + + "\\date{" "}" + "\\\\ "
+ "\\markboth"
"{" "}" "{" "}" + % + "\n\n\\begin{verbatim}" + % + "\\end{verbatim}\n\n" + "{\\tt " "}" % Hacked by mdw to use linuxdoc-sgml \abstract{...} + "\\abstract{" "}" + + "\n \\appendix \n" + + "\\tableofcontents" + + "\\listoffigures" + + "\\listoftables" + + "\n\\chapter" + "\n\\section" + "\n\\subsection" + "\n\\subsubsection" + "\n\\paragraph" + "\n\\subparagraph" "{" "}\n\n"

"\n\n" + "\\begin{itemize}" + + "\\end{itemize}" + + "\\begin{enumerate}" + + "\\end{enumerate}" + + "\\begin{list}{}{}\n" + + "\\end{list}" + + "\\begin{description}" + + "\\end{description}" + + "\\item " + "\\item\[{\\ttfamily " "}\] \\hfil\\break\n" + + "\\item\[ " "\] \\hfil\\break\n" + "\\cite{[ID]" "}" "\\cite\[[NOTE]\]{[ID]" "}" "\\idx{" "}" "\\cdx{" "}" "\\nidx{" "}" "\\ncdx{" "}" % The idea here is to automatically insert soft hyphens after every slash in % the filename, so long filenames will break naturally. The url{} macro is % a kluge but it works, "\\url{" "}" "\\footnote{" "}" "``" "''" + "\\begin{quotation}\n" + + "\n\\end{quotation}\n\n" + "{\\it " "\\/}" "{\\it " "\\/}" "{\\bf " "}" "{\\it " "\\/}" "{\\sf " "}" "{\\sl " "}" "{\\rm " "}" "{\\tt " "}" "{\\tt " "}" "{\\tt " "}" "{\\it " "\\/}" "{\\tt " "}" "{\\it " "\\/}" "{\\rm " "}" "{\\it " "\\/}" "{\\function " "}\n\n" "\n\\funcsect{" "}" "\\hrule" % Added by mdw "\\cparam{" "}" "\\ref{[ID]} {([NAME])}" "\\pageref{[ID]}" %url added by HG "\\nameurl{[URL]}{[NAME]}" "\\onlynameurl{[NAME]}" + "\\bibliographystyle{[STYLE]}\n" "\\bibliography{[FILES]}\n" "\\addbibtoc{}" + % + "\\macro{[ID]}{\\qw[ID]}" % %
+ "\\macro{qwmain}{\\qwmain}" %
% + "\\par\n" % "\\medbreak\\hrule\\nopagebreak\n" % "\\begin{verbatim}" + % % + "\\end{verbatim}\n" % "\\nopagebreak\\hrule\\medbreak\n" + + "\\par\n" "\\goodbreak{\\birdnarrow\n" "\\begin{verbatim}" + + "\\end{verbatim}\n" "}\\smallbreak\n" + + "\\begin{verbatim}" + + "\\end{verbatim}" + % tscreen added by mdw + "\\begin{tscreen}" + + "\\end{tscreen}" + + "\\begin{quotation}" + + "\\end{quotation}" + % theorems and such + "\\begin{definition}" + "\\end{definition}\n\n" + + "\\begin{proposition}" + + "\\end{proposition}" + + "\\begin{lemma}" + "\\end{lemma}\n\n" + + "\\begin{corollary}" + "\\end{corollary}\n\n" + + "\n{\\noindent{\\bf Proof.} " + + "}" + "\\begin{theorem}" + "\\end{theorem}\n\n" + "\[" "\]" + % mathematics "$" "$" + "\\\[" "\\\]" + + "\\begin{equation}" + + "\\end{equation}\n" + "\\frac" "{" "}" "{" "}" "_{" "}"
    "^{"
"}" "\\prod" "\\int" "\\sum" "\\sqrt\[[n]\]{" "}" + "\\begin{array}{[ca]}" + + "\\end{array}" + " \\\\ " + " & " "^{" "}" "_{" "}" "\\underline{" "}" "\\overline{" "}" "\\mbox{\\tt " "}" "\\vec{" "}" "{\\cal " "}" "{\\rm " "}" "\\\\ \n" % figures
+ "\\begin{figure}\[[LOC]\]" +
+ "\\end{figure}\n" + + "\\centerline{\\epsfig{file=[FILE],height=[HEIGHT],angle=[ANGLE]}}" + + "\\vspace{[VSPACE]}\n\\par" + + "\\caption{" "}" + % tables + "\\begin{table}\[[LOC]\]" +
+ "\\end{table}" + + "\\begin{center}\n" "\\begin{tabular}{[ca]}" + + "\\end{tabular}\n" "\\end{center}" + "\\\\ " + "& " + "\\hline" + % end of latex replacement file bird-1.4.0/doc/sbase/dist/fmt_txt.pl0000644000103200001440000002177411606273733016272 0ustar feelausers# # fmt_txt.pl # # $Id$ # # TXT-specific driver stuff # # © Copyright 1996, Cees de Groot # package LinuxDocTools::fmt_txt; use strict; use File::Copy; use Text::EntityMap; use LinuxDocTools::CharEnts; use LinuxDocTools::Lang; use LinuxDocTools::Vars; use LinuxDocTools::Utils qw(create_temp); my $txt = {}; $txt->{NAME} = "txt"; $txt->{HELP} = ""; $txt->{OPTIONS} = [ { option => "manpage", type => "f", short => "m" }, { option => "filter", type => "f", short => "f" }, { option => "blanks", type => "i", short => "b" } ]; $txt->{manpage} = 0; $txt->{filter} = 0; $txt->{blanks} = 3; $Formats{$txt->{NAME}} = $txt; # # Set correct NsgmlsOpts # $txt->{preNSGMLS} = sub { if ($txt->{manpage}) { $global->{NsgmlsOpts} .= " -iman "; $global->{charset} = "man"; } else { $global->{NsgmlsOpts} .= " -ifmttxt "; $global->{charset} = "latin1" if $global->{charset} eq "latin"; } # # Is there a cleaner solution than this? Can't do it earlier, # would show up in the help messages... # # the language support ja. # the charset support nippon. # $global->{format} = $global->{charset}; $global->{charset} = "nippon" if $global->{language} eq "ja"; $global->{format} = "groff" if $global->{format} eq "ascii"; $global->{format} = "groff" if $global->{format} eq "nippon"; $global->{format} = "groff" if $global->{format} eq "euc-kr"; $ENV{SGML_SEARCH_PATH} =~ s/txt/$global->{format}/; $Formats{"groff"} = $txt; $Formats{"latin1"} = $txt; $Formats{"man"} = $txt; $global->{NsgmlsPrePipe} = "cat $global->{file} " ; }; # Ascii escape sub. this is called-back by `parse_data' below in # `txt_preASP' to properly escape `\' characters coming from the SGML # source. my $txt_escape = sub { my ($data) = @_; $data =~ s|"|\\\&\"|g; # Insert zero-width space in front of " $data =~ s|^\.|\\&.|; # ditto in front of . at start of line $data =~ s|\\|\\\\|g; # Escape backslashes return ($data); }; # # Run the file through the genertoc utility before sgmlsasp. Not necessary # when producing a manpage. A lot of code from FJM, untested by me. # $txt->{preASP} = sub { my ($infile, $outfile) = @_; my (@toc, @lines); my $char_maps = load_char_maps ('.2tr', [ Text::EntityMap::sdata_dirs() ]); if ( $global->{charset} eq "latin1" ) { $char_maps = load_char_maps ('.2l1tr', [ Text::EntityMap::sdata_dirs() ]); } if ($txt->{manpage}) { while (<$infile>) { if (/^-/) { my ($str) = $'; chop ($str); print $outfile "-" . parse_data ($str, $char_maps, $txt_escape) . "\n"; next; } elsif (/^A/) { /^A(\S+) (IMPLIED|CDATA|NOTATION|ENTITY|TOKEN)( (.*))?$/ || die "bad attribute data: $_\n"; my ($name,$type,$value) = ($1,$2,$4); if ($type eq "CDATA") { # CDATA attributes get translated also $value = parse_data ($value, $char_maps, $txt_escape); } print $outfile "A$name $type $value\n"; next; } # # Default action if not skipped over with next: copy in to out. # print $outfile $_; } return; } # note the conversion of `sdata_dirs' list to an anonymous array to # make a single argument # # Build TOC. The file is read into @lines in the meantime, we need to # traverse it twice. # push (@toc, "(HLINE\n"); push (@toc, ")HLINE\n"); push (@toc, "(P\n"); push (@toc, "-" . Xlat ("Table of Contents") . "\n"); push (@toc, ")P\n"); push (@toc, "(VERB\n"); my (@prevheader, @header); my $appendix = 0; my $nonprint = 0; while (<$infile>) { push (@lines, $_); if (/^\(SECT(.*)/) { @prevheader = @header; @header = @header[0..$1]; if ($appendix == 1) { $header[$1] = "A"; $appendix = 0; } else { $header[$1]++; } } if (/^\(APPEND(.*)/) { $appendix = 1; } if (/^\(HEADING/) { $_ = <$infile>; s/\\n/ /g; push (@lines, $_); chop; s/^-//; $_ = join(".",@header) . " " . $_; s/\(\\[0-9][0-9][0-9]\)/\\\1/g; if (!$#header) { # put a newline before top-level sections unless previous was also # a top level section $_ = "\\n" . $_ unless (!$#prevheader); # put a . and a space after top level sections s/ /. /; ##### $_ = "-" . $_ . "\\n"; $_ = "-" . $_; } else { # subsections get indentation matching hierarchy $_ = "-" . " " x $#header . $_; } # remove tags from a toc s/\)TT//g; s/\(TT//g; s/\)IT//g; s/\(IT//g; s/\)EM//g; s/\(EM//g; s/\)BF//g; s/\(BF//g; s/AID * CDATA.*$//g; s/\)LABEL//g; s/\(LABEL//g; push(@toc, parse_data ($_, $char_maps, $txt_escape)); $_ = <$infile>; while (!/^\)HEADING/) { s/\\n/ /g; #### push(@lines, $_); chop; s/^-//; # remove tags from a toc s/\)TT//g; s/\(TT//g; s/\)IT//g; s/\(IT//g; s/\)EM//g; s/\(EM//g; s/\)BF//g; s/\(BF//g; s/AID * CDATA.*$//g; s/\)LABEL//g; s/\(LABEL//g; # remove NIDX, NCDX from a toc entry if (/^\(NIDX$/ || /^\(NCDX$/) { $nonprint = 1; } if (/^\)NIDX$/ || /^\)NCDX$/) { $nonprint = 1; } # $_ = "-" . $_ . "\\n"; push(@toc, parse_data ($_, $char_maps, $txt_escape)) if (! $nonprint); $_ = <$infile>; } s/\\n/ /g; ### push(@lines, $_); push(@toc, "\\n\n"); } } push (@toc, ")VERB\n"); push (@toc, "(HLINE\n"); push (@toc, ")HLINE\n"); my $inheading = 0; my $tipo = ''; for (@lines) { if ($inheading) { next if (/^\)TT/ || /^\(TT/ || /^\)IT/ || /^\(IT/ || /^\)EM/ || /^\(EM/ || /^\)BF/ || /^\(BF/); if (/^-/) { $tipo .= $' ; chop ($tipo); $tipo .= " " unless $tipo =~ / $/; } else { $tipo =~ s/ $//; if ($tipo) { print $outfile "-" . parse_data ($tipo, $char_maps, $txt_escape) . "\n"; } print $outfile $_; $tipo = ''; } if (/^\)HEADING/) { $inheading = 0; } next; } if (/^\(HEADING/) { # # Go into heading processing mode. # $tipo = ''; $inheading = 1; } if (/^\(TOC/) { print $outfile @toc; next; } if (/^-/) { my ($str) = $'; chop ($str); print $outfile "-" . parse_data ($str, $char_maps, $txt_escape) . "\n"; next; } elsif (/^A/) { /^A(\S+) (IMPLIED|CDATA|NOTATION|ENTITY|TOKEN)( (.*))?$/ || die "bad attribute data: $_\n"; my ($name,$type,$value) = ($1,$2,$4); if ($type eq "CDATA") { # CDATA attributes get translated also $value = parse_data ($value, $char_maps, $txt_escape); } print $outfile "A$name $type $value\n"; next; } # # Default action if not skipped over with next: copy in to out. # print $outfile $_; } }; # # Take the sgmlsasp output, and make something # useful from it. # $txt->{postASP} = sub { my $infile = shift; my ($outfile, $groffout); if ($txt->{manpage}) { $outfile = new FileHandle ">$global->{filename}.man"; } else { create_temp("$global->{tmpbase}.txt.1"); $outfile = new FileHandle "|$main::progs->{GROFF} $global->{pass} -T $global->{charset} -t $main::progs->{GROFFMACRO} >\"$global->{tmpbase}.txt.1\""; } # # Feed $outfile with roff input. # while (<$infile>) { unless (/^\.DS/.../^\.DE/) { s/^[ \t]{1,}(.*)/$1/g; } s/^\.[ \t].*/\\\&$&/g; s/\\fC/\\fR/g; s/^.ft C/.ft R/g; print $outfile $_; } $outfile->close; # # If we were making a manpage, we're done. Otherwise, a little bit # of work is left. # if ($txt->{manpage}) { return 0; } else { $outfile->open (">$global->{filename}.txt"); $groffout = new FileHandle "<$global->{tmpbase}.txt.1"; my $count = 0; if ($txt->{filter}) { while (<$groffout>) { s/[^\cH][^\cH]\cH\cH//g; s/.//g; if ($txt->{blanks}) { $count = &{$txt->{cutblank}}($count, $outfile, $_); } else { print $outfile $_; } } } else { if ($txt->{blanks}) { while (<$groffout>) { $count = &{$txt->{cutblank}}($count, $outfile, $_); } } else { copy ($groffout, $outfile); } } } $groffout->close; $outfile->close; return 0; }; $txt->{cutblank} = sub { my ($num, $out, $in) = @_; if ( $in =~ /^$/ ) { $num++; } else { $num = 0; } if ( $num <= $txt->{blanks} ) { print $out $in; } return ($num); }; 1; bird-1.4.0/doc/sbase/VERSION0000644000103200001440000000000611606273733014336 0ustar feelausers1.0.9 bird-1.4.0/doc/sbase/dtd/0000755000103200001440000000000011606273733014045 5ustar feelausersbird-1.4.0/doc/sbase/dtd/common0000644000103200001440000000547211606273733015270 0ustar feelausers bird-1.4.0/doc/sbase/dtd/isoent0000644000103200001440000000355711606273733015303 0ustar feelausers %ISOdia; %ISOgrk3; %ISOlat1; %ISOnum; %ISOpub; bird-1.4.0/doc/sbase/dtd/birddoc.dtd0000644000103200001440000004225411606273733016157 0ustar feelausers %isoent; ' >

' > ' -- formula begin -- > '> "> "> ' -- formula end -- > " > " > ' > "> bird-1.4.0/doc/sbase/dtd/catalog0000644000103200001440000000413311606273733015403 0ustar feelausers-- This is a DTD, but will be read as -*- sgml -*- -- -- ================================================= -- -- $Id$ This is dtd/catalog for SGML-Tools. Initial revision June 23st, 1997, by B. Kreimeier $Log$ Revision 1.1 2000-05-29 12:05:22 mj Renamed the DTD from linuxdoc to birddoc. Pavel, please check whether it builds in your environment as well. Revision 1.7 1998/10/13 12:12:09 cg * Clean up catalog file. (CdG) Revision 1.6 1998/03/09 21:10:14 cg * Removed sgmltool.dtd. (CdG) Revision 1.5 1998/01/08 19:59:54 cg * Add empty line, it gave problems. (CdG) Revision 1.4 1997/12/09 20:56:15 cg * Added html32.dtd (with a modified reference to ISOent) and updated catalog accordingly. You can now do sgmlcheck on HTML files. (CdG) Revision 1.3 1997/07/09 13:27:12 cg * Completely new DTD setup by Bernd (BK). -- -- ================================================= -- -- Revision Comments -- -- BK/97/06/23: added a header, changed for 0.99.12 -- -- ================================================= -- DOCTYPE "BIRDDOC" "birddoc.dtd" -- Linuxdoc96.dtd, frozen orignal Linuxdoc DTD -- DOCTYPE "LINUXDOC" "linuxdoc.dtd" PUBLIC "-//LinuxDoc//DTD LinuxDoc 96//EN" linuxdoc96.dtd -- Linuxdoc97 Strict DTD -- PUBLIC "-//LinuxDoc//DTD LinuxDoc 97//EN" linuxdoc97.dtd -- outdated and shared entities -- ENTITY %common "common" ENTITY %isoent "isoent" ENTITY %deprec96 "deprec96" -- for development and debug, internal use only -- DOCTYPE "QWERTZ" "qwertz.dtd" DOCTYPE "TEST" "test.dtd" -- for SGML validation -- DOCTYPE "HTML" "html32.dtd" PUBLIC "-//W3C//DTD HTML 3.2 Final//EN" html32.dtd -- obsolete -- ENTITY %general "general" -- ================================================= -- -- end of dtd/catalog -- -- Local Variables: mode: sgml End: -- -- ================================================= -- bird-1.4.0/doc/prog-2.html0000644000103200001440000022512712244656165014205 0ustar feelausers BIRD Programmer's Documentation: Core Next Previous Contents


2. Core

2.1 Forwarding Information Base

FIB is a data structure designed for storage of routes indexed by their network prefixes. It supports insertion, deletion, searching by prefix, `routing' (in CIDR sense, that is searching for a longest prefix matching a given IP address) and (which makes the structure very tricky to implement) asynchronous reading, that is enumerating the contents of a FIB while other modules add, modify or remove entries.

Internally, each FIB is represented as a collection of nodes of type fib_node indexed using a sophisticated hashing mechanism. We use two-stage hashing where we calculate a 16-bit primary hash key independent on hash table size and then we just divide the primary keys modulo table size to get a real hash key used for determining the bucket containing the node. The lists of nodes in each bucket are sorted according to the primary hash key, hence if we keep the total number of buckets to be a power of two, re-hashing of the structure keeps the relative order of the nodes.

To get the asynchronous reading consistent over node deletions, we need to keep a list of readers for each node. When a node gets deleted, its readers are automatically moved to the next node in the table.

Basic FIB operations are performed by functions defined by this module, enumerating of FIB contents is accomplished by using the FIB_WALK() macro or FIB_ITERATE_START() if you want to do it asynchronously.


Function

void fib_init (struct fib * f, pool * p, unsigned node_size, unsigned hash_order, fib_init_func init) -- initialize a new FIB

Arguments

struct fib * f

the FIB to be initialized (the structure itself being allocated by the caller)

pool * p

pool to allocate the nodes in

unsigned node_size

node size to be used (each node consists of a standard header fib_node followed by user data)

unsigned hash_order

initial hash order (a binary logarithm of hash table size), 0 to use default order (recommended)

fib_init_func init

pointer a function to be called to initialize a newly created node

Description

This function initializes a newly allocated FIB and prepares it for use.


Function

void * fib_find (struct fib * f, ip_addr * a, int len) -- search for FIB node by prefix

Arguments

struct fib * f

FIB to search in

ip_addr * a

pointer to IP address of the prefix

int len

prefix length

Description

Search for a FIB node corresponding to the given prefix, return a pointer to it or NULL if no such node exists.


Function

void * fib_get (struct fib * f, ip_addr * a, int len) -- find or create a FIB node

Arguments

struct fib * f

FIB to work with

ip_addr * a

pointer to IP address of the prefix

int len

prefix length

Description

Search for a FIB node corresponding to the given prefix and return a pointer to it. If no such node exists, create it.


Function

void * fib_route (struct fib * f, ip_addr a, int len) -- CIDR routing lookup

Arguments

struct fib * f

FIB to search in

ip_addr a

pointer to IP address of the prefix

int len

prefix length

Description

Search for a FIB node with longest prefix matching the given network, that is a node which a CIDR router would use for routing that network.


Function

void fib_delete (struct fib * f, void * E) -- delete a FIB node

Arguments

struct fib * f

FIB to delete from

void * E

entry to delete

Description

This function removes the given entry from the FIB, taking care of all the asynchronous readers by shifting them to the next node in the canonical reading order.


Function

void fib_free (struct fib * f) -- delete a FIB

Arguments

struct fib * f

FIB to be deleted

Description

This function deletes a FIB -- it frees all memory associated with it and all its entries.


Function

void fib_check (struct fib * f) -- audit a FIB

Arguments

struct fib * f

FIB to be checked

Description

This debugging function audits a FIB by checking its internal consistency. Use when you suspect somebody of corrupting innocent data structures.

2.2 Routing tables

Routing tables are probably the most important structures BIRD uses. They hold all the information about known networks, the associated routes and their attributes.

There are multiple routing tables (a primary one together with any number of secondary ones if requested by the configuration). Each table is basically a FIB containing entries describing the individual destination networks. For each network (represented by structure net), there is a one-way linked list of route entries (rte), the first entry on the list being the best one (i.e., the one we currently use for routing), the order of the other ones is undetermined.

The rte contains information specific to the route (preference, protocol metrics, time of last modification etc.) and a pointer to a rta structure (see the route attribute module for a precise explanation) holding the remaining route attributes which are expected to be shared by multiple routes in order to conserve memory.


Function

rte * rte_find (net * net, struct proto * p) -- find a route

Arguments

net * net

network node

struct proto * p

protocol

Description

The rte_find() function returns a route for destination net which belongs has been defined by protocol p.


Function

rte * rte_get_temp (rta * a) -- get a temporary rte

Arguments

rta * a

attributes to assign to the new route (a rta; in case it's un-cached, rte_update() will create a cached copy automatically)

Description

Create a temporary rte and bind it with the attributes a. Also set route preference to the default preference set for the protocol.


Function

void rte_announce (rtable * tab, unsigned type, net * net, rte * new, rte * old, rte * before_old, ea_list * tmpa) -- announce a routing table change

Arguments

rtable * tab

table the route has been added to

unsigned type

type of route announcement (RA_OPTIMAL or RA_ANY)

net * net

network in question

rte * new

the new route to be announced

rte * old

the previous route for the same network

rte * before_old

-- undescribed --

ea_list * tmpa

a list of temporary attributes belonging to the new route

Description

This function gets a routing table update and announces it to all protocols that acccepts given type of route announcement and are connected to the same table by their announcement hooks.

Route announcement of type RA_OPTIMAL si generated when optimal route (in routing table tab) changes. In that case old stores the old optimal route.

Route announcement of type RA_ANY si generated when any route (in routing table tab) changes In that case old stores the old route from the same protocol.

For each appropriate protocol, we first call its import_control() hook which performs basic checks on the route (each protocol has a right to veto or force accept of the route before any filter is asked) and adds default values of attributes specific to the new protocol (metrics, tags etc.). Then it consults the protocol's export filter and if it accepts the route, the rt_notify() hook of the protocol gets called.


Function

void rte_free (rte * e) -- delete a rte

Arguments

rte * e

rte to be deleted

Description

rte_free() deletes the given rte from the routing table it's linked to.


Function

void rte_update2 (struct announce_hook * ah, net * net, rte * new, struct proto * src) -- enter a new update to a routing table

Arguments

struct announce_hook * ah

pointer to table announce hook

net * net

network node

rte * new

a rte representing the new route or NULL for route removal.

struct proto * src

protocol originating the update

Description

This function is called by the routing protocols whenever they discover a new route or wish to update/remove an existing route. The right announcement sequence is to build route attributes first (either un-cached with aflags set to zero or a cached one using rta_lookup(); in this case please note that you need to increase the use count of the attributes yourself by calling rta_clone()), call rte_get_temp() to obtain a temporary rte, fill in all the appropriate data and finally submit the new rte by calling rte_update().

src specifies the protocol that originally created the route and the meaning of protocol-dependent data of new. If new is not NULL, src have to be the same value as new->attrs->proto. p specifies the protocol that called rte_update(). In most cases it is the same protocol as src. rte_update() stores p in new->sender;

When rte_update() gets any route, it automatically validates it (checks, whether the network and next hop address are valid IP addresses and also whether a normal routing protocol doesn't try to smuggle a host or link scope route to the table), converts all protocol dependent attributes stored in the rte to temporary extended attributes, consults import filters of the protocol to see if the route should be accepted and/or its attributes modified, stores the temporary attributes back to the rte.

Now, having a "public" version of the route, we automatically find any old route defined by the protocol src for network n, replace it by the new one (or removing it if new is NULL), recalculate the optimal route for this destination and finally broadcast the change (if any) to all routing protocols by calling rte_announce().

All memory used for attribute lists and other temporary allocations is taken from a special linear pool rte_update_pool and freed when rte_update() finishes.


Function

void rte_dump (rte * e) -- dump a route

Arguments

rte * e

rte to be dumped

Description

This functions dumps contents of a rte to debug output.


Function

void rt_dump (rtable * t) -- dump a routing table

Arguments

rtable * t

routing table to be dumped

Description

This function dumps contents of a given routing table to debug output.


Function

void rt_dump_all (void) -- dump all routing tables

Description

This function dumps contents of all routing tables to debug output.


Function

void rt_init (void) -- initialize routing tables

Description

This function is called during BIRD startup. It initializes the routing table module.


Function

int rt_prune_loop (void) -- prune routing tables

Description

The prune loop scans routing tables and removes routes belonging to flushing protocols and also stale network entries. Returns 1 when all such routes are pruned. It is a part of the protocol flushing loop.

The prune loop runs in two steps. In the first step it prunes just the routes with flushing senders (in explicitly marked tables) so the route removal is propagated as usual. In the second step, all remaining relevant routes are removed. Ideally, there shouldn't be any, but it happens when pipe filters are changed.


Function

void rt_lock_table (rtable * r) -- lock a routing table

Arguments

rtable * r

routing table to be locked

Description

Lock a routing table, because it's in use by a protocol, preventing it from being freed when it gets undefined in a new configuration.


Function

void rt_unlock_table (rtable * r) -- unlock a routing table

Arguments

rtable * r

routing table to be unlocked

Description

Unlock a routing table formerly locked by rt_lock_table(), that is decrease its use count and delete it if it's scheduled for deletion by configuration changes.


Function

void rt_commit (struct config * new, struct config * old) -- commit new routing table configuration

Arguments

struct config * new

new configuration

struct config * old

original configuration or NULL if it's boot time config

Description

Scan differences between old and new configuration and modify the routing tables according to these changes. If new defines a previously unknown table, create it, if it omits a table existing in old, schedule it for deletion (it gets deleted when all protocols disconnect from it by calling rt_unlock_table()), if it exists in both configurations, leave it unchanged.


Function

int rt_feed_baby (struct proto * p) -- advertise routes to a new protocol

Arguments

struct proto * p

protocol to be fed

Description

This function performs one pass of advertisement of routes to a newly initialized protocol. It's called by the protocol code as long as it has something to do. (We avoid transferring all the routes in single pass in order not to monopolize CPU time.)


Function

void rt_feed_baby_abort (struct proto * p) -- abort protocol feeding

Arguments

struct proto * p

protocol

Description

This function is called by the protocol code when the protocol stops or ceases to exist before the last iteration of rt_feed_baby() has finished.


Function

net * net_find (rtable * tab, ip_addr addr, unsigned len) -- find a network entry

Arguments

rtable * tab

a routing table

ip_addr addr

address of the network

unsigned len

length of the network prefix

Description

net_find() looks up the given network in routing table tab and returns a pointer to its net entry or NULL if no such network exists.


Function

net * net_get (rtable * tab, ip_addr addr, unsigned len) -- obtain a network entry

Arguments

rtable * tab

a routing table

ip_addr addr

address of the network

unsigned len

length of the network prefix

Description

net_get() looks up the given network in routing table tab and returns a pointer to its net entry. If no such entry exists, it's created.


Function

rte * rte_cow (rte * r) -- copy a route for writing

Arguments

rte * r

a route entry to be copied

Description

rte_cow() takes a rte and prepares it for modification. The exact action taken depends on the flags of the rte -- if it's a temporary entry, it's just returned unchanged, else a new temporary entry with the same contents is created.

The primary use of this function is inside the filter machinery -- when a filter wants to modify rte contents (to change the preference or to attach another set of attributes), it must ensure that the rte is not shared with anyone else (and especially that it isn't stored in any routing table).

Result

a pointer to the new writable rte.

2.3 Route attribute cache

Each route entry carries a set of route attributes. Several of them vary from route to route, but most attributes are usually common for a large number of routes. To conserve memory, we've decided to store only the varying ones directly in the rte and hold the rest in a special structure called rta which is shared among all the rte's with these attributes.

Each rta contains all the static attributes of the route (i.e., those which are always present) as structure members and a list of dynamic attributes represented by a linked list of ea_list structures, each of them consisting of an array of eattr's containing the individual attributes. An attribute can be specified more than once in the ea_list chain and in such case the first occurrence overrides the others. This semantics is used especially when someone (for example a filter) wishes to alter values of several dynamic attributes, but it wants to preserve the original attribute lists maintained by another module.

Each eattr contains an attribute identifier (split to protocol ID and per-protocol attribute ID), protocol dependent flags, a type code (consisting of several bit fields describing attribute characteristics) and either an embedded 32-bit value or a pointer to a adata structure holding attribute contents.

There exist two variants of rta's -- cached and un-cached ones. Un-cached rta's can have arbitrarily complex structure of ea_list's and they can be modified by any module in the route processing chain. Cached rta's have their attribute lists normalized (that means at most one ea_list is present and its values are sorted in order to speed up searching), they are stored in a hash table to make fast lookup possible and they are provided with a use count to allow sharing.

Routing tables always contain only cached rta's.


Function

eattr * ea_find (ea_list * e, unsigned id) -- find an extended attribute

Arguments

ea_list * e

attribute list to search in

unsigned id

attribute ID to search for

Description

Given an extended attribute list, ea_find() searches for a first occurrence of an attribute with specified ID, returning either a pointer to its eattr structure or NULL if no such attribute exists.


Function

int ea_get_int (ea_list * e, unsigned id, int def) -- fetch an integer attribute

Arguments

ea_list * e

attribute list

unsigned id

attribute ID

int def

default value

Description

This function is a shortcut for retrieving a value of an integer attribute by calling ea_find() to find the attribute, extracting its value or returning a provided default if no such attribute is present.


Function

void ea_sort (ea_list * e) -- sort an attribute list

Arguments

ea_list * e

list to be sorted

Description

This function takes a ea_list chain and sorts the attributes within each of its entries.

If an attribute occurs multiple times in a single ea_list, ea_sort() leaves only the first (the only significant) occurrence.


Function

unsigned ea_scan (ea_list * e) -- estimate attribute list size

Arguments

ea_list * e

attribute list

Description

This function calculates an upper bound of the size of a given ea_list after merging with ea_merge().


Function

void ea_merge (ea_list * e, ea_list * t) -- merge segments of an attribute list

Arguments

ea_list * e

attribute list

ea_list * t

buffer to store the result to

Description

This function takes a possibly multi-segment attribute list and merges all of its segments to one.

The primary use of this function is for ea_list normalization: first call ea_scan() to determine how much memory will the result take, then allocate a buffer (usually using alloca()), merge the segments with ea_merge() and finally sort and prune the result by calling ea_sort().


Function

int ea_same (ea_list * x, ea_list * y) -- compare two ea_list's

Arguments

ea_list * x

attribute list

ea_list * y

attribute list

Description

ea_same() compares two normalized attribute lists x and y and returns 1 if they contain the same attributes, 0 otherwise.


Function

void ea_show (struct cli * c, eattr * e) -- print an eattr to CLI

Arguments

struct cli * c

destination CLI

eattr * e

attribute to be printed

Description

This function takes an extended attribute represented by its eattr structure and prints it to the CLI according to the type information.

If the protocol defining the attribute provides its own get_attr() hook, it's consulted first.


Function

void ea_dump (ea_list * e) -- dump an extended attribute

Arguments

ea_list * e

attribute to be dumped

Description

ea_dump() dumps contents of the extended attribute given to the debug output.


Function

unsigned int ea_hash (ea_list * e) -- calculate an ea_list hash key

Arguments

ea_list * e

attribute list

Description

ea_hash() takes an extended attribute list and calculated a hopefully uniformly distributed hash value from its contents.


Function

ea_list * ea_append (ea_list * to, ea_list * what) -- concatenate ea_list's

Arguments

ea_list * to

destination list (can be NULL)

ea_list * what

list to be appended (can be NULL)

Description

This function appends the ea_list what at the end of ea_list to and returns a pointer to the resulting list.


Function

rta * rta_lookup (rta * o) -- look up a rta in attribute cache

Arguments

rta * o

a un-cached rta

Description

rta_lookup() gets an un-cached rta structure and returns its cached counterpart. It starts with examining the attribute cache to see whether there exists a matching entry. If such an entry exists, it's returned and its use count is incremented, else a new entry is created with use count set to 1.

The extended attribute lists attached to the rta are automatically converted to the normalized form.


Function

void rta_dump (rta * a) -- dump route attributes

Arguments

rta * a

attribute structure to dump

Description

This function takes a rta and dumps its contents to the debug output.


Function

void rta_dump_all (void) -- dump attribute cache

Description

This function dumps the whole contents of route attribute cache to the debug output.


Function

void rta_init (void) -- initialize route attribute cache

Description

This function is called during initialization of the routing table module to set up the internals of the attribute cache.


Function

rta * rta_clone (rta * r) -- clone route attributes

Arguments

rta * r

a rta to be cloned

Description

rta_clone() takes a cached rta and returns its identical cached copy. Currently it works by just returning the original rta with its use count incremented.


Function

void rta_free (rta * r) -- free route attributes

Arguments

rta * r

a rta to be freed

Description

If you stop using a rta (for example when deleting a route which uses it), you need to call rta_free() to notify the attribute cache the attribute is no longer in use and can be freed if you were the last user (which rta_free() tests by inspecting the use count).

2.4 Routing protocols

Introduction

The routing protocols are the bird's heart and a fine amount of code is dedicated to their management and for providing support functions to them. (-: Actually, this is the reason why the directory with sources of the core code is called nest :-).

When talking about protocols, one need to distinguish between protocols and protocol instances. A protocol exists exactly once, not depending on whether it's configured or not and it can have an arbitrary number of instances corresponding to its "incarnations" requested by the configuration file. Each instance is completely autonomous, has its own configuration, its own status, its own set of routes and its own set of interfaces it works on.

A protocol is represented by a protocol structure containing all the basic information (protocol name, default settings and pointers to most of the protocol hooks). All these structures are linked in the protocol_list list.

Each instance has its own proto structure describing all its properties: protocol type, configuration, a resource pool where all resources belonging to the instance live, various protocol attributes (take a look at the declaration of proto in protocol.h), protocol states (see below for what do they mean), connections to routing tables, filters attached to the protocol and finally a set of pointers to the rest of protocol hooks (they are the same for all instances of the protocol, but in order to avoid extra indirections when calling the hooks from the fast path, they are stored directly in proto). The instance is always linked in both the global instance list (proto_list) and a per-status list (either active_proto_list for running protocols, initial_proto_list for protocols being initialized or flush_proto_list when the protocol is being shut down).

The protocol hooks are described in the next chapter, for more information about configuration of protocols, please refer to the configuration chapter and also to the description of the proto_commit function.

Protocol states

As startup and shutdown of each protocol are complex processes which can be affected by lots of external events (user's actions, reconfigurations, behavior of neighboring routers etc.), we have decided to supervise them by a pair of simple state machines -- the protocol state machine and a core state machine.

The protocol state machine corresponds to internal state of the protocol and the protocol can alter its state whenever it wants to. There are the following states:

PS_DOWN

The protocol is down and waits for being woken up by calling its start() hook.

PS_START

The protocol is waiting for connection with the rest of the network. It's active, it has resources allocated, but it still doesn't want any routes since it doesn't know what to do with them.

PS_UP

The protocol is up and running. It communicates with the core, delivers routes to tables and wants to hear announcement about route changes.

PS_STOP

The protocol has been shut down (either by being asked by the core code to do so or due to having encountered a protocol error).

Unless the protocol is in the PS_DOWN state, it can decide to change its state by calling the proto_notify_state function.

At any time, the core code can ask the protocol to shut itself down by calling its stop() hook.

The core state machine takes care of the core view of protocol state. The states are traversed according to changes of the protocol state machine, but sometimes the transitions are delayed if the core needs to finish some actions (for example sending of new routes to the protocol) before proceeding to the new state. There are the following core states:

FS_HUNGRY

The protocol is down, it doesn't have any routes and doesn't want them.

FS_FEEDING

The protocol has reached the PS_UP state, but we are still busy sending the initial set of routes to it.

FS_HAPPY

The protocol is up and has complete routing information.

FS_FLUSHING

The protocol is shutting down (it's in either PS_STOP or PS_DOWN state) and we're flushing all of its routes from the routing tables.

Functions of the protocol module

The protocol module provides the following functions:


Function

void * proto_new (struct proto_config * c, unsigned size) -- create a new protocol instance

Arguments

struct proto_config * c

protocol configuration

unsigned size

size of protocol data structure (each protocol instance is represented by a structure starting with generic part [struct proto] and continued with data specific to the protocol)

Description

When a new configuration has been read in, the core code starts initializing all the protocol instances configured by calling their init() hooks with the corresponding instance configuration. The initialization code of the protocol is expected to create a new instance according to the configuration by calling this function and then modifying the default settings to values wanted by the protocol.


Function

struct announce_hook * proto_add_announce_hook (struct proto * p, struct rtable * t, struct proto_stats * stats) -- connect protocol to a routing table

Arguments

struct proto * p

protocol instance

struct rtable * t

routing table to connect to

struct proto_stats * stats

per-table protocol statistics

Description

This function creates a connection between the protocol instance p and the routing table t, making the protocol hear all changes in the table.

The announce hook is linked in the protocol ahook list and, if the protocol accepts routes, also in the table ahook list. Announce hooks are allocated from the routing table resource pool, they are unlinked from the table ahook list after the protocol went down, (in proto_schedule_flush()) and they are automatically freed after the protocol is flushed (in proto_fell_down()).

Unless you want to listen to multiple routing tables (as the Pipe protocol does), you needn't to worry about this function since the connection to the protocol's primary routing table is initialized automatically by the core code.


Function

struct announce_hook * proto_find_announce_hook (struct proto * p, struct rtable * t) -- find announce hooks

Arguments

struct proto * p

protocol instance

struct rtable * t

routing table

Description

Returns pointer to announce hook or NULL


Function

void * proto_config_new (struct protocol * pr, unsigned size, int class) -- create a new protocol configuration

Arguments

struct protocol * pr

protocol the configuration will belong to

unsigned size

size of the structure including generic data

int class

SYM_PROTO or SYM_TEMPLATE

Description

Whenever the configuration file says that a new instance of a routing protocol should be created, the parser calls proto_config_new() to create a configuration entry for this instance (a structure staring with the proto_config header containing all the generic items followed by protocol-specific ones). Also, the configuration entry gets added to the list of protocol instances kept in the configuration.

The function is also used to create protocol templates (when class SYM_TEMPLATE is specified), the only difference is that templates are not added to the list of protocol instances and therefore not initialized during protos_commit()).


Function

void proto_copy_config (struct proto_config * dest, struct proto_config * src) -- copy a protocol configuration

Arguments

struct proto_config * dest

destination protocol configuration

struct proto_config * src

source protocol configuration

Description

Whenever a new instance of a routing protocol is created from the template, proto_copy_config() is called to copy a content of the source protocol configuration to the new protocol configuration. Name, class and a node in protos list of dest are kept intact. copy_config() protocol hook is used to copy protocol-specific data.


Function

void protos_preconfig (struct config * c) -- pre-configuration processing

Arguments

struct config * c

new configuration

Description

This function calls the preconfig() hooks of all routing protocols available to prepare them for reading of the new configuration.


Function

void protos_postconfig (struct config * c) -- post-configuration processing

Arguments

struct config * c

new configuration

Description

This function calls the postconfig() hooks of all protocol instances specified in configuration c. The hooks are not called for protocol templates.


Function

void protos_commit (struct config * new, struct config * old, int force_reconfig, int type) -- commit new protocol configuration

Arguments

struct config * new

new configuration

struct config * old

old configuration or NULL if it's boot time config

int force_reconfig

force restart of all protocols (used for example when the router ID changes)

int type

type of reconfiguration (RECONFIG_SOFT or RECONFIG_HARD)

Description

Scan differences between old and new configuration and adjust all protocol instances to conform to the new configuration.

When a protocol exists in the new configuration, but it doesn't in the original one, it's immediately started. When a collision with the other running protocol would arise, the new protocol will be temporarily stopped by the locking mechanism.

When a protocol exists in the old configuration, but it doesn't in the new one, it's shut down and deleted after the shutdown completes.

When a protocol exists in both configurations, the core decides whether it's possible to reconfigure it dynamically - it checks all the core properties of the protocol (changes in filters are ignored if type is RECONFIG_SOFT) and if they match, it asks the reconfigure() hook of the protocol to see if the protocol is able to switch to the new configuration. If it isn't possible, the protocol is shut down and a new instance is started with the new configuration after the shutdown is completed.


Function

void protos_dump_all (void) -- dump status of all protocols

Description

This function dumps status of all existing protocol instances to the debug output. It involves printing of general status information such as protocol states, its position on the protocol lists and also calling of a dump() hook of the protocol to print the internals.


Function

void proto_build (struct protocol * p) -- make a single protocol available

Arguments

struct protocol * p

the protocol

Description

After the platform specific initialization code uses protos_build() to add all the standard protocols, it should call proto_build() for all platform specific protocols to inform the core that they exist.


Function

void protos_build (void) -- build a protocol list

Description

This function is called during BIRD startup to insert all standard protocols to the global protocol list. Insertion of platform specific protocols (such as the kernel syncer) is in the domain of competence of the platform dependent startup code.


Function

void proto_request_feeding (struct proto * p) -- request feeding routes to the protocol

Arguments

struct proto * p

given protocol

Description

Sometimes it is needed to send again all routes to the protocol. This is called feeding and can be requested by this function. This would cause protocol core state transition to FS_FEEDING (during feeding) and when completed, it will switch back to FS_HAPPY. This function can be called even when feeding is already running, in that case it is restarted.


Function

void proto_notify_limit (struct announce_hook * ah, struct proto_limit * l, int dir, u32 rt_count)

Arguments

struct announce_hook * ah

announce hook

struct proto_limit * l

limit being hit

int dir

limit direction (PLD_*)

u32 rt_count

the number of routes

Description

The function is called by the route processing core when limit l is breached. It activates the limit and tooks appropriate action according to l->action.


Function

void proto_notify_state (struct proto * p, unsigned ps) -- notify core about protocol state change

Arguments

struct proto * p

protocol the state of which has changed

unsigned ps

the new status

Description

Whenever a state of a protocol changes due to some event internal to the protocol (i.e., not inside a start() or shutdown() hook), it should immediately notify the core about the change by calling proto_notify_state() which will write the new state to the proto structure and take all the actions necessary to adapt to the new state. State change to PS_DOWN immediately frees resources of protocol and might execute start callback of protocol; therefore, it should be used at tail positions of protocol callbacks.

2.5 Protocol hooks

Each protocol can provide a rich set of hook functions referred to by pointers in either the proto or protocol structure. They are called by the core whenever it wants the protocol to perform some action or to notify the protocol about any change of its environment. All of the hooks can be set to NULL which means to ignore the change or to take a default action.


Function

void preconfig (struct protocol * p, struct config * c) -- protocol preconfiguration

Arguments

struct protocol * p

a routing protocol

struct config * c

new configuration

Description

The preconfig() hook is called before parsing of a new configuration.


Function

void postconfig (struct proto_config * c) -- instance post-configuration

Arguments

struct proto_config * c

instance configuration

Description

The postconfig() hook is called for each configured instance after parsing of the new configuration is finished.


Function

struct proto * init (struct proto_config * c) -- initialize an instance

Arguments

struct proto_config * c

instance configuration

Description

The init() hook is called by the core to create a protocol instance according to supplied protocol configuration.

Result

a pointer to the instance created


Function

int reconfigure (struct proto * p, struct proto_config * c) -- request instance reconfiguration

Arguments

struct proto * p

an instance

struct proto_config * c

new configuration

Description

The core calls the reconfigure() hook whenever it wants to ask the protocol for switching to a new configuration. If the reconfiguration is possible, the hook returns 1. Otherwise, it returns 0 and the core will shut down the instance and start a new one with the new configuration.

After the protocol confirms reconfiguration, it must no longer keep any references to the old configuration since the memory it's stored in can be re-used at any time.


Function

void dump (struct proto * p) -- dump protocol state

Arguments

struct proto * p

an instance

Description

This hook dumps the complete state of the instance to the debug output.


Function

void dump_attrs (rte * e) -- dump protocol-dependent attributes

Arguments

rte * e

a route entry

Description

This hook dumps all attributes in the rte which belong to this protocol to the debug output.


Function

int start (struct proto * p) -- request instance startup

Arguments

struct proto * p

protocol instance

Description

The start() hook is called by the core when it wishes to start the instance. Multitable protocols should lock their tables here.

Result

new protocol state


Function

int shutdown (struct proto * p) -- request instance shutdown

Arguments

struct proto * p

protocol instance

Description

The stop() hook is called by the core when it wishes to shut the instance down for some reason.

Returns

new protocol state


Function

void cleanup (struct proto * p) -- request instance cleanup

Arguments

struct proto * p

protocol instance

Description

The cleanup() hook is called by the core when the protocol became hungry/down, i.e. all protocol ahooks and routes are flushed. Multitable protocols should unlock their tables here.


Function

void get_status (struct proto * p, byte * buf) -- get instance status

Arguments

struct proto * p

protocol instance

byte * buf

buffer to be filled with the status string

Description

This hook is called by the core if it wishes to obtain an brief one-line user friendly representation of the status of the instance to be printed by the <cf/show protocols/ command.


Function

void get_route_info (rte * e, byte * buf, ea_list * attrs) -- get route information

Arguments

rte * e

a route entry

byte * buf

buffer to be filled with the resulting string

ea_list * attrs

extended attributes of the route

Description

This hook is called to fill the buffer buf with a brief user friendly representation of metrics of a route belonging to this protocol.


Function

int get_attr (eattr * a, byte * buf, int buflen) -- get attribute information

Arguments

eattr * a

an extended attribute

byte * buf

buffer to be filled with attribute information

int buflen

-- undescribed --

Description

The get_attr() hook is called by the core to obtain a user friendly representation of an extended route attribute. It can either leave the whole conversion to the core (by returning GA_UNKNOWN), fill in only attribute name (and let the core format the attribute value automatically according to the type field; by returning GA_NAME) or doing the whole conversion (used in case the value requires extra care; return GA_FULL).


Function

void if_notify (struct proto * p, unsigned flags, struct iface * i) -- notify instance about interface changes

Arguments

struct proto * p

protocol instance

unsigned flags

interface change flags

struct iface * i

the interface in question

Description

This hook is called whenever any network interface changes its status. The change is described by a combination of status bits (IF_CHANGE_xxx) in the flags parameter.


Function

void ifa_notify (struct proto * p, unsigned flags, struct ifa * a) -- notify instance about interface address changes

Arguments

struct proto * p

protocol instance

unsigned flags

address change flags

struct ifa * a

the interface address

Description

This hook is called to notify the protocol instance about an interface acquiring or losing one of its addresses. The change is described by a combination of status bits (IF_CHANGE_xxx) in the flags parameter.


Function

void rt_notify (struct proto * p, net * net, rte * new, rte * old, ea_list * attrs) -- notify instance about routing table change

Arguments

struct proto * p

protocol instance

net * net

a network entry

rte * new

new route for the network

rte * old

old route for the network

ea_list * attrs

extended attributes associated with the new entry

Description

The rt_notify() hook is called to inform the protocol instance about changes in the connected routing table table, that is a route old belonging to network net being replaced by a new route new with extended attributes attrs. Either new or old or both can be NULL if the corresponding route doesn't exist.

If the type of route announcement is RA_OPTIMAL, it is an announcement of optimal route change, new stores the new optimal route and old stores the old optimal route.

If the type of route announcement is RA_ANY, it is an announcement of any route change, new stores the new route and old stores the old route from the same protocol.

p->accept_ra_types specifies which kind of route announcements protocol wants to receive.


Function

void neigh_notify (neighbor * neigh) -- notify instance about neighbor status change

Arguments

neighbor * neigh

a neighbor cache entry

Description

The neigh_notify() hook is called by the neighbor cache whenever a neighbor changes its state, that is it gets disconnected or a sticky neighbor gets connected.


Function

ea_list * make_tmp_attrs (rte * e, struct linpool * pool) -- convert embedded attributes to temporary ones

Arguments

rte * e

route entry

struct linpool * pool

linear pool to allocate attribute memory in

Description

This hook is called by the routing table functions if they need to convert the protocol attributes embedded directly in the rte to temporary extended attributes in order to distribute them to other protocols or to filters. make_tmp_attrs() creates an ea_list in the linear pool pool, fills it with values of the temporary attributes and returns a pointer to it.


Function

void store_tmp_attrs (rte * e, ea_list * attrs) -- convert temporary attributes to embedded ones

Arguments

rte * e

route entry

ea_list * attrs

temporary attributes to be converted

Description

This hook is an exact opposite of make_tmp_attrs() -- it takes a list of extended attributes and converts them to attributes embedded in the rte corresponding to this protocol.

You must be prepared for any of the attributes being missing from the list and use default values instead.


Function

int import_control (struct proto * p, rte ** e, ea_list ** attrs, struct linpool * pool) -- pre-filtering decisions on route import

Arguments

struct proto * p

protocol instance the route is going to be imported to

rte ** e

the route in question

ea_list ** attrs

extended attributes of the route

struct linpool * pool

linear pool for allocation of all temporary data

Description

The import_control() hook is called as the first step of a exporting a route from a routing table to the protocol instance. It can modify route attributes and force acceptance or rejection of the route regardless of user-specified filters. See rte_announce() for a complete description of the route distribution process.

The standard use of this hook is to reject routes having originated from the same instance and to set default values of the protocol's metrics.

Result

1 if the route has to be accepted, -1 if rejected and 0 if it should be passed to the filters.


Function

int rte_recalculate (struct rtable * table, struct network * net, struct rte * new, struct rte * old, struct rte * old_best) -- prepare routes for comparison

Arguments

struct rtable * table

a routing table

struct network * net

a network entry

struct rte * new

new route for the network

struct rte * old

old route for the network

struct rte * old_best

old best route for the network (may be NULL)

Description

This hook is called when a route change (from old to new for a net entry) is propagated to a table. It may be used to prepare routes for comparison by rte_better() in the best route selection. new may or may not be in net->routes list, old is not there.

Result

1 if the ordering implied by rte_better() changes enough that full best route calculation have to be done, 0 otherwise.


Function

int rte_better (rte * new, rte * old) -- compare metrics of two routes

Arguments

rte * new

the new route

rte * old

the original route

Description

This hook gets called when the routing table contains two routes for the same network which have originated from different instances of a single protocol and it wants to select which one is preferred over the other one. Protocols usually decide according to route metrics.

Result

1 if new is better (more preferred) than old, 0 otherwise.


Function

int rte_same (rte * e1, rte * e2) -- compare two routes

Arguments

rte * e1

route

rte * e2

route

Description

The rte_same() hook tests whether the routes e1 and e2 belonging to the same protocol instance have identical contents. Contents of rta, all the extended attributes and rte preference are checked by the core code, no need to take care of them here.

Result

1 if e1 is identical to e2, 0 otherwise.


Function

void rte_insert (net * n, rte * e) -- notify instance about route insertion

Arguments

net * n

network

rte * e

route

Description

This hook is called whenever a rte belonging to the instance is accepted for insertion to a routing table.

Please avoid using this function in new protocols.


Function

void rte_remove (net * n, rte * e) -- notify instance about route removal

Arguments

net * n

network

rte * e

route

Description

This hook is called whenever a rte belonging to the instance is removed from a routing table.

Please avoid using this function in new protocols.

2.6 Interfaces

The interface module keeps track of all network interfaces in the system and their addresses.

Each interface is represented by an iface structure which carries interface capability flags (IF_MULTIACCESS, IF_BROADCAST etc.), MTU, interface name and index and finally a linked list of network prefixes assigned to the interface, each one represented by struct ifa.

The interface module keeps a `soft-up' state for each iface which is a conjunction of link being up, the interface being of a `sane' type and at least one IP address assigned to it.


Function

void ifa_dump (struct ifa * a) -- dump interface address

Arguments

struct ifa * a

interface address descriptor

Description

This function dumps contents of an ifa to the debug output.


Function

void if_dump (struct iface * i) -- dump interface

Arguments

struct iface * i

interface to dump

Description

This function dumps all information associated with a given network interface to the debug output.


Function

void if_dump_all (void) -- dump all interfaces

Description

This function dumps information about all known network interfaces to the debug output.


Function

void if_delete (struct iface * old) -- remove interface

Arguments

struct iface * old

interface

Description

This function is called by the low-level platform dependent code whenever it notices an interface disappears. It is just a shorthand for if_update().


Function

struct iface * if_update (struct iface * new) -- update interface status

Arguments

struct iface * new

new interface status

Description

if_update() is called by the low-level platform dependent code whenever it notices an interface change.

There exist two types of interface updates -- synchronous and asynchronous ones. In the synchronous case, the low-level code calls if_start_update(), scans all interfaces reported by the OS, uses if_update() and ifa_update() to pass them to the core and then it finishes the update sequence by calling if_end_update(). When working asynchronously, the sysdep code calls if_update() and ifa_update() whenever it notices a change.

if_update() will automatically notify all other modules about the change.


Function

void if_feed_baby (struct proto * p) -- advertise interfaces to a new protocol

Arguments

struct proto * p

protocol to feed

Description

When a new protocol starts, this function sends it a series of notifications about all existing interfaces.


Function

struct iface * if_find_by_index (unsigned idx) -- find interface by ifindex

Arguments

unsigned idx

ifindex

Description

This function finds an iface structure corresponding to an interface of the given index idx. Returns a pointer to the structure or NULL if no such structure exists.


Function

struct iface * if_find_by_name (char * name) -- find interface by name

Arguments

char * name

interface name

Description

This function finds an iface structure corresponding to an interface of the given name name. Returns a pointer to the structure or NULL if no such structure exists.


Function

struct ifa * ifa_update (struct ifa * a) -- update interface address

Arguments

struct ifa * a

new interface address

Description

This function adds address information to a network interface. It's called by the platform dependent code during the interface update process described under if_update().


Function

void ifa_delete (struct ifa * a) -- remove interface address

Arguments

struct ifa * a

interface address

Description

This function removes address information from a network interface. It's called by the platform dependent code during the interface update process described under if_update().


Function

void if_init (void) -- initialize interface module

Description

This function is called during BIRD startup to initialize all data structures of the interface module.

2.7 Neighbor cache

Most routing protocols need to associate their internal state data with neighboring routers, check whether an address given as the next hop attribute of a route is really an address of a directly connected host and which interface is it connected through. Also, they often need to be notified when a neighbor ceases to exist or when their long awaited neighbor becomes connected. The neighbor cache is there to solve all these problems.

The neighbor cache maintains a collection of neighbor entries. Each entry represents one IP address corresponding to either our directly connected neighbor or our own end of the link (when the scope of the address is set to SCOPE_HOST) together with per-neighbor data belonging to a single protocol.

Active entries represent known neighbors and are stored in a hash table (to allow fast retrieval based on the IP address of the node) and two linked lists: one global and one per-interface (allowing quick processing of interface change events). Inactive entries exist only when the protocol has explicitly requested it via the NEF_STICKY flag because it wishes to be notified when the node will again become a neighbor. Such entries are enqueued in a special list which is walked whenever an interface changes its state to up.

When a neighbor event occurs (a neighbor gets disconnected or a sticky inactive neighbor becomes connected), the protocol hook neigh_notify() is called to advertise the change.


Function

neighbor * neigh_find (struct proto * p, ip_addr * a, unsigned flags) -- find or create a neighbor entry.

Arguments

struct proto * p

protocol which asks for the entry.

ip_addr * a

pointer to IP address of the node to be searched for.

unsigned flags

0 or NEF_STICKY if you want to create a sticky entry.

Description

Search the neighbor cache for a node with given IP address. If it's found, a pointer to the neighbor entry is returned. If no such entry exists and the node is directly connected on one of our active interfaces, a new entry is created and returned to the caller with protocol-dependent fields initialized to zero. If the node is not connected directly or *a is not a valid unicast IP address, neigh_find() returns NULL.


Function

void neigh_dump (neighbor * n) -- dump specified neighbor entry.

Arguments

neighbor * n

the entry to dump

Description

This functions dumps the contents of a given neighbor entry to debug output.


Function

void neigh_dump_all (void) -- dump all neighbor entries.

Description

This function dumps the contents of the neighbor cache to debug output.


Function

void neigh_if_up (struct iface * i)

Arguments

struct iface * i

interface in question

Description

Tell the neighbor cache that a new interface became up.

The neighbor cache wakes up all inactive sticky neighbors with addresses belonging to prefixes of the interface i.


Function

void neigh_if_down (struct iface * i) -- notify neighbor cache about interface down event

Arguments

struct iface * i

the interface in question

Description

Notify the neighbor cache that an interface has ceased to exist.

It causes all entries belonging to neighbors connected to this interface to be flushed.


Function

void neigh_if_link (struct iface * i) -- notify neighbor cache about interface link change

Arguments

struct iface * i

the interface in question

Description

Notify the neighbor cache that an interface changed link state. All owners of neighbor entries connected to this interface are notified.


Function

void neigh_ifa_update (struct ifa * a)

Arguments

struct ifa * a

-- undescribed --

Description

Tell the neighbor cache that an address was added or removed.

The neighbor cache wakes up all inactive sticky neighbors with addresses belonging to prefixes of the interface belonging to ifa and causes all unreachable neighbors to be flushed.


Function

void neigh_prune (void) -- prune neighbor cache

Description

neigh_prune() examines all neighbor entries cached and removes those corresponding to inactive protocols. It's called whenever a protocol is shut down to get rid of all its heritage.


Function

void neigh_init (pool * if_pool) -- initialize the neighbor cache.

Arguments

pool * if_pool

resource pool to be used for neighbor entries.

Description

This function is called during BIRD startup to initialize the neighbor cache module.

2.8 Command line interface

This module takes care of the BIRD's command-line interface (CLI). The CLI exists to provide a way to control BIRD remotely and to inspect its status. It uses a very simple textual protocol over a stream connection provided by the platform dependent code (on UNIX systems, it's a UNIX domain socket).

Each session of the CLI consists of a sequence of request and replies, slightly resembling the FTP and SMTP protocols. Requests are commands encoded as a single line of text, replies are sequences of lines starting with a four-digit code followed by either a space (if it's the last line of the reply) or a minus sign (when the reply is going to continue with the next line), the rest of the line contains a textual message semantics of which depends on the numeric code. If a reply line has the same code as the previous one and it's a continuation line, the whole prefix can be replaced by a single white space character.

Reply codes starting with 0 stand for `action successfully completed' messages, 1 means `table entry', 8 `runtime error' and 9 `syntax error'.

Each CLI session is internally represented by a cli structure and a resource pool containing all resources associated with the connection, so that it can be easily freed whenever the connection gets closed, not depending on the current state of command processing.

The CLI commands are declared as a part of the configuration grammar by using the CF_CLI macro. When a command is received, it is processed by the same lexical analyzer and parser as used for the configuration, but it's switched to a special mode by prepending a fake token to the text, so that it uses only the CLI command rules. Then the parser invokes an execution routine corresponding to the command, which either constructs the whole reply and returns it back or (in case it expects the reply will be long) it prints a partial reply and asks the CLI module (using the cont hook) to call it again when the output is transferred to the user.

The this_cli variable points to a cli structure of the session being currently parsed, but it's of course available only in command handlers not entered using the cont hook.

TX buffer management works as follows: At cli.tx_buf there is a list of TX buffers (struct cli_out), cli.tx_write is the buffer currently used by the producer (cli_printf(), cli_alloc_out()) and cli.tx_pos is the buffer currently used by the consumer (cli_write(), in system dependent code). The producer uses cli_out.wpos ptr as the current write position and the consumer uses cli_out.outpos ptr as the current read position. When the producer produces something, it calls cli_write_trigger(). If there is not enough space in the current buffer, the producer allocates the new one. When the consumer processes everything in the buffer queue, it calls cli_written(), tha frees all buffers (except the first one) and schedules cli.event .


Function

void cli_printf (cli * c, int code, char * msg, ... ...) -- send reply to a CLI connection

Arguments

cli * c

CLI connection

int code

numeric code of the reply, negative for continuation lines

char * msg

a printf()-like formatting string.

... ...

variable arguments

Description

This function send a single line of reply to a given CLI connection. In works in all aspects like bsprintf() except that it automatically prepends the reply line prefix.

Please note that if the connection can be already busy sending some data in which case cli_printf() stores the output to a temporary buffer, so please avoid sending a large batch of replies without waiting for the buffers to be flushed.

If you want to write to the current CLI output, you can use the cli_msg() macro instead.


Function

void cli_init (void) -- initialize the CLI module

Description

This function is called during BIRD startup to initialize the internal data structures of the CLI module.

2.9 Object locks

The lock module provides a simple mechanism for avoiding conflicts between various protocols which would like to use a single physical resource (for example a network port). It would be easy to say that such collisions can occur only when the user specifies an invalid configuration and therefore he deserves to get what he has asked for, but unfortunately they can also arise legitimately when the daemon is reconfigured and there exists (although for a short time period only) an old protocol instance being shut down and a new one willing to start up on the same interface.

The solution is very simple: when any protocol wishes to use a network port or some other non-shareable resource, it asks the core to lock it and it doesn't use the resource until it's notified that it has acquired the lock.

Object locks are represented by object_lock structures which are in turn a kind of resource. Lockable resources are uniquely determined by resource type (OBJLOCK_UDP for a UDP port etc.), IP address (usually a broadcast or multicast address the port is bound to), port number and interface.


Function

struct object_lock * olock_new (pool * p) -- create an object lock

Arguments

pool * p

resource pool to create the lock in.

Description

The olock_new() function creates a new resource of type object_lock and returns a pointer to it. After filling in the structure, the caller should call olock_acquire() to do the real locking.


Function

void olock_acquire (struct object_lock * l) -- acquire a lock

Arguments

struct object_lock * l

the lock to acquire

Description

This function attempts to acquire exclusive access to the non-shareable resource described by the lock l. It returns immediately, but as soon as the resource becomes available, it calls the hook() function set up by the caller.

When you want to release the resource, just rfree() the lock.


Function

void olock_init (void) -- initialize the object lock mechanism

Description

This function is called during BIRD startup. It initializes all the internal data structures of the lock module.


Next Previous Contents bird-1.4.0/doc/bird.html0000644000103200001440000000574112244656170014011 0ustar feelausers BIRD User's Guide Next Previous Contents

BIRD User's Guide

Ondrej Filip <feela@network.cz>, Pavel Machek <pavel@ucw.cz>, Martin Mares <mj@ucw.cz>, Ondrej Zajicek <santiago@crfreenet.org>


This document contains user documentation for the BIRD Internet Routing Daemon project.

1. Introduction

2. About routing tables

3. Configuration

4. Remote control

5. Filters

6. Protocols

7. Conclusions


Next Previous Contents bird-1.4.0/doc/tex/0000755000103200001440000000000011606273733012775 5ustar feelausersbird-1.4.0/doc/tex/qwertz.sty0000644000103200001440000000110511606273733015067 0ustar feelausers % qwertz TeX macros \catcode`\"=12 \sloppy \newtheorem{definition}{Definition} \newtheorem{proposition}{Proposition} \newtheorem{lemma}{Lemma} \newtheorem{corollary}{Corollary} \newtheorem{theorem}{Theorem} \newcommand{\mch}[1]{{\ifmmode#1 \else\(#1\)\fi}} \newcommand{\lt}{{\ifmmode{<}\else{\verb+<+}\fi}} \newcommand{\gt}{{\ifmmode{>}\else{\verb+>+}\fi}} \newcommand{\verbar}{{\ifmmode{|}\else{\tt|}\fi}} \newcommand{\idx}[1]{#1\index{#1}} \newcommand{\cdx}[1]{#1\index{#1@{\tt #1}}} \newcommand{\nidx}[1]{\index{#1}} \newcommand{\ncdx}[1]{\index{#1@{\tt #1}}} bird-1.4.0/doc/tex/url.sty0000644000103200001440000003320511606273733014343 0ustar feelausers% url.sty ver 1.2 19-Oct-1996 Donald Arseneau asnd@triumf.ca % % A form of \verb that allows linebreaks at certain characters or % combinations of characters, accepts reconfiguration, and can usually % be used in the argument to another command. It is intended for email % addresses, hypertext links, directories/paths, etc., which normally % have no spaces. The font may be selected using the \urlstyle command, % and new url-like commands can be defined using \urldef. % % Usage: Conditions: % \url{ } If the argument contains any "%", "#", or "^^", or ends with % "\", it can't be used in the argument to another command. % The argument must not contain unbalanced braces. % \url| | ...where "|" is any character not used in the argument and not % "{". The same restrictions as above except that the argument % may contain unbalanced braces. % \xyz for "\xyz" a defined-url; this can be used anywhere, no matter % what characters it contains. % % See further instructions after "\endinput" % \def\Url@ttdo{% style assignments for tt fonts or T1 encoding \def\UrlBreaks{\do\.\do\@\do\\\do\/\do\!\do\_\do\|\do\%\do\;\do\>\do\]% \do\)\do\,\do\?\do\'\do\+\do\=}% \def\UrlBigBreaks{\do\:\do@url@hyp}% \def\UrlNoBreaks{\do\(\do\[\do\{\do\<}% (unnecessary) \def\UrlSpecials{\do\ {\ }}% \def\UrlOrds{\do\*\do\-\do\~}% any ordinary characters that aren't usually } \def\Url@do{% style assignments for OT1 fonts except tt \def\UrlBreaks{\do\.\do\@\do\/\do\!\do\%\do\;\do\]\do\)\do\,\do\?\do\+\do\=}% \def\UrlBigBreaks{\do\:\do@url@hyp}% \def\UrlNoBreaks{\do\(\do\[\do\{}% prevents breaks after *next* character \def\UrlSpecials{\do\<{\langle}\do\>{\mathbin{\rangle}}\do\_{\_% \penalty\@m}\do\|{\mid}\do\{{\lbrace}\do\}{\mathbin{\rbrace}}\do \\{\mathbin{\backslash}}\do\~{\mathord{{}^{\textstyle\sim}}}\do\ {\ }}% \def\UrlOrds{\do\'\do\"\do\-}% } \def\url@ttstyle{% \@ifundefined{selectfont}{\def\UrlFont{\tt}}{\def\UrlFont{\ttfamily}}\Url@ttdo } \def\url@rmstyle{% \@ifundefined{selectfont}{\def\UrlFont{\rm}}{\def\UrlFont{\rmfamily}}\Url@do } \def\url@sfstyle{% \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\sffamily}}\Url@do } \def\url@samestyle{\ifdim\fontdimen\thr@@\font=\z@ \url@ttstyle \else \url@rmstyle \fi \def\UrlFont{}} \@ifundefined{strip@prefix}{\def\strip@prefix#1>{}}{} \@ifundefined{verbatim@nolig@list}{\def\verbatim@nolig@list{\do\`}}{} \def\Url{\relax\ifmmode\@nomatherr$\fi \UrlFont $\fam\z@ \textfont\z@\font \let\do\@makeother \dospecials % verbatim catcodes \catcode`{\@ne \catcode`}\tw@ % except braces \medmuskip0mu \thickmuskip\medmuskip \thinmuskip\medmuskip \@tempcnta\fam\multiply\@tempcnta\@cclvi \let\do\set@mathcode \UrlOrds % ordinary characters that were special \advance\@tempcnta 8192 \UrlBreaks % bin \advance\@tempcnta 4096 \UrlBigBreaks % rel \advance\@tempcnta 4096 \UrlNoBreaks % open \let\do\set@mathact \UrlSpecials % active \let\do\set@mathnolig \verbatim@nolig@list % prevent ligatures \@ifnextchar\bgroup\Url@z\Url@y} \def\Url@y#1{\catcode`{11 \catcode`}11 \def\@tempa##1#1{\Url@z{##1}}\@tempa} \def\Url@z#1{\def\@tempa{#1}\expandafter\expandafter\expandafter\Url@Hook \expandafter\strip@prefix\meaning\@tempa\UrlRight\m@th$\endgroup} \def\Url@Hook{\UrlLeft} \let\UrlRight\@empty \let\UrlLeft\@empty \def\set@mathcode#1{\count@`#1\advance\count@\@tempcnta\mathcode`#1\count@} \def\set@mathact#1#2{\mathcode`#132768 \lccode`\~`#1\lowercase{\def~{#2}}} \def\set@mathnolig#1{\ifnum\mathcode`#1<32768 \lccode`\~`#1\lowercase{\edef~{\mathchar\number\mathcode`#1_{\/}}}% \mathcode`#132768 \fi} \def\urldef#1#2{\begingroup \setbox\z@\hbox\bgroup \def\Url@z{\Url@def{#1}{#2}}#2} \expandafter\ifx\csname DeclareRobustCommand\endcsname\relax \def\Url@def#1#2#3{\m@th$\endgroup\egroup\endgroup \def#1{#2{#3}}} \else \def\Url@def#1#2#3{\m@th$\endgroup\egroup\endgroup \DeclareRobustCommand{#1}{#2{#3}}} \fi \def\urlstyle#1{\csname url@#1style\endcsname} % Sample (and default) configuration: % \newcommand\url{\begingroup \Url} % \newcommand\path{\begingroup \urlstyle{tt}\Url} % % too many styles define \email like \address, so I will not define it. % \newcommand\email{\begingroup \urlstyle{rm}\Url} % Process LaTeX \package options % \urlstyle{tt} \let\Url@sppen\@M \def\do@url@hyp{}% by default, no breaks after hyphens \@ifundefined{ProvidesPackage}{}{ \ProvidesPackage{url}[1996/10/19 \space ver 1.2 \space Verb mode for urls, email addresses, and file names] \DeclareOption{hyphens}{\def\do@url@hyp{\do\-}}% allow breaks after hyphens \DeclareOption{obeyspaces}{\let\Url@Hook\relax}% a flag for later \DeclareOption{spaces}{\let\Url@sppen\relpenalty} \DeclareOption{T1}{\let\Url@do\Url@ttdo} \ProcessOptions \ifx\Url@Hook\relax % [obeyspaces] was declared \def\Url@Hook#1\UrlRight\m@th{\edef\@tempa{\noexpand\UrlLeft \Url@retain#1\Url@nosp\, }\@tempa\UrlRight\m@th} \def\Url@retain#1 {#1\penalty\Url@sppen\ \Url@retain} \def\Url@nosp\,#1\Url@retain{} \fi } \endinput % % url.sty ver 1.2 19-Oct-1996 Donald Arseneau asnd@reg.triumf.ca % % This package defines "\url", a form of "\verb" that allows linebreaks, % and can often be used in the argument to another command. It can be % configured to print in different formats, and is particularly useful for % hypertext links, email addresses, directories/paths, etc. The font may % be selected using the "\urlstyle" command and pre-defined text can be % stored with the "\urldef" command. New url-like commands can be defined, % and a "\path" command is provided this way. % % Usage: Conditions: % \url{ } If the argument contains any "%", "#", or "^^", or ends with % "\", it can't be used in the argument to another command. % The argument must not contain unbalanced braces. % \url| | ...where "|" is any character not used in the argument and not % "{". The same restrictions as above except that the argument % may contain unbalanced braces. % \xyz for "\xyz" a defined-url; this can be used anywhere, no matter % what characters it contains. % % The "\url" command is fragile, and its argument is likely to be very % fragile, but a defined-url is robust. % % Package Option: obeyspaces % Ordinarily, all spaces are ignored in the url-text. The "[obeyspaces]" % option allows spaces, but may introduce spurious spaces when a url % containing "\" characters is given in the argument to another command. % So if you need to obey spaces you can say "\usepackage[obeyspaces]{url}", % and if you need both spaces and backslashes, use a `defined-url' for % anything with "\". % % Package Option: hyphens % Ordinarily, breaks are not allowed after "-" characters because this % leads to confusion. (Is the "-" part of the address or just a hyphen?) % The package option "[hyphens]" allows breaks after explicit hyphen % characters. The "\url" command will *never ever* hyphenate words. % % Package Option: spaces % Likewise, breaks are not usually allowed after spaces under the % "[obeyspaces]" option, but giving the options "[obeyspaces,spaces]" % will allow breaks at those spaces. % % Package Option: T1 % This signifies that you will be using T1-encoded fonts which contain % some characters missing from most older (OT1) encoded TeX fonts. This % changes the default definition for "\urlstyle{rm}". % % Defining a defined-url: % Take for example the email address "myself%node@gateway.net" which could % not be given (using "\url" or "\verb") in a caption or parbox due to the % percent sign. This address can be predefined with % \urldef{\myself}\url{myself%node@gateway.net} or % \urldef{\myself}\url|myself%node@gateway.net| % and then you may use "\myself" instead of "\url{myself%node@gateway.net}" % in an argument, and even in a moving argument like a caption because a % defined-url is robust. % % Style: % You can switch the style of printing using "\urlstyle{tt}", where "tt" % can be any defined style. The pre-defined styles are "tt", "rm", "sf", % and "same" which all allow the same linebreaks but different fonts -- % the first three select a specific font and the "same" style uses the % current text font. You can define your own styles with different fonts % and/or line-breaking by following the explanations below. The "\url" % command follows whatever the currently-set style dictates. % % Alternate commands: % It may be desireable to have different things treated differently, each % in a predefined style; e.g., if you want directory paths to always be % in tt and email addresses to be rm, then you would define new url-like % commands as follows: % % \newcommand\email{\begingroup \urlstyle{rm}\Url} % \newcommand\directory{\begingroup \urlstyle{tt}\Url} % % You must follow this format closely, and NOTE that the final command is % "\Url", not "\url". In fact, the "\directory" example is exactly the % "\path" definition which is pre-defined in the package. If you look % above, you will see that "\url" is defined with % \newcommand\url{\begingroup \Url} % I.e., using whatever url-style has been selected. % % You can make a defined-url for these other styles, using the usual % "\urldef" command as in this example: % % \urldef{\myself}{\email}{myself%node.domain@gateway.net} % % which makes "\myself" act like "\email{myself%node.domain@gateway.net}", % if the "\email" command is defined as above. The "\myself" command % would then be robust. % % Defining styles: % Before describing how to customize the printing style, it is best to % mention something about the unusual implementation of "\url". Although % the material is textual in nature, and the font specification required % is a text-font command, the text is actually typeset in *math* mode. % This allows the context-sensitive linebreaking, but also accounts for % the default behavior of ignoring spaces. Now on to defining styles. % % To change the font or the list of characters that allow linebreaks, you % could redefine the commands "\UrlFont", "\UrlBreaks", "\UrlSpecials" etc. % directly in the document, but it is better to define a new `url-style' % (following the example of "\url@ttstyle" and "\url@rmstyle") which defines % all of "\UrlBigbreaks", "\UrlNoBreaks", "\UrlBreaks", "\UrlSpecials", and % "\UrlFont". % % Changing font: % The "\UrlFont" command selects the font. The definition of "\UrlFont" % done by the pre-defined styles varies to cope with a variety of LaTeX % font selection schemes, but it could be as simple as "\def\UrlFont{\tt}". % Depending on the font selected, some characters may need to be defined % in the "\UrlSpecials" list because many fonts don't contain all the % standard input characters. % % Changing linebreaks: % The list of characters that allow line-breaks is given by "\UrlBreaks" % and "\UrlBigBreaks", which have the format "\do\c" for character "c". % The differences are that `BigBreaks' have a lower penalty and have % different breakpoints when in sequence (as in "http://"): `BigBreaks' % are treated as mathrels while `Breaks' are mathbins (see The TeXbook, % p.170). In particular, a series of `BigBreak' characters will break at % the end and only at the end; a series of `Break' characters will break % after the first and after every following *pair*; there will be no % break after a `Break' character if a `BigBreak' follows. In the case % of "http://" it doesn't matter whether ":" is a `Break' or `BigBreak' -- % the breaks are the same in either case; but for DECnet nodes with "::" % it is important to prevent breaks *between* the colons, and that is why % colons are `BigBreaks'. % % It is possible for characters to prevent breaks after the next following % character (I use this for parentheses). Specify these in "\UrlNoBreaks". % % You can do arbitrarily complex things with characters by making them % active in math mode (mathcode hex-8000) and specifying the definition(s) % in "\UrlSpecials". This is used in the rm and sf styles for OT1 font % encoding to handle several characters that are not present in those % computer-modern style fonts. See the definition of "\Url@do", which % is used by both "\url@rmstyle" and "\url@sfstyle"; it handles missing % characters via "\UrlSpecials". The nominal format for setting each % special character "c" is: "\do\c{}", but you can include % other definitions too. % % % If all this sounds confusing ... well, it is! But I hope you won't need % to redefine breakpoints -- the default assignments seem to work well for % a wide variety of applications. If you do need to make changes, you can % test for breakpoints using regular math mode and the characters "+=(a". % % Yet more flexibility: % You can also customize the verbatim text by defining "\UrlRight" and/or % "\UrlLeft", e.g., for ISO formatting of urls surrounded by "< >", define % % \renewcommand\url{\begingroup \def\UrlLeft{}% % \urlstyle{tt}\Url} % % The meanings of "\UrlLeft" and "\UrlRight" are *not* reproduced verbatim. % This lets you use formatting commands there, but you must be careful not % to use TeX's special characters ("\^_%~#$&{}" etc.) improperly. % You can also define "\UrlLeft" to reprocess the verbatim text, but the % format of the definition is special: % % \def\UrlLeft#1\UrlRight{ ... do things with #1 ... } % % Yes, that is "#1" followed by "\UrlRight" then the definition. For % example, to put a hyperTeX hypertext link in the DVI file: % % \def\UrlLeft#1\UrlRight{\special{html:}#1\special{html:}} % % Revision History: % ver 1.1 6-Feb-1996: % Fix hyphens that wouldn't break and ligatures that weren't suppressed. % ver 1.2 19-Oct-1996: % Package option for T1 encoding; Hooks: "\UrlLeft" and "\UrlRight". % % The End bird-1.4.0/doc/tex/null.sty0000644000103200001440000000000011606273733014476 0ustar feelausersbird-1.4.0/doc/tex/birddoc.sty0000644000103200001440000000753311606273733015154 0ustar feelausers%% This is a LaTeX style file for typesetting BIRD documentation. %% Hacked up by Martin Mares %% %% This is a modified version of linuxdoc-qwertz.sty, for use with SGML-generated LaTeX %% by Matt Welsh (mdw@sunsite.unc.edu) %% %% Based on linuxdoc.sty by Michael K. Johnson, and latex.tex by %% Leslie Lamport. \NeedsTeXFormat{LaTeX2e} \ProvidesClass{birddoc} %%% GLOBAL LAYOUT THINGS \marginparwidth 0.0 in \parindent=0 in \parskip=0.5ex %\parindent=0.5in %\parskip=0pt \topmargin -0.5 in \setlength{\textheight}{\paperheight} \addtolength{\textheight}{-2 in} %\advance\headsep 2 ex \advance\textheight -2 ex %\renewcommand{\baselinestretch}{1.14} \setcounter{tocdepth}{1} \oddsidemargin 0.15 in \evensidemargin -0.35 in \textwidth 6.5in \def\ps@headings{\let\@mkboth\markboth \def\@oddfoot{}\def\@evenfoot{}% No feet. \def\@evenhead{\protect\rule[-4pt]{\textwidth}{.5pt}\kern-\textwidth \rm \thepage\hfil \bf \leftmark} % Left heading. \def\@oddhead{\protect\rule[-4pt]{\textwidth}{.5pt}\kern-\textwidth {\bf \rightmark}\hfil \rm\thepage} % Right heading. \def\chaptermark##1{\markboth {{\ifnum \c@secnumdepth >\m@ne \@chapapp\ \thechapter. \ \fi ##1}}{}}% \def\sectionmark##1{\markright {{\ifnum \c@secnumdepth >\z@ \thesection. \ \fi ##1}}}} \def\@makechapterhead#1{% {\parindent \z@ \raggedright \normalfont \huge \bfseries \@chapapp\space\thechapter: #1\par\nobreak \vskip 20\p@ }} \def\@makeschapterhead#1{% {\parindent \z@ \raggedright \normalfont \huge \bfseries #1\par\nobreak \vskip 20\p@ }} %% Titlepage stuff \gdef\@title{} \gdef\title#1{\gdef\@title{#1}} \gdef\@date{} \gdef\date#1{\gdef\@date{#1}} \gdef\@author{} \gdef\author#1{\gdef\@author{#1}} \gdef\@abstract{} \gdef\abstract#1{\gdef\@abstract{#1}} \def\maketitle{\thispagestyle{empty}\let\footnotesize\small% \let\footnoterule\relax %\setcounter{page}{0}% %\null %\vskip 3 in \noindent {\huge\sf \@title}\\ \rule{\textwidth}{1mm}\\ \mbox{}\@author\ \hfill \@date\ \\ \vskip 1 ex \noindent{\sf \@abstract} \setcounter{footnote}{0}% \gdef\@author{}\gdef\@title{}\gdef\@years{}\gdef\@abstract{} \let\maketitle\relax} \def\birdnarrow{\advance\@totalleftmargin by 0.5in} %% Needs to be here for the previous ps@headings defs to work. \pagestyle{headings} \def\progdoc{ \raggedbottom } %%% USEFUL MACROS \newcommand{\linux}{Linux} % Always use this when % refering to the \linux\ % operating system, like that. \newcommand{\key}[1]{{\fbox{\small\tt #1}}} % Use this to mark keys, like % \key{del} for the delete key. \newcommand{\ret}{\fbox{\sf return}} % Special case for the return key. \newcommand{\st}{\small\tt} % Small typewriter -- comes in handy. %\newcommand{\lb}{{\tt\char '173}} % Left Brace '{' %\newcommand{\rb}{{\tt\char '175}} % Right Brace '}' \newcommand{\lbr}{$\langle$} % Left Bracket '<' \newcommand{\rbr}{$\rangle$} % Right Bracket '>' \newcommand{\bs}{{\tt\char '134}} % BackSlash '\' \newcommand{\tm}{${}^{\mbox{\tiny\sf TM}}$} \newcommand{\TM}{\tm} % TM trademark symbol in % either case \newcommand{\cparam}[1]{{\rm \lbr{\sl #1}\rbr}} % Metavariables. %% Define NAMEURL macro to handle the optional name argument %% This calls on the \url macro from the url.sty package so the %% URL will be hyphenated correctly. \def\nameurl#1#2{{\em #2} {\tt <\url{#1}>}} \def\onlynameurl#1{{\em #1}} %% the tscreen environment automatically goes into typewriter type, %% but is otherwise like the screen environment \newenvironment{tscreen}% {\begin{quote}\bgroup\small\tt}% {\egroup\end{quote}} %% Typesetting of function descriptions \def\function{\bigbreak\hrule\nobreak\bigskip\nobreak\leftline{\bf Function}\nobreak\smallskip\nobreak\parskip=0pt\relax} \def\funcsect#1{\medbreak\leftline{\bf #1}\nobreak} bird-1.4.0/doc/bird-6.html0000644000103200001440000026505712244656170014164 0ustar feelausers BIRD User's Guide: Protocols Next Previous Contents

6. Protocols

6.1 BFD

Introduction

Bidirectional Forwarding Detection (BFD) is not a routing protocol itself, it is an independent tool providing liveness and failure detection. Routing protocols like OSPF and BGP use integrated periodic "hello" messages to monitor liveness of neighbors, but detection times of these mechanisms are high (e.g. 40 seconds by default in OSPF, could be set down to several seconds). BFD offers universal, fast and low-overhead mechanism for failure detection, which could be attached to any routing protocol in an advisory role.

BFD consists of mostly independent BFD sessions. Each session monitors an unicast bidirectional path between two BFD-enabled routers. This is done by periodically sending control packets in both directions. BFD does not handle neighbor discovery, BFD sessions are created on demand by request of other protocols (like OSPF or BGP), which supply appropriate information like IP addresses and associated interfaces. When a session changes its state, these protocols are notified and act accordingly (e.g. break an OSPF adjacency when the BFD session went down).

BIRD implements basic BFD behavior as defined in RFC 5880 ftp://ftp.rfc-editor.org/in-notes/rfc5880.txt (some advanced features like the echo mode or authentication are not implemented), IP transport for BFD as defined in RFC 5881 ftp://ftp.rfc-editor.org/in-notes/rfc5881.txt and RFC 5883 ftp://ftp.rfc-editor.org/in-notes/rfc5883.txt and interaction with client protocols as defined in RFC 5882 ftp://ftp.rfc-editor.org/in-notes/rfc5882.txt.

Note that BFD implementation in BIRD is currently a new feature in development, expect some rough edges and possible UI and configuration changes in the future. Also note that we currently support at most one protocol instance.

Configuration

BFD configuration consists mainly of multiple definitions of interfaces. Most BFD config options are session specific. When a new session is requested and dynamically created, it is configured from one of these definitions. For sessions to directly connected neighbors, interface definitions are chosen based on the interface associated with the session, while multihop definition is used for multihop sessions. If no definition is relevant, the session is just created with the default configuration. Therefore, an empty BFD configuration is often sufficient.

Note that to use BFD for other protocols like OSPF or BGP, these protocols also have to be configured to request BFD sessions, usually by bfd option.

Some of BFD session options require time value, which has to be specified with the appropriate unit: num s|ms|us. Although microseconds are allowed as units, practical minimum values are usually in order of tens of milliseconds.


protocol bfd [<name>] {
        interface <interface pattern> {
                interval <time>;
                min rx interval <time>;
                min tx interval <time>;
                idle tx interval <time>;
                multiplier <num>;
                passive <switch>;
        };
        multihop {
                interval <time>;
                min rx interval <time>;
                min tx interval <time>;
                idle tx interval <time>;
                multiplier <num>;
                passive <switch>;
        };
        neighbor <ip> [dev "<interface>"] [local <ip>] [multihop <switch>];
}

interface pattern [, ...] { options }

Interface definitions allow to specify options for sessions associated with such interfaces and also may contain interface specific options. See interface common option for a detailed description of interface patterns. Note that contrary to the behavior of interface definitions of other protocols, BFD protocol would accept sessions (in default configuration) even on interfaces not covered by such definitions.

multihop { options }

Multihop definitions allow to specify options for multihop BFD sessions, in the same manner as interface definitions are used for directly connected sessions. Currently only one such definition (for all multihop sessions) could be used.

neighbor ip [dev "interface"] [local ip] [multihop switch]

BFD sessions are usually created on demand as requested by other protocols (like OSPF or BGP). This option allows to explicitly add a BFD session to the specified neighbor regardless of such requests.

The session is identified by the IP address of the neighbor, with optional specification of used interface and local IP. By default the neighbor must be directly connected, unless the the session is configured as multihop. Note that local IP must be specified for multihop sessions.

Session specific options (part of interface and multihop definitions):

interval time

BFD ensures availability of the forwarding path associated with the session by periodically sending BFD control packets in both directions. The rate of such packets is controlled by two options, min rx interval and min tx interval (see below). This option is just a shorthand to set both of these options together.

min rx interval time

This option specifies the minimum RX interval, which is announced to the neighbor and used there to limit the neighbor's rate of generated BFD control packets. Default: 10 ms.

min tx interval time

This option specifies the desired TX interval, which controls the rate of generated BFD control packets (together with min rx interval announced by the neighbor). Note that this value is used only if the BFD session is up, otherwise the value of idle tx interval is used instead. Default: 100 ms.

idle tx interval time

In order to limit unnecessary traffic in cases where a neighbor is not available or not running BFD, the rate of generated BFD control packets is lower when the BFD session is not up. This option specifies the desired TX interval in such cases instead of min tx interval. Default: 1 s.

multiplier num

Failure detection time for BFD sessions is based on established rate of BFD control packets (min rx/tx interval) multiplied by this multiplier, which is essentially (ignoring jitter) a number of missed packets after which the session is declared down. Note that rates and multipliers could be different in each direction of a BFD session. Default: 5.

passive switch

Generally, both BFD session endpoinds try to establish the session by sending control packets to the other side. This option allows to enable passive mode, which means that the router does not send BFD packets until it has received one from the other side. Default: disabled.

Example


protocol bfd {
        interface "eth*" {
                min rx interval 20 ms;
                min tx interval 50 ms;
                idle tx interval 300 ms;
        };
        interface "gre*" {
                interval 200 ms;
                multiplier 10;
                passive;
        };
        multihop {
                interval 200 ms;
                multiplier 10;
        };

        neighbor 192.168.1.10;
        neighbor 192.168.2.2 dev "eth2";
        neighbor 192.168.10.1 local 192.168.1.1 multihop;
}

6.2 BGP

The Border Gateway Protocol is the routing protocol used for backbone level routing in the today's Internet. Contrary to the other protocols, its convergence doesn't rely on all routers following the same rules for route selection, making it possible to implement any routing policy at any router in the network, the only restriction being that if a router advertises a route, it must accept and forward packets according to it.

BGP works in terms of autonomous systems (often abbreviated as AS). Each AS is a part of the network with common management and common routing policy. It is identified by a unique 16-bit number (ASN). Routers within each AS usually exchange AS-internal routing information with each other using an interior gateway protocol (IGP, such as OSPF or RIP). Boundary routers at the border of the AS communicate global (inter-AS) network reachability information with their neighbors in the neighboring AS'es via exterior BGP (eBGP) and redistribute received information to other routers in the AS via interior BGP (iBGP).

Each BGP router sends to its neighbors updates of the parts of its routing table it wishes to export along with complete path information (a list of AS'es the packet will travel through if it uses the particular route) in order to avoid routing loops.

BIRD supports all requirements of the BGP4 standard as defined in RFC 4271 ftp://ftp.rfc-editor.org/in-notes/rfc4271.txt It also supports the community attributes (RFC 1997 ftp://ftp.rfc-editor.org/in-notes/rfc1997.txt), capability negotiation (RFC 3392 ftp://ftp.rfc-editor.org/in-notes/rfc3392.txt), MD5 password authentication (RFC 2385 ftp://ftp.rfc-editor.org/in-notes/rfc2385.txt), extended communities (RFC 4360 ftp://ftp.rfc-editor.org/in-notes/rfc4360.txt), route reflectors (RFC 4456 ftp://ftp.rfc-editor.org/in-notes/rfc4456.txt), multiprotocol extensions (RFC 4760 ftp://ftp.rfc-editor.org/in-notes/rfc4760.txt), 4B AS numbers (RFC 4893 ftp://ftp.rfc-editor.org/in-notes/rfc4893.txt), and 4B AS numbers in extended communities (RFC 5668 ftp://ftp.rfc-editor.org/in-notes/rfc5668.txt).

For IPv6, it uses the standard multiprotocol extensions defined in RFC 2283 ftp://ftp.rfc-editor.org/in-notes/rfc2283.txt including changes described in the latest draft ftp://ftp.rfc-editor.org/internet-drafts/draft-ietf-idr-bgp4-multiprotocol-v2-05.txt and applied to IPv6 according to RFC 2545 ftp://ftp.rfc-editor.org/in-notes/rfc2545.txt.

Route selection rules

BGP doesn't have any simple metric, so the rules for selection of an optimal route among multiple BGP routes with the same preference are a bit more complex and they are implemented according to the following algorithm. It starts the first rule, if there are more "best" routes, then it uses the second rule to choose among them and so on.

  • Prefer route with the highest Local Preference attribute.
  • Prefer route with the shortest AS path.
  • Prefer IGP origin over EGP and EGP origin over incomplete.
  • Prefer the lowest value of the Multiple Exit Discriminator.
  • Prefer routes received via eBGP over ones received via iBGP.
  • Prefer routes with lower internal distance to a boundary router.
  • Prefer the route with the lowest value of router ID of the advertising router.

IGP routing table

BGP is mainly concerned with global network reachability and with routes to other autonomous systems. When such routes are redistributed to routers in the AS via BGP, they contain IP addresses of a boundary routers (in route attribute NEXT_HOP). BGP depends on existing IGP routing table with AS-internal routes to determine immediate next hops for routes and to know their internal distances to boundary routers for the purpose of BGP route selection. In BIRD, there is usually one routing table used for both IGP routes and BGP routes.

Configuration

Each instance of the BGP corresponds to one neighboring router. This allows to set routing policy and all the other parameters differently for each neighbor using the following configuration parameters:

local [ip] as number

Define which AS we are part of. (Note that contrary to other IP routers, BIRD is able to act as a router located in multiple AS'es simultaneously, but in such cases you need to tweak the BGP paths manually in the filters to get consistent behavior.) Optional ip argument specifies a source address, equivalent to the source address option (see below). This parameter is mandatory.

neighbor ip as number

Define neighboring router this instance will be talking to and what AS it's located in. In case the neighbor is in the same AS as we are, we automatically switch to iBGP. This parameter is mandatory.

direct

Specify that the neighbor is directly connected. The IP address of the neighbor must be from a directly reachable IP range (i.e. associated with one of your router's interfaces), otherwise the BGP session wouldn't start but it would wait for such interface to appear. The alternative is the multihop option. Default: enabled for eBGP.

multihop [number]

Configure multihop BGP session to a neighbor that isn't directly connected. Accurately, this option should be used if the configured neighbor IP address does not match with any local network subnets. Such IP address have to be reachable through system routing table. The alternative is the direct option. For multihop BGP it is recommended to explicitly configure the source address to have it stable. Optional number argument can be used to specify the number of hops (used for TTL). Note that the number of networks (edges) in a path is counted; i.e., if two BGP speakers are separated by one router, the number of hops is 2. Default: enabled for iBGP.

source address ip

Define local address we should use for next hop calculation and as a source address for the BGP session. Default: the address of the local end of the interface our neighbor is connected to.

next hop self

Avoid calculation of the Next Hop attribute and always advertise our own source address as a next hop. This needs to be used only occasionally to circumvent misconfigurations of other routers. Default: disabled.

next hop keep

Forward the received Next Hop attribute even in situations where the local address should be used instead, like when the route is sent to an interface with a different subnet. Default: disabled.

missing lladdr self|drop|ignore

Next Hop attribute in BGP-IPv6 sometimes contains just the global IPv6 address, but sometimes it has to contain both global and link-local IPv6 addresses. This option specifies what to do if BIRD have to send both addresses but does not know link-local address. This situation might happen when routes from other protocols are exported to BGP, or when improper updates are received from BGP peers. self means that BIRD advertises its own local address instead. drop means that BIRD skips that prefixes and logs error. ignore means that BIRD ignores the problem and sends just the global address (and therefore forms improper BGP update). Default: self, unless BIRD is configured as a route server (option rs client), in that case default is ignore, because route servers usually do not forward packets themselves.

gateway direct|recursive

For received routes, their gw (immediate next hop) attribute is computed from received bgp_next_hop attribute. This option specifies how it is computed. Direct mode means that the IP address from bgp_next_hop is used if it is directly reachable, otherwise the neighbor IP address is used. Recursive mode means that the gateway is computed by an IGP routing table lookup for the IP address from bgp_next_hop. Recursive mode is the behavior specified by the BGP standard. Direct mode is simpler, does not require any routes in a routing table, and was used in older versions of BIRD, but does not handle well nontrivial iBGP setups and multihop. Recursive mode is incompatible with sorted tables. Default: direct for direct sessions, recursive for multihop sessions.

igp table name

Specifies a table that is used as an IGP routing table. Default: the same as the table BGP is connected to.

bfd switch

BGP could use BFD protocol as an advisory mechanism for neighbor liveness and failure detection. If enabled, BIRD setups a BFD session for the BGP neighbor and tracks its liveness by it. This has an advantage of an order of magnitude lower detection times in case of failure. Note that BFD protocol also has to be configured, see BFD section for details. Default: disabled.

ttl security switch

Use GTSM (RFC 5082 - the generalized TTL security mechanism). GTSM protects against spoofed packets by ignoring received packets with a smaller than expected TTL. To work properly, GTSM have to be enabled on both sides of a BGP session. If both ttl security and multihop options are enabled, multihop option should specify proper hop value to compute expected TTL. Kernel support required: Linux: 2.6.34+ (IPv4), 2.6.35+ (IPv6), BSD: since long ago, IPv4 only. Note that full (ICMP protection, for example) RFC 5082 support is provided by Linux only. Default: disabled.

password string

Use this password for MD5 authentication of BGP sessions. Default: no authentication. Password has to be set by external utility (e.g. setkey(8)) on BSD systems.

passive switch

Standard BGP behavior is both initiating outgoing connections and accepting incoming connections. In passive mode, outgoing connections are not initiated. Default: off.

rr client

Be a route reflector and treat the neighbor as a route reflection client. Default: disabled.

rr cluster id IPv4 address

Route reflectors use cluster id to avoid route reflection loops. When there is one route reflector in a cluster it usually uses its router id as a cluster id, but when there are more route reflectors in a cluster, these need to be configured (using this option) to use a common cluster id. Clients in a cluster need not know their cluster id and this option is not allowed for them. Default: the same as router id.

rs client

Be a route server and treat the neighbor as a route server client. A route server is used as a replacement for full mesh EBGP routing in Internet exchange points in a similar way to route reflectors used in IBGP routing. BIRD does not implement obsoleted RFC 1863, but uses ad-hoc implementation, which behaves like plain EBGP but reduces modifications to advertised route attributes to be transparent (for example does not prepend its AS number to AS PATH attribute and keeps MED attribute). Default: disabled.

secondary switch

Usually, if an import filter rejects a selected route, no other route is propagated for that network. This option allows to try the next route in order until one that is accepted is found or all routes for that network are rejected. This can be used for route servers that need to propagate different tables to each client but do not want to have these tables explicitly (to conserve memory). This option requires that the connected routing table is sorted. Default: off.

allow local as [number]

BGP prevents routing loops by rejecting received routes with the local AS number in the AS path. This option allows to loose or disable the check. Optional number argument can be used to specify the maximum number of local ASNs in the AS path that is allowed for received routes. When the option is used without the argument, the check is completely disabled and you should ensure loop-free behavior by some other means. Default: 0 (no local AS number allowed).

enable route refresh switch

When BGP speaker changes its import filter, it has to re-examine all routes received from its neighbor against the new filter. As these routes might not be available, there is a BGP protocol extension Route Refresh (specified in RFC 2918) that allows BGP speaker to request re-advertisement of all routes from its neighbor. This option specifies whether BIRD advertises this capability and accepts such requests. Even when disabled, BIRD can send route refresh requests. Default: on.

interpret communities switch

RFC 1997 demands that BGP speaker should process well-known communities like no-export (65535, 65281) or no-advertise (65535, 65282). For example, received route carrying a no-adverise community should not be advertised to any of its neighbors. If this option is enabled (which is by default), BIRD has such behavior automatically (it is evaluated when a route is exported to the BGP protocol just before the export filter). Otherwise, this integrated processing of well-known communities is disabled. In that case, similar behavior can be implemented in the export filter. Default: on.

enable as4 switch

BGP protocol was designed to use 2B AS numbers and was extended later to allow 4B AS number. BIRD supports 4B AS extension, but by disabling this option it can be persuaded not to advertise it and to maintain old-style sessions with its neighbors. This might be useful for circumventing bugs in neighbor's implementation of 4B AS extension. Even when disabled (off), BIRD behaves internally as AS4-aware BGP router. Default: on.

capabilities switch

Use capability advertisement to advertise optional capabilities. This is standard behavior for newer BGP implementations, but there might be some older BGP implementations that reject such connection attempts. When disabled (off), features that request it (4B AS support) are also disabled. Default: on, with automatic fallback to off when received capability-related error.

advertise ipv4 switch

Advertise IPv4 multiprotocol capability. This is not a correct behavior according to the strict interpretation of RFC 4760, but it is widespread and required by some BGP implementations (Cisco and Quagga). This option is relevant to IPv4 mode with enabled capability advertisement only. Default: on.

route limit number

The maximal number of routes that may be imported from the protocol. If the route limit is exceeded, the connection is closed with an error. Limit is currently implemented as import limit number action restart. This option is obsolete and it is replaced by import limit option. Default: no limit.

disable after error switch

When an error is encountered (either locally or by the other side), disable the instance automatically and wait for an administrator to fix the problem manually. Default: off.

hold time number

Time in seconds to wait for a Keepalive message from the other side before considering the connection stale. Default: depends on agreement with the neighboring router, we prefer 240 seconds if the other side is willing to accept it.

startup hold time number

Value of the hold timer used before the routers have a chance to exchange open messages and agree on the real value. Default: 240 seconds.

keepalive time number

Delay in seconds between sending of two consecutive Keepalive messages. Default: One third of the hold time.

connect retry time number

Time in seconds to wait before retrying a failed attempt to connect. Default: 120 seconds.

start delay time number

Delay in seconds between protocol startup and the first attempt to connect. Default: 5 seconds.

error wait time number,number

Minimum and maximum delay in seconds between a protocol failure (either local or reported by the peer) and automatic restart. Doesn't apply when disable after error is configured. If consecutive errors happen, the delay is increased exponentially until it reaches the maximum. Default: 60, 300.

error forget time number

Maximum time in seconds between two protocol failures to treat them as a error sequence which makes the error wait time increase exponentially. Default: 300 seconds.

path metric switch

Enable comparison of path lengths when deciding which BGP route is the best one. Default: on.

med metric switch

Enable comparison of MED attributes (during best route selection) even between routes received from different ASes. This may be useful if all MED attributes contain some consistent metric, perhaps enforced in import filters of AS boundary routers. If this option is disabled, MED attributes are compared only if routes are received from the same AS (which is the standard behavior). Default: off.

deterministic med switch

BGP route selection algorithm is often viewed as a comparison between individual routes (e.g. if a new route appears and is better than the current best one, it is chosen as the new best one). But the proper route selection, as specified by RFC 4271, cannot be fully implemented in that way. The problem is mainly in handling the MED attribute. BIRD, by default, uses an simplification based on individual route comparison, which in some cases may lead to temporally dependent behavior (i.e. the selection is dependent on the order in which routes appeared). This option enables a different (and slower) algorithm implementing proper RFC 4271 route selection, which is deterministic. Alternative way how to get deterministic behavior is to use med metric option. This option is incompatible with sorted tables. Default: off.

igp metric switch

Enable comparison of internal distances to boundary routers during best route selection. Default: on.

prefer older switch

Standard route selection algorithm breaks ties by comparing router IDs. This changes the behavior to prefer older routes (when both are external and from different peer). For details, see RFC 5004. Default: off.

default bgp_med number

Value of the Multiple Exit Discriminator to be used during route selection when the MED attribute is missing. Default: 0.

default bgp_local_pref number

A default value for the Local Preference attribute. It is used when a new Local Preference attribute is attached to a route by the BGP protocol itself (for example, if a route is received through eBGP and therefore does not have such attribute). Default: 100 (0 in pre-1.2.0 versions of BIRD).

Attributes

BGP defines several route attributes. Some of them (those marked with `I' in the table below) are available on internal BGP connections only, some of them (marked with `O') are optional.

bgppath bgp_path

Sequence of AS numbers describing the AS path the packet will travel through when forwarded according to the particular route. In case of internal BGP it doesn't contain the number of the local AS.

int bgp_local_pref [I]

Local preference value used for selection among multiple BGP routes (see the selection rules above). It's used as an additional metric which is propagated through the whole local AS.

int bgp_med [O]

The Multiple Exit Discriminator of the route is an optional attribute which is used on external (inter-AS) links to convey to an adjacent AS the optimal entry point into the local AS. The received attribute is also propagated over internal BGP links. The attribute value is zeroed when a route is exported to an external BGP instance to ensure that the attribute received from a neighboring AS is not propagated to other neighboring ASes. A new value might be set in the export filter of an external BGP instance. See RFC 4451 ftp://ftp.rfc-editor.org/in-notes/rfc4451.txt for further discussion of BGP MED attribute.

enum bgp_origin

Origin of the route: either ORIGIN_IGP if the route has originated in an interior routing protocol or ORIGIN_EGP if it's been imported from the EGP protocol (nowadays it seems to be obsolete) or ORIGIN_INCOMPLETE if the origin is unknown.

ip bgp_next_hop

Next hop to be used for forwarding of packets to this destination. On internal BGP connections, it's an address of the originating router if it's inside the local AS or a boundary router the packet will leave the AS through if it's an exterior route, so each BGP speaker within the AS has a chance to use the shortest interior path possible to this point.

void bgp_atomic_aggr [O]

This is an optional attribute which carries no value, but the sole presence of which indicates that the route has been aggregated from multiple routes by some router on the path from the originator.

clist bgp_community [O]

List of community values associated with the route. Each such value is a pair (represented as a pair data type inside the filters) of 16-bit integers, the first of them containing the number of the AS which defines the community and the second one being a per-AS identifier. There are lots of uses of the community mechanism, but generally they are used to carry policy information like "don't export to USA peers". As each AS can define its own routing policy, it also has a complete freedom about which community attributes it defines and what will their semantics be.

eclist bgp_ext_community [O]

List of extended community values associated with the route. Extended communities have similar usage as plain communities, but they have an extended range (to allow 4B ASNs) and a nontrivial structure with a type field. Individual community values are represented using an ec data type inside the filters.

quad bgp_originator_id [I, O]

This attribute is created by the route reflector when reflecting the route and contains the router ID of the originator of the route in the local AS.

clist bgp_cluster_list [I, O]

This attribute contains a list of cluster IDs of route reflectors. Each route reflector prepends its cluster ID when reflecting the route.

Example


protocol bgp {
        local as 65000;                      # Use a private AS number
        neighbor 198.51.100.130 as 64496;    # Our neighbor ...
        multihop;                            # ... which is connected indirectly
        export filter {                      # We use non-trivial export rules
                if source = RTS_STATIC then { # Export only static routes
                        # Assign our community
                        bgp_community.add((65000,64501));
                        # Artificially increase path length
                        # by advertising local AS number twice
                        if bgp_path ~ [= 65000 =] then
                                bgp_path.prepend(65000);
                        accept;
                }
                reject;
        };
        import all;
        source address 198.51.100.14;   # Use a non-standard source address
}

6.3 Device

The Device protocol is not a real routing protocol. It doesn't generate any routes and it only serves as a module for getting information about network interfaces from the kernel.

Except for very unusual circumstances, you probably should include this protocol in the configuration since almost all other protocols require network interfaces to be defined for them to work with.

Configuration

scan time number

Time in seconds between two scans of the network interface list. On systems where we are notified about interface status changes asynchronously (such as newer versions of Linux), we need to scan the list only in order to avoid confusion by lost notification messages, so the default time is set to a large value.

primary [ "mask" ] prefix

If a network interface has more than one network address, BIRD has to choose one of them as a primary one. By default, BIRD chooses the lexicographically smallest address as the primary one.

This option allows to specify which network address should be chosen as a primary one. Network addresses that match prefix are preferred to non-matching addresses. If more primary options are used, the first one has the highest preference. If "mask" is specified, then such primary option is relevant only to matching network interfaces.

In all cases, an address marked by operating system as secondary cannot be chosen as the primary one.

As the Device protocol doesn't generate any routes, it cannot have any attributes. Example configuration looks like this:


protocol device {
        scan time 10;           # Scan the interfaces often
        primary "eth0" 192.168.1.1;
        primary 192.168.0.0/16;
}

6.4 Direct

The Direct protocol is a simple generator of device routes for all the directly connected networks according to the list of interfaces provided by the kernel via the Device protocol.

The question is whether it is a good idea to have such device routes in BIRD routing table. OS kernel usually handles device routes for directly connected networks by itself so we don't need (and don't want) to export these routes to the kernel protocol. OSPF protocol creates device routes for its interfaces itself and BGP protocol is usually used for exporting aggregate routes. Although there are some use cases that use the direct protocol (like abusing eBGP as an IGP routing protocol), in most cases it is not needed to have these device routes in BIRD routing table and to use the direct protocol.

There is one notable case when you definitely want to use the direct protocol -- running BIRD on BSD systems. Having high priority device routes for directly connected networks from the direct protocol protects kernel device routes from being overwritten or removed by IGP routes during some transient network conditions, because a lower priority IGP route for the same network is not exported to the kernel routing table. This is an issue on BSD systems only, as on Linux systems BIRD cannot change non-BIRD route in the kernel routing table.

The only configurable thing about direct is what interfaces it watches:

interface pattern [, ...]

By default, the Direct protocol will generate device routes for all the interfaces available. If you want to restrict it to some subset of interfaces (for example if you're using multiple routing tables for policy routing and some of the policy domains don't contain all interfaces), just use this clause.

Direct device routes don't contain any specific attributes.

Example config might look like this:


protocol direct {
        interface "-arc*", "*";         # Exclude the ARCnets
}

6.5 Kernel

The Kernel protocol is not a real routing protocol. Instead of communicating with other routers in the network, it performs synchronization of BIRD's routing tables with the OS kernel. Basically, it sends all routing table updates to the kernel and from time to time it scans the kernel tables to see whether some routes have disappeared (for example due to unnoticed up/down transition of an interface) or whether an `alien' route has been added by someone else (depending on the learn switch, such routes are either ignored or accepted to our table).

Unfortunately, there is one thing that makes the routing table synchronization a bit more complicated. In the kernel routing table there are also device routes for directly connected networks. These routes are usually managed by OS itself (as a part of IP address configuration) and we don't want to touch that. They are completely ignored during the scan of the kernel tables and also the export of device routes from BIRD tables to kernel routing tables is restricted to prevent accidental interference. This restriction can be disabled using device routes switch.

If your OS supports only a single routing table, you can configure only one instance of the Kernel protocol. If it supports multiple tables (in order to allow policy routing; such an OS is for example Linux), you can run as many instances as you want, but each of them must be connected to a different BIRD routing table and to a different kernel table.

Because the kernel protocol is partially integrated with the connected routing table, there are two limitations - it is not possible to connect more kernel protocols to the same routing table and changing route destination/gateway in an export filter of a kernel protocol does not work. Both limitations can be overcome using another routing table and the pipe protocol.

Configuration

persist switch

Tell BIRD to leave all its routes in the routing tables when it exits (instead of cleaning them up).

scan time number

Time in seconds between two consecutive scans of the kernel routing table.

learn switch

Enable learning of routes added to the kernel routing tables by other routing daemons or by the system administrator. This is possible only on systems which support identification of route authorship.

device routes switch

Enable export of device routes to the kernel routing table. By default, such routes are rejected (with the exception of explicitly configured device routes from the static protocol) regardless of the export filter to protect device routes in kernel routing table (managed by OS itself) from accidental overwriting or erasing.

kernel table number

Select which kernel table should this particular instance of the Kernel protocol work with. Available only on systems supporting multiple routing tables.

Attributes

The Kernel protocol defines several attributes. These attributes are translated to appropriate system (and OS-specific) route attributes. We support these attributes:

int krt_source

The original source of the imported kernel route. The value is system-dependent. On Linux, it is a value of the protocol field of the route. See /etc/iproute2/rt_protos for common values. On BSD, it is based on STATIC and PROTOx flags. The attribute is read-only.

int krt_metric

The kernel metric of the route. When multiple same routes are in a kernel routing table, the Linux kernel chooses one with lower metric.

ip krt_prefsrc

(Linux) The preferred source address. Used in source address selection for outgoing packets. Have to be one of IP addresses of the router.

int krt_realm

(Linux) The realm of the route. Can be used for traffic classification.

Example

A simple configuration can look this way:


protocol kernel {
        export all;
}

Or for a system with two routing tables:


protocol kernel {               # Primary routing table
        learn;                  # Learn alien routes from the kernel
        persist;                # Don't remove routes on bird shutdown
        scan time 10;           # Scan kernel routing table every 10 seconds
        import all;
        export all;
}

protocol kernel {               # Secondary routing table
        table auxtable;
        kernel table 100;
        export all;
}

6.6 OSPF

Introduction

Open Shortest Path First (OSPF) is a quite complex interior gateway protocol. The current IPv4 version (OSPFv2) is defined in RFC 2328 ftp://ftp.rfc-editor.org/in-notes/rfc2328.txt and the current IPv6 version (OSPFv3) is defined in RFC 5340 ftp://ftp.rfc-editor.org/in-notes/rfc5340.txt It's a link state (a.k.a. shortest path first) protocol -- each router maintains a database describing the autonomous system's topology. Each participating router has an identical copy of the database and all routers run the same algorithm calculating a shortest path tree with themselves as a root. OSPF chooses the least cost path as the best path.

In OSPF, the autonomous system can be split to several areas in order to reduce the amount of resources consumed for exchanging the routing information and to protect the other areas from incorrect routing data. Topology of the area is hidden to the rest of the autonomous system.

Another very important feature of OSPF is that it can keep routing information from other protocols (like Static or BGP) in its link state database as external routes. Each external route can be tagged by the advertising router, making it possible to pass additional information between routers on the boundary of the autonomous system.

OSPF quickly detects topological changes in the autonomous system (such as router interface failures) and calculates new loop-free routes after a short period of convergence. Only a minimal amount of routing traffic is involved.

Each router participating in OSPF routing periodically sends Hello messages to all its interfaces. This allows neighbors to be discovered dynamically. Then the neighbors exchange theirs parts of the link state database and keep it identical by flooding updates. The flooding process is reliable and ensures that each router detects all changes.

Configuration

In the main part of configuration, there can be multiple definitions of OSPF areas, each with a different id. These definitions includes many other switches and multiple definitions of interfaces. Definition of interface may contain many switches and constant definitions and list of neighbors on nonbroadcast networks.


protocol ospf <name> {
        rfc1583compat <switch>;
        stub router <switch>;
        tick <num>;
        ecmp <switch> [limit <num>];
        area <id> {
                stub;
                nssa;
                summary <switch>;
                default nssa <switch>;
                default cost <num>;
                default cost2 <num>;
                translator <switch>;
                translator stability <num>;

                networks {
                        <prefix>;
                        <prefix> hidden;
                }
                external {
                        <prefix>;
                        <prefix> hidden;
                        <prefix> tag <num>;
                }
                stubnet <prefix>;
                stubnet <prefix> {
                        hidden <switch>;
                        summary <switch>;
                        cost <num>;
                }
                interface <interface pattern> [instance <num>] {
                        cost <num>;
                        stub <switch>;
                        hello <num>;
                        poll <num>;
                        retransmit <num>;
                        priority <num>;
                        wait <num>;
                        dead count <num>;
                        dead <num>;
                        rx buffer [normal|large|<num>];
                        type [broadcast|bcast|pointopoint|ptp|
                                nonbroadcast|nbma|pointomultipoint|ptmp];
                        strict nonbroadcast <switch>;
                        real broadcast <switch>;
                        ptp netmask <switch>;
                        check link <switch>;
                        bfd <switch>;
                        ecmp weight <num>;
                        ttl security [<switch>; | tx only]
                        tx class|dscp <num>;
                        tx priority <num>;
                        authentication [none|simple|cryptographic];
                        password "<text>";
                        password "<text>" {
                                id <num>;
                                generate from "<date>";
                                generate to "<date>";
                                accept from "<date>";
                                accept to "<date>";
                        };
                        neighbors {
                                <ip>;
                                <ip> eligible;
                        };
                };
                virtual link <id> [instance <num>] {
                        hello <num>;
                        retransmit <num>;
                        wait <num>;
                        dead count <num>;
                        dead <num>;
                        authentication [none|simple|cryptographic];
                        password "<text>";
                };
        };
}

rfc1583compat switch

This option controls compatibility of routing table calculation with RFC 1583 ftp://ftp.rfc-editor.org/in-notes/rfc1583.txt. Default value is no.

stub router switch

This option configures the router to be a stub router, i.e., a router that participates in the OSPF topology but does not allow transit traffic. In OSPFv2, this is implemented by advertising maximum metric for outgoing links, as suggested by RFC 3137 ftp://ftp.rfc-editor.org/in-notes/rfc3137.txt. In OSPFv3, the stub router behavior is announced by clearing the R-bit in the router LSA. Default value is no.

tick num

The routing table calculation and clean-up of areas' databases is not performed when a single link state change arrives. To lower the CPU utilization, it's processed later at periodical intervals of num seconds. The default value is 1.

ecmp switch [limit number]

This option specifies whether OSPF is allowed to generate ECMP (equal-cost multipath) routes. Such routes are used when there are several directions to the destination, each with the same (computed) cost. This option also allows to specify a limit on maximal number of nexthops in one route. By default, ECMP is disabled. If enabled, default value of the limit is 16.

area id

This defines an OSPF area with given area ID (an integer or an IPv4 address, similarly to a router ID). The most important area is the backbone (ID 0) to which every other area must be connected.

stub

This option configures the area to be a stub area. External routes are not flooded into stub areas. Also summary LSAs can be limited in stub areas (see option summary). By default, the area is not a stub area.

nssa

This option configures the area to be a NSSA (Not-So-Stubby Area). NSSA is a variant of a stub area which allows a limited way of external route propagation. Global external routes are not propagated into a NSSA, but an external route can be imported into NSSA as a (area-wide) NSSA-LSA (and possibly translated and/or aggregated on area boundary). By default, the area is not NSSA.

summary switch

This option controls propagation of summary LSAs into stub or NSSA areas. If enabled, summary LSAs are propagated as usual, otherwise just the default summary route (0.0.0.0/0) is propagated (this is sometimes called totally stubby area). If a stub area has more area boundary routers, propagating summary LSAs could lead to more efficient routing at the cost of larger link state database. Default value is no.

default nssa switch

When summary option is enabled, default summary route is no longer propagated to the NSSA. In that case, this option allows to originate default route as NSSA-LSA to the NSSA. Default value is no.

default cost num

This option controls the cost of a default route propagated to stub and NSSA areas. Default value is 1000.

default cost2 num

When a default route is originated as NSSA-LSA, its cost can use either type 1 or type 2 metric. This option allows to specify the cost of a default route in type 2 metric. By default, type 1 metric (option default cost) is used.

translator switch

This option controls translation of NSSA-LSAs into external LSAs. By default, one translator per NSSA is automatically elected from area boundary routers. If enabled, this area boundary router would unconditionally translate all NSSA-LSAs regardless of translator election. Default value is no.

translator stability num

This option controls the translator stability interval (in seconds). When the new translator is elected, the old one keeps translating until the interval is over. Default value is 40.

networks { set }

Definition of area IP ranges. This is used in summary LSA origination. Hidden networks are not propagated into other areas.

external { set }

Definition of external area IP ranges for NSSAs. This is used for NSSA-LSA translation. Hidden networks are not translated into external LSAs. Networks can have configured route tag.

stubnet prefix { options }

Stub networks are networks that are not transit networks between OSPF routers. They are also propagated through an OSPF area as a part of a link state database. By default, BIRD generates a stub network record for each primary network address on each OSPF interface that does not have any OSPF neighbors, and also for each non-primary network address on each OSPF interface. This option allows to alter a set of stub networks propagated by this router.

Each instance of this option adds a stub network with given network prefix to the set of propagated stub network, unless option hidden is used. It also suppresses default stub networks for given network prefix. When option summary is used, also default stub networks that are subnetworks of given stub network are suppressed. This might be used, for example, to aggregate generated stub networks.

interface pattern [instance num]

Defines that the specified interfaces belong to the area being defined. See interface common option for detailed description. In OSPFv3, you can specify instance ID for that interface description, so it is possible to have several instances of that interface with different options or even in different areas.

virtual link id [instance num]

Virtual link to router with the router id. Virtual link acts as a point-to-point interface belonging to backbone. The actual area is used as transport area. This item cannot be in the backbone. In OSPFv3, you could also use several virtual links to one destination with different instance IDs.

cost num

Specifies output cost (metric) of an interface. Default value is 10.

stub switch

If set to interface it does not listen to any packet and does not send any hello. Default value is no.

hello num

Specifies interval in seconds between sending of Hello messages. Beware, all routers on the same network need to have the same hello interval. Default value is 10.

poll num

Specifies interval in seconds between sending of Hello messages for some neighbors on NBMA network. Default value is 20.

retransmit num

Specifies interval in seconds between retransmissions of unacknowledged updates. Default value is 5.

priority num

On every multiple access network (e.g., the Ethernet) Designed Router and Backup Designed router are elected. These routers have some special functions in the flooding process. Higher priority increases preferences in this election. Routers with priority 0 are not eligible. Default value is 1.

wait num

After start, router waits for the specified number of seconds between starting election and building adjacency. Default value is 40.

dead count num

When the router does not receive any messages from a neighbor in dead count*hello seconds, it will consider the neighbor down.

dead num

When the router does not receive any messages from a neighbor in dead seconds, it will consider the neighbor down. If both directives dead count and dead are used, dead has precendence.

rx buffer num

This sets the size of buffer used for receiving packets. The buffer should be bigger than maximal size of any packets. Value NORMAL (default) means 2*MTU, value LARGE means maximal allowed packet - 65535.

type broadcast|bcast

BIRD detects a type of a connected network automatically, but sometimes it's convenient to force use of a different type manually. On broadcast networks (like ethernet), flooding and Hello messages are sent using multicasts (a single packet for all the neighbors). A designated router is elected and it is responsible for synchronizing the link-state databases and originating network LSAs. This network type cannot be used on physically NBMA networks and on unnumbered networks (networks without proper IP prefix).

type pointopoint|ptp

Point-to-point networks connect just 2 routers together. No election is performed and no network LSA is originated, which makes it simpler and faster to establish. This network type is useful not only for physically PtP ifaces (like PPP or tunnels), but also for broadcast networks used as PtP links. This network type cannot be used on physically NBMA networks.

type nonbroadcast|nbma

On NBMA networks, the packets are sent to each neighbor separately because of lack of multicast capabilities. Like on broadcast networks, a designated router is elected, which plays a central role in propagation of LSAs. This network type cannot be used on unnumbered networks.

type pointomultipoint|ptmp

This is another network type designed to handle NBMA networks. In this case the NBMA network is treated as a collection of PtP links. This is useful if not every pair of routers on the NBMA network has direct communication, or if the NBMA network is used as an (possibly unnumbered) PtP link.

strict nonbroadcast switch

If set, don't send hello to any undefined neighbor. This switch is ignored on other than NBMA or PtMP networks. Default value is no.

real broadcast switch

In type broadcast or type ptp network configuration, OSPF packets are sent as IP multicast packets. This option changes the behavior to using old-fashioned IP broadcast packets. This may be useful as a workaround if IP multicast for some reason does not work or does not work reliably. This is a non-standard option and probably is not interoperable with other OSPF implementations. Default value is no.

ptp netmask switch

In type ptp network configurations, OSPFv2 implementations should ignore received netmask field in hello packets and should send hello packets with zero netmask field on unnumbered PtP links. But some OSPFv2 implementations perform netmask checking even for PtP links. This option specifies whether real netmask will be used in hello packets on type ptp interfaces. You should ignore this option unless you meet some compatibility problems related to this issue. Default value is no for unnumbered PtP links, yes otherwise.

check link switch

If set, a hardware link state (reported by OS) is taken into consideration. When a link disappears (e.g. an ethernet cable is unplugged), neighbors are immediately considered unreachable and only the address of the iface (instead of whole network prefix) is propagated. It is possible that some hardware drivers or platforms do not implement this feature. Default value is no.

bfd switch

OSPF could use BFD protocol as an advisory mechanism for neighbor liveness and failure detection. If enabled, BIRD setups a BFD session for each OSPF neighbor and tracks its liveness by it. This has an advantage of an order of magnitude lower detection times in case of failure. Note that BFD protocol also has to be configured, see BFD section for details. Default value is no.

ttl security [switch | tx only]

TTL security is a feature that protects routing protocols from remote spoofed packets by using TTL 255 instead of TTL 1 for protocol packets destined to neighbors. Because TTL is decremented when packets are forwarded, it is non-trivial to spoof packets with TTL 255 from remote locations. Note that this option would interfere with OSPF virtual links.

If this option is enabled, the router will send OSPF packets with TTL 255 and drop received packets with TTL less than 255. If this option si set to tx only, TTL 255 is used for sent packets, but is not checked for received packets. Default value is no.

tx class|dscp|priority num

These options specify the ToS/DiffServ/Traffic class/Priority of the outgoing OSPF packets. See tx class common option for detailed description.

ecmp weight num

When ECMP (multipath) routes are allowed, this value specifies a relative weight used for nexthops going through the iface. Allowed values are 1-256. Default value is 1.

authentication none

No passwords are sent in OSPF packets. This is the default value.

authentication simple

Every packet carries 8 bytes of password. Received packets lacking this password are ignored. This authentication mechanism is very weak.

authentication cryptographic

16-byte long MD5 digest is appended to every packet. For the digest generation 16-byte long passwords are used. Those passwords are not sent via network, so this mechanism is quite secure. Packets can still be read by an attacker.

password "text"

An 8-byte or 16-byte password used for authentication. See password common option for detailed description.

neighbors { set }

A set of neighbors to which Hello messages on NBMA or PtMP networks are to be sent. For NBMA networks, some of them could be marked as eligible. In OSPFv3, link-local addresses should be used, using global ones is possible, but it is nonstandard and might be problematic. And definitely, link-local and global addresses should not be mixed.

Attributes

OSPF defines four route attributes. Each internal route has a metric. Metric is ranging from 1 to infinity (65535). External routes use metric type 1 or metric type 2. A metric of type 1 is comparable with internal metric, a metric of type 2 is always longer than any metric of type 1 or any internal metric. Internal metric or metric of type 1 is stored in attribute ospf_metric1, metric type 2 is stored in attribute ospf_metric2. If you specify both metrics only metric1 is used.

Each external route can also carry attribute ospf_tag which is a 32-bit integer which is used when exporting routes to other protocols; otherwise, it doesn't affect routing inside the OSPF domain at all. The fourth attribute ospf_router_id is a router ID of the router advertising that route/network. This attribute is read-only. Default is ospf_metric2 = 10000 and ospf_tag = 0.

Example


protocol ospf MyOSPF {
        rfc1583compat yes;
        tick 2;
        export filter {
                if source = RTS_BGP then {
                        ospf_metric1 = 100;
                        accept;
                }
                reject;
        };
        area 0.0.0.0 {
                interface "eth*" {
                        cost 11;
                        hello 15;
                        priority 100;
                        retransmit 7;
                        authentication simple;
                        password "aaa";
                };
                interface "ppp*" {
                        cost 100;
                        authentication cryptographic;
                        password "abc" {
                                id 1;
                                generate to "22-04-2003 11:00:06";
                                accept from "17-01-2001 12:01:05";
                        };
                        password "def" {
                                id 2;
                                generate to "22-07-2005 17:03:21";
                                accept from "22-02-2001 11:34:06";
                        };
                };
                interface "arc0" {
                        cost 10;
                        stub yes;
                };
                interface "arc1";
        };
        area 120 {
                stub yes;
                networks {
                        172.16.1.0/24;
                        172.16.2.0/24 hidden;
                }
                interface "-arc0" , "arc*" {
                        type nonbroadcast;
                        authentication none;
                        strict nonbroadcast yes;
                        wait 120;
                        poll 40;
                        dead count 8;
                        neighbors {
                                192.168.120.1 eligible;
                                192.168.120.2;
                                192.168.120.10;
                        };
                };
        };
}

6.7 Pipe

Introduction

The Pipe protocol serves as a link between two routing tables, allowing routes to be passed from a table declared as primary (i.e., the one the pipe is connected to using the table configuration keyword) to the secondary one (declared using peer table) and vice versa, depending on what's allowed by the filters. Export filters control export of routes from the primary table to the secondary one, import filters control the opposite direction.

The Pipe protocol may work in the transparent mode mode or in the opaque mode. In the transparent mode, the Pipe protocol retransmits all routes from one table to the other table, retaining their original source and attributes. If import and export filters are set to accept, then both tables would have the same content. The transparent mode is the default mode.

In the opaque mode, the Pipe protocol retransmits optimal route from one table to the other table in a similar way like other protocols send and receive routes. Retransmitted route will have the source set to the Pipe protocol, which may limit access to protocol specific route attributes. This mode is mainly for compatibility, it is not suggested for new configs. The mode can be changed by mode option.

The primary use of multiple routing tables and the Pipe protocol is for policy routing, where handling of a single packet doesn't depend only on its destination address, but also on its source address, source interface, protocol type and other similar parameters. In many systems (Linux being a good example), the kernel allows to enforce routing policies by defining routing rules which choose one of several routing tables to be used for a packet according to its parameters. Setting of these rules is outside the scope of BIRD's work (on Linux, you can use the ip command), but you can create several routing tables in BIRD, connect them to the kernel ones, use filters to control which routes appear in which tables and also you can employ the Pipe protocol for exporting a selected subset of one table to another one.

Configuration

peer table table

Defines secondary routing table to connect to. The primary one is selected by the table keyword.

mode opaque|transparent

Specifies the mode for the pipe to work in. Default is transparent.

Attributes

The Pipe protocol doesn't define any route attributes.

Example

Let's consider a router which serves as a boundary router of two different autonomous systems, each of them connected to a subset of interfaces of the router, having its own exterior connectivity and wishing to use the other AS as a backup connectivity in case of outage of its own exterior line.

Probably the simplest solution to this situation is to use two routing tables (we'll call them as1 and as2) and set up kernel routing rules, so that packets having arrived from interfaces belonging to the first AS will be routed according to as1 and similarly for the second AS. Thus we have split our router to two logical routers, each one acting on its own routing table, having its own routing protocols on its own interfaces. In order to use the other AS's routes for backup purposes, we can pass the routes between the tables through a Pipe protocol while decreasing their preferences and correcting their BGP paths to reflect the AS boundary crossing.


table as1;                              # Define the tables
table as2;

protocol kernel kern1 {                 # Synchronize them with the kernel
        table as1;
        kernel table 1;
}

protocol kernel kern2 {
        table as2;
        kernel table 2;
}

protocol bgp bgp1 {                     # The outside connections
        table as1;
        local as 1;
        neighbor 192.168.0.1 as 1001;
        export all;
        import all;
}

protocol bgp bgp2 {
        table as2;
        local as 2;
        neighbor 10.0.0.1 as 1002;
        export all;
        import all;
}

protocol pipe {                         # The Pipe
        table as1;
        peer table as2;
        export filter {
                if net ~ [ 1.0.0.0/8+] then {   # Only AS1 networks
                        if preference>10 then preference = preference-10;
                        if source=RTS_BGP then bgp_path.prepend(1);
                        accept;
                }
                reject;
        };
        import filter {
                if net ~ [ 2.0.0.0/8+] then {   # Only AS2 networks
                        if preference>10 then preference = preference-10;
                        if source=RTS_BGP then bgp_path.prepend(2);
                        accept;
                }
                reject;
        };
}

6.8 RAdv

Introduction

The RAdv protocol is an implementation of Router Advertisements, which are used in the IPv6 stateless autoconfiguration. IPv6 routers send (in irregular time intervals or as an answer to a request) advertisement packets to connected networks. These packets contain basic information about a local network (e.g. a list of network prefixes), which allows network hosts to autoconfigure network addresses and choose a default route. BIRD implements router behavior as defined in RFC 4861 ftp://ftp.rfc-editor.org/in-notes/rfc4861.txt and also the DNS extensions from RFC 6106 ftp://ftp.rfc-editor.org/in-notes/rfc6106.txt.

Configuration

There are several classes of definitions in RAdv configuration -- interface definitions, prefix definitions and DNS definitions:

interface pattern [, ...] { options }

Interface definitions specify a set of interfaces on which the protocol is activated and contain interface specific options. See interface common options for detailed description.

prefix prefix { options }

Prefix definitions allow to modify a list of advertised prefixes. By default, the advertised prefixes are the same as the network prefixes assigned to the interface. For each network prefix, the matching prefix definition is found and its options are used. If no matching prefix definition is found, the prefix is used with default options.

Prefix definitions can be either global or interface-specific. The second ones are part of interface options. The prefix definition matching is done in the first-match style, when interface-specific definitions are processed before global definitions. As expected, the prefix definition is matching if the network prefix is a subnet of the prefix in prefix definition.

rdnss { options }

RDNSS definitions allow to specify a list of advertised recursive DNS servers together with their options. As options are seldom necessary, there is also a short variant rdnss address that just specifies one DNS server. Multiple definitions are cumulative. RDNSS definitions may also be interface-specific when used inside interface options. By default, interface uses both global and interface-specific options, but that can be changed by rdnss local option.

dnssl { options }

DNSSL definitions allow to specify a list of advertised DNS search domains together with their options. Like rdnss above, multiple definitions are cumulative, they can be used also as interface-specific options and there is a short variant dnssl domain that just specifies one DNS search domain.

trigger prefix

RAdv protocol could be configured to change its behavior based on availability of routes. When this option is used, the protocol waits in suppressed state until a trigger route (for the specified network) is exported to the protocol, the protocol also returnsd to suppressed state if the trigger route disappears. Note that route export depends on specified export filter, as usual. This option could be used, e.g., for handling failover in multihoming scenarios.

During suppressed state, router advertisements are generated, but with some fields zeroed. Exact behavior depends on which fields are zeroed, this can be configured by sensitive option for appropriate fields. By default, just default lifetime (also called router lifetime) is zeroed, which means hosts cannot use the router as a default router. preferred lifetime and valid lifetime could also be configured as sensitive for a prefix, which would cause autoconfigured IPs to be deprecated or even removed.

Interface specific options:

max ra interval expr

Unsolicited router advertisements are sent in irregular time intervals. This option specifies the maximum length of these intervals, in seconds. Valid values are 4-1800. Default: 600

min ra interval expr

This option specifies the minimum length of that intervals, in seconds. Must be at least 3 and at most 3/4 * max ra interval. Default: about 1/3 * max ra interval.

min delay expr

The minimum delay between two consecutive router advertisements, in seconds. Default: 3

managed switch

This option specifies whether hosts should use DHCPv6 for IP address configuration. Default: no

other config switch

This option specifies whether hosts should use DHCPv6 to receive other configuration information. Default: no

link mtu expr

This option specifies which value of MTU should be used by hosts. 0 means unspecified. Default: 0

reachable time expr

This option specifies the time (in milliseconds) how long hosts should assume a neighbor is reachable (from the last confirmation). Maximum is 3600000, 0 means unspecified. Default 0.

retrans timer expr

This option specifies the time (in milliseconds) how long hosts should wait before retransmitting Neighbor Solicitation messages. 0 means unspecified. Default 0.

current hop limit expr

This option specifies which value of Hop Limit should be used by hosts. Valid values are 0-255, 0 means unspecified. Default: 64

default lifetime expr [sensitive switch]

This option specifies the time (in seconds) how long (after the receipt of RA) hosts may use the router as a default router. 0 means do not use as a default router. For sensitive option, see trigger. Default: 3 * max ra interval, sensitive yes.

rdnss local switch

Use only local (interface-specific) RDNSS definitions for this interface. Otherwise, both global and local definitions are used. Could also be used to disable RDNSS for given interface if no local definitons are specified. Default: no.

dnssl local switch

Use only local DNSSL definitions for this interface. See rdnss local option above. Default: no.

Prefix specific options:

skip switch

This option allows to specify that given prefix should not be advertised. This is useful for making exceptions from a default policy of advertising all prefixes. Note that for withdrawing an already advertised prefix it is more useful to advertise it with zero valid lifetime. Default: no

onlink switch

This option specifies whether hosts may use the advertised prefix for onlink determination. Default: yes

autonomous switch

This option specifies whether hosts may use the advertised prefix for stateless autoconfiguration. Default: yes

valid lifetime expr [sensitive switch]

This option specifies the time (in seconds) how long (after the receipt of RA) the prefix information is valid, i.e., autoconfigured IP addresses can be assigned and hosts with that IP addresses are considered directly reachable. 0 means the prefix is no longer valid. For sensitive option, see trigger. Default: 86400 (1 day), sensitive no.

preferred lifetime expr [sensitive switch]

This option specifies the time (in seconds) how long (after the receipt of RA) IP addresses generated from the prefix using stateless autoconfiguration remain preferred. For sensitive option, see trigger. Default: 14400 (4 hours), sensitive no.

RDNSS specific options:

ns address

This option specifies one recursive DNS server. Can be used multiple times for multiple servers. It is mandatory to have at least one ns option in rdnss definition.

lifetime [mult] expr

This option specifies the time how long the RDNSS information may be used by clients after the receipt of RA. It is expressed either in seconds or (when mult is used) in multiples of max ra interval. Note that RDNSS information is also invalidated when default lifetime expires. 0 means these addresses are no longer valid DNS servers. Default: 3 * max ra interval.

DNSSL specific options:

domain address

This option specifies one DNS search domain. Can be used multiple times for multiple domains. It is mandatory to have at least one domain option in dnssl definition.

lifetime [mult] expr

This option specifies the time how long the DNSSL information may be used by clients after the receipt of RA. Details are the same as for RDNSS lifetime option above. Default: 3 * max ra interval.

Example


protocol radv {
        interface "eth2" {
                max ra interval 5;      # Fast failover with more routers
                managed yes;            # Using DHCPv6 on eth2
                prefix ::/0 {
                        autonomous off; # So do not autoconfigure any IP
                };
        };

        interface "eth*";               # No need for any other options

        prefix 2001:0DB8:1234::/48 {
                preferred lifetime 0;   # Deprecated address range
        };

        prefix 2001:0DB8:2000::/48 {
                autonomous off;         # Do not autoconfigure
        };

        rdnss 2001:0DB8:1234::10;       # Short form of RDNSS

        rdnss {
                lifetime mult 10;
                ns 2001:0DB8:1234::11;
                ns 2001:0DB8:1234::12;
        };

        dnssl {
                lifetime 3600;
                domain "abc.com";
                domain "xyz.com";
        };
}

6.9 RIP

Introduction

The RIP protocol (also sometimes called Rest In Pieces) is a simple protocol, where each router broadcasts (to all its neighbors) distances to all networks it can reach. When a router hears distance to another network, it increments it and broadcasts it back. Broadcasts are done in regular intervals. Therefore, if some network goes unreachable, routers keep telling each other that its distance is the original distance plus 1 (actually, plus interface metric, which is usually one). After some time, the distance reaches infinity (that's 15 in RIP) and all routers know that network is unreachable. RIP tries to minimize situations where counting to infinity is necessary, because it is slow. Due to infinity being 16, you can't use RIP on networks where maximal distance is higher than 15 hosts. You can read more about RIP at http://www.ietf.org/html.charters/rip-charter.html. Both IPv4 (RFC 1723 ftp://ftp.rfc-editor.org/in-notes/rfc1723.txt) and IPv6 (RFC 2080 ftp://ftp.rfc-editor.org/in-notes/rfc2080.txt) versions of RIP are supported by BIRD, historical RIPv1 (RFC 1058 ftp://ftp.rfc-editor.org/in-notes/rfc1058.txt)is not currently supported. RIPv4 MD5 authentication (RFC 2082 ftp://ftp.rfc-editor.org/in-notes/rfc2082.txt) is supported.

RIP is a very simple protocol, and it has a lot of shortcomings. Slow convergence, big network load and inability to handle larger networks makes it pretty much obsolete. (It is still usable on very small networks.)

Configuration

In addition to options common for all to other protocols, RIP supports the following ones:

authentication none|plaintext|md5

selects authentication method to be used. none means that packets are not authenticated at all, plaintext means that a plaintext password is embedded into each packet, and md5 means that packets are authenticated using a MD5 cryptographic hash. If you set authentication to not-none, it is a good idea to add password section. Default: none.

honor always|neighbor|never

specifies when should requests for dumping routing table be honored. (Always, when sent from a host on a directly connected network or never.) Routing table updates are honored only from neighbors, that is not configurable. Default: never.

There are some options that can be specified per-interface:

metric num

This option specifies the metric of the interface. Valid

mode multicast|broadcast|quiet|nolisten|version1

This option selects the mode for RIP to work in. If nothing is specified, RIP runs in multicast mode. version1 is currently equivalent to broadcast, and it makes RIP talk to a broadcast address even through multicast mode is possible. quiet option means that RIP will not transmit any periodic messages to this interface and nolisten means that RIP will send to this interface butnot listen to it.

ttl security [switch | tx only]

TTL security is a feature that protects routing protocols from remote spoofed packets by using TTL 255 instead of TTL 1 for protocol packets destined to neighbors. Because TTL is decremented when packets are forwarded, it is non-trivial to spoof packets with TTL 255 from remote locations.

If this option is enabled, the router will send RIP packets with TTL 255 and drop received packets with TTL less than 255. If this option si set to tx only, TTL 255 is used for sent packets, but is not checked for received packets. Such setting does not offer protection, but offers compatibility with neighbors regardless of whether they use ttl security.

Note that for RIPng, TTL security is a standard behavior (required by RFC 2080), but BIRD uses tx only by default, for compatibility with older versions. For IPv4 RIP, default value is no.

tx class|dscp|priority num

These options specify the ToS/DiffServ/Traffic class/Priority of the outgoing RIP packets. See tx class common option for detailed description.

The following options generally override behavior specified in RFC. If you use any of these options, BIRD will no longer be RFC-compliant, which means it will not be able to talk to anything other than equally configured BIRD. I have warned you.

port number

selects IP port to operate on, default 520. (This is useful when testing BIRD, if you set this to an address >1024, you will not need to run bird with UID==0).

infinity number

selects the value of infinity, default is 16. Bigger values will make protocol convergence even slower.

period number

specifies the number of seconds between periodic updates. Default is 30 seconds. A lower number will mean faster convergence but bigger network load. Do not use values lower than 12.

timeout time number

specifies how old route has to be to be considered unreachable. Default is 4*period.

garbage time number

specifies how old route has to be to be discarded. Default is 10*period.

Attributes

RIP defines two route attributes:

int rip_metric

RIP metric of the route (ranging from 0 to infinity). When routes from different RIP instances are available and all of them have the same preference, BIRD prefers the route with lowest rip_metric. When importing a non-RIP route, the metric defaults to 5.

int rip_tag

RIP route tag: a 16-bit number which can be used to carry additional information with the route (for example, an originating AS number in case of external routes). When importing a non-RIP route, the tag defaults to 0.

Example


protocol rip MyRIP_test {
        debug all;
        port 1520;
        period 12;
        garbage time 60;
        interface "eth0" { metric 3; mode multicast; };
        interface "eth*" { metric 2; mode broadcast; };
        honor neighbor;
        authentication none;
        import filter { print "importing"; accept; };
        export filter { print "exporting"; accept; };
}

6.10 Static

The Static protocol doesn't communicate with other routers in the network, but instead it allows you to define routes manually. This is often used for specifying how to forward packets to parts of the network which don't use dynamic routing at all and also for defining sink routes (i.e., those telling to return packets as undeliverable if they are in your IP block, you don't have any specific destination for them and you don't want to send them out through the default route to prevent routing loops).

There are five types of static routes: `classical' routes telling to forward packets to a neighboring router, multipath routes specifying several (possibly weighted) neighboring routers, device routes specifying forwarding to hosts on a directly connected network, recursive routes computing their nexthops by doing route table lookups for a given IP and special routes (sink, blackhole etc.) which specify a special action to be done instead of forwarding the packet.

When the particular destination is not available (the interface is down or the next hop of the route is not a neighbor at the moment), Static just uninstalls the route from the table it is connected to and adds it again as soon as the destination becomes adjacent again.

The Static protocol does not have many configuration options. The definition of the protocol contains mainly a list of static routes:

route prefix via ip

Static route through a neighboring router.

route prefix multipath via ip [weight num] [via ...]

Static multipath route. Contains several nexthops (gateways), possibly with their weights.

route prefix via "interface"

Static device route through an interface to hosts on a directly connected network.

route prefix recursive ip

Static recursive route, its nexthop depends on a route table lookup for given IP address.

route prefix blackhole|unreachable|prohibit

Special routes specifying to silently drop the packet, return it as unreachable or return it as administratively prohibited. First two targets are also known as drop and reject.

check link switch

If set, hardware link states of network interfaces are taken into consideration. When link disappears (e.g. ethernet cable is unplugged), static routes directing to that interface are removed. It is possible that some hardware drivers or platforms do not implement this feature. Default: off.

igp table name

Specifies a table that is used for route table lookups of recursive routes. Default: the same table as the protocol is connected to.

Static routes have no specific attributes.

Example static config might look like this:


protocol static {
        table testable;                  # Connect to a non-default routing table
        route 0.0.0.0/0 via 198.51.100.130; # Default route
        route 10.0.0.0/8 multipath       # Multipath route
                via 198.51.100.10 weight 2
                via 198.51.100.20
                via 192.0.2.1;
        route 203.0.113.0/24 unreachable; # Sink route
        route 10.2.0.0/24 via "arc0";    # Secondary network
}


Next Previous Contents bird-1.4.0/doc/bird-2.html0000644000103200001440000000664712244656167014164 0ustar feelausers BIRD User's Guide: About routing tables Next Previous Contents

2. About routing tables

BIRD has one or more routing tables which may or may not be synchronized with OS kernel and which may or may not be synchronized with each other (see the Pipe protocol). Each routing table contains a list of known routes. Each route consists of:

  • network prefix this route is for (network address and prefix length -- the number of bits forming the network part of the address; also known as a netmask)
  • preference of this route
  • IP address of router which told us about this route
  • IP address of router we should forward the packets to using this route
  • other attributes common to all routes
  • dynamic attributes defined by protocols which may or may not be present (typically protocol metrics)

Routing table maintains multiple entries for a network, but at most one entry for one network and one protocol. The entry with the highest preference is used for routing (we will call such an entry the selected route). If there are more entries with the same preference and they are from the same protocol, the protocol decides (typically according to metrics). If they aren't, an internal ordering is used to break the tie. You can get the list of route attributes in the Route attributes section.

Each protocol is connected to a routing table through two filters which can accept, reject and modify the routes. An export filter checks routes passed from the routing table to the protocol, an import filter checks routes in the opposite direction. When the routing table gets a route from a protocol, it recalculates the selected route and broadcasts it to all protocols connected to the table. The protocols typically send the update to other routers in the network. Note that although most protocols are interested in receiving just selected routes, some protocols (e.g. the Pipe protocol) receive and process all entries in routing tables (accepted by filters).

Usually, a routing table just chooses a selected route from a list of entries for one network. But if the sorted option is activated, these lists of entries are kept completely sorted (according to preference or some protocol-dependent metric).

This is needed for some features of some protocols (e.g. secondary option of BGP protocol, which allows to accept not just a selected route, but the first route (in the sorted list) that is accepted by filters), but it is incompatible with some other features (e.g. deterministic med option of BGP protocol, which activates a way of choosing selected route that cannot be described using comparison and ordering). Minor advantage is that routes are shown sorted in show route, minor disadvantage is that it is slightly more computationally expensive.


Next Previous Contents bird-1.4.0/doc/prog-6.html0000644000103200001440000001462412244656165014207 0ustar feelausers BIRD Programmer's Documentation: System dependent parts Next Previous Contents

6. System dependent parts

6.1 Introduction

We've tried to make BIRD as portable as possible, but unfortunately communication with the network stack differs from one OS to another, so we need at least some OS specific code. The good news is that this code is isolated in a small set of modules:

config.h

is a header file with configuration information, definition of the standard set of types and so on.

Startup module

controls BIRD startup. Common for a family of OS's (e.g., for all Unices).

Logging module

manages the system logs. [per OS family]

IO module

gives an implementation of sockets, timers and the global event queue. [per OS family]

KRT module

implements the Kernel and Device protocols. This is the most arcane part of the system dependent stuff and some functions differ even between various releases of a single OS.

6.2 Logging

The Logging module offers a simple set of functions for writing messages to system logs and to the debug output. Message classes used by this module are described in birdlib.h and also in the user's manual.


Function

void log_commit (int class, buffer * buf) -- commit a log message

Arguments

int class

message class information (L_DEBUG to L_BUG, see lib/birdlib.h)

buffer * buf

-- undescribed --

Description

This function writes a message prepared in the log buffer to the log file (as specified in the configuration). The log buffer is reset after that. The log message is a full line, log_commit() terminates it.

The message class is an integer, not a first char of a string like in log(), so it should be written like *L_INFO.


Function

void log_msg (char * msg, ... ...) -- log a message

Arguments

char * msg

printf-like formatting string with message class information prepended (L_DEBUG to L_BUG, see lib/birdlib.h)

... ...

variable arguments

Description

This function formats a message according to the format string msg and writes it to the corresponding log file (as specified in the configuration). Please note that the message is automatically formatted as a full line, no need to include \n inside. It is essentially a sequence of log_reset(), logn() and log_commit().


Function

void bug (char * msg, ... ...) -- report an internal error

Arguments

char * msg

a printf-like error message

... ...

variable arguments

Description

This function logs an internal error and aborts execution of the program.


Function

void die (char * msg, ... ...) -- report a fatal error

Arguments

char * msg

a printf-like error message

... ...

variable arguments

Description

This function logs a fatal error and aborts execution of the program.


Function

void debug (char * msg, ... ...) -- write to debug output

Arguments

char * msg

a printf-like message

... ...

variable arguments

Description

This function formats the message msg and prints it out to the debugging output. No newline character is appended.

6.3 Kernel synchronization

This system dependent module implements the Kernel and Device protocol, that is synchronization of interface lists and routing tables with the OS kernel.

The whole kernel synchronization is a bit messy and touches some internals of the routing table engine, because routing table maintenance is a typical example of the proverbial compatibility between different Unices and we want to keep the overhead of our KRT business as low as possible and avoid maintaining a local routing table copy.

The kernel syncer can work in three different modes (according to system config header): Either with a single routing table and single KRT protocol [traditional UNIX] or with many routing tables and separate KRT protocols for all of them or with many routing tables, but every scan including all tables, so we start separate KRT protocols which cooperate with each other [Linux]. In this case, we keep only a single scan timer.

We use FIB node flags in the routing table to keep track of route synchronization status. We also attach temporary rte's to the routing table, but it cannot do any harm to the rest of BIRD since table synchronization is an atomic process.

When starting up, we cheat by looking if there is another KRT instance to be initialized later and performing table scan only once for all the instances.

The code uses OS-dependent parts for kernel updates and scans. These parts are in more specific sysdep directories (e.g. sysdep/linux) in functions krt_sys_* and kif_sys_* (and some others like krt_replace_rte()) and krt-sys.h header file. This is also used for platform specific protocol options and route attributes.

There was also an old code that used traditional UNIX ioctls for these tasks. It was unmaintained and later removed. For reference, see sysdep/krt-* files in commit 396dfa9042305f62da1f56589c4b98fac57fc2f6


Next Previous Contents bird-1.4.0/doc/reply_codes0000644000103200001440000000307512244656136014436 0ustar feelausersReply codes of BIRD command-line interface ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0xxx Action suceessfully completed 1xxx Table entry 2xxx Table heading 8xxx Run-time error 9xxx Parse-time error Continuation + Spontaneous printout 0000 OK 0001 Welcome 0002 Reading configuration 0003 Reconfigured 0004 Reconfiguration in progress 0005 Reconfiguration already in progress, queueing 0006 Reconfiguration ignored, shutting down 0007 Shutdown ordered 0008 Already disabled 0009 Disabled 0010 Already enabled 0011 Enabled 0012 Restarted 0013 Status report 0014 Route count 0015 Reloading 0016 Access restricted 0017 Reconfiguration already in progress, removing queued config 0018 Reconfiguration confirmed 0019 Nothing to do (configure undo/confirm) 0020 Configuration OK 0021 Undo requested 0022 Undo scheduled 0023 Evaluation of expression 1000 BIRD version 1001 Interface list 1002 Protocol list 1003 Interface address 1004 Interface flags 1005 Interface summary 1006 Protocol details 1007 Route list 1008 Route details 1009 Static route list 1010 Symbol list 1011 Uptime 1012 Route extended attribute list 1013 Show ospf neighbors 1014 Show ospf 1015 Show ospf interface 1016 Show ospf state/topology 1017 Show ospf lsadb 1018 Show memory 1019 Show ROA list 1020 Show BFD sessions 8000 Reply too long 8001 Route not found 8002 Configuration file error 8003 No protocols match 8004 Stopped due to reconfiguration 8005 Protocol is down => cannot dump 8006 Reload failed 8007 Access denied 8008 Evaluation runtime error 9000 Command too long 9001 Parse error 9002 Invalid symbol type bird-1.4.0/doc/Makefile0000644000103200001440000000127611606273733013643 0ustar feelausersroot-rel=../ dir-name=doc ifneq ($(wildcard ../Rules),) include ../Rules else srcdir=$(shell cd $(root-rel) ; pwd) srcdir_abs=$(srcdir) endif # Force rebuilds .PHONY: prog.sgml bird.sgml docs: progdocs userdocs progdocs: prog.html prog.ps userdocs: bird.html bird.ps prog.sgml: $(srcdir)/tools/progdoc $(srcdir_abs) %.html: %.sgml ./sgml2html $< %.dvi: %.tex latex $< latex $< %.ps: %.dvi dvips -D600 -ta4 -o $@ $< %.tex: %.sgml ./sgml2latex --output=tex $< %.txt: %.sgml ./sgml2txt $< progspell: prog.sgml sed -f prog-spell.sed prog.spell ispell prog.spell clean: rm -f *.tex *.dvi *.log *.txt *.aux *.toc *.spell rm -f prog.sgml distclean: clean rm -f *.html *.ps bird-1.4.0/doc/prog-4.html0000644000103200001440000003126412244656165014204 0ustar feelausers BIRD Programmer's Documentation: Filters Next Previous Contents

4. Filters

4.1 Filters

You can find sources of the filter language in filter/ directory. File filter/config.Y contains filter grammar and basically translates the source from user into a tree of f_inst structures. These trees are later interpreted using code in filter/filter.c.

A filter is represented by a tree of f_inst structures, one structure per "instruction". Each f_inst contains code, aux value which is usually the data type this instruction operates on and two generic arguments (a1, a2). Some instructions contain pointer(s) to other instructions in their (a1, a2) fields.

Filters use a f_val structure for their data. Each f_val contains type and value (types are constants prefixed with T_). Few of the types are special; T_RETURN can be or-ed with a type to indicate that return from a function or from the whole filter should be forced. Important thing about f_val's is that they may be copied with a simple =. That's fine for all currently defined types: strings are read-only (and therefore okay), paths are copied for each operation (okay too).


Function

int val_compare (struct f_val v1, struct f_val v2) -- compare two values

Arguments

struct f_val v1

first value

struct f_val v2

second value

Description

Compares two values and returns -1, 0, 1 on <, =, > or CMP_ERROR on error. Tree module relies on this giving consistent results so that it can be used for building balanced trees.


Function

int val_same (struct f_val v1, struct f_val v2) -- compare two values

Arguments

struct f_val v1

first value

struct f_val v2

second value

Description

Compares two values and returns 1 if they are same and 0 if not. Comparison of values of different types is valid and returns 0.


Function

int val_in_range (struct f_val v1, struct f_val v2) -- implement ~ operator

Arguments

struct f_val v1

element

struct f_val v2

set

Description

Checks if v1 is element (~ operator) of v2.


Function

struct f_val interpret (struct f_inst * what)

Arguments

struct f_inst * what

filter to interpret

Description

Interpret given tree of filter instructions. This is core function of filter system and does all the hard work.

Each instruction has 4 fields

code (which is instruction code), aux (which is extension to instruction code, typically type), arg1 and arg2 - arguments. Depending on instruction, arguments are either integers, or pointers to instruction trees. Common instructions like +, that have two expressions as arguments use TWOARGS macro to get both of them evaluated.

f_val structures are copied around, so there are no problems with memory managment.


Function

int f_run (struct filter * filter, struct rte ** rte, struct ea_list ** tmp_attrs, struct linpool * tmp_pool, int flags) -- run a filter for a route

Arguments

struct filter * filter

filter to run

struct rte ** rte

route being filtered, may be modified

struct ea_list ** tmp_attrs

temporary attributes, prepared by caller or generated by f_run()

struct linpool * tmp_pool

all filter allocations go from this pool

int flags

flags

Description

If filter needs to modify the route, there are several posibilities. rte might be read-only (with REF_COW flag), in that case rw copy is obtained by rte_cow() and rte is replaced. If rte is originally rw, it may be directly modified (and it is never copied).

The returned rte may reuse the (possibly cached, cloned) rta, or (if rta was modificied) contains a modified uncached rta, which uses parts allocated from tmp_pool and parts shared from original rta. There is one exception - if rte is rw but contains a cached rta and that is modified, rta in returned rte is also cached.

Ownership of cached rtas is consistent with rte, i.e. if a new rte is returned, it has its own clone of cached rta (and cached rta of read-only source rte is intact), if rte is modified in place, old cached rta is possibly freed.


Function

int filter_same (struct filter * new, struct filter * old) -- compare two filters

Arguments

struct filter * new

first filter to be compared

struct filter * old

second filter to be compared, notice that this filter is damaged while comparing.

Description

Returns 1 in case filters are same, otherwise 0. If there are underlying bugs, it will rather say 0 on same filters than say 1 on different.


Function

struct f_tree * find_tree (struct f_tree * t, struct f_val val)

Arguments

struct f_tree * t

tree to search in

struct f_val val

value to find

Description

Search for given value in the tree. I relies on fact that sorted tree is populated by f_val structures (that can be compared by val_compare()). In each node of tree, either single value (then t->from==t->to) or range is present.

Both set matching and switch() { } construction is implemented using this function, thus both are as fast as they can be.


Function

struct f_tree * build_tree (struct f_tree * from)

Arguments

struct f_tree * from

degenerated tree (linked by tree->left) to be transformed into form suitable for find_tree()

Description

Transforms denerated tree into balanced tree.


Function

int same_tree (struct f_tree * t1, struct f_tree * t2)

Arguments

struct f_tree * t1

first tree to be compared

struct f_tree * t2

second one

Description

Compares two trees and returns 1 if they are same

4.2 Trie for prefix sets

We use a (compressed) trie to represent prefix sets. Every node in the trie represents one prefix (addr/plen) and plen also indicates the index of the bit in the address that is used to branch at the node. If we need to represent just a set of prefixes, it would be simple, but we have to represent a set of prefix patterns. Each prefix pattern consists of ppaddr/pplen and two integers: low and high, and a prefix paddr/plen matches that pattern if the first MIN(plen, pplen) bits of paddr and ppaddr are the same and low <= plen <= high.

We use a bitmask (accept) to represent accepted prefix lengths at a node. As there are 33 prefix lengths (0..32 for IPv4), but there is just one prefix of zero length in the whole trie so we have zero flag in f_trie (indicating whether the trie accepts prefix 0.0.0.0/0) as a special case, and accept bitmask represents accepted prefix lengths from 1 to 32.

There are two cases in prefix matching - a match when the length of the prefix is smaller that the length of the prefix pattern, (plen < pplen) and otherwise. The second case is simple - we just walk through the trie and look at every visited node whether that prefix accepts our prefix length (plen). The first case is tricky - we don't want to examine every descendant of a final node, so (when we create the trie) we have to propagate that information from nodes to their ascendants.

Suppose that we have two masks (M1 and M2) for a node. Mask M1 represents accepted prefix lengths by just the node and mask M2 represents accepted prefix lengths by the node or any of its descendants. Therefore M2 is a bitwise or of M1 and children's M2 and this is a maintained invariant during trie building. Basically, when we want to match a prefix, we walk through the trie, check mask M1 for our prefix length and when we came to final node, we check mask M2.

There are two differences in the real implementation. First, we use a compressed trie so there is a case that we skip our final node (if it is not in the trie) and we came to node that is either extension of our prefix, or completely out of path In the first case, we also have to check M2.

Second, we really need not to maintain two separate bitmasks. Checks for mask M1 are always larger than applen and we need just the first pplen bits of mask M2 (if trie compression hadn't been used it would suffice to know just $applen-th bit), so we have to store them together in accept mask - the first pplen bits of mask M2 and then mask M1.

There are four cases when we walk through a trie:

- we are in NULL - we are out of path (prefixes are inconsistent) - we are in the wanted (final) node (node length == plen) - we are beyond the end of path (node length > plen) - we are still on path and keep walking (node length < plen)

The walking code in trie_match_prefix() is structured according to these cases.


Function

struct f_trie * f_new_trie (linpool * lp)

Arguments

linpool * lp

-- undescribed --

Trie for prefix sets

Allocates and returns a new empty trie.


Function

void trie_add_prefix (struct f_trie * t, ip_addr px, int plen, int l, int h)

Arguments

struct f_trie * t

trie to add to

ip_addr px

prefix address

int plen

prefix length

int l

prefix lower bound

int h

prefix upper bound

Description

Adds prefix (prefix pattern) px/plen to trie t. l and h are lower and upper bounds on accepted prefix lengths, both inclusive. 0 <= l, h <= 32 (128 for IPv6).


Function

int trie_match_prefix (struct f_trie * t, ip_addr px, int plen)

Arguments

struct f_trie * t

trie

ip_addr px

prefix address

int plen

prefix length

Description

Tries to find a matching prefix pattern in the trie such that prefix px/plen matches that prefix pattern. Returns 1 if there is such prefix pattern in the trie.


Function

int trie_same (struct f_trie * t1, struct f_trie * t2)

Arguments

struct f_trie * t1

first trie to be compared

struct f_trie * t2

second one

Description

Compares two tries and returns 1 if they are same


Function

void trie_format (struct f_trie * t, buffer * buf)

Arguments

struct f_trie * t

trie to be formatted

buffer * buf

destination buffer

Description

Prints the trie to the supplied buffer.


Next Previous Contents bird-1.4.0/doc/prog-5.html0000644000103200001440000012415212244656165014204 0ustar feelausers BIRD Programmer's Documentation: Protocols Next Previous Contents

5. Protocols

5.1 Bidirectional Forwarding Detection

The BFD protocol is implemented in three files: bfd.c containing the protocol logic and the protocol glue with BIRD core, packets.c handling BFD packet processing, RX, TX and protocol sockets. io.c then contains generic code for the event loop, threads and event sources (sockets, microsecond timers). This generic code will be merged to the main BIRD I/O code in the future.

The BFD implementation uses a separate thread with an internal event loop for handling the protocol logic, which requires high-res and low-latency timing, so it is not affected by the rest of BIRD, which has several low-granularity hooks in the main loop, uses second-based timers and cannot offer good latency. The core of BFD protocol (the code related to BFD sessions, interfaces and packets) runs in the BFD thread, while the rest (the code related to BFD requests, BFD neighbors and the protocol glue) runs in the main thread.

BFD sessions are represented by structure bfd_session that contains a state related to the session and two timers (TX timer for periodic packets and hold timer for session timeout). These sessions are allocated from session_slab and are accessible by two hash tables, session_hash_id (by session ID) and session_hash_ip (by IP addresses of neighbors). Slab and both hashes are in the main protocol structure bfd_proto. The protocol logic related to BFD sessions is implemented in internal functions bfd_session_*(), which are expected to be called from the context of BFD thread, and external functions bfd_add_session(), bfd_remove_session() and bfd_reconfigure_session(), which form an interface to the BFD core for the rest and are expected to be called from the context of main thread.

Each BFD session has an associated BFD interface, represented by structure bfd_iface. A BFD interface contains a socket used for TX (the one for RX is shared in bfd_proto), an interface configuration and reference counter. Compared to interface structures of other protocols, these structures are not created and removed based on interface notification events, but according to the needs of BFD sessions. When a new session is created, it requests a proper BFD interface by function bfd_get_iface(), which either finds an existing one in iface_list (from bfd_proto) or allocates a new one. When a session is removed, an associated iface is dicharged by bfd_free_iface().

BFD requests are the external API for the other protocols. When a protocol wants a BFD session, it calls bfd_request_session(), which creates a structure bfd_request containing approprite information and an notify hook. This structure is a resource associated with the caller's resource pool. When a BFD protocol is available, a BFD request is submitted to the protocol, an appropriate BFD session is found or created and the request is attached to the session. When a session changes state, all attached requests (and related protocols) are notified. Note that BFD requests do not depend on BFD protocol running. When the BFD protocol is stopped or removed (or not available from beginning), related BFD requests are stored in bfd_wait_list, where waits for a new protocol.

BFD neighbors are just a way to statically configure BFD sessions without requests from other protocol. Structures bfd_neighbor are part of BFD configuration (like static routes in the static protocol). BFD neighbors are handled by BFD protocol like it is a BFD client -- when a BFD neighbor is ready, the protocol just creates a BFD request like any other protocol.

The protocol uses a new generic event loop (structure birdloop) from io.c, which supports sockets, timers and events like the main loop. Timers (structure timer2) are new microsecond based timers, while sockets and events are the same. A birdloop is associated with a thread (field thread) in which event hooks are executed. Most functions for setting event sources (like sk_start() or tm2_start()) must be called from the context of that thread. Birdloop allows to temporarily acquire the context of that thread for the main thread by calling birdloop_enter() and then birdloop_leave(), which also ensures mutual exclusion with all event hooks. Note that resources associated with a birdloop (like timers) should be attached to the independent resource pool, detached from the main resource tree.

There are two kinds of interaction between the BFD core (running in the BFD thread) and the rest of BFD (running in the main thread). The first kind are configuration calls from main thread to the BFD thread (like bfd_add_session()). These calls are synchronous and use birdloop_enter() mechanism for mutual exclusion. The second kind is a notification about session changes from the BFD thread to the main thread. This is done in an asynchronous way, sesions with pending notifications are linked (in the BFD thread) to notify_list in bfd_proto, and then bfd_notify_hook() in the main thread is activated using bfd_notify_kick() and a pipe. The hook then processes scheduled sessions and calls hooks from associated BFD requests. This notify_list (and state fields in structure bfd_session) is protected by a spinlock in bfd_proto and functions bfd_lock_sessions() / bfd_unlock_sessions().

There are few data races (accessing p->p.debug from TRACE() from the BFD thread and accessing some some private fields of bfd_session from bfd_show_sessions() from the main thread, but these are harmless (i hope).

TODO: document functions and access restrictions for fields in BFD structures.

Supported standards: - RFC 5880 - main BFD standard - RFC 5881 - BFD for IP links - RFC 5882 - generic application of BFD - RFC 5883 - BFD for multihop paths

5.2 Border Gateway Protocol

The BGP protocol is implemented in three parts: bgp.c which takes care of the connection and most of the interface with BIRD core, packets.c handling both incoming and outgoing BGP packets and attrs.c containing functions for manipulation with BGP attribute lists.

As opposed to the other existing routing daemons, BIRD has a sophisticated core architecture which is able to keep all the information needed by BGP in the primary routing table, therefore no complex data structures like a central BGP table are needed. This increases memory footprint of a BGP router with many connections, but not too much and, which is more important, it makes BGP much easier to implement.

Each instance of BGP (corresponding to a single BGP peer) is described by a bgp_proto structure to which are attached individual connections represented by bgp_connection (usually, there exists only one connection, but during BGP session setup, there can be more of them). The connections are handled according to the BGP state machine defined in the RFC with all the timers and all the parameters configurable.

In incoming direction, we listen on the connection's socket and each time we receive some input, we pass it to bgp_rx(). It decodes packet headers and the markers and passes complete packets to bgp_rx_packet() which distributes the packet according to its type.

In outgoing direction, we gather all the routing updates and sort them to buckets (bgp_bucket) according to their attributes (we keep a hash table for fast comparison of rta's and a fib which helps us to find if we already have another route for the same destination queued for sending, so that we can replace it with the new one immediately instead of sending both updates). There also exists a special bucket holding all the route withdrawals which cannot be queued anywhere else as they don't have any attributes. If we have any packet to send (due to either new routes or the connection tracking code wanting to send a Open, Keepalive or Notification message), we call bgp_schedule_packet() which sets the corresponding bit in a packet_to_send bit field in bgp_conn and as soon as the transmit socket buffer becomes empty, we call bgp_fire_tx(). It inspects state of all the packet type bits and calls the corresponding bgp_create_xx() functions, eventually rescheduling the same packet type if we have more data of the same type to send.

The processing of attributes consists of two functions: bgp_decode_attrs() for checking of the attribute blocks and translating them to the language of BIRD's extended attributes and bgp_encode_attrs() which does the converse. Both functions are built around a bgp_attr_table array describing all important characteristics of all known attributes. Unknown transitive attributes are attached to the route as EAF_TYPE_OPAQUE byte streams.


Function

int bgp_open (struct bgp_proto * p) -- open a BGP instance

Arguments

struct bgp_proto * p

BGP instance

Description

This function allocates and configures shared BGP resources. Should be called as the last step during initialization (when lock is acquired and neighbor is ready). When error, state changed to PS_DOWN, -1 is returned and caller should return immediately.


Function

void bgp_close (struct bgp_proto * p, int apply_md5) -- close a BGP instance

Arguments

struct bgp_proto * p

BGP instance

int apply_md5

0 to disable unsetting MD5 auth

Description

This function frees and deconfigures shared BGP resources. apply_md5 is set to 0 when bgp_close is called as a cleanup from failed bgp_open().


Function

void bgp_start_timer (timer * t, int value) -- start a BGP timer

Arguments

timer * t

timer

int value

time to fire (0 to disable the timer)

Description

This functions calls tm_start() on t with time value and the amount of randomization suggested by the BGP standard. Please use it for all BGP timers.


Function

void bgp_close_conn (struct bgp_conn * conn) -- close a BGP connection

Arguments

struct bgp_conn * conn

connection to close

Description

This function takes a connection described by the bgp_conn structure, closes its socket and frees all resources associated with it.


Function

void bgp_update_startup_delay (struct bgp_proto * p) -- update a startup delay

Arguments

struct bgp_proto * p

BGP instance

Description

This function updates a startup delay that is used to postpone next BGP connect. It also handles disable_after_error and might stop BGP instance when error happened and disable_after_error is on.

It should be called when BGP protocol error happened.


Function

void bgp_connect (struct bgp_proto * p) -- initiate an outgoing connection

Arguments

struct bgp_proto * p

BGP instance

Description

The bgp_connect() function creates a new bgp_conn and initiates a TCP connection to the peer. The rest of connection setup is governed by the BGP state machine as described in the standard.


Function

int bgp_incoming_connection (sock * sk, int dummy UNUSED) -- handle an incoming connection

Arguments

sock * sk

TCP socket

int dummy UNUSED

-- undescribed --

Description

This function serves as a socket hook for accepting of new BGP connections. It searches a BGP instance corresponding to the peer which has connected and if such an instance exists, it creates a bgp_conn structure, attaches it to the instance and either sends an Open message or (if there already is an active connection) it closes the new connection by sending a Notification message.


Function

void bgp_error (struct bgp_conn * c, unsigned code, unsigned subcode, byte * data, int len) -- report a protocol error

Arguments

struct bgp_conn * c

connection

unsigned code

error code (according to the RFC)

unsigned subcode

error sub-code

byte * data

data to be passed in the Notification message

int len

length of the data

Description

bgp_error() sends a notification packet to tell the other side that a protocol error has occurred (including the data considered erroneous if possible) and closes the connection.


Function

void bgp_store_error (struct bgp_proto * p, struct bgp_conn * c, u8 class, u32 code) -- store last error for status report

Arguments

struct bgp_proto * p

BGP instance

struct bgp_conn * c

connection

u8 class

error class (BE_xxx constants)

u32 code

error code (class specific)

Description

bgp_store_error() decides whether given error is interesting enough and store that error to last_error variables of p


Function

int bgp_fire_tx (struct bgp_conn * conn) -- transmit packets

Arguments

struct bgp_conn * conn

connection

Description

Whenever the transmit buffers of the underlying TCP connection are free and we have any packets queued for sending, the socket functions call bgp_fire_tx() which takes care of selecting the highest priority packet queued (Notification > Keepalive > Open > Update), assembling its header and body and sending it to the connection.


Function

void bgp_schedule_packet (struct bgp_conn * conn, int type) -- schedule a packet for transmission

Arguments

struct bgp_conn * conn

connection

int type

packet type

Description

Schedule a packet of type type to be sent as soon as possible.


Function

const char * bgp_error_dsc (unsigned code, unsigned subcode) -- return BGP error description

Arguments

unsigned code

BGP error code

unsigned subcode

BGP error subcode

Description

bgp_error_dsc() returns error description for BGP errors which might be static string or given temporary buffer.


Function

void bgp_rx_packet (struct bgp_conn * conn, byte * pkt, unsigned len) -- handle a received packet

Arguments

struct bgp_conn * conn

BGP connection

byte * pkt

start of the packet

unsigned len

packet size

Description

bgp_rx_packet() takes a newly received packet and calls the corresponding packet handler according to the packet type.


Function

int bgp_rx (sock * sk, int size) -- handle received data

Arguments

sock * sk

socket

int size

amount of data received

Description

bgp_rx() is called by the socket layer whenever new data arrive from the underlying TCP connection. It assembles the data fragments to packets, checks their headers and framing and passes complete packets to bgp_rx_packet().


Function

unsigned int bgp_encode_attrs (struct bgp_proto * p, byte * w, ea_list * attrs, int remains) -- encode BGP attributes

Arguments

struct bgp_proto * p

BGP instance

byte * w

buffer

ea_list * attrs

a list of extended attributes

int remains

remaining space in the buffer

Description

The bgp_encode_attrs() function takes a list of extended attributes and converts it to its BGP representation (a part of an Update message).

Result

Length of the attribute block generated or -1 if not enough space.


Function

struct rta * bgp_decode_attrs (struct bgp_conn * conn, byte * attr, unsigned int len, struct linpool * pool, int mandatory) -- check and decode BGP attributes

Arguments

struct bgp_conn * conn

connection

byte * attr

start of attribute block

unsigned int len

length of attribute block

struct linpool * pool

linear pool to make all the allocations in

int mandatory

1 iff presence of mandatory attributes has to be checked

Description

This function takes a BGP attribute block (a part of an Update message), checks its consistency and converts it to a list of BIRD route attributes represented by a rta.

5.3 Open Shortest Path First (OSPF)

The OSPF protocol is quite complicated and its complex implemenation is split to many files. In ospf.c, you will find mainly the interface for communication with the core (e.g., reconfiguration hooks, shutdown and initialisation and so on). In packet.c, you will find various functions for sending and receiving generic OSPF packets. There are also routines for authentication and checksumming. File iface.c contains the interface state machine and functions for allocation and deallocation of OSPF's interface data structures. Source neighbor.c includes the neighbor state machine and functions for election of Designated Router and Backup Designated router. In hello.c, there are routines for sending and receiving of hello packets as well as functions for maintaining wait times and the inactivity timer. Files lsreq.c, lsack.c, dbdes.c contain functions for sending and receiving of link-state requests, link-state acknowledgements and database descriptions respectively. In lsupd.c, there are functions for sending and receiving of link-state updates and also the flooding algorithm. Source topology.c is a place where routines for searching LSAs in the link-state database, adding and deleting them reside, there also are functions for originating of various types of LSAs (router LSA, net LSA, external LSA). File rt.c contains routines for calculating the routing table. lsalib.c is a set of various functions for working with the LSAs (endianity conversions, calculation of checksum etc.).

One instance of the protocol is able to hold LSA databases for multiple OSPF areas, to exchange routing information between multiple neighbors and to calculate the routing tables. The core structure is proto_ospf to which multiple ospf_area and ospf_iface structures are connected. ospf_area is also connected to top_hash_graph which is a dynamic hashing structure that describes the link-state database. It allows fast search, addition and deletion. Each LSA is kept in two pieces: header and body. Both of them are kept in the endianity of the CPU.

In OSPFv2 specification, it is implied that there is one IP prefix for each physical network/interface (unless it is an ptp link). But in modern systems, there might be more independent IP prefixes associated with an interface. To handle this situation, we have one ospf_iface for each active IP prefix (instead for each active iface); This behaves like virtual interface for the purpose of OSPF. If we receive packet, we associate it with a proper virtual interface mainly according to its source address.

OSPF keeps one socket per ospf_iface. This allows us (compared to one socket approach) to evade problems with a limit of multicast groups per socket and with sending multicast packets to appropriate interface in a portable way. The socket is associated with underlying physical iface and should not receive packets received on other ifaces (unfortunately, this is not true on BSD). Generally, one packet can be received by more sockets (for example, if there are more ospf_iface on one physical iface), therefore we explicitly filter received packets according to src/dst IP address and received iface.

Vlinks are implemented using particularly degenerate form of ospf_iface, which has several exceptions: it does not have its iface or socket (it copies these from 'parent' ospf_iface) and it is present in iface list even when down (it is not freed in ospf_iface_down()).

The heart beat of ospf is ospf_disp(). It is called at regular intervals (proto_ospf->tick). It is responsible for aging and flushing of LSAs in the database, for routing table calculaction and it call area_disp() of every ospf_area.

The function area_disp() is responsible for late originating of router LSA and network LSA and for cleanup before routing table calculation process in the area. To every ospf_iface, we connect one or more ospf_neighbor's -- a structure containing many timers and queues for building adjacency and for exchange of routing messages.

BIRD's OSPF implementation respects RFC2328 in every detail, but some of internal algorithms do differ. The RFC recommends making a snapshot of the link-state database when a new adjacency is forming and sending the database description packets based on the information in this snapshot. The database can be quite large in some networks, so rather we walk through a slist structure which allows us to continue even if the actual LSA we were working with is deleted. New LSAs are added at the tail of this slist.

We also don't keep a separate OSPF routing table, because the core helps us by being able to recognize when a route is updated to an identical one and it suppresses the update automatically. Due to this, we can flush all the routes we've recalculated and also those we've deleted to the core's routing table and the core will take care of the rest. This simplifies the process and conserves memory.


Function

void area_disp (struct ospf_area * oa) -- invokes origination of

Arguments

struct ospf_area * oa

ospf area

Open Shortest Path First (OSPF)

router LSA and routing table cleanup

Description

It invokes aging and when ospf_area->origrt is set to 1, start function for origination of router, network LSAs.


Function

void ospf_disp (timer * timer) -- invokes routing table calculation, aging and also area_disp()

Arguments

timer * timer

timer usually called every proto_ospf->tick second, timer->data point to proto_ospf


Function

int ospf_import_control (struct proto * p, rte ** new, ea_list ** attrs, struct linpool * pool) -- accept or reject new route from nest's routing table

Arguments

struct proto * p

current instance of protocol

rte ** new

the new route

ea_list ** attrs

list of attributes

struct linpool * pool

pool for allocation of attributes

Description

Its quite simple. It does not accept our own routes and leaves the decision on import to the filters.


Function

int ospf_shutdown (struct proto * p) -- Finish of OSPF instance

Arguments

struct proto * p

current instance of protocol

Description

RFC does not define any action that should be taken before router shutdown. To make my neighbors react as fast as possible, I send them hello packet with empty neighbor list. They should start their neighbor state machine with event NEIGHBOR_1WAY.


Function

int ospf_reconfigure (struct proto * p, struct proto_config * c) -- reconfiguration hook

Arguments

struct proto * p

current instance of protocol (with old configuration)

struct proto_config * c

new configuration requested by user

Description

This hook tries to be a little bit intelligent. Instance of OSPF will survive change of many constants like hello interval, password change, addition or deletion of some neighbor on nonbroadcast network, cost of interface, etc.


Function

void originate_rt_lsa (struct ospf_area * oa) -- build new instance of router LSA

Arguments

struct ospf_area * oa

ospf_area which is LSA built to

Description

It builds router LSA walking through all OSPF interfaces in specified OSPF area. This function is mostly called from area_disp(). Builds new LSA, increases sequence number (if old instance exists) and sets age of LSA to zero.


Function

void originate_net_lsa (struct ospf_iface * ifa) -- originates of deletes network LSA

Arguments

struct ospf_iface * ifa

interface which is LSA originated for

Description

Interface counts number of adjacent neighbors. If this number is lower than one or interface is not in state OSPF_IS_DR it deletes and premature ages instance of network LSA for specified interface. In other case, new instance of network LSA is originated.


Function

void originate_ext_lsa (struct ospf_area * oa, struct fib_node * fn, int src, u32 metric, ip_addr fwaddr, u32 tag, int pbit) -- new route received from nest and filters

Arguments

struct ospf_area * oa

ospf_area for which LSA is originated

struct fib_node * fn

network prefix and mask

int src

the source of origination of the LSA (EXT_EXPORT/EXT_NSSA)

u32 metric

the metric of a route

ip_addr fwaddr

the forwarding address

u32 tag

the route tag

int pbit

P-bit for NSSA LSAs, ignored for external LSAs

Description

If I receive a message that new route is installed, I try to originate an external LSA. If oa is an NSSA area, NSSA-LSA is originated instead. oa should not be a stub area. src does not specify whether the LSA is external or NSSA, but it specifies the source of origination - the export from ospf_rt_notify(), or the NSSA-EXT translation.

The function also sets flag ebit. If it's the first time, the new router lsa origination is necessary.


Function

struct top_graph * ospf_top_new (pool * pool) -- allocated new topology database

Arguments

pool * pool

-- undescribed --

Description

this dynamically hashed structure is often used for keeping lsas. mainly its used in ospf_area structure.


Function

void neigh_chstate (struct ospf_neighbor * n, u8 state) -- handles changes related to new or lod state of neighbor

Arguments

struct ospf_neighbor * n

OSPF neighbor

u8 state

new state

Description

Many actions have to be taken acording to a change of state of a neighbor. It starts rxmt timers, call interface state machine etc.


Function

void ospf_neigh_sm (struct ospf_neighbor * n, int event) -- ospf neighbor state machine

Arguments

struct ospf_neighbor * n

neighor

int event

actual event

Description

This part implements the neighbor state machine as described in 10.3 of RFC 2328. The only difference is that state NEIGHBOR_ATTEMPT is not used. We discover neighbors on nonbroadcast networks in the same way as on broadcast networks. The only difference is in sending hello packets. These are sent to IPs listed in ospf_iface->nbma_list .


Function

void bdr_election (struct ospf_iface * ifa) -- (Backup) Designed Router election

Arguments

struct ospf_iface * ifa

actual interface

Description

When the wait timer fires, it is time to elect (Backup) Designated Router. Structure describing me is added to this list so every electing router has the same list. Backup Designated Router is elected before Designated Router. This process is described in 9.4 of RFC 2328.


Function

void ospf_iface_chstate (struct ospf_iface * ifa, u8 state) -- handle changes of interface state

Arguments

struct ospf_iface * ifa

OSPF interface

u8 state

new state

Description

Many actions must be taken according to interface state changes. New network LSAs must be originated, flushed, new multicast sockets to listen for messages for ALLDROUTERS have to be opened, etc.


Function

void ospf_iface_sm (struct ospf_iface * ifa, int event) -- OSPF interface state machine

Arguments

struct ospf_iface * ifa

OSPF interface

int event

event comming to state machine

Description

This fully respects 9.3 of RFC 2328 except we have slightly different handling of DOWN and LOOP state. We remove intefaces that are DOWN. DOWN state is used when an interface is waiting for a lock. LOOP state is used when an interface does not have a link.


Function

int ospf_rx_hook (sock * sk, int size)

Arguments

sock * sk

socket we received the packet.

int size

size of the packet

Description

This is the entry point for messages from neighbors. Many checks (like authentication, checksums, size) are done before the packet is passed to non generic functions.


Function

void ospf_age (struct proto_ospf * po)

Arguments

struct proto_ospf * po

ospf protocol

Description

This function is periodicaly invoked from ospf_disp(). It computes the new age of all LSAs and old (age is higher than LSA_MAXAGE) LSAs are flushed whenever possible. If an LSA originated by the router itself is older than LSREFRESHTIME a new instance is originated.

The RFC says that a router should check the checksum of every LSA to detect hardware problems. BIRD does not do this to minimalize CPU utilization.

If routing table calculation is scheduled, it also invalidates the old routing table calculation results.


Function

int lsa_validate (struct ospf_lsa_header * lsa, void * body) -- check whether given LSA is valid

Arguments

struct ospf_lsa_header * lsa

LSA header

void * body

pointer to LSA body

Description

Checks internal structure of given LSA body (minimal length, consistency). Returns true if valid.


Function

struct top_hash_entry * lsa_install_new (struct proto_ospf * po, struct ospf_lsa_header * lsa, u32 domain, void * body) -- install new LSA into database

Arguments

struct proto_ospf * po

OSPF protocol

struct ospf_lsa_header * lsa

LSA header

u32 domain

domain of LSA

void * body

pointer to LSA body

Description

This function ensures installing new LSA into LSA database. Old instance is replaced. Several actions are taken to detect if new routing table calculation is necessary. This is described in 13.2 of RFC 2328.


Function

void ospf_dbdes_send (struct ospf_neighbor * n, int next) -- transmit database description packet

Arguments

struct ospf_neighbor * n

neighbor

int next

whether to send a next packet in a sequence (1) or to retransmit the old one (0)

Description

Sending of a database description packet is described in 10.8 of RFC 2328. Reception of each packet is acknowledged in the sequence number of another. When I send a packet to a neighbor I keep a copy in a buffer. If the neighbor does not reply, I don't create a new packet but just send the content of the buffer.


Function

void ospf_rt_spf (struct proto_ospf * po) -- calculate internal routes

Arguments

struct proto_ospf * po

OSPF protocol

Description

Calculation of internal paths in an area is described in 16.1 of RFC 2328. It's based on Dijkstra's shortest path tree algorithms. This function is invoked from ospf_disp().

5.4 Pipe

The Pipe protocol is very simple. It just connects to two routing tables using proto_add_announce_hook() and whenever it receives a rt_notify() about a change in one of the tables, it converts it to a rte_update() in the other one.

To avoid pipe loops, Pipe keeps a `being updated' flag in each routing table.

A pipe has two announce hooks, the first connected to the main table, the second connected to the peer table. When a new route is announced on the main table, it gets checked by an export filter in ahook 1, and, after that, it is announced to the peer table via rte_update(), an import filter in ahook 2 is called. When a new route is announced in the peer table, an export filter in ahook2 and an import filter in ahook 1 are used. Oviously, there is no need in filtering the same route twice, so both import filters are set to accept, while user configured 'import' and 'export' filters are used as export filters in ahooks 2 and 1. Route limits are handled similarly, but on the import side of ahooks.

5.5 Routing Information Protocol

RIP is a pretty simple protocol, so about a half of its code is interface with the core.

We maintain our own linked list of rip_entry structures -- it serves as our small routing table. RIP never adds to this linked list upon packet reception; instead, it lets the core know about data from the packet and waits for the core to call rip_rt_notify().

Within rip_tx(), the list is walked and a packet is generated using rip_tx_prepare(). This gets tricky because we may need to send more than one packet to one destination. Struct rip_connection is used to hold context information such as how many of rip_entry's we have already sent and it's also used to protect against two concurrent sends to one destination. Each rip_interface has at most one rip_connection.

We are not going to honor requests for sending part of routing table. That would need to turn split horizon off etc.

About triggered updates, RFC says: when a triggered update was sent, don't send a new one for something between 1 and 5 seconds (and send one after that). We do something else: each 5 seconds, we look for any changed routes and broadcast them.


Function

void rip_timer (timer * t)

Arguments

timer * t

timer

Description

Broadcast routing tables periodically (using rip_tx) and kill routes that are too old. RIP keeps a list of its own entries present in the core table by a linked list (functions rip_rte_insert() and rip_rte_delete() are responsible for that), it walks this list in the timer and in case an entry is too old, it is discarded.


Function

struct rip_interface * new_iface (struct proto * p, struct iface * new, unsigned long flags, struct iface_patt * patt)

Arguments

struct proto * p

myself

struct iface * new

interface to be created or NULL if we are creating a magic socket. The magic socket is used for listening and also for sending requested responses.

unsigned long flags

interface flags

struct iface_patt * patt

pattern this interface matched, used for access to config options

Description

Create an interface structure and start listening on the interface.

5.6 Router Advertisements

The RAdv protocol is implemented in two files: radv.c containing the interface with BIRD core and the protocol logic and packets.c handling low level protocol stuff (RX, TX and packet formats). The protocol does not export any routes.

The RAdv is structured in the usual way - for each handled interface there is a structure radv_iface that contains a state related to that interface together with its resources (a socket, a timer). There is also a prepared RA stored in a TX buffer of the socket associated with an iface. These iface structures are created and removed according to iface events from BIRD core handled by radv_if_notify() callback.

The main logic of RAdv consists of two functions: radv_iface_notify(), which processes asynchronous events (specified by RA_EV_* codes), and radv_timer(), which triggers sending RAs and computes the next timeout.

The RAdv protocol could receive routes (through radv_import_control() and radv_rt_notify()), but only the configured trigger route is tracked (in active var). When a radv protocol is reconfigured, the connected routing table is examined (in radv_check_active()) to have proper active value in case of the specified trigger prefix was changed.

Supported standards: - RFC 4861 - main RA standard - RFC 6106 - DNS extensions (RDDNS, DNSSL)

5.7 Static

The Static protocol is implemented in a straightforward way. It keeps two lists of static routes: one containing interface routes and one holding the remaining ones. Interface routes are inserted and removed according to interface events received from the core via the if_notify() hook. Routes pointing to a neighboring router use a sticky node in the neighbor cache to be notified about gaining or losing the neighbor. Special routes like black holes or rejects are inserted all the time.

Multipath routes are tricky. Because these routes depends on several neighbors we need to integrate that to the neighbor notification handling, we use dummy static_route nodes, one for each nexthop. Therefore, a multipath route consists of a master static_route node (of dest RTD_MULTIPATH), which specifies prefix and is used in most circumstances, and a list of dummy static_route nodes (of dest RTD_NONE), which stores info about nexthops and are connected to neighbor entries and neighbor notifications. Dummy nodes are chained using mp_next, they aren't in other_routes list, and abuse some fields (masklen, if_name) for other purposes.

The only other thing worth mentioning is that when asked for reconfiguration, Static not only compares the two configurations, but it also calculates difference between the lists of static routes and it just inserts the newly added routes and removes the obsolete ones.

5.8 Direct

The Direct protocol works by converting all ifa_notify() events it receives to rte_update() calls for the corresponding network.


Next Previous Contents bird-1.4.0/doc/prog-intro.sgml0000644000103200001440000001772611606273733015176 0ustar feelausersBIRD Design Introduction

This document describes the internal workings of BIRD, its architecture, design decisions and rationale behind them. It also contains documentation on all the essential components of the system and their interfaces.

Routing daemons are complicated things which need to act in real time to complex sequences of external events, respond correctly even to the most erroneous behavior of their environment and still handle enormous amount of data with reasonable speed. Due to all of this, their design is very tricky as one needs to carefully balance between efficiency, stability and (last, but not least) simplicity of the program and it would be possible to write literally hundreds of pages about all of these issues. In accordance to the famous quote of Anton Chekhov "Shortness is a sister of talent", we've tried to write a much shorter document highlighting the most important stuff and leaving the boring technical details better explained by the program source itself together with comments contained therein. Design goals

When planning the architecture of BIRD, we've taken a close look at the other existing routing daemons and also at some of the operating systems used on dedicated routers, gathered all important features and added lots of new ones to overcome their shortcomings and to better match the requirements of routing in today's Internet: IPv6, policy routing, route filtering and so on. From this planning, the following set of design goals has arisen: Support all the standard routing protocols and make it easy to add new ones. This leads to modularity and clean separation between the core and the protocols. Support both IPv4 and IPv6 in the same source tree, re-using most of the code. This leads to abstraction of IP addresses and operations on them. Minimize OS dependent code to make porting as easy as possible. Unfortunately, such code cannot be avoided at all as the details of communication with the IP stack differ from OS to OS and they often vary even between different versions of the same OS. But we can isolate such code in special modules and do the porting by changing or replacing just these modules. Also, don't rely on specific features of various operating systems, but be able to make use of them if they are available. Allow multiple routing tables. Easily solvable by abstracting out routing tables and the corresponding operations. Offer powerful route filtering. There already were several attempts to incorporate route filters to a dynamic router, but most of them have used simple sequences of filtering rules which were very inflexible and hard to use for non-trivial filters. We've decided to employ a simple loop-free programming language having access to all the route attributes and being able to modify the most of them. Support easy configuration and re-configuration. Most routers use a simple configuration language designed ad hoc with no structure at all and allow online changes of configuration by using their command-line interface, thus any complex re-configurations are hard to achieve without replacing the configuration file and restarting the whole router. We've decided to use a more general approach: to have a configuration defined in a context-free language with blocks and nesting, to perform all configuration changes by editing the configuration file, but to be able to read the new configuration and smoothly adapt to it without disturbing parts of the routing process which are not affected by the change. Be able to be controlled online. In addition to the online reconfiguration, a routing daemon should be able to communicate with the user and with many other programs (primarily scripts used for network maintenance) in order to make it possible to inspect contents of routing tables, status of all routing protocols and also to control their behavior (disable, enable or reset a protocol without restarting all the others). To achieve this, we implement a simple command-line protocol based on those used by FTP and SMTP (that is textual commands and textual replies accompanied by a numeric code which makes them both readable to a human and easy to recognize in software). Respond to all events in real time. A typical solution to this problem is to use lots of threads to separate the workings of all the routing protocols and also of the user interface parts and to hope that the scheduler will assign time to them in a fair enough manner. This is surely a good solution, but we have resisted the temptation and preferred to avoid the overhead of threading and the large number of locks involved and preferred a event driven architecture with our own scheduling of events. An unpleasant consequence of such an approach is that long lasting tasks must be split to more parts linked by special events or timers to make the CPU available for other tasks as well. Architecture

The requirements set above have lead to a simple modular architecture containing the following types of modules: Core modules implement the core functions of BIRD: taking care of routing tables, keeping protocol status, interacting with the user using the Command-Line Interface (to be called CLI in the rest of this document) etc. Library modules form a large set of various library functions implementing several data abstractions, utility functions and also functions which are a part of the standard libraries on some systems, but missing on other ones. Resource management modules take care of resources, their allocation and automatic freeing when the module having requested shuts itself down. Configuration modules are fragments of lexical analyzer, grammar rules and the corresponding snippets of C code. For each group of code modules (core, each protocol, filters) there exist a configuration module taking care of all the related configuration stuff. The filter implements the route filtering language. Protocol modules implement the individual routing protocols. System-dependent modules implement the interface between BIRD and specific operating systems. The client is a simple program providing an easy, though friendly interface to the CLI. Implementation

BIRD has been written in GNU C. We've considered using C++, but we've preferred the simplicity and straightforward nature of C which gives us fine control over all implementation details and on the other hand enough instruments to build the abstractions we need.

The modules are statically linked to produce a single executable file (except for the client which stands on its own).

The building process is controlled by a set of Makefiles for GNU Make, intermixed with several Perl and shell scripts.

The initial configuration of the daemon, detection of system features and selection of the right modules to include for the particular OS and the set of protocols the user has chosen is performed by a configure script generated by GNU Autoconf.

The parser of the configuration is generated by the GNU Bison.

The documentation is generated using The comments from C sources which form a part of the programmer's documentation are extracted using a modified version of the If you want to work on BIRD, it's highly recommended to configure it with a bird-1.4.0/doc/bird-1.html0000644000103200001440000002001012244656167014137 0ustar feelausers BIRD User's Guide: Introduction Next Previous Contents


1. Introduction

1.1 What is BIRD

The name `BIRD' is actually an acronym standing for `BIRD Internet Routing Daemon'. Let's take a closer look at the meaning of the name:

BIRD: Well, we think we have already explained that. It's an acronym standing for `BIRD Internet Routing Daemon', you remember, don't you? :-)

Internet Routing: It's a program (well, a daemon, as you are going to discover in a moment) which works as a dynamic router in an Internet type network (that is, in a network running either the IPv4 or the IPv6 protocol). Routers are devices which forward packets between interconnected networks in order to allow hosts not connected directly to the same local area network to communicate with each other. They also communicate with the other routers in the Internet to discover the topology of the network which allows them to find optimal (in terms of some metric) rules for forwarding of packets (which are called routing tables) and to adapt themselves to the changing conditions such as outages of network links, building of new connections and so on. Most of these routers are costly dedicated devices running obscure firmware which is hard to configure and not open to any changes (on the other hand, their special hardware design allows them to keep up with lots of high-speed network interfaces, better than general-purpose computer does). Fortunately, most operating systems of the UNIX family allow an ordinary computer to act as a router and forward packets belonging to the other hosts, but only according to a statically configured table.

A Routing Daemon is in UNIX terminology a non-interactive program running on background which does the dynamic part of Internet routing, that is it communicates with the other routers, calculates routing tables and sends them to the OS kernel which does the actual packet forwarding. There already exist other such routing daemons: routed (RIP only), GateD (non-free), Zebra http://www.zebra.org and MRTD http://sourceforge.net/projects/mrt, but their capabilities are limited and they are relatively hard to configure and maintain.

BIRD is an Internet Routing Daemon designed to avoid all of these shortcomings, to support all the routing technology used in the today's Internet or planned to be used in near future and to have a clean extensible architecture allowing new routing protocols to be incorporated easily. Among other features, BIRD supports:

  • both IPv4 and IPv6 protocols
  • multiple routing tables
  • the Border Gateway Protocol (BGPv4)
  • the Routing Information Protocol (RIPv2)
  • the Open Shortest Path First protocol (OSPFv2, OSPFv3)
  • the Router Advertisements for IPv6 hosts
  • a virtual protocol for exchange of routes between different routing tables on a single host
  • a command-line interface allowing on-line control and inspection of status of the daemon
  • soft reconfiguration (no need to use complex online commands to change the configuration, just edit the configuration file and notify BIRD to re-read it and it will smoothly switch itself to the new configuration, not disturbing routing protocols unless they are affected by the configuration changes)
  • a powerful language for route filtering

BIRD has been developed at the Faculty of Math and Physics, Charles University, Prague, Czech Republic as a student project. It can be freely distributed under the terms of the GNU General Public License.

BIRD has been designed to work on all UNIX-like systems. It has been developed and tested under Linux 2.0 to 2.6, and then ported to FreeBSD, NetBSD and OpenBSD, porting to other systems (even non-UNIX ones) should be relatively easy due to its highly modular architecture.

BIRD supports either IPv4 or IPv6 protocol, but have to be compiled separately for each one. Therefore, a dualstack router would run two instances of BIRD (one for IPv4 and one for IPv6), with completely separate setups (configuration files, tools ...).

1.2 Installing BIRD

On a recent UNIX system with GNU development tools (GCC, binutils, m4, make) and Perl, installing BIRD should be as easy as:


        ./configure
        make
        make install
        vi /usr/local/etc/bird.conf
        bird

You can use ./configure --help to get a list of configure options. The most important ones are: --enable-ipv6 which enables building of an IPv6 version of BIRD, --with-protocols= to produce a slightly smaller BIRD executable by configuring out routing protocols you don't use, and --prefix= to install BIRD to a place different from. /usr/local.

1.3 Running BIRD

You can pass several command-line options to bird:

-c config name

use given configuration file instead of prefix/etc/bird.conf.

-d

enable debug messages and run bird in foreground.

-D filename of debug log

log debugging information to given file instead of stderr.

-p

just parse the config file and exit. Return value is zero if the config file is valid, nonzero if there are some errors.

-s name of communication socket

use given filename for a socket for communications with the client, default is prefix/var/run/bird.ctl.

-P name of PID file

create a PID file with given filename.

-u user

drop privileges and use that user ID, see the next section for details.

-g group

use that group ID, see the next section for details.

-f

run bird in foreground.

BIRD writes messages about its work to log files or syslog (according to config).

1.4 Privileges

BIRD, as a routing daemon, uses several privileged operations (like setting routing table and using raw sockets). Traditionally, BIRD is executed and runs with root privileges, which may be prone to security problems. The recommended way is to use a privilege restriction (options -u, -g). In that case BIRD is executed with root privileges, but it changes its user and group ID to an unprivileged ones, while using Linux capabilities to retain just required privileges (capabilities CAP_NET_*). Note that the control socket is created before the privileges are dropped, but the config file is read after that. The privilege restriction is not implemented in BSD port of BIRD.

A nonprivileged user (as an argument to -u options) may be the user nobody, but it is suggested to use a new dedicated user account (like bird). The similar considerations apply for the group option, but there is one more condition -- the users in the same group can use birdc to control BIRD.

Finally, there is a possibility to use external tools to run BIRD in an environment with restricted privileges. This may need some configuration, but it is generally easy -- BIRD needs just the standard library, privileges to read the config file and create the control socket and the CAP_NET_* capabilities.


Next Previous Contents bird-1.4.0/doc/bird-5.html0000644000103200001440000005724112244656170014155 0ustar feelausers BIRD User's Guide: Filters Next Previous Contents

5. Filters

5.1 Introduction

BIRD contains a simple programming language. (No, it can't yet read mail :-). There are two objects in this language: filters and functions. Filters are interpreted by BIRD core when a route is being passed between protocols and routing tables. The filter language contains control structures such as if's and switches, but it allows no loops. An example of a filter using many features can be found in filter/test.conf.

Filter gets the route, looks at its attributes and modifies some of them if it wishes. At the end, it decides whether to pass the changed route through (using accept) or whether to reject it. A simple filter looks like this:


filter not_too_far
int var;
{
        if defined( rip_metric ) then
                var = rip_metric;
        else {
                var = 1;
                rip_metric = 1;
        }
        if rip_metric > 10 then
                reject "RIP metric is too big";
        else
                accept "ok";
}

As you can see, a filter has a header, a list of local variables, and a body. The header consists of the filter keyword followed by a (unique) name of filter. The list of local variables consists of type name; pairs where each pair defines one local variable. The body consists of { statements }. Each statement is terminated by a ;. You can group several statements to a single compound statement by using braces ({ statements }) which is useful if you want to make a bigger block of code conditional.

BIRD supports functions, so that you don't have to repeat the same blocks of code over and over. Functions can have zero or more parameters and they can have local variables. Recursion is not allowed. Function definitions look like this:


function name ()
int local_variable;
{
        local_variable = 5;
}

function with_parameters (int parameter)
{
        print parameter;
}

Unlike in C, variables are declared after the function line, but before the first {. You can't declare variables in nested blocks. Functions are called like in C: name(); with_parameters(5);. Function may return values using the return [expr] command. Returning a value exits from current function (this is similar to C).

Filters are declared in a way similar to functions except they can't have explicit parameters. They get a route table entry as an implicit parameter, it is also passed automatically to any functions called. The filter must terminate with either accept or reject statement. If there's a runtime error in filter, the route is rejected.

A nice trick to debug filters is to use show route filter name from the command line client. An example session might look like:


pavel@bug:~/bird$ ./birdc -s bird.ctl
BIRD 0.0.0 ready.
bird> show route
10.0.0.0/8         dev eth0 [direct1 23:21] (240)
195.113.30.2/32    dev tunl1 [direct1 23:21] (240)
127.0.0.0/8        dev lo [direct1 23:21] (240)
bird> show route ?
show route [<prefix>] [table <t>] [filter <f>] [all] [primary]...
bird> show route filter { if 127.0.0.5 ~ net then accept; }
127.0.0.0/8        dev lo [direct1 23:21] (240)
bird>

5.2 Data types

Each variable and each value has certain type. Booleans, integers and enums are incompatible with each other (that is to prevent you from shooting in the foot).

bool

This is a boolean type, it can have only two values, true and false. Boolean is the only type you can use in if statements.

int

This is a general integer type. It is an unsigned 32bit type; i.e., you can expect it to store values from 0 to 4294967295. Overflows are not checked. You can use 0x1234 syntax to write hexadecimal values.

pair

This is a pair of two short integers. Each component can have values from 0 to 65535. Literals of this type are written as (1234,5678). The same syntax can also be used to construct a pair from two arbitrary integer expressions (for example (1+2,a)).

quad

This is a dotted quad of numbers used to represent router IDs (and others). Each component can have a value from 0 to 255. Literals of this type are written like IPv4 addresses.

string

This is a string of characters. There are no ways to modify strings in filters. You can pass them between functions, assign them to variables of type string, print such variables, use standard string comparison operations (e.g. =, !=, <, >, <=, >=), but you can't concatenate two strings. String literals are written as "This is a string constant". Additionaly matching ~ operator could be used to match a string value against a shell pattern (represented also as a string).

ip

This type can hold a single IP address. Depending on the compile-time configuration of BIRD you are using, it is either an IPv4 or IPv6 address. IP addresses are written in the standard notation (10.20.30.40 or fec0:3:4::1). You can apply special operator .mask(num) on values of type ip. It masks out all but first num bits from the IP address. So 1.2.3.4.mask(8) = 1.0.0.0 is true.

prefix

This type can hold a network prefix consisting of IP address and prefix length. Prefix literals are written as ipaddress/pxlen, or ipaddress/netmask. There are two special operators on prefixes: .ip which extracts the IP address from the pair, and .len, which separates prefix length from the pair. So 1.2.0.0/16.pxlen = 16 is true.

ec

This is a specialized type used to represent BGP extended community values. It is essentially a 64bit value, literals of this type are usually written as (kind, key, value), where kind is a kind of extended community (e.g. rt / ro for a route target / route origin communities), the format and possible values of key and value are usually integers, but it depends on the used kind. Similarly to pairs, ECs can be constructed using expressions for key and value parts, (e.g. (ro, myas, 3*10), where myas is an integer variable).

int|pair|quad|ip|prefix|ec|enum set

Filters recognize four types of sets. Sets are similar to strings: you can pass them around but you can't modify them. Literals of type int set look like [ 1, 2, 5..7 ]. As you can see, both simple values and ranges are permitted in sets.

For pair sets, expressions like (123,*) can be used to denote ranges (in that case (123,0)..(123,65535)). You can also use (123,5..100) for range (123,5)..(123,100). You can also use * and a..b expressions in the first part of a pair, note that such expressions are translated to a set of intervals, which may be memory intensive. E.g. (*,4..20) is translated to (0,4..20), (1,4..20), (2,4..20), ... (65535, 4..20).

EC sets use similar expressions like pair sets, e.g. (rt, 123, 10..20) or (ro, 123, *). Expressions requiring the translation (like (rt, *, 3)) are not allowed (as they usually have 4B range for ASNs).

You can also use expressions for int, pair and EC set values. However it must be possible to evaluate these expressions before daemon boots. So you can use only constants inside them. E.g.


         define one=1;
         define myas=64500;
         int set odds;
         pair set ps;
         ec set es;

         odds = [ one, 2+1, 6-one, 2*2*2-1, 9, 11 ];
         ps = [ (1,one+one), (3,4)..(4,8), (5,*), (6,3..6), (7..9,*) ];
         es = [ (rt, myas, 3*10), (rt, myas+one, 0..16*16*16-1), (ro, myas+2, *) ];
        

Sets of prefixes are special: their literals does not allow ranges, but allows prefix patterns that are written as ipaddress/pxlen{low,high}. Prefix ip1/len1 matches prefix pattern ip2/len2{l,h} if the first min(len1, len2) bits of ip1 and ip2 are identical and len1 <= ip1 <= len2. A valid prefix pattern has to satisfy low <= high, but pxlen is not constrained by low or high. Obviously, a prefix matches a prefix set literal if it matches any prefix pattern in the prefix set literal.

There are also two shorthands for prefix patterns: address/len+ is a shorthand for address/len{len,maxlen} (where maxlen is 32 for IPv4 and 128 for IPv6), that means network prefix address/len and all its subnets. address/len- is a shorthand for address/len{0,len}, that means network prefix address/len and all its supernets (network prefixes that contain it).

For example, [ 1.0.0.0/8, 2.0.0.0/8+, 3.0.0.0/8-, 4.0.0.0/8{16,24} ] matches prefix 1.0.0.0/8, all subprefixes of 2.0.0.0/8, all superprefixes of 3.0.0.0/8 and prefixes 4.X.X.X whose prefix length is 16 to 24. [ 0.0.0.0/0{20,24} ] matches all prefixes (regardless of IP address) whose prefix length is 20 to 24, [ 1.2.3.4/32- ] matches any prefix that contains IP address 1.2.3.4. 1.2.0.0/16 ~ [ 1.0.0.0/8{15,17} ] is true, but 1.0.0.0/16 ~ [ 1.0.0.0/8- ] is false.

Cisco-style patterns like 10.0.0.0/8 ge 16 le 24 can be expressed in BIRD as 10.0.0.0/8{16,24}, 192.168.0.0/16 le 24 as 192.168.0.0/16{16,24} and 192.168.0.0/16 ge 24 as 192.168.0.0/16{24,32}.

enum

Enumeration types are fixed sets of possibilities. You can't define your own variables of such type, but some route attributes are of enumeration type. Enumeration types are incompatible with each other.

bgppath

BGP path is a list of autonomous system numbers. You can't write literals of this type. There are several special operators on bgppaths:

P.first returns the first ASN (the neighbor ASN) in path P.

P.last returns the last ASN (the source ASN) in path P.

Both first and last return zero if there is no appropriate ASN, for example if the path contains an AS set element as the first (or the last) part.

P.len returns the length of path P.

prepend(P,A) prepends ASN A to path P and returns the result.

delete(P,A) deletes all instances of ASN A from from path P and returns the result. A may also be an integer set, in that case the operator deletes all ASNs from path P that are also members of set A.

filter(P,A) deletes all ASNs from path P that are not members of integer set A. I.e., filter do the same as delete with inverted set A.

Statement P = prepend(P, A); can be shortened to P.prepend(A); if P is appropriate route attribute (for example bgp_path). Similarly for delete and filter.

bgpmask

BGP masks are patterns used for BGP path matching (using path ~ [= 2 3 5 * =] syntax). The masks resemble wildcard patterns as used by UNIX shells. Autonomous system numbers match themselves, * matches any (even empty) sequence of arbitrary AS numbers and ? matches one arbitrary AS number. For example, if bgp_path is 4 3 2 1, then: bgp_path ~ [= * 4 3 * =] is true, but bgp_path ~ [= * 4 5 * =] is false. BGP mask expressions can also contain integer expressions enclosed in parenthesis and integer variables, for example [= * 4 (1+2) a =]. There is also old syntax that uses / .. / instead of [= .. =] and ? instead of *.

clist

Clist is similar to a set, except that unlike other sets, it can be modified. The type is used for community list (a set of pairs) and for cluster list (a set of quads). There exist no literals of this type. There are three special operators on clists:

C.len returns the length of clist C.

add(C,P) adds pair (or quad) P to clist C and returns the result. If item P is already in clist C, it does nothing. P may also be a clist, in that case all its members are added; i.e., it works as clist union.

delete(C,P) deletes pair (or quad) P from clist C and returns the result. If clist C does not contain item P, it does nothing. P may also be a pair (or quad) set, in that case the operator deletes all items from clist C that are also members of set P. Moreover, P may also be a clist, which works analogously; i.e., it works as clist difference.

filter(C,P) deletes all items from clist C that are not members of pair (or quad) set P. I.e., filter do the same as delete with inverted set P. P may also be a clist, which works analogously; i.e., it works as clist intersection.

Statement C = add(C, P); can be shortened to C.add(P); if C is appropriate route attribute (for example bgp_community). Similarly for delete and filter.

eclist

Eclist is a data type used for BGP extended community lists. Eclists are very similar to clists, but they are sets of ECs instead of pairs. The same operations (like add, delete, or ~ membership operator) can be used to modify or test eclists, with ECs instead of pairs as arguments.

5.3 Operators

The filter language supports common integer operators (+,-,*,/), parentheses (a*(b+c)), comparison (a=b, a!=b, a<b, a>=b). Logical operations include unary not (!), and (&&) and or (||). Special operators include ~ for "is element of a set" operation - it can be used on element and set of elements of the same type (returning true if element is contained in the given set), or on two strings (returning true if first string matches a shell-like pattern stored in second string) or on IP and prefix (returning true if IP is within the range defined by that prefix), or on prefix and prefix (returning true if first prefix is more specific than second one) or on bgppath and bgpmask (returning true if the path matches the mask) or on number and bgppath (returning true if the number is in the path) or on bgppath and int (number) set (returning true if any ASN from the path is in the set) or on pair/quad and clist (returning true if the pair/quad is element of the clist) or on clist and pair/quad set (returning true if there is an element of the clist that is also a member of the pair/quad set).

There is one operator related to ROA infrastructure - roa_check(). It examines a ROA table and does RFC 6483 route origin validation for a given network prefix. The basic usage is roa_check(table), which checks current route (which should be from BGP to have AS_PATH argument) in the specified ROA table and returns ROA_UNKNOWN if there is no relevant ROA, ROA_VALID if there is a matching ROA, or ROA_INVALID if there are some relevant ROAs but none of them match. There is also an extended variant roa_check(table, prefix, asn), which allows to specify a prefix and an ASN as arguments.

5.4 Control structures

Filters support two control structures: conditions and case switches.

Syntax of a condition is: if boolean expression then command1; else command2; and you can use { command_1; command_2; ... } instead of either command. The else clause may be omitted. If the boolean expression is true, command1 is executed, otherwise command2 is executed.

The case is similar to case from Pascal. Syntax is case expr { else: | num_or_prefix [ .. num_or_prefix]: statement ; [ ... ] }. The expression after case can be of any type which can be on the left side of the ~ operator and anything that could be a member of a set is allowed before :. Multiple commands are allowed without {} grouping. If expr matches one of the : clauses, statements between it and next : statement are executed. If expr matches neither of the : clauses, the statements after else: are executed.

Here is example that uses if and case structures:


case arg1 {
        2: print "two"; print "I can do more commands without {}";
        3 .. 5: print "three to five";
        else: print "something else";
}

if 1234 = i then printn "."; else { 
  print "not 1234"; 
  print "You need {} around multiple commands"; 
}

5.5 Route attributes

A filter is implicitly passed a route, and it can access its attributes just like it accesses variables. Attempts to access undefined attribute result in a runtime error; you can check if an attribute is defined by using the defined( attribute ) operator. One notable exception to this rule are attributes of clist type, where undefined value is regarded as empty clist for most purposes.

prefix net

Network the route is talking about. Read-only. (See the chapter about routing tables.)

enum scope

The scope of the route. Possible values: SCOPE_HOST for routes local to this host, SCOPE_LINK for those specific for a physical link, SCOPE_SITE and SCOPE_ORGANIZATION for private routes and SCOPE_UNIVERSE for globally visible routes. This attribute is not interpreted by BIRD and can be used to mark routes in filters. The default value for new routes is SCOPE_UNIVERSE.

int preference

Preference of the route. Valid values are 0-65535. (See the chapter about routing tables.)

ip from

The router which the route has originated from.

ip gw

Next hop packets routed using this route should be forwarded to.

string proto

The name of the protocol which the route has been imported from. Read-only.

enum source

what protocol has told me about this route. Possible values: RTS_DUMMY, RTS_STATIC, RTS_INHERIT, RTS_DEVICE, RTS_STATIC_DEVICE, RTS_REDIRECT, RTS_RIP, RTS_OSPF, RTS_OSPF_IA, RTS_OSPF_EXT1, RTS_OSPF_EXT2, RTS_BGP, RTS_PIPE.

enum cast

Route type (Currently RTC_UNICAST for normal routes, RTC_BROADCAST, RTC_MULTICAST, RTC_ANYCAST will be used in the future for broadcast, multicast and anycast routes). Read-only.

enum dest

Type of destination the packets should be sent to (RTD_ROUTER for forwarding to a neighboring router, RTD_DEVICE for routing to a directly-connected network, RTD_MULTIPATH for multipath destinations, RTD_BLACKHOLE for packets to be silently discarded, RTD_UNREACHABLE, RTD_PROHIBIT for packets that should be returned with ICMP host unreachable / ICMP administratively prohibited messages). Can be changed, but only to RTD_BLACKHOLE, RTD_UNREACHABLE or RTD_PROHIBIT.

string ifname

Name of the outgoing interface. Sink routes (like blackhole, unreachable or prohibit) and multipath routes have no interface associated with them, so ifname returns an empty string for such routes. Read-only.

int ifindex

Index of the outgoing interface. System wide index of the interface. May be used for interface matching, however indexes might change on interface creation/removal. Zero is returned for routes with undefined outgoing interfaces. Read-only.

int igp_metric

The optional attribute that can be used to specify a distance to the network for routes that do not have a native protocol metric attribute (like ospf_metric1 for OSPF routes). It is used mainly by BGP to compare internal distances to boundary routers (see below). It is also used when the route is exported to OSPF as a default value for OSPF type 1 metric.

There also exist some protocol-specific attributes which are described in the corresponding protocol sections.

5.6 Other statements

The following statements are available:

variable = expr

Set variable to a given value.

accept|reject [ expr ]

Accept or reject the route, possibly printing expr.

return expr

Return expr from the current function, the function ends at this point.

print|printn expr [, expr...]

Prints given expressions; useful mainly while debugging filters. The printn variant does not terminate the line.

quitbird

Terminates BIRD. Useful when debugging the filter interpreter.


Next Previous Contents