From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: [hail patch 1/3] Add forgotten NI_NUMERICSERV
Date: Wed, 4 Aug 2010 17:13:51 -0600 [thread overview]
Message-ID: <20100804171351.2be6bd2b@lembas.zaitcev.lan> (raw)
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
---
chunkd/server.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chunkd/server.c b/chunkd/server.c
index 3115592..d3b593f 100644
--- a/chunkd/server.c
+++ b/chunkd/server.c
@@ -1408,7 +1408,8 @@ static bool tcp_srv_event(int fd, short events, void *userdata)
/* pretty-print incoming cxn info */
getnameinfo((struct sockaddr *) &cli->addr, addrlen,
- host, sizeof(host), port, sizeof(port), NI_NUMERICHOST);
+ host, sizeof(host), port, sizeof(port),
+ NI_NUMERICHOST | NI_NUMERICSERV);
host[sizeof(host) - 1] = 0;
port[sizeof(port) - 1] = 0;
applog(LOG_INFO, "client host %s port %s connected%s", host, port,
reply other threads:[~2010-08-04 23:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100804171351.2be6bd2b@lembas.zaitcev.lan \
--to=zaitcev@redhat.com \
--cc=hail-devel@vger.kernel.org \
--cc=jeff@garzik.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).