Home
last modified time | relevance | path

Searched refs:th_block (Results 1 – 4 of 4) sorted by relevance

/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_tftp.c71 ntohs(tftp->th_block), in interpret_tftp()
78 ntohs(tftp->th_block)); in interpret_tftp()
115 get_line((char *)(uintptr_t)tftp->th_block - in interpret_tftp()
117 ntohs(tftp->th_block), in interpret_tftp()
126 (void) sprintf(get_line((char *)(uintptr_t)tftp->th_block - in interpret_tftp()
128 ntohs(tftp->th_block)); in interpret_tftp()
/titanic_44/usr/src/head/arpa/
H A Dtftp.h61 ushort_t th_block; /* block # */ member
65 #define th_code th_block /* error code overlay on tu_block */
66 #define th_stuff th_block /* ditto */
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftp.c156 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()
278 ap->th_block = htons((ushort_t)(block)); in tftp_recvfile()
339 ap->th_block = htons(0); in tftp_recvfile()
346 dp->th_block = ntohs(dp->th_block); in tftp_recvfile()
347 if (dp->th_block == block) { in tftp_recvfile()
363 if (dp->th_block == (block-1)) { in tftp_recvfile()
391 ap->th_block = htons((ushort_t)block); in tftp_recvfile()
685 (void) printf("<block=%d, %d bytes>\n", ntohs(tp->th_block), in tpacket()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.tftpd.c1055 ackbuf.tb_hdr.th_block = in tftpd_sendfile()
1056 ntohs((ushort_t)ackbuf.tb_hdr.th_block); in tftpd_sendfile()
1076 ackbuf.tb_hdr.th_block); in tftpd_sendfile()
1077 if (ackbuf.tb_hdr.th_block == 0) in tftpd_sendfile()
1098 dp->th_block = htons((ushort_t)block); in tftpd_sendfile()
1133 ackbuf.tb_hdr.th_block = in tftpd_sendfile()
1134 ntohs((ushort_t)ackbuf.tb_hdr.th_block); in tftpd_sendfile()
1154 ackbuf.tb_hdr.th_block); in tftpd_sendfile()
1155 if (ackbuf.tb_hdr.th_block == block) { in tftpd_sendfile()
1199 ap->th_block = htons((ushort_t)block); in tftpd_recvfile()
[all …]