summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_tee.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-06-26 22:24:16 +0000
committerjulian <julian@FreeBSD.org>2004-06-26 22:24:16 +0000
commit5a269c8a7e26638b8f896d1601618e5253776958 (patch)
tree5db990cf15727892f404908f26b492b9f1b8a509 /sys/netgraph/ng_tee.c
parentcb255821c823542b64070fb2864196922202a027 (diff)
downloadFreeBSD-src-5a269c8a7e26638b8f896d1601618e5253776958.zip
FreeBSD-src-5a269c8a7e26638b8f896d1601618e5253776958.tar.gz
Having moved metadata usage to mbuf tags, remove code that supports
the old way of doing it. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Diffstat (limited to 'sys/netgraph/ng_tee.c')
-rw-r--r--sys/netgraph/ng_tee.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/netgraph/ng_tee.c b/sys/netgraph/ng_tee.c
index 67762d0..c9d57cd 100644
--- a/sys/netgraph/ng_tee.c
+++ b/sys/netgraph/ng_tee.c
@@ -291,10 +291,8 @@ ngt_rcvdata(hook_p hook, item_p item)
struct hookinfo *dup;
int error = 0;
struct mbuf *m;
- meta_p meta;
m = NGI_M(item);
- meta = NGI_META(item); /* leave these owned by the item */
/* Which hook? */
if (hinfo == &sc->left) {
dup = &sc->left2right;
@@ -327,26 +325,17 @@ ngt_rcvdata(hook_p hook, item_p item)
dup = NULL;
}
- /* Duplicate packet and meta info if requried */
+ /* Duplicate packet if requried */
if (dup && dup->hook) {
struct mbuf *m2;
- meta_p meta2;
/* Copy packet (failure will not stop the original)*/
m2 = m_dup(m, M_DONTWAIT);
if (m2) {
-
- /* Copy meta info */
- /* If we can't get a copy, tough.. */
- if (meta != NULL) {
- meta2 = ng_copy_meta(meta);
- } else
- meta2 = NULL;
-
/* Deliver duplicate */
dup->stats.outOctets += m->m_pkthdr.len;
dup->stats.outFrames++;
- NG_SEND_DATA(error, dup->hook, m2, meta2);
+ NG_SEND_DATA_ONLY(error, dup->hook, m2);
}
}
/* Deliver frame out destination hook */
OpenPOWER on IntegriCloud