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 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 */ |
134#define IP_SOCKINMRCVIF 0x100 /* IPSEC hack; 135 * socket pointer in sending 136 * packet's m_pkthdr.rcvif */ |
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)); |
172void rip_input __P((struct mbuf *, int, int)); |
173int rip_output __P((struct mbuf *, struct socket *, u_long)); |
174void ipip_input __P((struct mbuf *, int, int)); 175void rsvp_input __P((struct mbuf *, int, int)); |
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)); |
184void div_input __P((struct mbuf *, int, int)); |
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_ */ |