[Olsr-cvs] olsrd-current/src/win32 kernel_routes.c,1.25,1.26

Bernd Petrovitsch (spam-protected)
Thu Nov 29 23:21:28 CET 2007


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

Modified Files:
	kernel_routes.c 
Log Message:
"open_ipc" is  only a boolean value containing "olsr_cnf->debug_level > 1".
So I see no reason to keep that variable.

Apart from the the attached patch makes the "#if" condition for the
"rts" field identical to all other references to it.


Index: kernel_routes.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/win32/kernel_routes.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** kernel_routes.c	11 Nov 2007 23:10:22 -0000	1.25
--- kernel_routes.c	29 Nov 2007 22:21:26 -0000	1.26
***************
*** 117,121 ****
     * Send IPC route update message
     */
!   if(olsr_cnf->open_ipc) {
      ipc_route_send_rtentry(&rt->rt_dst.prefix, &rt->rt_best->rtp_nexthop.gateway,
          rt->rt_best->rtp_metric.hops, 1,
--- 117,121 ----
     * Send IPC route update message
     */
!   if (olsr_cnf->ipc_connections > 0) {
      ipc_route_send_rtentry(&rt->rt_dst.prefix, &rt->rt_best->rtp_nexthop.gateway,
          rt->rt_best->rtp_metric.hops, 1,
***************
*** 186,190 ****
     * Send IPC route update message
     */
!   if(olsr_cnf->open_ipc) {
      ipc_route_send_rtentry(&rt->rt_dst.prefix, NULL, 0 , 0, NULL);
    }
--- 186,190 ----
     * Send IPC route update message
     */
!   if (olsr_cnf->ipc_connections > 0) {
      ipc_route_send_rtentry(&rt->rt_dst.prefix, NULL, 0 , 0, NULL);
    }





More information about the Olsr-cvs mailing list