From owner-freebsd-net@FreeBSD.ORG Wed Sep 26 00:55:50 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F32B106566C for ; Wed, 26 Sep 2012 00:55:50 +0000 (UTC) (envelope-from vijju.singh@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 042878FC15 for ; Wed, 26 Sep 2012 00:55:49 +0000 (UTC) Received: by eaac10 with SMTP id c10so13400eaa.13 for ; Tue, 25 Sep 2012 17:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=YcTuG/0OSaUkJoE2kAu45SCm3iCj/9hkTtFgLO1fVdI=; b=a056r1wX1XRLYeb6yhNVPoyQBboouBYwuvsiQNWOm7T0pqtiPjVDK2D7QJGCqloI2K ywcBpI++krB4dPezkAgSTE2gbP1th8zgAaWbBJP/Mkty6OAszxb/sj/bK4CPp+11PSxz IyZ9T+Gfr05fK5oOGw+7OsvVM+D4J+4PFAt4AAcoN8S8ZGmiDhz2+1qe/0jdijPKohxi RAbcC9Zr5Pvhn6M26bJ5PM3S/1kQEBYkkc4J5Nbv9eCCTcF++HzWY5pn2BupbxODZcc6 udOP4fgSEGr4spiIxu6gRaI7nRC0B3xTOPVi1VlAksB65t+6Xcc2d0Ezmj6Gx8NgaRl0 W88A== MIME-Version: 1.0 Received: by 10.14.180.68 with SMTP id i44mr23053879eem.20.1348620948900; Tue, 25 Sep 2012 17:55:48 -0700 (PDT) Received: by 10.14.219.134 with HTTP; Tue, 25 Sep 2012 17:55:48 -0700 (PDT) Date: Tue, 25 Sep 2012 17:55:48 -0700 Message-ID: From: Vijay Singh To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: M_TRAILINGSPACE() X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2012 00:55:50 -0000 Folks, does the following patch make sense: server@[/u/vijay/bsd/CODE/cur/sys/sys]# svn diff mbuf.h Index: mbuf.h =================================================================== --- mbuf.h (revision 240548) +++ mbuf.h (working copy) @@ -832,6 +832,8 @@ ((m)->m_flags & M_EXT ? \ (M_WRITABLE(m) ? (m)->m_ext.ext_buf + (m)->m_ext.ext_size \ - ((m)->m_data + (m)->m_len) : 0) : \ + (m)->m_flags & M_PKTHDR ? \ + ((m)->m_pktdat[MHLEN] - ((m)->m_data + (m)->m_len)) : \ &(m)->m_dat[MLEN] - ((m)->m_data + (m)->m_len)) /*