• Home
  • Raw
  • Download

Lines Matching refs:result

716 	int result;  in tcp_accept_from_sock()  local
732 result = sock_create_lite(dlm_local_addr[0]->ss_family, in tcp_accept_from_sock()
734 if (result < 0) in tcp_accept_from_sock()
739 result = -ENOTCONN; in tcp_accept_from_sock()
746 result = con->sock->ops->accept(con->sock, newsock, O_NONBLOCK, true); in tcp_accept_from_sock()
747 if (result < 0) in tcp_accept_from_sock()
754 result = -ECONNABORTED; in tcp_accept_from_sock()
779 result = -ENOMEM; in tcp_accept_from_sock()
791 result = -ENOMEM; in tcp_accept_from_sock()
810 result = -EAGAIN; in tcp_accept_from_sock()
842 if (result != -EAGAIN) in tcp_accept_from_sock()
843 log_print("error accepting connection from node: %d", result); in tcp_accept_from_sock()
844 return result; in tcp_accept_from_sock()
992 int i, addr_len, result = 0; in sctp_bind_addrs() local
999 result = kernel_bind(con->sock, in sctp_bind_addrs()
1003 result = kernel_setsockopt(con->sock, SOL_SCTP, in sctp_bind_addrs()
1007 if (result < 0) { in sctp_bind_addrs()
1009 port, i + 1, result); in sctp_bind_addrs()
1013 return result; in sctp_bind_addrs()
1025 int result; in sctp_connect_to_sock() local
1046 result = nodeid_to_addr(con->nodeid, &daddr, NULL, true); in sctp_connect_to_sock()
1047 if (result < 0) { in sctp_connect_to_sock()
1053 result = sock_create_kern(&init_net, dlm_local_addr[0]->ss_family, in sctp_connect_to_sock()
1055 if (result < 0) in sctp_connect_to_sock()
1075 result = sock->ops->connect(sock, (struct sockaddr *)&daddr, addr_len, in sctp_connect_to_sock()
1077 if (result == -EINPROGRESS) in sctp_connect_to_sock()
1078 result = 0; in sctp_connect_to_sock()
1079 if (result == 0) in sctp_connect_to_sock()
1092 if (result != -EHOSTUNREACH && in sctp_connect_to_sock()
1093 result != -ENETUNREACH && in sctp_connect_to_sock()
1094 result != -ENETDOWN && in sctp_connect_to_sock()
1095 result != -EINVAL && in sctp_connect_to_sock()
1096 result != -EPROTONOSUPPORT) { in sctp_connect_to_sock()
1098 con->retries, result); in sctp_connect_to_sock()
1118 int result; in tcp_connect_to_sock() local
1134 result = sock_create_kern(&init_net, dlm_local_addr[0]->ss_family, in tcp_connect_to_sock()
1136 if (result < 0) in tcp_connect_to_sock()
1140 result = nodeid_to_addr(con->nodeid, &saddr, NULL, false); in tcp_connect_to_sock()
1141 if (result < 0) { in tcp_connect_to_sock()
1155 result = sock->ops->bind(sock, (struct sockaddr *) &src_addr, in tcp_connect_to_sock()
1157 if (result < 0) { in tcp_connect_to_sock()
1158 log_print("could not bind for connect: %d", result); in tcp_connect_to_sock()
1170 result = sock->ops->connect(sock, (struct sockaddr *)&saddr, addr_len, in tcp_connect_to_sock()
1172 if (result == -EINPROGRESS) in tcp_connect_to_sock()
1173 result = 0; in tcp_connect_to_sock()
1174 if (result == 0) in tcp_connect_to_sock()
1188 if (result != -EHOSTUNREACH && in tcp_connect_to_sock()
1189 result != -ENETUNREACH && in tcp_connect_to_sock()
1190 result != -ENETDOWN && in tcp_connect_to_sock()
1191 result != -EINVAL && in tcp_connect_to_sock()
1192 result != -EPROTONOSUPPORT) { in tcp_connect_to_sock()
1194 con->retries, result); in tcp_connect_to_sock()
1211 int result = 0; in tcp_create_listen_sock() local
1221 result = sock_create_kern(&init_net, dlm_local_addr[0]->ss_family, in tcp_create_listen_sock()
1223 if (result < 0) { in tcp_create_listen_sock()
1232 result = kernel_setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, in tcp_create_listen_sock()
1235 if (result < 0) { in tcp_create_listen_sock()
1236 log_print("Failed to set SO_REUSEADDR on socket: %d", result); in tcp_create_listen_sock()
1245 result = sock->ops->bind(sock, (struct sockaddr *) saddr, addr_len); in tcp_create_listen_sock()
1246 if (result < 0) { in tcp_create_listen_sock()
1253 result = kernel_setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, in tcp_create_listen_sock()
1255 if (result < 0) { in tcp_create_listen_sock()
1256 log_print("Set keepalive failed: %d", result); in tcp_create_listen_sock()
1259 result = sock->ops->listen(sock, 5); in tcp_create_listen_sock()
1260 if (result < 0) { in tcp_create_listen_sock()
1293 int result = -EINVAL; in sctp_listen_for_all() local
1303 result = sock_create_kern(&init_net, dlm_local_addr[0]->ss_family, in sctp_listen_for_all()
1305 if (result < 0) { in sctp_listen_for_all()
1310 result = kernel_setsockopt(sock, SOL_SOCKET, SO_RCVBUFFORCE, in sctp_listen_for_all()
1312 if (result) in sctp_listen_for_all()
1313 log_print("Error increasing buffer space on socket %d", result); in sctp_listen_for_all()
1315 result = kernel_setsockopt(sock, SOL_SCTP, SCTP_NODELAY, (char *)&one, in sctp_listen_for_all()
1317 if (result < 0) in sctp_listen_for_all()
1318 log_print("Could not set SCTP NODELAY error %d\n", result); in sctp_listen_for_all()
1334 result = sock->ops->listen(sock, 5); in sctp_listen_for_all()
1335 if (result < 0) { in sctp_listen_for_all()
1346 return result; in sctp_listen_for_all()
1353 int result = -EINVAL; in tcp_listen_for_all() local
1370 result = 0; in tcp_listen_for_all()
1373 result = -EADDRINUSE; in tcp_listen_for_all()
1376 return result; in tcp_listen_for_all()