X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Ftest_ctx_support.c;h=2a66c04d065ef6495eefdc01911a8963de458987;hb=89a7051a1e35dfb133db43ca1d2207c9f61596d0;hp=277f741889ac66e695b27d6bbcb6911b1d41e45d;hpb=fc5c77b3d78988aa407118235d7f5978642df753;p=ric-plt%2Flib%2Frmr.git diff --git a/test/test_ctx_support.c b/test/test_ctx_support.c index 277f741..2a66c04 100644 --- a/test/test_ctx_support.c +++ b/test/test_ctx_support.c @@ -63,10 +63,12 @@ static inline uta_ctx_t *mk_dummy_ctx() { } memset( ctx, 0, sizeof( *ctx ) ); - + ctx->mring = uta_mk_ring( 4096 ); // message ring is always on for si ctx->zcb_mring = uta_mk_ring( 128 ); // zero copy buffer mbuf ring to reduce malloc/free calls ctx->si_ctx = malloc( 1024 ); + ctx->my_name = strdup( "hostname1" ); + ctx->my_ip = strdup( "123.45.67.89" ); return ctx; }