Lines Matching refs:im6o
167 struct ip6_moptions *im6o,
391 if (im6o != NULL && IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
394 ippo->ippo_mcast_ifnet = im6o->im6o_multicast_ifp;
395 ippo->ippo_mcast_ttl = im6o->im6o_multicast_hlim;
396 ippo->ippo_mcast_loop = im6o->im6o_multicast_loop;
694 if (im6o != NULL) {
695 ip6->ip6_hlim = im6o->im6o_multicast_hlim;
696 if (im6o->im6o_multicast_ifp != NULL)
697 ifp = im6o->im6o_multicast_ifp;
775 (im6o == NULL || im6o->im6o_multicast_loop)) {
1987 struct ip6_moptions *im6o = *im6op;
1993 if (im6o == NULL) {
1998 im6o = (struct ip6_moptions *)
1999 _MALLOC(sizeof(*im6o), M_IPMOPTS, M_WAITOK);
2001 if (im6o == NULL)
2003 *im6op = im6o;
2004 im6o->im6o_multicast_ifp = NULL;
2005 im6o->im6o_multicast_hlim = ip6_defmcasthlim;
2006 im6o->im6o_multicast_loop = IPV6_DEFAULT_MULTICAST_LOOP;
2007 LIST_INIT(&im6o->im6o_memberships);
2042 im6o->im6o_multicast_ifp = ifp;
2060 im6o->im6o_multicast_hlim = ip6_defmcasthlim;
2063 im6o->im6o_multicast_hlim = optval;
2083 im6o->im6o_multicast_loop = loop;
2204 for (imm = im6o->im6o_memberships.lh_first;
2231 LIST_INSERT_HEAD(&im6o->im6o_memberships, imm, i6mm_chain);
2298 for (imm = im6o->im6o_memberships.lh_first;
2331 if (im6o->im6o_multicast_ifp == NULL &&
2332 im6o->im6o_multicast_hlim == ip6_defmcasthlim &&
2333 im6o->im6o_multicast_loop == IPV6_DEFAULT_MULTICAST_LOOP &&
2334 im6o->im6o_memberships.lh_first == NULL) {
2355 ip6_getmoptions(optname, im6o, mp)
2357 struct ip6_moptions *im6o;
2369 if (im6o == NULL || im6o->im6o_multicast_ifp == NULL)
2372 *ifindex = im6o->im6o_multicast_ifp->if_index;
2378 if (im6o == NULL)
2381 *hlim = im6o->im6o_multicast_hlim;
2387 if (im6o == NULL)
2390 *loop = im6o->im6o_multicast_loop;
2402 ip6_freemoptions(im6o)
2403 struct ip6_moptions *im6o;
2407 if (im6o == NULL)
2411 while ((imm = im6o->im6o_memberships.lh_first) != NULL) {
2418 FREE(im6o, M_IPMOPTS);