common: Drop net.h from common header
Move this header out of the common header. Network support is used in
quite a few places but it still does not warrant blanket inclusion.
Note that this net.h header itself has quite a lot in it. It could be
split into the driver-mode support, functions, structures, checksumming,
etc.
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/net/arp.c b/net/arp.c
index b49c3d3..4b12b69 100644
--- a/net/arp.c
+++ b/net/arp.c
@@ -10,6 +10,7 @@
*/
#include <common.h>
+#include <net.h>
#include "arp.h"
diff --git a/net/bootp.c b/net/bootp.c
index c73a82e..2c918d8 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -13,6 +13,7 @@
#include <env.h>
#include <efi_loader.h>
#include <net.h>
+#include <rand.h>
#include <uuid.h>
#include <net/tftp.h>
#include "bootp.h"
diff --git a/net/ping.c b/net/ping.c
index 633c942..024e8ea 100644
--- a/net/ping.c
+++ b/net/ping.c
@@ -11,6 +11,7 @@
#include "ping.h"
#include "arp.h"
+#include <net.h>
static ushort ping_seq_number;