Page MenuHomeFreeBSD

D23727.id82460.diff
No OneTemporary

D23727.id82460.diff

diff --git a/sys/netgraph/ng_one2many.c b/sys/netgraph/ng_one2many.c
--- a/sys/netgraph/ng_one2many.c
+++ b/sys/netgraph/ng_one2many.c
@@ -451,15 +451,15 @@
/* no need to copy data for the 1st one */
dst = &priv->many[priv->activeMany[0]];
- /* make copies of data and send for all links
- * except the first one, which we'll do last
+ /* make modifiable copies of data and send for all
+ * links except the first one, which we'll do last
*/
for (i = 1; i < priv->numActiveMany; i++) {
struct mbuf *m2;
struct ng_one2many_link *mdst;
mdst = &priv->many[priv->activeMany[i]];
- m2 = m_dup(m, M_NOWAIT); /* XXX m_copypacket() */
+ m2 = m_dup(m, M_NOWAIT);
if (m2 == NULL) {
mdst->stats.memoryFailures++;
NG_FREE_ITEM(item);

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 22, 11:35 AM (2 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16770646
Default Alt Text
D23727.id82460.diff (800 B)

Event Timeline