diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-16 11:32:46 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-16 11:32:46 +0100 |
commit | 084939b1e5e692e73dbcb299c7d728d6c2928cbc (patch) | |
tree | 6ec32f5dbfa0db9d9afc24a7c8e3e110bb171409 /llmnr.c | |
parent | e5649bbb4e6555370f4c46b070616c1b215a6135 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); } |