}
else
{
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct interface* bestIntf = if_ifwithaddr(&bestLinkToNeighbor->local_iface_addr);
struct lqtextbuffer lqbuffer;
#endif
if (forwardedBy != NULL)
{
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str forwardedByBuf, niaBuf;
struct lqtextbuffer lqbuffer;
#endif
if (previousLinkEtx + currEtx > tcEtx)
{
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str neighbor_iface_buf, forw_buf;
struct lqtextbuffer lqbuffer;
olsr_ip_to_string(&neighbor_iface_buf, &walker->neighbor_iface_addr);
"Flags Metric Ref Use Iface\n");
*/
while (fgets(buff, 1023, fp)) {
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
num =
union olsr_message *m;
struct midaddr *addrs;
struct interface *ifs;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
if ((olsr_cnf->ip_version != AF_INET) || (!ifp) ||
union olsr_message *m;
struct midaddr6 *addrs6;
struct interface *ifs;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
union olsr_message *m;
struct hnapair *pair;
struct ip_prefix_entry *h;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipprefix_str prefixstr;
#endif
/* No hna nets */
struct hnapair6 *pair6;
union olsr_ip_addr tmp_netmask;
struct ip_prefix_entry *h;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipprefix_str prefixstr;
#endif
olsr_expire_hna_net_entry(void *context)
{
struct hna_net *hna_net = context;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
struct ipprefix_str prefixstr;
#endif
olsr_print_hna_set(void)
{
/* The whole function doesn't do anything else. */
-#if !defined REMOVE_INFO
+#if !defined REMOVE_LOG_INFO
struct tc_entry *tc;
struct ipaddr_str buf;
struct ipprefix_str prefixstr;
struct olsrmsg_hdr msg_hdr;
struct olsr_ip_prefix prefix;
const uint8_t *curr, *curr_end;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
if (NULL != remote_main && olsr_ipcmp(remote_main, &link->neighbor->neighbor_main_addr) != 0)
{
/* Neighbor has changed it's main_addr, update */
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str oldbuf, newbuf;
#endif
OLSR_DEBUG(LOG_LINKS, "Neighbor changed main_ip, updating %s -> %s\n",
void
olsr_print_link_set(void)
{
-#if !defined REMOVE_INFO
+#if !defined REMOVE_LOG_INFO
/* The whole function makes no sense without it. */
struct link_entry *walker;
const int addrsize = olsr_cnf->ip_version == AF_INET ? 15 : 39;
create_lq_hello(struct lq_hello_message *lq_hello, struct interface *outif)
{
struct link_entry *walker;
-#if !defined REMOVE_WARN
+#if !defined REMOVE_LOG_WARN
struct ipaddr_str buf;
#endif
olsr_expire_mid_entries(void *context)
{
struct tc_entry *tc = context;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
olsr_flush_nbr2_duplicates(struct mid_entry *alias)
{
struct tc_entry *tc = alias->mid_tc;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf1, buf2;
#endif
struct neighbor_entry *nbr_new, *nbr_old = olsr_lookup_neighbor_table_alias(alias_addr);
struct mid_entry *mid_old;
int ne_ref_rp_count;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf1, buf2;
#endif
{
struct tc_entry *tc;
struct mid_entry *alias;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf1, buf2;
#endif
void
olsr_print_mid_set(void)
{
-#if !defined REMOVE_INFO
+#if !defined REMOVE_LOG_INFO
struct tc_entry *tc;
struct mid_entry *alias;
struct ipaddr_str buf;
olsr_reltime vtime;
union olsr_ip_addr originator, alias;
int alias_count;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
struct neighbor_2_list_entry *two_hop_list = NULL;
struct neighbor_entry *dup_neighbor;
struct neighbor_2_entry *two_hop_neighbor = NULL;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
for(idx=0;idx<HASHSIZE;idx++)
struct neighbor_2_list_entry *second_hop_entries;
struct neighbor_entry *dup_neighbor;
uint16_t count;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
count = *two_hop_covered_count;
uint16_t maximum;
struct neighbor_entry *a_neighbor;
struct neighbor_entry *mpr_candidate = NULL;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
maximum = 0;
{
struct neighbor_entry *a_neighbor;
uint16_t count = 0;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
OLSR_FOR_ALL_NBR_ENTRIES(a_neighbor) {
olsr_optimize_mpr_set(void)
{
int i;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
OLSR_DEBUG(LOG_MPR, "\n**MPR OPTIMIZING**\n\n");
void
olsr_print_mpr_set(void)
{
-#if !defined REMOVE_INFO
+#if !defined REMOVE_LOG_INFO
/* The whole function makes no sense without it. */
struct neighbor_entry *a_neighbor;
olsr_expire_mpr_sel_entry(void *context)
{
struct mpr_selector *mpr_sel = context;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
OLSR_DEBUG(LOG_MPRS, "MPRS: Timing out %st\n",
olsr_update_mprs_set(const union olsr_ip_addr *addr, olsr_reltime vtime)
{
int rv;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
struct mpr_selector *mprs = olsr_lookup_mprs_set(addr);
void
olsr_print_mprs_set(void)
{
-#if !defined REMOVE_INFO
+#if !defined REMOVE_LOG_INFO
struct ipaddr_str buf;
struct mpr_selector *mprs;
uint32_t hash;
struct neighbor_entry *entry;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
OLSR_DEBUG(LOG_NEIGHTABLE, "delete neighbor: %s\n", olsr_ip_to_string(&buf, neighbor_addr));
{
uint32_t hash;
struct neighbor_entry *new_neigh;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
void
olsr_print_neighbor_table(void)
{
-#if !defined REMOVE_INFO
+#if !defined REMOVE_LOG_INFO
/* The whole function doesn't do anything else. */
const int ipwidth = olsr_cnf->ip_version == AF_INET ? 15 : 39;
int idx;
&dstaddr.sin,
dstaddr_size) < 0) {
const int save_errno = errno;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
char sabuf[1024];
#endif
dstaddr.sin.sa_family = olsr_cnf->ip_version;
static void
olsr_add_invalid_address(const union olsr_ip_addr *addr)
{
-#if !defined REMOVE_INFO
+#if !defined REMOVE_LOG_INFO
struct ipaddr_str buf;
#endif
struct filter_entry *filter;
const struct filter_entry *filter = filter_tree2filter(avl_find(&filter_tree, addr));
if (filter) {
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
OLSR_DEBUG(LOG_NETWORKING, "Validation of address %s failed!\n",
void *ptr;
struct olsr_cookie_mem_brand *branding;
struct list_node *free_list_node;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
bool reuse = false;
#endif
size_t size;
}
ci->ci_free_list_usage--;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
reuse = true;
#endif
}
olsr_cookie_free(struct olsr_cookie_info *ci, void *ptr)
{
struct list_node *free_list_node;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
bool reuse = false;
#endif
struct olsr_cookie_mem_brand *branding = (struct olsr_cookie_mem_brand *)
}
ci->ci_free_list_usage++;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
reuse = true;
#endif
olsr_spf_add_cand_tree (struct avl_tree *tree,
struct tc_entry *tc)
{
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
struct lqtextbuffer lqbuffer;
#endif
struct tc_entry *tc)
{
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
struct lqtextbuffer lqbuffer;
#endif
olsr_spf_add_path_list (struct list_node *head, int *path_count,
struct tc_entry *tc)
{
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str pathbuf, nbuf;
struct lqtextbuffer lqbuffer;
#endif
struct avl_node *edge_node;
olsr_linkcost new_cost;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf, nbuf;
struct lqtextbuffer lqbuffer;
#endif
* does not contain a next-hop.
*/
if (tc != tc_myself) {
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
OLSR_DEBUG(LOG_ROUTING, "SPF: %s no next-hop\n", olsr_ip_to_string(&buf, &tc->addr));
for (message_neighbors = message->neigh;
message_neighbors != NULL;
message_neighbors = message_neighbors->next) {
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
union olsr_ip_addr *neigh_addr;
olsr_print_routing_table(struct avl_tree *tree USED_ONLY_FOR_DEBUG)
{
/* The whole function makes no sense without it. */
-#if !defined REMOVE_INFO
+#if !defined REMOVE_LOG_INFO
struct avl_node *rt_tree_node;
struct lqtextbuffer lqbuffer;
static struct tc_entry *
olsr_add_tc_entry(const union olsr_ip_addr *adr)
{
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
struct tc_entry *tc;
{
struct tc_edge_entry *tc_edge;
struct rt_path *rtp;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
OLSR_DEBUG(LOG_TC, "TC: del entry %s\n", olsr_ip_to_string(&buf, &tc->addr));
{
struct tc_entry *tc_neighbor;
struct tc_edge_entry *tc_edge = olsr_malloc_tc_edge_entry();
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
if (!tc_edge) {
void
olsr_print_tc_table(void)
{
-#if !defined REMOVE_INFO
+#if !defined REMOVE_LOG_INFO
/* The whole function makes no sense without it. */
struct tc_entry *tc;
const int ipwidth = olsr_cnf->ip_version == AF_INET ? 15 : 30;
const unsigned char *limit, *curr;
struct tc_entry *tc;
bool relevantTc;
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
union olsr_ip_addr lower_border_ip, upper_border_ip;
void
olsr_insert_two_hop_neighbor_table(struct neighbor_2_entry *two_hop_neighbor)
{
-#if !defined REMOVE_DEBUG
+#if !defined REMOVE_LOG_DEBUG
struct ipaddr_str buf;
#endif
uint32_t hash = olsr_ip_hashing(&two_hop_neighbor->neighbor_2_addr);
void
olsr_print_two_hop_neighbor_table(void)
{
-#if !defined REMOVE_INFO
+#if !defined REMOVE_LOG_INFO
/* The whole function makes no sense without it. */
int i;