Searched refs:proto_str (Results 1 – 3 of 3) sorted by relevance
50 const char *proto_str = NULL; in get_port_protocol_socktype() local60 proto_str = protoent->p_name; in get_port_protocol_socktype()68 se = getservbyname (servname, proto_str ? proto_str : "tcp"); in get_port_protocol_socktype()69 if (proto_str == NULL) in get_port_protocol_socktype()72 se = getservbyname (servname, proto_str ? proto_str : "udp"); in get_port_protocol_socktype()73 if (proto_str == NULL) in get_port_protocol_socktype()76 if (proto_str != NULL) { in get_port_protocol_socktype()77 se = getservbyname (servname, proto_str); in get_port_protocol_socktype()
1104 char *proto_str = NULL; in ldns_str2rdf_wks() local1124 if (!proto_str) { in ldns_str2rdf_wks()1125 proto_str = strdup(token); in ldns_str2rdf_wks()1130 if (!proto_str || !lc_proto_str) { in ldns_str2rdf_wks()1131 free(proto_str); in ldns_str2rdf_wks()1139 serv = getservbyname(token, proto_str); in ldns_str2rdf_wks()1147 serv = getservbyname(lc_token, proto_str); in ldns_str2rdf_wks()1162 free(proto_str); in ldns_str2rdf_wks()1172 free(proto_str); in ldns_str2rdf_wks()1186 if (!proto_str || !bitmap) { in ldns_str2rdf_wks()[all …]
2441 char token[50], proto_str[50]; in sldns_str2wire_wks_buf() local2444 proto_str[0]=0; in sldns_str2wire_wks_buf()2459 (void)strlcpy(proto_str, token, sizeof(proto_str)); in sldns_str2wire_wks_buf()2466 struct servent *serv = getservbyname(token, proto_str); in sldns_str2wire_wks_buf()