ip_var.h (1e3d5af041d043bba88c2393d7363d24d92b696a) ip_var.h (64dddc18727af4db4a6047ff86291d981f6e9042)
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

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

133#define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */
134
135struct ip;
136struct inpcb;
137struct route;
138struct sockopt;
139
140extern struct ipstat ipstat;
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

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

133#define IP_ALLOWBROADCAST SO_BROADCAST /* can send broadcast packets */
134
135struct ip;
136struct inpcb;
137struct route;
138struct sockopt;
139
140extern struct ipstat ipstat;
141#ifndef RANDOM_IP_ID
141extern u_short ip_id; /* ip packet ctr, for ids */
142extern u_short ip_id; /* ip packet ctr, for ids */
143#endif
142extern int ip_defttl; /* default IP ttl */
143extern int ipforwarding; /* ip forwarding */
144extern struct route ipforward_rt; /* ip forwarding cached route */
145extern u_char ip_protox[];
146extern struct socket *ip_rsvpd; /* reservation protocol daemon */
147extern struct socket *ip_mrouter; /* multicast routing daemon */
148extern int (*legal_vif_num) __P((int));
149extern u_long (*ip_mcast_src) __P((int));

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

159int ip_output __P((struct mbuf *,
160 struct mbuf *, struct route *, int, struct ip_moptions *));
161void ip_savecontrol __P((struct inpcb *, struct mbuf **, struct ip *,
162 struct mbuf *));
163void ip_slowtimo __P((void));
164struct mbuf *
165 ip_srcroute __P((void));
166void ip_stripoptions __P((struct mbuf *, struct mbuf *));
144extern int ip_defttl; /* default IP ttl */
145extern int ipforwarding; /* ip forwarding */
146extern struct route ipforward_rt; /* ip forwarding cached route */
147extern u_char ip_protox[];
148extern struct socket *ip_rsvpd; /* reservation protocol daemon */
149extern struct socket *ip_mrouter; /* multicast routing daemon */
150extern int (*legal_vif_num) __P((int));
151extern u_long (*ip_mcast_src) __P((int));

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

161int ip_output __P((struct mbuf *,
162 struct mbuf *, struct route *, int, struct ip_moptions *));
163void ip_savecontrol __P((struct inpcb *, struct mbuf **, struct ip *,
164 struct mbuf *));
165void ip_slowtimo __P((void));
166struct mbuf *
167 ip_srcroute __P((void));
168void ip_stripoptions __P((struct mbuf *, struct mbuf *));
169#ifdef RANDOM_IP_ID
170u_int16_t
171 ip_randomid __P((void));
172#endif
167int rip_ctloutput __P((struct socket *, struct sockopt *));
168void rip_ctlinput __P((int, struct sockaddr *, void *));
169void rip_init __P((void));
170void rip_input __P((struct mbuf *, int, int));
171int rip_output __P((struct mbuf *, struct socket *, u_long));
172void ipip_input __P((struct mbuf *, int, int));
173void rsvp_input __P((struct mbuf *, int, int));
174int ip_rsvp_init __P((struct socket *));

--- 20 unchanged lines hidden ---
173int rip_ctloutput __P((struct socket *, struct sockopt *));
174void rip_ctlinput __P((int, struct sockaddr *, void *));
175void rip_init __P((void));
176void rip_input __P((struct mbuf *, int, int));
177int rip_output __P((struct mbuf *, struct socket *, u_long));
178void ipip_input __P((struct mbuf *, int, int));
179void rsvp_input __P((struct mbuf *, int, int));
180int ip_rsvp_init __P((struct socket *));

--- 20 unchanged lines hidden ---