summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-02-17main: Add options to usage messageTobias Klauser1-2/+9
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-17Add .travis.ymlTobias Klauser1-0/+6
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-17Add .gitignoreTobias Klauser1-0/+2
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-17README: Add some more description and referencesTobias Klauser1-0/+16
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-17README: Add author sectionTobias Klauser1-0/+5
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-17README: Add section about cross-compilationTobias Klauser1-4/+18
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-17build: Add and document install targetTobias Klauser2-4/+34
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-17README: Add some basic informationTobias Klauser1-0/+14
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-17all: Remove unnecessary log messagesTobias Klauser2-45/+15
These could be used to DoS llmnrd, just silently discard invalid packets. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-17llmnr: Report proper address type in response for qtype ANYTobias Klauser1-1/+4
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-16llmnr: Remove some unnecessary log messagesTobias Klauser1-5/+0
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-16llmnr: Fix response packet byte order and name sizeTobias Klauser1-5/+5
We need to return type, class, ttl and rdlength in network byte order. Also we need to pkt_put() 2 bytes in addition to the hostname length (length and NULL byte). Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-02-16llmnr: Unindent llmnr_respond()Tobias Klauser1-87/+89
Exit out early if the query class is not LLMNR_QCLASS_IN. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
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 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