Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_var.h
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | int ip_output(struct mbuf *, | ||||
struct mbuf *, struct route *, int, struct ip_moptions *, | struct mbuf *, struct route *, int, struct ip_moptions *, | ||||
struct inpcb *); | struct inpcb *); | ||||
struct mbuf * | struct mbuf * | ||||
ip_reass(struct mbuf *); | ip_reass(struct mbuf *); | ||||
void ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *, | void ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *, | ||||
struct mbuf *); | struct mbuf *); | ||||
void ip_fillid(struct ip *); | void ip_fillid(struct ip *); | ||||
int rip_ctloutput(struct socket *, struct sockopt *); | int rip_ctloutput(struct socket *, struct sockopt *); | ||||
void rip_ctlinput(int, struct sockaddr *, void *); | |||||
int rip_input(struct mbuf **, int *, int); | |||||
int ipip_input(struct mbuf **, int *, int); | int ipip_input(struct mbuf **, int *, int); | ||||
int rsvp_input(struct mbuf **, int *, int); | int rsvp_input(struct mbuf **, int *, int); | ||||
int ip_rsvp_init(struct socket *); | int ip_rsvp_init(struct socket *); | ||||
int ip_rsvp_done(void); | int ip_rsvp_done(void); | ||||
extern int (*ip_rsvp_vif)(struct socket *, struct sockopt *); | extern int (*ip_rsvp_vif)(struct socket *, struct sockopt *); | ||||
extern void (*ip_rsvp_force_done)(struct socket *); | extern void (*ip_rsvp_force_done)(struct socket *); | ||||
extern int (*rsvp_input_p)(struct mbuf **, int *, int); | extern int (*rsvp_input_p)(struct mbuf **, int *, int); | ||||
typedef int ipproto_input_t(struct mbuf **, int *, int); | typedef int ipproto_input_t(struct mbuf **, int *, int); | ||||
typedef void ipproto_ctlinput_t(int, struct sockaddr *, void *); | typedef void ipproto_ctlinput_t(int, struct sockaddr_in *, struct ip *); | ||||
int ipproto_register(uint8_t, ipproto_input_t, ipproto_ctlinput_t); | int ipproto_register(uint8_t, ipproto_input_t, ipproto_ctlinput_t); | ||||
int ipproto_unregister(uint8_t); | int ipproto_unregister(uint8_t); | ||||
#define IPPROTO_REGISTER(prot, input, ctl) do { \ | #define IPPROTO_REGISTER(prot, input, ctl) do { \ | ||||
int error __diagused; \ | int error __diagused; \ | ||||
error = ipproto_register(prot, input, ctl); \ | error = ipproto_register(prot, input, ctl); \ | ||||
MPASS(error == 0); \ | MPASS(error == 0); \ | ||||
} while (0) | } while (0) | ||||
ipproto_input_t rip_input; | |||||
ipproto_ctlinput_t rip_ctlinput; | |||||
VNET_DECLARE(struct pfil_head *, inet_pfil_head); | VNET_DECLARE(struct pfil_head *, inet_pfil_head); | ||||
#define V_inet_pfil_head VNET(inet_pfil_head) | #define V_inet_pfil_head VNET(inet_pfil_head) | ||||
#define PFIL_INET_NAME "inet" | #define PFIL_INET_NAME "inet" | ||||
void in_delayed_cksum(struct mbuf *m); | void in_delayed_cksum(struct mbuf *m); | ||||
/* Hooks for ipfw, dummynet, divert etc. Most are declared in raw_ip.c */ | /* Hooks for ipfw, dummynet, divert etc. Most are declared in raw_ip.c */ | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |