MCPcopy Create free account
hub / github.com/apache/trafficserver / TSIpStringToAddr

Function TSIpStringToAddr

src/api/InkAPI.cc:1368–1378  ·  view source on GitHub ↗

pton

Source from the content-addressed store, hash-verified

1366
1367// pton
1368TSReturnCode
1369TSIpStringToAddr(const char *str, size_t str_len, sockaddr *addr)
1370{
1371 sdk_assert(sdk_sanity_check_null_ptr((void *)str) == TS_SUCCESS);
1372
1373 if (0 != ats_ip_pton(std::string_view(str, str_len), addr)) {
1374 return TS_ERROR;
1375 }
1376
1377 return TS_SUCCESS;
1378}
1379
1380////////////////////////////////////////////////////////////////////
1381//

Callers 1

ts_lua_fetch_one_itemFunction · 0.85

Calls 2

ats_ip_ptonFunction · 0.50

Tested by

no test coverage detected