[Olsr-cvs] olsrd-current/src olsr.c,1.59,1.60

Bernd Petrovitsch (spam-protected)
Tue Oct 16 12:01:31 CEST 2007


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

Modified Files:
	olsr.c 
Log Message:
* applied a nad-edited version of Sven-Ola Tückes "Save the fish" patch

Index: olsr.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/olsr.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** olsr.c	5 Oct 2007 20:57:53 -0000	1.59
--- olsr.c	16 Oct 2007 10:01:29 -0000	1.60
***************
*** 300,305 ****
    int msgsize;
    struct interface *ifn;
  
! 
    if(!olsr_check_dup_table_fwd(originator, seqno, &in_if->ip_addr))
      {
--- 300,308 ----
    int msgsize;
    struct interface *ifn;
+   const int ttl = olsr_cnf->ip_version == AF_INET ? m->v4.ttl : m->v6.ttl;
  
!   if (ttl < 2) {
!     return 0;
!   }
    if(!olsr_check_dup_table_fwd(originator, seqno, &in_if->ip_addr))
      {





More information about the Olsr-cvs mailing list