Lines Matching defs:ho
872 * int irp_marshall_ho(struct hostent *ho, char **buffer, size_t *len)
885 irp_marshall_ho(struct hostent *ho, char **buffer, size_t *len) {
896 if (ho == NULL || len == NULL) {
901 switch(ho->h_addrtype) {
915 sprintf(holength, "%d", ho->h_length);
917 need += strlen(ho->h_name) + 1;
918 need += joinlength(ho->h_aliases) + 1;
924 addrlen = (ho->h_addrtype == AF_INET ? 16 : 46) ; /*%< XX other AF's?? */
925 for (av = ho->h_addr_list; av != NULL && *av != NULL ; av++)
950 strcpy(*buffer, ho->h_name); strcat(*buffer, fieldsep);
951 joinarray(ho->h_aliases, *buffer, COMMA); strcat(*buffer, fieldsep);
957 for (av = ho->h_addr_list ; av != NULL && *av != NULL ; av++) {
958 if (inet_ntop(ho->h_addrtype, *av, p, remlen) == NULL) {
979 * int irp_unmarshall_ho(struct hostent *ho, char *buffer)
992 irp_unmarshall_ho(struct hostent *ho, char *buffer) {
1008 if (ho == NULL || buffer == NULL) {
1108 ho->h_name = name;
1109 ho->h_aliases = aliases;
1110 ho->h_addrtype = hoaddrtype;
1111 ho->h_length = holength;
1112 ho->h_addr_list = hohaddrlist;