3 |
* Address Resolution Protocol module for IP over Ethernet |
* Address Resolution Protocol module for IP over Ethernet |
4 |
* |
* |
5 |
* $Log$ |
* $Log$ |
6 |
|
* Revision 1.18 2003/01/08 09:24:50 likewise |
7 |
|
* Removed etharp_output_sent() as etharp.c no longer returns ARP packets to the driver. |
8 |
|
* |
9 |
* Revision 1.17 2002/12/18 12:49:02 jani |
* Revision 1.17 2002/12/18 12:49:02 jani |
10 |
* renamed (hopefully everywhere) stats to lwip_stats.closes bug #1901 |
* renamed (hopefully everywhere) stats to lwip_stats.closes bug #1901 |
11 |
* |
* |
13 |
* Use C style comments.In debug stataments cast various struct pointers to void* to |
* Use C style comments.In debug stataments cast various struct pointers to void* to |
14 |
* avoid printf warnings.misc warnings in etharp. |
* avoid printf warnings.misc warnings in etharp. |
15 |
* |
* |
|
* Revision 1.15 2002/12/05 09:41:52 kieranm |
|
|
* Fixed compiler warnings when ARP_QUEUEING is not defined. |
|
|
* |
|
|
* Revision 1.14 2002/12/02 16:08:09 likewise |
|
|
* Fixed wrong assertion condition. |
|
|
* |
|
|
* Revision 1.13 2002/11/29 16:02:11 likewise |
|
|
* More complete ARP protocol implementation. |
|
|
* |
|
|
* Revision 1.12 2002/11/28 09:26:18 likewise |
|
|
* All ARP queueing code is now conditionally compiled-in. |
|
16 |
*/ |
*/ |
17 |
|
|
18 |
/* |
/* |
638 |
} |
} |
639 |
|
|
640 |
/** |
/** |
|
* Free the ARP request pbuf. |
|
|
* |
|
|
* Free the ARP request pbuf that was allocated by ARP |
|
|
* |
|
|
* as a result of calling etharp_output(). Must be called |
|
|
* with the pbuf returned by etharp_output(), after you |
|
|
* have sent that packet. |
|
|
* |
|
|
* @param p pbuf returned earlier by etharp_output(). |
|
|
* |
|
|
* @see etharp_output(). |
|
|
*/ |
|
|
struct pbuf * |
|
|
etharp_output_sent(struct pbuf *p) |
|
|
{ |
|
|
struct etharp_hdr *hdr; |
|
|
hdr = p->payload; |
|
|
if (hdr->opcode == htons(ARP_REQUEST)) { |
|
|
pbuf_free(p); |
|
|
p = NULL; |
|
|
} |
|
|
return p; |
|
|
} |
|
|
|
|
|
/** |
|
641 |
* Send an ARP request for the given IP address. |
* Send an ARP request for the given IP address. |
642 |
* |
* |
643 |
* Sends an ARP request for the given IP address, unless |
* Sends an ARP request for the given IP address, unless |