|
static u8 * | format_state_machine_called_from (u8 *s, va_list *args) |
| Format the called-from enum. More...
|
|
static void | http_static_server_sessions_reader_lock (void) |
| Acquire reader lock on the sessions pools. More...
|
|
static void | http_static_server_sessions_reader_unlock (void) |
| Drop reader lock on the sessions pools. More...
|
|
static void | http_static_server_sessions_writer_lock (void) |
| Acquire writer lock on the sessions pools. More...
|
|
static void | http_static_server_sessions_writer_unlock (void) |
| Drop writer lock on the sessions pools. More...
|
|
static void | http_static_server_session_timer_start (http_session_t *hs) |
| Start a session cleanup timer. More...
|
|
static void | http_static_server_session_timer_stop (http_session_t *hs) |
| stop a session cleanup timer More...
|
|
static http_session_t * | http_static_server_session_alloc (u32 thread_index) |
| Allocate an http session. More...
|
|
static http_session_t * | http_static_server_session_get (u32 thread_index, u32 hs_index) |
| Get an http session by index. More...
|
|
static void | http_static_server_session_free (http_session_t *hs) |
| Free an http session. More...
|
|
static void | http_static_server_session_lookup_add (u32 thread_index, u32 s_index, u32 hs_index) |
| add a session to the vpp < – > http session index map More...
|
|
static void | http_static_server_session_lookup_del (u32 thread_index, u32 s_index) |
| Remove a session from the vpp < – > http session index map. More...
|
|
static http_session_t * | http_static_server_session_lookup (u32 thread_index, u32 s_index) |
| lookup a session in the vpp < – > http session index map More...
|
|
static void | http_static_server_detach_cache_entry (http_session_t *hs) |
| Detach cache entry from session. More...
|
|
static void | http_static_server_session_cleanup (http_session_t *hs) |
| clean up a session More...
|
|
static void | http_static_server_session_disconnect (http_session_t *hs) |
| Disconnect a session. More...
|
|
static u32 | static_send_data (http_session_t *hs, u8 *data, u32 length, u32 offset) |
| send http data More...
|
|
static void | send_error (http_session_t *hs, char *str) |
| Send an http error string. More...
|
|
static int | session_rx_request (http_session_t *hs) |
| Retrieve data from the application layer. More...
|
|
static void | lru_validate (http_static_server_main_t *hsm) |
| Sanity-check the forward and reverse LRU lists. More...
|
|
static void | lru_remove (http_static_server_main_t *hsm, file_data_cache_t *ep) |
| Remove a data cache entry from the LRU lists. More...
|
|
static void | lru_add (http_static_server_main_t *hsm, file_data_cache_t *ep, f64 now) |
| Add an entry to the LRU lists, tag w/ supplied timestamp. More...
|
|
static void | lru_update (http_static_server_main_t *hsm, file_data_cache_t *ep, f64 now) |
| Remove and re-add a cache entry from/to the LRU lists. More...
|
|
static int | state_closed (session_t *s, http_session_t *hs, http_state_machine_called_from_t cf) |
| Session-layer (main) data rx callback. More...
|
|
static void | close_session (http_session_t *hs) |
|
void | http_static_server_register_builtin_handler (void *fp, char *url, int request_type) |
| Register a builtin GET or POST handler. More...
|
|
static int | v_find_index (u8 *vec, char *str) |
|
static int | state_established (session_t *s, http_session_t *hs, http_state_machine_called_from_t cf) |
| established state - waiting for GET, POST, etc. More...
|
|
static int | state_send_more_data (session_t *s, http_session_t *hs, http_state_machine_called_from_t cf) |
|
static int | state_sent_ok (session_t *s, http_session_t *hs, http_state_machine_called_from_t cf) |
|
static int | http_static_server_rx_tx_callback (session_t *s, http_state_machine_called_from_t cf) |
|
static int | http_static_server_rx_callback (session_t *s) |
|
static int | http_static_server_tx_callback (session_t *s) |
|
static int | http_static_server_session_accept_callback (session_t *s) |
| Session accept callback. More...
|
|
static void | http_static_server_session_disconnect_callback (session_t *s) |
| Session disconnect callback. More...
|
|
static void | http_static_server_session_reset_callback (session_t *s) |
| Session reset callback. More...
|
|
static int | http_static_server_session_connected_callback (u32 app_index, u32 api_context, session_t *s, u8 is_fail) |
|
static int | http_static_server_add_segment_callback (u32 client_index, u64 segment_handle) |
|
static int | http_static_server_attach () |
|
static int | http_static_server_listen () |
|
static void | http_static_server_session_cleanup_cb (void *hs_handlep) |
|
static void | http_expired_timers_dispatch (u32 *expired_timers) |
| Expired session timer-wheel callback. More...
|
|
static uword | http_static_server_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f) |
| Timer-wheel expiration process. More...
|
|
static int | http_static_server_create (vlib_main_t *vm) |
|
int | http_static_server_enable_api (u32 fifo_size, u32 cache_limit, u32 prealloc_fifos, u32 private_segment_size, u8 *www_root, u8 *uri) |
| API helper function for vl_api_http_static_enable_t messages. More...
|
|
static clib_error_t * | http_static_server_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
u8 * | format_hsm_cache_entry (u8 *s, va_list *args) |
| format a file cache entry More...
|
|
u8 * | format_http_session_state (u8 *s, va_list *args) |
|
u8 * | format_http_session (u8 *s, va_list *args) |
|
static clib_error_t * | http_show_static_server_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | http_clear_static_cache_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | http_static_server_main_init (vlib_main_t *vm) |
|