Searched refs:th_block (Results 1 – 6 of 6) sorted by relevance
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | tftp.c | 156 dp->th_block = htons((ushort_t)block); in tftp_sendfile() 212 ap->th_block = ntohs(ap->th_block); in tftp_sendfile() 213 if (ap->th_block == block) { in tftp_sendfile() 279 ap->th_block = htons((ushort_t)(block)); in tftp_recvfile() 340 ap->th_block = htons(0); in tftp_recvfile() 347 dp->th_block = ntohs(dp->th_block); in tftp_recvfile() 348 if (dp->th_block == block) { in tftp_recvfile() 364 if (dp->th_block == (block-1)) { in tftp_recvfile() 392 ap->th_block = htons((ushort_t)block); in tftp_recvfile() 688 n - sizeof (tp->th_opcode) - sizeof (tp->th_block)); in tpacket() [all …]
|
/illumos-gate/usr/src/head/arpa/ |
H A D | tftp.h | 59 ushort_t th_block; /* block # */ member 63 #define th_code th_block /* error code overlay on tu_block */ 64 #define th_stuff th_block /* ditto */
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_tftp.c | 93 ntohs(tftp->th_block), blocksize, in interpret_tftp() 98 ntohs(tftp->th_block)); in interpret_tftp() 137 (char *)(uintptr_t)tftp->th_block - dlc_header, 2), in interpret_tftp() 138 "Data block = %d%s", ntohs(tftp->th_block), in interpret_tftp() 147 (char *)(uintptr_t)tftp->th_block - dlc_header, 2), in interpret_tftp() 148 "Acknowledge block = %d", ntohs(tftp->th_block)); in interpret_tftp()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.tftpd.c | 1056 ackbuf.tb_hdr.th_block = in tftpd_sendfile() 1077 ackbuf.tb_hdr.th_block); in tftpd_sendfile() 1078 if (ackbuf.tb_hdr.th_block == 0) in tftpd_sendfile() 1099 dp->th_block = htons((ushort_t)block); in tftpd_sendfile() 1134 ackbuf.tb_hdr.th_block = in tftpd_sendfile() 1155 ackbuf.tb_hdr.th_block); in tftpd_sendfile() 1257 dp->th_block = ntohs((ushort_t)dp->th_block); in tftpd_recvfile() 1274 dp->th_block); in tftpd_recvfile() 1275 if (dp->th_block == block) { in tftpd_recvfile() 1283 if (dp->th_block == (block-1)) in tftpd_recvfile() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | tftp.c | 172 wtail = (char *)&wbuf.t.th_block; in tftp_sendack() 173 wbuf.t.th_block = htons(block); in tftp_sendack() 205 if (htons(t->th_block) < (ushort_t)d->xid) { in recvtftp() 209 tftp_sendack(h, htons(t->th_block)); in recvtftp() 213 if (htons(t->th_block) != (ushort_t)d->xid) { in recvtftp() 397 wtail = (char *)&wbuf.t.th_block; in tftp_getnextblock() 398 wbuf.t.th_block = htons((ushort_t)h->currblock); in tftp_getnextblock() 423 wbuf.t.th_block = htons((ushort_t)h->currblock); in tftp_getnextblock()
|
/illumos-gate/usr/src/boot/include/arpa/ |
H A D | tftp.h | 63 #define th_block th_u.tu_block macro
|