⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ppp_conf.h

📁 PPPoE协议在Psos中的实现源代码
💻 H
字号:
/* ppp_conf.h,v 1993/12/09 02:29:50 *//************************************************************************//*                                                                      *//*   MODULE: ppp_conf.h                                                 *//*   PRODUCT: pNA+                                                      *//*   PURPOSE: User configurations for PPP driver                        *//*   DATE: 11/05/93                                                     *//*                                                                      *//*----------------------------------------------------------------------*//*                                                                      *//*              Copyright 1993, Integrated Systems Inc.                 *//*                      ALL RIGHTS RESERVED                             *//*                                                                      *//*   This computer program is the property of Integrated Systems Inc.   *//*   Santa Clara, California, U.S.A. and may not be copied              *//*   in any form or by any means, whether in part or in whole,          *//*   except under license expressly granted by Integrated Systems Inc.  *//*                                                                      *//*   All copies of this program, whether in part or in whole, and       *//*   whether modified or not, must display this and all other           *//*   embedded copyright and ownership notices in full.                  *//*                                                                      *//************************************************************************/#if defined(__cplusplus)extern "C" {#endif#ifndef __PPP_CONF_H__#define __PPP_CONF_H__#define YES 1#define NO 0#define NUM_PPP        4          /* # of PPP channels *//*======================================================================*//* User-configurable parameters - change to values you deem appropriate.*//*======================================================================*/#define MAXPPPUNITS 4                 /* Max. # of NI interfaces */#define NPPP        4                  /* # of PPP channels */#define NPPPBUF     10                 /* Number of PPP buffers */#define NPPPHEADERS (NPPPBUF*3)        /* # of PPP headers */#define NASYNCSBUF  NPPPHEADERS        /* Number of async Send buffers */#define NCALLOUTS   5                 /* Number of timers */#define DEBUG YES                      /* turn on debug */#define DEFTIMEOUT  50           /* Re-transmission timeout (in seconds) */#define DEFMAXCONFTRANSMITS 10  /* Max # of Config-Request transmissions */#define DEFMAXTERMTRANSMITS 10  /* Max # of Terminate-Request transmissions */#define DEFMAXTERMREQS  2   /* Maximum Terminate-Request transmissions */#define DEFMAXCONFREQS  10  /* Maximum Configure-Request transmissions */#define DEFMAXNAKLOOPS  10      /* Maximum number of nak loops *//*----------------------------------------------------------------------*//* OPTION MRU                                                           *//*----------------------------------------------------------------------*/#define PPPMODE_ACTIVE	1          /* We start the negotiation */#define PPPMODE_PASSIVE	0#define MYMRU       1500          /* our MRU */#define OPENTCPIP NO#define CHAPNEEDED NO#define UPAPNEEDED YES /*======================================================================*//* End of of user-configurable parameters.  Don't change anything after *//* this.                                                                *//*======================================================================*/#define DEFMRU  1500                   /* RFC1331 says */#define MINMRU  128                    /* No MRUs below this is allowed */#define MAXMRU  1500                   /* Normally limit MRU to this */#if (DEFMRU > MYMRU)#define BUFSIZE DEFMRU                 /* use default */#else#define BUFSIZE MYMRU                  /* whatever user configures */#endif/*----------------------------------------------------------------------*//*    ERROR NUMBERS FOR PPP                                             *//*----------------------------------------------------------------------*/#define EOK      0x10070000 /* no problem */#define EMIB     0x10070001 /* try to access mib when iface's down */#define ETIMEOUT 0x10070002 /* exhaust retries */#define EAUTHFAIL 0x10070003 /* Authentication failed with server */#define ECHATTIMEOUT 0x10070010 /* Chat timed out */#define ECHATABORT 0x10070011 /* Chat abort string received */#define ECHATERROR 0x10070012 /* Chat error *//* Error callout function */extern void (*ppp_error_callout)(unsigned long unit, unsigned long error);/* * Status of PPP link */#define PSNEGOTIATING 1       /* negotiating */#define PSUP       2       /* PPP has come up */#define PSDOWN     3       /* negotiation has failed *//*---------------------------------------------------------------------*//* THE 'PPPD' TASK PARAMETERS                                          *//*---------------------------------------------------------------------*/#define PPPD_NAME       "PPPD"    /* Name of the task */#define PPPD_PRIO       250       /* Priority of the client task */#define PPPD_USRSTACK   0x10000   /* User stack size of pppd task */#define PPPD_SYSSTACK   0x10000   /* Supervisor stack size */#define PPPD_FLAGS      0x00      /* Flags for pppd task */#define PPPD_INITMODE   T_SUPV    /* Run in superviser mode - int 0 */#endif /* __PPP_CONF_H__ */#if defined(__cplusplus)}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -