Home
last modified time | relevance | path

Searched refs:listen_addr (Results 1 – 5 of 5) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/net/
Dtcp_inq.c108 struct sockaddr_storage listen_addr, addr; in main() local
137 setup_loopback_addr(family, &listen_addr); in main()
141 if (bind(server_fd, (const struct sockaddr *)&listen_addr, in main()
/external/libevent/
Devutil.c225 struct sockaddr_in listen_addr; in evutil_ersatz_socketpair_() local
248 memset(&listen_addr, 0, sizeof(listen_addr)); in evutil_ersatz_socketpair_()
249 listen_addr.sin_family = AF_INET; in evutil_ersatz_socketpair_()
250 listen_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in evutil_ersatz_socketpair_()
251 listen_addr.sin_port = 0; /* kernel chooses port. */ in evutil_ersatz_socketpair_()
252 if (bind(listener, (struct sockaddr *) &listen_addr, sizeof (listen_addr)) in evutil_ersatz_socketpair_()
274 size = sizeof(listen_addr); in evutil_ersatz_socketpair_()
275 acceptor = accept(listener, (struct sockaddr *) &listen_addr, &size); in evutil_ersatz_socketpair_()
278 if (size != sizeof(listen_addr)) in evutil_ersatz_socketpair_()
285 || listen_addr.sin_family != connect_addr.sin_family in evutil_ersatz_socketpair_()
[all …]
/external/openssh/
Dmux.c666 char *listen_addr, *connect_addr; in process_mux_open_fwd() local
675 (listen_addr = buffer_get_string_ret(m, NULL)) == NULL || in process_mux_open_fwd()
685 if (*listen_addr == '\0') { in process_mux_open_fwd()
686 free(listen_addr); in process_mux_open_fwd()
687 listen_addr = NULL; in process_mux_open_fwd()
697 fwd.listen_path = listen_addr; in process_mux_open_fwd()
699 fwd.listen_host = listen_addr; in process_mux_open_fwd()
713 free(listen_addr); in process_mux_open_fwd()
835 char *listen_addr = NULL, *connect_addr = NULL; in process_mux_close_fwd() local
843 (listen_addr = buffer_get_string_ret(m, NULL)) == NULL || in process_mux_close_fwd()
[all …]
Dchannels.c3135 channel_fwd_bind_addr(const char *listen_addr, int *wildcardp, argument
3141 if (listen_addr == NULL) {
3147 strcmp(listen_addr, "0.0.0.0") == 0 && is_client == 0) ||
3148 *listen_addr == '\0' || strcmp(listen_addr, "*") == 0 ||
3155 if (*listen_addr != '\0' &&
3156 strcmp(listen_addr, "0.0.0.0") != 0 &&
3157 strcmp(listen_addr, "*") != 0) {
3160 "GatewayPorts", listen_addr);
3162 } else if (strcmp(listen_addr, "localhost") != 0 ||
3163 strcmp(listen_addr, "127.0.0.1") == 0 ||
[all …]
/external/ipsec-tools/src/racoon/
Dcfparse.y165 static int listen_addr __P((struct sockaddr *addr, int udp_encap));
446 listen_addr ($2, 0);
452 listen_addr ($2, 1);
2435 listen_addr (struct sockaddr *addr, int udp_encap) in listen_addr() function