olsrd.git
12 years ago* added -Wbad-function-cast
Bernd Petrovitsch [Fri, 16 Nov 2007 19:34:26 +0000 (19:34 +0000)]
* added -Wbad-function-cast

12 years ago* added -WWendif-labels
Bernd Petrovitsch [Fri, 16 Nov 2007 19:14:33 +0000 (19:14 +0000)]
* added -WWendif-labels

12 years ago* added -Wwrite-strings
Bernd Petrovitsch [Fri, 16 Nov 2007 19:12:56 +0000 (19:12 +0000)]
* added -Wwrite-strings

12 years agocleanup: merged html.h into the places where it is used since it is much
Bernd Petrovitsch [Thu, 15 Nov 2007 00:35:32 +0000 (00:35 +0000)]
cleanup: merged html.h into the places where it is used since it is much
         easier to see what's going on
cleanup: avoid hard-coded values and use sizeof()
fixed the generated html

12 years ago* and somethigng here too
Bernd Petrovitsch [Wed, 14 Nov 2007 11:08:05 +0000 (11:08 +0000)]
* and somethigng here too

12 years agoPatch by Hannes Gredler <hannes@gredler.at> to avoid setting routes
Bernd Petrovitsch [Wed, 14 Nov 2007 11:03:52 +0000 (11:03 +0000)]
Patch by Hannes Gredler <hannes@gredler.at> to avoid setting routes
with an invalid impossible netmask.

12 years ago* fixed a bug in the olsr_netmask_to_prefix() function which produced
Bernd Petrovitsch [Wed, 14 Nov 2007 11:01:03 +0000 (11:01 +0000)]
* fixed a bug in the olsr_netmask_to_prefix() function which produced
  invalid netmasks if feeded with 255.255.255.255.
  Thnaks to Hannes Gredler <hannes@gredler.at> for pointing to that
  function.
* replaced the second "(for()" loop with a simple "switch()" for the
  9 legal/valid/supported values of 1 byte netmasks. So we can now detect
  illegal ones and report this with returning UINT_MAX as prefix length
  (and writing something out).
  That really shouldn't happen but God knows what some clowns sends over
  the net to annoy us.

12 years agofixed and improved the `gcc-warnings` script:
Bernd Petrovitsch [Mon, 12 Nov 2007 00:12:15 +0000 (00:12 +0000)]
fixed and improved the `gcc-warnings` script:
* support older gcc's (as on Debian/Sarge) as they have slightly different
  error messages
* removed superflous lines
* replaced the call of `sed` with shell built-in features fixing syntax
  errors on Debian/Sarge
* set all locale-relevant variables to "C" (just to be sure)

12 years ago* and something for the CHANGELOG
Bernd Petrovitsch [Sun, 11 Nov 2007 23:25:29 +0000 (23:25 +0000)]
* and something for the CHANGELOG

12 years ago* const'ified olsr_ioctl_{add,del}_route{,6}()
Bernd Petrovitsch [Sun, 11 Nov 2007 23:10:25 +0000 (23:10 +0000)]
* const'ified olsr_ioctl_{add,del}_route{,6}()
  There are probably a few "const" missing for win32 and BSD.
* const'ified moer parameters in many more functions in the .h and
  .c files
* init-functions with constant or ignored return values are "void"
* created a typedef fro the callback in "struct export_route_entry"
  and using it!
* moved the initilaization of the {add,chg,del}_kernel_list variables
  into process_routes.c. So they are now "static" there.
* olsr_export_{add,del}_route{,6} are now static in process_routes.c
  since they are not used elsewhere.
* olsr_addroute_add_function() and olsr_deldroute_add_function() were
  almost identical - made one function out of it.
  Same for olsr_addroute_del_function() and olsr_deldroute_del_function().
* factored out common code
* fixed the sort order in avl_comp_ipv4_prefix(): We compare now the IPv4
  values in host byte order (and not network byte order). So the route
  list in the e.g. httpinfo plugin is now nicely sorted.

