aboutsummaryrefslogtreecommitdiff
path: root/rpc_server.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-06-30 21:11:19 -0400
committerRob Austein <sra@hactrn.net>2016-06-30 21:11:19 -0400
commit3ed08b68d4d4bd51d85334aa1a21690737b95cfe (patch)
treec6e96226598704a3b21148c63fee3b81a25eae85 /rpc_server.c
parent03a407b83da294ff05d4f230437ec06c910b2e85 (diff)
Start work to support client code on Mac OS X.
Includes preliminary support for the magic Mac-specific ioctl() to see line speed, but has not yet been tested, that's waiting for some supporting tweaks to the RPC code from Paul. Includes some general cleanup which isn't really specific to Mac OS X per se but which needed doing and which simplifies adding the Mac code.
Diffstat (limited to 'rpc_server.c')
-rw-r--r--rpc_server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rpc_server.c b/rpc_server.c
index 65ba6bb..647c182 100644
--- a/rpc_server.c
+++ b/rpc_server.c
@@ -712,10 +712,9 @@ void hal_rpc_server_dispatch(const uint8_t * const ibuf, const size_t ilen,
hal_xdr_encode_int(&optr, olimit, ret);
}
-#define MAX_PKT_SIZE 4096
#define interrupt 0
-static uint8_t inbuf[MAX_PKT_SIZE], outbuf[MAX_PKT_SIZE];
+static uint8_t inbuf[HAL_RPC_MAX_PKT_SIZE], outbuf[HAL_RPC_MAX_PKT_SIZE];
void hal_rpc_server_main(void)
{