Lines Matching refs:loc
669 dns_rdata_loc_t *loc = source;
674 REQUIRE(loc->common.rdtype == type);
675 REQUIRE(loc->common.rdclass == rdclass);
680 if (loc->v.v0.version != 0)
682 RETERR(uint8_tobuffer(loc->v.v0.version, target));
684 c = loc->v.v0.size;
687 RETERR(uint8_tobuffer(loc->v.v0.size, target));
689 c = loc->v.v0.horizontal;
692 RETERR(uint8_tobuffer(loc->v.v0.horizontal, target));
694 c = loc->v.v0.vertical;
697 RETERR(uint8_tobuffer(loc->v.v0.vertical, target));
699 if (loc->v.v0.latitude < (0x80000000UL - 90 * 3600000) ||
700 loc->v.v0.latitude > (0x80000000UL + 90 * 3600000))
702 RETERR(uint32_tobuffer(loc->v.v0.latitude, target));
704 if (loc->v.v0.longitude < (0x80000000UL - 180 * 3600000) ||
705 loc->v.v0.longitude > (0x80000000UL + 180 * 3600000))
707 RETERR(uint32_tobuffer(loc->v.v0.longitude, target));
708 return (uint32_tobuffer(loc->v.v0.altitude, target));
713 dns_rdata_loc_t *loc = target;
728 loc->common.rdclass = rdata->rdclass;
729 loc->common.rdtype = rdata->type;
730 ISC_LINK_INIT(&loc->common, link);
732 loc->v.v0.version = version;
734 loc->v.v0.size = uint8_fromregion(&r);
736 loc->v.v0.horizontal = uint8_fromregion(&r);
738 loc->v.v0.vertical = uint8_fromregion(&r);
740 loc->v.v0.latitude = uint32_fromregion(&r);
742 loc->v.v0.longitude = uint32_fromregion(&r);
744 loc->v.v0.altitude = uint32_fromregion(&r);
751 dns_rdata_loc_t *loc = source;
754 REQUIRE(loc->common.rdtype == dns_rdatatype_loc);
757 UNUSED(loc);