35 #include "contiki-net.h"
36 #include "net/ethernet.h"
39 #include "net/ethernet-drv.h"
41 #define BUF ((struct uip_eth_hdr *)&uip_buf[0])
43 PROCESS(ethernet_process,
"Ethernet driver");
63 if(BUF->type ==
uip_htons(UIP_ETHTYPE_IPV6)) {
64 uip_neighbor_add(&IPBUF->srcipaddr, &BUF->src);
68 if(BUF->type ==
uip_htons(UIP_ETHTYPE_IP)) {
71 }
else if(BUF->type ==
uip_htons(UIP_ETHTYPE_ARP)) {
89 ethernet_init((
struct ethernet_config *)data);
91 tcpip_set_outputfunc(ethernet_output);