/[lwip]/lwip/src/netif/etharp.c
ViewVC logotype

Diff of /lwip/src/netif/etharp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by jani, Wed Dec 18 12:49:02 2002 UTC revision 1.18 by likewise, Wed Jan 8 09:24:50 2003 UTC
# Line 3  Line 3 
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   *   *
# Line 10  Line 13 
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  /*  /*
# Line 646  etharp_output(struct netif *netif, struc Line 638  etharp_output(struct netif *netif, struc
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

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26