Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_var.h
Show First 20 Lines • Show All 388 Lines • ▼ Show 20 Lines | |||||
int route6_input(struct mbuf **, int *, int); | int route6_input(struct mbuf **, int *, int); | ||||
void frag6_init(void); | void frag6_init(void); | ||||
void frag6_destroy(void); | void frag6_destroy(void); | ||||
int frag6_input(struct mbuf **, int *, int); | int frag6_input(struct mbuf **, int *, int); | ||||
void frag6_drain(void); | void frag6_drain(void); | ||||
void rip6_init(void); | void rip6_init(void); | ||||
int rip6_input(struct mbuf **, int *, int); | |||||
void rip6_ctlinput(int, struct sockaddr *, void *); | |||||
int rip6_ctloutput(struct socket *, struct sockopt *); | int rip6_ctloutput(struct socket *, struct sockopt *); | ||||
int rip6_usrreq(struct socket *, | int rip6_usrreq(struct socket *, | ||||
int, struct mbuf *, struct mbuf *, struct mbuf *, struct thread *); | int, struct mbuf *, struct mbuf *, struct mbuf *, struct thread *); | ||||
int dest6_input(struct mbuf **, int *, int); | int dest6_input(struct mbuf **, int *, int); | ||||
int none_input(struct mbuf **, int *, int); | int none_input(struct mbuf **, int *, int); | ||||
int in6_selectsrc_socket(struct sockaddr_in6 *, struct ip6_pktopts *, | int in6_selectsrc_socket(struct sockaddr_in6 *, struct ip6_pktopts *, | ||||
Show All 32 Lines | struct ip6ctlparam { | ||||
struct sockaddr_in6 *ip6c_src; /* srcaddr w/ additional info */ | struct sockaddr_in6 *ip6c_src; /* srcaddr w/ additional info */ | ||||
struct sockaddr_in6 *ip6c_dst; /* (final) dstaddr w/ additional info */ | struct sockaddr_in6 *ip6c_dst; /* (final) dstaddr w/ additional info */ | ||||
struct in6_addr *ip6c_finaldst; /* final destination address */ | struct in6_addr *ip6c_finaldst; /* final destination address */ | ||||
void *ip6c_cmdarg; /* control command dependent data */ | void *ip6c_cmdarg; /* control command dependent data */ | ||||
u_int8_t ip6c_nxt; /* final next header field */ | u_int8_t ip6c_nxt; /* final next header field */ | ||||
}; | }; | ||||
typedef int ip6proto_input_t(struct mbuf **, int *, int); | typedef int ip6proto_input_t(struct mbuf **, int *, int); | ||||
typedef void ip6proto_ctlinput_t(int, struct sockaddr *, void *); | typedef void ip6proto_ctlinput_t(int, struct sockaddr_in6 *, | ||||
struct ip6ctlparam *); | |||||
int ip6proto_register(uint8_t, ip6proto_input_t, ip6proto_ctlinput_t); | int ip6proto_register(uint8_t, ip6proto_input_t, ip6proto_ctlinput_t); | ||||
int ip6proto_unregister(uint8_t); | int ip6proto_unregister(uint8_t); | ||||
#define IP6PROTO_REGISTER(prot, input, ctl) do { \ | #define IP6PROTO_REGISTER(prot, input, ctl) do { \ | ||||
int error __diagused; \ | int error __diagused; \ | ||||
error = ip6proto_register(prot, input, ctl); \ | error = ip6proto_register(prot, input, ctl); \ | ||||
MPASS(error == 0); \ | MPASS(error == 0); \ | ||||
} while (0) | } while (0) | ||||
ip6proto_input_t rip6_input; | |||||
ip6proto_ctlinput_t rip6_ctlinput; | |||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_NETINET6_IP6_VAR_H_ */ | #endif /* !_NETINET6_IP6_VAR_H_ */ |