/* * defs.h * * Written by Archie Cobbs * Copyright (c) 1995-1999 Whistle Communications, Inc. All rights reserved. * See ``COPYRIGHT.whistle'' */ #ifndef _DEFS_H_ #define _DEFS_H_ #include #include #include /* * DEFINITIONS */ /* Compile time configuring. */ #if (__FreeBSD_version >= 600000) #define USE_NG_TCPMSS #define USE_NG_NETFLOW #define USE_NG_NAT #endif #if ((__FreeBSD_version >= 602104 && __FreeBSD_version < 700000) || __FreeBSD_version >= 700029) #define USE_NG_DEFLATE #define USE_NG_PRED1 #endif /* Boolean */ #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif #ifndef MPD_VENDOR #define MPD_VENDOR "FreeBSD MPD" #endif /* Exit codes */ #define EX_NORMAL EX_OK #define EX_ERRDEAD EX_SOFTWARE #define EX_TERMINATE 99 /* pseudo-code */ /* Pathnames */ #define CONF_FILE "mpd.conf" #define SECRET_FILE "mpd.secret" #define LINKS_FILE "mpd.links" #define SCRIPT_FILE "mpd.script" #ifndef PATH_CONF_DIR #define PATH_CONF_DIR "/etc/ppp" #endif #define LG_FILE "/var/log/mpd" #define PID_FILE "/var/run/mpd.pid" #define PATH_LOCKFILENAME "/var/spool/lock/LCK..%s" #define PATH_IFCONFIG "/sbin/ifconfig" #define PATH_ARP "/usr/sbin/arp" #define PATH_ROUTE "/sbin/route" #define PATH_IPFW "/sbin/ipfw" #define PATH_NETSTAT "/usr/bin/netstat" #define AUTH_MAX_AUTHNAME 64 #define AUTH_MAX_PASSWORD 64 #define AUTH_MAX_EXTCMD 128 /* Max. len of the uniq session id, shouldn't exceed the max. * RADIUS attribute len, wich is 253 */ #define AUTH_MAX_SESSIONID 253 #define LINK_MAX_NAME 20 #define DEFAULT_CONSOLE_PORT 5005 #define DEFAULT_CONSOLE_IP "127.0.0.1" #define DEFAULT_WEB_PORT 5006 #define DEFAULT_WEB_IP "127.0.0.1" /* Forward decl's */ struct linkst; typedef struct linkst *Link; struct bundle; typedef struct bundle *Bund; #endif