diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2016-08-29 08:17:59 -0500 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2017-01-09 17:04:10 +0530 |
commit | c35524e7cf49b26e0ee2a16c6f4529c5be047e91 (patch) | |
tree | 885b27283e26e53e275f1bd9bd659a7f6bfcb7cf /socket_channel.cpp | |
parent | d8be3364964d91f9e02e5eef261fc4260251a714 (diff) | |
download | phosphor-net-ipmid-c35524e7cf49b26e0ee2a16c6f4529c5be047e91.tar.gz phosphor-net-ipmid-c35524e7cf49b26e0ee2a16c6f4529c5be047e91.zip |
IPMI Main Handler
This patch contains the entry point for the IPMI RMCP Server. It
registers the session setup commands and start the IPMI event
handler.
Resolves openbmc/openbmc#429
Change-Id: I98a615eef9becb29964f8ec93e59d061bfcdfac3
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'socket_channel.cpp')
-rw-r--r-- | socket_channel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/socket_channel.cpp b/socket_channel.cpp index 4a6d827..a29ef8d 100644 --- a/socket_channel.cpp +++ b/socket_channel.cpp @@ -15,7 +15,7 @@ namespace udpsocket std::string Channel::getRemoteAddress() const { char tmp[INET_ADDRSTRLEN] = { 0 }; - inet_ntop(AF_INET, &address.inAddr.sin_addr, tmp, sizeof(tmp)); + inet_ntop(AF_INET6, &address.inAddr.sin6_addr, tmp, sizeof(tmp)); return std::string(tmp); } |