summaryrefslogtreecommitdiff
path: root/include/net.h
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-04-01 00:25:43 +0000
committerwdenk <wdenk>2005-04-01 00:25:43 +0000
commitea287debe1980182adbe8c63b71bb82193dad5b7 (patch)
tree34044b91763e6e85704b7a54acd34c042931461d /include/net.h
parentef2807c667a91135fbb91b805b852ccfbff03587 (diff)
* Patch by Masami Komiya, 30 Mar 2005:
add SNTP support and expand time server and time offset fields of DHCP support. See doc/README.SNTP * Patch by Steven Scholz, 13 Dec 2004: Fix bug in at91rm920 ethernet driver
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index 9e5543086d4..e50c3819bd9 100644
--- a/include/net.h
+++ b/include/net.h
@@ -335,7 +335,7 @@ extern int NetState; /* Network loop state */
extern int NetRestartWrap; /* Tried all network devices */
#endif
-typedef enum { BOOTP, RARP, ARP, TFTP, DHCP, PING, DNS, NFS, CDP, NETCONS } proto_t;
+typedef enum { BOOTP, RARP, ARP, TFTP, DHCP, PING, DNS, NFS, CDP, NETCONS, SNTP } proto_t;
/* from net/net.c */
extern char BootFile[128]; /* Boot File name */
@@ -350,6 +350,11 @@ extern ushort CDPNativeVLAN;
extern ushort CDPApplianceVLAN;
#endif
+#if (CONFIG_COMMANDS & CFG_CMD_SNTP)
+extern IPaddr_t NetNtpServerIP; /* the ip address to NTP */
+extern int NetTimeOffset; /* offset time from UTC */
+#endif
+
/* Initialize the network adapter */
extern int NetLoop(proto_t);