Home
last modified time | relevance | path

Searched refs:ackbuf (Results 1 – 2 of 2) sorted by relevance

/external/iputils/
Dtftpd.c85 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/
Dtftpd.c195 static tftphdr_storage_t ackbuf; variable
1241 struct tftphdr * const sap = &ackbuf.hdr; /* ack buffer */ in sendtftp()
1275 n = sread(peer, &ackbuf.storage[0], sizeof(ackbuf.storage)); in sendtftp()
1325 rap = &ackbuf.hdr; in recvtftp()
1335 if(swrite(peer, &ackbuf.storage[0], 4) != 4) { in recvtftp()
1383 (void) swrite(peer, &ackbuf.storage[0], 4); in recvtftp()
1398 (void) swrite(peer, &ackbuf.storage[0], 4); /* resend final ack */ in recvtftp()