summaryrefslogtreecommitdiff
path: root/pkt.h
AgeCommit message (Collapse)AuthorFilesLines
2016-09-12Fix misaligned memory accessMichael Evertz1-2/+2
This changes fixes misaligned memory access. Without the patch I get several "Misaligend access trap for user program 'llmnrd'" messages on my platform if the system has odd hostname length.
2015-02-16pkt: Add pkt_reset()Tobias Klauser1-0/+7
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-16pkt: Use macro to generate pkt_put_u{8,16,32}Tobias Klauser1-9/+8
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-16plt: Fix packet length check in pkt_put()Tobias Klauser1-1/+1
pkt_len() return the amount of bytes the packet currently holds. Together with the newly added bytes it mustn't exceed p->size. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-16pkt: Initialize size member properlyTobias Klauser1-0/+1
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-16pkt: Implement growing of packet on pkt_putTobias Klauser1-8/+18
Also get rid of the unnecessary head member of struct pkt. For now we only append data at the end of a packet. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-06pkt: Fix variable typoTobias Klauser1-1/+1
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-06pkt: Fix tail pointer initialization errorTobias Klauser1-4/+1
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-06Initial import, still work in progressTobias Klauser1-0/+97