BSD was still using the OLSRPORT #define. Make it clean and introduce it everywhere.
authorL. Aaron Kaplan <aaron@lo-res.org>
Sun, 8 Mar 2009 17:37:52 +0000 (18:37 +0100)
committerL. Aaron Kaplan <aaron@lo-res.org>
Sun, 8 Mar 2009 17:37:52 +0000 (18:37 +0100)
trivial change.

src/olsr_cfg.c
src/olsr_protocol.h

index 4ac23e4..23c2b50 100644 (file)
@@ -48,6 +48,7 @@
 #include "ifnet.h"
 #include "log.h"
 #include "olsr_ip_prefix_list.h"
+#include "olsr_protocol.h"
 #include "common/string.h"
 
 #include <unistd.h>
@@ -1550,7 +1551,7 @@ olsr_get_default_cfg(void)
   cfg->lq_dlimit = DEF_LQ_DIJK_LIMIT;
   assert(cfg->willingness == 0);
 
-  cfg->olsr_port = 698;
+  cfg->olsr_port = OLSRPORT;
   assert(cfg->dlPath == NULL);
 
   assert(cfg->system_tick_divider == 0);
index 61d0d93..9cd7472 100644 (file)
@@ -51,6 +51,9 @@
 
 #include <string.h>
 
+
+#define OLSRPORT       698
+
 /* Default IPv6 multicast addresses */
 
 #define OLSR_IPV6_MCAST_SITE_LOCAL "ff05::15"