2012-11-26 16:12:46 +10:30
|
|
|
/*
|
|
|
|
Serval DNA configuration
|
|
|
|
Copyright (C) 2012 Serval Project Inc.
|
|
|
|
|
|
|
|
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 the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2012-11-23 10:11:07 +10:30
|
|
|
STRUCT(log)
|
2012-11-23 19:13:02 +10:30
|
|
|
STRING(256, file, "", opt_absolute_path,, "Absolute path of log file")
|
|
|
|
ATOM(int, show_pid, 1, opt_boolean,, "If true, all log lines contain PID of logging process")
|
|
|
|
ATOM(int, show_time, 1, opt_boolean,, "If true, all log lines contain time stamp")
|
2012-11-23 10:11:07 +10:30
|
|
|
END_STRUCT
|
2012-11-20 18:09:19 +10:30
|
|
|
|
2012-11-23 10:11:07 +10:30
|
|
|
STRUCT(rhizomepeer)
|
2012-11-23 19:13:02 +10:30
|
|
|
STRING(25, protocol, "http", opt_protocol,, "Protocol name")
|
|
|
|
STRING(256, host, "", opt_str_nonempty, MANDATORY, "Host name or IP address")
|
|
|
|
ATOM(uint16_t, port, RHIZOME_HTTP_PORT, opt_port,, "Port number")
|
2012-11-23 10:11:07 +10:30
|
|
|
END_STRUCT
|
2012-11-20 18:09:19 +10:30
|
|
|
|
2012-11-26 16:12:46 +10:30
|
|
|
ARRAY_NODE(peerlist, 10, struct config_rhizomepeer, opt_rhizome_peer, "Rhizome peers")
|
2012-11-22 18:20:13 +10:30
|
|
|
|
2012-11-23 10:11:07 +10:30
|
|
|
STRUCT(rhizomedirect)
|
2012-11-23 19:13:02 +10:30
|
|
|
SUB_STRUCT(peerlist, peer,)
|
2012-11-23 10:11:07 +10:30
|
|
|
END_STRUCT
|
2012-11-21 18:09:05 +10:30
|
|
|
|
2012-11-23 10:11:07 +10:30
|
|
|
STRUCT(rhizome)
|
2012-11-23 19:13:02 +10:30
|
|
|
STRING(256, path, "", opt_absolute_path,, "Absolute path of rhizome directory")
|
|
|
|
ATOM(int, enabled, 1, opt_boolean,, "If true, Rhizome HTTP server is started")
|
|
|
|
SUB_STRUCT(rhizomedirect, direct,)
|
2012-11-23 10:11:07 +10:30
|
|
|
END_STRUCT
|
2012-11-22 18:20:13 +10:30
|
|
|
|
2012-11-23 10:11:07 +10:30
|
|
|
STRUCT(directory)
|
2012-11-23 19:13:02 +10:30
|
|
|
ATOM(sid_t, service, SID_NONE, opt_sid,, "Subscriber ID of Serval Directory Service")
|
2012-11-23 10:11:07 +10:30
|
|
|
END_STRUCT
|
2012-11-21 18:09:05 +10:30
|
|
|
|
2012-11-23 10:11:07 +10:30
|
|
|
STRUCT(network_interface)
|
2012-11-24 03:38:10 +10:30
|
|
|
ATOM(int, exclude, 0, opt_boolean,, "If true, do not use matching interfaces")
|
|
|
|
ATOM(struct pattern_list, match, PATTERN_LIST_EMPTY, opt_pattern_list, MANDATORY, "Names that match network interface")
|
2012-11-23 19:13:02 +10:30
|
|
|
ATOM(short, type, OVERLAY_INTERFACE_WIFI, opt_interface_type,, "Type of network interface")
|
|
|
|
ATOM(uint16_t, port, RHIZOME_HTTP_PORT, opt_port,, "Port number for network interface")
|
|
|
|
ATOM(uint64_t, speed, 1000000, opt_uint64_scaled,, "Speed in bits per second")
|
2012-11-23 10:11:07 +10:30
|
|
|
END_STRUCT
|
2012-11-22 18:20:13 +10:30
|
|
|
|
2012-11-26 16:12:46 +10:30
|
|
|
ARRAY_STRUCT(interface_list, 10, network_interface, "Network interfaces")
|
2012-11-22 18:20:13 +10:30
|
|
|
|
2012-11-23 10:11:07 +10:30
|
|
|
STRUCT(main)
|
2012-11-23 19:13:02 +10:30
|
|
|
NODE_STRUCT(interface_list, interfaces, opt_interface_list, MANDATORY)
|
|
|
|
SUB_STRUCT(log, log,)
|
|
|
|
NODE(debugflags_t, debug, 0, opt_debugflags, USES_CHILDREN, "Debug flags")
|
|
|
|
SUB_STRUCT(rhizome, rhizome,)
|
|
|
|
SUB_STRUCT(directory, directory,)
|
2012-11-23 10:11:07 +10:30
|
|
|
END_STRUCT
|