[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] using etharp from ethernetif
From: |
Leon Woestenberg |
Subject: |
Re: [lwip-users] using etharp from ethernetif |
Date: |
Thu, 1 May 2003 01:53:19 +0200 |
Hello Sergio,
Some suggestions:
- make sure you have initialized "netif->hwaddr_len" to 6 in your netif
driver initialization.
- see if etharp.c sends ARP packets on the link.
- Generally, if you have DEBUGF output available, you might add more debug
statements
to etharp.c to see whether your destination MAC addresses can be
resolved.
- Use ETHARP_DEBUGF to see if etharp.c builds an ARP table.
- disable ETHARP_QUEUEING (this is rather new code).
Regards,
Leon.
> The problem is sending packets. It looks like etharp_output doesn't
returns what
> it should. Take a look at my code:
>
> /*---------------------------------------------------------*/
> static err_t
> rt_3c905cif_output(struct netif *netif, struct pbuf *p,
> struct ip_addr *ipaddr)
> {
> p = etharp_output(netif, ipaddr, p);
> if(p != NULL) {
> low_level_output(netif, p);
> }
>
Normally, etharp_output()