lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /**************************************************************************
|
| 2 | *
|
| 3 | * Copyright (c) 2012 ZTE Corporation.
|
| 4 | *
|
| 5 | ***************************************************************************
|
| 6 | * Ä£ ¿é Ãû : P98C_OSS
|
| 7 | * ÎÄ ¼þ Ãû : oss_ppp.h
|
| 8 | * Ïà¹ØÎļþ :
|
| 9 | * ʵÏÖ¹¦ÄÜ : pppÄ£¿é¶ÔÍâÍ·Îļþ
|
| 10 | * ×÷ Õß : zhangpeirong
|
| 11 | * °æ ±¾ : V1.0
|
| 12 | * Íê³ÉÈÕÆÚ : 2012-08-06
|
| 13 | * ÆäËü˵Ã÷ :
|
| 14 | **************************************************************************/
|
| 15 |
|
| 16 | /**************************************************************************
|
| 17 | * Ð޸ļǼ
|
| 18 | **************************************************************************/
|
| 19 | /**************************************************************************
|
| 20 | * Ð޸ıàºÅ : 0001
|
| 21 | * ÐÞ ¸Ä ÈË : zpr
|
| 22 | * ÐÞ¸ÄÈÕÆÚ : 2012-06-20
|
| 23 | * ÐÞ¸ÄÄÚÈÝ : EC:617001563315,PSBUFλÖøüÐÂ
|
| 24 | **************************************************************************/
|
| 25 | #ifndef _OSS_PPP_H
|
| 26 | #define _OSS_PPP_H
|
| 27 |
|
| 28 | /**************************************************************************
|
| 29 | * #includeÇø
|
| 30 | **************************************************************************/
|
| 31 | #include "ppp_api.h"
|
| 32 |
|
| 33 | #ifdef __cplusplus
|
| 34 | extern "C"
|
| 35 | {
|
| 36 | #endif
|
| 37 |
|
| 38 | /**************************************************************************
|
| 39 | * ³£Á¿¶¨ÒåÇø
|
| 40 | **************************************************************************/
|
| 41 | #define PPPIOCTL_PDP_TYPE ZPPP_CTRL_GET_PDP_TYPE
|
| 42 | #define PPPIOCTL_SET_PDPTYPE ZPPP_CTRL_SET_PDP_TYPE
|
| 43 | #define PPPIOCTL_MTU ZPPP_CTRL_GET_MRU
|
| 44 | #define PPPIOCTL_SET_MTU ZPPP_CTRL_SET_MRU
|
| 45 | #define PPPIOCTL_SET_PPPOE_INPUTPACKET_CB ZPPP_CTRL_SET_PPPOE_INPUTPACKET_CB
|
| 46 | #define PPPIOCTL_SET_ATI2_IPADDRS_CB ZPPP_CTRL_SET_ATI_IPADDRS_CB
|
| 47 | #define PPPIOCTL_SET_ATI2_NOTREADY ZPPP_CTRL_SET_ATI_NOTREADY
|
| 48 |
|
| 49 | #define PPPERR_NONE ZPPP_ERR_NONE
|
| 50 | #define PPPERR_PARAM ZPPP_ERR_PARAM
|
| 51 | #define PPPERR_OPEN ZPPP_ERR_OPEN
|
| 52 | #define PPPERR_DEVICE ZPPP_ERR_DEVICE
|
| 53 | #define PPPERR_ALLOC ZPPP_ERR_ALLOC
|
| 54 | #define PPPERR_USER ZPPP_ERR_USER
|
| 55 | #define PPPERR_CONNECT ZPPP_ERR_CONNECT
|
| 56 | #define PPPERR_AUTHFAIL ZPPP_ERR_AUTHFAIL
|
| 57 | #define PPPERR_PROTOCOL ZPPP_ERR_PROTOCOL
|
| 58 | #define PPPERR_RECVATEND ZPPP_ERR_RECVATEND
|
| 59 | #define PPPERR_EXITPPP ZPPP_ERR_EXITPPP
|
| 60 |
|
| 61 | /**************************************************************************
|
| 62 | * Êý¾Ý½á¹¹¶¨ÒåÇø
|
| 63 | **************************************************************************/
|
| 64 | typedef enum
|
| 65 | {
|
| 66 | PPP_PPPOE_DOING, /* ÐÉÌ̬ */
|
| 67 | PPP_PPPOE_SUCCESS, /* ÐÉÌÍê³É */
|
| 68 | PPP_PPPOE_FAIL, /* ÐÉÌʧ°Ü */
|
| 69 | PPP_PPPOE_IPPACKET, /* IP°ü»Ø´« */
|
| 70 | PPP_PPPOE_UNKNOWPACKET_ERROR /* ²»Ê¶±ðµÄ°ü */
|
| 71 | }E_ZOss_PppoeStatusNotify;
|
| 72 |
|
| 73 | typedef T_zPpp_Sio T_ZOss_PppSio;
|
| 74 |
|
| 75 | typedef T_zPpp_IpAddrs T_ZOss_PppIpAddrs;
|
| 76 |
|
| 77 | typedef T_zPpp_LinkCtrl T_ZOss_PppLinkCtl;
|
| 78 |
|
| 79 | /* ¶¨Òå֪ͨ¹¤¾ß·µ»ØIP°ü»Øµ÷µÄº¯ÊýÀàÐÍ */
|
| 80 | typedef BOOL (*OutputPacket_CB)(UINT32 pppNum, VOID *packet, UINT32 packetLen, UINT8 flag);
|
| 81 |
|
| 82 | /**************************************************************************
|
| 83 | * º¯ÊýÉùÃ÷Çø
|
| 84 | **************************************************************************/
|
| 85 | #define zOss_PppOpen zPpp_Open
|
| 86 | #define zOss_PppClose zPpp_Close
|
| 87 | #define zOss_PppStart zPpp_Start
|
| 88 | #define zOss_PppWriteIp zPpp_WriteIp
|
| 89 | #define zOss_InputDataFromPppoe zPpp_InputDataFromPppoe
|
| 90 | #define zOss_PppIOCtl zPpp_Ctrl
|
| 91 | #define zOss_PppRegOutputPppPacketCb zPpp_RegOutputPppPacketCb
|
| 92 |
|
| 93 | /**************************************************************************
|
| 94 | * È«¾Ö±äÁ¿ÉùÃ÷Çø
|
| 95 | **************************************************************************/
|
| 96 |
|
| 97 | #ifdef __cplusplus
|
| 98 | }
|
| 99 | #endif
|
| 100 |
|
| 101 | #endif /* _OSS_PPP_H */
|
| 102 |
|