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

📄 pap_defs.h

📁 PPP协议C语言源程序
💻 H
字号:
/***************************************************************************
*
*      Copyright (c) 1997 - 2001 by Accelerated Technology, Inc.
*
* PROPRIETARY RIGHTS of Accelerated Technology are involved in the subject
* matter of this material.  All manufacturing, reproduction, use and sales
* rights pertaining to this subject matter are governed by the license
* agreement.  The recipient of this software implicity accepts the terms
* of the license.
*
****************************************************************************/
/***************************************************************************
*
*   FILENAME                                                VERSION
*
*       PAP_DEFS.H                                          2.4
*
*   COMPONENT
*
*       PAP
*
*   DESCRIPTION
*
*       Contains the constant and structure definitions for PAP.C
*
*   DATA STRUCTURES
*
*       pw_list
*       AUTHENTICATION_LAYER
*
*   DEPENDENCIES
*
*       ppp_opts.h
*
****************************************************************************/

#ifndef PAP_DEFS_H
#define PAP_DEFS_H

#include "ppp/inc/ppp_opts.h"

/* this is the structure that will hold the password list */
struct pw_list
{
    CHAR id[PPP_MAX_ID_LENGTH];
    CHAR pw[PPP_MAX_PW_LENGTH];
};

/* Define that structure that will hold all information pertaining to
   authentication. */
typedef struct _authentication_layer
{
    NET_BUFFER  *negotiation_pkt;
    NU_TIMER    authentication_timer;
    CHAP_LAYER  chap;
    INT8        num_timeouts;
    CHAR        login_name[PPP_MAX_ID_LENGTH];
    CHAR        login_pw[PPP_MAX_PW_LENGTH];
} AUTHENTICATION_LAYER;

#define PAP_AUTHENTICATE_REQUEST    1
#define PAP_AUTHENTICATE_ACK        2
#define PAP_AUTHENTICATE_NAK        3

#define PAP_ID_LENGTH_OFFSET        4
#define PAP_ID_OFFSET               5

#endif

⌨️ 快捷键说明

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