Skip to content

Commit

Permalink
tun_sip and tun_dip are displayed conversely
Browse files Browse the repository at this point in the history
Update tun_sip in network byte order

Closes-Bug: #1522213

Change-Id: I4371d8c842c8480ab2a4ad94bb5ec85908f57e8b
  • Loading branch information
krharsh committed Dec 8, 2015
1 parent 3cb78a6 commit 977c511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vnsw/agent/kstate/kstate.cc
Expand Up @@ -139,8 +139,8 @@ void KState::NHMsgHandler(vr_nexthop_req *r) {
}
data.set_vrf(r->get_nhr_vrf());
if (r->get_nhr_type() == NH_TUNNEL) {
Ip4Address sip((uint32_t)r->get_nhr_tun_sip());
Ip4Address dip((uint32_t)r->get_nhr_tun_dip());
Ip4Address sip(ntohl((uint32_t)r->get_nhr_tun_sip()));
Ip4Address dip(ntohl((uint32_t)r->get_nhr_tun_dip()));
data.set_tun_sip(sip.to_string());
data.set_tun_dip(dip.to_string());
if (r->get_nhr_flags() & NH_FLAG_TUNNEL_UDP) {
Expand Down

0 comments on commit 977c511

Please sign in to comment.