1/* 2 * ng_iface.c 3 */ 4 5/*- 6 * Copyright (c) 1996-1999 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_iface.c 215701 2010-11-22 19:32:54Z dim $ |
41 * $Whistle: ng_iface.c,v 1.33 1999/11/01 09:24:51 julian Exp $ 42 */ 43 44/* 45 * This node is also a system networking interface. It has 46 * a hook for each protocol (IP, AppleTalk, IPX, etc). Packets 47 * are simply relayed between the interface and the hooks. 48 * --- 156 unchanged lines hidden (view full) --- 205 .shutdown = ng_iface_shutdown, 206 .newhook = ng_iface_newhook, 207 .rcvdata = ng_iface_rcvdata, 208 .disconnect = ng_iface_disconnect, 209 .cmdlist = ng_iface_cmds, 210}; 211NETGRAPH_INIT(iface, &typestruct); 212 |
213static VNET_DEFINE(struct unrhdr *, ng_iface_unit); |
214#define V_ng_iface_unit VNET(ng_iface_unit) 215 216/************************************************************************ 217 HELPER STUFF 218 ************************************************************************/ 219 220/* 221 * Get the family descriptor from the family ID --- 643 unchanged lines hidden --- |