[Olsr-cvs] olsrd-current/src hna_set.c,1.26,1.27

Bernd Petrovitsch (spam-protected)
Thu Nov 29 02:29:55 CET 2007


Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1146/src

Modified Files:
	hna_set.c 
Log Message:
* fixed debug output

Index: hna_set.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/hna_set.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** hna_set.c	29 Nov 2007 00:49:38 -0000	1.26
--- hna_set.c	29 Nov 2007 01:29:53 -0000	1.27
***************
*** 329,336 ****
                    struct ipaddr_str buf;
  #endif
-                   struct in_addr a;
  		  OLSR_PRINTF(1, "%-15s ", olsr_ip_to_string(&buf, &tmp_net->A_network_addr));
!                   a.s_addr = tmp_net->A_netmask.v4; /* Ugly! */
! 		  OLSR_PRINTF(1, "%-15s ", ip4_to_string(&buf, a));
  		  OLSR_PRINTF(1, "%-15s\n", olsr_ip_to_string(&buf, &tmp_hna->A_gateway_addr));
  		}
--- 329,334 ----
                    struct ipaddr_str buf;
  #endif
  		  OLSR_PRINTF(1, "%-15s ", olsr_ip_to_string(&buf, &tmp_net->A_network_addr));
! 		  OLSR_PRINTF(1, "%-15d ", tmp_net->prefix_len);
  		  OLSR_PRINTF(1, "%-15s\n", olsr_ip_to_string(&buf, &tmp_hna->A_gateway_addr));
  		}





More information about the Olsr-cvs mailing list