VirtualBox

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

Last change on this file since 545 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
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 */
Note: See TracBrowser for help on using the repository browser.

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