ng_bridge.c (141574) | ng_bridge.c (181803) |
---|---|
1/* 2 * ng_bridge.c 3 */ 4 5/*- 6 * Copyright (c) 2000 Whistle Communications, Inc. 7 * All rights reserved. 8 * --- 23 unchanged lines hidden (view full) --- 32 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 35 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 36 * OF SUCH DAMAGE. 37 * 38 * Author: Archie Cobbs <archie@freebsd.org> 39 * | 1/* 2 * ng_bridge.c 3 */ 4 5/*- 6 * Copyright (c) 2000 Whistle Communications, Inc. 7 * All rights reserved. 8 * --- 23 unchanged lines hidden (view full) --- 32 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 35 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 36 * OF SUCH DAMAGE. 37 * 38 * Author: Archie Cobbs <archie@freebsd.org> 39 * |
40 * $FreeBSD: head/sys/netgraph/ng_bridge.c 141574 2005-02-09 15:14:44Z ru $ | 40 * $FreeBSD: head/sys/netgraph/ng_bridge.c 181803 2008-08-17 23:27:27Z bz $ |
41 */ 42 43/* 44 * ng_bridge(4) netgraph node type 45 * 46 * The node performs standard intelligent Ethernet bridging over 47 * each of its connected hooks, or links. A simple loop detection 48 * algorithm is included which disables a link for priv->conf.loopTimeout --- 13 unchanged lines hidden (view full) --- 62#include <sys/systm.h> 63#include <sys/kernel.h> 64#include <sys/malloc.h> 65#include <sys/mbuf.h> 66#include <sys/errno.h> 67#include <sys/syslog.h> 68#include <sys/socket.h> 69#include <sys/ctype.h> | 41 */ 42 43/* 44 * ng_bridge(4) netgraph node type 45 * 46 * The node performs standard intelligent Ethernet bridging over 47 * each of its connected hooks, or links. A simple loop detection 48 * algorithm is included which disables a link for priv->conf.loopTimeout --- 13 unchanged lines hidden (view full) --- 62#include <sys/systm.h> 63#include <sys/kernel.h> 64#include <sys/malloc.h> 65#include <sys/mbuf.h> 66#include <sys/errno.h> 67#include <sys/syslog.h> 68#include <sys/socket.h> 69#include <sys/ctype.h> |
70#include <sys/vimage.h> |
|
70 71#include <net/if.h> 72#include <net/ethernet.h> 73 74#include <netinet/in.h> 75#include <netinet/ip_fw.h> 76 77#include <netgraph/ng_message.h> --- 548 unchanged lines hidden (view full) --- 626 NG_FREE_ITEM(item); 627 NG_FREE_M(m); 628 return (ENOMEM); 629 } 630 } 631 632 /* Run packet through ipfw processing, if enabled */ 633#if 0 | 71 72#include <net/if.h> 73#include <net/ethernet.h> 74 75#include <netinet/in.h> 76#include <netinet/ip_fw.h> 77 78#include <netgraph/ng_message.h> --- 548 unchanged lines hidden (view full) --- 627 NG_FREE_ITEM(item); 628 NG_FREE_M(m); 629 return (ENOMEM); 630 } 631 } 632 633 /* Run packet through ipfw processing, if enabled */ 634#if 0 |
634 if (priv->conf.ipfw[linkNum] && fw_enable && ip_fw_chk_ptr != NULL) { | 635 if (priv->conf.ipfw[linkNum] && V_fw_enable && ip_fw_chk_ptr != NULL) { |
635 /* XXX not implemented yet */ 636 } 637#endif 638 639 /* 640 * If unicast and destination host known, deliver to host's link, 641 * unless it is the same link as the packet came in on. 642 */ --- 400 unchanged lines hidden --- | 636 /* XXX not implemented yet */ 637 } 638#endif 639 640 /* 641 * If unicast and destination host known, deliver to host's link, 642 * unless it is the same link as the packet came in on. 643 */ --- 400 unchanged lines hidden --- |