summaryrefslogtreecommitdiffstats
path: root/net/sntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sntp.c')
-rw-r--r--net/sntp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sntp.c b/net/sntp.c
index 69cddb16b5..07d036d41d 100644
--- a/net/sntp.c
+++ b/net/sntp.c
@@ -31,7 +31,7 @@ SntpSend(void)
pkt.vn = NTP_VERSION;
pkt.mode = NTP_MODE_CLIENT;
- memcpy((char *)NetTxPacket + NetEthHdrSize() + IP_HDR_SIZE,
+ memcpy((char *)NetTxPacket + NetEthHdrSize() + IP_UDP_HDR_SIZE,
(char *)&pkt, pktlen);
SntpOurPort = 10000 + (get_timer(0) % 4096);
OpenPOWER on IntegriCloud