EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the definition of the service runners. More...
#include <stdbool.h>
#include <inttypes.h>
#include "config.h"
#include "supervisor/supervisor_config.h"
Go to the source code of this file.
Functions | |
int | init_context (struct app_config *app_config, struct supervisor_context *ctx) |
Initialises the app context structure. More... | |
int | run_ctl (struct app_config *app_config, struct eloop_data *eloop) |
Executes the edgesec WiFi networking engine. Creates subnets and starts the supervisor, radius servers and hostapd service. More... | |
File containing the definition of the service runners.
int init_context | ( | struct app_config * | app_config, |
struct supervisor_context * | ctx | ||
) |
Initialises the app context structure.
app_config | The app config structure |
ctx | The app context structure |
int run_ctl | ( | struct app_config * | app_config, |
struct eloop_data * | eloop | ||
) |
Executes the edgesec WiFi networking engine. Creates subnets and starts the supervisor, radius servers and hostapd service.
app_config | The app configuration structures, setting WiFi network config params. |
eloop | The eloop structure, if NULL initialises a new one |
0
if succes, -1
if a service fails to start.