diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-13 07:24:54 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-13 07:30:04 +0100 |
commit | 5023c50ebd83fec0c551ebf82ef797cd7c792423 (patch) | |
tree | 4e74ea4a5e640d01b78bb877565b02cb8d78242b /econpacket.h | |
parent | aa32357a46b68c8fab4a24aff00d24b0b0570d92 (diff) | |
download | econ-5023c50ebd83fec0c551ebf82ef797cd7c792423.tar.gz econ-5023c50ebd83fec0c551ebf82ef797cd7c792423.tar.bz2 econ-5023c50ebd83fec0c551ebf82ef797cd7c792423.zip |
econpacket: Try to be able to read cmd21
Diffstat (limited to 'econpacket.h')
-rw-r--r-- | econpacket.h | 9 |
1 files changed, 8 insertions, 1 deletions
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 <stddef.h> #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 |