summaryrefslogtreecommitdiff
path: root/nuttx/include/nuttx/net
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-18 16:35:20 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-18 16:35:20 -0600
commitcfed1e85c15e92a534c833e26dc7f84b6a764cc9 (patch)
tree220ced7e91991cff357693812399ba1c637f4c5a /nuttx/include/nuttx/net
parentb4e2dff56ccb9642677845f388fc412dc8255c04 (diff)
downloadnuttx-cfed1e85c15e92a534c833e26dc7f84b6a764cc9.tar.gz
nuttx-cfed1e85c15e92a534c833e26dc7f84b6a764cc9.tar.bz2
nuttx-cfed1e85c15e92a534c833e26dc7f84b6a764cc9.zip
Move some internal networking function protoypes out of the public include/nuttx/net/arp.h into to the private net/arp/arp.h
Diffstat (limited to 'nuttx/include/nuttx/net')
-rw-r--r--nuttx/include/nuttx/net/arp.h48
1 files changed, 7 insertions, 41 deletions
diff --git a/nuttx/include/nuttx/net/arp.h b/nuttx/include/nuttx/net/arp.h
index 35b8b4a5c..b7bddeedb 100644
--- a/nuttx/include/nuttx/net/arp.h
+++ b/nuttx/include/nuttx/net/arp.h
@@ -187,53 +187,19 @@ void arp_arpin(struct net_driver_s *dev);
void arp_out(FAR struct net_driver_s *dev);
/****************************************************************************
- * Name: arp_find
- *
- * Description:
- * Find the ARP entry corresponding to this IP address.
- *
- * Input parameters:
- * ipaddr - Refers to an IP address in network order
- *
- * Assumptions
- * Interrupts are disabled; Returned value will become unstable when
- * interrupts are re-enabled or if any other uIP APIs are called.
- *
- ****************************************************************************/
-
-FAR struct arp_entry *arp_find(in_addr_t ipaddr);
-
-/****************************************************************************
- * Name: arp_delete
- *
- * Description:
- * Remove an IP association from the ARP table
- *
- * Input parameters:
- * ipaddr - Refers to an IP address in network order
- *
- * Assumptions
- * Interrupts are disabled to assure exclusive access to the ARP table
- * (and because arp_find() is called).
- *
- ****************************************************************************/
-
-#define arp_delete(ipaddr) \
-{ \
- struct arp_entry *tabptr = arp_find(ipaddr); \
- if (tabptr) \
- { \
- tabptr->at_ipaddr = 0; \
- } \
-}
-
-/****************************************************************************
* Name: arp_update
*
* Description:
* Add the IP/HW address mapping to the ARP table -OR- change the IP
* address of an existing association.
*
+ * NOTE: This is an internal interface withint the networking layer and
+ * should not be used by application software. This prototype is here
+ * because there is already a violation of this structureing: The
+ * apps/netutils/dhcpd logic currently calls arp_update() directly. That
+ * is bad and needs to be replace with some ioctl interface perhaps hidden
+ * somewhere in apps/netutils/netlib.
+ *
* Input parameters:
* pipaddr - Refers to an IP address uint16_t[2] in network order
* ethaddr - Refers to a HW address uint8_t[IFHWADDRLEN]