summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-22 19:02:37 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-22 19:02:37 +0000
commitc8cfb6671feece82be385a26dcf17ae1b2411776 (patch)
tree205505f03285e4cb32aaf2537bfd37c2ac69d45b /sys
parent42432d27b877b3b00cb4d205dc3c335da7c8c5ed (diff)
Initialize packet tags.
Diffstat (limited to 'sys')
-rw-r--r--sys/netiso/tp_emit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netiso/tp_emit.c b/sys/netiso/tp_emit.c
index 4c238648050..a8b66cc2603 100644
--- a/sys/netiso/tp_emit.c
+++ b/sys/netiso/tp_emit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tp_emit.c,v 1.4 2000/02/25 04:26:11 itojun Exp $ */
+/* $OpenBSD: tp_emit.c,v 1.5 2001/05/22 19:02:36 angelos Exp $ */
/* $NetBSD: tp_emit.c,v 1.8 1996/03/16 23:13:48 christos Exp $ */
/*-
@@ -199,7 +199,9 @@ tp_emit(dutype, tpcb, seq, eot, data)
m->m_nextpkt = MNULL;
m->m_data = m->m_pktdat;
m->m_flags = M_PKTHDR;
- bzero(&m->m_pkthdr, sizeof(m->m_pkthdr));
+ m->m_pkthdr.rcvif = 0;
+ m->m_pkthdr.len = 0;
+ TAILQ_INIT(&m->m_pkthdr.tags);
}
} else {
MGETHDR(m, M_DONTWAIT, TPMT_TPHDR);