Lines Matching refs:ip6

121 #include <netinet/ip6.h>
739 mld_v1_input_query(struct ifnet *ifp, const struct ip6_hdr *ip6,
760 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) {
762 ip6_sprintf(&ip6->ip6_src),
778 dst = ip6->ip6_dst;
914 mld_v2_input_query(struct ifnet *ifp, const struct ip6_hdr *ip6,
931 if (!IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) {
933 ip6_sprintf(&ip6->ip6_src),
984 dst = ip6->ip6_dst;
1215 mld_v1_input_report(struct ifnet *ifp, const struct ip6_hdr *ip6,
1236 src = ip6->ip6_src;
1240 ip6_sprintf(&ip6->ip6_src),
1249 dst = ip6->ip6_dst;
1254 ip6_sprintf(&ip6->ip6_dst),
1272 if ((IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, IA6_IN6(ia)))){
1370 struct ip6_hdr *ip6;
1378 ip6 = mtod(m, struct ip6_hdr *);
1402 if (mld_v1_input_query(ifp, ip6, mld) != 0)
1405 if (mld_v2_input_query(ifp, ip6, m, off,
1412 if (mld_v1_input_report(ifp, ip6, mld) != 0)
1943 struct ip6_hdr *ip6;
1979 ip6 = mtod(mh, struct ip6_hdr *);
1980 ip6->ip6_flow = 0;
1981 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
1982 ip6->ip6_vfc |= IPV6_VERSION;
1983 ip6->ip6_nxt = IPPROTO_ICMPV6;
1986 ip6->ip6_src = ia ? ia->ia_addr.sin6_addr : in6addr_any;
1992 ip6->ip6_dst = in6m->in6m_addr;
3232 struct ip6_hdr *ip6;
3284 ip6 = mtod(m0, struct ip6_hdr *);
3286 (void) in6_setscope(&ip6->ip6_dst, ifp, NULL); /* XXX LOR */
3293 MLD_EMBEDSCOPE(&ip6->ip6_dst, ifp->if_index);
3353 struct ip6_hdr *ip6;
3382 ip6 = mtod(mh, struct ip6_hdr *);
3383 ip6->ip6_flow = 0;
3384 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
3385 ip6->ip6_vfc |= IPV6_VERSION;
3386 ip6->ip6_nxt = IPPROTO_ICMPV6;
3389 ip6->ip6_src = ia ? ia->ia_addr.sin6_addr : in6addr_any;
3395 ip6->ip6_dst = in6addr_linklocal_allv2routers;
3398 mld = (struct mldv2_report *)(ip6 + 1);