[Olsr-cvs] olsrd-current/src/bsd net.c, 1.35, 1.36 kernel_routes.c, 1.10, 1.11
Bernd Petrovitsch
(spam-protected)
Wed May 2 09:41:23 CEST 2007
Update of /cvsroot/olsrd/olsrd-current/src/bsd
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13893/bsd
Modified Files:
net.c kernel_routes.c
Log Message:
* patch from Patrick McCarty <(spam-protected)>: OLSR_PRINTF() needs a ";" also in the BSD part
Index: net.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/bsd/net.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** net.c 1 May 2007 20:13:50 -0000 1.35
--- net.c 2 May 2007 07:41:20 -0000 1.36
***************
*** 490,494 ****
mcastreq.ipv6mr_interface = ifs->if_index;
! OLSR_PRINTF(3, "Interface %s joining multicast %s...", ifs->int_name, olsr_ip_to_string((union olsr_ip_addr *)&ifs->int6_multaddr.sin6_addr))
/* rfc 3493 */
--- 490,494 ----
mcastreq.ipv6mr_interface = ifs->if_index;
! OLSR_PRINTF(3, "Interface %s joining multicast %s...", ifs->int_name, olsr_ip_to_string((union olsr_ip_addr *)&ifs->int6_multaddr.sin6_addr));
/* rfc 3493 */
***************
*** 546,550 ****
if (getifaddrs(&ifap) != 0)
{
! OLSR_PRINTF(3, "get_ipv6_address: getifaddrs() failed.\n")
return 0;
}
--- 546,550 ----
if (getifaddrs(&ifap) != 0)
{
! OLSR_PRINTF(3, "get_ipv6_address: getifaddrs() failed.\n");
return 0;
}
Index: kernel_routes.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/bsd/kernel_routes.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** kernel_routes.c 25 Apr 2007 22:08:17 -0000 1.10
--- kernel_routes.c 2 May 2007 07:41:20 -0000 1.11
***************
*** 185,190 ****
inet_ntop(AF_INET6, &dest->rt_router.v6, Str2, 40);
! OLSR_PRINTF(1, "%s IPv6 route to %s/%d via %s.\n",
! (add != 0) ? "Adding" : "Removing", Str1, dest->rt_mask.v6, Str2)
memset(buff, 0, sizeof (buff));
--- 185,190 ----
inet_ntop(AF_INET6, &dest->rt_router.v6, Str2, 40);
! OLSR_PRINTF(1, "%s IPv6 route to %s/%d via %s.\n",
! (add != 0) ? "Adding" : "Removing", Str1, dest->rt_mask.v6, Str2);
memset(buff, 0, sizeof (buff));
More information about the Olsr-cvs
mailing list