diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1999-12-31 23:37:09 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1999-12-31 23:37:09 +0000 |
commit | 324b9ad19e91b84031a18e574405a0c4c8d3a06c (patch) | |
tree | 9909df30a04d772e01d15d3b4934cfe7e78da674 /sys/kern | |
parent | 0302beae340be02924fceb57390792355ba77ec6 (diff) |
copy pkthdr correctly in m_split, okay angelos@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index f94d76ae370..c63c3eabf0b 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.18 1999/12/05 07:30:31 angelos Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.19 1999/12/31 23:37:08 provos Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -803,8 +803,8 @@ m_split(m0, len0, wait) MGETHDR(n, wait, m0->m_type); if (n == NULL) return (NULL); - n->m_pkthdr.rcvif = m0->m_pkthdr.rcvif; - n->m_pkthdr.len = m0->m_pkthdr.len - len0; + n->m_pkthdr = m0->m_pkthdr; + n->m_pkthdr.len -= len0; olen = m0->m_pkthdr.len; m0->m_pkthdr.len = len0; if (m->m_flags & M_EXT) |