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

📄 ip.h

📁 dsp 的内核编程在此呢
💻 H
字号:
#ifndef _IP_H
#define _IP_H_

/* Include the main CSL file */
#include <csl_mdio.h>


typedef struct IpPkt
{
  Uint8  RevNo4HeaderLen4;        // revision number 4 bits and header length 4 bits
  Uint8  TOS;                     // type of service 
  Uint16 TotalLen;                // total length 
  Uint16 ID;                      // identification 
  Uint16 Mark3SegOffSet13;        // mark 3 bits and segment offset 13 bits.              
  Uint8  TTL;                     // time to live 
  Uint8  UpperLayerProtID;        // upper layer protocal identification 
  Uint16 HeadCRCSum;              // header CRC sum
  Uint32 SourceIPAddr;            // source IP address 
  Uint32 DestIPAddr;              // destination IP address 
  Uint8  *pDataBuffer;            // zone for data 
}IpPkt;
 
typedef struct _ipconfig 
{
uint IcmpDoRedirect;  // Update RtTable on ICMP redirect (1=Yes)
uint IcmpTtl;         // TTL for ICMP messages RFC1700 says 64
uint IcmpTtlEcho;     // TTL for ICMP echo RFC1700 says 64
uint IpIndexStart;    // IP Start Index
uint IpForwarding;    // IP Forwarding (1 = Enabled)
uint IpNatEnable;     // NAT Translation (1 = Enabled)
uint IpReasmMaxTime;  // Max reassembly time in seconds
uint IpReasmMaxSize;  // Max reassembly packet size
uint IpDirectedBCast; // Look for directed BCast IP addresses
uint TcpReasmMaxPkt;  // Max reasm pkts held by TCP socket
uint RtcEnableDebug;  // Enable Route Control Messages (1=On)
uint RtcAdvTime;      // Time in sec to send RtAdv (0=don't)
uint RtcAdvLife;      // Litetime of route in RtAdv
int  RtcAdvPref;       // Preference Level (signed) in RtAdv
uint RtArpDownTime;   // Time 5 failed ARPs keep Rt down (sec)
uint RtKeepaliveTime; // VALIDATED route timeout (sec)
uint RtCloneTimeout;  // INITIAL route timeout (sec)
uint RtDefaultMTU;    // Default MTU for internal routes
uint SockTtlDefault;  // Default Packet TTL
uint SockTosDefault;  // Default Packet TOS
int SockMaxConnect;   // Max Socket Connections
uint SockTimeConnect; // Max time to connect (seconds)
uint SockTimeIo;      // Default Socket IO timeout (seconds)
int SockBufMax;       // Absolute max Socket buffer size
int SockBufMinTx;     // Min Tx space for "able to write"
int SockBufMinRx;     // Min Rx data for "able to read"
uint PipeTimeIo;      // Default Pipe IO timeout (seconds)
int PipeBufSize;      // Pipe internal buffer size
int PipeBufMinTx;     // Min Tx space for "able to write"
int PipeBufMinRx;     // Min Rx data for "able to read"
} IPCONFIG; 


#endif /* _IP_H_ */

⌨️ 快捷键说明

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