Lines Matching refs:ackbuf

104 static tftpbuf			ackbuf;  variable
1040 n = recv(peer, &ackbuf, sizeof (ackbuf), 0); in tftpd_sendfile()
1053 ackbuf.tb_hdr.th_opcode = in tftpd_sendfile()
1054 ntohs((ushort_t)ackbuf.tb_hdr.th_opcode); in tftpd_sendfile()
1055 ackbuf.tb_hdr.th_block = in tftpd_sendfile()
1056 ntohs((ushort_t)ackbuf.tb_hdr.th_block); in tftpd_sendfile()
1058 if (ackbuf.tb_hdr.th_opcode == ERROR) { in tftpd_sendfile()
1062 ackbuf.tb_hdr.th_code); in tftpd_sendfile()
1066 ackbuf.tb_hdr.th_msg); in tftpd_sendfile()
1072 if (ackbuf.tb_hdr.th_opcode == ACK) { in tftpd_sendfile()
1076 ackbuf.tb_hdr.th_block); in tftpd_sendfile()
1077 if (ackbuf.tb_hdr.th_block == 0) in tftpd_sendfile()
1118 n = recv(peer, &ackbuf, sizeof (ackbuf), 0); in tftpd_sendfile()
1131 ackbuf.tb_hdr.th_opcode = in tftpd_sendfile()
1132 ntohs((ushort_t)ackbuf.tb_hdr.th_opcode); in tftpd_sendfile()
1133 ackbuf.tb_hdr.th_block = in tftpd_sendfile()
1134 ntohs((ushort_t)ackbuf.tb_hdr.th_block); in tftpd_sendfile()
1136 if (ackbuf.tb_hdr.th_opcode == ERROR) { in tftpd_sendfile()
1140 ackbuf.tb_hdr.th_code); in tftpd_sendfile()
1144 ackbuf.tb_hdr.th_msg); in tftpd_sendfile()
1150 if (ackbuf.tb_hdr.th_opcode == ACK) { in tftpd_sendfile()
1154 ackbuf.tb_hdr.th_block); in tftpd_sendfile()
1155 if (ackbuf.tb_hdr.th_block == block) { in tftpd_sendfile()
1193 ap = &ackbuf.tb_hdr; in tftpd_recvfile()
1203 (void) memcpy(&ackbuf, &oackbuf, oacklen); in tftpd_recvfile()
1221 if (sendto(peer, &ackbuf, acklen, 0, (struct sockaddr *)&from, in tftpd_recvfile()
1309 if (sendto(peer, &ackbuf, 4, 0, (struct sockaddr *)&from, in tftpd_recvfile()
1329 if (sendto(peer, &ackbuf, 4, 0, (struct sockaddr *)&from, in tftpd_recvfile()