in6_var.h (186048) | in6_var.h (186119) |
---|---|
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 186048 2008-12-13 19:13:03Z bz $ | 61 * $FreeBSD: head/sys/netinet6/in6_var.h 186119 2008-12-15 06:10:57Z qingli $ |
62 */ 63 64#ifndef _NETINET6_IN6_VAR_H_ 65#define _NETINET6_IN6_VAR_H_ 66 67/* 68 * Interface address, Internet version. One of these structures 69 * is allocated for each interface with an Internet address. --- 13 unchanged lines hidden (view full) --- 83 time_t ia6t_expire; /* valid lifetime expiration time */ 84 time_t ia6t_preferred; /* preferred lifetime expiration time */ 85 u_int32_t ia6t_vltime; /* valid lifetime */ 86 u_int32_t ia6t_pltime; /* prefix lifetime */ 87}; 88 89struct nd_ifinfo; 90struct scope6_id; | 62 */ 63 64#ifndef _NETINET6_IN6_VAR_H_ 65#define _NETINET6_IN6_VAR_H_ 66 67/* 68 * Interface address, Internet version. One of these structures 69 * is allocated for each interface with an Internet address. --- 13 unchanged lines hidden (view full) --- 83 time_t ia6t_expire; /* valid lifetime expiration time */ 84 time_t ia6t_preferred; /* preferred lifetime expiration time */ 85 u_int32_t ia6t_vltime; /* valid lifetime */ 86 u_int32_t ia6t_pltime; /* prefix lifetime */ 87}; 88 89struct nd_ifinfo; 90struct scope6_id; |
91struct lltable; |
|
91struct in6_ifextra { 92 struct in6_ifstat *in6_ifstat; 93 struct icmp6_ifstat *icmp6_ifstat; 94 struct nd_ifinfo *nd_ifinfo; 95 struct scope6_id *scope6_id; | 92struct in6_ifextra { 93 struct in6_ifstat *in6_ifstat; 94 struct icmp6_ifstat *icmp6_ifstat; 95 struct nd_ifinfo *nd_ifinfo; 96 struct scope6_id *scope6_id; |
97 struct lltable *lltable; |
|
96}; 97 | 98}; 99 |
100#define LLTABLE6(ifp) (((struct in6_ifextra *)(ifp)->if_afdata[AF_INET6])->lltable) 101 |
|
98struct in6_ifaddr { 99 struct ifaddr ia_ifa; /* protocol-independent info */ 100#define ia_ifp ia_ifa.ifa_ifp 101#define ia_flags ia_ifa.ifa_flags 102 struct sockaddr_in6 ia_addr; /* interface address */ 103 struct sockaddr_in6 ia_net; /* network number of interface */ 104 struct sockaddr_in6 ia_dstaddr; /* space for destination addr */ 105 struct sockaddr_in6 ia_prefixmask; /* prefix mask */ --- 530 unchanged lines hidden --- | 102struct in6_ifaddr { 103 struct ifaddr ia_ifa; /* protocol-independent info */ 104#define ia_ifp ia_ifa.ifa_ifp 105#define ia_flags ia_ifa.ifa_flags 106 struct sockaddr_in6 ia_addr; /* interface address */ 107 struct sockaddr_in6 ia_net; /* network number of interface */ 108 struct sockaddr_in6 ia_dstaddr; /* space for destination addr */ 109 struct sockaddr_in6 ia_prefixmask; /* prefix mask */ --- 530 unchanged lines hidden --- |