1/*- 2 * Copyright (c) 1980, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)if.c 8.5 (Berkeley) 1/9/95 |
30 * $FreeBSD: head/sys/net/if.c 215701 2010-11-22 19:32:54Z dim $ |
31 */ 32 33#include "opt_compat.h" 34#include "opt_inet6.h" 35#include "opt_inet.h" 36 37#include <sys/param.h> 38#include <sys/types.h> --- 139 unchanged lines hidden (view full) --- 178extern void nd6_setmtu(struct ifnet *); 179#endif 180 181VNET_DEFINE(int, if_index); 182int ifqmaxlen = IFQ_MAXLEN; 183VNET_DEFINE(struct ifnethead, ifnet); /* depend on static init XXX */ 184VNET_DEFINE(struct ifgrouphead, ifg_head); 185 |
186static VNET_DEFINE(int, if_indexlim) = 8; |
187 188/* Table of ifnet by index. */ 189VNET_DEFINE(struct ifindex_entry *, ifindex_table); 190 191#define V_if_indexlim VNET(if_indexlim) 192#define V_ifindex_table VNET(ifindex_table) 193 194/* --- 3169 unchanged lines hidden --- |