Deleted Added
full compact
ip_var.h (54175) ip_var.h (55009)
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 54175 1999-12-06 00:43:07Z archie $
34 * $FreeBSD: head/sys/netinet/ip_var.h 55009 1999-12-22 19:13:38Z shin $
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 */

--- 83 unchanged lines hidden (view full) ---

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 */
133#define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */
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 */

--- 83 unchanged lines hidden (view full) ---

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 */
133#define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */
134#define IP_SOCKINMRCVIF 0x100 /* IPSEC hack;
135 * socket pointer in sending
136 * packet's m_pkthdr.rcvif */
134
135struct ip;
136struct inpcb;
137struct route;
138struct sockopt;
139
140extern struct ipstat ipstat;
141extern u_short ip_id; /* ip packet ctr, for ids */

--- 19 unchanged lines hidden (view full) ---

161 struct mbuf *));
162void ip_slowtimo __P((void));
163struct mbuf *
164 ip_srcroute __P((void));
165void ip_stripoptions __P((struct mbuf *, struct mbuf *));
166int rip_ctloutput __P((struct socket *, struct sockopt *));
167void rip_ctlinput __P((int, struct sockaddr *, void *));
168void rip_init __P((void));
137
138struct ip;
139struct inpcb;
140struct route;
141struct sockopt;
142
143extern struct ipstat ipstat;
144extern u_short ip_id; /* ip packet ctr, for ids */

--- 19 unchanged lines hidden (view full) ---

164 struct mbuf *));
165void ip_slowtimo __P((void));
166struct mbuf *
167 ip_srcroute __P((void));
168void ip_stripoptions __P((struct mbuf *, struct mbuf *));
169int rip_ctloutput __P((struct socket *, struct sockopt *));
170void rip_ctlinput __P((int, struct sockaddr *, void *));
171void rip_init __P((void));
169void rip_input __P((struct mbuf *, int));
172void rip_input __P((struct mbuf *, int, int));
170int rip_output __P((struct mbuf *, struct socket *, u_long));
173int rip_output __P((struct mbuf *, struct socket *, u_long));
171void ipip_input __P((struct mbuf *, int));
172void rsvp_input __P((struct mbuf *, int));
174void ipip_input __P((struct mbuf *, int, int));
175void rsvp_input __P((struct mbuf *, int, int));
173int ip_rsvp_init __P((struct socket *));
174int ip_rsvp_done __P((void));
175int ip_rsvp_vif_init __P((struct socket *, struct sockopt *));
176int ip_rsvp_vif_done __P((struct socket *, struct sockopt *));
177void ip_rsvp_force_done __P((struct socket *));
178
179#ifdef IPDIVERT
180void div_init __P((void));
176int ip_rsvp_init __P((struct socket *));
177int ip_rsvp_done __P((void));
178int ip_rsvp_vif_init __P((struct socket *, struct sockopt *));
179int ip_rsvp_vif_done __P((struct socket *, struct sockopt *));
180void ip_rsvp_force_done __P((struct socket *));
181
182#ifdef IPDIVERT
183void div_init __P((void));
181void div_input __P((struct mbuf *, int));
184void div_input __P((struct mbuf *, int, int));
182void divert_packet __P((struct mbuf *, int, int));
183extern struct pr_usrreqs div_usrreqs;
184extern u_int16_t ip_divert_cookie;
185#endif
186
187extern struct sockaddr_in *ip_fw_fwd_addr;
188
189#endif /* KERNEL */
190
191#endif /* !_NETINET_IP_VAR_H_ */
185void divert_packet __P((struct mbuf *, int, int));
186extern struct pr_usrreqs div_usrreqs;
187extern u_int16_t ip_divert_cookie;
188#endif
189
190extern struct sockaddr_in *ip_fw_fwd_addr;
191
192#endif /* KERNEL */
193
194#endif /* !_NETINET_IP_VAR_H_ */