4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-15 18:19:22 +08:00
itspy.wei f438f02b0f add uip
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1125 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-11-26 16:27:45 +00:00

16 lines
422 B
C

#include "uip_pbuf.h"
#include "uip-conf.h"
#include "rtdef.h"
struct eth_hdr {
u8_t ip_addrdest[6];
u8_t ip_addrsrc[6];
u16_t type;
} ;
#define ETHTYPE_ARP UIP_ETHTYPE_ARP
#define ETHTYPE_IP UIP_ETHTYPE_IP
#define ETHTYPE_VLAN 0x8100
#define ETHTYPE_PPPOEDISC 0x8863 /* PPP Over Ethernet Discovery Stage */
#define ETHTYPE_PPPOE 0x8864 /* PPP Over Ethernet Session Stage */