search for: addrfound

Displaying 1 result from an estimated 1 matches for "addrfound".

2012 Feb 12
0
PATCH: multiple BindAddress
...; - hints.ai_protocol = ai->ai_protocol; - hints.ai_flags = AI_PASSIVE; - gaierr = getaddrinfo(options.bind_address, NULL, &hints, &res); - if (gaierr) { - error("getaddrinfo: %s: %s", options.bind_address, - ssh_gai_strerror(gaierr)); - close(sock); - return -1; + uint addrfound = 0; + uint last_idx = options.num_bind_address - 1; // last address index + + verbose("Trying %d addresses to connect",options.num_bind_address); + for(i=0;i<options.num_bind_address;++i){ + + if (strncmp(options.bind_addresses[i],SSH_BIND_ADDRESS_ANY,SSH_BIND_ADDRESS_ANYlen) == 0){...