From 0853d7433ec3b1b6a641ff3c6fc2d73cbe3b3603 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Tue, 25 Apr 2000 06:03:47 +0000 Subject: if we have to allocate a new mbuf, don't forget to copy the header info from the original packet. --- sys/dev/pci/hifn7751.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c index e231ceb3f46..4ed153ef1be 100644 --- a/sys/dev/pci/hifn7751.c +++ b/sys/dev/pci/hifn7751.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751.c,v 1.36 2000/04/25 05:32:21 jason Exp $ */ +/* $OpenBSD: hifn7751.c,v 1.37 2000/04/25 06:03:46 jason Exp $ */ /* * Invertex AEON / Hi/fn 7751 driver @@ -778,6 +778,7 @@ hifn_crypto(sc, cmd) totlen = cmd->dst_l = cmd->src_l; MGETHDR(m, M_DONTWAIT, MT_DATA); + M_COPY_PKTHDR(m, cmd->src_m); if (m == NULL) return (-1); len = MHLEN; -- cgit v1.2.3