Searched refs:ackbuf (Results 1 – 2 of 2) sorted by relevance
/external/iputils/ |
D | tftpd.c | 85 char ackbuf[PKTSIZE]; variable 359 ap = (struct tftphdr *)ackbuf; in sendfile() 380 n = recv(peer, ackbuf, sizeof (ackbuf), 0); in sendfile() 429 ap = (struct tftphdr *)ackbuf; in recvfile() 437 if (send(peer, ackbuf, 4, confirmed) != 4) { in recvfile() 479 (void) send(peer, ackbuf, 4, confirmed); in recvfile() 488 (void) send(peer, ackbuf, 4, 0); /* resend final ack */ in recvfile()
|
/external/curl/tests/server/ |
D | tftpd.c | 195 static tftphdr_storage_t ackbuf; variable 1238 struct tftphdr * const sap = &ackbuf.hdr; /* ack buffer */ in sendtftp() 1272 n = sread(peer, &ackbuf.storage[0], sizeof(ackbuf.storage)); in sendtftp() 1322 rap = &ackbuf.hdr; in recvtftp() 1332 if(swrite(peer, &ackbuf.storage[0], 4) != 4) { in recvtftp() 1380 (void) swrite(peer, &ackbuf.storage[0], 4); in recvtftp() 1395 (void) swrite(peer, &ackbuf.storage[0], 4); /* resend final ack */ in recvtftp()
|