Changeset 4331
- Timestamp:
- 03/15/09 18:16:24 (4 years ago)
- Location:
- luci/trunk/contrib/package/olsrd-luci
- Files:
-
- 1 removed
- 4 modified
-
files/etc/config/olsrd (modified) (1 diff)
-
files/etc/init.d/olsrd (modified) (1 diff)
-
Makefile (modified) (1 diff)
-
patches/100-olsrd-hg-r3.patch (deleted)
-
patches/140-olsrd-optimize-size.patch (modified) (90 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/contrib/package/olsrd-luci/files/etc/config/olsrd
r4203 r4331 7 7 option 'ignore' '1' 8 8 option 'interface' 'ff' 9 option 'Ip4Broadcast' '255.255.255.255'10 9 11 10 config 'LoadPlugin' -
luci/trunk/contrib/package/olsrd-luci/files/etc/init.d/olsrd
r3959 r4331 11 11 OLSRD_IPCCONNECT_SCHEMA='ignore:internal Host:list Net:list2' 12 12 OLSRD_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'13 OLSRD_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' 14 14 15 15 T=' ' -
luci/trunk/contrib/package/olsrd-luci/Makefile
r4201 r4331 13 13 PKG_NAME:=$(PKG_BASENAME)-luci 14 14 PKG_BASEVER:=0.5.6-r3 15 PKG_VERSION:=$(PKG_BASEVER)+ freifunk15 PKG_VERSION:=$(PKG_BASEVER)+hg1765 16 16 PKG_RELEASE:=1 17 17 18 #PKG_HGREV:=a7316f987848 19 #PKG_SOURCE:=$(PKG_HGREV).tar.gz20 #PKG_SOURCE_URL:=http://gredler.at/hg/olsrd/archive21 #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.bz226 PKG_SOURCE_URL:=http://www.olsr.org/releases/0.527 PKG_MD5SUM:=0935688fa0fb5b0e073fe53ec654c5b228 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)18 PKG_HGREV:=fc691af9a18d 19 PKG_SOURCE:=$(PKG_HGREV).tar.gz 20 PKG_SOURCE_URL:=http://gredler.at/hg/olsrd-0.5.6/archive 21 PKG_MD5SUM:=17fe345abf208ea1411d0a2041cf3c4e 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) 30 30 31 31 include $(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 1 diff -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: 15 diff -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 4 18 @@ -544,7 +544,9 @@ 5 19 OLSR_PRINTF(9, "%s: ----> Not forwarding to %s: no link found\n", PLUGIN_NAME_SHORT, … … 12 26 OLSR_PRINTF(9, "%s: ----> Not forwarding to %s: \"%s\" gives a better link to this neighbor, costing %5.2f\n", 13 27 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/Makefile15 --- olsrd-0 .5.6-r3.orig/lib/httpinfo/Makefile 2008-12-02 11:50:01.000000000 +010016 +++ olsrd-0 .5.6-r3/lib/httpinfo/Makefile 2008-12-03 10:01:07.000000000 +010028 diff -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 17 31 @@ -47,7 +47,11 @@ 18 32 CPPFLAGS += -DADMIN_INTERFACE … … 27 41 default_target: $(PLUGIN_FULLNAME) 28 42 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.c30 --- olsrd-0 .5.6-r3.orig/lib/httpinfo/src/olsrd_httpinfo.c 2008-12-02 11:50:01.000000000 +010031 +++ olsrd-0 .5.6-r3/lib/httpinfo/src/olsrd_httpinfo.c 2008-12-03 10:01:07.000000000 +010043 diff -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 32 46 @@ -67,7 +67,9 @@ 33 47 … … 42 56 @@ -181,7 +183,9 @@ 43 57 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); 48 62 +#endif /* SVEN_OLA_UNBLOAT */ 49 63 50 64 static int check_allowed_ip(const struct allowed_net *const allowed_nets, const union olsr_ip_addr *const addr); 51 65 52 @@ -21 7,10 +221,13 @@53 {"Admin", "admin", build_admin_body, OLSR_TRUE},66 @@ -216,10 +220,13 @@ 67 {"Admin", "admin", build_admin_body, true}, 54 68 #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} 60 74 }; 61 75 … … 64 78 {"favicon.ico", favicon_ico, sizeof(favicon_ico)} 65 79 , 66 @@ -2 30,6 +237,7 @@80 @@ -229,6 +236,7 @@ 67 81 , 68 82 {NULL, NULL, 0} … … 72 86 static const struct static_txt_file_entry static_txt_files[] = { 73 87 {"httpinfo.css", httpinfo_css}, 74 @@ -40 8,6 +416,7 @@88 @@ -407,6 +415,7 @@ 75 89 } else if (!strcmp(req_type, "GET")) { 76 90 int i = 0; … … 80 94 if (FILENREQ_MATCH(filename, static_bin_files[i].filename)) { 81 95 break; 82 @@ -42 3,6 +432,7 @@96 @@ -422,6 +431,7 @@ 83 97 } 84 98 … … 88 102 if (FILENREQ_MATCH(filename, static_txt_files[i].filename)) { 89 103 break; 90 @@ -46 2,16 +472,22 @@104 @@ -461,16 +471,22 @@ 91 105 snprintf(&body[size], sizeof(body) - size, 92 106 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n" "<head>\n" … … 101 115 "<body bgcolor=\"#ffffff\" text=\"#000000\">\n" 102 116 +#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" 104 118 "<tbody><tr bgcolor=\"#ffffff\">\n" "<td align=\"left\" height=\"69\" valign=\"middle\" width=\"80%%\">\n" 105 119 "<font color=\"black\" face=\"timesroman\" size=\"6\"> <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" 107 121 "<a href=\"http://www.olsr.org/\"><img border=\"0\" src=\"/logo.gif\" alt=\"olsrd logo\"></a></td>\n" "</tr>\n" 108 122 - "</tbody>\n" "</table>\n", FRAMEWIDTH); … … 113 127 size += build_tabs(&body[size], sizeof(body) - size, i); 114 128 size += build_frame(&body[size], sizeof(body) - size, "Current Routes", "routes", FRAMEWIDTH, tab_entries[i].build_body_cb); 115 @@ -85 5,7 +871,7 @@129 @@ -854,7 +870,7 @@ 116 130 size += snprintf(&buf[size], bufsize - size, "<tr><td colspan=\"3\">Status: DOWN</td></tr>\n"); 117 131 continue; … … 122 136 struct ipaddr_str addrbuf, maskbuf, bcastbuf; 123 137 size += 124 @@ -86 8,6 +884,7 @@138 @@ -867,6 +883,7 @@ 125 139 snprintf(&buf[size], bufsize - size, "<tr>\n" "<td>IP: %s</td>\n" "<td>MCAST: %s</td>\n" "<td></td>\n" "</tr>\n", 126 140 ip6_to_string(&addrbuf, &rifs->int6_addr.sin6_addr), ip6_to_string(&maskbuf, &rifs->int6_multaddr.sin6_addr)); … … 130 144 snprintf(&buf[size], bufsize - size, "<tr>\n" "<td>MTU: %d</td>\n" "<td>WLAN: %s</td>\n" "<td>STATUS: UP</td>\n" "</tr>\n", 131 145 rifs->int_mtu, rifs->is_wireless ? "Yes" : "No"); 132 @@ -111 6,6 +1133,7 @@146 @@ -1115,6 +1132,7 @@ 133 147 build_host); 134 148 } … … 136 150 +#ifndef SVEN_OLA_UNBLOAT 137 151 static int 138 build_cfgfile_body(char *buf, olsr_u32_t bufsize)139 { 140 @@ -11 50,6 +1168,7 @@152 build_cfgfile_body(char *buf, uint32_t bufsize) 153 { 154 @@ -1149,6 +1167,7 @@ 141 155 #endif 142 156 return size; … … 146 160 static int 147 161 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.c149 --- olsrd-0 .5.6-r3.orig/lib/nameservice/src/nameservice.c 2008-12-03 10:01:07.000000000 +0100150 +++ olsrd-0 .5.6-r3/lib/nameservice/src/nameservice.c 2008-12-03 10:10:52.000000000 +0100162 diff -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 151 165 @@ -65,6 +65,11 @@ 152 166 #include "mapwrite.h" … … 180 194 @@ -102,9 +111,11 @@ 181 195 static struct name_entry *my_macs = NULL; 182 static olsr_bool mac_table_changed = OLSR_TRUE;196 static bool mac_table_changed = true; 183 197 184 198 +#ifndef SVEN_OLA_UNBLOAT 185 199 static struct list_node forwarder_list[HASHSIZE]; 186 200 static struct name_entry *my_forwarders = NULL; 187 static olsr_bool forwarder_table_changed = OLSR_TRUE;201 static bool forwarder_table_changed = true; 188 202 +#endif /* SVEN_OLA_UNBLOAT */ 189 203 190 204 struct list_node latlon_list[HASHSIZE]; 191 static olsr_bool latlon_table_changed = OLSR_TRUE;205 static bool latlon_table_changed = true; 192 206 @@ -138,7 +149,9 @@ 193 207 GetWindowsDirectory(my_hosts_file, MAX_FILE - 12); … … 324 338 +#endif /* SVEN_OLA_UNBLOAT */ 325 339 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 */ 328 342 @@ -693,11 +730,13 @@ 329 343 pos = create_packet((struct name *)pos, my_name); … … 366 380 @@ -1120,6 +1163,7 @@ 367 381 #endif 368 name_table_changed = OLSR_FALSE;382 name_table_changed = false; 369 383 370 384 +#ifndef SVEN_OLA_UNBLOAT … … 393 407 } 394 408 +#endif /* SVEN_OLA_UNBLOAT */ 395 mac_table_changed = OLSR_FALSE;409 mac_table_changed = false; 396 410 } 397 411 else { … … 405 419 } 406 420 +#endif /* SVEN_OLA_UNBLOAT */ 407 service_table_changed = OLSR_FALSE;421 service_table_changed = false; 408 422 } 409 423 } … … 432 446 @@ -1341,6 +1393,7 @@ 433 447 fclose(resolv); 434 forwarder_table_changed = OLSR_FALSE;448 forwarder_table_changed = false; 435 449 } 436 450 +#endif /* SVEN_OLA_UNBLOAT */ … … 440 454 @@ -1359,9 +1412,11 @@ 441 455 case NAME_HOST: 442 name_table_changed = OLSR_TRUE;456 name_table_changed = true; 443 457 break; 444 458 +#ifndef SVEN_OLA_UNBLOAT 445 459 case NAME_FORWARDER: 446 forwarder_table_changed = OLSR_TRUE;460 forwarder_table_changed = true; 447 461 break; 448 462 +#endif /* SVEN_OLA_UNBLOAT */ 449 463 case NAME_SERVICE: 450 service_table_changed = OLSR_TRUE;464 service_table_changed = true; 451 465 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 466 diff -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 484 469 @@ -41,6 +41,7 @@ 485 470 … … 498 483 /* 499 484 * Local Variables: 500 diff - Nur olsrd-0.5.6-r3.orig/src/cfgparser/local.mk olsrd-0.5.6-r3/src/cfgparser/local.mk501 --- olsrd-0 .5.6-r3.orig/src/cfgparser/local.mk 2008-12-02 11:50:01.000000000 +0100502 +++ olsrd-0 .5.6-r3/src/cfgparser/local.mk 2008-12-03 10:01:07.000000000 +0100485 diff -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 503 488 @@ -41,8 +41,13 @@ 504 489 C=$(if $(CFGDIR),$(CFGDIR)/) … … 515 500 516 501 $(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.c518 --- olsrd-0 .5.6-r3.orig/src/cfgparser/olsrd_conf.c 2008-12-02 11:50:01.000000000 +0100519 +++ olsrd-0 .5.6-r3/src/cfgparser/olsrd_conf.c 2008-12-03 10:01:07.000000000 +0100502 diff -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 520 505 @@ -81,11 +81,13 @@ 521 506 } … … 534 519 @@ -152,7 +154,9 @@ 535 520 /* set various stuff */ 536 in->configured = OLSR_FALSE;521 in->configured = false; 537 522 in->interf = NULL; 538 523 +#ifndef SVEN_OLA_UNBLOAT 539 in->host_emul = OLSR_FALSE;524 in->host_emul = false; 540 525 +#endif /* SVEN_OLA_UNBLOAT */ 541 526 } … … 545 530 546 531 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; 550 535 +#endif /* SVEN_OLA_UNBLOAT */ 551 536 cnf->ip_version = AF_INET; … … 578 563 #if defined WIN32 579 564 struct ioinfo { 580 diff - Nur olsrd-0.5.6-r3.orig/src/cfgparser/oparse.y olsrd-0.5.6-r3/src/cfgparser/oparse.y581 --- olsrd-0 .5.6-r3.orig/src/cfgparser/oparse.y 2008-12-02 11:50:01.000000000 +0100582 +++ olsrd-0 .5.6-r3/src/cfgparser/oparse.y 2008-12-03 10:01:07.000000000 +0100565 diff -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 583 568 @@ -176,7 +176,6 @@ 584 569 %token TOK_RTTABLE … … 702 687 { 703 688 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.lex705 --- olsrd-0 .5.6-r3.orig/src/cfgparser/oscan.lex 2008-12-02 11:50:01.000000000 +0100706 +++ olsrd-0 .5.6-r3/src/cfgparser/oscan.lex 2008-12-03 10:01:07.000000000 +0100689 diff -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 707 692 @@ -253,11 +253,6 @@ 708 693 return TOK_NETLABEL; … … 729 714 yylval = NULL; 730 715 return TOK_FIBMETRIC; 731 diff - Nur olsrd-0.5.6-r3.orig/src/defs.h olsrd-0.5.6-r3/src/defs.h732 --- olsrd-0 .5.6-r3.orig/src/defs.h 2008-12-02 11:50:01.000000000 +0100733 +++ olsrd-0 .5.6-r3/src/defs.h 2008-12-03 10:01:07.000000000 +0100716 diff -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 734 719 @@ -190,6 +190,8 @@ 735 720 */ 736 unsigned longolsr_times(void);721 clock_t olsr_times(void); 737 722 738 723 +#ifndef SVEN_OLA_UNBLOAT … … 749 734 /* 750 735 * Local Variables: 751 diff - Nur olsrd-0.5.6-r3.orig/src/duplicate_set.c olsrd-0.5.6-r3/src/duplicate_set.c752 --- olsrd-0 .5.6-r3.orig/src/duplicate_set.c 2008-12-02 11:50:01.000000000 +0100753 +++ olsrd-0 .5.6-r3/src/duplicate_set.c 2008-12-03 10:01:07.000000000 +0100736 diff -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 754 739 @@ -174,6 +174,7 @@ 755 return OLSR_FALSE;/* no duplicate */740 return false; /* no duplicate */ 756 741 } 757 742 … … 768 753 /* 769 754 * Local Variables: 770 diff - Nur olsrd-0.5.6-r3.orig/src/hna_set.c olsrd-0.5.6-r3/src/hna_set.c771 --- olsrd-0 .5.6-r3.orig/src/hna_set.c 2008-12-02 11:50:01.000000000 +0100772 +++ olsrd-0 .5.6-r3/src/hna_set.c 2008-12-03 10:01:07.000000000 +0100755 diff -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 773 758 @@ -279,6 +279,7 @@ 774 759 * … … 787 772 /** 788 773 *Process incoming HNA message. 789 diff - Nur olsrd-0.5.6-r3.orig/src/interfaces.c olsrd-0.5.6-r3/src/interfaces.c790 --- olsrd-0 .5.6-r3.orig/src/interfaces.c 2008-12-02 11:50:01.000000000 +0100791 +++ olsrd-0 .5.6-r3/src/interfaces.c 2008-12-03 10:01:07.000000000 +0100774 diff -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 792 777 @@ -93,12 +93,16 @@ 793 778 OLSR_PRINTF(1, "\n ---- Interface configuration ---- \n\n"); … … 824 809 825 810 +#ifndef SVEN_OLA_UNBLOAT 826 interf_n->host_emul = hemu ? OLSR_TRUE : OLSR_FALSE;811 interf_n->host_emul = hemu ? true : false; 827 812 +#endif /* SVEN_OLA_UNBLOAT */ 828 813 829 814 strscpy(interf_n->name, name, name_size); 830 815 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.h832 --- olsrd-0 .5.6-r3.orig/src/interfaces.h 2008-12-02 11:50:01.000000000 +0100833 +++ olsrd-0 .5.6-r3/src/interfaces.h 2008-12-03 10:01:07.000000000 +0100816 diff -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 834 819 @@ -196,7 +196,12 @@ 835 820 … … 846 831 int add_ifchgf(int (*f) (struct interface *, int)); 847 832 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 833 diff -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 883 836 @@ -46,6 +46,7 @@ 884 837 * … … 897 850 /* 898 851 * Local Variables: 899 diff - Nur olsrd-0.5.6-r3.orig/src/ipc_frontend.h olsrd-0.5.6-r3/src/ipc_frontend.h900 --- olsrd-0 .5.6-r3.orig/src/ipc_frontend.h 2008-12-02 11:50:01.000000000 +0100901 +++ olsrd-0 .5.6-r3/src/ipc_frontend.h 2008-12-03 10:01:07.000000000 +0100852 diff -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 902 855 @@ -48,6 +48,7 @@ 903 856 … … 916 869 /* 917 870 * 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 @@ 871 diff -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. 890 diff -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) 903 diff -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 @@ 922 907 return ret; 923 908 } … … 927 912 olsr_print_link_set(void) 928 913 { 929 @@ -7 67,6 +768,7 @@914 @@ -782,6 +783,7 @@ 930 915 } OLSR_FOR_ALL_LINK_ENTRIES_END(walker); 931 916 #endif … … 935 920 /* 936 921 * 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.c938 --- olsrd-0 .5.6-r3.orig/src/linux/apm.c 2008-12-02 11:50:01.000000000 +0100939 +++ olsrd-0 .5.6-r3/src/linux/apm.c 2008-12-03 10:01:07.000000000 +0100922 diff -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 940 925 @@ -44,6 +44,7 @@ 941 926 * Acpi-Power Enlightenment epplet … … 954 939 /* 955 940 * 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, 941 diff -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, 966 952 if_ifwithindex_name(nexthop->iif_index)); 967 }968 +#endif /* SVEN_OLA_UNBLOAT */ 969 }970 return r et;971 } 972 diff - Nur olsrd-0.5.6-r3.orig/src/linux/net.c olsrd-0.5.6-r3/src/linux/net.c973 --- olsrd-0 .5.6-r3.orig/src/linux/net.c 2008-12-02 11:50:01.000000000 +0100974 +++ olsrd-0 .5.6-r3/src/linux/net.c 2008-12-03 10:01:07.000000000 +0100953 } 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 } 958 diff -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 975 961 @@ -69,8 +69,10 @@ 976 962 #define SIOCGIWRATE 0x8B21 /* get default bit rate (bps) */ … … 1169 1155 *Creates a nonblocking broadcast socket. 1170 1156 *@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.c1172 --- olsrd-0 .5.6-r3.orig/src/lq_plugin.c 2008-12-02 11:50:01.000000000 +01001173 +++ olsrd-0 .5.6-r3/src/lq_plugin.c 2008-12-03 10:01:07.000000000 +01001157 diff -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 1174 1160 @@ -67,12 +67,18 @@ 1175 1161 init_lq_handler_tree(void) … … 1239 1225 struct link_entry *h; 1240 1226 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.c1242 --- olsrd-0 .5.6-r3.orig/src/lq_plugin_default_float.c 2008-12-02 11:50:01.000000000 +01001243 +++ olsrd-0 .5.6-r3/src/lq_plugin_default_float.c 2008-12-03 10:01:07.000000000 +01001227 diff -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 1244 1230 @@ -39,6 +39,7 @@ 1245 1231 * … … 1258 1244 /* 1259 1245 * 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.h1261 --- olsrd-0 .5.6-r3.orig/src/lq_plugin_default_float.h 2008-12-02 11:50:01.000000000 +01001262 +++ olsrd-0 .5.6-r3/src/lq_plugin_default_float.h 2008-12-03 10:01:07.000000000 +01001246 diff -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 1263 1249 @@ -39,6 +39,7 @@ 1264 1250 * … … 1277 1263 /* 1278 1264 * 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.c1280 --- olsrd-0 .5.6-r3.orig/src/lq_plugin_default_fpm.c 2008-12-02 11:50:01.000000000 +01001281 +++ olsrd-0 .5.6-r3/src/lq_plugin_default_fpm.c 2008-12-03 10:01:07.000000000 +01001265 diff -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 1282 1268 @@ -39,6 +39,7 @@ 1283 1269 * … … 1296 1282 /* 1297 1283 * 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.h1299 --- olsrd-0 .5.6-r3.orig/src/lq_plugin_default_fpm.h 2008-12-02 11:50:01.000000000 +01001300 +++ olsrd-0 .5.6-r3/src/lq_plugin_default_fpm.h 2008-12-03 10:01:07.000000000 +01001284 diff -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 1301 1287 @@ -39,6 +39,7 @@ 1302 1288 * … … 1315 1301 /* 1316 1302 * Local Variables: 1317 diff - Nur olsrd-0.5.6-r3.orig/src/main.c olsrd-0.5.6-r3/src/main.c1318 --- olsrd-0 .5.6-r3.orig/src/main.c 2008-12-02 11:50:01.000000000 +01001319 +++ olsrd-0 .5.6-r3/src/main.c 2008-12-03 10:01:07.000000000 +01001320 @@ -2 43,13 +243,17 @@1303 diff -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 @@ 1321 1307 /* 1322 1308 * Print configuration … … 1336 1322 /* 1337 1323 * socket for ioctl calls 1338 @@ - 285,7 +289,9 @@1324 @@ -300,7 +304,9 @@ 1339 1325 /* 1340 1326 *enable ip forwarding on host … … 1346 1332 /* Initialize parser */ 1347 1333 olsr_init_parser(); 1348 @@ -3 03,6 +309,7 @@1334 @@ -318,6 +324,7 @@ 1349 1335 *Set up willingness/APM 1350 1336 */ … … 1354 1340 OLSR_PRINTF(1, "Could not read APM info - setting default willingness(%d)\n", WILL_DEFAULT); 1355 1341 1356 @@ -3 11,10 +318,13 @@1342 @@ -326,10 +333,13 @@ 1357 1343 olsr_cnf->willingness_auto = 0; 1358 1344 olsr_cnf->willingness = WILL_DEFAULT; … … 1368 1354 1369 1355 /* Initialize net */ 1370 @@ -3 42,9 +352,11 @@1356 @@ -364,9 +374,11 @@ 1371 1357 1372 1358 /* Initialize the IPC socket */ … … 1380 1366 olsr_init_tables(); 1381 1367 1382 @@ -4 50,9 +462,11 @@1368 @@ -489,9 +501,11 @@ 1383 1369 OLSR_PRINTF(1, "Closing sockets...\n"); 1384 1370 … … 1392 1378 /* OLSR sockets */ 1393 1379 for (ifn = ifnet; ifn; ifn = ifn->int_next) 1394 @@ - 462,7 +476,9 @@1380 @@ -501,7 +515,9 @@ 1395 1381 olsr_close_plugins(); 1396 1382 … … 1402 1388 /* ioctl socket */ 1403 1389 close(olsr_cnf->ioctl_s); 1404 @@ - 498,7 +514,11 @@1390 @@ -542,7 +558,11 @@ 1405 1391 "usage: olsrd [-f <configfile>] [ -i interface1 interface2 ... ]\n" 1406 1392 " [-d <debug_level>] [-ipv6] [-multi <IPv6 multicast address>]\n" … … 1414 1400 " [-midint <mid interval (secs)>] [-hnaint <hna interval (secs)>]\n" 1415 1401 " [-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 @@ 1417 1403 olsr_exit(__func__, EXIT_FAILURE); 1418 1404 } … … 1421 1407 + queue_if(*argv); 1422 1408 +#else /* SVEN_OLA_UNBLOAT */ 1423 queue_if(*argv, OLSR_FALSE);1409 queue_if(*argv, false); 1424 1410 +#endif /* SVEN_OLA_UNBLOAT */ 1425 1411 … … 1430 1416 + queue_if(*argv); 1431 1417 +#else /* SVEN_OLA_UNBLOAT */ 1432 queue_if(*argv, OLSR_FALSE);1418 queue_if(*argv, false); 1433 1419 +#endif /* SVEN_OLA_UNBLOAT */ 1434 1420 } 1435 1421 1436 1422 continue; 1437 @@ -7 29,7 +757,7 @@1423 @@ -773,7 +801,7 @@ 1438 1424 sscanf(*argv, "%f", &cnf->pollrate); 1439 1425 continue; … … 1444 1430 * Should we display the contents of packages beeing sent? 1445 1431 */ 1446 @@ -7 53,6 +781,7 @@1432 @@ -797,6 +825,7 @@ 1447 1433 cnf->ipc_connections = 1; 1448 1434 continue; … … 1452 1438 /* 1453 1439 * IPv6 multicast addr 1454 @@ - 770,7 +799,7 @@1440 @@ -814,7 +843,7 @@ 1455 1441 1456 1442 continue; … … 1461 1447 * Host emulation 1462 1448 */ 1463 @@ - 798,6 +827,7 @@1449 @@ -842,6 +871,7 @@ 1464 1450 1465 1451 continue; … … 1469 1455 /* 1470 1456 * 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.c1472 --- olsrd-0 .5.6-r3.orig/src/neighbor_table.c 2008-12-02 11:50:01.000000000 +01001473 +++ olsrd-0 .5.6-r3/src/neighbor_table.c 2008-12-03 10:01:07.000000000 +01001457 diff -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 1474 1460 @@ -362,6 +362,7 @@ 1475 1461 * … … 1488 1474 /* 1489 1475 * Local Variables: 1490 diff - Nur olsrd-0.5.6-r3.orig/src/net_olsr.c olsrd-0.5.6-r3/src/net_olsr.c1491 --- olsrd-0 .5.6-r3.orig/src/net_olsr.c 2008-12-03 10:01:07.000000000 +01001492 +++ olsrd-0 .5.6-r3/src/net_olsr.c 2008-12-03 10:01:07.000000000 +01001476 diff -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 1493 1479 @@ -44,7 +44,9 @@ 1494 1480 #include "log.h" … … 1529 1515 } 1530 1516 } 1531 diff - Nur olsrd-0.5.6-r3.orig/src/olsr.c olsrd-0.5.6-r3/src/olsr.c1532 --- olsrd-0 .5.6-r3.orig/src/olsr.c 2008-12-02 11:50:01.000000000 +01001533 +++ olsrd-0 .5.6-r3/src/olsr.c 2008-12-03 10:01:07.000000000 +01001517 diff -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 1534 1520 @@ -149,7 +149,9 @@ 1535 1521 return; … … 1560 1546 tmp_pc_list->function(changes_neighborhood, changes_topology, changes_hna); 1561 1547 @@ -415,12 +418,15 @@ 1562 olsr_u8_t1548 uint8_t 1563 1549 olsr_calculate_willingness(void) 1564 1550 { … … 1586 1572 +#ifndef SVEN_OLA_UNBLOAT 1587 1573 const char * 1588 olsr_msgtype_to_string( olsr_u8_t msgtype)1574 olsr_msgtype_to_string(uint8_t msgtype) 1589 1575 { 1590 1576 @@ -508,6 +518,7 @@ … … 1612 1598 /** 1613 1599 *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 1600 diff -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 1625 diff -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 1617 1628 @@ -140,8 +140,10 @@ 1618 1629 char *name; 1619 1630 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; 1623 1634 union olsr_ip_addr hemu_ip; 1624 +#endif /* SVEN_OLA_UNBLOAT */1635 +#endif /* SVEN_OLA_UNBLOAT */ 1625 1636 struct interface *interf; 1626 1637 struct if_config_options *cnf; … … 1629 1640 struct olsrd_config { 1630 1641 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 */ 1635 1646 int ip_version; 1636 olsr_bool allow_no_interfaces;1637 olsr_u16_t tos;1647 bool allow_no_interfaces; 1648 uint16_t tos; 1638 1649 @@ -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; 1642 1653 +#ifndef SVEN_OLA_UNBLOAT 1643 1654 int ipc_connections; 1644 +#endif /* SVEN_OLA_UNBLOAT */1645 olsr_bool use_hysteresis;1655 +#endif /* SVEN_OLA_UNBLOAT */ 1656 bool use_hysteresis; 1646 1657 olsr_fib_metric_options fib_metric; 1647 1658 struct hyst_param hysteresis_param; … … 1650 1661 +#ifndef SVEN_OLA_UNBLOAT 1651 1662 struct ip_prefix_list *ipc_nets; 1652 +#endif /* SVEN_OLA_UNBLOAT */1663 +#endif /* SVEN_OLA_UNBLOAT */ 1653 1664 struct olsr_if *interfaces; 1654 1665 float pollrate; … … 1664 1675 int olsrd_write_cnf(struct olsrd_config *, const char *); 1665 1676 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 1677 diff -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 1694 1680 @@ -51,7 +51,9 @@ 1695 1681 #include "rebuild_packet.h" … … 1713 1699 if (olsr_cnf->ip_version == AF_INET) 1714 1700 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.c1716 --- olsrd-0 .5.6-r3.orig/src/print_packet.c 2008-12-02 11:50:01.000000000 +01001717 +++ olsrd-0 .5.6-r3/src/print_packet.c 2008-12-03 10:01:07.000000000 +01001701 diff -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 1718 1704 @@ -39,6 +39,7 @@ 1719 1705 * … … 1732 1718 /* 1733 1719 * Local Variables: 1734 diff - Nur olsrd-0.5.6-r3.orig/src/process_routes.c olsrd-0.5.6-r3/src/process_routes.c1735 --- olsrd-0 .5.6-r3.orig/src/process_routes.c 2008-12-02 11:50:01.000000000 +01001736 +++ olsrd-0 .5.6-r3/src/process_routes.c 2008-12-03 10:01:07.000000000 +01001720 diff -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 1737 1723 @@ -159,6 +159,7 @@ 1738 1724 static void … … 1741 1727 +#ifndef SVEN_OLA_UNBLOAT 1742 1728 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); 1744 1730 1745 1731 @@ -170,6 +171,12 @@ … … 1762 1748 +#ifndef SVEN_OLA_UNBLOAT 1763 1749 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); 1765 1751 1766 1752 @@ -199,6 +207,14 @@ … … 1788 1774 #endif 1789 1775 } 1790 diff - Nur olsrd-0.5.6-r3.orig/src/rebuild_packet.c olsrd-0.5.6-r3/src/rebuild_packet.c1791 --- olsrd-0 .5.6-r3.orig/src/rebuild_packet.c 2008-12-02 11:50:01.000000000 +01001792 +++ olsrd-0 .5.6-r3/src/rebuild_packet.c 2008-12-03 10:01:07.000000000 +01001776 diff -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 1793 1779 @@ -60,7 +60,11 @@ 1794 1780 mid_chgestruct(struct mid_message *mmsg, const union olsr_message *m) … … 1835 1821 1836 1822 } 1837 diff - Nur olsrd-0.5.6-r3.orig/src/routing_table.c olsrd-0.5.6-r3/src/routing_table.c1838 --- olsrd-0 .5.6-r3.orig/src/routing_table.c 2008-12-02 11:50:01.000000000 +01001839 +++ olsrd-0 .5.6-r3/src/routing_table.c 2008-12-03 10:01:07.000000000 +01001823 diff -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 1840 1826 @@ -623,6 +623,7 @@ 1841 1827 /** … … 1868 1854 /* 1869 1855 * Local Variables: 1870 diff - Nur olsrd-0.5.6-r3.orig/src/routing_table.h olsrd-0.5.6-r3/src/routing_table.h1871 --- olsrd-0 .5.6-r3.orig/src/routing_table.h 2008-12-02 11:50:01.000000000 +01001872 +++ olsrd-0 .5.6-r3/src/routing_table.h 2008-12-03 10:01:07.000000000 +01001856 diff -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 1873 1859 @@ -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 *); 1876 1862 1877 1863 +#ifndef SVEN_OLA_UNBLOAT … … 1883 1869 const struct rt_nexthop *olsr_get_nh(const struct rt_entry *); 1884 1870 1885 diff - Nur olsrd-0.5.6-r3.orig/src/tc_set.c olsrd-0.5.6-r3/src/tc_set.c1886 --- olsrd-0 .5.6-r3.orig/src/tc_set.c 2008-12-02 11:50:01.000000000 +01001887 +++ olsrd-0 .5.6-r3/src/tc_set.c 2008-12-03 10:01:07.000000000 +01001871 diff -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 1888 1874 @@ -336,6 +336,7 @@ 1889 1875 /** … … 1902 1888 /** 1903 1889 * Wrapper for the timer callback. 1904 @@ -68 5,6 +687,7 @@1890 @@ -686,6 +688,7 @@ 1905 1891 /** 1906 1892 * Print the topology table to stdout … … 1910 1896 olsr_print_tc_table(void) 1911 1897 { 1912 @@ -71 0,6 +713,7 @@1898 @@ -711,6 +714,7 @@ 1913 1899 } OLSR_FOR_ALL_TC_ENTRIES_END(tc); 1914 1900 #endif … … 1918 1904 /* 1919 1905 * 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.h1921 --- olsrd-0 .5.6-r3.orig/src/tc_set.h 2008-12-02 11:50:01.000000000 +01001922 +++ olsrd-0 .5.6-r3/src/tc_set.h 2008-12-03 10:01:07.000000000 +01001906 diff -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 1923 1909 @@ -157,7 +157,9 @@ 1924 1910 1925 1911 /* 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 *); 1927 1913 +#ifndef SVEN_OLA_UNBLOAT 1928 1914 char *olsr_tc_edge_to_string(struct tc_edge_entry *); 1929 1915 +#endif /* SVEN_OLA_UNBLOAT */ 1930 1916 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); 1932 1918 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.c1934 --- olsrd-0 .5.6-r3.orig/src/two_hop_neighbor_table.c 2008-12-02 11:50:01.000000000 +01001935 +++ olsrd-0 .5.6-r3/src/two_hop_neighbor_table.c 2008-12-03 10:01:07.000000000 +01001919 diff -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 1936 1922 @@ -203,6 +203,8 @@ 1937 1923 return NULL; … … 1951 1937 /* 1952 1938 * Local Variables: 1953 diff - Nur olsrd-0.5.6-r3.orig/src/unix/ifnet.c olsrd-0.5.6-r3/src/unix/ifnet.c1954 --- olsrd-0 .5.6-r3.orig/src/unix/ifnet.c 2008-12-02 11:50:01.000000000 +01001955 +++ olsrd-0 .5.6-r3/src/unix/ifnet.c 2008-12-03 10:01:07.000000000 +01001939 diff -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 1956 1942 @@ -70,6 +70,8 @@ 1957 1943 … … 1997 1983 ifp = iface->interf; 1998 1984 1999 @@ -2 79,7 +287,9 @@1985 @@ -281,7 +289,9 @@ 2000 1986 } else 2001 1987 /* IP version 4 */ … … 2007 1993 if (ioctl(olsr_cnf->ioctl_s, SIOCGIFADDR, &ifr) < 0) { 2008 1994 OLSR_PRINTF(1, "\tCould not get address of interface - removing it\n"); 2009 @@ -30 1,7 +311,9 @@2010 1995 @@ -304,7 +314,9 @@ 1996 #if 0 2011 1997 if (memcmp(&olsr_cnf->main_addr, &ifp->ip_addr, olsr_cnf->ipsize) == 0) { 2012 1998 OLSR_PRINTF(1, "New main address: %s\n", sockaddr4_to_string(&buf, &ifr.ifr_addr)); … … 2016 2002 memcpy(&olsr_cnf->main_addr, &((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr, olsr_cnf->ipsize); 2017 2003 } 2018 2019 @@ -36 3,7 +375,9 @@2004 #endif 2005 @@ -366,7 +378,9 @@ 2020 2006 2021 2007 remove_interface: … … 2027 2013 olsr_delete_link_entry_by_ip(&ifp->ip_addr); 2028 2014 2029 @@ -39 3,10 +407,14 @@2015 @@ -398,10 +412,14 @@ 2030 2016 memset(&olsr_cnf->main_addr, 0, olsr_cnf->ipsize); 2031 2017 OLSR_PRINTF(1, "No more interfaces...\n"); … … 2041 2027 } 2042 2028 } 2043 2044 @@ -42 0,7 +438,9 @@2029 #endif 2030 @@ -425,7 +443,9 @@ 2045 2031 2046 2032 if ((ifnet == NULL) && (!olsr_cnf->allow_no_interfaces)) { … … 2052 2038 kill(getpid(), SIGINT); 2053 2039 } 2054 @@ -4 29,6 +449,8 @@2040 @@ -434,6 +454,8 @@ 2055 2041 2056 2042 } … … 2061 2047 * Initializes the special interface used in 2062 2048 * host-client emulation 2063 @@ -5 78,6 +600,7 @@2049 @@ -583,6 +605,7 @@ 2064 2050 2065 2051 return 1; … … 2069 2055 static char basenamestr[32]; 2070 2056 static const char *if_basename(const char *name); 2071 @@ -61 3,8 +636,10 @@2057 @@ -618,8 +641,10 @@ 2072 2058 int tos_bits = IPTOS_TOS(olsr_cnf->tos); 2073 2059 #endif … … 2080 2066 memset(&ifr, 0, sizeof(struct ifreq)); 2081 2067 memset(&ifs, 0, sizeof(struct interface)); 2082 @@ -72 1,11 +746,13 @@2068 @@ -726,11 +751,13 @@ 2083 2069 ifs.int_broadaddr = *(struct sockaddr_in *)&ifr.ifr_broadaddr; 2084 2070 } … … 2094 2080 } 2095 2081 2096 @@ -7 55,7 +782,9 @@2082 @@ -760,7 +787,9 @@ 2097 2083 2098 2084 OLSR_PRINTF(1, "\tMTU - IPhdr: %d\n", ifs.int_mtu); … … 2104 2090 2105 2091 if (olsr_cnf->ip_version == AF_INET) { 2106 @@ -86 0,10 +889,14 @@2092 @@ -865,10 +894,14 @@ 2107 2093 */ 2108 2094 memset(&null_addr, 0, olsr_cnf->ipsize); … … 2119 2105 2120 2106 /* 2121 diff - Nur olsrd-0.5.6-r3.orig/src/unix/misc.c olsrd-0.5.6-r3/src/unix/misc.c2122 --- olsrd-0 .5.6-r3.orig/src/unix/misc.c 2008-12-02 11:50:01.000000000 +01002123 +++ olsrd-0 .5.6-r3/src/unix/misc.c 2008-12-03 10:01:07.000000000 +01002107 diff -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 2124 2110 @@ -44,6 +44,7 @@ 2125 2111 #include "misc.h"
