Annotation of embedaddon/mpd/src/defs.h, revision 1.1.1.3.4.1
1.1 misho 1:
2: /*
3: * defs.h
4: *
5: * Written by Archie Cobbs <archie@freebsd.org>
6: * Copyright (c) 1995-1999 Whistle Communications, Inc. All rights reserved.
7: * See ``COPYRIGHT.whistle''
8: */
9:
10: #ifndef _DEFS_H_
11: #define _DEFS_H_
12:
13: #include <sys/param.h>
14: #include <sys/types.h>
15: #include <sysexits.h>
16: #include "config.h"
17:
18: /*
19: * DEFINITIONS
20: */
21:
22: /* Compile time configuring. */
23: #ifndef HAVE_NG_CAR
24: #undef USE_NG_CAR
25: #endif
26: #if !defined(HAVE_NG_DEFLATE) || !defined(USE_NG_DEFLATE) || !defined(CCP_DEFLATE)
27: #undef CCP_DEFLATE
28: #undef USE_NG_DEFLATE
29: #endif
30: #ifndef HAVE_NG_IPACCT
31: #undef USE_NG_IPACCT
32: #endif
33: #if !defined(HAVE_NG_MPPC) || !defined(USE_NG_MPPC) || !defined(CCP_MPPC)
34: #undef CCP_MPPC
35: #undef USE_NG_MPPC
36: #endif
37: #ifndef HAVE_NG_NAT
38: #undef USE_NG_NAT
39: #endif
40: #ifndef HAVE_NG_NETFLOW
41: #undef USE_NG_NETFLOW
42: #endif
43: #if !defined(HAVE_NG_PRED1) || !defined(CCP_PRED1)
44: #undef USE_NG_PRED1
45: #endif
46: #ifndef HAVE_NG_TCPMSS
47: #undef USE_NG_TCPMSS
48: #endif
49: #ifndef HAVE_NG_VJC
50: #undef USE_NG_VJC
51: #endif
52: #ifndef HAVE_NG_BPF
53: #undef USE_NG_BPF
54: #endif
55: #ifndef HAVE_IPFW
56: #undef USE_IPFW
57: #endif
1.1.1.3.4.1! misho 58: #ifdef HAVE_RADIUS
! 59: #define USE_RADIUS
! 60: #endif
1.1.1.3 misho 61: #ifndef HAVE_RAD_BIND
62: #undef HAVE_RAD_BIND
63: #endif
64: #ifndef HAVE_NTOA_R
65: #undef HAVE_NTOA_R
66: #endif
1.1 misho 67:
68: /* Boolean */
69: #ifndef TRUE
70: #define TRUE 1
71: #endif
72: #ifndef FALSE
73: #define FALSE 0
74: #endif
75:
76: #ifndef MPD_VENDOR
77: #define MPD_VENDOR "FreeBSD MPD"
78: #endif
79:
80: /* Exit codes */
81: #define EX_NORMAL EX_OK
82: #define EX_ERRDEAD EX_SOFTWARE
83: #define EX_TERMINATE 99 /* pseudo-code */
84:
85: /* Pathnames */
86: #define CONF_FILE "mpd.conf"
87: #define SECRET_FILE "mpd.secret"
88: #define SCRIPT_FILE "mpd.script"
89:
90: #ifndef PATH_CONF_DIR
91: #define PATH_CONF_DIR "/etc/ppp"
92: #endif
93:
94: #define LG_FILE "/var/log/mpd"
95: #define PID_FILE "/var/run/mpd.pid"
96:
97: #define PATH_ARP "/usr/sbin/arp"
98: #ifdef USE_IPFW
99: #define PATH_IPFW "/sbin/ipfw"
100: #endif
101: #define PATH_NETSTAT "/usr/bin/netstat"
102:
103: #define AUTH_MAX_AUTHNAME 64
104: #define AUTH_MAX_PASSWORD 64
105: #define AUTH_MAX_SESSIONID 32
106:
107: #define LINK_MAX_NAME 16
108:
109: #define DEFAULT_CONSOLE_PORT 5005
110: #define DEFAULT_CONSOLE_IP "127.0.0.1"
111:
112: #define DEFAULT_WEB_PORT 5006
113: #define DEFAULT_WEB_IP "127.0.0.1"
114:
115: #define DEFAULT_RADSRV_PORT 3799
116: #define DEFAULT_RADSRV_IP "0.0.0.0"
117:
118: /* Characters, leave for interface number. For example: ppp9999 */
119: #define IFNUMLEN (sizeof("9999") - 1)
120:
121: /* Forward decl's */
122: struct linkst;
123: typedef struct linkst *Link;
124: struct bundle;
125: typedef struct bundle *Bund;
126: struct rep;
127: typedef struct rep *Rep;
128:
129: struct context;
130: typedef struct context *Context;
131:
132: #endif
133:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>