Lines Matching refs:inf

369 	struct sock_info inf;  in client_fn()  local
375 inf.raddr_len = sizeof(inf.raddr); in client_fn()
376 inf.etime_cnt = 0; in client_fn()
377 inf.timeout = wait_timeout; in client_fn()
378 inf.pmtu_err_cnt = 0; in client_fn()
383 inf.fd = client_connect_send(client_msg, cln_len); in client_fn()
384 if (inf.fd == -1) { in client_fn()
389 if (client_recv(buf, srv_len, &inf)) { in client_fn()
395 if (inf.fd == -1) { in client_fn()
396 inf.fd = client_connect_send(client_msg, cln_len); in client_fn()
397 if (inf.fd == -1) { in client_fn()
402 if (client_recv(buf, srv_len, &inf)) { in client_fn()
412 SAFE_SEND(1, inf.fd, client_msg, cln_len, send_flags); in client_fn()
414 if (client_recv(buf, srv_len, &inf)) { in client_fn()
420 if (inf.fd != -1) in client_fn()
421 SAFE_CLOSE(inf.fd); in client_fn()
548 struct sock_info inf; in server_fn() local
553 inf.fd = (intptr_t) cfd; in server_fn()
554 inf.raddr_len = sizeof(inf.raddr); in server_fn()
555 inf.timeout = wait_timeout; in server_fn()
561 msg.msg_name = &inf.raddr; in server_fn()
565 init_socket_opts(inf.fd); in server_fn()
569 max_msg_len - offset, &inf); in server_fn()
577 tst_res(TFAIL, "recv failed, sock '%d'", inf.fd); in server_fn()
612 SAFE_SEND(1, inf.fd, send_msg, send_msg_len, in server_fn()
618 SAFE_SENDTO(1, inf.fd, send_msg, send_msg_len, in server_fn()
619 send_flags, (struct sockaddr *)&inf.raddr, in server_fn()
620 inf.raddr_len); in server_fn()
625 msg.msg_namelen = inf.raddr_len; in server_fn()
626 SAFE_SENDMSG(send_msg_len, inf.fd, &msg, send_flags); in server_fn()
634 shutdown(inf.fd, SHUT_WR); in server_fn()
639 SAFE_CLOSE(inf.fd); in server_fn()
643 SAFE_CLOSE(inf.fd); in server_fn()