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>
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 @@
 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);
 }