📄 net.h
字号:
typedef char u8;
typedef unsigned short u16;
typedef unsigned long u32;
typedef signed int s32;
extern u8 transmit_packet[600];//在tftp.c中定义
extern u8 receive_packet[600];//在tftp.c中定义
extern u16 now_block_number;//在tftp.c中定义
extern u16 last_block_number;//在tftp.c中定义
extern u16 tftp_server_port;//在tftp.c中定义
extern u8 host_MAC_address[6];//在LLC.c中定义
extern u8 board_MAC_address[6];//在LLC.c中定义
extern u8 board_IP_address[4];//在IP.c中定义
extern u8 host_IP_address[4];//在IP.c中定
extern u16 temp_port;//UDP.c中定义
//各文件中的函数声明
s32 pack_tftp(u8 *, s32 ,s32);
s32 unpack_tftp(u8 *,s32);
s32 pack_UDP(u8 *,s32);
s32 unpack_UDP(u8* );
s32 pack_IP(u8 *,s32);
s32 unpack_IP(u8 *,s32);//没有用到
s32 pack_LLC(u8 * ,s32);
s32 unpack_LLC(u8 *,s32);//没有用到
u16 shift16(u16);
u16 check(u8 *,u16);
s32 send_packet(u8 *,s32,s32);
s32 arp_broadcast(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -