[Olsr-cvs] olsrd-current/src tc_set.h, 1.18, 1.19 tc_set.c, 1.32, 1.33

Bernd Petrovitsch (spam-protected)
Fri Nov 2 10:38:58 CET 2007


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

Modified Files:
	tc_set.h tc_set.c 
Log Message:
* bug fix by Hannes Gredler <(spam-protected)> fixing not deleted tc entry

Index: tc_set.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/tc_set.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** tc_set.h	16 Oct 2007 09:54:44 -0000	1.18
--- tc_set.h	2 Nov 2007 09:38:55 -0000	1.19
***************
*** 135,138 ****
--- 135,139 ----
                                               union olsr_ip_addr *, olsr_u16_t,
                                               unsigned int, float, float);
+ void olsr_delete_tc_entry(struct tc_entry *);
  void olsr_delete_tc_edge_entry(struct tc_edge_entry *);
  void olsr_calc_tc_edge_entry_etx(struct tc_edge_entry *);

Index: tc_set.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/tc_set.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** tc_set.c	17 Oct 2007 07:30:34 -0000	1.32
--- tc_set.c	2 Nov 2007 09:38:55 -0000	1.33
***************
*** 91,99 ****
  
      /*
!      * Flush all edges. This causes our own tc_entry to vanish.
       */
      OLSR_FOR_ALL_TC_EDGE_ENTRIES(tc_myself, tc_edge) {
        olsr_delete_tc_edge_entry(tc_edge);
      } OLSR_FOR_ALL_TC_EDGE_ENTRIES_END(tc_myself, tc_edge);
    }
  
--- 91,100 ----
  
      /*
!      * Flush all edges and our own tc_entry.
       */
      OLSR_FOR_ALL_TC_EDGE_ENTRIES(tc_myself, tc_edge) {
        olsr_delete_tc_edge_entry(tc_edge);
      } OLSR_FOR_ALL_TC_EDGE_ENTRIES_END(tc_myself, tc_edge);
+     olsr_delete_tc_entry(tc_myself);
    }
  
***************
*** 111,115 ****
   *
   */
! static void
  olsr_delete_tc_entry(struct tc_entry *tc)
  {
--- 112,116 ----
   *
   */
! void
  olsr_delete_tc_entry(struct tc_entry *tc)
  {





More information about the Olsr-cvs mailing list