]> git.ipfire.org Git - thirdparty/bird.git/log
thirdparty/bird.git
15 years agoUgly hack for finding readline on NetBSD
Ondrej Zajicek [Thu, 21 May 2009 23:13:07 +0000 (01:13 +0200)] 
Ugly hack for finding readline on NetBSD

15 years agoBetter checks for M4 in configure.
Ondrej Zajicek [Thu, 21 May 2009 22:26:30 +0000 (00:26 +0200)] 
Better checks for M4 in configure.

15 years agoMerge branch 'master' into dev
Ondrej Zajicek [Thu, 21 May 2009 07:26:59 +0000 (09:26 +0200)] 
Merge branch 'master' into dev

15 years agoDocumentation updates
Ondrej Zajicek [Wed, 13 May 2009 20:04:44 +0000 (22:04 +0200)] 
Documentation updates

15 years ago'show route protocol <p>' added to CLI.
Ondrej Filip [Mon, 11 May 2009 00:01:11 +0000 (02:01 +0200)] 
'show route protocol <p>' added to CLI.

15 years agoOpenBSD port related changes.
Ondrej Filip [Sun, 10 May 2009 23:32:49 +0000 (01:32 +0200)] 
OpenBSD port related changes.

15 years agoFixed bug in cli help.
Ondrej Filip [Sun, 10 May 2009 17:23:05 +0000 (19:23 +0200)] 
Fixed bug in cli help.

15 years agoFixes in documentation.
Ondrej Zajicek [Sun, 10 May 2009 11:15:17 +0000 (13:15 +0200)] 
Fixes in documentation.

15 years agoFixes communication on netlink sockets
Ondrej Zajicek [Fri, 8 May 2009 12:37:06 +0000 (14:37 +0200)] 
Fixes communication on netlink sockets

Independent sessions on netlink sockets mixed state
in some common variables.

