EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
File containing the definition of the system commands. More...
#include <stdbool.h>
#include <inttypes.h>
#include <sys/un.h>
#include "../utils/sockctl.h"
#include "supervisor_config.h"
Go to the source code of this file.
Macros | |
#define | PING_REPLY "PONG\n" |
Enumerations | |
enum | DHCP_IP_TYPE { DHCP_IP_NONE = 0 , DHCP_IP_NEW , DHCP_IP_OLD , DHCP_IP_DEL , DHCP_IP_ARP } |
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 definition of the system commands.
#define PING_REPLY "PONG\n" |
enum DHCP_IP_TYPE |
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 |