Standards / Extensions | C or C++ | Dependencies |
---|---|---|
BSD 4.3 |
both | OS/390 V2R8 |
#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);
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.
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.