Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_var.h
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* IP6 reinjecting structure. | * IP6 reinjecting structure. | ||||
*/ | */ | ||||
struct ip6_direct_ctx { | struct ip6_direct_ctx { | ||||
uint32_t ip6dc_nxt; /* next header to process */ | uint32_t ip6dc_nxt; /* next header to process */ | ||||
uint32_t ip6dc_off; /* offset to next header */ | uint32_t ip6dc_off; /* offset to next header */ | ||||
}; | }; | ||||
#if defined(_NETINET6_IN6_VAR_H_) && defined(_KERNEL) | |||||
/* | /* | ||||
* Structure attached to inpcb.in6p_moptions and | * Structure attached to inpcb.in6p_moptions and | ||||
* passed to ip6_output when IPv6 multicast options are in use. | * passed to ip6_output when IPv6 multicast options are in use. | ||||
* This structure is lazy-allocated. | * This structure is lazy-allocated. | ||||
*/ | */ | ||||
struct ip6_moptions { | struct ip6_moptions { | ||||
struct ifnet *im6o_multicast_ifp; /* ifp for outgoing multicasts */ | struct ifnet *im6o_multicast_ifp; /* ifp for outgoing multicasts */ | ||||
u_char im6o_multicast_hlim; /* hoplimit for outgoing multicasts */ | u_char im6o_multicast_hlim; /* hoplimit for outgoing multicasts */ | ||||
u_char im6o_multicast_loop; /* 1 >= hear sends if a member */ | u_char im6o_multicast_loop; /* 1 >= hear sends if a member */ | ||||
u_short im6o_num_memberships; /* no. memberships this socket */ | ip6_mfilter_head_t im6o_head; /* group memberships */ | ||||
u_short im6o_max_memberships; /* max memberships this socket */ | |||||
struct in6_multi **im6o_membership; /* group memberships */ | |||||
struct in6_mfilter *im6o_mfilters; /* source filters */ | |||||
struct epoch_context imo6_epoch_ctx; | struct epoch_context imo6_epoch_ctx; | ||||
}; | }; | ||||
#else | |||||
struct ip6_moptions; | |||||
#endif | |||||
/* | /* | ||||
* Control options for outgoing packets | * Control options for outgoing packets | ||||
*/ | */ | ||||
/* Routing header related info */ | /* Routing header related info */ | ||||
struct ip6po_rhinfo { | struct ip6po_rhinfo { | ||||
struct ip6_rthdr *ip6po_rhi_rthdr; /* Routing header */ | struct ip6_rthdr *ip6po_rhi_rthdr; /* Routing header */ | ||||
struct route_in6 ip6po_rhi_route; /* Route to the 1st hop */ | struct route_in6 ip6po_rhi_route; /* Route to the 1st hop */ | ||||
▲ Show 20 Lines • Show All 314 Lines • Show Last 20 Lines |