Lines Matching refs:mask6
375 struct in6_addr addr6, mask6; in stf_encapcheck() local
399 if (stf_getsrcifa6(STF2IFP(sc), &addr6, &mask6) != 0) in stf_encapcheck()
406 if (stf_getin4addr(sc, &sin4addr, addr6, mask6) == NULL) in stf_encapcheck()
420 memcpy(&sin4mask.sin_addr, GET_V4(&mask6), in stf_encapcheck()
450 struct in6_addr addr6, mask6; in stf_getsrcifa6() local
466 mask6 = *IFA_MASKIN6(ia); in stf_getsrcifa6()
470 if (stf_getin4addr(sc, &sin4, addr6, mask6) == NULL) in stf_getsrcifa6()
482 *mask = mask6; in stf_getsrcifa6()
504 struct in6_addr addr6, mask6; in stf_output() local
534 if (stf_getsrcifa6(ifp, &addr6, &mask6) != 0) { in stf_output()
557 if (stf_getin4addr_in6(sc, &dst4, addr6, mask6, in stf_output()
561 else if (stf_getin4addr_in6(sc, &dst4, addr6, mask6, in stf_output()
595 else if (stf_getin4addr(sc, &src4, addr6, mask6) == NULL) { in stf_output()
854 struct in6_addr addr6, struct in6_addr mask6, struct in6_addr in6) in stf_getin4addr_in6() argument
865 if ((((u_char *)&addr6)[i] & ((u_char *)&mask6)[i]) != in stf_getin4addr_in6()
866 (((u_char *)&in6)[i] & ((u_char *)&mask6)[i])) { in stf_getin4addr_in6()
868 &mask6, &in6, NULL); in stf_getin4addr_in6()
874 out = stf_getin4addr(sc, sin, in6, mask6); in stf_getin4addr_in6()
875 SDT_PROBE4(if_stf, , getin4addr_in6, out, &addr6, &mask6, &in6, out); in stf_getin4addr_in6()
881 struct in6_addr addr6, struct in6_addr mask6) in stf_getin4addr() argument
885 SDT_PROBE2(if_stf, , getin4addr, in, &addr6, &mask6); in stf_getin4addr()
912 plen = in6_mask2len(&mask6, NULL); in stf_getin4addr()