1 .\" $Id: ares_expand_name.3,v 1.1 1998/08/13 18:07:28 ghudson Exp $
3 .\" Copyright 1998 by the Massachusetts Institute of Technology.
5 .\" Permission to use, copy, modify, and distribute this
6 .\" software and its documentation for any purpose and without
7 .\" fee is hereby granted, provided that the above copyright
8 .\" notice appear in all copies and that both that copyright
9 .\" notice and this permission notice appear in supporting
10 .\" documentation, and that the name of M.I.T. not be used in
11 .\" advertising or publicity pertaining to distribution of the
12 .\" software without specific, written prior permission.
13 .\" M.I.T. makes no representations about the suitability of
14 .\" this software for any purpose. It is provided "as is"
15 .\" without express or implied warranty.
17 .TH ARES_EXPAND_NAME 3 "23 July 1998"
19 ares_expand_name \- Expand a DNS-encoded domain name
24 .B int ares_expand_name(const unsigned char *\fIencoded\fP,
26 const unsigned char *\fIabuf\fP, int \fIalen\fP, char **\fIs\fP,
32 function converts a DNS-encoded domain name to a dot-separated C
35 gives the beginning of the encoded domain name, and the arguments
39 give the containing message buffer (necessary for the processing of
40 indirection pointers within the encoded domain name). The result is
41 placed in a NUL-terminated allocated buffer, a pointer to which is
42 stored in the variable pointed to by
44 The length of the encoded name is stored in the variable pointed to by
46 so that the caller can advance past the encoded domain name to read
47 further data in the message.
50 can return any of the following values:
53 Expansion of the encoded name succeeded.
56 The encoded domain name was malformed and could not be expanded.
63 Greg Hudson, MIT Information Systems
65 Copyright 1998 by the Massachusetts Institute of Technology.