]> www.tinc-vpn.org Git - tinc/blobdiff - src/protocol.h
Convert sizeof foo to sizeof(foo).
[tinc] / src / protocol.h
index 6c46c726055605a191891197441c361a51b2c7d4..5ddb68c094b0165acd54060b6e6a13ba19e431d9 100644 (file)
@@ -1,7 +1,10 @@
+#ifndef TINC_PROTOCOL_H
+#define TINC_PROTOCOL_H
+
 /*
     protocol.h -- header for protocol.c
     Copyright (C) 1999-2005 Ivo Timmermans,
-                  2000-2009 Guus Sliepen <guus@tinc-vpn.org>
+                  2000-2015 Guus Sliepen <guus@tinc-vpn.org>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -18,9 +21,6 @@
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef __TINC_PROTOCOL_H__
-#define __TINC_PROTOCOL_H__
-
 /* Protocol version. Different versions are incompatible,
    incompatible version have different protocols.
  */
@@ -36,6 +36,7 @@
 /* Request numbers */
 
 typedef enum request_t {
+       PROXY = -2,
        ALL = -1,                                       /* Guardian for allow_request */
        ID = 0, METAKEY, CHALLENGE, CHAL_REPLY, ACK,
        STATUS, ERROR, TERMREQ,
@@ -122,4 +123,4 @@ extern bool req_key_h(struct connection_t *);
 extern bool ans_key_h(struct connection_t *);
 extern bool tcppacket_h(struct connection_t *);
 
-#endif                                                 /* __TINC_PROTOCOL_H__ */
+#endif