[Olsr-cvs] olsrd-current/src main.c,1.103,1.104

Bernd Petrovitsch (spam-protected)
Thu Nov 22 12:43:38 CET 2007


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

Modified Files:
	main.c 
Log Message:
* bug fix: set "ipsize" and "maxplen" if we set the the "ip_version"


Index: main.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/main.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -C2 -d -r1.103 -r1.104
*** main.c	20 Nov 2007 23:19:08 -0000	1.103
--- main.c	22 Nov 2007 11:43:36 -0000	1.104
***************
*** 333,350 ****
      }
  
-   /* Set ipsize */
-   if(olsr_cnf->ip_version == AF_INET6)
-     {
-       OLSR_PRINTF(1, "Using IP version %d\n", 6);
-       olsr_cnf->ipsize = sizeof(struct in6_addr);
-       olsr_cnf->maxplen = 128;
-     }
-   else
-     {
-       OLSR_PRINTF(1, "Using IP version %d\n", 4);
-       olsr_cnf->ipsize = sizeof(struct in_addr);
-       olsr_cnf->maxplen = 32;
-     }
- 
    /* Initialize net */
    init_net();
--- 333,336 ----





More information about the Olsr-cvs mailing list