summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 07:58:10 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 17:46:15 -0500
commit206d07fd7cbe69c8086a9b68f28b36e7b5ab9f08 (patch)
tree53e0e7a006f072738ed34245263137975b54bfc2 /include
parente0a630795b35f3137a3204e0d8e5fea928f8962b (diff)
downloadu-boot-imx-206d07fd7cbe69c8086a9b68f28b36e7b5ab9f08.zip
u-boot-imx-206d07fd7cbe69c8086a9b68f28b36e7b5ab9f08.tar.gz
u-boot-imx-206d07fd7cbe69c8086a9b68f28b36e7b5ab9f08.tar.bz2
net: cosmetic: Rename parameter len to payload_len
This name more explicitly claims that it does not include the header size Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/net.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/net.h b/include/net.h
index fd19c42..ff66073 100644
--- a/include/net.h
+++ b/include/net.h
@@ -466,9 +466,17 @@ extern void NetSetTimeout(ulong, thand_f *);/* Set timeout handler */
/* Transmit "NetTxPacket" */
extern void NetSendPacket(uchar *, int);
-/* Transmit UDP packet, performing ARP request if needed */
+/*
+ * Transmit UDP packet, performing ARP request if needed
+ *
+ * @param ether Raw packet buffer
+ * @param dest IP address to send the datagram to
+ * @param dport Destination UDP port
+ * @param sport Source UDP port
+ * @param payload_len Length of data after the UDP header
+ */
extern int NetSendUDPPacket(uchar *ether, IPaddr_t dest, int dport,
- int sport, int len);
+ int sport, int payload_len);
/* Processes a received packet */
extern void NetReceive(uchar *, int);