Lines Matching defs:ap
352 register struct tftphdr *ap; /* ack packet */
359 ap = (struct tftphdr *)ackbuf;
386 ap->th_opcode = ntohs((u_short)ap->th_opcode);
387 ap->th_block = ntohs((u_short)ap->th_block);
389 if (ap->th_opcode == ERROR)
392 if (ap->th_opcode == ACK) {
393 if (ap->th_block == block) {
399 if (ap->th_block == (block -1)) {
423 register struct tftphdr *ap; /* ack buffer */
429 ap = (struct tftphdr *)ackbuf;
432 ap->th_opcode = htons((u_short)ACK);
433 ap->th_block = htons((u_short)block);
477 ap->th_opcode = htons((u_short)ACK); /* send the "final" ack */
478 ap->th_block = htons((u_short)(block));