From 461ade4994afca70e671e455e9129420da149f8b Mon Sep 17 00:00:00 2001 From: Jean-Michel Audet Date: Fri, 29 May 2009 19:11:26 +0000 Subject: [PATCH] - Reduce size of sdr_max_write_len to 19 to fit into the recommended 32 bytes limit. (overall message size) --- ipmitool/lib/ipmi_sdradd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ipmitool/lib/ipmi_sdradd.c b/ipmitool/lib/ipmi_sdradd.c index ec2cadf..a167798 100644 --- a/ipmitool/lib/ipmi_sdradd.c +++ b/ipmitool/lib/ipmi_sdradd.c @@ -62,7 +62,9 @@ struct sdr_add_rq { uint8_t data[1]; /* SDR record data */ } __attribute__ ((packed)); -static int sdr_max_write_len = 24; +/* This was formerly initialized to 24, reduced this to 19 so the overall + message fits into the recommended 32-byte limit */ +static int sdr_max_write_len = 19; static int partial_send(struct ipmi_intf *intf, struct ipmi_rq *req, uint16_t *id)