summaryrefslogtreecommitdiff
path: root/pkt.h
diff options
context:
space:
mode:
Diffstat (limited to 'pkt.h')
-rw-r--r--pkt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkt.h b/pkt.h
index 30caae5..5b8640c 100644
--- a/pkt.h
+++ b/pkt.h
@@ -49,6 +49,7 @@ static inline struct pkt *pkt_alloc(size_t size)
uint8_t *data = (uint8_t *)p + sizeof(*p);
p->data = p->tail = data;
+ p->size = size;
return p;
}