diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2017-11-20 02:31:48 -0500 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-11-20 09:09:20 +0000 |
commit | 9d1d73a9010dcd0929dc932af1fd7117863f6758 (patch) | |
tree | 889be413fbcce32ca188e93b021f3b1f3e2c9fff /src/vcl | |
parent | 52bf22e6322dc8490717aa4246c0f8322f60e6e9 (diff) |
VCL: Update lcl addr/port from connect session reply msg.
Change-Id: Ic738448007e49b0b36e336ffd50e800b04ad3c6d
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/vcl')
-rw-r--r-- | src/vcl/vppcom.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 8c2036ca286..2e867c7f036 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -871,6 +871,10 @@ vl_api_connect_session_reply_t_handler (vl_api_connect_session_reply_t * mp) session->server_rx_fifo = rx_fifo; session->server_tx_fifo = tx_fifo; session->vpp_handle = mp->handle; + session->lcl_addr.is_ip4 = mp->is_ip4; + clib_memcpy (&session->lcl_addr.ip46, mp->lcl_ip, + sizeof (session->peer_addr.ip46)); + session->lcl_port = mp->lcl_port; session->state = STATE_CONNECT; /* Add it to lookup table */ |