summaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-09-02 04:18:55 -0400
committerBen Warren <biggerbadderben@gmail.com>2009-10-04 22:25:20 -0700
commit91b469c95faf92435e3d5d78292ba78075a3c5ca (patch)
tree10275a6a2da523d6b244ea269b30952a3c3cb3f4 /include/net.h
parent311c19ccb5783a1de71fd5042eeadfbe9688f597 (diff)
downloadtalos-obmc-uboot-91b469c95faf92435e3d5d78292ba78075a3c5ca.tar.gz
talos-obmc-uboot-91b469c95faf92435e3d5d78292ba78075a3c5ca.zip
net: add random_port() prototype
The random_port() is meant to be used by other net code, but without a prototype, we get fun warnings like: dns.c: In function 'DnsSend': dns.c:89: warning: implicit declaration of function 'random_port' Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index 4873000c0d..1c8ab12454 100644
--- a/include/net.h
+++ b/include/net.h
@@ -517,6 +517,9 @@ extern ushort getenv_VLAN(char *);
/* copy a filename (allow for "..." notation, limit length) */
extern void copy_filename (char *dst, char *src, int size);
+/* get a random source port */
+extern unsigned int random_port(void);
+
/**********************************************************************/
#endif /* __NET_H__ */
OpenPOWER on IntegriCloud