lli.h

来自「代码在ti的c67系列单片机上实现了完整的TCPIP协议栈」· C头文件 代码 · 共 56 行

H
56
字号
//------------------------------------------------------------------------
// Ip Stack
//------------------------------------------------------------------------
// LLI.H
//
//
// Author: Michael A. Denio
// Copyright 1999 by Texas Instruments Inc.
//-------------------------------------------------------------------------

#ifndef _C_LLI_INC
#define _C_LLI_INC  /* #defined if this .h file has been included */

//-----------------------------------------------------------------------
//
// Private Structures
//

//-----------------------------------------------------------------------
// LLI Structure
//
typedef struct _lli {
        uint        Type;          // Set to HTYPE_LLI
        struct _lli *pNextExp;     // Next LLI in timeout list
        uint        Status;        // Status code
        HANDLE      hRt;           // Associated Route
        UINT32      dwTimeout;     // ARP Request Timeout
        UINT32      dwPacketCount; // Packets sent via this route
        HANDLE      hPkt;          // Packet waiting on this LLI
        HANDLE      hLLA;          // LLA
        } LLI;

// LLI Status
#define LLI_STATUS_IDLE        0   // Arp Inactive
#define LLI_STATUS_ARP0        1   // Arp Request Initiating
#define LLI_STATUS_ARP1        2   // Arp Request 1 Pending
#define LLI_STATUS_ARP2        3   // Arp Request 2 Pending
#define LLI_STATUS_ARP3        4   // Arp Request 3 Pending
#define LLI_STATUS_ARP4        5   // Arp Request 4 Pending
#define LLI_STATUS_ARP5        6   // Arp Request 5 Pending
#define LLI_STATUS_DOWN        7   // Host in "down time" (typically 20 sec)
#define LLI_STATUS_VALID       8   // LLA is valid

//-----------------------------------------------------------------------
//
// Private Functions
//

extern void   _LLIExpListInsert( LLI *plli, UINT32 dwExp );
extern void   _LLIExpListRemove( LLI *plli );
extern void   _LLITimeoutCheck();
extern void   _LLITimeoutFlush();
extern void   _LLILowResource();

#endif

⌨️ 快捷键说明

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