You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

if_ether.h 1.0KB

123456789101112131415161718192021222324252627
  1. #ifndef _IF_ETHER_H
  2. #define _IF_ETHER_H
  3. /*
  4. I'm moving towards the defined names in linux/if_ether.h for clarity.
  5. The confusion between 60/64 and 1514/1518 arose because the NS8390
  6. counts the 4 byte frame checksum in the incoming packet, but not
  7. in the outgoing packet. 60/1514 are the correct numbers for most
  8. if not all of the other NIC controllers.
  9. */
  10. #define ETH_ALEN 6 /* Size of Ethernet address */
  11. #define ETH_HLEN 14 /* Size of ethernet header */
  12. #define ETH_ZLEN 60 /* Minimum packet */
  13. #define ETH_FRAME_LEN 1514 /* Maximum packet */
  14. #define ETH_DATA_ALIGN 2 /* Amount needed to align the data after an ethernet header */
  15. #ifndef ETH_MAX_MTU
  16. #define ETH_MAX_MTU (ETH_FRAME_LEN-ETH_HLEN)
  17. #endif
  18. #define ETH_P_IP 0x0800 /* Internet Protocl Packet */
  19. #define ETH_P_ARP 0x0806 /* Address Resolution Protocol */
  20. #define ETH_P_RARP 0x8035 /* Reverse Address resolution Protocol */
  21. #define ETH_P_IPV6 0x86DD /* IPv6 over blueblook */
  22. #define ETH_P_SLOW 0x8809 /* Ethernet slow protocols */
  23. #endif /* _IF_ETHER_H */