Lines Matching refs:mldh
329 struct mld_hdr *mldh;
336 IP6_EXTHDR_GET(mldh, struct mld_hdr *, m, off, sizeof(*mldh));
337 if (mldh == NULL) {
367 ip6_sprintf(&ip6->ip6_src), ip6_sprintf(&mldh->mld_addr));
376 mld_addr = mldh->mld_addr;
395 switch (mldh->mld_type) {
420 timer = ntohs(mldh->mld_maxdelay);
466 if (!IN6_IS_ADDR_MULTICAST(&mldh->mld_addr))
486 log(LOG_ERR, "mld_input: illegal type(%d)", mldh->mld_type);
499 struct mld_hdr *mldh;
519 mldh = mld_allocbuf(&mh, sizeof(struct mld_hdr), in6m, type);
520 if (mldh == NULL)
528 mldh->mld_addr = in6m->in6m_addr;
529 in6_clearscope(&mldh->mld_addr); /* XXX */
530 mldh->mld_cksum = in6_cksum(mh, IPPROTO_ICMPV6, sizeof(struct ip6_hdr),
568 struct mld_hdr *mldh;
606 mldh = mtod(md, struct mld_hdr *);
607 memset(mldh, 0, len);
608 mldh->mld_type = type;
609 return mldh;