12 years ago* const'ified ipc_route_send_rtentry
Bernd Petrovitsch [Sun, 11 Nov 2007 22:59:29 +0000 (22:59 +0000)]
* const'ified ipc_route_send_rtentry

12 years ago* killed a superflous "return" at the end of a void function
Bernd Petrovitsch [Sun, 11 Nov 2007 22:56:34 +0000 (22:56 +0000)]
* killed a superflous "return" at the end of a void function

12 years ago* made inline functions from avl_walk_{first,last,next,prev}
Bernd Petrovitsch [Sun, 11 Nov 2007 22:55:17 +0000 (22:55 +0000)]
* made inline functions from avl_walk_{first,last,next,prev}
* created "const" versions of it
* inline_avl_comp_ipv4() is now also an inline function (and not a macro)
* created a typedef for the avl tree comparison functions and use it!
* cleanup: compare tree->comp to NULL as it is a pointer
* killed a superflous "return"at the end of a void function

12 years ago* moved the #define INLINE to a more appropriate .h file
Bernd Petrovitsch [Sun, 11 Nov 2007 22:51:54 +0000 (22:51 +0000)]
* moved the #define INLINE to a more appropriate .h file

12 years ago* do not print / in the routeing table
Bernd Petrovitsch [Sun, 11 Nov 2007 22:00:39 +0000 (22:00 +0000)]
* do not print / in the routeing table

12 years ago* adapted to the one delivered by the Debian package as a result of a recent discussi...
Bernd Petrovitsch [Sun, 11 Nov 2007 21:32:03 +0000 (21:32 +0000)]
* adapted to the one delivered by the Debian package as a result of a recent discussion on olsr-dev@olsr.org

12 years ago* killed gotos
Bernd Petrovitsch [Fri, 9 Nov 2007 00:11:01 +0000 (00:11 +0000)]
* killed gotos

12 years ago* added a comment
Bernd Petrovitsch [Thu, 8 Nov 2007 23:54:28 +0000 (23:54 +0000)]
* added a comment

12 years ago* win32 doesn't support that feature
Bernd Petrovitsch [Thu, 8 Nov 2007 23:33:54 +0000 (23:33 +0000)]
* win32 doesn't support that feature

12 years ago * and make it compile on Win32
Bernd Petrovitsch [Thu, 8 Nov 2007 23:23:13 +0000 (23:23 +0000)]
 * and make it compile on Win32

12 years agoAnother fat commit:
Bernd Petrovitsch [Thu, 8 Nov 2007 22:47:43 +0000 (22:47 +0000)]
Another fat commit:

The main target was:
- Fixed the misleading definition of "v4" in "struct olsr_ip_addr" fom
  "olsr_u32_t" (in network-byteorder!) to "struct in_addr". Lots of
  temporary variables to call inet_ntoa()/inet_ptoa() vanished .....
- declare "int_addr", "int_netmask" and "int_broadaddr" in "struct interface"
  as "struct sockaddr_in" since it is that what we actually want there (and
  it is similar to the IPv6 code).

To get that thoroughly via compiler errors, we get:
- We have now ip4_to_string(), ip6_to_string() and olsr_ip_to_string()
  to print a "struct in_addr", "struct in6_addr" and "union olsr_ip_addr"
  into a string buffer.

Alas, this also annoyed me since ages:
- cleanup: olsr_ip_to_string() and similar non-reentrant functions now must
  get a target buffer. To ease that, there is the "struct ipaddr_str"
  which is large enough for all of them (read: for an IPv6 address). This
  also removes the cyclic buffer there.
  All of these function return a "const char *" which can be directly used
  for printf(3) and friends.

And some cleanups:
- const'ified more functions
- converted the source to UTF-8.
- "struct sig_msg" uses an olsr_u8_t for a byte array (and not "char")
- force the few inline function to always be inlined.
- #ifdef the body of the olsr_print_hna_set() and olsr_print_neighbor_table()
  if nothing is done
- use "inline_avl_comp_ipv4()" in "avl_comp_ipv4()"
- clean up the routes on more signals. Basically we want to do this on all
  signals which terminate the program.
