VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/Etherboot-src/include/if_ether.h@ 30528

最後變更 在這個檔案從30528是 1,由 vboxsync 提交於 55 年 前

import

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.0 KB
 
1#ifndef _IF_ETHER_H
2#define _IF_ETHER_H
3
4/*
5 I'm moving towards the defined names in linux/if_ether.h for clarity.
6 The confusion between 60/64 and 1514/1518 arose because the NS8390
7 counts the 4 byte frame checksum in the incoming packet, but not
8 in the outgoing packet. 60/1514 are the correct numbers for most
9 if not all of the other NIC controllers.
10*/
11
12#define ETH_ALEN 6 /* Size of Ethernet address */
13#define ETH_HLEN 14 /* Size of ethernet header */
14#define ETH_ZLEN 60 /* Minimum packet */
15#define ETH_FRAME_LEN 1514 /* Maximum packet */
16#define ETH_DATA_ALIGN 2 /* Amount needed to align the data after an ethernet header */
17#ifndef ETH_MAX_MTU
18#define ETH_MAX_MTU (ETH_FRAME_LEN-ETH_HLEN)
19#endif
20
21#define ETH_P_IP 0x0800 /* Internet Protocl Packet */
22#define ETH_P_ARP 0x0806 /* Address Resolution Protocol */
23#define ETH_P_RARP 0x8035 /* Reverse Address resolution Protocol */
24#define ETH_P_IPV6 0x86DD /* IPv6 over blueblook */
25#define ETH_P_SLOW 0x8809 /* Ethernet slow protocols */
26
27#endif /* _IF_ETHER_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette