if_ether.h
来自「linux下从网卡远程启动」· C头文件 代码 · 共 22 行
H
22 行
#ifndef _IF_ETHER_H#define _IF_ETHER_H/* I'm moving towards the defined names in linux/if_ether.h for clarity. The confusion between 60/64 and 1514/1518 arose because the NS8390 counts the 4 byte frame checksum in the incoming packet, but not in the outgoing packet. 60/1514 are the correct numbers for most if not all of the other NIC controllers.*/#define ETH_ALEN 6 /* Size of Ethernet address */#define ETH_HLEN 14 /* Size of ethernet header */#define ETH_ZLEN 60 /* Minimum packet */#define ETH_FRAME_LEN 1514 /* Maximum packet */#define ETH_DATA_ALIGN 2 /* Amount needed to align the data after an ethernet header */#ifndef ETH_MAX_MTU#define ETH_MAX_MTU (ETH_FRAME_LEN-ETH_HLEN)#endif#endif /* _IF_ETHER_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?