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

Bernd Petrovitsch (spam-protected)
Thu Dec 6 22:12:58 CET 2007


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

Modified Files:
	ifnet.c 
Log Message:
* removed the unused functions get_if_property_id(), add_if_geninfo(),
  get_if_geninfo(), del_if_geninfo()
* if_ifwithindex() is used only locally: made it "static"
* Simplified a little bit: addrsock and addrsock6 are defined and
  initialized in interfaces.c, used in src/*/net.c and passed as parameter
  to the functions getsocket{,6}() in src/*/ifnet.c.
  We now just define and initialize that locally.


Index: ifnet.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/unix/ifnet.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** ifnet.c	2 Dec 2007 19:00:28 -0000	1.56
--- ifnet.c	6 Dec 2007 21:12:55 -0000	1.57
***************
*** 961,965 ****
         */
        
!       ifp->olsr_socket = getsocket((struct sockaddr *)&addrsock, 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(&addrsock6, 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