Add ctl for mud_add_path() and mud_del_path()

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-01-26 19:52:16 +00:00
parent 0169a09469
commit 567e5d0193
5 changed files with 68 additions and 18 deletions

View File

@@ -2,8 +2,10 @@
enum ctl_type {
CTL_UNKNOWN,
CTL_PATH_ADD,
CTL_PATH_DEL,
CTL_PING,
CTL_PONG,
CTL_REPLY,
};
struct ctl_msg {
@@ -12,6 +14,12 @@ struct ctl_msg {
struct {
enum ctl_type type;
} unknown;
struct {
struct {
char addr[256];
} add, del;
} path;
int reply;
};
};