summaryrefslogtreecommitdiff
path: root/pkt_buff.h
diff options
context:
space:
mode:
Diffstat (limited to 'pkt_buff.h')
-rw-r--r--pkt_buff.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkt_buff.h b/pkt_buff.h
index 30b999e..fecdb4c 100644
--- a/pkt_buff.h
+++ b/pkt_buff.h
@@ -14,10 +14,9 @@
struct pkt_buff {
/* invariant: head <= data <= tail */
- uint8_t *head;
- uint8_t *data;
- uint8_t *tail;
- unsigned int size;
+ uint8_t *head;
+ uint8_t *data;
+ uint8_t *tail;
struct protocol *dissector;
uint32_t link_type;
@@ -31,7 +30,6 @@ static inline struct pkt_buff *pkt_alloc(uint8_t *packet, unsigned int len)
pkt->head = packet;
pkt->data = packet;
pkt->tail = packet + len;
- pkt->size = len;
pkt->dissector = NULL;
return pkt;