summaryrefslogtreecommitdiff
path: root/llmnr.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-02-16 11:32:46 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-02-16 11:32:46 +0100
commit084939b1e5e692e73dbcb299c7d728d6c2928cbc (patch)
tree6ec32f5dbfa0db9d9afc24a7c8e3e110bb171409 /llmnr.c
parente5649bbb4e6555370f4c46b070616c1b215a6135 (diff)
pkt: Implement growing of packet on pkt_put
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>
Diffstat (limited to 'llmnr.c')
-rw-r--r--llmnr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/llmnr.c b/llmnr.c
index 8b5b387..e007de5 100644
--- a/llmnr.c
+++ b/llmnr.c
@@ -167,7 +167,7 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr,
log_info("Response packet length: %zu\n", pkt_len(p));
- if (sendto(sock, p->head, pkt_len(p), 0, sa, sizeof(struct sockaddr_in)) < 0) {
+ if (sendto(sock, p->data, pkt_len(p), 0, sa, sizeof(struct sockaddr_in)) < 0) {
log_err("Failed to send response: %s\n", strerror(errno));
}