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 $
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
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));
169void rip_input __P((struct mbuf *, int));
170int rip_output __P((struct mbuf *, struct socket *, u_long));
171void ipip_input __P((struct mbuf *, int));
172void rsvp_input __P((struct mbuf *, 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));
181void div_input __P((struct mbuf *, 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_ */
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 $
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
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));
169void rip_input __P((struct mbuf *, int));
170int rip_output __P((struct mbuf *, struct socket *, u_long));
171void ipip_input __P((struct mbuf *, int));
172void rsvp_input __P((struct mbuf *, 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));
181void div_input __P((struct mbuf *, 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_ */