ng_one2many.c (106665) | ng_one2many.c (108107) |
---|---|
1 2/* 3 * ng_one2many.c 4 * 5 * Copyright (c) 2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * | 1 2/* 3 * ng_one2many.c 4 * 5 * Copyright (c) 2000 Whistle Communications, Inc. 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 22 unchanged lines hidden (view full) --- 31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 35 * OF SUCH DAMAGE. 36 * 37 * Author: Archie Cobbs <archie@freebsd.org> 38 * |
39 * $FreeBSD: head/sys/netgraph/ng_one2many.c 106665 2002-11-08 21:13:18Z jhb $ | 39 * $FreeBSD: head/sys/netgraph/ng_one2many.c 108107 2002-12-19 22:58:27Z bmilekic $ |
40 */ 41 42/* 43 * ng_one2many(4) netgraph node type 44 * 45 * Packets received on the "one" hook are sent out each of the 46 * "many" hooks accoring to an algorithm. Packets received on any 47 * "many" hook are always delivered to the "one" hook. --- 374 unchanged lines hidden (view full) --- 422 * except the first one, which we'll do last 423 */ 424 for (i = 1; i < priv->numActiveMany; i++) { 425 meta_p meta2 = NULL; 426 struct mbuf *m2; 427 struct ng_one2many_link *mdst; 428 429 mdst = &priv->many[priv->activeMany[i]]; | 40 */ 41 42/* 43 * ng_one2many(4) netgraph node type 44 * 45 * Packets received on the "one" hook are sent out each of the 46 * "many" hooks accoring to an algorithm. Packets received on any 47 * "many" hook are always delivered to the "one" hook. --- 374 unchanged lines hidden (view full) --- 422 * except the first one, which we'll do last 423 */ 424 for (i = 1; i < priv->numActiveMany; i++) { 425 meta_p meta2 = NULL; 426 struct mbuf *m2; 427 struct ng_one2many_link *mdst; 428 429 mdst = &priv->many[priv->activeMany[i]]; |
430 m2 = m_dup(m, M_NOWAIT); /* XXX m_copypacket() */ | 430 m2 = m_dup(m, M_DONTWAIT); /* XXX m_copypacket() */ |
431 if (m2 == NULL) { 432 mdst->stats.memoryFailures++; 433 NG_FREE_ITEM(item); 434 NG_FREE_M(m); 435 return (ENOBUFS); 436 } 437 if (meta != NULL 438 && (meta2 = ng_copy_meta(meta)) == NULL) { --- 123 unchanged lines hidden --- | 431 if (m2 == NULL) { 432 mdst->stats.memoryFailures++; 433 NG_FREE_ITEM(item); 434 NG_FREE_M(m); 435 return (ENOBUFS); 436 } 437 if (meta != NULL 438 && (meta2 = ng_copy_meta(meta)) == NULL) { --- 123 unchanged lines hidden --- |