Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netiso clear m_pkthdr for M_PKTHDR mbuf, so that we do n...
details: https://anonhg.NetBSD.org/src/rev/45bc01d16ebb
branches: trunk
changeset: 482910:45bc01d16ebb
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Feb 25 03:41:54 2000 +0000
description:
clear m_pkthdr for M_PKTHDR mbuf, so that we do not get panic with
old data in pointer fields. NOTE: we'll extend m_pkthdr field soon.
why does the code allocate mbuf by its own?
diffstat:
sys/netiso/tp_emit.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r bc2780ff07c2 -r 45bc01d16ebb sys/netiso/tp_emit.c
--- a/sys/netiso/tp_emit.c Fri Feb 25 03:39:13 2000 +0000
+++ b/sys/netiso/tp_emit.c Fri Feb 25 03:41:54 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tp_emit.c,v 1.11 1999/03/04 02:40:20 mjacob Exp $ */
+/* $NetBSD: tp_emit.c,v 1.12 2000/02/25 03:41:54 itojun Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -198,6 +198,7 @@
m->m_nextpkt = MNULL;
m->m_data = m->m_pktdat;
m->m_flags = M_PKTHDR;
+ bzero(&m->m_pkthdr, sizeof(m->m_pkthdr));
}
} else {
MGETHDR(m, M_DONTWAIT, TPMT_TPHDR);
Home |
Main Index |
Thread Index |
Old Index