From 3ed08b68d4d4bd51d85334aa1a21690737b95cfe Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 30 Jun 2016 21:11:19 -0400 Subject: 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. --- rpc_server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rpc_server.c') 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) { -- cgit v1.2.3