ip6_var.h (256281) | ip6_var.h (263307) |
---|---|
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 * @(#)ip_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 * @(#)ip_var.h 8.1 (Berkeley) 6/10/93 |
61 * $FreeBSD: stable/10/sys/netinet6/ip6_var.h 254519 2013-08-19 11:08:36Z andre $ | 61 * $FreeBSD: stable/10/sys/netinet6/ip6_var.h 263307 2014-03-18 16:56:05Z glebius $ |
62 */ 63 64#ifndef _NETINET6_IP6_VAR_H_ 65#define _NETINET6_IP6_VAR_H_ 66 67/* 68 * IP6 reassembly queue structure. Each fragment 69 * being reassembled is attached to one of these structures. --- 218 unchanged lines hidden (view full) --- 288#endif 289 290#ifdef _KERNEL 291/* flags passed to ip6_output as last parameter */ 292#define IPV6_UNSPECSRC 0x01 /* allow :: as the source address */ 293#define IPV6_FORWARDING 0x02 /* most of IPv6 header exists */ 294#define IPV6_MINMTU 0x04 /* use minimum MTU (IPV6_USE_MIN_MTU) */ 295 | 62 */ 63 64#ifndef _NETINET6_IP6_VAR_H_ 65#define _NETINET6_IP6_VAR_H_ 66 67/* 68 * IP6 reassembly queue structure. Each fragment 69 * being reassembled is attached to one of these structures. --- 218 unchanged lines hidden (view full) --- 288#endif 289 290#ifdef _KERNEL 291/* flags passed to ip6_output as last parameter */ 292#define IPV6_UNSPECSRC 0x01 /* allow :: as the source address */ 293#define IPV6_FORWARDING 0x02 /* most of IPv6 header exists */ 294#define IPV6_MINMTU 0x04 /* use minimum MTU (IPV6_USE_MIN_MTU) */ 295 |
296/* 297 * IPv6 protocol layer specific mbuf flags. 298 */ 299#define M_IP6_NEXTHOP M_PROTO2 /* explicit ip nexthop */ 300#define M_SKIP_FIREWALL M_PROTO3 /* skip firewall processing, 301 keep in sync with IPv4 */ 302 | |
303#ifdef __NO_STRICT_ALIGNMENT 304#define IP6_HDR_ALIGNED_P(ip) 1 305#else 306#define IP6_HDR_ALIGNED_P(ip) ((((intptr_t) (ip)) & 3) == 0) 307#endif 308 309VNET_DECLARE(int, ip6_defhlim); /* default hop limit */ 310VNET_DECLARE(int, ip6_defmcasthlim); /* default multicast hop limit */ --- 158 unchanged lines hidden --- | 296#ifdef __NO_STRICT_ALIGNMENT 297#define IP6_HDR_ALIGNED_P(ip) 1 298#else 299#define IP6_HDR_ALIGNED_P(ip) ((((intptr_t) (ip)) & 3) == 0) 300#endif 301 302VNET_DECLARE(int, ip6_defhlim); /* default hop limit */ 303VNET_DECLARE(int, ip6_defmcasthlim); /* default multicast hop limit */ --- 158 unchanged lines hidden --- |