Deleted Added
full compact
in_var.h (93085) in_var.h (111888)
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

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)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

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)in_var.h 8.2 (Berkeley) 1/9/95
34 * $FreeBSD: head/sys/netinet/in_var.h 93085 2002-03-24 10:19:10Z bde $
34 * $FreeBSD: head/sys/netinet/in_var.h 111888 2003-03-04 23:19:55Z jlemon $
35 */
36
37#ifndef _NETINET_IN_VAR_H_
38#define _NETINET_IN_VAR_H_
39
40#include <sys/queue.h>
41#include <sys/fnv_hash.h>
42

--- 35 unchanged lines hidden (view full) ---

78#define IA_SIN(ia) (&(((struct in_ifaddr *)(ia))->ia_addr))
79#define IA_DSTSIN(ia) (&(((struct in_ifaddr *)(ia))->ia_dstaddr))
80
81#define IN_LNAOF(in, ifa) \
82 ((ntohl((in).s_addr) & ~((struct in_ifaddr *)(ifa)->ia_subnetmask))
83
84
85#ifdef _KERNEL
35 */
36
37#ifndef _NETINET_IN_VAR_H_
38#define _NETINET_IN_VAR_H_
39
40#include <sys/queue.h>
41#include <sys/fnv_hash.h>
42

--- 35 unchanged lines hidden (view full) ---

78#define IA_SIN(ia) (&(((struct in_ifaddr *)(ia))->ia_addr))
79#define IA_DSTSIN(ia) (&(((struct in_ifaddr *)(ia))->ia_dstaddr))
80
81#define IN_LNAOF(in, ifa) \
82 ((ntohl((in).s_addr) & ~((struct in_ifaddr *)(ifa)->ia_subnetmask))
83
84
85#ifdef _KERNEL
86extern struct ifqueue ipintrq; /* ip packet input queue */
87extern struct in_addr zeroin_addr;
88extern u_char inetctlerrmap[];
89
90/*
91 * Hash table for IP addresses.
92 */
93extern LIST_HEAD(in_ifaddrhashhead, in_ifaddr) *in_ifaddrhashtbl;
94extern TAILQ_HEAD(in_ifaddrhead, in_ifaddr) in_ifaddrhead;

--- 149 unchanged lines hidden ---
86extern struct in_addr zeroin_addr;
87extern u_char inetctlerrmap[];
88
89/*
90 * Hash table for IP addresses.
91 */
92extern LIST_HEAD(in_ifaddrhashhead, in_ifaddr) *in_ifaddrhashtbl;
93extern TAILQ_HEAD(in_ifaddrhead, in_ifaddr) in_ifaddrhead;

--- 149 unchanged lines hidden ---