Lines Matching defs:gateway

125 struct gateway {
2465 * gateway.
2521 * Identify each gateway separated by ",", "@" or ",@" and
2563 /* Any input starting with '!@' or '@' must have at least one gateway */
2576 * Resolves the target and gateway addresses, determines what type of addresses
2585 * resolves gateway addresses and picks one address for each desired address
2590 resolve_hosts(char **hostname_list, int num_gw, struct gateway **gw_addrsp,
2593 struct gateway *gw_addrs = NULL;
2594 struct gateway *gw;
2595 /* whether we already picked an IPv4 address for the current gateway */
2598 /* whether we need to get an IPv4 address for the current gateway */
2601 int res_failed_at4; /* save which gateway failed to resolve */
2609 struct addrinfo *res, *host, *gateway, *addr;
2656 gw_addrs = calloc(num_gw + 1, sizeof (struct gateway));
2674 rc = getaddrinfo(hostname_list[i], NULL, NULL, &gateway);
2685 * Initially we have no address of any type for this gateway.
2691 * Let's go through all the addresses of this gateway.
2694 for (addr = gateway; addr != NULL; addr = addr->ai_next) {
2737 * We needed an IPv4 address for this gateway but couldn't
2743 * Since we couldn't resolve a gateway to IPv4 address
2796 * src_rtng_type using the gateway addresses stored in gw_addrs. If no buffer
2805 prepare_optbuf(struct gateway *gw_addrs, int num_gw, char **opt_bufpp,
2814 * of gateway addresses we put in the option buffer includes the target
2864 * using the gateway addresses stored in gw_addrs. If no buffer is passed, it
2872 prepare_optbuf6(struct gateway *gw_addrs, int num_gw, char **opt_bufpp,
2934 struct gateway *gw_addrs;