From 23636759ba4593d4323a07b973bf0bc13ffe8ce1 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Mon, 3 Mar 2003 12:53:58 +0000 Subject: set n->m_len, somehow the line have lost. thanks daniel --- sys/kern/uipc_mbuf2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c index 98da1d0e1ce..bac9d862e20 100644 --- a/sys/kern/uipc_mbuf2.c +++ b/sys/kern/uipc_mbuf2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf2.c,v 1.19 2003/03/03 12:08:30 itojun Exp $ */ +/* $OpenBSD: uipc_mbuf2.c,v 1.20 2003/03/03 12:53:57 itojun Exp $ */ /* $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.40 1999/04/01 00:23:25 thorpej Exp $ */ @@ -259,6 +259,8 @@ m_dup1(m, off, len, wait) if (copyhdr) M_DUP_PKTHDR(n, m); m_copydata(m, off, len, mtod(n, caddr_t)); + n->m_len = len; + return (n); } -- cgit v1.2.3