Deleted Added
full compact
in6_var.h (195727) in6_var.h (207369)
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

53 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
54 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
55 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)in_var.h 8.1 (Berkeley) 6/10/93
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

53 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
54 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
55 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)in_var.h 8.1 (Berkeley) 6/10/93
61 * $FreeBSD: head/sys/netinet6/in6_var.h 195727 2009-07-16 21:13:04Z rwatson $
61 * $FreeBSD: head/sys/netinet6/in6_var.h 207369 2010-04-29 11:52:42Z bz $
62 */
63
64#ifndef _NETINET6_IN6_VAR_H_
65#define _NETINET6_IN6_VAR_H_
66
67#include <sys/tree.h>
68
69#ifdef _KERNEL

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

482
483#ifdef _KERNEL
484#define IN6_ARE_SCOPE_CMP(a,b) ((a)-(b))
485#define IN6_ARE_SCOPE_EQUAL(a,b) ((a)==(b))
486#endif
487
488#ifdef _KERNEL
489VNET_DECLARE(struct in6_ifaddrhead, in6_ifaddrhead);
62 */
63
64#ifndef _NETINET6_IN6_VAR_H_
65#define _NETINET6_IN6_VAR_H_
66
67#include <sys/tree.h>
68
69#ifdef _KERNEL

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

482
483#ifdef _KERNEL
484#define IN6_ARE_SCOPE_CMP(a,b) ((a)-(b))
485#define IN6_ARE_SCOPE_EQUAL(a,b) ((a)==(b))
486#endif
487
488#ifdef _KERNEL
489VNET_DECLARE(struct in6_ifaddrhead, in6_ifaddrhead);
490VNET_DECLARE(struct icmp6stat, icmp6stat);
491VNET_DECLARE(unsigned long, in6_maxmtu);
492
493#define V_in6_ifaddrhead VNET(in6_ifaddrhead)
490#define V_in6_ifaddrhead VNET(in6_ifaddrhead)
494#define V_icmp6stat VNET(icmp6stat)
495#define V_in6_maxmtu VNET(in6_maxmtu)
496
497extern struct rwlock in6_ifaddr_lock;
498#define IN6_IFADDR_LOCK_ASSERT( ) rw_assert(&in6_ifaddr_lock, RA_LOCKED)
499#define IN6_IFADDR_RLOCK() rw_rlock(&in6_ifaddr_lock)
500#define IN6_IFADDR_RLOCK_ASSERT() rw_assert(&in6_ifaddr_lock, RA_RLOCKED)
501#define IN6_IFADDR_RUNLOCK() rw_runlock(&in6_ifaddr_lock)
502#define IN6_IFADDR_WLOCK() rw_wlock(&in6_ifaddr_lock)
503#define IN6_IFADDR_WLOCK_ASSERT() rw_assert(&in6_ifaddr_lock, RA_WLOCKED)
504#define IN6_IFADDR_WUNLOCK() rw_wunlock(&in6_ifaddr_lock)
505
491
492extern struct rwlock in6_ifaddr_lock;
493#define IN6_IFADDR_LOCK_ASSERT( ) rw_assert(&in6_ifaddr_lock, RA_LOCKED)
494#define IN6_IFADDR_RLOCK() rw_rlock(&in6_ifaddr_lock)
495#define IN6_IFADDR_RLOCK_ASSERT() rw_assert(&in6_ifaddr_lock, RA_RLOCKED)
496#define IN6_IFADDR_RUNLOCK() rw_runlock(&in6_ifaddr_lock)
497#define IN6_IFADDR_WLOCK() rw_wlock(&in6_ifaddr_lock)
498#define IN6_IFADDR_WLOCK_ASSERT() rw_assert(&in6_ifaddr_lock, RA_WLOCKED)
499#define IN6_IFADDR_WUNLOCK() rw_wunlock(&in6_ifaddr_lock)
500
501VNET_DECLARE(struct icmp6stat, icmp6stat);
502#define V_icmp6stat VNET(icmp6stat)
506#define in6_ifstat_inc(ifp, tag) \
507do { \
508 if (ifp) \
509 ((struct in6_ifextra *)((ifp)->if_afdata[AF_INET6]))->in6_ifstat->tag++; \
510} while (/*CONSTCOND*/ 0)
511
512extern struct in6_addr zeroin6_addr;
513extern u_char inet6ctlerrmap[];
503#define in6_ifstat_inc(ifp, tag) \
504do { \
505 if (ifp) \
506 ((struct in6_ifextra *)((ifp)->if_afdata[AF_INET6]))->in6_ifstat->tag++; \
507} while (/*CONSTCOND*/ 0)
508
509extern struct in6_addr zeroin6_addr;
510extern u_char inet6ctlerrmap[];
511VNET_DECLARE(unsigned long, in6_maxmtu);
512#define V_in6_maxmtu VNET(in6_maxmtu)
514#endif /* _KERNEL */
515
516/*
517 * IPv6 multicast MLD-layer source entry.
518 */
519struct ip6_msource {
520 RB_ENTRY(ip6_msource) im6s_link; /* RB tree links */
521 struct in6_addr im6s_addr;

--- 266 unchanged lines hidden ---
513#endif /* _KERNEL */
514
515/*
516 * IPv6 multicast MLD-layer source entry.
517 */
518struct ip6_msource {
519 RB_ENTRY(ip6_msource) im6s_link; /* RB tree links */
520 struct in6_addr im6s_addr;

--- 266 unchanged lines hidden ---