summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
1998-12-06Added skeleton of static route protocol.Martin Mares
1998-12-06Kernel syncer is now configurable. It will probably need some moreMartin Mares
options, but at least basic tuning is possible now.
1998-12-06Fixed bug in CF_ADDTO. How it's possible it has ever worked?Martin Mares
1998-12-06Added rule "bool" for boolean switches.Martin Mares
1998-12-06Name cleanups as suggested by Pavel:Martin Mares
- 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.
1998-12-04Rip now has configurable per-interface metric (please rewiev), and fewPavel Machek
more configurable parameters. To do that, union was added into iface_patt.
1998-12-01Infinity is now configurable ammount.Pavel Machek
1998-11-29Added configuration of the device internal protocol. This is primarilyMartin Mares
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.
1998-11-29Handle disabled protocol instances.Martin Mares
1998-11-29Added functions for manipulating interface name pattern lists:Martin Mares
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.
1998-11-29Created new functions for allocating configuration data:Martin Mares
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.
1998-11-29`wc -l TODO` decreased.Martin Mares
1998-11-29Added function for shell-like pattern matching. Will be used forMartin Mares
matching interface names in protocol-to-iface bindings.
1998-11-29Allow setting debug value and `disabled' flag in protocol definition.Martin Mares
1998-11-29Renamed `DEBUG' symbol to `DEBUGGING' to prevent collisions with tokenMartin Mares
names and include files.
1998-11-27Oops, forgot to remove a debugging kludge.Martin Mares
1998-11-27Trivial 15-line bison excercise: Implemented expressions includingMartin Mares
user-defined numeric symbols. Whenever possible, use `expr' instead of `NUM' to get full express ion power :-)
1998-11-27First attempt at protocol configuration (now done only for RIP).Martin Mares
1998-11-27Fixed few misspellings and exported instance init as rip_init_instance().Martin Mares
1998-11-27Added generator of default names.Martin Mares
1998-11-27Experimental config file.Martin Mares
1998-11-27Dummy grammar for RIP configuration. Now empty, but must be here sinceMartin Mares
it's referenced in the makefiles.
1998-11-27Parser fragment for the core. Now handles only router ID setting.Martin Mares
1998-11-27Compile and use the new configuration code by default.Martin Mares
1998-11-27Base of the parser.Martin Mares
1998-11-27Lexical analyser.Martin Mares
1998-11-27Replaced nest/confile.h by conf/conf.h, added a lot of new definitions.Martin Mares
1998-11-27This script takes configuration fragments and generates full Bison grammarMartin Mares
from them.
1998-11-27This script takes configuration fragments and extracts keyword listMartin Mares
from them.
1998-11-27Now merges configuration fragments (*.Y) as well.Martin Mares
1998-11-27Implemented ip_pton()Martin Mares
1998-11-27Removed prototype of rp_free() since this function has never existed.Martin Mares
1998-11-27Added path to config file.Martin Mares
1998-11-21Killed bug in processing of 'h' prefix. Patch taken from linux-2.1.129.Martin Mares
1998-11-16Complain loudly if the logging buffer would overflow.Martin Mares
1998-11-16Implemented snprintf and similar functions. It took a lot of thinking,Martin Mares
but the modifications were relatively simple and straightforward.
1998-10-26RIP now includes notion of interface, and is correctly talking toPavel Machek
itself on second host. Split horizont is broken.
1998-10-26Previous fix was wrong.Martin Mares
1998-10-26rte_update: Doesn't loop forever when multiple routes point to the sameMartin Mares
destination.
1998-10-20RIP _NOW_ actually talks to itself (workaround core bug: send dataPavel Machek
from other port than we receive at), few FIXME's added.
1998-10-20Learn static device routes from the kernel (temporary until we can makeMartin Mares
such things configurable).
1998-10-20RIP now actually talks to itself.Pavel Machek
1998-10-20Beware the NULL route, my son... The bugs that bite, the BIRDs that crash :-)Martin Mares
1998-10-20Insert/remove hooks return void, not int.Martin Mares
1998-10-20Added pointer to network to RTE. The complications with passing NET separatelyMartin Mares
aren't worth 4 bytes per RTE. rte_discard and rte_dump don't need net * as parameter.
1998-10-19Updated TODO.Martin Mares
1998-10-19Generate router_id automatically if possible (standard "smallest of localMartin Mares
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.
1998-10-19Basic kernel routing table syncing implemented. Learning of routes installedMartin Mares
by other programs or the kernel itself is not supported yet, but it's not needed for development of other protocols.
1998-10-19Use (SOCK_DGRAM,IPPROTO_IP) socket instead of (SOCK_STREAM,IPPROTO_TCP).Martin Mares
This is exactly what Linux ifconfig does and seems to be the preferred way.
1998-10-19Exporting fill_in_sockaddr() for use by other unix-dependent code.Martin Mares