]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Removed etharp_output_sent() as etharp.c no longer returns ARP packets to the driver.
authorlikewise <likewise>
Wed, 8 Jan 2003 09:24:06 +0000 (09:24 +0000)
committerlikewise <likewise>
Wed, 8 Jan 2003 09:24:06 +0000 (09:24 +0000)
src/arch/c16x/netif/cs8900if.c
src/include/netif/etharp.h
src/netif/etharp.c

index f2e9175e5e14c808e27c405793917feaad6b8575..86be6c1292cabc6354b09f9bfdfcbc3d46cc3994 100644 (file)
@@ -584,8 +584,6 @@ err_t cs8900if_output(struct netif *netif, struct pbuf *p, struct ip_addr *ipadd
   {
          /* send out the packet */
     cs8900_output(netif, p);
-         /* ARP cleanup */
-    etharp_output_sent(p);
     p = NULL;
   }
   // { p == NULL }
index 34747ed44e0e145f6e5f034b0b700c34055eb831..bc16109b83d52f9ffbf48ac0119016fcb6922a7c 100644 (file)
@@ -91,7 +91,6 @@ struct pbuf *etharp_arp_input(struct netif *netif, struct eth_addr *ethaddr,
                           struct pbuf *p);
 struct pbuf *etharp_output(struct netif *netif, struct ip_addr *ipaddr,
                           struct pbuf *q);
-struct pbuf *etharp_output_sent(struct pbuf *p);
 struct pbuf *etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q);
 
 
index e84ba39c26604c63674fcf885222212e3136b215..e4c7d6a71da71d7741baea1417c143201c4c425b 100644 (file)
@@ -3,6 +3,9 @@
  * Address Resolution Protocol module for IP over Ethernet
  *
  * $Log: etharp.c,v $
+ * Revision 1.18  2003/01/08 09:24:50  likewise
+ * Removed etharp_output_sent() as etharp.c no longer returns ARP packets to the driver.
+ *
  * Revision 1.17  2002/12/18 12:49:02  jani
  * renamed (hopefully everywhere) stats to lwip_stats.closes bug #1901
  *
  * Use C style comments.In debug stataments cast various struct pointers to void* to
  * avoid printf warnings.misc warnings in etharp.
  *
- * 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.
  */
 
 /*
@@ -645,31 +637,6 @@ etharp_output(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q)
   return NULL;
 }
 
-/**
- * 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;
-}
-
 /**
  * Send an ARP request for the given IP address.
  *