ip_var.h (152608) | ip_var.h (158563) |
---|---|
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: head/sys/netinet/ip_var.h 152608 2005-11-19 14:01:32Z andre $ | 30 * $FreeBSD: head/sys/netinet/ip_var.h 158563 2006-05-14 14:22:49Z bms $ |
31 */ 32 33#ifndef _NETINET_IP_VAR_H_ 34#define _NETINET_IP_VAR_H_ 35 36#include <sys/queue.h> 37 38/* --- 41 unchanged lines hidden (view full) --- 80 81/* 82 * Structure attached to inpcb.ip_moptions and 83 * passed to ip_output when IP multicast options are in use. 84 */ 85struct ip_moptions { 86 struct ifnet *imo_multicast_ifp; /* ifp for outgoing multicasts */ 87 struct in_addr imo_multicast_addr; /* ifindex/addr on MULTICAST_IF */ | 31 */ 32 33#ifndef _NETINET_IP_VAR_H_ 34#define _NETINET_IP_VAR_H_ 35 36#include <sys/queue.h> 37 38/* --- 41 unchanged lines hidden (view full) --- 80 81/* 82 * Structure attached to inpcb.ip_moptions and 83 * passed to ip_output when IP multicast options are in use. 84 */ 85struct ip_moptions { 86 struct ifnet *imo_multicast_ifp; /* ifp for outgoing multicasts */ 87 struct in_addr imo_multicast_addr; /* ifindex/addr on MULTICAST_IF */ |
88 u_long imo_multicast_vif; /* vif num outgoing multicasts */ |
|
88 u_char imo_multicast_ttl; /* TTL for outgoing multicasts */ 89 u_char imo_multicast_loop; /* 1 => hear sends if a member */ 90 u_short imo_num_memberships; /* no. memberships this socket */ | 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 */ |
91 struct in_multi *imo_membership[IP_MAX_MEMBERSHIPS]; 92 u_long imo_multicast_vif; /* vif num outgoing multicasts */ | 92 u_short imo_max_memberships; /* max memberships this socket */ 93 struct in_multi **imo_membership; /* group memberships */ |
93}; 94 95struct ipstat { 96 u_long ips_total; /* total packets received */ 97 u_long ips_badsum; /* checksum bad */ 98 u_long ips_tooshort; /* packet too short */ 99 u_long ips_toosmall; /* not enough data */ 100 u_long ips_badhlen; /* ip header length < data size */ --- 119 unchanged lines hidden --- | 94}; 95 96struct ipstat { 97 u_long ips_total; /* total packets received */ 98 u_long ips_badsum; /* checksum bad */ 99 u_long ips_tooshort; /* packet too short */ 100 u_long ips_toosmall; /* not enough data */ 101 u_long ips_badhlen; /* ip header length < data size */ --- 119 unchanged lines hidden --- |