summaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 07:57:59 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 14:19:22 -0500
commitf575ae1f7d3940efbfc43e4236adb4a8ec1db632 (patch)
treec938134ea39543f6919396f0d9641a18d2530574 /include/net.h
parenteafc8db0e35275330f43a4cf7b7ae8aba71c9728 (diff)
downloadblackbird-obmc-uboot-f575ae1f7d3940efbfc43e4236adb4a8ec1db632.tar.gz
blackbird-obmc-uboot-f575ae1f7d3940efbfc43e4236adb4a8ec1db632.zip
net: Move CDP out of net.c
Separate this functionality out of the net.c behemoth Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/net.h b/include/net.h
index 92afc19034..8a5b09f251 100644
--- a/include/net.h
+++ b/include/net.h
@@ -356,9 +356,7 @@ extern uchar NetEtherNullAddr[6];
extern ushort NetOurVLAN; /* Our VLAN */
extern ushort NetOurNativeVLAN; /* Our Native VLAN */
-extern uchar NetCDPAddr[6]; /* Ethernet CDP address */
-extern ushort CDPNativeVLAN; /* CDP returned native VLAN */
-extern ushort CDPApplianceVLAN; /* CDP returned appliance VLAN */
+extern const uchar NetCDPAddr[6]; /* Ethernet CDP address */
extern int NetState; /* Network loop state */
#define NETLOOP_CONTINUE 1
@@ -387,8 +385,8 @@ extern IPaddr_t NetPingIP; /* the ip address to ping */
#if defined(CONFIG_CMD_CDP)
/* when CDP completes these hold the return values */
-extern ushort CDPNativeVLAN;
-extern ushort CDPApplianceVLAN;
+extern ushort CDPNativeVLAN; /* CDP returned native VLAN */
+extern ushort CDPApplianceVLAN; /* CDP returned appliance VLAN */
#endif
#if defined(CONFIG_CMD_SNTP)
OpenPOWER on IntegriCloud