36 #include "contiki-net.h"
37 #include "net/ethernet.h"
40 #include "net/ethernet-drv.h"
42 #define BUF ((struct uip_eth_hdr *)&uip_buf[0])
44 PROCESS(ethernet_process,
"Ethernet driver");
64 if(BUF->type ==
uip_htons(UIP_ETHTYPE_IPV6)) {
65 uip_neighbor_add(&IPBUF->srcipaddr, &BUF->src);
69 if(BUF->type ==
uip_htons(UIP_ETHTYPE_IP)) {
72 }
else if(BUF->type ==
uip_htons(UIP_ETHTYPE_ARP)) {
90 ethernet_init((
struct ethernet_config *)data);
92 tcpip_set_outputfunc(ethernet_output);