* Allocate fake session and connection 1
*/
pool_get (smm->sessions[0], s);
* Allocate fake session and connection 1
*/
pool_get (smm->sessions[0], s);
s->session_index = sidx = s - smm->sessions[0];
pool_get (tm->connections[0], tc);
s->session_index = sidx = s - smm->sessions[0];
pool_get (tm->connections[0], tc);
tc->connection.c_index = tc - tm->connections[0];
tc->connection.s_index = s->session_index;
s->connection_index = tc->connection.c_index;
tc->connection.c_index = tc - tm->connections[0];
tc->connection.s_index = s->session_index;
s->connection_index = tc->connection.c_index;
* Allocate fake session and connection 2
*/
pool_get (session_manager_main.sessions[0], s);
* Allocate fake session and connection 2
*/
pool_get (session_manager_main.sessions[0], s);
s->session_index = s - smm->sessions[0];
pool_get (tm->connections[0], tc);
s->session_index = s - smm->sessions[0];
pool_get (tm->connections[0], tc);
tc->connection.c_index = tc - tm->connections[0];
tc->connection.s_index = s->session_index;
s->connection_index = tc->connection.c_index;
tc->connection.c_index = tc - tm->connections[0];
tc->connection.s_index = s->session_index;
s->connection_index = tc->connection.c_index;
remote_port = clib_host_to_net_u16 (11234);
pool_get (tm->connections[0], tc0);
remote_port = clib_host_to_net_u16 (11234);
pool_get (tm->connections[0], tc0);