+void pmap3_set_cb(struct rpc_context *rpc, int status, void *data, void *private_data)
+{
+ struct client *client = private_data;
+ uint32_t res = *(uint32_t *)data;
+
+ if (status == RPC_STATUS_ERROR) {
+ printf("PORTMAP3/SET call failed with \"%s\"\n", (char *)data);
+ exit(10);
+ }
+ if (status != RPC_STATUS_SUCCESS) {
+ printf("PORTMAP3/SET call failed, status:%d\n", status);
+ exit(10);
+ }
+
+ printf("PORTMAP3/SET:\n");
+ printf(" Res:%d\n", res);
+
+ client->is_finished = 1;
+}
+
+void pmap3_unset_cb(struct rpc_context *rpc, int status, void *data, void *private_data)
+{
+ struct client *client = private_data;
+ uint32_t res = *(uint32_t *)data;
+
+ if (status == RPC_STATUS_ERROR) {
+ printf("PORTMAP3/UNSET call failed with \"%s\"\n", (char *)data);
+ exit(10);
+ }
+ if (status != RPC_STATUS_SUCCESS) {
+ printf("PORTMAP3/UNSET call failed, status:%d\n", status);
+ exit(10);
+ }
+
+ printf("PORTMAP3/UNSET:\n");
+ printf(" Res:%d\n", res);
+
+ client->is_finished = 1;
+}
+