Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Aug 2004 16:22:23 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet udp_usrreq.c
Message-ID:  <200408301622.i7UGMNWx008098@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2004-08-30 16:22:23 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    sys/netinet          udp_usrreq.c 
  Log:
  Merge udp_usrreq.c:1.164 and udp_usrreq.c:1.165 to RELENG_5:
  
    revision 1.165
    date: 2004/08/22 01:32:48;  author: rwatson;  state: Exp;  lines: +3 -1
    When sliding the m_data pointer forward, update m_pktrhdr.len as well
    as m_len, or the pkthdr length will be inconsistent with the actual
    length of data in the mbuf chain.  The symptom of this occuring was
    "out of data" warnings from in_cksum_skip() on large UDP packets sent
    via the loopback interface.
  
    revision 1.164
    date: 2004/08/21 16:14:04;  author: rwatson;  state: Exp;  lines: +7 -4
    When prepending space onto outgoing UDP datagram payloads to hold the
    UDP/IP header, make sure that space is also allocated for the link
    layer header.  If an mbuf must be allocated to hold the UDP/IP header
    (very likely), then this will avoid an additional mbuf allocation at
    the link layer.  This trick is also used by TCP and other protocols to
    avoid extra calls to the mbuf allocator in the ethernet (and related)
    output routines.
  
  Approved by:    re (Scottl)
  
  Revision   Changes    Path
  1.162.2.2  +9 -4      src/sys/netinet/udp_usrreq.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408301622.i7UGMNWx008098>