if.c (186119) | if.c (186199) |
---|---|
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 | 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 186119 2008-12-15 06:10:57Z qingli $ | 30 * $FreeBSD: head/sys/net/if.c 186199 2008-12-17 00:11:56Z kmacy $ |
31 */ 32 33#include "opt_compat.h" 34#include "opt_inet6.h" 35#include "opt_inet.h" 36#include "opt_mac.h" 37#include "opt_carp.h" 38 --- 114 unchanged lines hidden (view full) --- 153int if_index; 154static int if_indexlim; 155/* Table of ifnet/cdev by index. Locked with ifnet_lock. */ 156static struct ifindex_entry *ifindex_table; 157static struct knlist ifklist; 158#endif 159 160int ifqmaxlen = IFQ_MAXLEN; | 31 */ 32 33#include "opt_compat.h" 34#include "opt_inet6.h" 35#include "opt_inet.h" 36#include "opt_mac.h" 37#include "opt_carp.h" 38 --- 114 unchanged lines hidden (view full) --- 153int if_index; 154static int if_indexlim; 155/* Table of ifnet/cdev by index. Locked with ifnet_lock. */ 156static struct ifindex_entry *ifindex_table; 157static struct knlist ifklist; 158#endif 159 160int ifqmaxlen = IFQ_MAXLEN; |
161struct mtx ifnet_lock; | 161struct rwlock ifnet_lock; |
162static if_com_alloc_t *if_com_alloc[256]; 163static if_com_free_t *if_com_free[256]; 164 165static void filt_netdetach(struct knote *kn); 166static int filt_netdev(struct knote *kn, long hint); 167 168static struct filterops netdev_filtops = 169 { 1, NULL, filt_netdetach, filt_netdev }; --- 2738 unchanged lines hidden --- | 162static if_com_alloc_t *if_com_alloc[256]; 163static if_com_free_t *if_com_free[256]; 164 165static void filt_netdetach(struct knote *kn); 166static int filt_netdev(struct knote *kn, long hint); 167 168static struct filterops netdev_filtops = 169 { 1, NULL, filt_netdetach, filt_netdev }; --- 2738 unchanged lines hidden --- |