From 5f621f26fad2094f5f9335f6ae70acc6c59a2205 Mon Sep 17 00:00:00 2001 From: jason Date: Tue, 25 Apr 2000 06:03:46 +0000 Subject: [PATCH] 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; -- 2.20.1