15 years agoA change in OSPF and RIP interface patterns.
Ondrej Zajicek [Wed, 6 May 2009 20:02:45 +0000 (22:02 +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 ... };

15 years agoFixes one recently introduced IPv6 BGP compatibility problem.
Ondrej Zajicek [Wed, 6 May 2009 13:18:52 +0000 (15:18 +0200)] 
Fixes one recently introduced IPv6 BGP compatibility problem.

15 years agoLinux specific TCP-MD5 handling moved to sysdep/linux/sysio.h
Ondrej Filip [Mon, 4 May 2009 16:17:46 +0000 (18:17 +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.

15 years agoSyntax error fix for systems without CONFIG_SELF_CONSCIOUS (KRT_ALLOW_LEARN)
Ondrej Filip [Mon, 4 May 2009 15:49:56 +0000 (17:49 +0200)] 
Syntax error fix for systems without CONFIG_SELF_CONSCIOUS (KRT_ALLOW_LEARN)

15 years agoAllow 'third party' BGP updates for originated routes.
Ondrej Zajicek [Wed, 29 Apr 2009 20:17:40 +0000 (22:17 +0200)] 
Allow 'third party' BGP updates for originated routes.

15 years agoFixes BGP IPv6 link local next hop handling.
Ondrej Zajicek [Wed, 29 Apr 2009 16:58:24 +0000 (18:58 +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.

15 years agoFixes handling of 'next hop self' and 'source address' configuration
Ondrej Zajicek [Tue, 28 Apr 2009 16:11:56 +0000 (18:11 +0200)] 
Fixes handling of 'next hop self' and 'source address' configuration
options.

15 years agoTypo in gendist script.
Ondrej Filip [Tue, 28 Apr 2009 09:56:33 +0000 (11:56 +0200)] 
Typo in gendist script.

15 years agoSmall formatting typo in documentation.
Ondrej Filip [Tue, 28 Apr 2009 09:53:12 +0000 (11:53 +0200)] 
Small formatting typo in documentation.

15 years agoGendist script adapted to git.
Ondrej Filip [Tue, 28 Apr 2009 08:20:50 +0000 (10:20 +0200)] 
Gendist script adapted to git.

15 years agoNEWS and version update
Ondrej Zajicek [Tue, 28 Apr 2009 07:46:59 +0000 (09:46 +0200)] 
NEWS and version update

15 years agoFixes BGPv6 bug - missing endianity conversion.
Ondrej Zajicek [Thu, 23 Apr 2009 21:15:07 +0000 (23:15 +0200)] 
Fixes BGPv6 bug - missing endianity conversion.

Also removes code skipping SNPAs
(obsoleted by newer RFCs, should be ignored).

15 years agoFixes BGPv6 bug - mandatory attributes weren't validated;
Ondrej Zajicek [Thu, 23 Apr 2009 12:44:02 +0000 (14:44 +0200)] 
Fixes BGPv6 bug - mandatory attributes weren't validated;

15 years agoFixe bug in BGPv6 that causes to send invalid network withdraws.
Ondrej Zajicek [Thu, 23 Apr 2009 12:16:05 +0000 (14:16 +0200)] 
Fixe bug in BGPv6 that causes to send invalid network withdraws.

15 years agoFixes bug in BGPv6 causing crash by checking missing attributes.
Ondrej Zajicek [Thu, 23 Apr 2009 10:36:24 +0000 (12:36 +0200)] 
Fixes bug in BGPv6 causing crash by checking missing attributes.

15 years agoFixes mixed-up messages on netlink socket
Ondrej Zajicek [Fri, 17 Apr 2009 16:43:11 +0000 (18:43 +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

15 years agoRewrite of buggy AS path matching.
Ondrej Zajicek [Thu, 16 Apr 2009 23:48:36 +0000 (01:48 +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.

15 years agoFixes broken cryptographic authentication in OSPF
Ondrej Zajicek [Wed, 8 Apr 2009 18:15:01 +0000 (20:15 +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).

15 years agoFixes bug in OSPF packet retransmission.
Ondrej Zajicek [Mon, 6 Apr 2009 14:53:06 +0000 (16:53 +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.

15 years agoBetter OSPF packet tracing log messages.
Ondrej Zajicek [Mon, 6 Apr 2009 14:17:47 +0000 (16:17 +0200)] 
Better OSPF packet tracing log messages.

Replaces old OSPF packet tracing messages with
uniform messages with packet dumps.

15 years agoDocumentation update
Ondrej Zajicek [Tue, 31 Mar 2009 19:30:58 +0000 (21:30 +0200)] 
Documentation update

15 years agoCleanup changes
Ondrej Zajicek [Tue, 31 Mar 2009 19:17:00 +0000 (21:17 +0200)] 
Cleanup changes

15 years agoReimplementation of prefix sets.
Ondrej Zajicek [Tue, 31 Mar 2009 10:55:57 +0000 (12:55 +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.

15 years agoMinor text updates.
Ondrej Zajicek [Wed, 25 Mar 2009 18:15:26 +0000 (19:15 +0100)] 
Minor text updates.

15 years agoFixes bug in pipe route filtering.
Ondrej Zajicek [Wed, 25 Mar 2009 18:05:52 +0000 (19:05 +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.

15 years agoFixes minor bug in pipe.
Ondrej Zajicek [Wed, 25 Mar 2009 17:29:17 +0000 (18:29 +0100)] 
Fixes minor bug in pipe.

Missing macro leads to not calling some of protocol's
callbacks.

15 years agoFix bugs related to kernel table synchronization.
Ondrej Zajicek [Fri, 20 Mar 2009 11:58:21 +0000 (12:58 +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.

15 years agoBetter handling of AS4 optional attribute errors
Ondrej Zajicek [Wed, 18 Mar 2009 19:30:21 +0000 (20:30 +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

15 years agoDocumentation fixes.
Ondrej Zajicek [Sat, 14 Mar 2009 21:18:49 +0000 (22:18 +0100)] 
Documentation fixes.

15 years agoPath related documentation update
Ondrej Zajicek [Sat, 14 Mar 2009 13:01:39 +0000 (14:01 +0100)] 
Path related documentation update

15 years agoNew syntax for bgp_path
Ondrej Zajicek [Sat, 14 Mar 2009 11:43:10 +0000 (12:43 +0100)] 
New syntax for bgp_path

15 years agoUpdate NEWS
Ondrej Zajicek [Fri, 13 Mar 2009 13:19:03 +0000 (14:19 +0100)] 
Update NEWS

15 years agoUpdate capability handshake options
Ondrej Zajicek [Fri, 13 Mar 2009 11:49:44 +0000 (12:49 +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.

15 years agoAdded Cisco and Quagga capability workaround option.
Ondrej Zajicek [Thu, 5 Mar 2009 10:52:47 +0000 (11:52 +0100)] 
Added Cisco and Quagga capability workaround option.

15 years agoBetter handling of too long attributes
Ondrej Zajicek [Fri, 27 Feb 2009 14:24:46 +0000 (15:24 +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.

15 years agoRate limit for most abundant log messages
Ondrej Zajicek [Thu, 26 Feb 2009 13:23:54 +0000 (14:23 +0100)] 
Rate limit for most abundant log messages

15 years agoFixes another bug in packet retransmissions.
Ondrej Zajicek [Wed, 25 Feb 2009 15:28:21 +0000 (16:28 +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.

15 years agoFixes crash during some expressions
Ondrej Zajicek [Sat, 21 Feb 2009 21:46:50 +0000 (22:46 +0100)] 
Fixes crash during some expressions

Bird crashed when 'bgp_path.len' was used for routes that does
not came from BGP.

15 years agoAdd format for BGP_AGGREGATOR attribute
Ondrej Zajicek [Sat, 21 Feb 2009 16:47:56 +0000 (17:47 +0100)] 
Add format for BGP_AGGREGATOR attribute

15 years agoFix bug in empty bgp mask handling
Ondrej Zajicek [Sat, 21 Feb 2009 15:20:45 +0000 (16:20 +0100)] 
Fix bug in empty bgp mask handling

15 years agoDocumentation update
Ondrej Zajicek [Thu, 12 Feb 2009 20:53:44 +0000 (21:53 +0100)] 
Documentation update

15 years agoFixes bug in packet retransmissions.
Ondrej Zajicek [Thu, 12 Feb 2009 18:46:51 +0000 (19:46 +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.

15 years agoFixes bug in protocol state machine
Ondrej Zajicek [Thu, 12 Feb 2009 12:43:06 +0000 (13:43 +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.

15 years agoDo not use ? for client-side help when in new BGP path syntax
Ondrej Zajicek [Thu, 12 Feb 2009 12:41:34 +0000 (13:41 +0100)] 
Do not use ? for client-side help when in new BGP path syntax

15 years agoNew syntax for bgp_path
Ondrej Zajicek [Tue, 27 Jan 2009 16:35:00 +0000 (17:35 +0100)] 
New syntax for bgp_path

15 years agoFixes compilation on older systems.
Ondrej Zajicek [Fri, 16 Jan 2009 11:49:51 +0000 (12:49 +0100)] 
Fixes compilation on older systems.

Older kernel headers (the ones in Debian Sarge) does not
have __kernel_sockaddr_storage .

15 years agoFixes some past config grammar update that caused password related regression.
Ondrej Zajicek [Fri, 16 Jan 2009 11:08:07 +0000 (12:08 +0100)] 
Fixes some past config grammar update that caused password related regression.

15 years agoOne null-pointer dereference bugfix hidden in whitespace changes
Ondrej Zajicek [Fri, 16 Jan 2009 09:58:52 +0000 (10:58 +0100)] 
One null-pointer dereference bugfix hidden in whitespace changes

15 years agoFix typo.
Ondrej Zajicek [Tue, 13 Jan 2009 18:25:27 +0000 (19:25 +0100)] 
Fix typo.

15 years agoFix OSPF protocol error recovery behavior.
Ondrej Zajicek [Tue, 13 Jan 2009 18:15:49 +0000 (19:15 +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.

15 years agoAdd check detecting packet overwrite in TX buffer.
Ondrej Zajicek [Mon, 12 Jan 2009 22:42:51 +0000 (23:42 +0100)] 
Add check detecting packet overwrite in TX buffer.

15 years agoSlist update
Ondrej Zajicek [Mon, 12 Jan 2009 13:40:21 +0000 (14:40 +0100)] 
Slist update

15 years agoSome fixes and update of OSPF debug messages
Ondrej Zajicek [Sun, 11 Jan 2009 11:14:27 +0000 (12:14 +0100)] 
Some fixes and update of OSPF debug messages

15 years agoMove check for NULL before usage of variable.
Ondrej Zajicek [Sun, 11 Jan 2009 09:51:54 +0000 (10:51 +0100)] 
Move check for NULL before usage of variable.

15 years agoFixes bug in OSPF
Ondrej Zajicek [Sun, 11 Jan 2009 09:47:41 +0000 (10:47 +0100)] 
Fixes bug in OSPF

Checksum was not recalculated when LSA was changed and
packets with bad checksum were sent.

15 years agoBugfix in interpret
Ondrej Zajicek [Thu, 25 Dec 2008 16:49:57 +0000 (17:49 +0100)] 
Bugfix in interpret

Missing cases in filter code interpret leads to crash
when  bgp_next_hop attr was queried.

15 years agofixes some 64-bit related bugs.
Ondrej Zajicek [Thu, 25 Dec 2008 10:55:27 +0000 (11:55 +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.

15 years agoAdds support for fallback to capabilityless BGP connect
Ondrej Zajicek [Wed, 24 Dec 2008 16:24:41 +0000 (17:24 +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.

15 years agoFixes bug related to reconfiguration of BGP.
Ondrej Zajicek [Wed, 24 Dec 2008 11:18:10 +0000 (12:18 +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.

15 years agoMajor changes to BGP
Ondrej Zajicek [Fri, 19 Dec 2008 00:34:39 +0000 (01:34 +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.

15 years agoFixes nasty bug in event processing.
Ondrej Zajicek [Thu, 18 Dec 2008 22:26:08 +0000 (23:26 +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 :-) .

15 years agorx_hook may be cleaned in some callback so we check it before
Ondrej Zajicek [Fri, 12 Dec 2008 16:48:03 +0000 (17:48 +0100)] 
rx_hook may be cleaned in some callback so we check it before
executing sk_read().

15 years agoFixes core state machine.
Ondrej Zajicek [Mon, 8 Dec 2008 11:24:55 +0000 (12:24 +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?

15 years agoFixes race condition leading to memory corruption and crash.
Ondrej Zajicek [Sat, 22 Nov 2008 00:12:22 +0000 (01:12 +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.

15 years agoFixes segfault with multiple routing tables.
Ondrej Zajicek [Fri, 21 Nov 2008 17:17:03 +0000 (18:17 +0100)] 
Fixes segfault with multiple routing tables.

15 years agoI am not sure whether this is proper fix for a problem that birdc
Ondrej Zajicek [Fri, 21 Nov 2008 12:05:12 +0000 (13:05 +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.

15 years agoThis is bug, isn't it?
Ondrej Zajicek [Fri, 21 Nov 2008 12:01:05 +0000 (13:01 +0100)] 
This is bug, isn't it?

15 years agobirdc died during terminal resize because of unhandled EINTR
Ondrej Zajicek [Fri, 21 Nov 2008 11:59:03 +0000 (12:59 +0100)] 
birdc died during terminal resize because of unhandled EINTR
in select loop.

15 years agoFix some bugs in filter interpret.
Ondrej Zajicek [Sun, 16 Nov 2008 21:16:04 +0000 (22:16 +0100)] 
Fix some bugs in filter interpret.

15 years agoFix bug in AS path matching
Ondrej Zajicek [Sun, 16 Nov 2008 10:35:30 +0000 (11:35 +0100)] 
Fix bug in AS path matching

15 years agoFixes feeding of new protocol, only preferred routes are announced.
Ondrej Zajicek [Fri, 14 Nov 2008 22:03:15 +0000 (23:03 +0100)] 
Fixes feeding of new protocol, only preferred routes are announced.

15 years agoOSPF routes appeared with random value of ospf_tag attribute.
Ondrej Zajicek [Fri, 14 Nov 2008 20:13:56 +0000 (21:13 +0100)] 
OSPF routes appeared with random value of ospf_tag attribute.
This patch fixes it.

15 years agoNew read-only route attribute 'proto' added. It returns a string
Ondrej Zajicek [Fri, 14 Nov 2008 13:50:37 +0000 (14:50 +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*"

15 years agoProper format functions for ORIGINATOR_ID, CLUSTER_LIST
Ondrej Zajicek [Sat, 8 Nov 2008 22:33:22 +0000 (23:33 +0100)] 
Proper format functions for ORIGINATOR_ID, CLUSTER_LIST

15 years agoFix bugs in OSPF MD5 authentication. First bug is that default
Ondrej Zajicek [Sat, 8 Nov 2008 16:24:23 +0000 (17:24 +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.

15 years agoUprava configure
Ondrej Zajicek [Thu, 6 Nov 2008 18:13:55 +0000 (19:13 +0100)] 
Uprava configure

15 years agoFix problem with local time changes.
Ondrej Zajicek [Wed, 5 Nov 2008 21:36:49 +0000 (22:36 +0100)] 
Fix problem with local time changes.

15 years agoFixes bugs in IPv6 code caused by recent commits.
Ondrej Zajicek [Wed, 5 Nov 2008 20:39:04 +0000 (21:39 +0100)] 
Fixes bugs in IPv6 code caused by recent commits.

15 years agoThese warnings are so abundant (because char * / byte * mix) that they
Ondrej Zajicek [Tue, 4 Nov 2008 13:52:47 +0000 (14:52 +0100)] 
These warnings are so abundant (because char * / byte * mix) that they
are completely useless.

15 years agoIgnore messages related to wireless extensions.
Ondrej Zajicek [Tue, 4 Nov 2008 13:51:45 +0000 (14:51 +0100)] 
Ignore messages related to wireless extensions.

15 years agoMultihop BGP was completely broken, because listening socket has always
Ondrej Zajicek [Sat, 1 Nov 2008 15:58:40 +0000 (16:58 +0100)] 
Multihop BGP was completely broken, because listening socket has always
ttl 1.

15 years agoImplementation of route server.
Ondrej Zajicek [Sat, 1 Nov 2008 11:55:43 +0000 (12:55 +0100)] 
Implementation of route server.

15 years agoFix race condition that breaks BGP connections after reconfigure.
Ondrej Zajicek [Wed, 29 Oct 2008 13:16:34 +0000 (14:16 +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.

15 years agoFixes some sloppiness of commit a3b70dc499b64f41aa776b5b4afee5c7bfb8dfa6.
Ondrej Zajicek [Tue, 28 Oct 2008 15:10:42 +0000 (16:10 +0100)] 
Fixes some sloppiness of commit a3b70dc499b64f41aa776b5b4afee5c7bfb8dfa6.

15 years agoMerge branch 'dev' into out
Ondrej Zajicek [Sun, 26 Oct 2008 23:20:22 +0000 (00:20 +0100)] 
Merge branch 'dev' into out

15 years agoTwo new informative CLI commands for OSPF.
Ondrej Zajicek [Sun, 26 Oct 2008 23:03:30 +0000 (00:03 +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.

15 years agoCheck of socket name length
Ondrej Zajicek [Sun, 26 Oct 2008 22:55:38 +0000 (23:55 +0100)] 
Check of socket name length

15 years agoMissing newline.
Ondrej Zajicek [Sun, 26 Oct 2008 22:53:05 +0000 (23:53 +0100)] 
Missing newline.

15 years agoBugfix in LSA origination for PTP OSPF links.
Ondrej Zajicek [Sun, 26 Oct 2008 22:43:13 +0000 (23:43 +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.

15 years agoDo not repeat 'Invalid broadcast address' error message.
Ondrej Zajicek [Sun, 26 Oct 2008 22:23:09 +0000 (23:23 +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.

15 years agoIgnore unknown netlink events.
Ondrej Zajicek [Sun, 26 Oct 2008 22:20:50 +0000 (23:20 +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.