summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2009-11-09Use IPv6 checksums in OSPFv3.Ondrej Zajicek
2009-11-09Merge branch 'dev' into ospf3Ondrej Zajicek
2009-10-11Workaround for stupid callback scheduler.Ondrej Zajicek
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).
2009-09-17Fixes headers for uintptr_t (and build on NetBSD).Ondrej Zajicek
2009-09-08Temporary OSPFv3 development commit.Ondrej Zajicek
Finally, it is working.
2009-09-04Clear memory allocated by ralloc().Ondrej Zajicek
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.
2009-09-04Temporary OSPFv3 development commit (changing multicast support).Ondrej Zajicek
2009-08-27Temporary OSPFv3 development commitOndrej Zajicek
2009-08-25Temporary OSPFv3 development commitOndrej Zajicek
2009-07-23Fixes compiler warning in OFFSETOF().Ondrej Zajicek
2009-07-23Adds %R printf directive for Router ID.Ondrej Zajicek
2009-07-06Fixes memory alignment problems on Sparc64.Ondrej Zajicek
Not quite standard construction, i should add some autoconf macro. Not tested yet.
2009-06-18Implements option that changes BGP listening socket parametres.Ondrej Zajicek
2009-06-18Minor bugfixes.Ondrej Zajicek
2009-06-10Changes OSPF to generate stub networks for non-primary addresses.Ondrej Zajicek
Also does some reorganization in RT LSA announcement.
2009-03-31Cleanup changesOndrej Zajicek
2009-03-31Reimplementation of prefix sets.Ondrej Zajicek
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.
2009-02-26Rate limit for most abundant log messagesOndrej Zajicek
2009-01-12Slist updateOndrej Zajicek
2008-12-25fixes some 64-bit related bugs.Ondrej Zajicek
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.
2008-12-18Fixes nasty bug in event processing.Ondrej Zajicek
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 :-) .
2008-11-01Multihop BGP was completely broken, because listening socket has alwaysOndrej Zajicek
ttl 1.
2008-10-26Implementation of MD5 authentication of BGP sessions.Ondrej Zajicek
2008-08-25Fix behavior of ipa_opposite().Martin Mares
It was giving wrong results on /30 networks.
2004-06-05Staticized lots of local functions.Martin Mares
2004-06-05Better prototypes.Martin Mares
2004-06-05One more in the library.Martin Mares
2004-06-05Renamed log() to log_msg(), but still keeping the old name as a macro.Martin Mares
This is done to avoid clashes with gcc-3.3 which has built-in logarithms :)
2004-06-05A better comment.Martin Mares
2004-06-04OSPF is ready for changing MTU.Ondrej Filip
2004-06-01ALIGN -> BIRD_ALIGNOndrej Filip
2004-05-31Rewritten the I/O loop. All socket operations are now safe, meaning thatMartin Mares
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.
2004-05-31Added UNUSED.Martin Mares
2004-05-31Added rmove() (by Andreas, tweaked by me).Martin Mares
2004-05-31Changed of comments.Ondrej Filip
2004-05-31alloca.h addedOndrej Filip
2004-05-31Use #include "alloca.h"Ondrej Filip
2004-05-31Some include added.Ondrej Filip
2004-05-31#ifndef ALIGN - it is defined on *BSDOndrej Filip
2002-11-13ABS should be a macro.Martin Mares
2001-08-19IP address formatting now uses the same rules as formatting of stringsMartin Mares
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.
2001-02-20Fixed duplicity in log category numbering.Martin Mares
Thanks to Zheng Yuan for spotting this.
2001-01-17Bug fix from Zheng Yuan <zyuan1@cig.mot.com>.Martin Mares
2001-01-15Added an explanatory comment.Martin Mares
2000-06-08Fixes for the programmer's manual.Martin Mares
2000-06-07Fixes to the progdoc.Martin Mares
2000-06-07Spelling fixes to progdoc.Martin Mares
2000-06-07#define SIZE_OF_IP_HEADEROndrej Filip
2000-06-05Documented sockets, events and timers.Martin Mares
2000-06-05Documented memory resources.Martin Mares