/asus-wl-520gu-7.0.1.45/src/router/samba/source/libsmb/ |
H A D | namequery_dc.c | 73 struct ip_service *ip_list = NULL; local 103 if ( !get_sorted_dc_list(domain, &ip_list, &count, False) ) { 112 if (ip_equal( exclude_ip, ip_list[i].ip)) 113 zero_ip(&ip_list[i].ip); 118 if (is_zero_ip(ip_list[i].ip)) 121 if (name_status_find(domain, 0x1c, 0x20, ip_list[i].ip, srv_name)) { 124 dc_ip = ip_list[i].ip; 131 SAFE_FREE(ip_list); 147 SAFE_FREE(ip_list);
|
H A D | namequery.c | 359 struct in_addr *ip_list = NULL; local 473 tmp_ip_list = (struct in_addr *)Realloc( ip_list, sizeof( ip_list[0] ) 478 SAFE_FREE(ip_list); 481 ip_list = tmp_ip_list; 483 if (ip_list) { 486 putip((char *)&ip_list[(*count)],&nmb2->answers->rdata[2+i*6]); 487 DEBUGADD(2,("%s ",inet_ntoa(ip_list[(*count)]))); 526 sort_ip_list(ip_list, *count); 528 return ip_list; 646 convert_ip2service( struct ip_service **return_iplist, struct in_addr *ip_list, int count ) argument 675 struct in_addr *ip_list; local 737 struct in_addr src_ip, *ip_list = NULL; local 1144 struct ip_service *ip_list = NULL; local 1179 struct ip_service *ip_list = NULL; local 1209 struct ip_service *ip_list; local 1235 get_sorted_dc_list( const char *domain, struct ip_service **ip_list, int *count, BOOL ads_only ) argument 1257 get_dc_list(const char *domain, struct ip_service **ip_list, int *count, BOOL ads_only, int *ordered) argument [all...] |
H A D | namecache.c | 111 * @param ip_list array of in_addr structures containing 116 int num_names, struct ip_service *ip_list) 134 DEBUGADD(5, ("%s:%d%s", inet_ntoa(ip_list[i].ip), 135 ip_list[i].port, (i == (num_names - 1) ? "" : ","))); 148 if (!ipstr_list_make(&value_string, ip_list, num_names)) { 167 * @param ip_list mallocated list of IP addresses if found in the cache, 175 BOOL namecache_fetch(const char *name, int name_type, struct ip_service **ip_list, argument 184 if (!ip_list || !num_names) return False; 207 *num_names = ipstr_list_parse(value, ip_list); 115 namecache_store(const char *name, int name_type, int num_names, struct ip_service *ip_list) argument
|
H A D | cliconnect.c | 1598 struct ip_service *ip_list; local 1605 if (!name_resolve_bcast(MSBROWSE, 1, &ip_list, &count)) { 1612 if (!name_status_find("*", 0, 0x1d, ip_list[i].ip, name)) 1621 name, inet_ntoa(ip_list[i].ip)));
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/web/ |
H A D | diagnose.c | 44 struct in_addr *ip_list; local 48 if ((ip_list = name_query(fd, "__SAMBA__", 0, 51 SAFE_FREE(ip_list);
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/nsswitch/ |
H A D | wins.c | 168 struct in_addr *ip_list; local 226 if (ip_list = lookup_byname_backend(key, &count)) { 228 addr = inet_ntoa(ip_list[i-1]); 231 free(ip_list); 242 free(ip_list); 248 free(ip_list); 296 struct in_addr *ip_list; local 306 ip_list = lookup_byname_backend(name, &count); 308 if (!ip_list) 336 memcpy(he->h_addr_list[i], &ip_list[ [all...] |
H A D | winbindd_wins.c | 180 struct in_addr *ip_list; local 194 if ((ip_list = lookup_byname_backend(state->request.data.winsreq,&count))){ 196 addr = inet_ntoa(ip_list[i-1]); 199 SAFE_FREE(ip_list); 211 SAFE_FREE(ip_list); 216 SAFE_FREE(ip_list);
|
H A D | winbindd_rpc.c | 799 struct ip_service *ip_list = NULL; local 802 if ( !get_sorted_dc_list(domain, &ip_list, &count, False) ) { 813 port = (ip_list[i].port!= PORT_NONE) ? ip_list[i].port : LDAP_PORT; 815 fstrcpy( ipstr, inet_ntoa(ip_list[i].ip) ); 817 if (is_zero_ip(ip_list[i].ip)) 830 domain, inet_ntoa(ip_list[i].ip), port)); 833 SAFE_FREE(ip_list);
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/utils/ |
H A D | nmblookup.c | 132 struct in_addr *ip_list=NULL; local 136 ip_list = name_query(ServerFD,lookup,lookup_type,use_bcast, 142 !ip_list && j >= 0; 147 ip_list = name_query(ServerFD,lookup,lookup_type, 154 if (!ip_list) return False; 161 struct hostent *host = gethostbyaddr((char *)&ip_list[j], sizeof(ip_list[j]), AF_INET); 166 d_printf("%s %s<%02x>\n",inet_ntoa(ip_list[j]),lookup, lookup_type); 173 do_node_status(ServerFD, lookup, lookup_type, ip_list[0]); 176 safe_free(ip_list); [all...] |
H A D | net_lookup.c | 135 struct ip_service *ip_list; local 151 if (!get_sorted_dc_list(domain, &ip_list, &count, False)) { 156 char *dc_str = inet_ntoa(ip_list[i].ip);
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/nmbd/ |
H A D | nmbd_nameregister.c | 420 struct in_addr *ip_list; local 426 if((ip_list = (struct in_addr *)malloc(num_ips * sizeof(struct in_addr)))==NULL) { 434 ip_list[i] = subrec->myip; 440 num_ips, ip_list); 454 ip_list[0], 460 SAFE_FREE(ip_list);
|
H A D | nmbd_winsserver.c | 247 struct in_addr *ip_list; local 283 * time to actually parse them into the ip_list array. 320 /* Allocate the space for the ip_list. */ 321 if((ip_list = (struct in_addr *)malloc( num_ips * sizeof(struct in_addr))) == NULL) { 332 ip_list[i] = *interpret_addr2(ip_str); 343 SAFE_FREE(ip_list); 368 name, type, ttl, inet_ntoa(ip_list[0]), nb_flags)); 371 ttl, REGISTER_NAME, num_ips, ip_list ); 374 name, type, ttl, inet_ntoa(ip_list[0]), nb_flags)); 377 SAFE_FREE(ip_list); [all...] |
/asus-wl-520gu-7.0.1.45/src/router/samba/source/wrepld/ |
H A D | process.c | 404 static BOOL add_record_to_winsname(WINS_NAME **wins_name, int *max_names, char *name, int type, int wins_flags, int id, struct in_addr *ip_list, int num_ips) argument 430 temp_list[current].owner.s_addr=ip_list[0].s_addr; 439 temp_list[current].others[i].s_addr=ip_list[i].s_addr; 511 struct in_addr *ip_list; local 542 /* Allocate the space for the ip_list. */ 543 if((ip_list = (struct in_addr *)talloc(mem_ctx, num_ips * sizeof(struct in_addr))) == NULL) { 551 ip_list[i] = *interpret_addr2(ip_str); 562 name, type, ttl, inet_ntoa(ip_list[0]), nb_flags)); 569 if(!add_record_to_winsname(&r->rep.se_rp.wins_name, &max_names, name, type, wins_flags, version, ip_list, num_ips)) 576 name, type, ttl, inet_ntoa(ip_list[ [all...] |
/asus-wl-520gu-7.0.1.45/src/router/samba/source/lib/ |
H A D | util_str.c | 1704 * @param ip_list array of ip addresses to place in the list 1705 * @param ip_count number of addresses stored in ip_list 1709 char* ipstr_list_make(char** ipstr_list, const struct ip_service* ip_list, int ip_count) argument 1714 if (!ip_list && !ipstr_list) return 0; 1720 *ipstr_list = ipstr_list_add(ipstr_list, &ip_list[i]); 1732 * @param ip_list pointer to array of ip addresses which is 1737 int ipstr_list_parse(const char* ipstr_list, struct ip_service **ip_list) argument 1743 if (!ipstr_list || !ip_list) 1747 if ( (*ip_list = (struct ip_service*)malloc(count * sizeof(struct ip_service))) == NULL ) { 1769 (*ip_list)[ [all...] |
/asus-wl-520gu-7.0.1.45/src/router/samba/source/smbwrapper/ |
H A D | smbw.c | 256 struct in_addr *ip_list = NULL; local 268 if (!name_resolve_bcast(MSBROWSE, 1, &ip_list, &count)) { 275 if (name_status_find("*", 0, 0x1d, ip_list[i], name)) { 279 SAFE_FREE(ip_list); 285 SAFE_FREE(ip_list);
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/libads/ |
H A D | ldap.c | 106 struct ip_service *ip_list; local 149 if ( !get_sorted_dc_list(realm, &ip_list, &count, got_realm) ) { 162 int port = (ip_list[i].port!=PORT_NONE) ? ip_list[i].port : LDAP_PORT; 165 fstrcpy( server, inet_ntoa(ip_list[i].ip) ); 171 SAFE_FREE(ip_list); 179 SAFE_FREE(ip_list);
|