Searched refs:hp (Results 1 – 16 of 16) sorted by relevance
69 struct hostent *hp, hent; in _hf_gethtbyname2() local95 info->hp->h_addrtype = af; in _hf_gethtbyname2()96 info->hp->h_length = 0; in _hf_gethtbyname2()99 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he); in _hf_gethtbyname2()100 if (hp == NULL) { in _hf_gethtbyname2()107 if (strcasecmp(hp->h_name, name) != 0) { in _hf_gethtbyname2()109 for (cp = hp->h_aliases; *cp != NULL; cp++) in _hf_gethtbyname2()116 hent.h_addrtype = hp->h_addrtype; in _hf_gethtbyname2()117 hent.h_length = hp->h_length; in _hf_gethtbyname2()119 HENT_SCOPY(hent.h_name, hp->h_name, ptr, len); in _hf_gethtbyname2()[all …]
107 static void convert_v4v6_hostent(struct hostent* hp, char** bpp, char* ep,108 const std::function<void(struct hostent* hp)>& mapping_param,110 static void pad_v4v6_hostent(struct hostent* hp, char** bpp, char* ep);130 const HEADER* hp; in getanswer() local168 hp = &answer->hdr; in getanswer()169 ancount = ntohs(hp->ancount); in getanswer()170 qdcount = ntohs(hp->qdcount); in getanswer()388 int resolv_gethostbyname(const char* name, int af, hostent* hp, char* buf, size_t buflen, in resolv_gethostbyname() argument409 hp->h_addrtype = af; in resolv_gethostbyname()410 hp->h_length = (int) size; in resolv_gethostbyname()[all …]
212 int extractGetHostByNameAnswers(const hostent* hp, std::vector<std::string>* ip_addrs) { in extractGetHostByNameAnswers() argument214 if (hp == nullptr) { in extractGetHostByNameAnswers()217 if (hp->h_addrtype == AF_INET) { in extractGetHostByNameAnswers()218 in_addr** list = (in_addr**) hp->h_addr_list; in extractGetHostByNameAnswers()224 } else if (hp->h_addrtype == AF_INET6) { in extractGetHostByNameAnswers()225 in6_addr** list = (in6_addr**) hp->h_addr_list; in extractGetHostByNameAnswers()275 auto hp = reinterpret_cast<HEADER*>(msg); in setQueryId() local276 hp->id = htons(query_id); in setQueryId()407 bool onlyNonSpecialUseIPv4Addresses(struct hostent* hp) { in onlyNonSpecialUseIPv4Addresses() argument410 if (hp->h_addrtype != AF_INET) return false; in onlyNonSpecialUseIPv4Addresses()[all …]
108 HEADER* hp; in res_nmkquery() local121 hp = (HEADER*) (void*) buf; in res_nmkquery()122 hp->id = htons(arc4random_uniform(65536)); in res_nmkquery()123 hp->opcode = op; in res_nmkquery()124 hp->rd = true; in res_nmkquery()125 hp->ad = (netcontext_flags & NET_CONTEXT_FLAG_USE_DNS_OVER_TLS) != 0U; in res_nmkquery()126 hp->rcode = NOERROR; in res_nmkquery()147 hp->qdcount = htons(1); in res_nmkquery()164 hp->arcount = htons(1); in res_nmkquery()185 hp->ancount = htons(1); in res_nmkquery()[all …]
110 HEADER* hp = (HEADER*) (void*) answer; in res_nquery() local116 hp->rcode = NOERROR; // default in res_nquery()171 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery()172 LOG(DEBUG) << __func__ << ": rcode = (" << p_rcode(hp->rcode) in res_nquery()173 << "), counts = an:" << ntohs(hp->ancount) << " ns:" << ntohs(hp->nscount) in res_nquery()174 << " ar:" << ntohs(hp->arcount); in res_nquery()176 switch (hp->rcode) { in res_nquery()212 HEADER* hp = (HEADER*) (void*) answer; in res_nsearch() local287 if (hp->rcode == SERVFAIL) { in res_nsearch()
1245 hostent* hp = nullptr; in TEST_F() local1250 &mNetcontext, &hp, &event); in TEST_F()1254 EXPECT_TRUE(hp != nullptr); in TEST_F()1256 EXPECT_EQ(config.expected_addr, ToString(hp)); in TEST_F()1289 struct hostent* hp = nullptr; in TEST_F() local1294 &mNetcontext, &hp, &event); in TEST_F()1295 EXPECT_EQ(nullptr, hp); in TEST_F()1311 hostent* hp = nullptr; in TEST_F() local1316 &hp, &event); in TEST_F()1318 EXPECT_EQ(nullptr, hp); in TEST_F()[all …]
848 const HEADER* hp; in getanswer() local879 hp = reinterpret_cast<const HEADER*>(answer.data()); in getanswer()880 ancount = ntohs(hp->ancount); in getanswer()881 qdcount = ntohs(hp->qdcount); in getanswer()1613 HEADER* hp = (HEADER*)(void*)t->answer.data(); in doQuery() local1615 hp->rcode = NOERROR; // default in doQuery()1649 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in doQuery()1661 LOG(DEBUG) << __func__ << ": rcode=" << hp->rcode << ", ancount=" << ntohs(hp->ancount); in doQuery()1665 .ancount = ntohs(hp->ancount), in doQuery()1743 HEADER* hp = (HEADER*)(void*)t->answer.data(); in res_queryN() local[all …]
31 int resolv_gethostbyname(const char* name, int af, hostent* hp, char* buf, size_t buflen,36 int resolv_gethostbyaddr(const void* addr, socklen_t len, int af, hostent* hp, char* buf,
441 HEADER* hp = (HEADER*)(void*)ans; in res_nsend() local442 *rcode = hp->rcode; in res_nsend()501 auto hp = reinterpret_cast<const HEADER*>(buf); in res_nsend() local504 int selectedServer = (hp->id % usableServersCount) + 1; in res_nsend()654 const HEADER* hp = (const HEADER*) (const void*) buf; in send_vc() local843 if (hp->id != anhp->id) { in send_vc()974 const HEADER* hp = (const HEADER*)(const void*)buf; in ignoreInvalidAnswer() local976 if (hp->id != anhp->id) { in ignoreInvalidAnswer()
37 struct hostent* hp; member
211 hostent* hp = nullptr; in VerifyGetHostByName() local217 sizeof(tmpbuf), &netcontext, &hp, &event); in VerifyGetHostByName()219 VerifyAddress(goldtest, hp); in VerifyGetHostByName()
2515 auto hp = reinterpret_cast<HEADER*>(buf); in TEST_F() local2516 EXPECT_EQ(21862U, htons(hp->id)); in TEST_F()2544 EXPECT_EQ(0x0053U, htons(hp->id)); in TEST_F()
108 …D�q��u�p���F�R�7F�TJ�����y�zIw��f �� �V_{%���S(�Y��p)eU���)�%���Dxܒhp�\��-�֦=�;¦[�n���=�z…7297 9 �J���?����c�<1K�f�:�^�]A�,T�S �ۊ�3���^hp̽>ƕ�;�;�zFM���Rո�A�)�a�D)�a��1V�>�h\����…8104 …�i��A`�:�+��z��%6<TG��r��g+)$1 ��֥��\y��JS��'�����[��ؠ�R�f�hp�F�ݽ)ѶϜ���֛���zҾ�l…9063 h�ť�H��p"��e��C�T��,��<��W#�/�}vu�b;�c?�i�ON��,�ܜ�]�X?��{U��e}8�$�I�$q�{}*�hp�v���B��r��!��`…9668 B�#�Kn/T^�hp�7���� 4����[�V*�g9��w�u�2�0�� >@��2�3�NGZ��+�7��Z��bK�]��c�R7�H�g<}�Gz�g�6…10593 …[����گxk�&�Qo,^)J�B8� ���+���� uE�x��;�v��ۨ�F��^�����h�|����A��hp��"i-W7�_^���Wk��3��…10686 60;@�l��hp����=EM&_�4�UX/A��'h�B�X�)1,10758 …�mY�>��恝��1���6�9�=��>�B�I�G�k�1 )9gI��K?�ÀU�A##�p�]F�2��hp�Dž��Oh�J�?^��sYk{}�…13269 7��=fQjf�{�e;@��$����q_P\hp\ĩ:�%�=�;sR��ZN��5�����R��g��x�˩A;E!vf-����?Z��M2��Ap���ޞ��6…13662 …h�� CǷ>Y���e���P�.ߘ�J��oPҮ�yr��I<���TI�G����Z�/!�J�tC �z�����?-���hp��v��q�o��RՊN�}��LZ;…[all …]
1dictionary=main:it,locale=it,description=Italiano,date=1414726258, ...
1dictionary=main:cs,locale=cs,description=Čeština,date=1393228134, ...