ng_ether.c (167729) | ng_ether.c (181803) |
---|---|
1 2/* 3 * ng_ether.c 4 */ 5 6/*- 7 * Copyright (c) 1996-2000 Whistle Communications, Inc. 8 * All rights reserved. --- 25 unchanged lines hidden (view full) --- 34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 36 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 37 * OF SUCH DAMAGE. 38 * 39 * Authors: Archie Cobbs <archie@freebsd.org> 40 * Julian Elischer <julian@freebsd.org> 41 * | 1 2/* 3 * ng_ether.c 4 */ 5 6/*- 7 * Copyright (c) 1996-2000 Whistle Communications, Inc. 8 * All rights reserved. --- 25 unchanged lines hidden (view full) --- 34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 36 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 37 * OF SUCH DAMAGE. 38 * 39 * Authors: Archie Cobbs <archie@freebsd.org> 40 * Julian Elischer <julian@freebsd.org> 41 * |
42 * $FreeBSD: head/sys/netgraph/ng_ether.c 167729 2007-03-20 00:36:10Z bms $ | 42 * $FreeBSD: head/sys/netgraph/ng_ether.c 181803 2008-08-17 23:27:27Z bz $ |
43 */ 44 45/* 46 * ng_ether(4) netgraph node type 47 */ 48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/kernel.h> 52#include <sys/malloc.h> 53#include <sys/mbuf.h> 54#include <sys/errno.h> 55#include <sys/syslog.h> 56#include <sys/socket.h> | 43 */ 44 45/* 46 * ng_ether(4) netgraph node type 47 */ 48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/kernel.h> 52#include <sys/malloc.h> 53#include <sys/mbuf.h> 54#include <sys/errno.h> 55#include <sys/syslog.h> 56#include <sys/socket.h> |
57#include <sys/vimage.h> |
|
57 58#include <net/if.h> 59#include <net/if_dl.h> 60#include <net/if_types.h> 61#include <net/if_arp.h> 62#include <net/if_var.h> 63#include <net/ethernet.h> 64#include <net/if_bridgevar.h> --- 682 unchanged lines hidden (view full) --- 747 ng_ether_detach_p = ng_ether_detach; 748 ng_ether_output_p = ng_ether_output; 749 ng_ether_input_p = ng_ether_input; 750 ng_ether_input_orphan_p = ng_ether_input_orphan; 751 ng_ether_link_state_p = ng_ether_link_state; 752 753 /* Create nodes for any already-existing Ethernet interfaces */ 754 IFNET_RLOCK(); | 58 59#include <net/if.h> 60#include <net/if_dl.h> 61#include <net/if_types.h> 62#include <net/if_arp.h> 63#include <net/if_var.h> 64#include <net/ethernet.h> 65#include <net/if_bridgevar.h> --- 682 unchanged lines hidden (view full) --- 748 ng_ether_detach_p = ng_ether_detach; 749 ng_ether_output_p = ng_ether_output; 750 ng_ether_input_p = ng_ether_input; 751 ng_ether_input_orphan_p = ng_ether_input_orphan; 752 ng_ether_link_state_p = ng_ether_link_state; 753 754 /* Create nodes for any already-existing Ethernet interfaces */ 755 IFNET_RLOCK(); |
755 TAILQ_FOREACH(ifp, &ifnet, if_link) { | 756 TAILQ_FOREACH(ifp, &V_ifnet, if_link) { |
756 if (ifp->if_type == IFT_ETHER 757 || ifp->if_type == IFT_L2VLAN) 758 ng_ether_attach(ifp); 759 } 760 IFNET_RUNLOCK(); 761 break; 762 763 case MOD_UNLOAD: --- 26 unchanged lines hidden --- | 757 if (ifp->if_type == IFT_ETHER 758 || ifp->if_type == IFT_L2VLAN) 759 ng_ether_attach(ifp); 760 } 761 IFNET_RUNLOCK(); 762 break; 763 764 case MOD_UNLOAD: --- 26 unchanged lines hidden --- |