dn_skipname() — Resolver domain name skipping
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
BSD 4.3 |
both | OS/390 V2R8 |
Format
#define _XOPEN_SOURCE_EXTENDED 1
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
int dn_skipname(const u_char *comp_dn, u_char *eom);
General description
The dn_skipname() function skips the compressed domain name comp_dn and returns the position in the answer buffer that follows the comp_dn compressed domain name. If the information supplied in comp_dn is not a compressed domain name, -1 is returned to report the error.
Note: The
dn_skipname() function has a dependency on the level of the Enhanced
ASCII Extensions. See Enhanced ASCII support for
details.
Returned value
If successful, dn_skipname() returns the position in the answer buffer that follows the comp_dn compressed domain name.
If unsuccessful, dn_skipname() returns -1 to report the error, when the name to be skipped was not found before the end of the buffer was reached.
There are no documented errno values.
Related information
- arpa/nameser.h
- netinet/in.h
- resolv.h
- sys/types.h
- dn_comp() — Resolver domain name compression
- dn_expand() — Resolver domain name expansion
- dn_find() — Resolver domain name find
- res_init() — Domain name resolver initialization
- res_mkquery() — Make resolver query for domain name servers
- res_query() — Resolver query for domain name servers
- res_querydomain() — Build domain name and resolver query
- res_search() — Resolver query for domain name servers
- res_send() — Send resolver query for domain name servers