ng_bridge.c (108107) | ng_bridge.c (109623) |
---|---|
1 2/* 3 * ng_bridge.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_bridge.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_bridge.c 108107 2002-12-19 22:58:27Z bmilekic $ | 39 * $FreeBSD: head/sys/netgraph/ng_bridge.c 109623 2003-01-21 08:56:16Z alfred $ |
40 */ 41 42/* 43 * ng_bridge(4) netgraph node type 44 * 45 * The node performs standard intelligent Ethernet bridging over 46 * each of its connected hooks, or links. A simple loop detection 47 * algorithm is included which disables a link for priv->conf.loopTimeout --- 660 unchanged lines hidden (view full) --- 708 firstLink = destLink; 709 continue; 710 } 711 712 /* 713 * It's usable link but not the reserved (first) one. 714 * Copy mbuf and meta info for sending. 715 */ | 40 */ 41 42/* 43 * ng_bridge(4) netgraph node type 44 * 45 * The node performs standard intelligent Ethernet bridging over 46 * each of its connected hooks, or links. A simple loop detection 47 * algorithm is included which disables a link for priv->conf.loopTimeout --- 660 unchanged lines hidden (view full) --- 708 firstLink = destLink; 709 continue; 710 } 711 712 /* 713 * It's usable link but not the reserved (first) one. 714 * Copy mbuf and meta info for sending. 715 */ |
716 m2 = m_dup(m, M_DONTWAIT); /* XXX m_copypacket() */ | 716 m2 = m_dup(m, M_NOWAIT); /* XXX m_copypacket() */ |
717 if (m2 == NULL) { 718 link->stats.memoryFailures++; 719 NG_FREE_ITEM(item); 720 NG_FREE_M(m); 721 return (ENOBUFS); 722 } 723 if (meta != NULL 724 && (meta2 = ng_copy_meta(meta)) == NULL) { --- 346 unchanged lines hidden --- | 717 if (m2 == NULL) { 718 link->stats.memoryFailures++; 719 NG_FREE_ITEM(item); 720 NG_FREE_M(m); 721 return (ENOBUFS); 722 } 723 if (meta != NULL 724 && (meta2 = ng_copy_meta(meta)) == NULL) { --- 346 unchanged lines hidden --- |