Lines Matching refs:inf
378 struct sock_info inf;
385 inf.raddr_len = sizeof(inf.raddr);
386 inf.etime_cnt = 0;
387 inf.eshutdown_cnt = 0;
388 inf.timeout = wait_timeout;
389 inf.pmtu_err_cnt = 0;
394 inf.fd = client_connect_send(client_msg, cln_len);
395 if (inf.fd == -1) {
400 if (client_recv(buf, srv_len, &inf)) {
406 if (inf.fd == -1) {
407 inf.fd = client_connect_send(client_msg, cln_len);
408 if (inf.fd == -1) {
413 if (client_recv(buf, srv_len, &inf)) {
423 SAFE_SEND(1, inf.fd, client_msg, cln_len, send_flags);
425 if (client_recv(buf, srv_len, &inf)) {
431 if (inf.fd != -1)
432 SAFE_CLOSE(inf.fd);
547 struct sock_info inf;
552 inf.fd = (intptr_t) cfd;
553 inf.raddr_len = sizeof(inf.raddr);
554 inf.timeout = wait_timeout;
560 msg.msg_name = &inf.raddr;
564 init_socket_opts(inf.fd);
568 max_msg_len - offset, &inf);
576 tst_res(TFAIL, "recv failed, sock '%d'", inf.fd);
611 SAFE_SEND(1, inf.fd, send_msg, send_msg_len,
617 SAFE_SENDTO(1, inf.fd, send_msg, send_msg_len,
618 send_flags, (struct sockaddr *)&inf.raddr,
619 inf.raddr_len);
624 msg.msg_namelen = inf.raddr_len;
625 SAFE_SENDMSG(send_msg_len, inf.fd, &msg, send_flags);
633 shutdown(inf.fd, SHUT_WR);
638 SAFE_CLOSE(inf.fd);
642 SAFE_CLOSE(inf.fd);