EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
system_commands.h
Go to the documentation of this file.
1 
11 #ifndef SYSTEM_COMMANDS_H
12 #define SYSTEM_COMMANDS_H
13 
14 #include <stdbool.h>
15 #include <inttypes.h>
16 #include <sys/un.h>
17 
18 #include "../utils/sockctl.h"
19 #include "supervisor_config.h"
20 
27 };
28 
29 #define PING_REPLY "PONG\n"
30 
40 int set_ip_cmd(struct supervisor_context *context, uint8_t *mac_addr,
41  char *ip_addr, enum DHCP_IP_TYPE ip_type);
42 
48 char *ping_cmd(void);
49 
57 int subscribe_events_cmd(struct supervisor_context *context,
58  const struct client_address *addr);
59 
60 #endif
Client address structure definition.
Definition: sockctl.h:28
Supervisor structure definition.
Definition: supervisor_config.h:45
File containing the definition of the supervisor service structure.
int set_ip_cmd(struct supervisor_context *context, uint8_t *mac_addr, char *ip_addr, enum DHCP_IP_TYPE ip_type)
SET_IP command.
Definition: system_commands.c:33
int subscribe_events_cmd(struct supervisor_context *context, const struct client_address *addr)
SUBSCRIBE_EVENTS command.
Definition: system_commands.c:173
char * ping_cmd(void)
SUPERVISOR_PING command.
Definition: system_commands.c:171
DHCP_IP_TYPE
Definition: system_commands.h:21
@ DHCP_IP_OLD
Definition: system_commands.h:24
@ DHCP_IP_ARP
Definition: system_commands.h:26
@ DHCP_IP_NONE
Definition: system_commands.h:22
@ DHCP_IP_NEW
Definition: system_commands.h:23
@ DHCP_IP_DEL
Definition: system_commands.h:25