34 #ifndef _NETINET_IP_VAR_H_ 35 #define _NETINET_IP_VAR_H_ 59 struct ipq *next,*prev;
77 #if BYTE_ORDER == LITTLE_ENDIAN 81 #if BYTE_ORDER == BIG_ENDIAN 104 #define MAX_IPOPTLEN 40 108 char ipopt_list[MAX_IPOPTLEN];
117 u_char imo_multicast_ttl;
118 u_char imo_multicast_loop;
119 u_short imo_num_memberships;
120 struct in_multi *imo_membership[IP_MAX_MEMBERSHIPS];
121 u_long imo_multicast_vif;
131 u_long ips_fragments;
132 u_long ips_fragdropped;
133 u_long ips_fragtimeout;
135 u_long ips_cantforward;
136 u_long ips_redirectsent;
138 u_long ips_delivered;
141 u_long ips_reassembled;
142 u_long ips_fragmented;
143 u_long ips_ofragments;
145 u_long ips_badoptions;
154 #define IP_FORWARDING 0x1 155 #define IP_RAWOUTPUT 0x2 156 #define IP_SENDONES 0x4 157 #define IP_ROUTETOIF SO_DONTROUTE 158 #define IP_ALLOWBROADCAST SO_BROADCAST 166 extern struct ipstat ipstat;
167 extern u_short ip_id;
168 extern int ip_defttl;
169 extern u_char ip_protox[];
170 extern struct socket *ip_rsvpd;
171 extern struct socket *ip_mrouter;
172 extern int (*legal_vif_num)(int);
173 extern u_long (*ip_mcast_src)(int);
176 int ip_ctloutput(
int,
struct socket *,
int,
int,
struct mbuf **);
180 extern int (*ip_mforward)(
struct ip *,
struct ifnet *,
struct mbuf *,
182 int ip_output(
struct mbuf *,
184 void ip_savecontrol(
struct inpcb *,
struct mbuf **,
struct ip *,
186 void ip_slowtimo(
void);
189 void ip_stripoptions(
struct mbuf *,
struct mbuf *);
190 int rip_ctloutput(
int,
struct socket *,
int,
int,
struct mbuf **);
192 void rip_input(
struct mbuf *,
int);
193 int rip_output(
struct mbuf *,
struct socket *, u_long);
194 int rip_usrreq(
struct socket *,
196 void ipip_input(
struct mbuf *,
int);
197 void rsvp_input(
struct mbuf *,
int);
198 int ip_rsvp_init(
struct socket *);
199 int ip_rsvp_done(
void);
200 int ip_rsvp_vif_init(
struct socket *,
struct mbuf *);
201 int ip_rsvp_vif_done(
struct socket *,
struct mbuf *);
202 void ip_rsvp_force_done(
struct socket *);
206 void div_input(
struct mbuf *,
int);
207 int div_usrreq(
struct socket *,
209 extern u_short ip_divert_port;
210 extern u_short ip_divert_ignore;
Definition: socketvar.h:49