Lines Matching refs:mld

222 SYSCTL_NODE(_net_inet6, OID_AUTO, mld, CTLFLAG_RW, 0,
628 /*const*/ struct mld_hdr *mld) in mld_v1_input_query() argument
643 ip6_sprintf(ip6tbuf, &mld->mld_addr), in mld_v1_input_query()
663 if (IN6_IS_ADDR_UNSPECIFIED(&mld->mld_addr)) { in mld_v1_input_query()
680 in6_setscope(&mld->mld_addr, ifp, NULL); in mld_v1_input_query()
693 timer = (ntohs(mld->mld_maxdelay) * PR_FASTHZ) / MLD_TIMER_SCALE; in mld_v1_input_query()
718 inm = in6m_lookup_locked(ifp, &mld->mld_addr); in mld_v1_input_query()
721 ip6_sprintf(ip6tbuf, &mld->mld_addr), in mld_v1_input_query()
726 in6_clearscope(&mld->mld_addr); in mld_v1_input_query()
808 struct mldv2_query *mld; in mld_v2_input_query() local
833 mld = (struct mldv2_query *)(mtod(m, uint8_t *) + off); in mld_v2_input_query()
835 maxdelay = ntohs(mld->mld_maxdelay); /* in 1/10ths of a second */ in mld_v2_input_query()
844 qrv = MLD_QRV(mld->mld_misc); in mld_v2_input_query()
851 qqi = mld->mld_qqi; in mld_v2_input_query()
853 qqi = MLD_QQIC_MANT(mld->mld_qqi) << in mld_v2_input_query()
854 (MLD_QQIC_EXP(mld->mld_qqi) + 3); in mld_v2_input_query()
857 nsrc = ntohs(mld->mld_numsrc); in mld_v2_input_query()
868 if (IN6_IS_ADDR_UNSPECIFIED(&mld->mld_addr)) { in mld_v2_input_query()
882 in6_setscope(&mld->mld_addr, ifp, NULL); in mld_v2_input_query()
935 inm = in6m_lookup_locked(ifp, &mld->mld_addr); in mld_v2_input_query()
962 in6_clearscope(&mld->mld_addr); in mld_v2_input_query()
982 struct mldv2_query *mld; in mld_v2_process_group_query() local
990 mld = (struct mldv2_query *)(mtod(m0, uint8_t *) + off); in mld_v2_process_group_query()
1008 nsrc = ntohs(mld->mld_numsrc); in mld_v2_process_group_query()
1095 /*const*/ struct mld_hdr *mld) in mld_v1_input_report() argument
1106 ip6_sprintf(ip6tbuf, &mld->mld_addr), in mld_v1_input_report()
1133 if (!IN6_IS_ADDR_MULTICAST(&mld->mld_addr) || in mld_v1_input_report()
1134 !IN6_ARE_ADDR_EQUAL(&mld->mld_addr, &dst)) { in mld_v1_input_report()
1162 ip6_sprintf(ip6tbuf, &mld->mld_addr), ifp, if_name(ifp)); in mld_v1_input_report()
1168 if (!IN6_IS_ADDR_UNSPECIFIED(&mld->mld_addr)) in mld_v1_input_report()
1169 in6_setscope(&mld->mld_addr, ifp, NULL); in mld_v1_input_report()
1181 inm = in6m_lookup_locked(ifp, &mld->mld_addr); in mld_v1_input_report()
1208 ip6_sprintf(ip6tbuf, &mld->mld_addr), in mld_v1_input_report()
1226 in6_clearscope(&mld->mld_addr); in mld_v1_input_report()
1247 struct mld_hdr *mld; in mld_input() local
1257 mld = (struct mld_hdr *)(mtod(m, uint8_t *) + off); in mld_input()
1258 if (mld->mld_type == MLD_LISTENER_QUERY && in mld_input()
1264 IP6_EXTHDR_GET(mld, struct mld_hdr *, m, off, mldlen); in mld_input()
1265 if (mld == NULL) { in mld_input()
1274 switch (mld->mld_type) { in mld_input()
1278 if (mld_v1_input_query(ifp, ip6, mld) != 0) in mld_input()
1288 if (mld_v1_input_report(ifp, ip6, mld) != 0) in mld_input()
1789 struct mld_hdr *mld; in mld_v1_transmit_report() local
1831 mld = mtod(md, struct mld_hdr *); in mld_v1_transmit_report()
1832 mld->mld_type = type; in mld_v1_transmit_report()
1833 mld->mld_code = 0; in mld_v1_transmit_report()
1834 mld->mld_cksum = 0; in mld_v1_transmit_report()
1835 mld->mld_maxdelay = 0; in mld_v1_transmit_report()
1836 mld->mld_reserved = 0; in mld_v1_transmit_report()
1837 mld->mld_addr = in6m->in6m_addr; in mld_v1_transmit_report()
1838 in6_clearscope(&mld->mld_addr); in mld_v1_transmit_report()
1839 mld->mld_cksum = in6_cksum(mh, IPPROTO_ICMPV6, in mld_v1_transmit_report()
3061 struct mld_hdr *mld; in mld_dispatch_packet() local
3127 mld = (struct mld_hdr *)(mtod(md, uint8_t *) + off); in mld_dispatch_packet()
3128 type = mld->mld_type; in mld_dispatch_packet()
3166 struct mldv2_report *mld; in mld_v2_encap_report() local
3209 mld = (struct mldv2_report *)(ip6 + 1); in mld_v2_encap_report()
3210 mld->mld_type = MLDV2_LISTENER_REPORT; in mld_v2_encap_report()
3211 mld->mld_code = 0; in mld_v2_encap_report()
3212 mld->mld_cksum = 0; in mld_v2_encap_report()
3213 mld->mld_v2_reserved = 0; in mld_v2_encap_report()
3214 mld->mld_v2_numrecs = htons(m->m_pkthdr.PH_vt.vt_nrecs); in mld_v2_encap_report()
3218 mld->mld_cksum = in6_cksum(mh, IPPROTO_ICMPV6, in mld_v2_encap_report()
3320 DECLARE_MODULE(mld, mld_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);