in_var.h (128019) | in_var.h (133874) |
---|---|
1/* 2 * Copyright (c) 1985, 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 * @(#)in_var.h 8.2 (Berkeley) 1/9/95 | 1/* 2 * Copyright (c) 1985, 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 * @(#)in_var.h 8.2 (Berkeley) 1/9/95 |
30 * $FreeBSD: head/sys/netinet/in_var.h 128019 2004-04-07 20:46:16Z imp $ | 30 * $FreeBSD: head/sys/netinet/in_var.h 133874 2004-08-16 18:32:07Z rwatson $ |
31 */ 32 33#ifndef _NETINET_IN_VAR_H_ 34#define _NETINET_IN_VAR_H_ 35 36#include <sys/queue.h> 37#include <sys/fnv_hash.h> 38 --- 37 unchanged lines hidden (view full) --- 76 77#define IN_LNAOF(in, ifa) \ 78 ((ntohl((in).s_addr) & ~((struct in_ifaddr *)(ifa)->ia_subnetmask)) 79 80 81#ifdef _KERNEL 82extern u_char inetctlerrmap[]; 83 | 31 */ 32 33#ifndef _NETINET_IN_VAR_H_ 34#define _NETINET_IN_VAR_H_ 35 36#include <sys/queue.h> 37#include <sys/fnv_hash.h> 38 --- 37 unchanged lines hidden (view full) --- 76 77#define IN_LNAOF(in, ifa) \ 78 ((ntohl((in).s_addr) & ~((struct in_ifaddr *)(ifa)->ia_subnetmask)) 79 80 81#ifdef _KERNEL 82extern u_char inetctlerrmap[]; 83 |
84/* | 84/* |
85 * Hash table for IP addresses. 86 */ 87extern LIST_HEAD(in_ifaddrhashhead, in_ifaddr) *in_ifaddrhashtbl; 88extern TAILQ_HEAD(in_ifaddrhead, in_ifaddr) in_ifaddrhead; 89extern u_long in_ifaddrhmask; /* mask for hash table */ 90 91#define INADDR_NHASH_LOG2 9 92#define INADDR_NHASH (1 << INADDR_NHASH_LOG2) --- 143 unchanged lines hidden --- | 85 * Hash table for IP addresses. 86 */ 87extern LIST_HEAD(in_ifaddrhashhead, in_ifaddr) *in_ifaddrhashtbl; 88extern TAILQ_HEAD(in_ifaddrhead, in_ifaddr) in_ifaddrhead; 89extern u_long in_ifaddrhmask; /* mask for hash table */ 90 91#define INADDR_NHASH_LOG2 9 92#define INADDR_NHASH (1 << INADDR_NHASH_LOG2) --- 143 unchanged lines hidden --- |