]>
git.ipfire.org Git - thirdparty/bird.git/log
Martin Mares [Sat, 1 Apr 2000 09:16:42 +0000 (09:16 +0000)]
When tracing, always print incoming part of the trace before the outgoing one.
Avoid buffer overflows in `show routes' command.
Martin Mares [Sat, 1 Apr 2000 09:15:55 +0000 (09:15 +0000)]
When processing ACCEPT/REJECT carrying no message, don't print
trailing newline.
I hope the fix is correct, but please check.
Martin Mares [Sat, 1 Apr 2000 09:15:10 +0000 (09:15 +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.
Ondrej Filip [Sat, 1 Apr 2000 02:45:49 +0000 (02:45 +0000)]
LSA checksum works. But it's very uneficient on little endian systems.
Martin Mares [Fri, 31 Mar 2000 23:40:00 +0000 (23:40 +0000)]
Removal of useless includes continues...
Martin Mares [Fri, 31 Mar 2000 23:35:59 +0000 (23:35 +0000)]
Removed lots of superfluous includes.
Use debug() instead of printf().
Martin Mares [Fri, 31 Mar 2000 23:33:03 +0000 (23:33 +0000)]
Use bsprintf() instead of sprintf().
Martin Mares [Fri, 31 Mar 2000 23:30:21 +0000 (23:30 +0000)]
Include "lib/string.h" instead of <string.h>. It should give us bzero()
and other non-portable functions on all systems.
Martin Mares [Fri, 31 Mar 2000 23:21:37 +0000 (23:21 +0000)]
Parsing of BGP attributes.
Martin Mares [Fri, 31 Mar 2000 23:21:19 +0000 (23:21 +0000)]
Fixed bug in processing of dynamic attributes.
Ondrej Filip [Fri, 31 Mar 2000 01:40:12 +0000 (01:40 +0000)]
Checksum changes. Bug is still NOT fixed. :-(
Ondrej Filip [Fri, 31 Mar 2000 01:14:41 +0000 (01:14 +0000)]
Some bug fixes. LSA checksum is still bad. I'll fix it later.
Ondrej Filip [Fri, 31 Mar 2000 00:21:41 +0000 (00:21 +0000)]
Sending of lspd as responce to lsreq done.
Ondrej Filip [Thu, 30 Mar 2000 20:18:51 +0000 (20:18 +0000)]
LSA structure changes. (Len added.)
Ondrej Filip [Thu, 30 Mar 2000 20:00:42 +0000 (20:00 +0000)]
Skeleton structures and files added.
Ondrej Filip [Thu, 30 Mar 2000 19:37:26 +0000 (19:37 +0000)]
Add hashing to link state request list.
Ondrej Filip [Thu, 30 Mar 2000 19:21:17 +0000 (19:21 +0000)]
Minor changes.
Martin Mares [Thu, 30 Mar 2000 18:44:23 +0000 (18:44 +0000)]
Basic analysis of UPDATE packets.
Martin Mares [Thu, 30 Mar 2000 17:39:48 +0000 (17:39 +0000)]
Connection state machine works.
Ondrej Filip [Thu, 30 Mar 2000 16:22:58 +0000 (16:22 +0000)]
Better list manipulation.
Martin Mares [Thu, 30 Mar 2000 10:44:20 +0000 (10:44 +0000)]
More BGP. This time it connects, but the state machine still isn't complete.
Martin Mares [Thu, 30 Mar 2000 10:43:37 +0000 (10:43 +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.
Martin Mares [Thu, 30 Mar 2000 08:50:46 +0000 (08:50 +0000)]
Use FF_FORCE_TMPATTR where appropriate.
Martin Mares [Thu, 30 Mar 2000 08:50:30 +0000 (08:50 +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.
Ondrej Filip [Thu, 30 Mar 2000 00:18:59 +0000 (00:18 +0000)]
LSreq initial work.
Martin Mares [Wed, 29 Mar 2000 22:57:46 +0000 (22:57 +0000)]
Avoid conflicts with libraries defining their own xmalloc by defining
xmalloc to bird_xmalloc internally.
Ondrej Filip [Wed, 29 Mar 2000 17:51:40 +0000 (17:51 +0000)]
Slave bug fix.
Ondrej Filip [Wed, 29 Mar 2000 17:18:06 +0000 (17:18 +0000)]
Many changes in dbdes sending & receiving. EXDONE caused.
Ondrej Filip [Wed, 29 Mar 2000 13:02:58 +0000 (13:02 +0000)]
RXMT timer handling bug fix.
Ondrej Filip [Wed, 29 Mar 2000 12:47:07 +0000 (12:47 +0000)]
Some FIXME added.
Ondrej Filip [Wed, 29 Mar 2000 12:45:37 +0000 (12:45 +0000)]
Sending of DBdes bug fixed.
Ondrej Filip [Wed, 29 Mar 2000 12:32:25 +0000 (12:32 +0000)]
IMMS reverted to bits. Outgoing packets dumping added.
Cisco does not set inteface MTU. Hmm....
Pavel Machek [Wed, 29 Mar 2000 09:02:00 +0000 (09:02 +0000)]
f_run gets one more parameter to distinguish between in and out modes.
Pavel Machek [Wed, 29 Mar 2000 08:58:06 +0000 (08:58 +0000)]
Cross-protocol issues solved better
Ondrej Filip [Wed, 29 Mar 2000 00:34:28 +0000 (00:34 +0000)]
DBdes sending/receiving changes.
Pavel Machek [Mon, 27 Mar 2000 12:21:11 +0000 (12:21 +0000)]
Use neigh_connected_to in rip, and behave more correctly
w.r.t. whotoldme and nexthop.
Martin Mares [Mon, 27 Mar 2000 12:16:37 +0000 (12:16 +0000)]
if_connected() is again private.
Introduced neigh_connected_to() to serve the same purpose efficiently.
Pavel Machek [Sun, 26 Mar 2000 21:31:57 +0000 (21:31 +0000)]
I broke compilation. Sorry.
Pavel Machek [Sun, 26 Mar 2000 18:01:27 +0000 (18:01 +0000)]
Split horizont done right.
Locks done better.
Pavel Machek [Sun, 26 Mar 2000 18:00:45 +0000 (18:00 +0000)]
if_connected is usefull outside of neighbour cache.
Pavel Machek [Fri, 24 Mar 2000 10:08:20 +0000 (10:08 +0000)]
FIXME was actually already resolved
Pavel Machek [Thu, 23 Mar 2000 12:08:40 +0000 (12:08 +0000)]
Minor change to make code more readable.
Pavel Machek [Wed, 22 Mar 2000 14:26:03 +0000 (14:26 +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.
Pavel Machek [Wed, 22 Mar 2000 14:23:40 +0000 (14:23 +0000)]
Format of dates changed, so rip authentication is now commented out.
Martin Mares [Tue, 21 Mar 2000 15:53:50 +0000 (15:53 +0000)]
Construction of BGP packets.
Martin Mares [Tue, 21 Mar 2000 15:51:30 +0000 (15:51 +0000)]
Wrote real version of unaligned data access functions (needed for BGP).
Martin Mares [Mon, 20 Mar 2000 21:50:17 +0000 (21:50 +0000)]
Started work on BGP. Wrote main part of the connection handling code.
Martin Mares [Mon, 20 Mar 2000 21:49:21 +0000 (21:49 +0000)]
Handle EINPROGRESS properly.
Set IP_DONTROUTE sockopt only if sk->ttl == 1.
Martin Mares [Mon, 20 Mar 2000 20:52:18 +0000 (20:52 +0000)]
Added missing newline in debug output.
Martin Mares [Mon, 20 Mar 2000 18:45:03 +0000 (18:45 +0000)]
Define new data types for BGP.
Martin Mares [Sun, 19 Mar 2000 22:09:07 +0000 (22:09 +0000)]
Bare skeleton of the BGP.
Martin Mares [Sun, 19 Mar 2000 21:59:24 +0000 (21:59 +0000)]
Protocol tracing: Don't dump core on filtered out routes.
Pavel Machek [Mon, 13 Mar 2000 13:31:00 +0000 (13:31 +0000)]
Cleanup, mostly debugging messages.
Martin Mares [Sun, 12 Mar 2000 23:04:04 +0000 (23:04 +0000)]
Add internal commands of the client to the command list.
Martin Mares [Sun, 12 Mar 2000 22:55:09 +0000 (22:55 +0000)]
Commands which failed expansions are to be stored to history, too.
Martin Mares [Sun, 12 Mar 2000 22:53:05 +0000 (22:53 +0000)]
Fixed a bunch of FIXME's by removing them :)
Martin Mares [Sun, 12 Mar 2000 22:44:54 +0000 (22:44 +0000)]
Made `show status' show uptime and time of last reconfiguration.
Martin Mares [Sun, 12 Mar 2000 22:43:13 +0000 (22:43 +0000)]
Added tm_format_datetime().
Martin Mares [Sun, 12 Mar 2000 22:40:07 +0000 (22:40 +0000)]
Don't crash when filter_same() gets called on FILTER_ACCEPT or FILTER_REJECT.
Martin Mares [Sun, 12 Mar 2000 21:58:51 +0000 (21:58 +0000)]
Yet another LOCAL_DEBUG turned off.
Martin Mares [Sun, 12 Mar 2000 21:54:39 +0000 (21:54 +0000)]
Cleaned up debugging in kernel syncer. Netlink has still LOCAL_DEBUG
turned on, but after some testing I'll gag it.
Martin Mares [Sun, 12 Mar 2000 21:47:25 +0000 (21:47 +0000)]
Use do { } while(0) instead of empty DBG if not debugging.
Martin Mares [Sun, 12 Mar 2000 21:01:38 +0000 (21:01 +0000)]
Great cleanup of debug messages. LOCAL_DEBUG turned off in most modules,
several debug() calls converted to DBG().
Martin Mares [Sun, 12 Mar 2000 20:50:35 +0000 (20:50 +0000)]
Added tracing of interface events.
Martin Mares [Sun, 12 Mar 2000 20:49:08 +0000 (20:49 +0000)]
Oops, got `<' and `>' markers in trace output reversed.
Martin Mares [Sun, 12 Mar 2000 20:30:53 +0000 (20:30 +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.
Pavel Machek [Fri, 10 Mar 2000 20:21:12 +0000 (20:21 +0000)]
Fix <=, >=, !=
Ondrej Filip [Thu, 9 Mar 2000 22:38:05 +0000 (22:38 +0000)]
LSA DB is completely redesigned. Now it should be faster and it needs
less memory.
Pavel Machek [Thu, 9 Mar 2000 16:38:51 +0000 (16:38 +0000)]
Categorized TRACE() messages in rip
Pavel Machek [Thu, 9 Mar 2000 15:12:41 +0000 (15:12 +0000)]
Rip tracing: still need config hunk to set p->debug.
Pavel Machek [Thu, 9 Mar 2000 14:59:10 +0000 (14:59 +0000)]
log() classes done right
Pavel Machek [Thu, 9 Mar 2000 14:47:43 +0000 (14:47 +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
Pavel Machek [Thu, 9 Mar 2000 13:21:40 +0000 (13:21 +0000)]
CONST() is now gone
Ondrej Filip [Wed, 8 Mar 2000 12:50:28 +0000 (12:50 +0000)]
Sending of DBDes. (Checksum and length calculation NOT done.)
Martin Mares [Tue, 7 Mar 2000 21:50:21 +0000 (21:50 +0000)]
Added debugging of protocol state transitions.
Martin Mares [Tue, 7 Mar 2000 21:50:03 +0000 (21:50 +0000)]
Added configuration of default protocol debugging flags.
Martin Mares [Tue, 7 Mar 2000 21:04:36 +0000 (21:04 +0000)]
No longer echoes commands before sending them.
Martin Mares [Tue, 7 Mar 2000 21:04:14 +0000 (21:04 +0000)]
DBG calls debug() if defined(LOCAL_DEBUG) || defined(GLOBAL_DEBUG).
Martin Mares [Tue, 7 Mar 2000 20:49:48 +0000 (20:49 +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).
Martin Mares [Tue, 7 Mar 2000 20:09:35 +0000 (20:09 +0000)]
Renamed command `shutdown' to `down', so that `s' can be used as an
abbreviation for `show'.
Martin Mares [Sun, 5 Mar 2000 22:48:30 +0000 (22:48 +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.
Martin Mares [Sat, 4 Mar 2000 22:30:44 +0000 (22:30 +0000)]
Renamed EAF_INLINE to EAF_TEMP to make the name reflect the real meaning.
Martin Mares [Sat, 4 Mar 2000 22:21:06 +0000 (22:21 +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.
Martin Mares [Sat, 4 Mar 2000 21:27:57 +0000 (21:27 +0000)]
Removed bogus comment.
Martin Mares [Sat, 4 Mar 2000 21:26:35 +0000 (21:26 +0000)]
Fixed display of short continued messages in verbose mode.
Martin Mares [Sat, 4 Mar 2000 21:26:19 +0000 (21:26 +0000)]
Enabled short continuations.
Martin Mares [Sat, 4 Mar 2000 21:19:10 +0000 (21:19 +0000)]
Please *think* when defining operator priorities.
(-: num_of_parser_conflicts -= 42 :-)
Martin Mares [Sat, 4 Mar 2000 21:09:14 +0000 (21:09 +0000)]
Implemented real attribute cache.
Pavel Machek [Thu, 2 Mar 2000 22:23:18 +0000 (22:23 +0000)]
Avoid being exponential, do not allow ! =
Martin Mares [Wed, 1 Mar 2000 15:05:43 +0000 (15:05 +0000)]
Removed RTF_EXTERIOR and RTF_TAGGED (unused).
Martin Mares [Wed, 1 Mar 2000 14:51:47 +0000 (14:51 +0000)]
Reimplemented neighbor cache. Now uses real hashing.
Martin Mares [Wed, 1 Mar 2000 14:49:07 +0000 (14:49 +0000)]
Added proto->hash_key which contains randomly generated hash key used
for calculation of hash functions depending on proto.
Pavel Machek [Wed, 1 Mar 2000 14:42:59 +0000 (14:42 +0000)]
Added type parameter to f_new_dynamic_attr.
Pavel Machek [Wed, 1 Mar 2000 14:31:31 +0000 (14:31 +0000)]
tmp_attrs fixed.
I do not know if it is right since mj ingores talk once started :-(.
Martin Mares [Wed, 1 Mar 2000 12:15:20 +0000 (12:15 +0000)]
Changed comments regarding hash function.
Martin Mares [Wed, 1 Mar 2000 12:03:43 +0000 (12:03 +0000)]
IP_PREC_INTERNET_CONTROL for IPv6 (see the comment).
Martin Mares [Wed, 1 Mar 2000 11:48:11 +0000 (11:48 +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.
Martin Mares [Wed, 1 Mar 2000 11:42:13 +0000 (11:42 +0000)]
Made `datetime' more user friendly. Now it should be a quoted string
of type "dd-mm-yyyy".
Martin Mares [Wed, 1 Mar 2000 11:32:23 +0000 (11:32 +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.
Martin Mares [Wed, 1 Mar 2000 11:30:16 +0000 (11:30 +0000)]
Defined INVALID_TOKEN which is a token guaranteed to be never generated.