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

📄 stdafx.h

📁 基于S3C44B0的TFTP文件传输网络应用实验例程
💻 H
字号:

#ifndef _STDAFX_H
#define _STDAFX_H
#include "def.h"
//#include "types.h"
#include "ethernet.h"
//#include "ip.h"
//#include "arp.h"
//#include "dhcp.h"
//#include "udp.h"
//#include "tftp.h"

ULONG local_ip;
ULONG server_ip;
ULONG netmask;
ULONG sid;

extern char  net_in_data[1536];
extern char  net_out_data[1536];
extern int	 iReceiveData;
extern int   iSendData;
extern const UCHAR mac_addr[6];

//struct NETWORKFRAME
//{
    //struct ETHERHDR eth_hdr;
    //struct IPHDR    ip_hdr;
    //struct UDPHDR   udp_hdr;
//    union
//    {
        //struct TFTPHDR  tftp_hdr;
        //struct DHCPHDR  dhcp_hdr;
//    };
//}
//__attribute__((packed));

extern int EtherOutput(UCHAR *dmac,char* pdata, USHORT len);
extern int EtherInput(USHORT tms);
extern void NetInit(void);

#endif /* _STDAFX_H_ */

⌨️ 快捷键说明

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