X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fnng%2Finclude%2Frmr_nng_private.h;h=9e93c9ff1dd7c77714f141abf0961f1d7630d6a8;hb=369f53b364352e2520fd451a579cbc429e7188e2;hp=2349ce6be12f44dfb8491db8567779f24b7627e4;hpb=412d53dfa2f9b5b56a448797d0dfec3b0f11f666;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/nng/include/rmr_nng_private.h b/src/rmr/nng/include/rmr_nng_private.h index 2349ce6..9e93c9f 100644 --- a/src/rmr/nng/include/rmr_nng_private.h +++ b/src/rmr/nng/include/rmr_nng_private.h @@ -65,6 +65,7 @@ typedef struct epoll_stuff { */ struct uta_ctx { char* my_name; // dns name of this host to set in sender field of a message + char* my_ip; // the ip address we _think_ we are using sent in src_ip of the message for rts int shutdown; // thread notification if we need to tell them to stop int max_mlen; // max message length payload+header int max_plen; // max payload length @@ -107,7 +108,8 @@ static void free_ctx( uta_ctx_t* ctx ); static int uta_link2( endpoint_t* ep ); static int rt_link2_ep( endpoint_t* ep ); static int uta_epsock_byname( route_table_t* rt, char* ep_name, nng_socket* nn_sock ); -static int uta_epsock_rr( route_table_t *rt, uint64_t key, int group, int* more, nng_socket* nn_sock ); +static int uta_epsock_rr( rtable_ent_t* rte, int group, int* more, nng_socket* nn_sock ); +static rtable_ent_t* uta_get_rte( route_table_t *rt, int sid, int mtype, int try_alt ); static inline int xlate_nng_state( int state, int def_state );