uip_etharp.h 407 B

123456789101112131415
  1. #include "uip_pbuf.h"
  2. #include "uip-conf.h"
  3. #include "rtdef.h"
  4. struct eth_hdr {
  5. u8_t ip_addrdest[6];
  6. u8_t ip_addrsrc[6];
  7. u16_t type;
  8. } ;
  9. #define ETHTYPE_ARP UIP_ETHTYPE_ARP
  10. #define ETHTYPE_IP UIP_ETHTYPE_IP
  11. #define ETHTYPE_VLAN 0x8100
  12. #define ETHTYPE_PPPOEDISC 0x8863 /* PPP Over Ethernet Discovery Stage */
  13. #define ETHTYPE_PPPOE 0x8864 /* PPP Over Ethernet Session Stage */