cvs commit: src/sys/netinet udp_usrreq.c
Robert Watson
rwatson at FreeBSD.org
Mon Aug 30 09:22:24 PDT 2004
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
More information about the cvs-src
mailing list