[Olsr-cvs] olsrd-current/src/unix ifnet.c,1.30,1.31

Thomas Lopatic (spam-protected)
Thu Dec 29 19:37:18 CET 2005


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

Modified Files:
	ifnet.c 
Log Message:
Subtract IP and UDP header sizes from the right struct field.


Index: ifnet.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/unix/ifnet.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** ifnet.c	8 Oct 2005 15:38:38 -0000	1.30
--- ifnet.c	29 Dec 2005 18:37:16 -0000	1.31
***************
*** 224,228 ****
    else
      {
!       ifp->int_mtu -= (olsr_cnf->ip_version == AF_INET6) ? UDP_IPV6_HDRSIZE : UDP_IPV4_HDRSIZE;
        if(ifp->int_mtu != ifr.ifr_mtu)
  	{
--- 224,229 ----
    else
      {
!       ifr.ifr_mtu -= (olsr_cnf->ip_version == AF_INET6) ? UDP_IPV6_HDRSIZE : UDP_IPV4_HDRSIZE;
! 
        if(ifp->int_mtu != ifr.ifr_mtu)
  	{





More information about the Olsr-cvs mailing list