/** Reply from host when the command is not recognized. */
#define RPCI_UNKNOWN_COMMAND "Unknown command"
+/** Reply from the guest when the command is not recognized. */
+#define GUEST_RPC_UNKNOWN_COMMAND "Unknown Command"
+
#define GUESTRPC_TCLO_VSOCK_LISTEN_PORT 975
#define GUESTRPC_RPCI_VSOCK_LISTEN_PORT 976
#include "vmxrpc.h"
#include "xdrutil.h"
#include "rpcin.h"
+#include "vmware/guestrpc/tclodefs.h"
#endif
#include "str.h"
if (rpc == NULL) {
Debug(LGPFX "Unknown Command '%s': Handler not registered.\n", name);
- status = RPCIN_SETRETVALS(data, "Unknown Command", FALSE);
+ status = RPCIN_SETRETVALS(data, GUEST_RPC_UNKNOWN_COMMAND, FALSE);
goto exit;
}
/*********************************************************
- * Copyright (C) 1998-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2020 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
# include "asyncsocket.h"
# include "vmci_defs.h"
#include "dataMap.h"
-#include "vmware/guestrpc/tclodefs.h"
#if defined(__linux__)
#include <arpa/inet.h>
#else
# include "vmware/tools/utils.h"
#endif
+#include "vmware/guestrpc/tclodefs.h"
#include "vmware.h"
#include "message.h"
#include "rpcin.h"
} else {
Debug("RpcIn: Unknown Command '%s': No matching callback\n", cmd);
status = FALSE;
- result = "Unknown Command";
+ result = GUEST_RPC_UNKNOWN_COMMAND;
resultLen = strlen(result);
}
free(cmd);