Lines Matching refs:m_host
92 struct hostent m_host; member
1896 if ( strstr( node->m_host.h_name, ".local" ) == NULL ) in IsLocalName()
1900 for ( i = 0; node->m_host.h_aliases[i]; i++ ) in IsLocalName()
1902 if ( strstr( node->m_host.h_aliases[i], ".local" ) ) in IsLocalName()
1929 if ( strcmp( node->m_host.h_name, name ) != 0 ) in IsSameName()
1933 for ( i = 0; node->m_host.h_aliases[i]; i++ ) in IsSameName()
1935 if ( strcmp( node->m_host.h_aliases[i], name ) == 0 ) in IsSameName()
2022 if ( info->m_host.h_addr_list ) in HostsFileInfoFree()
2024 if ( info->m_host.h_addr_list[0] ) in HostsFileInfoFree()
2026 free( info->m_host.h_addr_list[0] ); in HostsFileInfoFree()
2027 info->m_host.h_addr_list[0] = NULL; in HostsFileInfoFree()
2030 free( info->m_host.h_addr_list ); in HostsFileInfoFree()
2031 info->m_host.h_addr_list = NULL; in HostsFileInfoFree()
2034 if ( info->m_host.h_aliases ) in HostsFileInfoFree()
2038 for ( i = 0; info->m_host.h_aliases[i]; i++ ) in HostsFileInfoFree()
2040 free( info->m_host.h_aliases[i] ); in HostsFileInfoFree()
2043 free( info->m_host.h_aliases ); in HostsFileInfoFree()
2046 if ( info->m_host.h_name ) in HostsFileInfoFree()
2048 free( info->m_host.h_name ); in HostsFileInfoFree()
2049 info->m_host.h_name = NULL; in HostsFileInfoFree()
2149 (*hInfo)->m_host.h_name = (char*) malloc( strlen( tok ) + 1 ); in HostsFileNext()
2150 require_action( (*hInfo)->m_host.h_name, exit, err = kNoMemoryErr ); in HostsFileNext()
2151 strcpy( (*hInfo)->m_host.h_name, tok ); in HostsFileNext()
2169 (*hInfo)->m_host.h_addr_list = (char**) malloc( sizeof( char**) * 2 ); in HostsFileNext()
2170 require_action( (*hInfo)->m_host.h_addr_list, exit, err = kNoMemoryErr ); in HostsFileNext()
2174 (*hInfo)->m_host.h_length = (short) sizeof( addr_6.sin6_addr ); in HostsFileNext()
2175 (*hInfo)->m_host.h_addr_list[0] = (char*) malloc( (*hInfo)->m_host.h_length ); in HostsFileNext()
2176 require_action( (*hInfo)->m_host.h_addr_list[0], exit, err = kNoMemoryErr ); in HostsFileNext()
2177 memmove( (*hInfo)->m_host.h_addr_list[0], &addr_6.sin6_addr, sizeof( addr_6.sin6_addr ) ); in HostsFileNext()
2182 (*hInfo)->m_host.h_length = (short) sizeof( addr_4.sin_addr ); in HostsFileNext()
2183 (*hInfo)->m_host.h_addr_list[0] = (char*) malloc( (*hInfo)->m_host.h_length ); in HostsFileNext()
2184 require_action( (*hInfo)->m_host.h_addr_list[0], exit, err = kNoMemoryErr ); in HostsFileNext()
2185 memmove( (*hInfo)->m_host.h_addr_list[0], &addr_4.sin_addr, sizeof( addr_4.sin_addr ) ); in HostsFileNext()
2188 (*hInfo)->m_host.h_addr_list[1] = NULL; in HostsFileNext()
2189 (*hInfo)->m_host.h_addrtype = family; in HostsFileNext()
2200 (*hInfo)->m_host.h_aliases = (char**) malloc( sizeof(char**) * numAliases ); in HostsFileNext()
2201 require_action( (*hInfo)->m_host.h_aliases, exit, err = kNoMemoryErr ); in HostsFileNext()
2202 (*hInfo)->m_host.h_aliases[0] = NULL; in HostsFileNext()
2219 …(*hInfo)->m_host.h_aliases = (char**) realloc( (*hInfo)->m_host.h_aliases, numAliases * sizeof( ch… in HostsFileNext()
2220 require_action( (*hInfo)->m_host.h_aliases, exit, err = kNoMemoryErr ); in HostsFileNext()
2223 (*hInfo)->m_host.h_aliases[i] = (char*) malloc( strlen( tok ) + 1 ); in HostsFileNext()
2224 require_action( (*hInfo)->m_host.h_aliases[i], exit, err = kNoMemoryErr ); in HostsFileNext()
2226 strcpy( (*hInfo)->m_host.h_aliases[i], tok ); in HostsFileNext()
2233 (*hInfo)->m_host.h_aliases[++i] = NULL; in HostsFileNext()