Sven-Ola Tuecke [Wed, 2 Jan 2008 10:47:40 +0000 (11:47 +0100)]
fisheye-startup: Changed to MAX_TTL for the first 32 LQTCs
Sven-Ola Tuecke [Wed, 2 Jan 2008 10:43:03 +0000 (11:43 +0100)]
102-olsrd-windowsfix-missing: Added and removed files necessary for win32 compile
Sven-Ola Tuecke [Wed, 2 Jan 2008 10:37:11 +0000 (11:37 +0100)]
Fix for hg: do not remove anything in .hg with 'make uberclean'
Hannes Gredler [Fri, 28 Dec 2007 17:02:54 +0000 (18:02 +0100)]
From Sven-Ola Tuecke: remainder of 133-fix-lqneigh.patch
Hannes Gredler [Fri, 28 Dec 2007 16:57:59 +0000 (17:57 +0100)]
From Sven-Ola Tuecke: 121-olsrd-fib-metric-approx.patch
Hannes Gredler [Fri, 28 Dec 2007 16:53:47 +0000 (17:53 +0100)]
From Sven-Ola Tuecke: 104-olsrd-verysmallfix.patch
Hannes Gredler [Fri, 28 Dec 2007 11:17:46 +0000 (12:17 +0100)]
From Jo-Philipp Wich <freifunk@wwsnet.net>: name-service plugin - write MID entries to hosts file
Hannes Gredler [Fri, 28 Dec 2007 10:58:48 +0000 (11:58 +0100)]
From Sven-Ola Tuecke: 138-optimize-message-generation
Hannes Gredler [Fri, 28 Dec 2007 10:52:53 +0000 (11:52 +0100)]
From Sven-Ola Tuecke: 136-optimize-invalidip-check
Hannes Gredler [Fri, 28 Dec 2007 10:14:55 +0000 (11:14 +0100)]
From Sven-Ola Tuecke: 110-bmf-v152
Grabbed a copy of eric's plugin and adapted that to HEAD
Hannes Gredler [Fri, 28 Dec 2007 10:12:52 +0000 (11:12 +0100)]
From Sven-Ola Tuecke: 104-olsrd-verysmallfix.patch
Hannes Gredler [Fri, 28 Dec 2007 09:35:59 +0000 (10:35 +0100)]
bugfix: fix broken prefix insertion
Hannes Gredler [Thu, 27 Dec 2007 23:18:19 +0000 (00:18 +0100)]
remove CVS ID markers
Hannes Gredler [Thu, 27 Dec 2007 10:44:50 +0000 (11:44 +0100)]
From Lorenz Shori <lorenz.schori@gmx.ch>: Mac OSX fixes
Hannes Gredler [Fri, 21 Dec 2007 15:18:49 +0000 (16:18 +0100)]
remove all .cvsignore files
Hannes Gredler [Fri, 21 Dec 2007 14:36:39 +0000 (15:36 +0100)]
From Sven-Ola Tuecke: 105-fix-lq-buffer-quirks
Hannes Gredler [Fri, 21 Dec 2007 14:35:32 +0000 (15:35 +0100)]
ignore emacs backup files
Hannes Gredler [Fri, 21 Dec 2007 13:14:42 +0000 (14:14 +0100)]
ignore *.rej, *.orig and TAGS files
Hannes Gredler [Fri, 21 Dec 2007 11:21:49 +0000 (12:21 +0100)]
From Sven-Ola Tuecke: 106-fix-seqnocheck
Sven-Ola Tuecke [Tue, 18 Dec 2007 12:35:55 +0000 (13:35 +0100)]
Reworked WIN32 Code
Hannes Gredler [Mon, 17 Dec 2007 10:29:56 +0000 (11:29 +0100)]
add .hgignore
Hannes Gredler [Mon, 17 Dec 2007 10:22:05 +0000 (11:22 +0100)]
fix +x permissions for scripts
Hannes Gredler [Mon, 17 Dec 2007 10:09:40 +0000 (11:09 +0100)]
add introduction blurb for the SPF implementation
Hannes Gredler [Mon, 17 Dec 2007 10:01:54 +0000 (11:01 +0100)]
remove CVS ID markers
Hannes Gredler [Mon, 17 Dec 2007 09:00:46 +0000 (10:00 +0100)]
fix +x permissions for scripts
Hannes Gredler [Mon, 17 Dec 2007 08:55:59 +0000 (09:55 +0100)]
Added tag OLSRD_0_4_8 for changeset
e9beaf82c0ea
Hannes Gredler [Mon, 17 Dec 2007 08:55:59 +0000 (09:55 +0100)]
Added tag OLSRD_0_4_9 for changeset
43d67c4814ef
Hannes Gredler [Mon, 17 Dec 2007 08:55:58 +0000 (09:55 +0100)]
Added tag OLSRD_0_4_10 for changeset
a39cda38836b
Hannes Gredler [Mon, 17 Dec 2007 08:55:58 +0000 (09:55 +0100)]
Added tag OLSRD_0_5_0 for changeset
612f5a21a303
Hannes Gredler [Mon, 17 Dec 2007 08:55:57 +0000 (09:55 +0100)]
Added tag OLSRD_0_5_1 for changeset
c23aab9db1e1
Hannes Gredler [Mon, 17 Dec 2007 08:55:57 +0000 (09:55 +0100)]
Added tag OLSRD_0_5_2 for changeset
283effb1472c
Hannes Gredler [Mon, 17 Dec 2007 08:55:56 +0000 (09:55 +0100)]
Added tag OLSRD_0_5_3 for changeset
00991ca84047
Hannes Gredler [Mon, 17 Dec 2007 08:55:56 +0000 (09:55 +0100)]
Added tag OLSRD_0_5_4 for changeset
60f04fc39707
Bernd Petrovitsch [Thu, 13 Dec 2007 11:34:35 +0000 (11:34 +0000)]
- add #ifdef DEBUG for 2 OLSR_PRINTF() as suggested by hannes@gredler.at
- fixed compile regressions
Bernd Petrovitsch [Wed, 12 Dec 2007 23:38:52 +0000 (23:38 +0000)]
* fixed another compile error
Bernd Petrovitsch [Wed, 12 Dec 2007 22:49:04 +0000 (22:49 +0000)]
* avoid the "%1$" in format strigns: CygWin (IIRC) doesn't support this.
Bernd Petrovitsch [Wed, 12 Dec 2007 22:47:04 +0000 (22:47 +0000)]
* fixed comments
Bernd Petrovitsch [Wed, 12 Dec 2007 22:39:36 +0000 (22:39 +0000)]
added configuration file support for "flat fib metrics".
Bernd Petrovitsch [Wed, 12 Dec 2007 22:06:24 +0000 (22:06 +0000)]
* do not generate netmasks but the prefixlen
Bernd Petrovitsch [Wed, 12 Dec 2007 22:05:53 +0000 (22:05 +0000)]
* do not generate netmasks and fixed up some comments
Bernd Petrovitsch [Wed, 12 Dec 2007 22:04:08 +0000 (22:04 +0000)]
* fixed variable definitions
Bernd Petrovitsch [Wed, 12 Dec 2007 22:03:37 +0000 (22:03 +0000)]
* added a missing variable definition
Bernd Petrovitsch [Wed, 12 Dec 2007 21:57:56 +0000 (21:57 +0000)]
applied patch by Hannes Gredler <hannes@gredler.at>::
pls find attached a pointer for further CPU savings in olsrd.
even in large networks (>250 nodes) the avg. CPU utilization
does not get beyond 0.5% CPU load on standard 200Mhz WRT hardware.
patch from http://gredler.at/download/olsrd/rib2-refactoring4.diff
change-list:
- avoid the periodical rib-tree insertion
- add a FOR_ALL_HNA_RT_ENTRIES() macro for the snmp folks
(or any parties who want to walk HNA entries).
- add an olsr_cnf option 'flat_fib_metrics' which defaults to TRUE.
this is as per sven-olas request who has expressed concerns
that the current flap-metric style is a bit unpleasant for troubleshooting.
note that i have not yet added the cfg file parser routine for that -
just the required tweaks in the change-processing FIB code.
Bernd Petrovitsch [Wed, 12 Dec 2007 21:50:40 +0000 (21:50 +0000)]
* allow IPv6 HNA addresses only in IPv6 mode. The same for IPv4.
Bernd Petrovitsch [Wed, 12 Dec 2007 09:39:50 +0000 (09:39 +0000)]
* ooops, fixed typo
Bernd Petrovitsch [Tue, 11 Dec 2007 17:20:06 +0000 (17:20 +0000)]
- Replaced "which" with a /bin/sh script snippet.
- inspired by Sven-Ola Tuecke: avoid a bash'ism (i.e. "OPTS="${OPTS//$opt}") in
gcc-warnings and ld-warnings. But we do not replace it with `sed` (since it
costs a fork(2) and an exec(3)) but also with shell code which doesn't use
any external program.
For a specification of /bin/sh: see
http://www.opengroup.org/onlinepubs/
000095399/utilities/xcu_chap02.html#tag_02
Bernd Petrovitsch [Tue, 11 Dec 2007 17:16:03 +0000 (17:16 +0000)]
- Replaced "which" with a /bin/sh script snippet.
- inspired by Sven-Ola Tuecke: avoid a bash'ism (i.e. "OPTS="${OPTS//$opt}") in
gcc-warnings and ld-warnings. But we do not replace it with `sed` (since it
costs a fork(2) and an exec(3)) but also with shell code which doesn't use
any external program.
For a specification of /bin/sh: see
http://www.opengroup.org/onlinepubs/
000095399/utilities/xcu_chap02.html#tag_02
Bernd Petrovitsch [Thu, 6 Dec 2007 22:07:29 +0000 (22:07 +0000)]
* avoid left over "a.out"
Bernd Petrovitsch [Thu, 6 Dec 2007 21:46:07 +0000 (21:46 +0000)]
* made a local never changed constant variable a #define
Bernd Petrovitsch [Thu, 6 Dec 2007 21:12:56 +0000 (21:12 +0000)]
* removed the unused functions get_if_property_id(), add_if_geninfo(),
get_if_geninfo(), del_if_geninfo()
* if_ifwithindex() is used only locally: made it "static"
* Simplified a little bit: addrsock and addrsock6 are defined and
initialized in interfaces.c, used in src/*/net.c and passed as parameter
to the functions getsocket{,6}() in src/*/ifnet.c.
We now just define and initialize that locally.
Bernd Petrovitsch [Thu, 6 Dec 2007 21:01:14 +0000 (21:01 +0000)]
* src/linux/net.h is used by one .c file only. No need for a separate file.
Bernd Petrovitsch [Thu, 6 Dec 2007 20:43:15 +0000 (20:43 +0000)]
* src/linux/net.h is used by one .c file only. No need for a separate file.
* removed an "extern" declaration which doesn't belong here
* removed superflous #include's
Bernd Petrovitsch [Thu, 6 Dec 2007 20:41:51 +0000 (20:41 +0000)]
* added niclude files needed by this header file
Bernd Petrovitsch [Thu, 6 Dec 2007 20:25:47 +0000 (20:25 +0000)]
* commented out unused functions
Bernd Petrovitsch [Thu, 6 Dec 2007 20:22:37 +0000 (20:22 +0000)]
adding $(OS_LIB_PTHREAD) once in Makefile.inc is enough
Bernd Petrovitsch [Thu, 6 Dec 2007 20:13:56 +0000 (20:13 +0000)]
- added "-ffunction-sections -fdata-sections -Wl,--print-gc-sections" and
comnmented them out:
These tell gcc to put each function and global variable in a separate section.
The linker can than remove all unreferenced section. But in the olsrd binary
unused doesn't imply unused at all since the function may be used by plugins,
e.g. the ones in src/plugin_utils.c.
So we can use that featuer at most to identify unused functions and remove them
from the source by hand.
Bernd Petrovitsch [Thu, 6 Dec 2007 20:12:47 +0000 (20:12 +0000)]
- adding $(OS_LIB_PTHREAD) once in Makefile.inc is enough
- removed an superflous dependency
Bernd Petrovitsch [Thu, 6 Dec 2007 20:10:19 +0000 (20:10 +0000)]
* similar to gcc-warnings but for linker options
Bernd Petrovitsch [Thu, 6 Dec 2007 18:17:35 +0000 (18:17 +0000)]
* make it work with gcc-3.2.3 and beautified it
Bernd Petrovitsch [Sun, 2 Dec 2007 19:00:30 +0000 (19:00 +0000)]
* ISO8859-1 -> UTF-8
Bernd Petrovitsch [Thu, 29 Nov 2007 23:40:08 +0000 (23:40 +0000)]
* fixed a warning on 64bit
Bernd Petrovitsch [Thu, 29 Nov 2007 23:03:48 +0000 (23:03 +0000)]
* added more warnings
Bernd Petrovitsch [Thu, 29 Nov 2007 23:03:07 +0000 (23:03 +0000)]
- killed hna_chgestruct to reduce malloc()/free() churn
Bernd Petrovitsch [Thu, 29 Nov 2007 22:59:51 +0000 (22:59 +0000)]
* fixed warnings
Bernd Petrovitsch [Thu, 29 Nov 2007 22:40:11 +0000 (22:40 +0000)]
* missed the changelog
Bernd Petrovitsch [Thu, 29 Nov 2007 22:21:26 +0000 (22:21 +0000)]
"open_ipc" is only a boolean value containing "olsr_cnf->debug_level > 1".
So I see no reason to keep that variable.
Apart from the the attached patch makes the "#if" condition for the
"rts" field identical to all other references to it.
Bernd Petrovitsch [Thu, 29 Nov 2007 18:20:45 +0000 (18:20 +0000)]
* more fixes fro MacOSX
Bernd Petrovitsch [Thu, 29 Nov 2007 18:10:18 +0000 (18:10 +0000)]
* removed the commented out COPY_IP() and COMP_IP() macros - everything seems to work
Bernd Petrovitsch [Thu, 29 Nov 2007 18:09:11 +0000 (18:09 +0000)]
* ISO8859-* -> UTF_8
Bernd Petrovitsch [Thu, 29 Nov 2007 17:59:29 +0000 (17:59 +0000)]
* ISO8859-* -> UTF_8
Bernd Petrovitsch [Thu, 29 Nov 2007 17:56:57 +0000 (17:56 +0000)]
* killed the duplicated olsr_ip_to_string() functions
* using "ipcalc.h" and killed the COPY_IP()/COMP_IP() macros
Bernd Petrovitsch [Thu, 29 Nov 2007 17:14:41 +0000 (17:14 +0000)]
* added a forgotten line
Bernd Petrovitsch [Thu, 29 Nov 2007 17:09:16 +0000 (17:09 +0000)]
* applied bsdfix_pwm.diff.txt from Patrick McCarty <mccartyp@gmail.com> so that *BSD compiles and runs
Bernd Petrovitsch [Thu, 29 Nov 2007 17:07:15 +0000 (17:07 +0000)]
* fixed a warning
Bernd Petrovitsch [Thu, 29 Nov 2007 15:47:26 +0000 (15:47 +0000)]
* define LINUX_POLICY_ROUTING only if it is not defined before
Bernd Petrovitsch [Thu, 29 Nov 2007 01:38:36 +0000 (01:38 +0000)]
* fixed another corner
Bernd Petrovitsch [Thu, 29 Nov 2007 01:29:53 +0000 (01:29 +0000)]
* fixed debug output
Bernd Petrovitsch [Thu, 29 Nov 2007 00:50:38 +0000 (00:50 +0000)]
* and some blurb for the changelog
Bernd Petrovitsch [Thu, 29 Nov 2007 00:49:42 +0000 (00:49 +0000)]
Major Changes:
- renamed "struct local_hna_entry" to "struct ip_prefix_list" since
it is exactly that. Renamed the functions in src/local_hna_set.{c,h}
in the same way.
- each IPv4 and IPv6 function pairs in src/local_hna_set.{c,h} is
called from the same place and have the same signature. So I
condensed each of them.
- Since we have only 3 functions left in src/local_hna_set.{c,h}
and they are used for the configuration, the .h file is now part
of src/olsr_cfg.h and the ,c file of src/cfgparser/olsrd_conf.c.
- replaced "struct ipc_net" with "struct ip_prefix_list" since it
serves the same purpose as the "struct ip_prefix_list"
- replaced "struct ipc_host" with "struct ip_prefix_list" since it
serves the same purpose as the "struct ip_prefix_list" and is
just a special case. No need to duplicate code etc.
- removed "union hna_netmask" from src/olsr_types since we use the
prefix_len everywhere (and that is an olsr_u8_t in several other
struct's).
That implies changes and simplifications in the code handling
them (since the IPv4 is similar to IPv6).
- the config file parser now understands for IPv4 addresses also
"/$prefix".
- On the output side, the patch generates only "/$prefix" which
kills code since it is the same as the IPv6 handling.
- There are some netmask conversions left (mainly in the plugins)
but that be cleaned up afterwards.
- extracted ip{,4,6}{cmp,equal} and formatting functions from
net_olsr.{c,h} into src/ipcalc.{c,h} since net_olsr.h became
IMHO to much of a "put anything in there".
- renamed "sockaddr_to_string()" to "sockaddr4_to_string()"
since it is exactly that (unless I'm missing something).
Minor Changes:
- lib/httpinfo/src/admin_html.h contained just some variable
definitions so it is now integrated in the only user:
admin_interface.c
- olsrd_dot_draw.c got rid of two indicator variables if
a socket is valid or not. Since sockets may use "-1" as the
"not open", "invalid" value, there is no need for two more
ints.
- and the dot_draw plugin is somewhat smaller and easier to read.
- const'ified some functions
Bernd Petrovitsch [Thu, 29 Nov 2007 00:34:22 +0000 (00:34 +0000)]
Patch from Sven-Ola Tuecke <sven-ola@gmx.de> from
http://download-master.berlin.freifunk.net/sven-ola/nylon/packages/olsrd/files/138-olsrd-fixdotdraw.patch: fix the dot_draw plugin
Bernd Petrovitsch [Thu, 29 Nov 2007 00:26:16 +0000 (00:26 +0000)]
Patch from Sven-Ola Tuecke <sven-ola@gmx.de> from
http://download-master.berlin.freifunk.net/sven-ola/nylon/packages/olsrd/files/135-georss-map-for-nameservice.patch: fixes and extensions for the namesaervice plugin
Bernd Petrovitsch [Thu, 29 Nov 2007 00:24:00 +0000 (00:24 +0000)]
Patch from Sven-Ola Tuecke <sven-ola@gmx.de> from
http://download-master.berlin.freifunk.net/sven-ola/nylon/packages/olsrd/files/132-save-the-fish.patch:
really savet he fish and avoid to forward invlaid messages from older olsrd versions
Bernd Petrovitsch [Thu, 29 Nov 2007 00:18:53 +0000 (00:18 +0000)]
Patch from Sven-Ola Tuecke <sven-ola@gmx.de> from
http://download-master.berlin.freifunk.net/sven-ola/nylon/packages/olsrd/files/103-olsrd-rt-exportroute-cleanup.patch:
avoid a malloc()ed list of functions
Bernd Petrovitsch [Thu, 29 Nov 2007 00:10:17 +0000 (00:10 +0000)]
Bug Fixes (of stupid and forgotten bugs) from Sven-Ola Tuecke <sven-ola@gmx.de> from
http://download-master.berlin.freifunk.net/sven-ola/nylon/packages/olsrd/files/102-olsrd-cvs-fixes.patch
Bernd Petrovitsch [Thu, 29 Nov 2007 00:07:37 +0000 (00:07 +0000)]
- a forgotten hangelog entry
- a few more trivial BSD fixes
Bernd Petrovitsch [Wed, 28 Nov 2007 10:09:03 +0000 (10:09 +0000)]
* applied (a somewhat modified) patch by Patrick McCarty <mccartyp@gmail.com>
Bernd Petrovitsch [Tue, 27 Nov 2007 13:39:22 +0000 (13:39 +0000)]
* fixed compile warnings
Bernd Petrovitsch [Tue, 27 Nov 2007 13:35:06 +0000 (13:35 +0000)]
* fixed compile warnings
Bernd Petrovitsch [Sun, 25 Nov 2007 22:08:57 +0000 (22:08 +0000)]
* saved a few bytes
Bernd Petrovitsch [Sun, 25 Nov 2007 22:02:33 +0000 (22:02 +0000)]
* saved a few bytes
Bernd Petrovitsch [Sun, 25 Nov 2007 21:41:05 +0000 (21:41 +0000)]
* fixed name - and commented the unused enum out
Bernd Petrovitsch [Sun, 25 Nov 2007 21:40:35 +0000 (21:40 +0000)]
* oops, fixed typo
Bernd Petrovitsch [Sun, 25 Nov 2007 21:38:13 +0000 (21:38 +0000)]
* rearranged fields a little bit to save space
Bernd Petrovitsch [Sun, 25 Nov 2007 21:23:29 +0000 (21:23 +0000)]
* fixed bug: ip4cmp() was severly broken
Bernd Petrovitsch [Sun, 25 Nov 2007 13:08:54 +0000 (13:08 +0000)]
* added paranoia checks
Bernd Petrovitsch [Fri, 23 Nov 2007 23:40:43 +0000 (23:40 +0000)]
* prefix_len is always an unsigned 8 bit int
Bernd Petrovitsch [Thu, 22 Nov 2007 11:43:36 +0000 (11:43 +0000)]
* bug fix: set "ipsize" and "maxplen" if we set the the "ip_version"
Bernd Petrovitsch [Tue, 20 Nov 2007 23:20:23 +0000 (23:20 +0000)]
* #define MSG_NOSIGNAL only if it's really not defined. Thanks to
G.Fischer@vt.TU-Berlin.DE for reporting this
Bernd Petrovitsch [Tue, 20 Nov 2007 23:19:08 +0000 (23:19 +0000)]
* use "__attribute__((unused))"
* "olsr_argv = argv" is not used in Win32 so compile completely it out
* Fixed a compiler warning reported by G.Fischer@vt.TU-Berlin.DE
* avoid to cluttered source
* sanitize macros
Bernd Petrovitsch [Tue, 20 Nov 2007 23:16:17 +0000 (23:16 +0000)]
* added "#include <limits.h>" as we use some constant from it