fix
This commit is contained in:
@ -96,7 +96,7 @@ void networkSntpEngine(void *handle) {
|
||||
memset(&(localHandle->ntpMsg), 0, sizeof(localHandle->ntpMsg));
|
||||
localHandle->ntpMsg.s.li_vn_mode = SEND_LI_VN_MODE;
|
||||
localHandle->ntpMsg.s.xmt_l = 1;
|
||||
sendto(SNTP_SOCK, &(localHandle->ntpMsg.b),
|
||||
sendto(SNTP_SOCK, localHandle->ntpMsg.b,
|
||||
sizeof(localHandle->ntpMsg.b), localHandle->ntpAddr, NTP_PORT);
|
||||
coloredMsg(LOG_BLUE, "nes, sent");
|
||||
localHandle->sntpState = SNTP_STATE_RECV;
|
||||
@ -123,7 +123,7 @@ void networkSntpEngine(void *handle) {
|
||||
uint8_t srcAddr[4];
|
||||
uint16_t srcPort;
|
||||
|
||||
recvfrom(SNTP_SOCK, &(localHandle->ntpMsg.b),
|
||||
recvfrom(SNTP_SOCK, localHandle->ntpMsg.b,
|
||||
sizeof(localHandle->ntpMsg.b), srcAddr, &srcPort);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user