diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-05-22 19:02:37 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-05-22 19:02:37 +0000 |
commit | c8cfb6671feece82be385a26dcf17ae1b2411776 (patch) | |
tree | 205505f03285e4cb32aaf2537bfd37c2ac69d45b /sys | |
parent | 42432d27b877b3b00cb4d205dc3c335da7c8c5ed (diff) |
Initialize packet tags.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netiso/tp_emit.c | 6 |
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); |