Annotation of embedaddon/mpd/src/defs.h, revision 1.1.1.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
58:
59: /* Boolean */
60: #ifndef TRUE
61: #define TRUE 1
62: #endif
63: #ifndef FALSE
64: #define FALSE 0
65: #endif
66:
67: #ifndef MPD_VENDOR
68: #define MPD_VENDOR "FreeBSD MPD"
69: #endif
70:
71: /* Exit codes */
72: #define EX_NORMAL EX_OK
73: #define EX_ERRDEAD EX_SOFTWARE
74: #define EX_TERMINATE 99 /* pseudo-code */
75:
76: /* Pathnames */
77: #define CONF_FILE "mpd.conf"
78: #define SECRET_FILE "mpd.secret"
79: #define SCRIPT_FILE "mpd.script"
80:
81: #ifndef PATH_CONF_DIR
82: #define PATH_CONF_DIR "/etc/ppp"
83: #endif
84:
85: #define LG_FILE "/var/log/mpd"
86: #define PID_FILE "/var/run/mpd.pid"
87: #define PATH_LOCKFILENAME "/var/spool/lock/LCK..%s"
88:
89: #define PATH_IFCONFIG "/sbin/ifconfig"
90: #define PATH_ARP "/usr/sbin/arp"
91: #ifdef USE_IPFW
92: #define PATH_IPFW "/sbin/ipfw"
93: #endif
94: #define PATH_NETSTAT "/usr/bin/netstat"
95:
96: #define AUTH_MAX_AUTHNAME 64
97: #define AUTH_MAX_PASSWORD 64
98: #define AUTH_MAX_SESSIONID 32
99:
100: #define LINK_MAX_NAME 16
101:
102: #define DEFAULT_CONSOLE_PORT 5005
103: #define DEFAULT_CONSOLE_IP "127.0.0.1"
104:
105: #define DEFAULT_WEB_PORT 5006
106: #define DEFAULT_WEB_IP "127.0.0.1"
107:
108: #define DEFAULT_RADSRV_PORT 3799
109: #define DEFAULT_RADSRV_IP "0.0.0.0"
110:
111: /* Characters, leave for interface number. For example: ppp9999 */
112: #define IFNUMLEN (sizeof("9999") - 1)
113:
114: /* Forward decl's */
115: struct linkst;
116: typedef struct linkst *Link;
117: struct bundle;
118: typedef struct bundle *Bund;
119: struct rep;
120: typedef struct rep *Rep;
121:
122: struct context;
123: typedef struct context *Context;
124:
125: #endif
126:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>