2 * Copyright (C) 1995, 1997-1999 Jeffrey A. Uphoff
12 #include <arpa/inet.h>
19 extern void my_svc_exit (void);
23 * Services SM_SIMU_CRASH requests.
25 * Although the kernel contacts the statd service via only IPv4
26 * transports, the statd service can receive other requests, such
27 * as SM_NOTIFY, from remote peers via IPv6.
30 sm_simu_crash_1_svc (__attribute__ ((unused)) void *argp, struct svc_req *rqstp)
32 struct sockaddr *sap = nfs_getrpccaller(rqstp->rq_xprt);
33 char buf[INET6_ADDRSTRLEN];
34 static char *result = NULL;
36 xlog(D_CALL, "Received SM_SIMU_CRASH");
38 if (!nfs_is_v4_loopback(sap))
41 if ((int)nfs_get_port(sap) >= IPPORT_RESERVED) {
42 xlog_warn("SM_SIMU_CRASH call from unprivileged port");
52 return ((void *)&result);
55 if (!statd_present_address(sap, buf, sizeof(buf)))
57 xlog_warn("SM_SIMU_CRASH call from non-local host %s", buf);