以太协议数据包: u_char ether_dhost[ETHER_ADDR_LEN]; u_char ether_shost[ETHER_ADDR_LEN]; u_short ether_type; }; 其中ETHER_ADDR_LEN定义为6, 如果上一层为IP协议,则ether_type的值就是0x0800; |
|
来自: 若渴若愚 > 《Linux pcap》