Changeset 4331

Show
Ignore:
Timestamp:
03/15/09 18:16:24 (4 years ago)
Author:
jow
Message:

contrib/package/olsrd-luci:

  • switch from r3 to 0.5.6 stable branch
  • rebase unbloat patch
  • remove ipv4 broadcast from example config
  • tweak tc and hello intervals in init script
Location:
luci/trunk/contrib/package/olsrd-luci
Files:
1 removed
4 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/contrib/package/olsrd-luci/files/etc/config/olsrd

    r4203 r4331  
    77    option 'ignore' '1' 
    88    option 'interface' 'ff' 
    9     option 'Ip4Broadcast' '255.255.255.255' 
    109 
    1110config 'LoadPlugin' 
  • luci/trunk/contrib/package/olsrd-luci/files/etc/init.d/olsrd

    r3959 r4331  
    1111OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2' 
    1212OLSRD_LOADPLUGIN_SCHEMA='ignore:internal library:internal Host:list Net:list2 Ping:list redistribute:list NonOlsrIf:list name:list lat lon latlon_infile HNA:list2 hosts:list2' 
    13 OLSRD_INTERFACE_SCHEMA='ignore:internal interface:internal AutoDetectChanges:bool Ip4Broadcast HelloInterval=2.0 HelloValidityTime=40.0 TcInterval=5.0 TcValidityTime=100.0 MidInterval=18.0 MidValidityTime=324.0 HnaInterval=18.0 HnaValidityTime=108.0' 
     13OLSRD_INTERFACE_SCHEMA='ignore:internal interface:internal AutoDetectChanges:bool Ip4Broadcast HelloInterval=5.0 HelloValidityTime=40.0 TcInterval=2.0 TcValidityTime=100.0 MidInterval=18.0 MidValidityTime=324.0 HnaInterval=18.0 HnaValidityTime=108.0' 
    1414 
    1515T=' ' 
  • luci/trunk/contrib/package/olsrd-luci/Makefile

    r4201 r4331  
    1313PKG_NAME:=$(PKG_BASENAME)-luci 
    1414PKG_BASEVER:=0.5.6-r3 
    15 PKG_VERSION:=$(PKG_BASEVER)+freifunk 
     15PKG_VERSION:=$(PKG_BASEVER)+hg1765 
    1616PKG_RELEASE:=1 
    1717 
    18 #PKG_HGREV:=a7316f987848 
    19 #PKG_SOURCE:=$(PKG_HGREV).tar.gz 
    20 #PKG_SOURCE_URL:=http://gredler.at/hg/olsrd/archive 
    21 #PKG_MD5SUM:=b228b5452af158cd4313f9ed416d9c84 
    22 #PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_HGREV) 
    23 #PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) 
    24  
    25 PKG_SOURCE:=$(PKG_BASENAME)-$(PKG_BASEVER).tar.bz2 
    26 PKG_SOURCE_URL:=http://www.olsr.org/releases/0.5 
    27 PKG_MD5SUM:=0935688fa0fb5b0e073fe53ec654c5b2 
    28 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_BASEVER) 
    29 PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xjf $(DL_DIR)/$(PKG_SOURCE) 
     18PKG_HGREV:=fc691af9a18d 
     19PKG_SOURCE:=$(PKG_HGREV).tar.gz 
     20PKG_SOURCE_URL:=http://gredler.at/hg/olsrd-0.5.6/archive 
     21PKG_MD5SUM:=17fe345abf208ea1411d0a2041cf3c4e 
     22PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_HGREV) 
     23PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) 
     24 
     25#PKG_SOURCE:=$(PKG_BASENAME)-$(PKG_BASEVER).tar.bz2 
     26#PKG_SOURCE_URL:=http://www.olsr.org/releases/0.5 
     27#PKG_MD5SUM:=0935688fa0fb5b0e073fe53ec654c5b2 
     28#PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_BASEVER) 
     29#PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xjf $(DL_DIR)/$(PKG_SOURCE) 
    3030 
    3131include $(INCLUDE_DIR)/package.mk 
  • luci/trunk/contrib/package/olsrd-luci/patches/140-olsrd-optimize-size.patch

    r4201 r4331  
    1 diff -Nur olsrd-0.5.6-r3.orig/lib/bmf/src/NetworkInterfaces.c olsrd-0.5.6-r3/lib/bmf/src/NetworkInterfaces.c 
    2 --- olsrd-0.5.6-r3.orig/lib/bmf/src/NetworkInterfaces.c 2008-12-02 11:50:01.000000000 +0100 
    3 +++ olsrd-0.5.6-r3/lib/bmf/src/NetworkInterfaces.c  2008-12-03 10:01:07.000000000 +0100 
     1diff -ur olsrd-0-5-6-fc691af9a18d.orig/Makefile.inc olsrd-0-5-6-fc691af9a18d/Makefile.inc 
     2--- olsrd-0-5-6-fc691af9a18d.orig/Makefile.inc  2009-03-14 22:39:09.000000000 +0000 
     3+++ olsrd-0-5-6-fc691af9a18d/Makefile.inc   2009-03-15 16:32:39.000000000 +0000 
     4@@ -205,6 +205,10 @@ 
     5 $(warning Use CPPFLAGS instead of DEFINES for -D) 
     6 endif 
     7  
     8+ifeq ($(SVEN_OLA_UNBLOAT),1) 
     9+CPPFLAGS += -DSVEN_OLA_UNBLOAT -DNODEBUG 
     10+endif 
     11+ 
     12 TAGFILE ?= src/TAGS 
     13  
     14 help: 
     15diff -ur olsrd-0-5-6-fc691af9a18d.orig/lib/bmf/src/NetworkInterfaces.c olsrd-0-5-6-fc691af9a18d/lib/bmf/src/NetworkInterfaces.c 
     16--- olsrd-0-5-6-fc691af9a18d.orig/lib/bmf/src/NetworkInterfaces.c   2009-03-14 22:39:09.000000000 +0000 
     17+++ olsrd-0-5-6-fc691af9a18d/lib/bmf/src/NetworkInterfaces.c    2009-03-15 16:32:39.000000000 +0000 
    418@@ -544,7 +544,9 @@ 
    519           OLSR_PRINTF(9, "%s: ----> Not forwarding to %s: no link found\n", PLUGIN_NAME_SHORT, 
     
    1226           OLSR_PRINTF(9, "%s: ----> Not forwarding to %s: \"%s\" gives a better link to this neighbor, costing %5.2f\n", 
    1327                       PLUGIN_NAME_SHORT, olsr_ip_to_string(&buf, &walker->neighbor_iface_addr), bestIntf->int_name, 
    14 diff -Nur olsrd-0.5.6-r3.orig/lib/httpinfo/Makefile olsrd-0.5.6-r3/lib/httpinfo/Makefile 
    15 --- olsrd-0.5.6-r3.orig/lib/httpinfo/Makefile   2008-12-02 11:50:01.000000000 +0100 
    16 +++ olsrd-0.5.6-r3/lib/httpinfo/Makefile    2008-12-03 10:01:07.000000000 +0100 
     28diff -ur olsrd-0-5-6-fc691af9a18d.orig/lib/httpinfo/Makefile olsrd-0-5-6-fc691af9a18d/lib/httpinfo/Makefile 
     29--- olsrd-0-5-6-fc691af9a18d.orig/lib/httpinfo/Makefile 2009-03-14 22:39:09.000000000 +0000 
     30+++ olsrd-0-5-6-fc691af9a18d/lib/httpinfo/Makefile  2009-03-15 16:32:39.000000000 +0000 
    1731@@ -47,7 +47,11 @@ 
    1832 CPPFLAGS +=    -DADMIN_INTERFACE 
     
    2741 default_target: $(PLUGIN_FULLNAME) 
    2842 ifdef ADMIN_INTERFACE 
    29 diff -Nur olsrd-0.5.6-r3.orig/lib/httpinfo/src/olsrd_httpinfo.c olsrd-0.5.6-r3/lib/httpinfo/src/olsrd_httpinfo.c 
    30 --- olsrd-0.5.6-r3.orig/lib/httpinfo/src/olsrd_httpinfo.c   2008-12-02 11:50:01.000000000 +0100 
    31 +++ olsrd-0.5.6-r3/lib/httpinfo/src/olsrd_httpinfo.c    2008-12-03 10:01:07.000000000 +0100 
     43diff -ur olsrd-0-5-6-fc691af9a18d.orig/lib/httpinfo/src/olsrd_httpinfo.c olsrd-0-5-6-fc691af9a18d/lib/httpinfo/src/olsrd_httpinfo.c 
     44--- olsrd-0-5-6-fc691af9a18d.orig/lib/httpinfo/src/olsrd_httpinfo.c 2009-03-14 22:39:09.000000000 +0000 
     45+++ olsrd-0-5-6-fc691af9a18d/lib/httpinfo/src/olsrd_httpinfo.c  2009-03-15 16:59:39.000000000 +0000 
    3246@@ -67,7 +67,9 @@ 
    3347  
     
    4256@@ -181,7 +183,9 @@ 
    4357  
    44  static int build_about_body(char *, olsr_u32_t); 
    45   
    46 +#ifndef SVEN_OLA_UNBLOAT 
    47  static int build_cfgfile_body(char *, olsr_u32_t); 
     58 static int build_about_body(char *, uint32_t); 
     59  
     60+#ifndef SVEN_OLA_UNBLOAT 
     61 static int build_cfgfile_body(char *, uint32_t); 
    4862+#endif /* SVEN_OLA_UNBLOAT */ 
    4963  
    5064 static int check_allowed_ip(const struct allowed_net *const allowed_nets, const union olsr_ip_addr *const addr); 
    5165  
    52 @@ -217,10 +221,13 @@ 
    53    {"Admin", "admin", build_admin_body, OLSR_TRUE}, 
     66@@ -216,10 +220,13 @@ 
     67   {"Admin", "admin", build_admin_body, true}, 
    5468 #endif 
    55    {"About", "about", build_about_body, OLSR_TRUE}, 
    56 +#ifndef SVEN_OLA_UNBLOAT 
    57    {"FOO", "cfgfile", build_cfgfile_body, OLSR_FALSE}, 
    58 +#endif /* SVEN_OLA_UNBLOAT */ 
    59    {NULL, NULL, NULL, OLSR_FALSE} 
     69   {"About", "about", build_about_body, true}, 
     70+#ifndef SVEN_OLA_UNBLOAT 
     71   {"FOO", "cfgfile", build_cfgfile_body, false}, 
     72+#endif /* SVEN_OLA_UNBLOAT */ 
     73   {NULL, NULL, NULL, false} 
    6074 }; 
    6175  
     
    6478   {"favicon.ico", favicon_ico, sizeof(favicon_ico)} 
    6579   , 
    66 @@ -230,6 +237,7 @@ 
     80@@ -229,6 +236,7 @@ 
    6781   , 
    6882   {NULL, NULL, 0} 
     
    7286 static const struct static_txt_file_entry static_txt_files[] = { 
    7387   {"httpinfo.css", httpinfo_css}, 
    74 @@ -408,6 +416,7 @@ 
     88@@ -407,6 +415,7 @@ 
    7589   } else if (!strcmp(req_type, "GET")) { 
    7690     int i = 0; 
     
    8094       if (FILENREQ_MATCH(filename, static_bin_files[i].filename)) { 
    8195         break; 
    82 @@ -423,6 +432,7 @@ 
     96@@ -422,6 +431,7 @@ 
    8397     } 
    8498  
     
    88102       if (FILENREQ_MATCH(filename, static_txt_files[i].filename)) { 
    89103         break; 
    90 @@ -462,16 +472,22 @@ 
     104@@ -461,16 +471,22 @@ 
    91105         snprintf(&body[size], sizeof(body) - size, 
    92106                  "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n" "<head>\n" 
     
    101115                  "<body bgcolor=\"#ffffff\" text=\"#000000\">\n" 
    102116+#ifndef SVEN_OLA_UNBLOAT 
    103                   "<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"%d\">\n" 
     117                  "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"%d\">\n" 
    104118                  "<tbody><tr bgcolor=\"#ffffff\">\n" "<td align=\"left\" height=\"69\" valign=\"middle\" width=\"80%%\">\n" 
    105119                  "<font color=\"black\" face=\"timesroman\" size=\"6\">&nbsp;&nbsp;&nbsp;<a href=\"http://www.olsr.org/\">olsr.org OLSR daemon</a></font></td>\n" 
    106                   "<td align=\"right\" height=\"69\" valign=\"middle\" width=\"20%%\">\n" 
     120                  "<td height=\"69\" valign=\"middle\" width=\"20%%\">\n" 
    107121                  "<a href=\"http://www.olsr.org/\"><img border=\"0\" src=\"/logo.gif\" alt=\"olsrd logo\"></a></td>\n" "</tr>\n" 
    108122-                 "</tbody>\n" "</table>\n", FRAMEWIDTH); 
     
    113127       size += build_tabs(&body[size], sizeof(body) - size, i); 
    114128       size += build_frame(&body[size], sizeof(body) - size, "Current Routes", "routes", FRAMEWIDTH, tab_entries[i].build_body_cb); 
    115 @@ -855,7 +871,7 @@ 
     129@@ -854,7 +870,7 @@ 
    116130       size += snprintf(&buf[size], bufsize - size, "<tr><td colspan=\"3\">Status: DOWN</td></tr>\n"); 
    117131       continue; 
     
    122136       struct ipaddr_str addrbuf, maskbuf, bcastbuf; 
    123137       size += 
    124 @@ -868,6 +884,7 @@ 
     138@@ -867,6 +883,7 @@ 
    125139         snprintf(&buf[size], bufsize - size, "<tr>\n" "<td>IP: %s</td>\n" "<td>MCAST: %s</td>\n" "<td></td>\n" "</tr>\n", 
    126140                  ip6_to_string(&addrbuf, &rifs->int6_addr.sin6_addr), ip6_to_string(&maskbuf, &rifs->int6_multaddr.sin6_addr)); 
     
    130144       snprintf(&buf[size], bufsize - size, "<tr>\n" "<td>MTU: %d</td>\n" "<td>WLAN: %s</td>\n" "<td>STATUS: UP</td>\n" "</tr>\n", 
    131145                rifs->int_mtu, rifs->is_wireless ? "Yes" : "No"); 
    132 @@ -1116,6 +1133,7 @@ 
     146@@ -1115,6 +1132,7 @@ 
    133147                   build_host); 
    134148 } 
     
    136150+#ifndef SVEN_OLA_UNBLOAT 
    137151 static int 
    138  build_cfgfile_body(char *buf, olsr_u32_t bufsize) 
    139  { 
    140 @@ -1150,6 +1168,7 @@ 
     152 build_cfgfile_body(char *buf, uint32_t bufsize) 
     153 { 
     154@@ -1149,6 +1167,7 @@ 
    141155 #endif 
    142156   return size; 
     
    146160 static int 
    147161 check_allowed_ip(const struct allowed_net *const allowed_nets, const union olsr_ip_addr *const addr) 
    148 diff -Nur olsrd-0.5.6-r3.orig/lib/nameservice/src/nameservice.c olsrd-0.5.6-r3/lib/nameservice/src/nameservice.c 
    149 --- olsrd-0.5.6-r3.orig/lib/nameservice/src/nameservice.c   2008-12-03 10:01:07.000000000 +0100 
    150 +++ olsrd-0.5.6-r3/lib/nameservice/src/nameservice.c    2008-12-03 10:10:52.000000000 +0100 
     162diff -ur olsrd-0-5-6-fc691af9a18d.orig/lib/nameservice/src/nameservice.c olsrd-0-5-6-fc691af9a18d/lib/nameservice/src/nameservice.c 
     163--- olsrd-0-5-6-fc691af9a18d.orig/lib/nameservice/src/nameservice.c 2009-03-14 22:39:09.000000000 +0000 
     164+++ olsrd-0-5-6-fc691af9a18d/lib/nameservice/src/nameservice.c  2009-03-15 17:04:54.000000000 +0000 
    151165@@ -65,6 +65,11 @@ 
    152166 #include "mapwrite.h" 
     
    180194@@ -102,9 +111,11 @@ 
    181195 static struct name_entry *my_macs = NULL; 
    182  static olsr_bool mac_table_changed = OLSR_TRUE; 
     196 static bool mac_table_changed = true; 
    183197  
    184198+#ifndef SVEN_OLA_UNBLOAT 
    185199 static struct list_node forwarder_list[HASHSIZE]; 
    186200 static struct name_entry *my_forwarders = NULL; 
    187  static olsr_bool forwarder_table_changed = OLSR_TRUE; 
     201 static bool forwarder_table_changed = true; 
    188202+#endif /* SVEN_OLA_UNBLOAT */ 
    189203  
    190204 struct list_node latlon_list[HASHSIZE]; 
    191  static olsr_bool latlon_table_changed = OLSR_TRUE; 
     205 static bool latlon_table_changed = true; 
    192206@@ -138,7 +149,9 @@ 
    193207   GetWindowsDirectory(my_hosts_file, MAX_FILE - 12); 
     
    324338+#endif /* SVEN_OLA_UNBLOAT */ 
    325339   write_hosts_file();              /* if name_table_changed */ 
    326    write_services_file(OLSR_FALSE); /* if service_table_changed */ 
    327    write_services_file(OLSR_TRUE);  /* if mac_table_changed */ 
     340   write_services_file(false); /* if service_table_changed */ 
     341   write_services_file(true);  /* if mac_table_changed */ 
    328342@@ -693,11 +730,13 @@ 
    329343     pos = create_packet((struct name *)pos, my_name); 
     
    366380@@ -1120,6 +1163,7 @@ 
    367381 #endif 
    368    name_table_changed = OLSR_FALSE; 
     382   name_table_changed = false; 
    369383  
    370384+#ifndef SVEN_OLA_UNBLOAT 
     
    393407     } 
    394408+#endif /* SVEN_OLA_UNBLOAT */ 
    395      mac_table_changed = OLSR_FALSE; 
     409     mac_table_changed = false; 
    396410   } 
    397411   else { 
     
    405419     } 
    406420+#endif /* SVEN_OLA_UNBLOAT */ 
    407      service_table_changed = OLSR_FALSE; 
     421     service_table_changed = false; 
    408422   } 
    409423 } 
     
    432446@@ -1341,6 +1393,7 @@ 
    433447   fclose(resolv); 
    434    forwarder_table_changed = OLSR_FALSE; 
     448   forwarder_table_changed = false; 
    435449 } 
    436450+#endif /* SVEN_OLA_UNBLOAT */ 
     
    440454@@ -1359,9 +1412,11 @@ 
    441455     case NAME_HOST: 
    442        name_table_changed = OLSR_TRUE; 
     456       name_table_changed = true; 
    443457       break; 
    444458+#ifndef SVEN_OLA_UNBLOAT 
    445459     case NAME_FORWARDER: 
    446        forwarder_table_changed = OLSR_TRUE; 
     460       forwarder_table_changed = true; 
    447461       break; 
    448462+#endif /* SVEN_OLA_UNBLOAT */ 
    449463     case NAME_SERVICE: 
    450        service_table_changed = OLSR_TRUE; 
     464       service_table_changed = true; 
    451465       break; 
    452 @@ -1459,8 +1514,14 @@ 
    453     * these are then used by allowed_hostname_or_ip_in_service 
    454     * see regexec(3) for more infos */ 
    455    if (!is_service_wellformed(service_line)) { 
    456 +#ifdef SVEN_OLA_UNBLOAT 
    457 +    olsr_printf(1, "NAME PLUGIN: %s: Not 'x://y:z/|tcp|Text'\n", service_line); 
    458 +#endif /* SVEN_OLA_UNBLOAT */ 
    459      return OLSR_FALSE; 
    460    } else if (!allowed_hostname_or_ip_in_service(service_line, &(regmatch_t_service[1]))) { 
    461 +#ifdef SVEN_OLA_UNBLOAT 
    462 +    olsr_printf(1, "NAME PLUGIN: %s: IP/Addr not yours and not HNA\n", service_line); 
    463 +#endif /* SVEN_OLA_UNBLOAT */ 
    464      return OLSR_FALSE; 
    465    } 
    466   
    467 diff -Nur olsrd-0.5.6-r3.orig/Makefile.inc olsrd-0.5.6-r3/Makefile.inc 
    468 --- olsrd-0.5.6-r3.orig/Makefile.inc    2008-12-02 11:50:01.000000000 +0100 
    469 +++ olsrd-0.5.6-r3/Makefile.inc 2008-12-03 10:01:07.000000000 +0100 
    470 @@ -204,6 +204,10 @@ 
    471  $(warning Use CPPFLAGS instead of DEFINES for -D) 
    472  endif 
    473   
    474 +ifeq ($(SVEN_OLA_UNBLOAT),1) 
    475 +CPPFLAGS += -DSVEN_OLA_UNBLOAT -DNODEBUG 
    476 +endif 
    477 + 
    478  TAGFILE ?= src/TAGS 
    479   
    480  help: 
    481 diff -Nur olsrd-0.5.6-r3.orig/src/apm.h olsrd-0.5.6-r3/src/apm.h 
    482 --- olsrd-0.5.6-r3.orig/src/apm.h   2008-12-02 11:50:01.000000000 +0100 
    483 +++ olsrd-0.5.6-r3/src/apm.h    2008-12-03 10:01:07.000000000 +0100 
     466diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/apm.h olsrd-0-5-6-fc691af9a18d/src/apm.h 
     467--- olsrd-0-5-6-fc691af9a18d.orig/src/apm.h 2009-03-14 22:39:09.000000000 +0000 
     468+++ olsrd-0-5-6-fc691af9a18d/src/apm.h  2009-03-15 16:32:39.000000000 +0000 
    484469@@ -41,6 +41,7 @@ 
    485470  
     
    498483 /* 
    499484  * Local Variables: 
    500 diff -Nur olsrd-0.5.6-r3.orig/src/cfgparser/local.mk olsrd-0.5.6-r3/src/cfgparser/local.mk 
    501 --- olsrd-0.5.6-r3.orig/src/cfgparser/local.mk  2008-12-02 11:50:01.000000000 +0100 
    502 +++ olsrd-0.5.6-r3/src/cfgparser/local.mk   2008-12-03 10:01:07.000000000 +0100 
     485diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/cfgparser/local.mk olsrd-0-5-6-fc691af9a18d/src/cfgparser/local.mk 
     486--- olsrd-0-5-6-fc691af9a18d.orig/src/cfgparser/local.mk    2009-03-14 22:39:09.000000000 +0000 
     487+++ olsrd-0-5-6-fc691af9a18d/src/cfgparser/local.mk 2009-03-15 16:32:39.000000000 +0000 
    503488@@ -41,8 +41,13 @@ 
    504489 C=$(if $(CFGDIR),$(CFGDIR)/) 
     
    515500  
    516501 $(C)oscan.c: $(C)oscan.lex $(C)Makefile 
    517 diff -Nur olsrd-0.5.6-r3.orig/src/cfgparser/olsrd_conf.c olsrd-0.5.6-r3/src/cfgparser/olsrd_conf.c 
    518 --- olsrd-0.5.6-r3.orig/src/cfgparser/olsrd_conf.c  2008-12-02 11:50:01.000000000 +0100 
    519 +++ olsrd-0.5.6-r3/src/cfgparser/olsrd_conf.c   2008-12-03 10:01:07.000000000 +0100 
     502diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/cfgparser/olsrd_conf.c olsrd-0-5-6-fc691af9a18d/src/cfgparser/olsrd_conf.c 
     503--- olsrd-0-5-6-fc691af9a18d.orig/src/cfgparser/olsrd_conf.c    2009-03-14 22:39:09.000000000 +0000 
     504+++ olsrd-0-5-6-fc691af9a18d/src/cfgparser/olsrd_conf.c 2009-03-15 16:53:43.000000000 +0000 
    520505@@ -81,11 +81,13 @@ 
    521506   } 
     
    534519@@ -152,7 +154,9 @@ 
    535520     /* set various stuff */ 
    536      in->configured = OLSR_FALSE; 
     521     in->configured = false; 
    537522     in->interf = NULL; 
    538523+#ifndef SVEN_OLA_UNBLOAT 
    539      in->host_emul = OLSR_FALSE; 
     524     in->host_emul = false; 
    540525+#endif /* SVEN_OLA_UNBLOAT */ 
    541526   } 
     
    545530  
    546531   cnf->debug_level = DEF_DEBUGLVL; 
    547    cnf->no_fork = OLSR_FALSE; 
    548 +#ifndef SVEN_OLA_UNBLOAT 
    549    cnf->host_emul = OLSR_FALSE; 
     532   cnf->no_fork = false; 
     533+#ifndef SVEN_OLA_UNBLOAT 
     534   cnf->host_emul = false; 
    550535+#endif /* SVEN_OLA_UNBLOAT */ 
    551536   cnf->ip_version = AF_INET; 
     
    578563 #if defined WIN32 
    579564 struct ioinfo { 
    580 diff -Nur olsrd-0.5.6-r3.orig/src/cfgparser/oparse.y olsrd-0.5.6-r3/src/cfgparser/oparse.y 
    581 --- olsrd-0.5.6-r3.orig/src/cfgparser/oparse.y  2008-12-02 11:50:01.000000000 +0100 
    582 +++ olsrd-0.5.6-r3/src/cfgparser/oparse.y   2008-12-03 10:01:07.000000000 +0100 
     565diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/cfgparser/oparse.y olsrd-0-5-6-fc691af9a18d/src/cfgparser/oparse.y 
     566--- olsrd-0-5-6-fc691af9a18d.orig/src/cfgparser/oparse.y    2009-03-14 22:39:09.000000000 +0000 
     567+++ olsrd-0-5-6-fc691af9a18d/src/cfgparser/oparse.y 2009-03-15 16:32:39.000000000 +0000 
    583568@@ -176,7 +176,6 @@ 
    584569 %token TOK_RTTABLE 
     
    702687 { 
    703688   int ifcnt = ifs_in_curr_cfg; 
    704 diff -Nur olsrd-0.5.6-r3.orig/src/cfgparser/oscan.lex olsrd-0.5.6-r3/src/cfgparser/oscan.lex 
    705 --- olsrd-0.5.6-r3.orig/src/cfgparser/oscan.lex 2008-12-02 11:50:01.000000000 +0100 
    706 +++ olsrd-0.5.6-r3/src/cfgparser/oscan.lex  2008-12-03 10:01:07.000000000 +0100 
     689diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/cfgparser/oscan.lex olsrd-0-5-6-fc691af9a18d/src/cfgparser/oscan.lex 
     690--- olsrd-0-5-6-fc691af9a18d.orig/src/cfgparser/oscan.lex   2009-03-14 22:39:09.000000000 +0000 
     691+++ olsrd-0-5-6-fc691af9a18d/src/cfgparser/oscan.lex    2009-03-15 16:32:39.000000000 +0000 
    707692@@ -253,11 +253,6 @@ 
    708693     return TOK_NETLABEL; 
     
    729714     yylval = NULL; 
    730715     return TOK_FIBMETRIC; 
    731 diff -Nur olsrd-0.5.6-r3.orig/src/defs.h olsrd-0.5.6-r3/src/defs.h 
    732 --- olsrd-0.5.6-r3.orig/src/defs.h  2008-12-02 11:50:01.000000000 +0100 
    733 +++ olsrd-0.5.6-r3/src/defs.h   2008-12-03 10:01:07.000000000 +0100 
     716diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/defs.h olsrd-0-5-6-fc691af9a18d/src/defs.h 
     717--- olsrd-0-5-6-fc691af9a18d.orig/src/defs.h    2009-03-14 22:39:09.000000000 +0000 
     718+++ olsrd-0-5-6-fc691af9a18d/src/defs.h 2009-03-15 16:32:39.000000000 +0000 
    734719@@ -190,6 +190,8 @@ 
    735720  */ 
    736  unsigned long olsr_times(void); 
     721 clock_t olsr_times(void); 
    737722  
    738723+#ifndef SVEN_OLA_UNBLOAT 
     
    749734 /* 
    750735  * Local Variables: 
    751 diff -Nur olsrd-0.5.6-r3.orig/src/duplicate_set.c olsrd-0.5.6-r3/src/duplicate_set.c 
    752 --- olsrd-0.5.6-r3.orig/src/duplicate_set.c 2008-12-02 11:50:01.000000000 +0100 
    753 +++ olsrd-0.5.6-r3/src/duplicate_set.c  2008-12-03 10:01:07.000000000 +0100 
     736diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/duplicate_set.c olsrd-0-5-6-fc691af9a18d/src/duplicate_set.c 
     737--- olsrd-0-5-6-fc691af9a18d.orig/src/duplicate_set.c   2009-03-14 22:39:09.000000000 +0000 
     738+++ olsrd-0-5-6-fc691af9a18d/src/duplicate_set.c    2009-03-15 16:32:39.000000000 +0000 
    754739@@ -174,6 +174,7 @@ 
    755    return OLSR_FALSE;            /* no duplicate */ 
     740   return false;                 /* no duplicate */ 
    756741 } 
    757742  
     
    768753 /* 
    769754  * Local Variables: 
    770 diff -Nur olsrd-0.5.6-r3.orig/src/hna_set.c olsrd-0.5.6-r3/src/hna_set.c 
    771 --- olsrd-0.5.6-r3.orig/src/hna_set.c   2008-12-02 11:50:01.000000000 +0100 
    772 +++ olsrd-0.5.6-r3/src/hna_set.c    2008-12-03 10:01:07.000000000 +0100 
     755diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/hna_set.c olsrd-0-5-6-fc691af9a18d/src/hna_set.c 
     756--- olsrd-0-5-6-fc691af9a18d.orig/src/hna_set.c 2009-03-14 22:39:09.000000000 +0000 
     757+++ olsrd-0-5-6-fc691af9a18d/src/hna_set.c  2009-03-15 16:32:39.000000000 +0000 
    773758@@ -279,6 +279,7 @@ 
    774759  * 
     
    787772 /** 
    788773  *Process incoming HNA message. 
    789 diff -Nur olsrd-0.5.6-r3.orig/src/interfaces.c olsrd-0.5.6-r3/src/interfaces.c 
    790 --- olsrd-0.5.6-r3.orig/src/interfaces.c    2008-12-02 11:50:01.000000000 +0100 
    791 +++ olsrd-0.5.6-r3/src/interfaces.c 2008-12-03 10:01:07.000000000 +0100 
     774diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/interfaces.c olsrd-0-5-6-fc691af9a18d/src/interfaces.c 
     775--- olsrd-0-5-6-fc691af9a18d.orig/src/interfaces.c  2009-03-14 22:39:09.000000000 +0000 
     776+++ olsrd-0-5-6-fc691af9a18d/src/interfaces.c   2009-03-15 16:54:47.000000000 +0000 
    792777@@ -93,12 +93,16 @@ 
    793778   OLSR_PRINTF(1, "\n ---- Interface configuration ---- \n\n"); 
     
    824809  
    825810+#ifndef SVEN_OLA_UNBLOAT 
    826    interf_n->host_emul = hemu ? OLSR_TRUE : OLSR_FALSE; 
     811   interf_n->host_emul = hemu ? true : false; 
    827812+#endif /* SVEN_OLA_UNBLOAT */ 
    828813  
    829814   strscpy(interf_n->name, name, name_size); 
    830815   interf_n->next = olsr_cnf->interfaces; 
    831 diff -Nur olsrd-0.5.6-r3.orig/src/interfaces.h olsrd-0.5.6-r3/src/interfaces.h 
    832 --- olsrd-0.5.6-r3.orig/src/interfaces.h    2008-12-02 11:50:01.000000000 +0100 
    833 +++ olsrd-0.5.6-r3/src/interfaces.h 2008-12-03 10:01:07.000000000 +0100 
     816diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/interfaces.h olsrd-0-5-6-fc691af9a18d/src/interfaces.h 
     817--- olsrd-0-5-6-fc691af9a18d.orig/src/interfaces.h  2009-03-14 22:39:09.000000000 +0000 
     818+++ olsrd-0-5-6-fc691af9a18d/src/interfaces.h   2009-03-15 16:32:39.000000000 +0000 
    834819@@ -196,7 +196,12 @@ 
    835820  
     
    846831 int add_ifchgf(int (*f) (struct interface *, int)); 
    847832  
    848 diff -Nur olsrd-0.5.6-r3.orig/src/ipcalc.c olsrd-0.5.6-r3/src/ipcalc.c 
    849 --- olsrd-0.5.6-r3.orig/src/ipcalc.c    2008-12-02 11:50:01.000000000 +0100 
    850 +++ olsrd-0.5.6-r3/src/ipcalc.c 2008-12-03 10:01:07.000000000 +0100 
    851 @@ -122,6 +122,7 @@ 
    852    return prefix; 
    853  } 
    854   
    855 +#ifndef SVEN_OLA_UNBLOAT 
    856  const char * 
    857  olsr_ip_prefix_to_string(const struct olsr_ip_prefix *prefix) 
    858  { 
    859 @@ -148,6 +149,7 @@ 
    860    } 
    861    return rv; 
    862  } 
    863 +#endif /* SVEN_OLA_UNBLOAT */ 
    864   
    865  /* see if the ipaddr is in the net. That is equivalent to the fact that the net part 
    866   * of both are equal. So we must compare the first <prefixlen> bits. 
    867 diff -Nur olsrd-0.5.6-r3.orig/src/ipcalc.h olsrd-0.5.6-r3/src/ipcalc.h 
    868 --- olsrd-0.5.6-r3.orig/src/ipcalc.h    2008-12-02 11:50:01.000000000 +0100 
    869 +++ olsrd-0.5.6-r3/src/ipcalc.h 2008-12-03 10:01:07.000000000 +0100 
    870 @@ -146,7 +146,9 @@ 
    871    return inet_ntop(olsr_cnf->ip_version, addr, buf->buf, sizeof(buf->buf)); 
    872  } 
    873   
    874 +#ifndef SVEN_OLA_UNBLOAT 
    875  const char *olsr_ip_prefix_to_string(const struct olsr_ip_prefix *prefix); 
    876 +#endif /* SVEN_OLA_UNBLOAT */ 
    877   
    878  static INLINE const char * 
    879  sockaddr4_to_string(struct ipaddr_str *const buf, const struct sockaddr *const addr) 
    880 diff -Nur olsrd-0.5.6-r3.orig/src/ipc_frontend.c olsrd-0.5.6-r3/src/ipc_frontend.c 
    881 --- olsrd-0.5.6-r3.orig/src/ipc_frontend.c  2008-12-02 11:50:01.000000000 +0100 
    882 +++ olsrd-0.5.6-r3/src/ipc_frontend.c   2008-12-03 10:01:07.000000000 +0100 
     833diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/ipc_frontend.c olsrd-0-5-6-fc691af9a18d/src/ipc_frontend.c 
     834--- olsrd-0-5-6-fc691af9a18d.orig/src/ipc_frontend.c    2009-03-14 22:39:09.000000000 +0000 
     835+++ olsrd-0-5-6-fc691af9a18d/src/ipc_frontend.c 2009-03-15 16:32:39.000000000 +0000 
    883836@@ -46,6 +46,7 @@ 
    884837  * 
     
    897850 /* 
    898851  * Local Variables: 
    899 diff -Nur olsrd-0.5.6-r3.orig/src/ipc_frontend.h olsrd-0.5.6-r3/src/ipc_frontend.h 
    900 --- olsrd-0.5.6-r3.orig/src/ipc_frontend.h  2008-12-02 11:50:01.000000000 +0100 
    901 +++ olsrd-0.5.6-r3/src/ipc_frontend.h   2008-12-03 10:01:07.000000000 +0100 
     852diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/ipc_frontend.h olsrd-0-5-6-fc691af9a18d/src/ipc_frontend.h 
     853--- olsrd-0-5-6-fc691af9a18d.orig/src/ipc_frontend.h    2009-03-14 22:39:09.000000000 +0000 
     854+++ olsrd-0-5-6-fc691af9a18d/src/ipc_frontend.h 2009-03-15 16:32:39.000000000 +0000 
    902855@@ -48,6 +48,7 @@ 
    903856  
     
    916869 /* 
    917870  * Local Variables: 
    918 diff -Nur olsrd-0.5.6-r3.orig/src/link_set.c olsrd-0.5.6-r3/src/link_set.c 
    919 --- olsrd-0.5.6-r3.orig/src/link_set.c  2008-12-02 11:50:01.000000000 +0100 
    920 +++ olsrd-0.5.6-r3/src/link_set.c   2008-12-03 10:01:07.000000000 +0100 
    921 @@ -746,6 +746,7 @@ 
     871diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/ipcalc.c olsrd-0-5-6-fc691af9a18d/src/ipcalc.c 
     872--- olsrd-0-5-6-fc691af9a18d.orig/src/ipcalc.c  2009-03-14 22:39:09.000000000 +0000 
     873+++ olsrd-0-5-6-fc691af9a18d/src/ipcalc.c   2009-03-15 16:32:39.000000000 +0000 
     874@@ -121,6 +121,7 @@ 
     875   return prefix; 
     876 } 
     877  
     878+#ifndef SVEN_OLA_UNBLOAT 
     879 const char * 
     880 olsr_ip_prefix_to_string(const struct olsr_ip_prefix *prefix) 
     881 { 
     882@@ -147,6 +148,7 @@ 
     883   } 
     884   return rv; 
     885 } 
     886+#endif /* SVEN_OLA_UNBLOAT */ 
     887  
     888 /* see if the ipaddr is in the net. That is equivalent to the fact that the net part 
     889  * of both are equal. So we must compare the first <prefixlen> bits. 
     890diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/ipcalc.h olsrd-0-5-6-fc691af9a18d/src/ipcalc.h 
     891--- olsrd-0-5-6-fc691af9a18d.orig/src/ipcalc.h  2009-03-14 22:39:09.000000000 +0000 
     892+++ olsrd-0-5-6-fc691af9a18d/src/ipcalc.h   2009-03-15 16:32:39.000000000 +0000 
     893@@ -146,7 +146,9 @@ 
     894   return inet_ntop(olsr_cnf->ip_version, addr, buf->buf, sizeof(buf->buf)); 
     895 } 
     896  
     897+#ifndef SVEN_OLA_UNBLOAT 
     898 const char *olsr_ip_prefix_to_string(const struct olsr_ip_prefix *prefix); 
     899+#endif /* SVEN_OLA_UNBLOAT */ 
     900  
     901 static INLINE const char * 
     902 sockaddr4_to_string(struct ipaddr_str *const buf, const struct sockaddr *const addr) 
     903diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/link_set.c olsrd-0-5-6-fc691af9a18d/src/link_set.c 
     904--- olsrd-0-5-6-fc691af9a18d.orig/src/link_set.c    2009-03-14 22:39:09.000000000 +0000 
     905+++ olsrd-0-5-6-fc691af9a18d/src/link_set.c 2009-03-15 16:32:39.000000000 +0000 
     906@@ -761,6 +761,7 @@ 
    922907   return ret; 
    923908 } 
     
    927912 olsr_print_link_set(void) 
    928913 { 
    929 @@ -767,6 +768,7 @@ 
     914@@ -782,6 +783,7 @@ 
    930915   } OLSR_FOR_ALL_LINK_ENTRIES_END(walker); 
    931916 #endif 
     
    935920 /* 
    936921  * called for every LQ HELLO message. 
    937 diff -Nur olsrd-0.5.6-r3.orig/src/linux/apm.c olsrd-0.5.6-r3/src/linux/apm.c 
    938 --- olsrd-0.5.6-r3.orig/src/linux/apm.c 2008-12-02 11:50:01.000000000 +0100 
    939 +++ olsrd-0.5.6-r3/src/linux/apm.c  2008-12-03 10:01:07.000000000 +0100 
     922diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/linux/apm.c olsrd-0-5-6-fc691af9a18d/src/linux/apm.c 
     923--- olsrd-0-5-6-fc691af9a18d.orig/src/linux/apm.c   2009-03-14 22:39:09.000000000 +0000 
     924+++ olsrd-0-5-6-fc691af9a18d/src/linux/apm.c    2009-03-15 16:32:39.000000000 +0000 
    940925@@ -44,6 +44,7 @@ 
    941926  * Acpi-Power Enlightenment epplet 
     
    954939 /* 
    955940  * Local Variables: 
    956 diff -Nur olsrd-0.5.6-r3.orig/src/linux/kernel_routes.c olsrd-0.5.6-r3/src/linux/kernel_routes.c 
    957 --- olsrd-0.5.6-r3.orig/src/linux/kernel_routes.c   2008-12-02 11:50:01.000000000 +0100 
    958 +++ olsrd-0.5.6-r3/src/linux/kernel_routes.c    2008-12-03 10:01:07.000000000 +0100 
    959 @@ -144,10 +144,12 @@ 
    960          h = NLMSG_NEXT(h, ret); 
    961        } 
    962      } 
    963 +#ifndef SVEN_OLA_UNBLOAT 
    964      if (0 <= ret && olsr_cnf->ipc_connections > 0) { 
    965        ipc_route_send_rtentry(&rt->rt_dst.prefix, &nexthop->gateway, metric, RTM_NEWROUTE == cmd, 
     941diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/linux/kernel_routes.c olsrd-0-5-6-fc691af9a18d/src/linux/kernel_routes.c 
     942--- olsrd-0-5-6-fc691af9a18d.orig/src/linux/kernel_routes.c 2009-03-14 22:39:09.000000000 +0000 
     943+++ olsrd-0-5-6-fc691af9a18d/src/linux/kernel_routes.c  2009-03-15 16:49:14.000000000 +0000 
     944@@ -288,11 +288,13 @@ 
     945     if (rt_ret > 0) rt_ret = 0;//0 means successful recovery 
     946     else rt_ret = -1;//unrecoverable error 
     947   } 
     948+#ifndef SVEN_OLA_UNBLOAT 
     949   //send ipc update on success 
     950   if ( ( cmd != RTM_NEWRULE ) & ( cmd != RTM_DELRULE ) & (flag = RT_ORIG_REQUEST) & (0 <= rt_ret && olsr_cnf->ipc_connections > 0)) { 
     951     ipc_route_send_rtentry(&rt->rt_dst.prefix, &nexthop->gateway, metric, RTM_NEWROUTE == cmd, 
    966952                              if_ifwithindex_name(nexthop->iif_index)); 
    967      } 
    968 +#endif /* SVEN_OLA_UNBLOAT */ 
    969    } 
    970    return ret; 
    971  } 
    972 diff -Nur olsrd-0.5.6-r3.orig/src/linux/net.c olsrd-0.5.6-r3/src/linux/net.c 
    973 --- olsrd-0.5.6-r3.orig/src/linux/net.c 2008-12-02 11:50:01.000000000 +0100 
    974 +++ olsrd-0.5.6-r3/src/linux/net.c  2008-12-03 10:01:07.000000000 +0100 
     953   } 
     954+#endif /* SVEN_OLA_UNBLOAT */ 
     955   if (rt_ret == -2) olsr_syslog(OLSR_LOG_ERR,"no rtnetlink response was received! (no more system ressources?, everything may happen now ...)"); 
     956   return rt_ret; 
     957 } 
     958diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/linux/net.c olsrd-0-5-6-fc691af9a18d/src/linux/net.c 
     959--- olsrd-0-5-6-fc691af9a18d.orig/src/linux/net.c   2009-03-14 22:39:09.000000000 +0000 
     960+++ olsrd-0-5-6-fc691af9a18d/src/linux/net.c    2009-03-15 16:32:39.000000000 +0000 
    975961@@ -69,8 +69,10 @@ 
    976962 #define SIOCGIWRATE    0x8B21  /* get default bit rate (bps) */ 
     
    11691155  *Creates a nonblocking broadcast socket. 
    11701156  *@param sa sockaddr struct. Used for bind(2). 
    1171 diff -Nur olsrd-0.5.6-r3.orig/src/lq_plugin.c olsrd-0.5.6-r3/src/lq_plugin.c 
    1172 --- olsrd-0.5.6-r3.orig/src/lq_plugin.c 2008-12-02 11:50:01.000000000 +0100 
    1173 +++ olsrd-0.5.6-r3/src/lq_plugin.c  2008-12-03 10:01:07.000000000 +0100 
     1157diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/lq_plugin.c olsrd-0-5-6-fc691af9a18d/src/lq_plugin.c 
     1158--- olsrd-0-5-6-fc691af9a18d.orig/src/lq_plugin.c   2009-03-14 22:39:09.000000000 +0000 
     1159+++ olsrd-0-5-6-fc691af9a18d/src/lq_plugin.c    2009-03-15 16:32:39.000000000 +0000 
    11741160@@ -67,12 +67,18 @@ 
    11751161 init_lq_handler_tree(void) 
     
    12391225   struct link_entry *h; 
    12401226  
    1241 diff -Nur olsrd-0.5.6-r3.orig/src/lq_plugin_default_float.c olsrd-0.5.6-r3/src/lq_plugin_default_float.c 
    1242 --- olsrd-0.5.6-r3.orig/src/lq_plugin_default_float.c   2008-12-02 11:50:01.000000000 +0100 
    1243 +++ olsrd-0.5.6-r3/src/lq_plugin_default_float.c    2008-12-03 10:01:07.000000000 +0100 
     1227diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/lq_plugin_default_float.c olsrd-0-5-6-fc691af9a18d/src/lq_plugin_default_float.c 
     1228--- olsrd-0-5-6-fc691af9a18d.orig/src/lq_plugin_default_float.c 2009-03-14 22:39:09.000000000 +0000 
     1229+++ olsrd-0-5-6-fc691af9a18d/src/lq_plugin_default_float.c  2009-03-15 16:32:39.000000000 +0000 
    12441230@@ -39,6 +39,7 @@ 
    12451231  * 
     
    12581244 /* 
    12591245  * Local Variables: 
    1260 diff -Nur olsrd-0.5.6-r3.orig/src/lq_plugin_default_float.h olsrd-0.5.6-r3/src/lq_plugin_default_float.h 
    1261 --- olsrd-0.5.6-r3.orig/src/lq_plugin_default_float.h   2008-12-02 11:50:01.000000000 +0100 
    1262 +++ olsrd-0.5.6-r3/src/lq_plugin_default_float.h    2008-12-03 10:01:07.000000000 +0100 
     1246diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/lq_plugin_default_float.h olsrd-0-5-6-fc691af9a18d/src/lq_plugin_default_float.h 
     1247--- olsrd-0-5-6-fc691af9a18d.orig/src/lq_plugin_default_float.h 2009-03-14 22:39:09.000000000 +0000 
     1248+++ olsrd-0-5-6-fc691af9a18d/src/lq_plugin_default_float.h  2009-03-15 16:32:39.000000000 +0000 
    12631249@@ -39,6 +39,7 @@ 
    12641250  * 
     
    12771263 /* 
    12781264  * Local Variables: 
    1279 diff -Nur olsrd-0.5.6-r3.orig/src/lq_plugin_default_fpm.c olsrd-0.5.6-r3/src/lq_plugin_default_fpm.c 
    1280 --- olsrd-0.5.6-r3.orig/src/lq_plugin_default_fpm.c 2008-12-02 11:50:01.000000000 +0100 
    1281 +++ olsrd-0.5.6-r3/src/lq_plugin_default_fpm.c  2008-12-03 10:01:07.000000000 +0100 
     1265diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/lq_plugin_default_fpm.c olsrd-0-5-6-fc691af9a18d/src/lq_plugin_default_fpm.c 
     1266--- olsrd-0-5-6-fc691af9a18d.orig/src/lq_plugin_default_fpm.c   2009-03-14 22:39:09.000000000 +0000 
     1267+++ olsrd-0-5-6-fc691af9a18d/src/lq_plugin_default_fpm.c    2009-03-15 16:32:39.000000000 +0000 
    12821268@@ -39,6 +39,7 @@ 
    12831269  * 
     
    12961282 /* 
    12971283  * Local Variables: 
    1298 diff -Nur olsrd-0.5.6-r3.orig/src/lq_plugin_default_fpm.h olsrd-0.5.6-r3/src/lq_plugin_default_fpm.h 
    1299 --- olsrd-0.5.6-r3.orig/src/lq_plugin_default_fpm.h 2008-12-02 11:50:01.000000000 +0100 
    1300 +++ olsrd-0.5.6-r3/src/lq_plugin_default_fpm.h  2008-12-03 10:01:07.000000000 +0100 
     1284diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/lq_plugin_default_fpm.h olsrd-0-5-6-fc691af9a18d/src/lq_plugin_default_fpm.h 
     1285--- olsrd-0-5-6-fc691af9a18d.orig/src/lq_plugin_default_fpm.h   2009-03-14 22:39:09.000000000 +0000 
     1286+++ olsrd-0-5-6-fc691af9a18d/src/lq_plugin_default_fpm.h    2009-03-15 16:32:39.000000000 +0000 
    13011287@@ -39,6 +39,7 @@ 
    13021288  * 
     
    13151301 /* 
    13161302  * Local Variables: 
    1317 diff -Nur olsrd-0.5.6-r3.orig/src/main.c olsrd-0.5.6-r3/src/main.c 
    1318 --- olsrd-0.5.6-r3.orig/src/main.c  2008-12-02 11:50:01.000000000 +0100 
    1319 +++ olsrd-0.5.6-r3/src/main.c   2008-12-03 10:01:07.000000000 +0100 
    1320 @@ -243,13 +243,17 @@ 
     1303diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/main.c olsrd-0-5-6-fc691af9a18d/src/main.c 
     1304--- olsrd-0-5-6-fc691af9a18d.orig/src/main.c    2009-03-14 22:39:09.000000000 +0000 
     1305+++ olsrd-0-5-6-fc691af9a18d/src/main.c 2009-03-15 16:52:17.000000000 +0000 
     1306@@ -258,13 +258,17 @@ 
    13211307   /* 
    13221308    * Print configuration 
     
    13361322   /* 
    13371323    * socket for ioctl calls 
    1338 @@ -285,7 +289,9 @@ 
     1324@@ -300,7 +304,9 @@ 
    13391325   /* 
    13401326    *enable ip forwarding on host 
     
    13461332   /* Initialize parser */ 
    13471333   olsr_init_parser(); 
    1348 @@ -303,6 +309,7 @@ 
     1334@@ -318,6 +324,7 @@ 
    13491335    *Set up willingness/APM 
    13501336    */ 
     
    13541340       OLSR_PRINTF(1, "Could not read APM info - setting default willingness(%d)\n", WILL_DEFAULT); 
    13551341  
    1356 @@ -311,10 +318,13 @@ 
     1342@@ -326,10 +333,13 @@ 
    13571343       olsr_cnf->willingness_auto = 0; 
    13581344       olsr_cnf->willingness = WILL_DEFAULT; 
     
    13681354  
    13691355   /* Initialize net */ 
    1370 @@ -342,9 +352,11 @@ 
     1356@@ -364,9 +374,11 @@ 
    13711357  
    13721358   /* Initialize the IPC socket */ 
     
    13801366   olsr_init_tables(); 
    13811367  
    1382 @@ -450,9 +462,11 @@ 
     1368@@ -489,9 +501,11 @@ 
    13831369   OLSR_PRINTF(1, "Closing sockets...\n"); 
    13841370  
     
    13921378   /* OLSR sockets */ 
    13931379   for (ifn = ifnet; ifn; ifn = ifn->int_next) 
    1394 @@ -462,7 +476,9 @@ 
     1380@@ -501,7 +515,9 @@ 
    13951381   olsr_close_plugins(); 
    13961382  
     
    14021388   /* ioctl socket */ 
    14031389   close(olsr_cnf->ioctl_s); 
    1404 @@ -498,7 +514,11 @@ 
     1390@@ -542,7 +558,11 @@ 
    14051391           "usage: olsrd [-f <configfile>] [ -i interface1 interface2 ... ]\n" 
    14061392           "  [-d <debug_level>] [-ipv6] [-multi <IPv6 multicast address>]\n" 
     
    14141400           "  [-midint <mid interval (secs)>] [-hnaint <hna interval (secs)>]\n" 
    14151401           "  [-T <Polling Rate (secs)>] [-nofork] [-hemu <ip_address>]\n" "  [-lql <LQ level>] [-lqa <LQ aging factor>]\n"); 
    1416 @@ -662,12 +682,20 @@ 
     1402@@ -706,12 +726,20 @@ 
    14171403         olsr_exit(__func__, EXIT_FAILURE); 
    14181404       } 
     
    14211407+      queue_if(*argv); 
    14221408+#else /* SVEN_OLA_UNBLOAT */ 
    1423        queue_if(*argv, OLSR_FALSE); 
     1409       queue_if(*argv, false); 
    14241410+#endif /* SVEN_OLA_UNBLOAT */ 
    14251411  
     
    14301416+        queue_if(*argv); 
    14311417+#else /* SVEN_OLA_UNBLOAT */ 
    1432          queue_if(*argv, OLSR_FALSE); 
     1418         queue_if(*argv, false); 
    14331419+#endif /* SVEN_OLA_UNBLOAT */ 
    14341420       } 
    14351421  
    14361422       continue; 
    1437 @@ -729,7 +757,7 @@ 
     1423@@ -773,7 +801,7 @@ 
    14381424       sscanf(*argv, "%f", &cnf->pollrate); 
    14391425       continue; 
     
    14441430      * Should we display the contents of packages beeing sent? 
    14451431      */ 
    1446 @@ -753,6 +781,7 @@ 
     1432@@ -797,6 +825,7 @@ 
    14471433       cnf->ipc_connections = 1; 
    14481434       continue; 
     
    14521438     /* 
    14531439      * IPv6 multicast addr 
    1454 @@ -770,7 +799,7 @@ 
     1440@@ -814,7 +843,7 @@ 
    14551441  
    14561442       continue; 
     
    14611447      * Host emulation 
    14621448      */ 
    1463 @@ -798,6 +827,7 @@ 
     1449@@ -842,6 +871,7 @@ 
    14641450  
    14651451       continue; 
     
    14691455     /* 
    14701456      * Delete possible default GWs 
    1471 diff -Nur olsrd-0.5.6-r3.orig/src/neighbor_table.c olsrd-0.5.6-r3/src/neighbor_table.c 
    1472 --- olsrd-0.5.6-r3.orig/src/neighbor_table.c    2008-12-02 11:50:01.000000000 +0100 
    1473 +++ olsrd-0.5.6-r3/src/neighbor_table.c 2008-12-03 10:01:07.000000000 +0100 
     1457diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/neighbor_table.c olsrd-0-5-6-fc691af9a18d/src/neighbor_table.c 
     1458--- olsrd-0-5-6-fc691af9a18d.orig/src/neighbor_table.c  2009-03-14 22:39:09.000000000 +0000 
     1459+++ olsrd-0-5-6-fc691af9a18d/src/neighbor_table.c   2009-03-15 16:32:39.000000000 +0000 
    14741460@@ -362,6 +362,7 @@ 
    14751461  * 
     
    14881474 /* 
    14891475  * Local Variables: 
    1490 diff -Nur olsrd-0.5.6-r3.orig/src/net_olsr.c olsrd-0.5.6-r3/src/net_olsr.c 
    1491 --- olsrd-0.5.6-r3.orig/src/net_olsr.c  2008-12-03 10:01:07.000000000 +0100 
    1492 +++ olsrd-0.5.6-r3/src/net_olsr.c   2008-12-03 10:01:07.000000000 +0100 
     1476diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/net_olsr.c olsrd-0-5-6-fc691af9a18d/src/net_olsr.c 
     1477--- olsrd-0-5-6-fc691af9a18d.orig/src/net_olsr.c    2009-03-15 17:06:26.000000000 +0000 
     1478+++ olsrd-0-5-6-fc691af9a18d/src/net_olsr.c 2009-03-15 16:32:39.000000000 +0000 
    14931479@@ -44,7 +44,9 @@ 
    14941480 #include "log.h" 
     
    15291515     } 
    15301516   } 
    1531 diff -Nur olsrd-0.5.6-r3.orig/src/olsr.c olsrd-0.5.6-r3/src/olsr.c 
    1532 --- olsrd-0.5.6-r3.orig/src/olsr.c  2008-12-02 11:50:01.000000000 +0100 
    1533 +++ olsrd-0.5.6-r3/src/olsr.c   2008-12-03 10:01:07.000000000 +0100 
     1517diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/olsr.c olsrd-0-5-6-fc691af9a18d/src/olsr.c 
     1518--- olsrd-0-5-6-fc691af9a18d.orig/src/olsr.c    2009-03-14 22:39:09.000000000 +0000 
     1519+++ olsrd-0-5-6-fc691af9a18d/src/olsr.c 2009-03-15 16:32:39.000000000 +0000 
    15341520@@ -149,7 +149,9 @@ 
    15351521     return; 
     
    15601546     tmp_pc_list->function(changes_neighborhood, changes_topology, changes_hna); 
    15611547@@ -415,12 +418,15 @@ 
    1562  olsr_u8_t 
     1548 uint8_t 
    15631549 olsr_calculate_willingness(void) 
    15641550 { 
     
    15861572+#ifndef SVEN_OLA_UNBLOAT 
    15871573 const char * 
    1588  olsr_msgtype_to_string(olsr_u8_t msgtype) 
     1574 olsr_msgtype_to_string(uint8_t msgtype) 
    15891575 { 
    15901576@@ -508,6 +518,7 @@ 
     
    16121598 /** 
    16131599  *Wrapper for printf that prints to a specific 
    1614 diff -Nur olsrd-0.5.6-r3.orig/src/olsr_cfg.h olsrd-0.5.6-r3/src/olsr_cfg.h 
    1615 --- olsrd-0.5.6-r3.orig/src/olsr_cfg.h  2008-12-02 11:50:01.000000000 +0100 
    1616 +++ olsrd-0.5.6-r3/src/olsr_cfg.h   2008-12-03 10:01:07.000000000 +0100 
     1600diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/olsr.h olsrd-0-5-6-fc691af9a18d/src/olsr.h 
     1601--- olsrd-0-5-6-fc691af9a18d.orig/src/olsr.h    2009-03-14 22:39:09.000000000 +0000 
     1602+++ olsrd-0-5-6-fc691af9a18d/src/olsr.h 2009-03-15 16:42:54.000000000 +0000 
     1603@@ -72,15 +72,21 @@ 
     1604  
     1605 uint8_t olsr_calculate_willingness(void); 
     1606  
     1607+#ifndef SVEN_OLA_UNBLOAT 
     1608 const char *olsr_msgtype_to_string(uint8_t); 
     1609  
     1610 const char *olsr_link_to_string(uint8_t); 
     1611  
     1612 const char *olsr_status_to_string(uint8_t); 
     1613+#endif /* SVEN_OLA_UNBLOAT */ 
     1614  
     1615 void olsr_exit(const char *, int); 
     1616  
     1617+#ifdef SVEN_OLA_UNBLOAT 
     1618+#define olsr_malloc(size, msg) calloc(1, size) 
     1619+#else /* SVEN_OLA_UNBLOAT */ 
     1620 void *olsr_malloc(size_t, const char *); 
     1621+#endif /* SVEN_OLA_UNBLOAT */ 
     1622  
     1623 int olsr_printf(int, const char *, ...) __attribute__ ((format(printf, 2, 3))); 
     1624  
     1625diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/olsr_cfg.h olsrd-0-5-6-fc691af9a18d/src/olsr_cfg.h 
     1626--- olsrd-0-5-6-fc691af9a18d.orig/src/olsr_cfg.h    2009-03-14 22:39:09.000000000 +0000 
     1627+++ olsrd-0-5-6-fc691af9a18d/src/olsr_cfg.h 2009-03-15 16:45:53.000000000 +0000 
    16171628@@ -140,8 +140,10 @@ 
    16181629   char *name; 
    16191630   char *config; 
    1620    olsr_bool configured; 
    1621 +#ifndef SVEN_OLA_UNBLOAT 
    1622    olsr_bool host_emul; 
     1631   bool configured; 
     1632+#ifndef SVEN_OLA_UNBLOAT 
     1633   bool host_emul; 
    16231634   union olsr_ip_addr hemu_ip; 
    1624 +#endif                                 /* SVEN_OLA_UNBLOAT */ 
     1635+#endif /* SVEN_OLA_UNBLOAT */ 
    16251636   struct interface *interf; 
    16261637   struct if_config_options *cnf; 
     
    16291640 struct olsrd_config { 
    16301641   int debug_level; 
    1631    olsr_bool no_fork; 
    1632 +#ifndef SVEN_OLA_UNBLOAT 
    1633    olsr_bool host_emul; 
    1634 +#endif                                 /* SVEN_OLA_UNBLOAT */ 
     1642   bool no_fork; 
     1643+#ifndef SVEN_OLA_UNBLOAT 
     1644   bool host_emul; 
     1645+#endif /* SVEN_OLA_UNBLOAT */ 
    16351646   int ip_version; 
    1636    olsr_bool allow_no_interfaces; 
    1637    olsr_u16_t tos; 
     1647   bool allow_no_interfaces; 
     1648   uint16_t tos; 
    16381649@@ -191,13 +195,17 @@ 
    1639    olsr_u8_t rttable_default; 
    1640    olsr_u8_t willingness; 
    1641    olsr_bool willingness_auto; 
     1650   uint8_t rttable_default; 
     1651   uint8_t willingness; 
     1652   bool willingness_auto; 
    16421653+#ifndef SVEN_OLA_UNBLOAT 
    16431654   int ipc_connections; 
    1644 +#endif                                 /* SVEN_OLA_UNBLOAT */ 
    1645    olsr_bool use_hysteresis; 
     1655+#endif /* SVEN_OLA_UNBLOAT */ 
     1656   bool use_hysteresis; 
    16461657   olsr_fib_metric_options fib_metric; 
    16471658   struct hyst_param hysteresis_param; 
     
    16501661+#ifndef SVEN_OLA_UNBLOAT 
    16511662   struct ip_prefix_list *ipc_nets; 
    1652 +#endif                                 /* SVEN_OLA_UNBLOAT */ 
     1663+#endif /* SVEN_OLA_UNBLOAT */ 
    16531664   struct olsr_if *interfaces; 
    16541665   float pollrate; 
     
    16641675   int olsrd_write_cnf(struct olsrd_config *, const char *); 
    16651676  
    1666 diff -Nur olsrd-0.5.6-r3.orig/src/olsr.h olsrd-0.5.6-r3/src/olsr.h 
    1667 --- olsrd-0.5.6-r3.orig/src/olsr.h  2008-12-02 11:50:01.000000000 +0100 
    1668 +++ olsrd-0.5.6-r3/src/olsr.h   2008-12-03 10:01:07.000000000 +0100 
    1669 @@ -72,15 +72,21 @@ 
    1670   
    1671  olsr_u8_t olsr_calculate_willingness(void); 
    1672   
    1673 +#ifndef SVEN_OLA_UNBLOAT 
    1674  const char *olsr_msgtype_to_string(olsr_u8_t); 
    1675   
    1676  const char *olsr_link_to_string(olsr_u8_t); 
    1677   
    1678  const char *olsr_status_to_string(olsr_u8_t); 
    1679 +#endif /* SVEN_OLA_UNBLOAT */ 
    1680   
    1681  void olsr_exit(const char *, int); 
    1682   
    1683 +#ifdef SVEN_OLA_UNBLOAT 
    1684 +#define olsr_malloc(size, msg) calloc(1, size) 
    1685 +#else /* SVEN_OLA_UNBLOAT */ 
    1686  void *olsr_malloc(size_t, const char *); 
    1687 +#endif /* SVEN_OLA_UNBLOAT */ 
    1688   
    1689  int olsr_printf(int, const char *, ...) __attribute__ ((format(printf, 2, 3))); 
    1690   
    1691 diff -Nur olsrd-0.5.6-r3.orig/src/parser.c olsrd-0.5.6-r3/src/parser.c 
    1692 --- olsrd-0.5.6-r3.orig/src/parser.c    2008-12-02 11:50:01.000000000 +0100 
    1693 +++ olsrd-0.5.6-r3/src/parser.c 2008-12-03 10:01:07.000000000 +0100 
     1677diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/parser.c olsrd-0-5-6-fc691af9a18d/src/parser.c 
     1678--- olsrd-0-5-6-fc691af9a18d.orig/src/parser.c  2009-03-14 22:39:09.000000000 +0000 
     1679+++ olsrd-0-5-6-fc691af9a18d/src/parser.c   2009-03-15 16:32:39.000000000 +0000 
    16941680@@ -51,7 +51,9 @@ 
    16951681 #include "rebuild_packet.h" 
     
    17131699   if (olsr_cnf->ip_version == AF_INET) 
    17141700     msgsize = ntohs(m->v4.olsr_msgsize); 
    1715 diff -Nur olsrd-0.5.6-r3.orig/src/print_packet.c olsrd-0.5.6-r3/src/print_packet.c 
    1716 --- olsrd-0.5.6-r3.orig/src/print_packet.c  2008-12-02 11:50:01.000000000 +0100 
    1717 +++ olsrd-0.5.6-r3/src/print_packet.c   2008-12-03 10:01:07.000000000 +0100 
     1701diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/print_packet.c olsrd-0-5-6-fc691af9a18d/src/print_packet.c 
     1702--- olsrd-0-5-6-fc691af9a18d.orig/src/print_packet.c    2009-03-14 22:39:09.000000000 +0000 
     1703+++ olsrd-0-5-6-fc691af9a18d/src/print_packet.c 2009-03-15 16:32:39.000000000 +0000 
    17181704@@ -39,6 +39,7 @@ 
    17191705  * 
     
    17321718 /* 
    17331719  * Local Variables: 
    1734 diff -Nur olsrd-0.5.6-r3.orig/src/process_routes.c olsrd-0.5.6-r3/src/process_routes.c 
    1735 --- olsrd-0.5.6-r3.orig/src/process_routes.c    2008-12-02 11:50:01.000000000 +0100 
    1736 +++ olsrd-0.5.6-r3/src/process_routes.c 2008-12-03 10:01:07.000000000 +0100 
     1720diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/process_routes.c olsrd-0-5-6-fc691af9a18d/src/process_routes.c 
     1721--- olsrd-0-5-6-fc691af9a18d.orig/src/process_routes.c  2009-03-14 22:39:09.000000000 +0000 
     1722+++ olsrd-0-5-6-fc691af9a18d/src/process_routes.c   2009-03-15 16:32:39.000000000 +0000 
    17371723@@ -159,6 +159,7 @@ 
    17381724 static void 
     
    17411727+#ifndef SVEN_OLA_UNBLOAT 
    17421728   if (!olsr_cnf->host_emul) { 
    1743      olsr_16_t error = olsr_cnf->ip_version == AF_INET ? olsr_delroute_function(rt) : olsr_delroute6_function(rt); 
     1729     int16_t error = olsr_cnf->ip_version == AF_INET ? olsr_delroute_function(rt) : olsr_delroute6_function(rt); 
    17441730  
    17451731@@ -170,6 +171,12 @@ 
     
    17621748+#ifndef SVEN_OLA_UNBLOAT 
    17631749   if (!olsr_cnf->host_emul) { 
    1764      olsr_16_t error = (olsr_cnf->ip_version == AF_INET) ? olsr_addroute_function(rt) : olsr_addroute6_function(rt); 
     1750     int16_t error = (olsr_cnf->ip_version == AF_INET) ? olsr_addroute_function(rt) : olsr_addroute6_function(rt); 
    17651751  
    17661752@@ -199,6 +207,14 @@ 
     
    17881774 #endif 
    17891775 } 
    1790 diff -Nur olsrd-0.5.6-r3.orig/src/rebuild_packet.c olsrd-0.5.6-r3/src/rebuild_packet.c 
    1791 --- olsrd-0.5.6-r3.orig/src/rebuild_packet.c    2008-12-02 11:50:01.000000000 +0100 
    1792 +++ olsrd-0.5.6-r3/src/rebuild_packet.c 2008-12-03 10:01:07.000000000 +0100 
     1776diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/rebuild_packet.c olsrd-0-5-6-fc691af9a18d/src/rebuild_packet.c 
     1777--- olsrd-0-5-6-fc691af9a18d.orig/src/rebuild_packet.c  2009-03-14 22:39:09.000000000 +0000 
     1778+++ olsrd-0-5-6-fc691af9a18d/src/rebuild_packet.c   2009-03-15 16:32:39.000000000 +0000 
    17931779@@ -60,7 +60,11 @@ 
    17941780 mid_chgestruct(struct mid_message *mmsg, const union olsr_message *m) 
     
    18351821  
    18361822 } 
    1837 diff -Nur olsrd-0.5.6-r3.orig/src/routing_table.c olsrd-0.5.6-r3/src/routing_table.c 
    1838 --- olsrd-0.5.6-r3.orig/src/routing_table.c 2008-12-02 11:50:01.000000000 +0100 
    1839 +++ olsrd-0.5.6-r3/src/routing_table.c  2008-12-03 10:01:07.000000000 +0100 
     1823diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/routing_table.c olsrd-0-5-6-fc691af9a18d/src/routing_table.c 
     1824--- olsrd-0-5-6-fc691af9a18d.orig/src/routing_table.c   2009-03-14 22:39:09.000000000 +0000 
     1825+++ olsrd-0-5-6-fc691af9a18d/src/routing_table.c    2009-03-15 16:32:39.000000000 +0000 
    18401826@@ -623,6 +623,7 @@ 
    18411827 /** 
     
    18681854 /* 
    18691855  * Local Variables: 
    1870 diff -Nur olsrd-0.5.6-r3.orig/src/routing_table.h olsrd-0.5.6-r3/src/routing_table.h 
    1871 --- olsrd-0.5.6-r3.orig/src/routing_table.h 2008-12-02 11:50:01.000000000 +0100 
    1872 +++ olsrd-0.5.6-r3/src/routing_table.h  2008-12-03 10:01:07.000000000 +0100 
     1856diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/routing_table.h olsrd-0-5-6-fc691af9a18d/src/routing_table.h 
     1857--- olsrd-0-5-6-fc691af9a18d.orig/src/routing_table.h   2009-03-14 22:39:09.000000000 +0000 
     1858+++ olsrd-0-5-6-fc691af9a18d/src/routing_table.h    2009-03-15 16:32:39.000000000 +0000 
    18731859@@ -210,9 +210,11 @@ 
    1874  olsr_bool olsr_cmp_rt(const struct rt_entry *, const struct rt_entry *); 
    1875  olsr_u8_t olsr_fib_metric(const struct rt_metric *); 
     1860 bool olsr_cmp_rt(const struct rt_entry *, const struct rt_entry *); 
     1861 uint8_t olsr_fib_metric(const struct rt_metric *); 
    18761862  
    18771863+#ifndef SVEN_OLA_UNBLOAT 
     
    18831869 const struct rt_nexthop *olsr_get_nh(const struct rt_entry *); 
    18841870  
    1885 diff -Nur olsrd-0.5.6-r3.orig/src/tc_set.c olsrd-0.5.6-r3/src/tc_set.c 
    1886 --- olsrd-0.5.6-r3.orig/src/tc_set.c    2008-12-02 11:50:01.000000000 +0100 
    1887 +++ olsrd-0.5.6-r3/src/tc_set.c 2008-12-03 10:01:07.000000000 +0100 
     1871diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/tc_set.c olsrd-0-5-6-fc691af9a18d/src/tc_set.c 
     1872--- olsrd-0-5-6-fc691af9a18d.orig/src/tc_set.c  2009-03-14 22:39:09.000000000 +0000 
     1873+++ olsrd-0-5-6-fc691af9a18d/src/tc_set.c   2009-03-15 16:32:39.000000000 +0000 
    18881874@@ -336,6 +336,7 @@ 
    18891875 /** 
     
    19021888 /** 
    19031889  * Wrapper for the timer callback. 
    1904 @@ -685,6 +687,7 @@ 
     1890@@ -686,6 +688,7 @@ 
    19051891 /** 
    19061892  * Print the topology table to stdout 
     
    19101896 olsr_print_tc_table(void) 
    19111897 { 
    1912 @@ -710,6 +713,7 @@ 
     1898@@ -711,6 +714,7 @@ 
    19131899   } OLSR_FOR_ALL_TC_ENTRIES_END(tc); 
    19141900 #endif 
     
    19181904 /* 
    19191905  * calculate the border IPs of a tc edge set according to the border flags 
    1920 diff -Nur olsrd-0.5.6-r3.orig/src/tc_set.h olsrd-0.5.6-r3/src/tc_set.h 
    1921 --- olsrd-0.5.6-r3.orig/src/tc_set.h    2008-12-02 11:50:01.000000000 +0100 
    1922 +++ olsrd-0.5.6-r3/src/tc_set.h 2008-12-03 10:01:07.000000000 +0100 
     1906diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/tc_set.h olsrd-0-5-6-fc691af9a18d/src/tc_set.h 
     1907--- olsrd-0-5-6-fc691af9a18d.orig/src/tc_set.h  2009-03-14 22:39:09.000000000 +0000 
     1908+++ olsrd-0-5-6-fc691af9a18d/src/tc_set.h   2009-03-15 16:47:08.000000000 +0000 
    19231909@@ -157,7 +157,9 @@ 
    19241910  
    19251911 /* tc_edge_entry manipulation */ 
    1926  olsr_bool olsr_delete_outdated_tc_edges(struct tc_entry *); 
     1912 bool olsr_delete_outdated_tc_edges(struct tc_entry *); 
    19271913+#ifndef SVEN_OLA_UNBLOAT 
    19281914 char *olsr_tc_edge_to_string(struct tc_edge_entry *); 
    19291915+#endif /* SVEN_OLA_UNBLOAT */ 
    19301916 struct tc_edge_entry *olsr_lookup_tc_edge(struct tc_entry *, union olsr_ip_addr *); 
    1931  struct tc_edge_entry *olsr_add_tc_edge_entry(struct tc_entry *, union olsr_ip_addr *, olsr_u16_t); 
     1917 struct tc_edge_entry *olsr_add_tc_edge_entry(struct tc_entry *, union olsr_ip_addr *, uint16_t); 
    19321918 void olsr_delete_tc_entry(struct tc_entry *); 
    1933 diff -Nur olsrd-0.5.6-r3.orig/src/two_hop_neighbor_table.c olsrd-0.5.6-r3/src/two_hop_neighbor_table.c 
    1934 --- olsrd-0.5.6-r3.orig/src/two_hop_neighbor_table.c    2008-12-02 11:50:01.000000000 +0100 
    1935 +++ olsrd-0.5.6-r3/src/two_hop_neighbor_table.c 2008-12-03 10:01:07.000000000 +0100 
     1919diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/two_hop_neighbor_table.c olsrd-0-5-6-fc691af9a18d/src/two_hop_neighbor_table.c 
     1920--- olsrd-0-5-6-fc691af9a18d.orig/src/two_hop_neighbor_table.c  2009-03-14 22:39:09.000000000 +0000 
     1921+++ olsrd-0-5-6-fc691af9a18d/src/two_hop_neighbor_table.c   2009-03-15 16:32:39.000000000 +0000 
    19361922@@ -203,6 +203,8 @@ 
    19371923   return NULL; 
     
    19511937 /* 
    19521938  * Local Variables: 
    1953 diff -Nur olsrd-0.5.6-r3.orig/src/unix/ifnet.c olsrd-0.5.6-r3/src/unix/ifnet.c 
    1954 --- olsrd-0.5.6-r3.orig/src/unix/ifnet.c    2008-12-02 11:50:01.000000000 +0100 
    1955 +++ olsrd-0.5.6-r3/src/unix/ifnet.c 2008-12-03 10:01:07.000000000 +0100 
     1939diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/unix/ifnet.c olsrd-0-5-6-fc691af9a18d/src/unix/ifnet.c 
     1940--- olsrd-0-5-6-fc691af9a18d.orig/src/unix/ifnet.c  2009-03-14 22:39:09.000000000 +0000 
     1941+++ olsrd-0-5-6-fc691af9a18d/src/unix/ifnet.c   2009-03-15 16:32:39.000000000 +0000 
    19561942@@ -70,6 +70,8 @@ 
    19571943  
     
    19971983   ifp = iface->interf; 
    19981984  
    1999 @@ -279,7 +287,9 @@ 
     1985@@ -281,7 +289,9 @@ 
    20001986   } else 
    20011987     /* IP version 4 */ 
     
    20071993     if (ioctl(olsr_cnf->ioctl_s, SIOCGIFADDR, &ifr) < 0) { 
    20081994       OLSR_PRINTF(1, "\tCould not get address of interface - removing it\n"); 
    2009 @@ -301,7 +311,9 @@ 
    2010   
     1995@@ -304,7 +314,9 @@ 
     1996 #if 0 
    20111997       if (memcmp(&olsr_cnf->main_addr, &ifp->ip_addr, olsr_cnf->ipsize) == 0) { 
    20121998         OLSR_PRINTF(1, "New main address: %s\n", sockaddr4_to_string(&buf, &ifr.ifr_addr)); 
     
    20162002         memcpy(&olsr_cnf->main_addr, &((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr, olsr_cnf->ipsize); 
    20172003       } 
    2018   
    2019 @@ -363,7 +375,9 @@ 
     2004 #endif 
     2005@@ -366,7 +378,9 @@ 
    20202006  
    20212007 remove_interface: 
     
    20272013   olsr_delete_link_entry_by_ip(&ifp->ip_addr); 
    20282014  
    2029 @@ -393,10 +407,14 @@ 
     2015@@ -398,10 +412,14 @@ 
    20302016       memset(&olsr_cnf->main_addr, 0, olsr_cnf->ipsize); 
    20312017       OLSR_PRINTF(1, "No more interfaces...\n"); 
     
    20412027     } 
    20422028   } 
    2043   
    2044 @@ -420,7 +438,9 @@ 
     2029 #endif 
     2030@@ -425,7 +443,9 @@ 
    20452031  
    20462032   if ((ifnet == NULL) && (!olsr_cnf->allow_no_interfaces)) { 
     
    20522038     kill(getpid(), SIGINT); 
    20532039   } 
    2054 @@ -429,6 +449,8 @@ 
     2040@@ -434,6 +454,8 @@ 
    20552041  
    20562042 } 
     
    20612047  * Initializes the special interface used in 
    20622048  * host-client emulation 
    2063 @@ -578,6 +600,7 @@ 
     2049@@ -583,6 +605,7 @@ 
    20642050  
    20652051   return 1; 
     
    20692055 static char basenamestr[32]; 
    20702056 static const char *if_basename(const char *name); 
    2071 @@ -613,8 +636,10 @@ 
     2057@@ -618,8 +641,10 @@ 
    20722058   int tos_bits = IPTOS_TOS(olsr_cnf->tos); 
    20732059 #endif 
     
    20802066   memset(&ifr, 0, sizeof(struct ifreq)); 
    20812067   memset(&ifs, 0, sizeof(struct interface)); 
    2082 @@ -721,11 +746,13 @@ 
     2068@@ -726,11 +751,13 @@ 
    20832069       ifs.int_broadaddr = *(struct sockaddr_in *)&ifr.ifr_broadaddr; 
    20842070     } 
     
    20942080   } 
    20952081  
    2096 @@ -755,7 +782,9 @@ 
     2082@@ -760,7 +787,9 @@ 
    20972083  
    20982084   OLSR_PRINTF(1, "\tMTU - IPhdr: %d\n", ifs.int_mtu); 
     
    21042090  
    21052091   if (olsr_cnf->ip_version == AF_INET) { 
    2106 @@ -860,10 +889,14 @@ 
     2092@@ -865,10 +894,14 @@ 
    21072093    */ 
    21082094   memset(&null_addr, 0, olsr_cnf->ipsize); 
     
    21192105  
    21202106   /* 
    2121 diff -Nur olsrd-0.5.6-r3.orig/src/unix/misc.c olsrd-0.5.6-r3/src/unix/misc.c 
    2122 --- olsrd-0.5.6-r3.orig/src/unix/misc.c 2008-12-02 11:50:01.000000000 +0100 
    2123 +++ olsrd-0.5.6-r3/src/unix/misc.c  2008-12-03 10:01:07.000000000 +0100 
     2107diff -ur olsrd-0-5-6-fc691af9a18d.orig/src/unix/misc.c olsrd-0-5-6-fc691af9a18d/src/unix/misc.c 
     2108--- olsrd-0-5-6-fc691af9a18d.orig/src/unix/misc.c   2009-03-14 22:39:09.000000000 +0000 
     2109+++ olsrd-0-5-6-fc691af9a18d/src/unix/misc.c    2009-03-15 16:32:39.000000000 +0000 
    21242110@@ -44,6 +44,7 @@ 
    21252111 #include "misc.h"