summaryrefslogtreecommitdiff
path: root/include/net.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 07:59:07 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 17:46:18 -0500
commit4b11c9166b86ccc5f8f02fda01ded0f9e9760df0 (patch)
treecdf2b9de655df32a3937ea6a22395d67b21c469a /include/net.h
parent674bb249825aa9b0bddab046d23d43c33bb75f78 (diff)
downloadu-boot-imx-4b11c9166b86ccc5f8f02fda01ded0f9e9760df0.zip
u-boot-imx-4b11c9166b86ccc5f8f02fda01ded0f9e9760df0.tar.gz
u-boot-imx-4b11c9166b86ccc5f8f02fda01ded0f9e9760df0.tar.bz2
net: Refactor IP, UPD, and ICMP header writing functions
ICMP (ping) was reimplementing IP header code... it now shares code. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index 3bf0806..128c5ea 100644
--- a/include/net.h
+++ b/include/net.h
@@ -457,7 +457,9 @@ extern int NetEthHdrSize(void);
extern int NetSetEther(uchar *, uchar *, uint);
/* Set IP header */
-extern void NetSetIP(uchar *, IPaddr_t, int, int, int);
+extern void net_set_ip_header(uchar *pkt, IPaddr_t dest, IPaddr_t source);
+extern void net_set_udp_header(uchar *pkt, IPaddr_t dest, int dport,
+ int sport, int len);
/* Checksum */
extern int NetCksumOk(uchar *, int); /* Return true if cksum OK */