/* Protocol version. Different major versions are incompatible. */
-#define PROT_MAJOR 17
-#define PROT_MINOR 3 /* Should not exceed 255! */
+#define PROT_MAJOR 18
+#define PROT_MINOR 0 /* Should not exceed 255! */
/* Silly Windows */
typedef enum request_t {
ALL = -1, /* Guardian for allow_request */
- ID = 0, METAKEY, CHALLENGE, CHAL_REPLY, ACK,
- STATUS, ERROR, TERMREQ,
- PING, PONG,
- ADD_SUBNET, DEL_SUBNET,
- ADD_EDGE, DEL_EDGE,
- KEY_CHANGED, REQ_KEY, ANS_KEY,
- PACKET,
+ ID = 0,
+ ACK,
+ PING,
+ PONG,
+ ADD_EDGE,
+ DEL_EDGE,
+ REQ_KEY,
+ ANS_KEY,
/* Tinc 1.1 requests */
- CONTROL,
REQ_PUBKEY, ANS_PUBKEY,
REQ_SPTPS,
LAST /* Guardian for the highest request number */
extern bool send_pong(struct meshlink_handle *mesh, struct connection_t *);
extern bool send_add_edge(struct meshlink_handle *mesh, struct connection_t *, const struct edge_t *, int contradictions);
extern bool send_del_edge(struct meshlink_handle *mesh, struct connection_t *, const struct edge_t *, int contradictions);
-extern void send_key_changed(struct meshlink_handle *mesh);
extern bool send_req_key(struct meshlink_handle *mesh, struct node_t *);
/* Request handlers */
extern bool id_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
extern bool ack_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
-extern bool status_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
-extern bool error_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
-extern bool termreq_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
extern bool ping_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
extern bool pong_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
extern bool add_edge_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
extern bool key_changed_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
extern bool req_key_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
extern bool ans_key_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
-extern bool tcppacket_h(struct meshlink_handle *mesh, struct connection_t *, const char *);
#endif