static u32 dummy_segment_count;
int
-dummy_add_segment_callback (u32 client_index, const ssvm_private_t * fs)
+dummy_add_segment_callback (u32 client_index, u64 segment_handle)
{
dummy_segment_count = 1;
return 0;
}
int
-dummy_del_segment_callback (u32 client_index, const ssvm_private_t * fs)
+dummy_del_segment_callback (u32 client_index, u64 segment_handle)
{
dummy_segment_count = 0;
return 0;
* main thread, even when we have workers and we avoid polling main thread,
* i.e., we can't cleanup pending disconnects, so force cleanup for both
*/
- stream_session_cleanup (s);
+ session_transport_cleanup (s);
s = session_get (accepted_session_index, accepted_session_thread);
- stream_session_cleanup (s);
+ session_transport_cleanup (s);
vnet_app_detach_args_t detach_args = {
.app_index = server_index,
&is_filtered);
SESSION_TEST ((tc == 0), "lookup for 1.2.3.4/32 1234 5.6.7.8/16 4321 "
"should fail (deny rule)");
- SESSION_TEST ((is_filtered == 1), "lookup should be filtered (deny)");
+ SESSION_TEST ((is_filtered == SESSION_LOOKUP_RESULT_FILTERED),
+ "lookup should be filtered (deny)");
handle = session_lookup_local_endpoint (local_ns_index, &sep);
SESSION_TEST ((handle == SESSION_DROP_HANDLE), "lookup for 1.2.3.4/32 1234 "