debug
This commit is contained in:
@ -126,10 +126,8 @@ void networkSntpEngine(void *handle) {
|
|||||||
recvfrom(SNTP_SOCK, localHandle->ntpMsg.b,
|
recvfrom(SNTP_SOCK, localHandle->ntpMsg.b,
|
||||||
sizeof(localHandle->ntpMsg.b), srcAddr, &srcPort);
|
sizeof(localHandle->ntpMsg.b), srcAddr, &srcPort);
|
||||||
|
|
||||||
/*
|
|
||||||
uint8_t buf[90];
|
uint8_t *buf = localHandle->ntpMsg.b;
|
||||||
memset(buf, 0, sizeof(buf));
|
|
||||||
recvfrom(SNTP_SOCK, buf, sizeof(buf), srcAddr, &srcPort);
|
|
||||||
uint8_t x = 0;
|
uint8_t x = 0;
|
||||||
coloredMsg(LOG_BLUE, "%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x",
|
coloredMsg(LOG_BLUE, "%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x",
|
||||||
buf[x+0], buf[x+1], buf[x+2], buf[x+3], buf[x+4], buf[x+5], buf[x+6], buf[x+7],
|
buf[x+0], buf[x+1], buf[x+2], buf[x+3], buf[x+4], buf[x+5], buf[x+6], buf[x+7],
|
||||||
@ -146,7 +144,6 @@ void networkSntpEngine(void *handle) {
|
|||||||
coloredMsg(LOG_BLUE, "%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x",
|
coloredMsg(LOG_BLUE, "%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x",
|
||||||
buf[x+0], buf[x+1], buf[x+2], buf[x+3], buf[x+4], buf[x+5], buf[x+6], buf[x+7],
|
buf[x+0], buf[x+1], buf[x+2], buf[x+3], buf[x+4], buf[x+5], buf[x+6], buf[x+7],
|
||||||
buf[x+8], buf[x+9], buf[x+10], buf[x+11], buf[x+12], buf[x+13], buf[x+14], buf[x+15]);
|
buf[x+8], buf[x+9], buf[x+10], buf[x+11], buf[x+12], buf[x+13], buf[x+14], buf[x+15]);
|
||||||
*/
|
|
||||||
|
|
||||||
close(SNTP_SOCK);
|
close(SNTP_SOCK);
|
||||||
coloredMsg(LOG_BLUE, "nes, msg received from %d.%d.%d.%d:%d",
|
coloredMsg(LOG_BLUE, "nes, msg received from %d.%d.%d.%d:%d",
|
||||||
|
Reference in New Issue
Block a user