pap_defs.h
来自「基于nucleus操作系统的GPRS无线数据传输终端全套源文件。包括支持ARM7」· C头文件 代码 · 共 69 行
H
69 行
/***************************************************************************
*
* 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 + =
减小字号Ctrl + -
显示快捷键?