dn_skipname()--Skip over Compressed Domain Name


  Syntax
 #include <sys/types.h>
 #include <netinet/in.h>
 #include <arpa/nameser.h>
 #include <resolv.h>

 int dn_skipname(unsigned char *compressed_domain_name,
                 unsigned char *end_of_message)

  Service Program Name: QSOSRV2

  Default Public Authority: *USE

  Threadsafe: Yes

The dn_skipname() function is used to skip over a compressed domain name in a DNS packet.


Authorities and Locks

None.


Parameters

compressed_domain_name
(Input) A pointer to a compressed domain name.

end_of_message
(Input) The pointer to the end of the message string.

Return Value

dn_skipname() returns an integer. Possible values are:


Error Conditions

When the dn_skipname() function fails, it does not set specific errno or h_errno values. An error occurs under the following conditions:


Usage Notes

  1. dn_skipname() skips over a compressed domain name in a DNS packet and returns the size of compressed_domain_name.

  2. dn_skipname() expects EBCDIC data as input.

Related Information



API introduced: V3R1
Top | UNIX-Type APIs | APIs by category