mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 06:45:27 +00:00
Merge from branch: Don't print errors in fallback_discard().
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: socket.c,v 1.56 2002/06/09 22:17:09 murray Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: socket.c,v 1.57 2002/06/09 22:19:37 murray Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -312,10 +312,13 @@ isc_result_t fallback_discard (object)
|
|||||||
|
|
||||||
status = recvfrom (interface -> wfdesc, buf, sizeof buf, 0,
|
status = recvfrom (interface -> wfdesc, buf, sizeof buf, 0,
|
||||||
(struct sockaddr *)&from, &flen);
|
(struct sockaddr *)&from, &flen);
|
||||||
|
#if defined (DEBUG)
|
||||||
|
/* Only report fallback discard errors if we're debugging. */
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
log_error ("fallback_discard: %m");
|
log_error ("fallback_discard: %m");
|
||||||
return ISC_R_UNEXPECTED;
|
return ISC_R_UNEXPECTED;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return ISC_R_SUCCESS;
|
return ISC_R_SUCCESS;
|
||||||
}
|
}
|
||||||
#endif /* USE_SOCKET_FALLBACK */
|
#endif /* USE_SOCKET_FALLBACK */
|
||||||
|
Reference in New Issue
Block a user