Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_var.h
Show First 20 Lines • Show All 407 Lines • ▼ Show 20 Lines | |||||
int in6_selectsrc_addr(uint32_t, const struct in6_addr *, | int in6_selectsrc_addr(uint32_t, const struct in6_addr *, | ||||
uint32_t, struct ifnet *, struct in6_addr *, int *); | uint32_t, struct ifnet *, struct in6_addr *, int *); | ||||
int in6_selectroute(struct sockaddr_in6 *, struct ip6_pktopts *, | int in6_selectroute(struct sockaddr_in6 *, struct ip6_pktopts *, | ||||
struct ip6_moptions *, struct route_in6 *, struct ifnet **, | struct ip6_moptions *, struct route_in6 *, struct ifnet **, | ||||
struct nhop_object **, u_int, uint32_t); | struct nhop_object **, u_int, uint32_t); | ||||
u_int32_t ip6_randomid(void); | u_int32_t ip6_randomid(void); | ||||
u_int32_t ip6_randomflowlabel(void); | u_int32_t ip6_randomflowlabel(void); | ||||
void in6_delayed_cksum(struct mbuf *m, uint32_t plen, u_short offset); | void in6_delayed_cksum(struct mbuf *m, uint32_t plen, u_short offset); | ||||
typedef int ip6proto_input_t(struct mbuf **, int *, int); | |||||
typedef void ip6proto_ctlinput_t(int, struct sockaddr *, void *); | |||||
int ip6proto_register(uint8_t, ip6proto_input_t, ip6proto_ctlinput_t); | |||||
int ip6proto_unregister(uint8_t); | |||||
#define IP6PROTO_REGISTER(prot, input, ctl) do { \ | |||||
int error __diagused; \ | |||||
error = ip6proto_register(prot, input, ctl); \ | |||||
MPASS(error == 0); \ | |||||
} while (0) | |||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_NETINET6_IP6_VAR_H_ */ | #endif /* !_NETINET6_IP6_VAR_H_ */ |