File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / src / defs.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 08:44:29 2013 UTC (10 years, 11 months ago) by misho
Branches: mpd, MAIN
CVS tags: v5_7p0, v5_7, HEAD
5.7

    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: 
   88:   #define PATH_ARP		"/usr/sbin/arp"
   89: #ifdef USE_IPFW
   90:   #define PATH_IPFW		"/sbin/ipfw"
   91: #endif
   92:   #define PATH_NETSTAT		"/usr/bin/netstat"
   93: 
   94:   #define AUTH_MAX_AUTHNAME	64
   95:   #define AUTH_MAX_PASSWORD	64
   96:   #define AUTH_MAX_SESSIONID	32
   97: 
   98:   #define LINK_MAX_NAME		16
   99: 
  100:   #define DEFAULT_CONSOLE_PORT	5005
  101:   #define DEFAULT_CONSOLE_IP	"127.0.0.1"
  102: 
  103:   #define DEFAULT_WEB_PORT	5006
  104:   #define DEFAULT_WEB_IP	"127.0.0.1"
  105: 
  106:   #define DEFAULT_RADSRV_PORT	3799
  107:   #define DEFAULT_RADSRV_IP	"0.0.0.0"
  108: 
  109:   /* Characters, leave for interface number. For example: ppp9999 */
  110:   #define IFNUMLEN		(sizeof("9999") - 1)
  111: 
  112:   /* Forward decl's */
  113:   struct linkst;
  114:   typedef struct linkst *Link;
  115:   struct bundle;
  116:   typedef struct bundle *Bund;
  117:   struct rep;
  118:   typedef struct rep *Rep;
  119: 
  120:   struct context;
  121:   typedef struct context *Context;
  122: 
  123: #endif
  124: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>