aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/dhcpopts.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2010-11-30 00:31:01 +0000
committerMichael Brown <mcb30@ipxe.org>2011-01-10 03:39:26 +0000
commit310d46c1edcefeb918125de0ee2e123c2940a70b (patch)
treed0e326375e3f3ec1ac93cc3b2831f9beb45b52f3 /src/include/ipxe/dhcpopts.h
parent6cee8904d1d26cd3503018e9514b8671a9b0a860 (diff)
downloadipxe-310d46c1edcefeb918125de0ee2e123c2940a70b.tar.gz
[dhcp] Rename length fields for DHCP options
Rename "len" to "used_len" and "max_len" to "alloc_len". Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/dhcpopts.h')
-rw-r--r--src/include/ipxe/dhcpopts.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/ipxe/dhcpopts.h b/src/include/ipxe/dhcpopts.h
index fea99d59d..d88036e3a 100644
--- a/src/include/ipxe/dhcpopts.h
+++ b/src/include/ipxe/dhcpopts.h
@@ -15,10 +15,10 @@ FILE_LICENCE ( GPL2_OR_LATER );
struct dhcp_options {
/** Option block raw data */
void *data;
- /** Option block length */
- size_t len;
- /** Option block maximum length */
- size_t max_len;
+ /** Option block used length */
+ size_t used_len;
+ /** Option block allocated length */
+ size_t alloc_len;
};
extern int dhcpopt_store ( struct dhcp_options *options, unsigned int tag,
@@ -29,6 +29,6 @@ extern int dhcpopt_extensible_store ( struct dhcp_options *options,
extern int dhcpopt_fetch ( struct dhcp_options *options, unsigned int tag,
void *data, size_t len );
extern void dhcpopt_init ( struct dhcp_options *options,
- void *data, size_t max_len );
+ void *data, size_t alloc_len );
#endif /* _IPXE_DHCPOPTS_H */