18
src/ctl.h
18
src/ctl.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user