SolidWallOfCode commented on a change in pull request #7821:
URL: https://github.com/apache/trafficserver/pull/7821#discussion_r633692854
##########
File path: src/tscore/ink_inet.cc
##########
@@ -463,6 +463,27 @@ IpAddr::toString(char *dest, size_t len) const
return dest;
}
+sockaddr *
+IpAddr::toSockAddr(sockaddr *dest) const
+{
+ if (AF_INET == _family) {
Review comment:
It's only two values and those values are not compact, not sure a
`switch` makes it any better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]