[Olsr-cvs] olsrd-current/src net_olsr.c,1.6,1.7

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


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

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


Index: net_olsr.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/net_olsr.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** net_olsr.c	22 Dec 2005 15:06:52 -0000	1.6
--- net_olsr.c	29 Dec 2005 18:37:16 -0000	1.7
***************
*** 152,156 ****
    new_buf->bufsize = ifp->int_mtu;
    new_buf->if_index = ifp->if_nr;
!   new_buf->maxsize = ifp->int_mtu - OLSR_HEADERSIZE - (olsr_cnf->ip_version == AF_INET ? 28 : 0);
  
    new_buf->pending = 0;
--- 152,156 ----
    new_buf->bufsize = ifp->int_mtu;
    new_buf->if_index = ifp->if_nr;
!   new_buf->maxsize = ifp->int_mtu - OLSR_HEADERSIZE;
  
    new_buf->pending = 0;





More information about the Olsr-cvs mailing list