📄 ip.c
字号:
#include "Ethernet.h"
#include "ARP.h"
#include "IP.h"
#include "TCP.h"
int ip_check_packet(EthernetPkt *pEthernet)
{
if(pEthernet.EthernerPkt.ProtocalType==0x0800)
{
return 1;
}
else
return 0;
}
int ip_process(EthernetPkt *pEthernet)
{
/*---------- ip_process:接收IP数据报后-------------*/
/*---judge the protocal, ifthe protocal is 协议如果为17即是UDP协议则调用函数udp_process, 处理UDP数据爆 否则丢弃该数据报
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -