ntp: add debug message for truncated control messages
This commit is contained in:
parent
8823e2b064
commit
875b0e262c
1 changed files with 5 additions and 0 deletions
5
ntp_io.c
5
ntp_io.c
|
@ -604,6 +604,11 @@ process_message(struct msghdr *hdr, int length, int sock_fd)
|
||||||
return;
|
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)) {
|
for (cmsg = CMSG_FIRSTHDR(hdr); cmsg; cmsg = CMSG_NXTHDR(hdr, cmsg)) {
|
||||||
#ifdef HAVE_IN_PKTINFO
|
#ifdef HAVE_IN_PKTINFO
|
||||||
if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_PKTINFO) {
|
if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_PKTINFO) {
|
||||||
|
|
Loading…
Reference in a new issue