2022年10月22日
摘要: 一、struct ethhdr 结构体 1、使用struct ethhdr结构体来表示以太网帧的头部。这个struct ethhdr结构体位于#include<linux/if_ether.h>之中。 #define ETH_ALEN 6 //定义了以太网接口的MAC地址的长度为6个字节#defin 阅读全文
posted @ 2022-10-22 17:57 背影_墨白 阅读(3271) 评论(0) 推荐(0) 编辑