From 5023c50ebd83fec0c551ebf82ef797cd7c792423 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 13 Mar 2013 07:24:54 +0100 Subject: econpacket: Try to be able to read cmd21 --- econpacket.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'econpacket.h') diff --git a/econpacket.h b/econpacket.h index 7eb9a2e..eccb453 100644 --- a/econpacket.h +++ b/econpacket.h @@ -18,6 +18,7 @@ #ifndef _ECONPACKET_H_ #define _ECONPACKET_H_ +#include #include "econproto.h" struct econ_packet { @@ -26,7 +27,13 @@ struct econ_packet { struct econ_record rec; /* Holding the previous elements */ - struct iovec iov[3]; + struct iovec iov[4]; + + /* Storage for irregular long commands. + * This is just the remaining part, the first + * bytes are stored in cmd and rec. */ + char long_data[1024]; + size_t long_data_size; }; void -- cgit