The xhostent structure is defined in the /usr/include/netx25/xnetdb.h file. It has this format:
struct xhostent { char *h_name; char **h_aliases; int h_addrtype; int h_length; char *h_addr; };
The xhostent structure contains a single entry from the xhosts file. This contains information mapping host names to X.25 addresses and is used when making PAD calls. By default this file is in the /etc/SUNWconn/x25 directory.
The members of the structure are:
Table 8-7 Members of xhostent structure
Member |
Description |
---|---|
h_name |
A pointer to the name of the X.25 host, as defined in the xhosts file. |
h_aliases |
A pointer to an array of character pointers that point to aliases for the X.25 host. |
h_addrtype |
The type of address being returned. This is always CCITT_X25. |
h_length |
The length in bytes of the structure that contains the X.25 address. |
h_addr |
A pointer to an xaddrf structure containing the network address of the X.25 host. |