- killed a superflous global buffer in src/main.c

This version was breing since weeks and running for severa day in Vienna's
FunkFeuer net without any noticably problem!

Please report anything that broke!

12 years ago* use automatic variables
Bernd Petrovitsch [Thu, 8 Nov 2007 22:17:08 +0000 (22:17 +0000)]
* use automatic variables

12 years ago* killed a superflous variable
Bernd Petrovitsch [Thu, 8 Nov 2007 15:34:11 +0000 (15:34 +0000)]
* killed a superflous variable

12 years ago* s/-lpthread/$(OS_LIB_PTHREAD)/
Bernd Petrovitsch [Thu, 8 Nov 2007 15:28:48 +0000 (15:28 +0000)]
* s/-lpthread/$(OS_LIB_PTHREAD)/

12 years agoand an entry here
Bernd Petrovitsch [Mon, 5 Nov 2007 15:34:37 +0000 (15:34 +0000)]
and an entry here

12 years agoCleanup:
Bernd Petrovitsch [Mon, 5 Nov 2007 15:32:55 +0000 (15:32 +0000)]
Cleanup:
* Merged "struct hna4_entry" and "struct hna6_entry" into
  "struct local_hna_entry" (as "struct hna_entry" is a different thing)
  Both have almost the same data (IP address + netmask/prefix) so we use
  the quite new "struct olsr_ip_prefix" to store it.
  Also merged the "hna4" and "hna6" pointer in "struct olsr_config" -
  look at the global "olsr_cnf->ip_version".
* const'ified here and there
* added a olsr_ip_prefix_to_string() function

12 years ago* removed left-over target
Bernd Petrovitsch [Sun, 4 Nov 2007 23:34:57 +0000 (23:34 +0000)]
* removed left-over target

12 years ago* added a TMPFILES variable. Place all files there which should be removed on
Bernd Petrovitsch [Sun, 4 Nov 2007 19:07:43 +0000 (19:07 +0000)]
* added a TMPFILES variable. Place all files there which should be removed on
  a "clean" (which are usually temporary files - thus the name).
* Killed the recursive make of the src/cfgparser directory
 - extracted the directory-local dependencies etc. into src/cfgparser/local.mk
   src/cfgparser/Makefile retains all of the rest to build in the local directory.
   Does actually anyone need that?
 - include'ing that in Makefile
 - removed all special handling/casing of cfgparser parts in Makefile
* cleanup: plugin rules are now all more similar

12 years agoPatch committed in bug 1825587 from the SF bugtracker. This should add functionallity...
Andreas Tonnesen [Sun, 4 Nov 2007 18:57:17 +0000 (18:57 +0000)]
Patch committed in bug 1825587 from the SF bugtracker. This should add functionallity for detecting WLAN interfaces on openBSD. Committing this since the only available devs to assign bugs to are me and Thomas(which is not very active anymore either).

12 years ago* also check -m
Bernd Petrovitsch [Sun, 4 Nov 2007 18:45:30 +0000 (18:45 +0000)]
* also check -m

12 years ago* cleanup:
Bernd Petrovitsch [Sun, 4 Nov 2007 17:52:13 +0000 (17:52 +0000)]
* cleanup:
  - #ifdef more away if NODEBUG is enabled.
  - reduce the size of the data and code

12 years ago* do not generate a dependency file for the generated .c file since it makes no sense
Bernd Petrovitsch [Sun, 4 Nov 2007 15:27:50 +0000 (15:27 +0000)]
* do not generate a dependency file for the generated .c file since it makes no sense

12 years agoKilled "struct olsrd_config *cnf" in src/cfgparser/olsrd_conf.h and replaced
Bernd Petrovitsch [Sat, 3 Nov 2007 23:21:28 +0000 (23:21 +0000)]
Killed "struct olsrd_config *cnf" in src/cfgparser/olsrd_conf.h and replaced
it's usage with "olsr_cnf" from src/defs.h.
Serious cleanup: olsrd_get_default_cnf() does no longer initialize the global
"cnf" variable" but uses a local one which is returned as before. And
olsrd_parse_cnf() does no longer return the global variable it is working on.

