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

📄 ip.c

📁 dsp 的内核编程在此呢
💻 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 + -