From owner-cvs-all@FreeBSD.ORG Mon Aug 30 16:22:24 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AD3816A4CF; Mon, 30 Aug 2004 16:22:24 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1AFF43D41; Mon, 30 Aug 2004 16:22:23 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7UGMN51008099; Mon, 30 Aug 2004 16:22:23 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7UGMNWx008098; Mon, 30 Aug 2004 16:22:23 GMT (envelope-from rwatson) Message-Id: <200408301622.i7UGMNWx008098@repoman.freebsd.org> From: Robert Watson Date: Mon, 30 Aug 2004 16:22:23 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/netinet udp_usrreq.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 16:22:24 -0000 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