12 years agoPATCH by John Hay <jhay@meraka.org.za>:
Bernd Petrovitsch [Sat, 3 Nov 2007 23:11:40 +0000 (23:11 +0000)]
PATCH by John Hay <jhay@meraka.org.za>:
- also printout our own HNAs in the dotdraw plugin.

12 years agoOK, I was too silly to throw it into the correct plugin.
Bernd Petrovitsch [Sat, 3 Nov 2007 23:03:55 +0000 (23:03 +0000)]
OK, I was too silly to throw it into the correct plugin.
Should be fixed now.

12 years agoadded http://meshcube.org/nylon/utils/olsr-topology-view.pl into
Bernd Petrovitsch [Sat, 3 Nov 2007 22:56:07 +0000 (22:56 +0000)]
added meshcube.org/nylon/utils/olsr-topology-view.pl into
lib/httpinfo/misc as suggested by Jens Nachtigall <nachtigall@web.de>

12 years ago* added a comment
Bernd Petrovitsch [Fri, 2 Nov 2007 22:00:26 +0000 (22:00 +0000)]
* added a comment

12 years agoSome minor and trivial cleanup: Added two functions to calculate the ETX
Bernd Petrovitsch [Fri, 2 Nov 2007 20:58:07 +0000 (20:58 +0000)]
Some minor and trivial cleanup: Added two functions to calculate the ETX
value from a struct tc_edge_entry and a struct link_entry, respectively.
And use them everywhere.

12 years agoWhile working on something else, I stumbled over this. Obviously no one\ 1
Bernd Petrovitsch [Fri, 2 Nov 2007 15:51:46 +0000 (15:51 +0000)]
While working on something else, I stumbled over this. Obviously no one\ 1
ever used the "secure" plugin on 64bit hardware:
- fixed lib/secure/src/md5.h: This was broken as it had
  "typedef unsigned long int UINT4;". "unsigned long int" is 8 bytes on
  x86_64.
  We are using now the standardized types from <inttypes.h>.
- fixed warnings and improved lib/secure/src/md5.c:
  * we are using memcpy() and memset() instead of the open-coded loops as
    suggested
  * const'ified
  * added function prototypes for static functions
  * moved static functions to the top so that their declaration is before
    their use to allow gcc to inline if only used once.
  It remains ugly - God knows why there are that so many useless
  type-casts.

12 years ago* ooops, hide the dependency generation calls again
Bernd Petrovitsch [Fri, 2 Nov 2007 15:37:09 +0000 (15:37 +0000)]
* ooops, hide the dependency generation calls again

12 years ago* completed changelog message
Bernd Petrovitsch [Fri, 2 Nov 2007 10:57:30 +0000 (10:57 +0000)]
* completed changelog message

12 years agoWith the help of Patrick McCarty <mccartyp@gmail.com>, we got olsr to build
Bernd Petrovitsch [Fri, 2 Nov 2007 10:16:39 +0000 (10:16 +0000)]
With the help of Patrick McCarty <mccartyp@gmail.com>, we got olsr to build
on OpenBSD again:
* OpenBSD'd `sed` is pretty conservative and doesn't understand 's|re|sub|'.
  So we fall back to the old 's/re/sub/' and quote all '/' and '.' correctly
  (which was the main reason to use '|').
* OpenBSD needs an explicit "#include <sys/types.h>" before
  "#include <netinet/in.h>".

12 years ago* as suggested by Jens Nachtigall <nachtigall@web.de>: install the LQ version as...
Bernd Petrovitsch [Fri, 2 Nov 2007 10:11:43 +0000 (10:11 +0000)]
* as suggested by Jens Nachtigall <nachtigall@web.de>: install the LQ version as default

12 years ago* bug fix by Hannes Gredler <hannes@gredler.at> fixing not deleted tc entry
Bernd Petrovitsch [Fri, 2 Nov 2007 09:38:56 +0000 (09:38 +0000)]
* bug fix by Hannes Gredler <hannes@gredler.at> fixing not deleted tc entry

