Skip to content

Commit

Permalink
* Initialize nl_client for KSync TCP socket session.
Browse files Browse the repository at this point in the history
Closes-Bug:#1507071

Change-Id: I5541e16756f6c92c800392b953192349f9455dc3
  • Loading branch information
naveen-n committed Oct 24, 2015
1 parent eabc160 commit 2e29ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ksync/ksync_sock.cc
Expand Up @@ -262,7 +262,7 @@ void KSyncSock::SetNetlinkFamilyId(int id) {
vnsw_netlink_family_id_ = id;
for (std::vector<KSyncSock *>::iterator it = sock_table_.begin();
it != sock_table_.end(); it++) {
KSyncSockNetlink *sock = dynamic_cast<KSyncSockNetlink *>(*it);
KSyncSock *sock = dynamic_cast<KSyncSock *>(*it);
if (sock) {
InitNetlink(sock->nl_client_);
}
Expand Down
2 changes: 1 addition & 1 deletion src/vnsw/agent/vrouter/ksync/ksync_init.cc
Expand Up @@ -296,8 +296,8 @@ void KSyncTcp::TcpInit() {
boost::asio::ip::address ip;
ip = agent_->vrouter_server_ip();
uint32_t port = agent_->vrouter_server_port();
KSyncSock::SetNetlinkFamilyId(24);
KSyncSockTcp::Init(event_mgr, DB::PartitionCount(), ip, port);
KSyncSock::SetNetlinkFamilyId(24);

KSyncSock::SetAgentSandeshContext(new KSyncSandeshContext(
flowtable_ksync_obj_.get()));
Expand Down

0 comments on commit 2e29ce7

Please sign in to comment.