Validate the client address
Address could be hostname or IPaddress,Address validation
is being done by calling the gethostbyname system function.
Change-Id: I7d7eecd164c471c80af0b440a4b541badd2f966f
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/snmp_util.cpp b/snmp_util.cpp
index a8a1ff8..25342ea 100644
--- a/snmp_util.cpp
+++ b/snmp_util.cpp
@@ -1,6 +1,8 @@
#include "snmp_util.hpp"
#include "xyz/openbmc_project/Common/error.hpp"
+#include <arpa/inet.h>
+
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/log.hpp>