X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fsimu.c;h=7df04d9080abaf406c393a79f6dee7128e6c4b1a;hp=a7ecb85c275509e687c4351955c4c5b4d1e3c03d;hb=c74532a864caea0ca126dc8e9f4914e7c8e86898;hpb=27a49079b03316eebcbc74197b73988b01b58ecc diff --git a/utils/statd/simu.c b/utils/statd/simu.c index a7ecb85..7df04d9 100644 --- a/utils/statd/simu.c +++ b/utils/statd/simu.c @@ -27,24 +27,26 @@ sm_simu_crash_1_svc (void *argp, struct svc_req *rqstp) static char *result = NULL; struct in_addr caller; + xlog(D_CALL, "Received SM_SIMU_CRASH"); + if (sin->sin_family != AF_INET) { - note(N_WARNING, "Call to statd from non-AF_INET address"); + xlog_warn("Call to statd from non-AF_INET address"); goto failure; } caller = sin->sin_addr; if (caller.s_addr != htonl(INADDR_LOOPBACK)) { - note(N_WARNING, "Call to statd from non-local host %s", + xlog_warn("Call to statd from non-local host %s", inet_ntoa(caller)); goto failure; } if (ntohs(sin->sin_port) >= 1024) { - note(N_WARNING, "Call to statd-simu-crash from unprivileged port"); + xlog_warn("Call to statd-simu-crash from unprivileged port"); goto failure; } - note (N_WARNING, "*** SIMULATING CRASH! ***"); + xlog_warn("*** SIMULATING CRASH! ***"); my_svc_exit (); if (rtnl)