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:
- -1 (unsuccessful)
- n (successful), where n is the size of
compressed_domain_name.
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:
- NULL pointer(s) passed to the function.
- Invalid pointer(s) passed to the function.
- end_of_message reached before the end of the compressed domain
name.
Usage Notes
- dn_skipname() skips over a compressed domain name in a DNS packet
and returns the size of compressed_domain_name.
- dn_skipname() expects EBCDIC data as input.
Related Information
API introduced: V3R1
[ Back to top | UNIX-Type APIs | APIs by category ]