From 22cf41f697ff6de1eb4d6c5f66e5de70e86c9f74 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
-
-
- Functions
int s6dns_domain_fromstring (s6dns_domain_t *d, char const *s, unsigned int len)
+ int s6dns_domain_fromstring (s6dns_domain_t *d, char const *s, size_t len)
Makes a (string form) domain from string s of length len,
and stores it into *d. Returns 1 if it succeeds, otherwise it
returns 0 and sets errno appropriately - most likely ENAMETOOLONG, i.e.
@@ -104,20 +104,20 @@ valid packet form (EPROTO).
int s6dns_domain_fromstring_noqualify_encode (s6dns_domain_t *d, char const *s, unsigned int len)
+ int s6dns_domain_fromstring_noqualify_encode (s6dns_domain_t *d, char const *s, size_t len)
Higher-level function wrapping some of the above. Makes an encoded, fully qualified
(without resorting to qualification) domain from string s of
length len. Returns 1 if it succeeds and 0 if it fails.
unsigned int s6dns_domain_fromstring_qualify_encode (s6dns_domain_t *list, char const *s, unsigned int len, char const *rules, unsigned int rulesnum)
+ unsigned int s6dns_domain_fromstring_qualify_encode (s6dns_domain_t *list, char const *s, size_t len, char const *rules, unsigned int rulesnum)
Another wrapping function. It makes a list of encoded, fully qualified domains,
from string s of length len using rulesnum qualification
rules in rules. It writes at most rulesnum domains into the array
pointed to by list and returns the number of written domains, or 0 on an
error.
-
void s6dns_domain_arpafromip4 (s6dns_domain_t *d, char const *ip)
--
cgit v1.3.1