12 years ago* fix startup breakage
Bernd Petrovitsch [Tue, 30 Oct 2007 09:19:22 +0000 (09:19 +0000)]
* fix startup breakage

12 years ago* unified typedefs of olsr_{u,}{8,16,32}_t: It builds that way on Linux and Windows...
Bernd Petrovitsch [Wed, 24 Oct 2007 13:51:11 +0000 (13:51 +0000)]
* unified typedefs of olsr_{u,}{8,16,32}_t: It builds that way on Linux and Windows and *BSD had it before. That leaves MacOSx for someone to test.

12 years ago* cleanup: use for() instead of while to save lots of lines - and minor other stuff
Bernd Petrovitsch [Wed, 24 Oct 2007 13:46:36 +0000 (13:46 +0000)]
* cleanup: use for() instead of while to save lots of lines - and minor other stuff

12 years ago* avoid a warning
Bernd Petrovitsch [Wed, 24 Oct 2007 13:45:00 +0000 (13:45 +0000)]
* avoid a warning

12 years ago* cleanup: use ARRAYSIZE, const'ifications and killed an unsed #define
Bernd Petrovitsch [Wed, 24 Oct 2007 13:44:26 +0000 (13:44 +0000)]
* cleanup: use ARRAYSIZE, const'ifications and killed an unsed #define

12 years ago* killed unused functions
Bernd Petrovitsch [Mon, 22 Oct 2007 21:02:49 +0000 (21:02 +0000)]
* killed unused functions

12 years agodocument NatThreshold (even though it is only a freifunk fw patch at the moment)
Aaron Kaplan [Sun, 21 Oct 2007 21:46:43 +0000 (21:46 +0000)]
document NatThreshold (even though it is only a freifunk fw patch at the moment)

12 years agoupdated reality on Mac OS X. Added some extra infos
Aaron Kaplan [Sun, 21 Oct 2007 21:16:11 +0000 (21:16 +0000)]
updated reality on Mac OS X. Added some extra infos

12 years ago* cont'ified it
Bernd Petrovitsch [Sun, 21 Oct 2007 20:55:11 +0000 (20:55 +0000)]
* cont'ified it

12 years ago* avoid useless warnings
Bernd Petrovitsch [Sun, 21 Oct 2007 20:53:13 +0000 (20:53 +0000)]
* avoid useless warnings

12 years ago* cont'ified it
Bernd Petrovitsch [Sun, 21 Oct 2007 20:37:58 +0000 (20:37 +0000)]
* cont'ified it

12 years ago* cont'ified it
Bernd Petrovitsch [Sun, 21 Oct 2007 20:15:51 +0000 (20:15 +0000)]
* cont'ified it

12 years ago* avoid warnings
Bernd Petrovitsch [Sun, 21 Oct 2007 20:09:09 +0000 (20:09 +0000)]
* avoid warnings

12 years ago* added a MIN and MAX macro
Bernd Petrovitsch [Sat, 20 Oct 2007 21:07:24 +0000 (21:07 +0000)]
* added a MIN and MAX macro

12 years ago* fixed a few compile bugs (and simplified it a little bit)
Bernd Petrovitsch [Sat, 20 Oct 2007 20:41:04 +0000 (20:41 +0000)]
* fixed a few compile bugs (and simplified it a little bit)

12 years agoOoops, I overlooked that NODEBUG is also used in defs.h (and not only the
Bernd Petrovitsch [Sat, 20 Oct 2007 20:23:12 +0000 (20:23 +0000)]
Ooops, I overlooked that NODEBUG is also used in defs.h (and not only the
txtinfo plugin):
* added a 4th high level variable: NO_DEBUG_MESSAGES to compile the debug
  OLSR_PRINTF completely out.

12 years ago- added "-fomit-frame-pointer" to the normal build
Bernd Petrovitsch [Sat, 20 Oct 2007 19:27:33 +0000 (19:27 +0000)]
- added "-fomit-frame-pointer" to the normal build
. start a new era on configuration:
We introduce a new higher level configuratino layer to enable or disable
features/configuration options:

Rationale: Take "debug build" as prime example.
To have a real debug build, you want (at least) "-g" in CFLAGS and no
stripping. It is cumbersome and error prone to edit that by hand (or pass
parameters to the "make") and with a new options somewhere (e.g.
"-fomit-frame-pointer" from above) one has to adjust that.
For these (so called) high leveloptions, I started with
---  snip  ----
# activate debugging with 1 or deactivate with 0
DEBUG ?= 0

# the optimize option to be set for gcc
OPTIMIZE ?= -O2

# enable mudflap with 1 or deactivate with 0
# you need a recent enough gcc and the libmudflap installed
MUDFLAP ?= 0
---  snip  ----
Feel free to propose other useful ones (and submit patches;-).

The lower part, which is basically the former Makefile.inc, gets now "ifeq"
etc. so that a simple "make DEBUG=1" makes a real debug build.
ANd this is available and usefule to the plugin Makeifle's too of course.

12 years ago* fixed more compile bugs if DEBUG is enabled
Bernd Petrovitsch [Sat, 20 Oct 2007 15:16:32 +0000 (15:16 +0000)]
* fixed more compile bugs if DEBUG is enabled

12 years ago* fixed compile bugs if DEBUG is enabled
Bernd Petrovitsch [Sat, 20 Oct 2007 12:59:08 +0000 (12:59 +0000)]
* fixed compile bugs if DEBUG is enabled

12 years ago* set version to 0.5.5pre
Bernd Petrovitsch [Sat, 20 Oct 2007 11:55:23 +0000 (11:55 +0000)]
* set version to 0.5.5pre

12 years ago* set version to 0.5.4 OLSRD_0_5_4
Bernd Petrovitsch [Sat, 20 Oct 2007 11:26:25 +0000 (11:26 +0000)]
* set version to 0.5.4

12 years ago* Bug fix from Sven-Ola Tuecke: initialize malloc()ed struct
Bernd Petrovitsch [Wed, 17 Oct 2007 10:22:49 +0000 (10:22 +0000)]
* Bug fix from Sven-Ola Tuecke: initialize malloc()ed struct

12 years ago* Bug fix from Sven-Ola Tuecke: initialize malloc()ed struct
Bernd Petrovitsch [Wed, 17 Oct 2007 07:30:34 +0000 (07:30 +0000)]
* Bug fix from Sven-Ola Tuecke: initialize malloc()ed struct

12 years ago* applied a nad-edited version of Sven-Ola Tueckes "Save the fish" patch
Bernd Petrovitsch [Tue, 16 Oct 2007 10:01:29 +0000 (10:01 +0000)]
* applied a nad-edited version of Sven-Ola Tueckes "Save the fish" patch

12 years ago* applied http://gredler.at/download/olsrd/neighbor_routes3.diff
Bernd Petrovitsch [Tue, 16 Oct 2007 09:54:44 +0000 (09:54 +0000)]
* applied gredler.at/download/olsrd/neighbor_routes3.diff

12 years ago* made a statement-like macro out of WRITE_BUF
Bernd Petrovitsch [Mon, 15 Oct 2007 21:01:17 +0000 (21:01 +0000)]
* made a statement-like macro out of WRITE_BUF

12 years ago* const'ified functions
Bernd Petrovitsch [Mon, 15 Oct 2007 20:58:33 +0000 (20:58 +0000)]
* const'ified functions
* fixed an obvious bug in the IPv6 code
whoever thinks that const'ifying as far as possible is superflous may take
this as a prime counter example.

12 years agocleanups:
Bernd Petrovitsch [Sun, 14 Oct 2007 22:46:03 +0000 (22:46 +0000)]
cleanups:
- killed sprintf()
- simplified stuff in html.h
- fixed generated HTML to test the TotalValidator extension from Firefox
  (and there is more to do)

12 years ago* applied patch by John Hay <jhay@meraka.org.za>: make txtinfo plugin work with IPv6
Bernd Petrovitsch [Sun, 14 Oct 2007 14:11:11 +0000 (14:11 +0000)]
* applied patch by John Hay <jhay@meraka.org.za>: make txtinfo plugin work with IPv6

12 years ago* CygWin gcc doesn know -fearly-inlining. So we also check it
Bernd Petrovitsch [Sat, 13 Oct 2007 14:51:32 +0000 (14:51 +0000)]
* CygWin gcc doesn know -fearly-inlining. So we also check it

12 years ago* increase the inline size limit somewhat more - needed on 32bit machines with gcc...
Bernd Petrovitsch [Sat, 13 Oct 2007 12:47:39 +0000 (12:47 +0000)]
* increase the inline size limit somewhat more - needed on 32bit machines with gcc-3.4.6

12 years ago* increase the inline size limit needed on 64bit machines
Bernd Petrovitsch [Sat, 13 Oct 2007 12:43:02 +0000 (12:43 +0000)]
* increase the inline size limit needed on 64bit machines

12 years ago* cleanup: moved ipc_route_send_rtentry() declaration into ipc_frontend.h
Bernd Petrovitsch [Sat, 13 Oct 2007 12:31:04 +0000 (12:31 +0000)]
* cleanup: moved ipc_route_send_rtentry() declaration into ipc_frontend.h
  where it belongs

12 years ago* more HTML cleanup
Bernd Petrovitsch [Sat, 13 Oct 2007 12:09:37 +0000 (12:09 +0000)]
* more HTML cleanup

12 years ago* cleanup: const'ified parameters and reduced duplicated code
Bernd Petrovitsch [Sat, 13 Oct 2007 12:09:11 +0000 (12:09 +0000)]
* cleanup: const'ified parameters and reduced duplicated code

12 years ago* fixed up the html
Bernd Petrovitsch [Sat, 13 Oct 2007 12:04:57 +0000 (12:04 +0000)]
* fixed up the html

12 years ago* killed warnings - all are trivial
Bernd Petrovitsch [Wed, 10 Oct 2007 21:29:48 +0000 (21:29 +0000)]
* killed warnings - all are trivial

12 years ago* updated to SVN trunk - revision 48
Bernd Petrovitsch [Wed, 10 Oct 2007 21:24:54 +0000 (21:24 +0000)]
* updated to SVN trunk - revision 48

12 years ago* kill a warning on 64bit
Bernd Petrovitsch [Wed, 10 Oct 2007 20:44:34 +0000 (20:44 +0000)]
* kill a warning on 64bit

12 years ago* simplify the formula avoiding unnecessary floating point calculations and
Bernd Petrovitsch [Fri, 5 Oct 2007 20:57:53 +0000 (20:57 +0000)]
* simplify the formula avoiding unnecessary floating point calculations and
  give the compiler as much freedom as possible.

12 years agocleanups:
Bernd Petrovitsch [Fri, 5 Oct 2007 20:24:47 +0000 (20:24 +0000)]
cleanups:
* localized a global buffer
* made local functions "static"
* const'ified parameters

12 years agoMisc changes:
Bernd Petrovitsch [Fri, 5 Oct 2007 20:10:24 +0000 (20:10 +0000)]
Misc changes:
- several fields in struct link_entry since I see no reason ot keep them
  signed and it avoids warnings
- killed the "loss_window_size" field in struct link_entry since it is
  only initalized and never changed.
- minimized constant strings in olsr_print_link_set().
cleanup stuff:
- const'ified parameters
- reformatted to make it (IMHO) more readable

12 years agoas reported by Aaron Kaplan <aaron@lo-res.org>:
Bernd Petrovitsch [Fri, 5 Oct 2007 08:39:14 +0000 (08:39 +0000)]
as reported by Aaron Kaplan <aaron@lo-res.org>:
* BSD-xargs doesn't know "--no-run-if-empty" aka "-r". So we simply kill it
  (leaving a comment for me to not add it again in 6 months - I have yet to
  encounter a situation where "-r" is actually wrong) as "rm -f" without
  parameters does nothing anyways.
* But it knows "-0" as I learned. So we use that too.

And yes, if I use "find | xargs" it actually is written as
"find -print0 | xargs -0r". Everytime.

12 years agopatch by David Cornejo <dcornejo@gmail.com>: use of an uninitialized variable
Bernd Petrovitsch [Fri, 5 Oct 2007 08:06:12 +0000 (08:06 +0000)]
patch by David Cornejo <dcornejo@gmail.com>: use of an uninitialized variable

12 years ago* apparently no one is using hex values in olsrd.conf as the HEXDIGIT
Bernd Petrovitsch [Thu, 4 Oct 2007 23:06:10 +0000 (23:06 +0000)]
* apparently no one is using hex values in olsrd.conf as the HEXDIGIT
  reg-exp was totally broken.
  fixed  it. And renamed it to HEX8
* renamed HEXBYTE to HEX16 as IPv6 actually has 16bit values there (and
  byte is misleading)
* rearranged the regexps to look more similar. Since flex (and lex) generate
  DEAs out of it, it doesn't make a difference.
* use "size_t".
* use more options: I don't know if that breaks on *BSD.

12 years ago* fixed warnings
Bernd Petrovitsch [Thu, 4 Oct 2007 22:40:19 +0000 (22:40 +0000)]
* fixed warnings

12 years ago* bug fix by Acinonyx <acinonyxs@yahoo.gr>
Bernd Petrovitsch [Thu, 4 Oct 2007 22:29:51 +0000 (22:29 +0000)]
* bug fix by Acinonyx <acinonyxs@yahoo.gr>

12 years ago* bug fixes and cleanups by John Hay <jhay@meraka.org.za> for FreeBSD
Bernd Petrovitsch [Thu, 4 Oct 2007 22:27:31 +0000 (22:27 +0000)]
* bug fixes and cleanups by John Hay <jhay@meraka.org.za> for FreeBSD

12 years ago* "balance" in struct avl_node is "signed char".
Bernd Petrovitsch [Tue, 25 Sep 2007 13:47:36 +0000 (13:47 +0000)]
* "balance" in struct avl_node is "signed char".
   Thanks to John Hay <jhay@meraka.org.za> for reporting and to
   Thomas Lopatic <thomas@lopatic.de> for confirming this.
* "leader" in struct avl_node is "unsigned char" as it is set to 0 and 1
   only (in src/lq_av.c).
* cleanup: added parentheres to arguments of a macro

12 years ago* killed too many #include <>s
Bernd Petrovitsch [Mon, 17 Sep 2007 22:57:41 +0000 (22:57 +0000)]
* killed too many #include <>s

12 years ago* made delete_all_inet_gws() static since it is not used elsewhere
Bernd Petrovitsch [Mon, 17 Sep 2007 22:55:40 +0000 (22:55 +0000)]
* made delete_all_inet_gws() static since it is not used elsewhere
* localized the netlink version restoring the former logging
* killed a superflous close()
No functional change, just moving code around.

12 years ago* more blurb
Bernd Petrovitsch [Mon, 17 Sep 2007 22:27:24 +0000 (22:27 +0000)]
* more blurb

12 years ago* applied 114-olsrd-timeoutlimit.patch
Bernd Petrovitsch [Mon, 17 Sep 2007 22:24:22 +0000 (22:24 +0000)]
* applied 114-olsrd-timeoutlimit.patch

12 years ago* applied 110-olsrd-fixpacketprint.patch
Bernd Petrovitsch [Mon, 17 Sep 2007 22:14:07 +0000 (22:14 +0000)]
* applied 110-olsrd-fixpacketprint.patch

12 years ago* applied 113-olsrd-txtinfo-fixhttpget.patch
Bernd Petrovitsch [Mon, 17 Sep 2007 22:08:01 +0000 (22:08 +0000)]
* applied 113-olsrd-txtinfo-fixhttpget.patch

12 years ago* forget to mention a patch
Bernd Petrovitsch [Mon, 17 Sep 2007 22:06:40 +0000 (22:06 +0000)]
* forget to mention a patch