Searched refs:serv_port (Results 1 – 2 of 2) sorted by relevance
2461 int serv_port; in sldns_str2wire_wks_buf() local2462 if(atoi(token) != 0) serv_port=atoi(token); in sldns_str2wire_wks_buf()2463 else if(strcmp(token, "0") == 0) serv_port=0; in sldns_str2wire_wks_buf()2464 else if(strcasecmp(token, "domain")==0) serv_port=53; in sldns_str2wire_wks_buf()2467 if(serv) serv_port=(int)ntohs((uint16_t)serv->s_port); in sldns_str2wire_wks_buf()2479 if(serv_port < 0 || serv_port > 65535) { in sldns_str2wire_wks_buf()2489 if(rd_len < 1+serv_port/8+1) { in sldns_str2wire_wks_buf()2491 if(*len < 1+(size_t)serv_port/8+1) { in sldns_str2wire_wks_buf()2502 memset(rd+rd_len, 0, 1+(size_t)serv_port/8+1-rd_len); in sldns_str2wire_wks_buf()2503 rd_len = 1+serv_port/8+1; in sldns_str2wire_wks_buf()[all …]
1100 int serv_port; in ldns_str2rdf_wks() local1154 serv_port = (int) ntohs((uint16_t) serv->s_port); in ldns_str2rdf_wks()1156 serv_port = atoi(token); in ldns_str2rdf_wks()1158 if (serv_port < 0 || serv_port > 65535) { in ldns_str2rdf_wks()1166 if (serv_port / 8 >= bm_len) { in ldns_str2rdf_wks()1167 uint8_t *b2 = LDNS_XREALLOC(bitmap, uint8_t, (serv_port / 8) + 1); in ldns_str2rdf_wks()1178 for (; bm_len <= serv_port / 8; bm_len++) { in ldns_str2rdf_wks()1182 ldns_set_bit(bitmap + (serv_port / 8), 7 - (serv_port % 8), true); in ldns_str2rdf_wks()