EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the implementation of the system commands. More...
#include <libgen.h>
#include <sys/un.h>
#include <utarray.h>
#include "mac_mapper.h"
#include "network_commands.h"
#include "sqlite_macconn_writer.h"
#include "subscriber_events.h"
#include "supervisor.h"
#include "supervisor_utils.h"
#include "system_commands.h"
#include <eloop.h>
#include "../ap/ap_config.h"
#include "../ap/ap_service.h"
#include "../capture/capture_service.h"
#include "../utils/allocs.h"
#include "../utils/base64.h"
#include "../utils/iface_mapper.h"
#include "../utils/log.h"
#include "../utils/os.h"
#include "../utils/sockctl.h"
Functions | |
int | set_ip_cmd (struct supervisor_context *context, uint8_t *mac_addr, char *ip_addr, enum DHCP_IP_TYPE ip_type) |
SET_IP command. More... | |
char * | ping_cmd (void) |
SUPERVISOR_PING command. More... | |
int | subscribe_events_cmd (struct supervisor_context *context, const struct client_address *addr) |
SUBSCRIBE_EVENTS command. More... | |
File containing the implementation of the system commands.
char* ping_cmd | ( | void | ) |
SUPERVISOR_PING command.
int set_ip_cmd | ( | struct supervisor_context * | context, |
uint8_t * | mac_addr, | ||
char * | ip_addr, | ||
enum DHCP_IP_TYPE | ip_type | ||
) |
SET_IP command.
context | The supervisor structure instance |
mac_addr | The MAC address |
ip_addr | The IP address |
ip_type | The DHCP_IP_TYPE |
int subscribe_events_cmd | ( | struct supervisor_context * | context, |
const struct client_address * | addr | ||
) |
SUBSCRIBE_EVENTS command.
context | The supervisor structure instance |
addr | The subscriber address |