aboutsummaryrefslogtreecommitdiff
path: root/net/bootp.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-04-02 22:37:54 +0000
committerwdenk <wdenk>2005-04-02 22:37:54 +0000
commit414eec35e3832f4f9ce8a25ace7ead638be1f76f (patch)
treea599df7a979e35b52494cfcd0d3f11d4270bc755 /net/bootp.c
parentbe6b6e4e2de5fc857fb8207b5fce3f463c33f793 (diff)
downloadu-boot-linaro-stable-414eec35e3832f4f9ce8a25ace7ead638be1f76f.tar.gz
Fix problems with SNTP support;
enable SNTP support in some boards.
Diffstat (limited to 'net/bootp.c')
-rw-r--r--net/bootp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bootp.c b/net/bootp.c
index ee0982e60..b907351f2 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -726,7 +726,7 @@ static void DhcpOptionsProcess (uchar * popt)
case 1:
NetCopyIP (&NetOurSubnetMask, (popt + 2));
break;
-#if (CONFIG_BOOTP_MASK & CONFIG_BOOTP_TIMEOFFSET)
+#if (CONFIG_COMMANDS & CFG_CMD_SNTP) && (CONFIG_BOOTP_MASK & CONFIG_BOOTP_TIMEOFFSET)
case 2: /* Time offset */
NetCopyLong (&NetTimeOffset, (ulong *) (popt + 2));
NetTimeOffset = ntohl (NetTimeOffset);
@@ -755,7 +755,7 @@ static void DhcpOptionsProcess (uchar * popt)
memcpy (&NetOurRootPath, popt + 2, size);
NetOurRootPath[size] = 0;
break;
-#if (CONFIG_BOOTP_MASK & CONFIG_BOOTP_NTPSERVER)
+#if (CONFIG_COMMANDS & CFG_CMD_SNTP) && (CONFIG_BOOTP_MASK & CONFIG_BOOTP_NTPSERVER)
case 42: /* NTP server IP */
NetCopyIP (&NetNtpServerIP, (popt + 2));
break;