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

Function proxy_protocol_version_cast

src/iocore/net/ProxyProtocol.cc:503–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503ProxyProtocolVersion
504proxy_protocol_version_cast(int i)
505{
506 switch (i) {
507 case 1:
508 case 2:
509 return static_cast<ProxyProtocolVersion>(i);
510 default:
511 return ProxyProtocolVersion::UNDEFINED;
512 }
513}
514
515void
516ProxyProtocol::set_ipv4_addrs(in_addr_t src_addr, uint16_t src_port, in_addr_t dst_addr, uint16_t dst_port)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected