diff options
author | hjl <hjl> | 2001-03-11 02:54:00 +0000 |
---|---|---|
committer | hjl <hjl> | 2001-03-11 02:54:00 +0000 |
commit | 012d7fd50654b1623e63c447905187929e559cff (patch) | |
tree | 6b2ad84bd781cfae44fd9eeba4c83b5e203ff05d /utils/statd/simulate.c | |
parent | 37f276f0627733598230b3953e07be146257619f (diff) | |
download | nfs-utils-012d7fd50654b1623e63c447905187929e559cff.tar.gz nfs-utils-012d7fd50654b1623e63c447905187929e559cff.tar.xz nfs-utils-012d7fd50654b1623e63c447905187929e559cff.zip |
2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
* utils/rquotad/rquotad.man: Updated for -p.
* utils/statd/statd.man: Likewise.
2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
* support/nfs/rpcmisc.[ch]: export makesock()
* utils/statd/statd.c: added longopts, added support for
specifying the port to bind to on the command line.
* utils/statd/statd.c: ditto, also specify port used for
outgoing connections.
* utils/statd/Makefile (LIBS): link with our own libnfs
Diffstat (limited to 'utils/statd/simulate.c')
-rw-r--r-- | utils/statd/simulate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/statd/simulate.c b/utils/statd/simulate.c index 4b8d59c..3bebfc7 100644 --- a/utils/statd/simulate.c +++ b/utils/statd/simulate.c @@ -18,6 +18,7 @@ #include <string.h> #include <rpc/rpc.h> #include <rpc/pmap_clnt.h> +#include <rpcmisc.h> #include "statd.h" #include "sim_sm_inter.h" @@ -207,8 +208,8 @@ daemon_simulator (void) signal (SIGINT, sim_killer); signal (SIGTERM, sim_killer); pmap_unset (sim_port, SIM_SM_VERS); - do_regist (sim_port, sim_sm_prog_1); -/* do_regist (sim_port, (__dispatch_fn_t)sim_sm_prog_1); */ + /* this registers both UDP and TCP services */ + rpc_init("statd", sim_port, SIM_SM_VERS, sim_sm_prog_1, 0); svc_run (); pmap_unset (sim_port, SIM_SM_VERS); } |