Merge "ipacm: make ip address in updatetimeout network byte order"
diff --git a/ipacm/src/IPACM_Conntrack_NATApp.cpp b/ipacm/src/IPACM_Conntrack_NATApp.cpp
index 077cab5..c020574 100644
--- a/ipacm/src/IPACM_Conntrack_NATApp.cpp
+++ b/ipacm/src/IPACM_Conntrack_NATApp.cpp
@@ -498,17 +498,17 @@
if(rule->dst_nat == false)
{
- entry.src.ipAddr = rule->private_ip;
+ entry.src.ipAddr = htonl(rule->private_ip);
entry.src.port = rule->private_port;
- entry.dst.ipAddr = rule->target_ip;
+ entry.dst.ipAddr = htonl(rule->target_ip);
entry.dst.port = rule->target_port;
IPACMDBG("dst nat is not set\n");
}
else
{
- entry.src.ipAddr = rule->target_ip;
+ entry.src.ipAddr = htonl(rule->target_ip);
entry.src.port = rule->target_port;
- entry.dst.ipAddr = pub_ip_addr;
+ entry.dst.ipAddr = htonl(pub_ip_addr);
entry.dst.port = rule->public_port;
IPACMDBG("dst nat is set\n");
}