summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-03-23 07:34:32 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-03-23 07:34:32 +0000
commit751b538808059cabdd15a2d81e91de7fd4a0913a (patch)
tree37a7b49118e887a9e51951be87e6b5e99235212d
parentfcc61246a19d4651c208c8be2b402d229dc80ea0 (diff)
Use M_COPY_PKTHDR(), and zero out tdbi.
-rw-r--r--sys/netiso/tuba_subr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netiso/tuba_subr.c b/sys/netiso/tuba_subr.c
index 8a495dfdb0d..37413a63a9d 100644
--- a/sys/netiso/tuba_subr.c
+++ b/sys/netiso/tuba_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tuba_subr.c,v 1.4 1997/02/08 09:58:27 deraadt Exp $ */
+/* $OpenBSD: tuba_subr.c,v 1.5 2001/03/23 07:34:31 angelos Exp $ */
/* $NetBSD: tuba_subr.c,v 1.7 1996/02/13 22:12:32 christos Exp $ */
/*
@@ -329,10 +329,11 @@ tuba_tcpinput(m, va_alist)
m = m0;
goto drop;
}
+ M_COPY_PKTHDR(m, m0);
m->m_next = m0;
m->m_data += max_linkhdr;
- m->m_pkthdr = m0->m_pkthdr;
- m->m_flags = m0->m_flags & M_COPYFLAGS;
+ m0->m_flags &= ~M_PKTHDR;
+ m0->m_pkthdr.tdbi = NULL;
if (len < sizeof(struct tcphdr)) {
m->m_len = 0;
if ((m = m_pullup(m, sizeof(struct tcpiphdr))) == 0) {