Home
last modified time | relevance | path

Searched refs:listen_sock (Results 1 – 3 of 3) sorted by relevance

/external/libpcap/rpcapd/
Drpcapd.c69 struct listen_sock { struct
70 struct listen_sock *next; argument
78 static struct listen_sock *listen_socks; //!< sockets on which we listen argument
102 static void accept_connection(SOCKET listen_sock);
550 struct listen_sock *sock_info; in main_startup()
593 sock_info = (struct listen_sock *) malloc(sizeof (struct listen_sock)); in main_startup()
778 struct listen_sock *sock_info; in accept_connections()
925 struct listen_sock *sock_info; in accept_connections()
1041 accept_connection(SOCKET listen_sock) in accept_connection() argument
1064 sockctrl = accept(listen_sock, (struct sockaddr *) &from, &fromlen); in accept_connection()
[all …]
/external/openssh/
Dsshd.c1036 int ret, listen_sock, on = 1; local
1072 listen_sock = socket(ai->ai_family, ai->ai_socktype,
1091 if (listen_sock < 0) {
1096 if (set_nonblock(listen_sock) == -1) {
1097 close(listen_sock);
1100 if (fcntl(listen_sock, F_SETFD, FD_CLOEXEC) == -1) {
1102 close(listen_sock);
1109 if (setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR,
1115 sock_set_v6only(listen_sock);
1120 if (bind(listen_sock, ai->ai_addr, ai->ai_addrlen) < 0) {
[all …]
/external/scapy/scapy/
Dautomaton.py722 self.listen_sock = self.recv_sock_class(**self.socket_kargs)
806 fds.append(self.listen_sock)
827 elif fd == self.listen_sock:
829 pkt = self.listen_sock.recv(MTU)