Home
last modified time | relevance | path

Searched refs:padlen (Results 1 – 1 of 1) sorted by relevance

/system/netd/resolv/
Dres_mkquery.cpp234 uint16_t padlen = (kEdns0Padding - extra) % kEdns0Padding; in res_nopt() local
238 padlen = std::min(padlen, static_cast<uint16_t>(buflen - minlen)); in res_nopt()
239 *reinterpret_cast<uint16_t*>(cp) = htons(padlen + 2 * INT16SZ); /* RDLEN */ in res_nopt()
243 *reinterpret_cast<uint16_t*>(cp) = htons(padlen); /* OPTION-LENGTH */ in res_nopt()
245 memset(cp, 0, padlen); in res_nopt()
246 cp += padlen; in res_nopt()