From: Geoff Levand Date: Sun, 12 Apr 2009 15:11:39 +0000 (+0000) Subject: Increase protocol payload size to 64KiB X-Git-Tag: v1.0.0~881 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=ce8a340bffd224290ad5219baa5f0466fcd9fd55 Increase protocol payload size to 64KiB Increase the protocol payload size from 8 KiB to 64 KiB. Udev uses some really long device names for USB mass storage devices so the config file data can easily excceed the protocol payload. Signed-off-by: Geoff Levand Signed-off-by: Jeremy Kerr --- diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h index 36b68dd..888e9b9 100644 --- a/lib/pb-protocol/pb-protocol.h +++ b/lib/pb-protocol/pb-protocol.h @@ -7,7 +7,7 @@ #define PB_SOCKET_PATH "/tmp/petitboot.ui" -#define PB_PROTOCOL_MAX_PAYLOAD_SIZE (8 * 1024) +#define PB_PROTOCOL_MAX_PAYLOAD_SIZE (64 * 1024) enum pb_protocol_action { PB_PROTOCOL_ACTION_ADD = 0x1,