/*
 * This file is used to configure the locations of essential files required
 * by ax25-utils. It is modified by the 'configure' script, but once created
 * the file config.h may be edited by hand to fit in with non-standard
 * systems.
 */

#ifndef	CONFIG_H
#define	CONFIG_H

/*
 * Some global #defines for programmers to use for conditional compilation
 */
#define HAVEAX25
#define HAVEROSE
#define HAVENETROM


/*
 * The /proc filesystem entries
 */
#define	PROC_AX25_FILE		"/proc/net/ax25"
#define	PROC_AX25_CALLS_FILE	"/proc/net/ax25_calls"
#define	PROC_AX25_ROUTE_FILE	"/proc/net/ax25_route"

#define	PROC_NR_FILE		"/proc/net/nr"
#define	PROC_NR_NEIGH_FILE	"/proc/net/nr_neigh"
#define	PROC_NR_NODES_FILE	"/proc/net/nr_nodes"

#define PROC_RS_FILE		"/proc/net/rose"
#define PROC_RS_NEIGH_FILE	"/proc/net/rose_neigh"
#define PROC_RS_NODES_FILE	"/proc/net/rose_nodes"
#define PROC_RS_ROUTES_FILE	"/proc/net/rose_routes"

#define	PROC_IP_ROUTE_FILE	"/proc/net/route"

#define PROC_AX25_SYSCTL_DIR	"/proc/sys/net/ax25"
#define PROC_NR_SYSCTL_DIR	"/proc/sys/net/netrom"
#define PROC_RS_SYSCTL_DIR	"/proc/sys/net/rose"

/*
 * THE configuration files
 */
#define	CONF_AXPORTS_FILE	"/axports"
#define	CONF_NRPORTS_FILE	"/nrports"
#define	CONF_RSPORTS_FILE	"/rsports"

/*
 * ax25d specific
 */
#define	CONF_AX25D_FILE		"/ax25d.conf"

/*
 * ax25ipd specific
 */
#define	CONF_AX25IPD_FILE	"/ax25ipd.conf"

/*
 * ax25routed specific
 */
#define	CONF_AX25ROUTED_FILE		"/ax25rtd.conf"
#define	DATA_AX25ROUTED_CTL_SOCK	"/ax25rtd/control"
#define	DATA_AX25ROUTED_AXRT_FILE	"/ax25rtd/ax25_route"
#define	DATA_AX25ROUTED_IPRT_FILE	"/ax25rtd/ip_route"

/*
 * axspawn specific
 */
#define	CONF_AXSPAWN_FILE	"/axspawn.conf"
#define	CONF_AXSPAWN_PROF_FILE	"/ax25.profile"
#define	LOCK_AXSPAWN_FILE	"/var/lock/axspawn"

/*
 * mheard specific
 */
#define	DATA_MHEARD_FILE	"/mheard/mheard.dat"

/*
 * rip98d specific
 */
#define	CONF_RIP98D_FILE	"/rip98.conf"

/*
 * rxecho specific
 */
#define	CONF_RXECHO_FILE	"/rxecho.conf"

/*
 * netromd specific
 */
#define	CONF_NETROMD_FILE	"/nrbroadcast"

/*
 * node specific
 */
#define	CONF_NODE_FILE		"/node.conf"
#define	CONF_NODE_PERMS_FILE	"/node.perms"
#define	CONF_NODE_MOTD_FILE	"/node.motd"
#define	CONF_NODE_INFO_FILE	"/node.info"
#define	DATA_NODE_LOGIN_FILE	"/node/loggedin"
#define	DATA_NODE_HELP_DIR	"/usr/lib/ax25/node/help/"

/*
 * pms specific
 */
#define	CONF_PMS_INFO_FILE	"/pms.info"
#define	CONF_PMS_MOTD_FILE	"/pms.motd"
#define	DATA_PMS_LOGIN_FILE	"/pms/loggedin"
#define	DATA_PMS_USERS_FILE	"/pms/users"
#define	DATA_PMS_HEAD_FILE	"/pms/msg.head"
#define	DATA_PMS_BODY_FILE	"/pms/msg.body"
#define	DATA_PMS_TALK_FILE	"/pms/talk.pm/pipe.%d"
#define	MAIL_DELIVERY_AGENT	"/usr/sbin/sendmail %s"
/* #define MY_GATEWAY           "hostname.mail.gw" */
#define	MY_TALK			"/ttylinkd"

/*
 * ttylinkd specific
 */
#define	CONF_TTYLINKD_FILE	"/ttylinkd.conf"

/*
 * Location of serial port lock files
 */
#define	LOCK_SERIAL_DIR		"/var/lock"

#endif
