Deleted Added
full compact
ip_var.h (204140) ip_var.h (207369)
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 204140 2010-02-20 19:59:52Z bz $
30 * $FreeBSD: head/sys/netinet/ip_var.h 207369 2010-04-29 11:52:42Z bz $
31 */
32
33#ifndef _NETINET_IP_VAR_H_
34#define _NETINET_IP_VAR_H_
35
36#include <sys/queue.h>
37
38/*

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

176
177VNET_DECLARE(struct ipstat, ipstat);
178VNET_DECLARE(u_short, ip_id); /* ip packet ctr, for ids */
179VNET_DECLARE(int, ip_defttl); /* default IP ttl */
180VNET_DECLARE(int, ipforwarding); /* ip forwarding */
181#ifdef IPSTEALTH
182VNET_DECLARE(int, ipstealth); /* stealth forwarding */
183#endif
31 */
32
33#ifndef _NETINET_IP_VAR_H_
34#define _NETINET_IP_VAR_H_
35
36#include <sys/queue.h>
37
38/*

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

176
177VNET_DECLARE(struct ipstat, ipstat);
178VNET_DECLARE(u_short, ip_id); /* ip packet ctr, for ids */
179VNET_DECLARE(int, ip_defttl); /* default IP ttl */
180VNET_DECLARE(int, ipforwarding); /* ip forwarding */
181#ifdef IPSTEALTH
182VNET_DECLARE(int, ipstealth); /* stealth forwarding */
183#endif
184VNET_DECLARE(int, rsvp_on);
184extern u_char ip_protox[];
185VNET_DECLARE(struct socket *, ip_rsvpd); /* reservation protocol daemon*/
186VNET_DECLARE(struct socket *, ip_mrouter); /* multicast routing daemon */
185VNET_DECLARE(struct socket *, ip_rsvpd); /* reservation protocol daemon*/
186VNET_DECLARE(struct socket *, ip_mrouter); /* multicast routing daemon */
187extern int (*legal_vif_num)(int);
188extern u_long (*ip_mcast_src)(int);
189VNET_DECLARE(int, rsvp_on);
190extern struct pr_usrreqs rip_usrreqs;
187
188#define V_ipstat VNET(ipstat)
189#define V_ip_id VNET(ip_id)
190#define V_ip_defttl VNET(ip_defttl)
191#define V_ipforwarding VNET(ipforwarding)
192#ifdef IPSTEALTH
193#define V_ipstealth VNET(ipstealth)
194#endif
191
192#define V_ipstat VNET(ipstat)
193#define V_ip_id VNET(ip_id)
194#define V_ip_defttl VNET(ip_defttl)
195#define V_ipforwarding VNET(ipforwarding)
196#ifdef IPSTEALTH
197#define V_ipstealth VNET(ipstealth)
198#endif
195#define V_rsvp_on VNET(rsvp_on)
196#define V_ip_rsvpd VNET(ip_rsvpd)
197#define V_ip_mrouter VNET(ip_mrouter)
199#define V_ip_rsvpd VNET(ip_rsvpd)
200#define V_ip_mrouter VNET(ip_mrouter)
201#define V_rsvp_on VNET(rsvp_on)
198
202
199extern u_char ip_protox[];
200extern int (*legal_vif_num)(int);
201extern u_long (*ip_mcast_src)(int);
202extern struct pr_usrreqs rip_usrreqs;
203
204void inp_freemoptions(struct ip_moptions *);
205int inp_getmoptions(struct inpcb *, struct sockopt *);
206int inp_setmoptions(struct inpcb *, struct sockopt *);
207
208int ip_ctloutput(struct socket *, struct sockopt *sopt);
209void ip_drain(void);
210void ip_fini(void *xtp);
211int ip_fragment(struct ip *ip, struct mbuf **m_frag, int mtu,

--- 105 unchanged lines hidden ---
203void inp_freemoptions(struct ip_moptions *);
204int inp_getmoptions(struct inpcb *, struct sockopt *);
205int inp_setmoptions(struct inpcb *, struct sockopt *);
206
207int ip_ctloutput(struct socket *, struct sockopt *sopt);
208void ip_drain(void);
209void ip_fini(void *xtp);
210int ip_fragment(struct ip *ip, struct mbuf **m_frag, int mtu,

--- 105 unchanged lines hidden ---