summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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 Klauser2-9/+19
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-16log: Add log_dbg() to facilitate debuggingTobias Klauser2-0/+9
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-16all: Remove trailing whitespacesTobias Klauser3-7/+7
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 Klauser17-0/+1514