ip_var.h (19136) | ip_var.h (19183) |
---|---|
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 --- 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 * @(#)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 --- 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 * @(#)ip_var.h 8.2 (Berkeley) 1/9/95 |
34 * $Id: ip_var.h,v 1.22 1996/10/15 16:54:47 bde Exp $ | 34 * $Id: ip_var.h,v 1.23 1996/10/23 18:35:50 wollman Exp $ |
35 */ 36 37#ifndef _NETINET_IP_VAR_H_ 38#define _NETINET_IP_VAR_H_ 39 40/* 41 * Overlay for ip header used by other protocols (tcp, udp). 42 */ 43struct ipovly { 44 caddr_t ih_next, ih_prev; /* for protocol sequence q's */ 45 u_char ih_x1; /* (unused) */ 46 u_char ih_pr; /* protocol */ | 35 */ 36 37#ifndef _NETINET_IP_VAR_H_ 38#define _NETINET_IP_VAR_H_ 39 40/* 41 * Overlay for ip header used by other protocols (tcp, udp). 42 */ 43struct ipovly { 44 caddr_t ih_next, ih_prev; /* for protocol sequence q's */ 45 u_char ih_x1; /* (unused) */ 46 u_char ih_pr; /* protocol */ |
47 short ih_len; /* protocol length */ | 47 u_short ih_len; /* protocol length */ |
48 struct in_addr ih_src; /* source internet address */ 49 struct in_addr ih_dst; /* destination internet address */ 50}; 51 52/* 53 * Ip reassembly queue structure. Each fragment 54 * being reassembled is attached to one of these structures. 55 * They are timed out after ipq_ttl drops to 0, and may also --- 85 unchanged lines hidden (view full) --- 141 u_long ips_reassembled; /* total packets reassembled ok */ 142 u_long ips_fragmented; /* datagrams successfully fragmented */ 143 u_long ips_ofragments; /* output fragments created */ 144 u_long ips_cantfrag; /* don't fragment flag was set, etc. */ 145 u_long ips_badoptions; /* error in option processing */ 146 u_long ips_noroute; /* packets discarded due to no route */ 147 u_long ips_badvers; /* ip version != 4 */ 148 u_long ips_rawout; /* total raw ip packets generated */ | 48 struct in_addr ih_src; /* source internet address */ 49 struct in_addr ih_dst; /* destination internet address */ 50}; 51 52/* 53 * Ip reassembly queue structure. Each fragment 54 * being reassembled is attached to one of these structures. 55 * They are timed out after ipq_ttl drops to 0, and may also --- 85 unchanged lines hidden (view full) --- 141 u_long ips_reassembled; /* total packets reassembled ok */ 142 u_long ips_fragmented; /* datagrams successfully fragmented */ 143 u_long ips_ofragments; /* output fragments created */ 144 u_long ips_cantfrag; /* don't fragment flag was set, etc. */ 145 u_long ips_badoptions; /* error in option processing */ 146 u_long ips_noroute; /* packets discarded due to no route */ 147 u_long ips_badvers; /* ip version != 4 */ 148 u_long ips_rawout; /* total raw ip packets generated */ |
149 u_long ips_toolong; /* ip length > max ip packet size */ |
|
149}; 150 151#ifdef KERNEL 152/* flags passed to ip_output as last parameter */ 153#define IP_FORWARDING 0x1 /* most of ip header exists */ 154#define IP_RAWOUTPUT 0x2 /* raw ip header exists */ 155#define IP_ROUTETOIF SO_DONTROUTE /* bypass routing tables */ 156#define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */ --- 52 unchanged lines hidden --- | 150}; 151 152#ifdef KERNEL 153/* flags passed to ip_output as last parameter */ 154#define IP_FORWARDING 0x1 /* most of ip header exists */ 155#define IP_RAWOUTPUT 0x2 /* raw ip header exists */ 156#define IP_ROUTETOIF SO_DONTROUTE /* bypass routing tables */ 157#define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */ --- 52 unchanged lines hidden --- |