In the Hoststack app, I use write the flowing function to set local addr to connect remote socket server
> > clib_error_t * vnet_connect_uri_with_local_addr(vlib_main_t *vm, > vnet_connect_args_t > *a, ip46_address_t *local_addr) { session_endpoint_cfg_t sep = > SESSION_ENDPOINT_CFG_NULL; int rv; if ((rv = parse_uri(a->uri, &sep))) { > return > clib_error_return(0, "uri format error(%d)!", rv); } > ip46_address_copy(&sep.peer.ip, > local_addr); clib_memcpy(&a->sep_ext, &sep, sizeof(sep)); if ((rv = > vnet_connect(a))) { return clib_error_return(0, "connect returned: %d", > rv); } return 0; } and it work very well. But when I turn to VCL way, I found no way to set local connect IP. Anyone know how to solve the problem?
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14198): https://lists.fd.io/g/vpp-dev/message/14198 Mute This Topic: https://lists.fd.io/mt/34703357/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-