summaryrefslogtreecommitdiffstats
path: root/nest/rt-table.c
AgeCommit message (Collapse)Author
2000-06-07Spelling fixes to progdoc.Martin Mares
2000-06-02Better description of the route distribution process.Martin Mares
2000-06-02Documentation on routing tables and route attributes.Martin Mares
2000-06-01Documentation.Martin Mares
2000-05-30Killed bug in merging of dynamic attributes.Martin Mares
2000-05-19Routing table garbage collector gets really called.Martin Mares
2000-05-19Fixed a buglet in asynchronous feeding and increased maximum numberMartin Mares
of routes allowed per feeding phase.
2000-05-19Asynchronous feeding of protocols.Martin Mares
2000-05-13Added `show route for <prefix-or-ipa>' which looks up route leading toMartin Mares
given network.
2000-05-13Changed semantics of the rt_update hook. The attribute list we pass nowMartin Mares
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.)
2000-05-09rt_prune: Don't kill routes from protocols in FS_FEEDING state. If debugging,Martin Mares
call fib_check() on the table's fib.
2000-05-08Implemented `show route count' which is `show route stats' withMartin Mares
exception that it doesn't print the routes themselves.
2000-05-08Stop feeding the protocol if it suddenly shuts down.Martin Mares
2000-05-08Fixed `show route primary'.Martin Mares
2000-05-07Don't count networks with no routes (they are not displayed at all andMartin Mares
will be removed during the next garbage collection pass).
2000-05-07Implemented `show route <...> stats'.Martin Mares
2000-05-07Added commands `show route protocol <p>' and `show route import <p>' whichMartin Mares
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 <filter>' 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.
2000-05-06Fixed silly bug in previous commit.Martin Mares
2000-05-06When rte_update is called for an identical route, don't announce anything.Martin Mares
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.
2000-05-04Removed a lot of unused variables.Martin Mares
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.)
2000-05-02IPv6 address classification fixes.Martin Mares
2000-04-28Event handlers no longer return re-queue flag. Instead of using it, justMartin Mares
call ev_schedule() on the same handler which should work perfectly now.
2000-04-01Changed initialization of protocol list -- now we call proto_build() insteadMartin Mares
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.
2000-04-01When tracing, always print incoming part of the trace before the outgoing one.Martin Mares
Avoid buffer overflows in `show routes' command.
2000-04-01Include "lib/string.h" instead of <string.h>. It should give us bzero()Martin Mares
and other non-portable functions on all systems.
2000-03-30Use FF_FORCE_TMPATTR where appropriate.Martin Mares
2000-03-29f_run gets one more parameter to distinguish between in and out modes.Pavel Machek
2000-03-19Protocol tracing: Don't dump core on filtered out routes.Martin Mares
2000-03-12Fixed a bunch of FIXME's by removing them :)Martin Mares
2000-03-12Great cleanup of debug messages. LOCAL_DEBUG turned off in most modules,Martin Mares
several debug() calls converted to DBG().
2000-03-12Oops, got `<' and `>' markers in trace output reversed.Martin Mares
2000-03-12Added debugging of communication between protocols and routing tables.Martin Mares
Just ask for "debug routes" if you want to see the routes and "debug filters" if you want even the rejected ones.
2000-03-04Garbage collector events and counters are now per table and one dayMartin Mares
they can be made configurable if it turns out to be useful.
2000-03-01If the user has specified identical preferences for instances of differentMartin Mares
protocols, break the tie by comparing addresses, so we keep the ordering unambiguous.
2000-01-16Converted shutdown to a kind of reconfiguration, it's no more handledMartin Mares
as a exception in protocol state machines. Introduced a `shutdown' CLI command. Killed few reconfiguration bugs.
2000-01-16First attempt on dynamic reconfiguration. There are still lots of bugsMartin Mares
and problems to solve, but the hardest part works.
1999-12-16Avoid touching F_MODIFY, it no longer exists.Martin Mares
1999-12-08Except for special protocols (nowadays only the kernel syncer), don'tMartin Mares
export host and link scope routes.
1999-12-01Added dumping of routing tables (`show route'). This includes filtering.Martin Mares
1999-10-29Events now return a value. If it's non-zero, the event is re-queuedMartin Mares
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.
1999-08-03Ouch, how could I write this?Martin Mares
1999-08-03Allow announces of rte's to protocols in FS_FEEDING state.Martin Mares
Else, we would get chicken-egg problems in the table-to-table protocol.
1999-08-03Kernel route syncer supports multiple tables.Martin Mares
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. :)
1999-05-31Added extra argument to rt_update hook which contains a pointer to theMartin Mares
temporary attribute list.
1999-05-17From now we support multiple tables. The master_table variable isMartin Mares
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.
1999-04-12Removed TOS support. This simplifies many things a lot.Martin Mares
1999-04-05Routing table core changes to support full route filtering:Martin Mares
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.
1999-04-03More changes to the kernel syncer.Martin Mares
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.
1999-03-26Allow different instances of the same protocol with identical preferences.Martin Mares
1999-03-17rte_update: Check sanity of incoming entries. Throw out (and log) all routesMartin Mares
to bogus prefixes and non-local routes to host scope addresses.