diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-03-28 20:03:10 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-03-28 20:03:10 +0000 |
commit | 3ddeb82e5920fb4ce16a363a4cdf2ff420fc6f8c (patch) | |
tree | 21df0560d7db7bab293cc22bc52b21fd5727de8a /sys/dev/pci | |
parent | 59779d47329c2626433e1ab0d847e7d7cd41aa48 (diff) |
Allow tdbi's to appear in mbufs throughout the stack; this allows
security properties of the packets to be pushed up to the application
(not done yet). Eventually, this will be turned into a packet
attributes framework.
Make sure tdbi's are free'd/cleared properly whenever drivers (or NFS)
does weird things with mbufs.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/hifn7751.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/ises.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/ubsec.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c index 4115b8a573f..4f3e42d4942 100644 --- a/sys/dev/pci/hifn7751.c +++ b/sys/dev/pci/hifn7751.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751.c,v 1.55 2001/02/18 18:29:27 deraadt Exp $ */ +/* $OpenBSD: hifn7751.c,v 1.56 2001/03/28 20:02:59 angelos Exp $ */ /* * Invertex AEON / Hi/fn 7751 driver @@ -876,7 +876,7 @@ hifn_crypto(sc, cmd) if (m == NULL) return (-1); if (len == MHLEN) - M_COPY_PKTHDR(m, cmd->src_m); + M_DUP_PKTHDR(m, cmd->src_m); if (totlen >= MINCLSIZE) { MCLGET(m, M_DONTWAIT); if (m->m_flags & M_EXT) diff --git a/sys/dev/pci/ises.c b/sys/dev/pci/ises.c index a4c1899a450..3288e67881e 100644 --- a/sys/dev/pci/ises.c +++ b/sys/dev/pci/ises.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ises.c,v 1.3 2001/01/30 14:07:44 ho Exp $ */ +/* $OpenBSD: ises.c,v 1.4 2001/03/28 20:02:59 angelos Exp $ */ /* * Copyright (c) 2000 Håkan Olsson (ho@crt.se) @@ -1048,7 +1048,7 @@ ises_process(struct cryptop *crp) totlen = q->q_dst_l = q->q_src_l; if (q->q_src_m->m_flags & M_PKTHDR) { MGETHDR(m, M_DONTWAIT, MT_DATA); - M_COPY_PKTHDR(m, q->q_src_m); + M_DUP_PKTHDR(m, q->q_src_m); len = MHLEN; } else { MGET(m, M_DONTWAIT, MT_DATA); diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c index b1c4769f57b..8a1342008b8 100644 --- a/sys/dev/pci/ubsec.c +++ b/sys/dev/pci/ubsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsec.c,v 1.41 2001/03/25 07:59:25 csapuntz Exp $ */ +/* $OpenBSD: ubsec.c,v 1.42 2001/03/28 20:03:00 angelos Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -839,7 +839,7 @@ ubsec_process(crp) goto errout; } if (len == MHLEN) - M_COPY_PKTHDR(m, q->q_src_m); + M_DUP_PKTHDR(m, q->q_src_m); if (totlen >= MINCLSIZE) { MCLGET(m, M_DONTWAIT); if (m->m_flags & M_EXT) |