home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff225.lzh / AmigaTCP / src / ether.h < prev    next >
C/C++ Source or Header  |  1989-06-24  |  549b  |  21 lines

  1. /* Generic Ethernet constants and templates */
  2.  
  3. #define    EADDR_LEN    6
  4. /* Format of an Ethernet header */
  5. struct ether {
  6.     char dest[EADDR_LEN];
  7.     char source[EADDR_LEN];
  8.     int16 type;
  9. };
  10. /* Ethernet broadcast address */
  11. extern char ether_bdcst[];
  12.  
  13. /* Ethernet type fields */
  14. #define    IP_TYPE        0x800    /* Type field for IP */
  15. #define    ARP_TYPE    0x806    /* Type field for ARP */
  16.  
  17. #define    HDR        sizeof(struct ether)    /* Size of Ethernet header */
  18.  
  19. #define    RUNT        60    /* smallest legal size packet, no fcs */
  20. #define    GIANT        1514    /* largest legal size packet, no fcs */
  21.