Don't assume sa.sa_family is a short int.
[tinc] / src / control_common.h
1 /*
2     control_protocol.h -- control socket protocol.
3     Copyright (C) 2007      Scott Lamb <slamb@slamb.org>
4                   2009-2012 Guus Sliepen <guus@tinc-vpn.org>
5
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License along
17     with this program; if not, write to the Free Software Foundation, Inc.,
18     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #ifndef __TINC_CONTROL_PROTOCOL_H__
22 #define __TINC_CONTROL_PROTOCOL_H__
23
24 #include "protocol.h"
25
26 enum request_type {
27         REQ_INVALID = -1,
28         REQ_STOP = 0,
29         REQ_RELOAD,
30         REQ_RESTART,
31         REQ_DUMP_NODES,
32         REQ_DUMP_EDGES,
33         REQ_DUMP_SUBNETS,
34         REQ_DUMP_CONNECTIONS,
35         REQ_DUMP_GRAPH,
36         REQ_PURGE,
37         REQ_SET_DEBUG,
38         REQ_RETRY,
39         REQ_CONNECT,
40         REQ_DISCONNECT,
41         REQ_DUMP_TRAFFIC,
42         REQ_PCAP,
43         REQ_LOG,
44 };
45
46 #define TINC_CTL_VERSION_CURRENT 0
47
48 #endif