From 54adabf727fbcf1a4f49b59362e92b79da1082f1 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 16 Nov 2015 17:35:50 +0100 Subject: dns-domain: add dns_name_to_wire_format() The function converts a domain name string to the wire format described in RFC 1035 Section 3.1. --- src/shared/dns-domain.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared/dns-domain.h') diff --git a/src/shared/dns-domain.h b/src/shared/dns-domain.h index 1f0d242c18..b214897440 100644 --- a/src/shared/dns-domain.h +++ b/src/shared/dns-domain.h @@ -67,3 +67,5 @@ int dns_name_address(const char *p, int *family, union in_addr_union *a); int dns_name_root(const char *name); int dns_name_single_label(const char *name); + +int dns_name_to_wire_format(const char *domain, uint8_t *buffer, size_t len); -- cgit v1.2.3