diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-11-16 17:35:50 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2015-11-17 15:06:01 +0100 |
commit | 54adabf727fbcf1a4f49b59362e92b79da1082f1 (patch) | |
tree | 7ab7c35fb5130c74a052625f1b69106ab651e1e3 /src/shared/dns-domain.h | |
parent | 233f353a2201e58d3861390be579f87097f05eb3 (diff) | |
download | systemd-54adabf727fbcf1a4f49b59362e92b79da1082f1.tar.gz |
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.
Diffstat (limited to 'src/shared/dns-domain.h')
-rw-r--r-- | src/shared/dns-domain.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |