![]() |
EpiRootkit
By STDBOOL
|
Go to the source code of this file.
Functions | |
| bool | is_user_auth (void) |
| int | set_user_auth (bool auth) |
| static bool | send_initial_message_with_retries (void) |
| static bool | receive_loop (char *recv_buffer) |
| static int | network_worker (void *data) |
| int | start_network_worker (void) |
| int | stop_network_worker (void) |
Variables | |
| static bool | is_auth = false |
| static struct task_struct * | network_worker_thread = NULL |
| bool is_user_auth | ( | void | ) |
is_user_auth - Check if the user is authenticated. Return: true if the user is authenticated, false otherwise.
Definition at line 13 of file tcp/worker.c.
|
static |
network_worker - The main function for the network worker thread.
| data | Unused parameter required by kthread API. Return: 0 on success, negative error code on failure. |
Definition at line 106 of file tcp/worker.c.
|
static |
receive_loop - Continuously receive messages from the server.
| recv_buffer | Buffer to store received messages. This function listens for incoming messages, processes them, and handles retries in case of failures or empty messages. It stops when the thread is signaled to stop. Return: true on success, false on failure after retries. |
Definition at line 59 of file tcp/worker.c.
|
static |
send_initial_message_with_retries - Send the initial message to the server with retries. This function retrieves system information and sends it to the server. If the send fails, it retries up to MAX_MSG_SEND_OR_RECEIVE_ERROR times. Return: true on success, false on failure after retries.
Definition at line 33 of file tcp/worker.c.
| int set_user_auth | ( | bool | auth | ) |
set_user_auth - Set the user authentication status.
| auth | true to authenticate the user, false to unauthenticate. Return: 0 on success, or an error code on failure. |
Definition at line 22 of file tcp/worker.c.
| int start_network_worker | ( | void | ) |
start_network_worker - Start the network worker thread.
Definition at line 161 of file tcp/worker.c.
| int stop_network_worker | ( | void | ) |
stop_network_worker - Stop the network worker thread.
Definition at line 185 of file tcp/worker.c.
|
static |
Definition at line 6 of file tcp/worker.c.
|
static |
Definition at line 7 of file tcp/worker.c.