ntp: add debug message for truncated control messages

This commit is contained in:
Miroslav Lichvar 2016-11-15 12:13:49 +01:00
parent 8823e2b064
commit 875b0e262c

View file

@ -604,6 +604,11 @@ process_message(struct msghdr *hdr, int length, int sock_fd)
return;
}
if (hdr->msg_flags & MSG_CTRUNC) {
DEBUG_LOG(LOGF_NtpIO, "Truncated control message");
/* Continue */
}
for (cmsg = CMSG_FIRSTHDR(hdr); cmsg; cmsg = CMSG_NXTHDR(hdr, cmsg)) {
#ifdef HAVE_IN_PKTINFO
if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_PKTINFO) {