[Olsr-cvs] olsrd-current/src/unix ifnet.c,1.57,1.58

Bernd Petrovitsch (spam-protected)
Thu Dec 6 22:46:09 CET 2007


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

Modified Files:
	ifnet.c 
Log Message:
* made a local never changed constant variable a #define

Index: ifnet.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/unix/ifnet.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** ifnet.c	6 Dec 2007 21:12:55 -0000	1.57
--- ifnet.c	6 Dec 2007 21:46:07 -0000	1.58
***************
*** 70,74 ****
  #include <unistd.h>
  
! int bufspace = 127*1024;	/* max. input buffer size to request */
  
  
--- 70,74 ----
  #include <unistd.h>
  
! #define BUFSPACE  (127*1024)	/* max. input buffer size to request */
  
  
***************
*** 629,633 ****
         */
        
!       ifp->olsr_socket = gethcsocket6(&addrsock6, bufspace, ifp->int_name);
        
        join_mcast(ifp, ifp->olsr_socket);
--- 629,633 ----
         */
        
!       ifp->olsr_socket = gethcsocket6(&addrsock6, BUFSPACE, ifp->int_name);
        
        join_mcast(ifp, ifp->olsr_socket);
***************
*** 961,965 ****
         */
        
!       ifp->olsr_socket = getsocket(bufspace, ifp->int_name);
        
        if (ifp->olsr_socket < 0)
--- 961,965 ----
         */
        
!       ifp->olsr_socket = getsocket(BUFSPACE, ifp->int_name);
        
        if (ifp->olsr_socket < 0)
***************
*** 983,987 ****
         */
        
!       ifp->olsr_socket = getsocket6(bufspace, ifp->int_name);
        
        join_mcast(ifp, ifp->olsr_socket);
--- 983,987 ----
         */
        
!       ifp->olsr_socket = getsocket6(BUFSPACE, ifp->int_name);
        
        join_mcast(ifp, ifp->olsr_socket);





More information about the Olsr-cvs mailing list