63 |
/* Forward declarations. */ |
/* Forward declarations. */ |
64 |
static void ethernetif_input(struct netif *netif); |
static void ethernetif_input(struct netif *netif); |
65 |
static err_t ethernetif_output(struct netif *netif, struct pbuf *p, |
static err_t ethernetif_output(struct netif *netif, struct pbuf *p, |
66 |
struct ip_addr *ipaddr); |
struct ip_addr *ipaddr); |
67 |
|
|
68 |
/*-----------------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------------*/ |
69 |
static void |
static void |
179 |
/*-----------------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------------*/ |
180 |
static err_t |
static err_t |
181 |
ethernetif_output(struct netif *netif, struct pbuf *p, |
ethernetif_output(struct netif *netif, struct pbuf *p, |
182 |
struct ip_addr *ipaddr) |
struct ip_addr *ipaddr) |
183 |
{ |
{ |
184 |
struct ethernetif *ethernetif; |
struct ethernetif *ethernetif; |
185 |
struct pbuf *q; |
struct pbuf *q; |
306 |
case ETHTYPE_ARP: |
case ETHTYPE_ARP: |
307 |
p = arp_arp_input(netif, ethernetif->ethaddr, p); |
p = arp_arp_input(netif, ethernetif->ethaddr, p); |
308 |
if (p != NULL) { |
if (p != NULL) { |
309 |
low_level_output(ethernetif, p); |
low_level_output(ethernetif, p); |
310 |
pbuf_free(p); |
pbuf_free(p); |
311 |
} |
} |
312 |
break; |
break; |
313 |
default: |
default: |