ip_var.h (256281) | ip_var.h (263307) |
---|---|
1/*- 2 * Copyright (c) 1982, 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 * @(#)ip_var.h 8.2 (Berkeley) 1/9/95 | 1/*- 2 * Copyright (c) 1982, 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 * @(#)ip_var.h 8.2 (Berkeley) 1/9/95 |
30 * $FreeBSD: stable/10/sys/netinet/ip_var.h 254519 2013-08-19 11:08:36Z andre $ | 30 * $FreeBSD: stable/10/sys/netinet/ip_var.h 263307 2014-03-18 16:56:05Z glebius $ |
31 */ 32 33#ifndef _NETINET_IP_VAR_H_ 34#define _NETINET_IP_VAR_H_ 35 36#include <sys/queue.h> 37 38/* --- 118 unchanged lines hidden (view full) --- 157/* flags passed to ip_output as last parameter */ 158#define IP_FORWARDING 0x1 /* most of ip header exists */ 159#define IP_RAWOUTPUT 0x2 /* raw ip header exists */ 160#define IP_SENDONES 0x4 /* send all-ones broadcast */ 161#define IP_SENDTOIF 0x8 /* send on specific ifnet */ 162#define IP_ROUTETOIF SO_DONTROUTE /* 0x10 bypass routing tables */ 163#define IP_ALLOWBROADCAST SO_BROADCAST /* 0x20 can send broadcast packets */ 164 | 31 */ 32 33#ifndef _NETINET_IP_VAR_H_ 34#define _NETINET_IP_VAR_H_ 35 36#include <sys/queue.h> 37 38/* --- 118 unchanged lines hidden (view full) --- 157/* flags passed to ip_output as last parameter */ 158#define IP_FORWARDING 0x1 /* most of ip header exists */ 159#define IP_RAWOUTPUT 0x2 /* raw ip header exists */ 160#define IP_SENDONES 0x4 /* send all-ones broadcast */ 161#define IP_SENDTOIF 0x8 /* send on specific ifnet */ 162#define IP_ROUTETOIF SO_DONTROUTE /* 0x10 bypass routing tables */ 163#define IP_ALLOWBROADCAST SO_BROADCAST /* 0x20 can send broadcast packets */ 164 |
165/* 166 * IPv4 protocol layer specific mbuf flags. 167 */ 168#define M_FASTFWD_OURS M_PROTO1 /* changed dst to local */ 169#define M_IP_NEXTHOP M_PROTO2 /* explicit ip nexthop */ 170#define M_SKIP_FIREWALL M_PROTO3 /* skip firewall processing, 171 keep in sync with IP6 */ 172#define M_IP_FRAG M_PROTO4 /* fragment reassembly */ 173 | |
174#ifdef __NO_STRICT_ALIGNMENT 175#define IP_HDR_ALIGNED_P(ip) 1 176#else 177#define IP_HDR_ALIGNED_P(ip) ((((intptr_t) (ip)) & 3) == 0) 178#endif 179 180struct ip; 181struct inpcb; --- 140 unchanged lines hidden --- | 165#ifdef __NO_STRICT_ALIGNMENT 166#define IP_HDR_ALIGNED_P(ip) 1 167#else 168#define IP_HDR_ALIGNED_P(ip) ((((intptr_t) (ip)) & 3) == 0) 169#endif 170 171struct ip; 172struct inpcb; --- 140 unchanged lines hidden --- |