aboutsummaryrefslogtreecommitdiff
path: root/ntpd/ntp_request.c
diff options
context:
space:
mode:
Diffstat (limited to 'ntpd/ntp_request.c')
-rw-r--r--ntpd/ntp_request.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/ntpd/ntp_request.c b/ntpd/ntp_request.c
index e61d014808de..89c051b64f0b 100644
--- a/ntpd/ntp_request.c
+++ b/ntpd/ntp_request.c
@@ -1790,6 +1790,7 @@ do_restrict(
sockaddr_u matchaddr;
sockaddr_u matchmask;
int bad;
+ int/*BOOL*/ success;
switch(op) {
case RESTRICT_FLAGS:
@@ -1838,7 +1839,7 @@ do_restrict(
}
if (bad) {
- msyslog(LOG_ERR, "do_restrict: bad = %#x", bad);
+ msyslog(LOG_ERR, "%s: bad = 0x%x", __func__, bad);
req_ack(srcadr, inter, inpkt, INFO_ERR_FMT);
return;
}
@@ -1868,8 +1869,16 @@ do_restrict(
NSRCADR(&matchaddr) = cr.addr;
NSRCADR(&matchmask) = cr.mask;
}
- hack_restrict(op, &matchaddr, &matchmask, cr.mflags,
- cr.ippeerlimit, cr.flags, 0);
+ success = hack_restrict(op, &matchaddr, &matchmask,
+ cr.ippeerlimit, cr.mflags,
+ cr.flags, 0);
+ if (!success) {
+ DPRINTF(1, ("%s: %s %s mask %s ippeerlimit %hd %s %s failed",
+ __func__, resop_str(op),
+ stoa(&matchaddr), stoa(&matchmask),
+ cr.ippeerlimit, mflags_str(cr.mflags),
+ rflags_str(cr.flags)));
+ }
datap += item_sz;
}