#include<stdio.h>// 以太网帧头封装 18字节头部#define ETH_LENGTH 6 //宏定义以太网帧长6字节;目的Mac地址和源Mac地址struct ethdr{ unsigned char h_dest[ETH_LENGTH]; unsigned char h_src[ETH_LENGTH]; unsigned short proto;};// ip头部20—60字节struct iphdr{...
计算机网络
2023-06-10
37 点赞
0 评论
56 浏览