ip_var.h (77574) | ip_var.h (78064) |
---|---|
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 * $FreeBSD: head/sys/netinet/ip_var.h 77574 2001-06-01 10:02:28Z kris $ | 34 * $FreeBSD: head/sys/netinet/ip_var.h 78064 2001-06-11 12:39:29Z ume $ |
35 */ 36 37#ifndef _NETINET_IP_VAR_H_ 38#define _NETINET_IP_VAR_H_ 39 | 35 */ 36 37#ifndef _NETINET_IP_VAR_H_ 38#define _NETINET_IP_VAR_H_ 39 |
40#include <sys/queue.h> 41 |
|
40/* 41 * Overlay for ip header used by other protocols (tcp, udp). 42 */ 43struct ipovly { 44 u_char ih_x1[9]; /* (unused) */ 45 u_char ih_pr; /* protocol */ 46 u_short ih_len; /* protocol length */ 47 struct in_addr ih_src; /* source internet address */ --- 33 unchanged lines hidden (view full) --- 81}; 82 83/* 84 * Structure attached to inpcb.ip_moptions and 85 * passed to ip_output when IP multicast options are in use. 86 */ 87struct ip_moptions { 88 struct ifnet *imo_multicast_ifp; /* ifp for outgoing multicasts */ | 42/* 43 * Overlay for ip header used by other protocols (tcp, udp). 44 */ 45struct ipovly { 46 u_char ih_x1[9]; /* (unused) */ 47 u_char ih_pr; /* protocol */ 48 u_short ih_len; /* protocol length */ 49 struct in_addr ih_src; /* source internet address */ --- 33 unchanged lines hidden (view full) --- 83}; 84 85/* 86 * Structure attached to inpcb.ip_moptions and 87 * passed to ip_output when IP multicast options are in use. 88 */ 89struct ip_moptions { 90 struct ifnet *imo_multicast_ifp; /* ifp for outgoing multicasts */ |
91 struct in_addr imo_multicast_addr; /* ifindex/addr on MULTICAST_IF */ |
|
89 u_char imo_multicast_ttl; /* TTL for outgoing multicasts */ 90 u_char imo_multicast_loop; /* 1 => hear sends if a member */ 91 u_short imo_num_memberships; /* no. memberships this socket */ 92 struct in_multi *imo_membership[IP_MAX_MEMBERSHIPS]; 93 u_long imo_multicast_vif; /* vif num outgoing multicasts */ 94}; 95 96struct ipstat { --- 20 unchanged lines hidden (view full) --- 117 u_long ips_cantfrag; /* don't fragment flag was set, etc. */ 118 u_long ips_badoptions; /* error in option processing */ 119 u_long ips_noroute; /* packets discarded due to no route */ 120 u_long ips_badvers; /* ip version != 4 */ 121 u_long ips_rawout; /* total raw ip packets generated */ 122 u_long ips_toolong; /* ip length > max ip packet size */ 123 u_long ips_notmember; /* multicasts for unregistered grps */ 124 u_long ips_nogif; /* no match gif found */ | 92 u_char imo_multicast_ttl; /* TTL for outgoing multicasts */ 93 u_char imo_multicast_loop; /* 1 => hear sends if a member */ 94 u_short imo_num_memberships; /* no. memberships this socket */ 95 struct in_multi *imo_membership[IP_MAX_MEMBERSHIPS]; 96 u_long imo_multicast_vif; /* vif num outgoing multicasts */ 97}; 98 99struct ipstat { --- 20 unchanged lines hidden (view full) --- 120 u_long ips_cantfrag; /* don't fragment flag was set, etc. */ 121 u_long ips_badoptions; /* error in option processing */ 122 u_long ips_noroute; /* packets discarded due to no route */ 123 u_long ips_badvers; /* ip version != 4 */ 124 u_long ips_rawout; /* total raw ip packets generated */ 125 u_long ips_toolong; /* ip length > max ip packet size */ 126 u_long ips_notmember; /* multicasts for unregistered grps */ 127 u_long ips_nogif; /* no match gif found */ |
128 u_long ips_badaddr; /* invalid address on header */ |
|
125}; 126 127#ifdef _KERNEL 128 129/* flags passed to ip_output as last parameter */ 130#define IP_FORWARDING 0x1 /* most of ip header exists */ 131#define IP_RAWOUTPUT 0x2 /* raw ip header exists */ 132#define IP_ROUTETOIF SO_DONTROUTE /* bypass routing tables */ --- 68 unchanged lines hidden --- | 129}; 130 131#ifdef _KERNEL 132 133/* flags passed to ip_output as last parameter */ 134#define IP_FORWARDING 0x1 /* most of ip header exists */ 135#define IP_RAWOUTPUT 0x2 /* raw ip header exists */ 136#define IP_ROUTETOIF SO_DONTROUTE /* bypass routing tables */ --- 68 unchanged lines hidden --- |