summaryrefslogtreecommitdiffstats
path: root/src/net/dhcppkt.c
diff options
context:
space:
mode:
authorMichael Brown2010-06-15 18:33:23 +0200
committerMichael Brown2010-06-22 15:26:40 +0200
commit4bfd5b52c1fae75eb0449af626ec69543f9334fa (patch)
tree297bc75308e763df909fb0733c0ca2ac109ebcbc /src/net/dhcppkt.c
parent[pcnet32] Replace pcnet32 with native driver (diff)
downloadipxe-4bfd5b52c1fae75eb0449af626ec69543f9334fa.tar.gz
ipxe-4bfd5b52c1fae75eb0449af626ec69543f9334fa.tar.xz
ipxe-4bfd5b52c1fae75eb0449af626ec69543f9334fa.zip
[refcnt] Add ref_init() wrapper function
Standardise on using ref_init() to initialise an embedded reference count, to match the coding style used by other embedded objects. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/dhcppkt.c')
-rw-r--r--src/net/dhcppkt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/dhcppkt.c b/src/net/dhcppkt.c
index bc99401f..b2a33363 100644
--- a/src/net/dhcppkt.c
+++ b/src/net/dhcppkt.c
@@ -271,6 +271,7 @@ static struct settings_operations dhcppkt_settings_operations = {
*/
void dhcppkt_init ( struct dhcp_packet *dhcppkt, struct dhcphdr *data,
size_t len ) {
+ ref_init ( &dhcppkt->refcnt, NULL );
dhcppkt->dhcphdr = data;
dhcppkt->max_len = len;
dhcpopt_init ( &dhcppkt->options, &dhcppkt->dhcphdr->options,