#include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> int dn_comp(unsigned char *expanded_domain_name, unsigned char *compressed_domain_name, int answer_buffer_length, unsigned char **domain_name_pointers, unsigned char **last_domain_name)
The dn_comp() function is used to compress an expanded domain name.
None.
dn_comp() returns an integer. Possible values are:
dn_comp() compresses the domain name pointed to by expanded_domain_name. The result is placed in compressed_domain_name.
When the dn_comp() function fails, it does not set specific errno or h_errno values. An error occurs under the following conditions:
Top | UNIX-Type APIs | APIs by category |