You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2015/02/24 18:56:09 UTC
trafficserver git commit: TS-3379 meh, use the source, thanks Phil
Repository: trafficserver
Updated Branches:
refs/heads/master 7b7ada184 -> a1f85b0e2
TS-3379 meh, use the source, thanks Phil
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/a1f85b0e
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/a1f85b0e
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/a1f85b0e
Branch: refs/heads/master
Commit: a1f85b0e2aa71b900fb5dc3af8f9f8d9dc4ce77f
Parents: 7b7ada1
Author: Leif Hedstrom <zw...@apache.org>
Authored: Tue Feb 24 10:56:05 2015 -0700
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Tue Feb 24 10:56:05 2015 -0700
----------------------------------------------------------------------
mgmt/LocalManager.cc | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/a1f85b0e/mgmt/LocalManager.cc
----------------------------------------------------------------------
diff --git a/mgmt/LocalManager.cc b/mgmt/LocalManager.cc
index 9032334..1593573 100644
--- a/mgmt/LocalManager.cc
+++ b/mgmt/LocalManager.cc
@@ -1019,24 +1019,12 @@ LocalManager::listenForProxy()
if (found) {
backlog = config_backlog;
}
- const char* af_family;
-
- switch (p.m_family) {
- case AF_INET6:
- af_family = "IPv6";
- break;
- case AF_INET:
- af_family = "IPv4";
- break;
- default:
- af_family = "Unknown";
- }
-
if ((listen(p.m_fd, backlog)) < 0) {
mgmt_fatal(stderr, errno, "[LocalManager::listenForProxy] Unable to listen on port: %d (%s)\n",
- p.m_port, af_family);
+ p.m_port, ats_ip_family_name(p.m_family));
}
- mgmt_log(stderr, "[LocalManager::listenForProxy] Listening on port: %d (%s)\n", p.m_port, af_family);
+ mgmt_log(stderr, "[LocalManager::listenForProxy] Listening on port: %d (%s)\n", p.m_port,
+ ats_ip_family_name(p.m_family));
}
return;
}