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

📄 pppconf5.c

📁 PPPoE协议在Psos中的实现源代码
💻 C
字号:
/**********************************************************************//*                                                                    *//*   MODULE:  pppconf.c                                               *//*   PRODUCT: pNA+,  OpEN TCP/IP PPP driver                           *//*   PURPOSE: PPPCONF module                                          *//*   DATE:    28 February, 1996                                       *//*                                                                    *//*--------------------------------------------------------------------*//*                                                                    *//*              Copyright 1996, Integrated Systems, Inc.              *//*                      ALL RIGHTS RESERVED                           *//*                                                                    *//*   Permission is hereby granted to licensees of Integrated Systems, *//*   Inc. products to use or abstract this computer program for the   *//*   sole purpose of implementing a product based on Integrated       *//*   Systems, Inc. products.   No other rights to reproduce, use,     *//*   or disseminate this computer program, whether in part or in      *//*   whole, are granted.                                              *//*                                                                    *//*   Integrated Systems, Inc. makes no representation or warranties   *//*   with respect to the performance of this computer program, and    *//*   specifically disclaims any responsibility for any damages,       *//*   special or consequential, connected with the use of this program.*//*                                                                    *//**********************************************************************//*From CLib*/#include <stdarg.h>#include <stdio.h>#include <tm1/tsaComponent.h>#include <tmlib/dprintf.h>#include "c:\trimedia\include\tm1\mmio.h"#include <tm1/tmBoard.h>#include <tm1/tmProcessor.h>/*From pSOSystem*/#include <pna.h>#include <dns.h>/*#include <genif.h>*//*#include <drv_intf.h>*/#include <gsblk.h>#include <ni_ppp.h>#include <disiisl.h>#include <configs.h>#include <tm1/tmIntPins.h>#include <bsp.h>#include <disi.h>#include "sys_conf.h"#include "ppp.h"#include "mygenif.h"extern IFentrypoint DISIentrypoint;char *hostname ="card";void (*ppp_error_callout) (unsigned long unit, unsigned long error) = 0;/* PPP unit configuration table  */struct ppp_cfg pppcfgtab [MAXPPPUNITS + 1] ={                    /*Unit 0---channel 0, direct connection*/                    {   /*ifinfo*/          &DISIentrypoint,   /*IFconfig*/        NULL,/*&dev0cfg,*/   /*pppmode*/         PPPMODE_ACTIVE,/*PPPMODE_ACTIVE,      Mode for PPP unit */   /*dialmode*/        PPP_DIRECT,/*PPP_DIALUP, */         /* Dialmode for PPP unit */   /*xfermode*/        PPP_ASYNC,           /* Async serial link */   /*user*/            "100000356995",          /* Username for PAP */   /*passwd*/          "99679933",           /* Password for PAP */   /*mru*/             1492,   /*asyncmap*/        0x0000,   /*lcp_options*/     NEGMRU|NEGMAGIC,   /*auth_options*/    NOCHAP,/*REQUPAP,*/ /*REQCHAP,*/   /*local_ip*/        0, /* negotiate IP address from server */   /*peer_ip*/         0, /* Peer IP address of the channel */   /*ipcp_options*/    NEGADDR                    }                    };/* Password table for PPP PAP */struct passwdentry passwdtab [10] = {    "BJ-PDSN-1",    "",    "LOGIN OK",  /* Login message */    0};/* * Secret table for CHAP */struct secretentry secrettab [10] ={   "BJ-PDSN-1", /* User */   "card",   /* Key */   0};

⌨️ 快捷键说明

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