Add command show

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-02-12 22:58:57 +00:00
parent 7548ba2c27
commit 3c2423a38b
8 changed files with 219 additions and 60 deletions

View File

@@ -4,7 +4,8 @@ enum ctl_type {
CTL_UNKNOWN,
CTL_PATH_ADD,
CTL_PATH_DEL,
CTL_PING,
CTL_STATUS,
CTL_STATUS_REPLY,
CTL_REPLY,
};
@@ -19,9 +20,20 @@ struct ctl_msg {
char addr[256];
} add, del;
} path;
struct {
size_t mtu;
int mtu_auto;
int chacha;
char addr[256];
unsigned short port;
unsigned short bind_port;
int ipv4;
int ipv6;
} status;
int reply;
};
};
int ctl_init (const char *, const char *);
int ctl_connect (int, const char *, const char *);
int ctl_create (const char *, const char *);
int ctl_connect (int, const char *, const char *);
void ctl_delete (int);