Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/mld6_var.h
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
#define MLD_URI_MIN 0 | #define MLD_URI_MIN 0 | ||||
#define MLD_URI_MAX 10 | #define MLD_URI_MAX 10 | ||||
#define MLD_MAX_GS_SOURCES 256 /* # of sources in rx GS query */ | #define MLD_MAX_GS_SOURCES 256 /* # of sources in rx GS query */ | ||||
#define MLD_MAX_G_GS_PACKETS 8 /* # of packets to answer G/GS */ | #define MLD_MAX_G_GS_PACKETS 8 /* # of packets to answer G/GS */ | ||||
#define MLD_MAX_STATE_CHANGE_PACKETS 8 /* # of packets per state change */ | #define MLD_MAX_STATE_CHANGE_PACKETS 8 /* # of packets per state change */ | ||||
#define MLD_MAX_RESPONSE_PACKETS 16 /* # of packets for general query */ | #define MLD_MAX_RESPONSE_PACKETS 16 /* # of packets for general query */ | ||||
#define MLD_MAX_RESPONSE_BURST 4 /* # of responses to send at once */ | #define MLD_MAX_RESPONSE_BURST 4 /* # of responses to send at once */ | ||||
#define MLD_RESPONSE_BURST_INTERVAL (PR_FASTHZ / 2) /* 500ms */ | #define MLD_RESPONSE_BURST_INTERVAL (MLD_FASTHZ / 2) /* 500ms */ | ||||
/* | /* | ||||
* MLD-specific mbuf flags. | * MLD-specific mbuf flags. | ||||
*/ | */ | ||||
#define M_MLDV1 M_PROTO1 /* Packet is MLDv1 */ | #define M_MLDV1 M_PROTO1 /* Packet is MLDv1 */ | ||||
#define M_GROUPREC M_PROTO3 /* mbuf chain is a group record */ | #define M_GROUPREC M_PROTO3 /* mbuf chain is a group record */ | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
#define MLD_IFINFO(ifp) \ | #define MLD_IFINFO(ifp) \ | ||||
(((struct in6_ifextra *)(ifp)->if_afdata[AF_INET6])->mld_ifinfo) | (((struct in6_ifextra *)(ifp)->if_afdata[AF_INET6])->mld_ifinfo) | ||||
struct in6_multi_head; | struct in6_multi_head; | ||||
int mld_change_state(struct in6_multi *, const int); | int mld_change_state(struct in6_multi *, const int); | ||||
struct mld_ifsoftc * | struct mld_ifsoftc * | ||||
mld_domifattach(struct ifnet *); | mld_domifattach(struct ifnet *); | ||||
void mld_domifdetach(struct ifnet *); | void mld_domifdetach(struct ifnet *); | ||||
void mld_fasttimo(void); | |||||
void mld_ifdetach(struct ifnet *, struct in6_multi_head *); | void mld_ifdetach(struct ifnet *, struct in6_multi_head *); | ||||
int mld_input(struct mbuf **, int, int); | int mld_input(struct mbuf **, int, int); | ||||
void mld_slowtimo(void); | |||||
#define MLD_SLOWHZ 2 /* 2 slow timeouts per second */ | |||||
#define MLD_FASTHZ 5 /* 5 fast timeouts per second */ | |||||
#ifdef SYSCTL_DECL | #ifdef SYSCTL_DECL | ||||
SYSCTL_DECL(_net_inet6_mld); | SYSCTL_DECL(_net_inet6_mld); | ||||
#endif | #endif | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* _NETINET6_MLD6_VAR_H_ */ | #endif /* _NETINET6_MLD6_VAR_H_ */ |