Searched refs:padlen (Results 1 – 1 of 1) sorted by relevance
231 uint16_t padlen = (kEdns0Padding - extra) % kEdns0Padding; in res_nopt() local235 padlen = std::min(padlen, static_cast<uint16_t>(buflen - minlen)); in res_nopt()236 *reinterpret_cast<uint16_t*>(cp) = htons(padlen + 2 * INT16SZ); /* RDLEN */ in res_nopt()240 *reinterpret_cast<uint16_t*>(cp) = htons(padlen); /* OPTION-LENGTH */ in res_nopt()242 memset(cp, 0, padlen); in res_nopt()243 cp += padlen; in res_nopt()