Searched refs:th_opcode (Results 1 - 9 of 9) sorted by relevance

/freebsd-10.2-release/contrib/tcpdump/
H A Dtftp.h56 unsigned short th_opcode; /* packet type */ member in struct:tftphdr
H A Dprint-tftp.c89 TCHECK(tp->th_opcode);
90 opcode = EXTRACT_16BITS(&tp->th_opcode);
/freebsd-10.2-release/include/arpa/
H A Dtftp.h54 unsigned short th_opcode; /* packet type */ member in struct:tftphdr
/freebsd-10.2-release/libexec/tftpd/
H A Dtftp-io.c115 (pkt))->th_opcode)), block, i);
120 packettype(ntohs(((struct tftphdr *)(pkt))->th_opcode)),
150 tp->th_opcode = htons((u_short)ERROR);
192 tp->th_opcode = htons((u_short)WRQ);
240 tp->th_opcode = htons((u_short)RRQ);
293 tp->th_opcode = htons((u_short)OACK);
334 tp->th_opcode = htons((u_short)ACK);
365 pkt->th_opcode = htons((u_short)DATA);
447 pkt->th_opcode = ntohs((u_short)pkt->th_opcode);
[all...]
H A Dtftp-transfer.c112 if (rp->th_opcode == ACK) {
242 if (rp->th_opcode == DATA) {
264 packettype(rp->th_opcode));
315 rp->th_opcode == DATA && /* and got a data block */
H A Dtftpd.c408 tp->th_opcode = ntohs(tp->th_opcode);
409 if (tp->th_opcode == RRQ) {
418 if (tp->th_opcode == WRQ) {
586 if (rp->th_opcode != ACK) {
590 packettype(rp->th_opcode));
/freebsd-10.2-release/usr.bin/tftp/
H A Dtftp.c132 if (rp->th_opcode == ERROR) {
141 if (rp->th_opcode == OACK) {
231 if (rp->th_opcode == ERROR) {
245 if (rp->th_opcode == OACK) {
/freebsd-10.2-release/lib/libstand/
H A Dtftp.c155 wbuf.t.th_opcode = htons((u_short) ERROR);
175 wbuf.t.th_opcode = htons((u_short) ACK);
198 *rtype = ntohs(t->th_opcode);
199 switch (ntohs(t->th_opcode)) {
251 tftp_oack_len = len - sizeof(t->th_opcode);
261 printf("tftp type %d not handled\n", ntohs(t->th_opcode));
292 wbuf.t.th_opcode = htons((u_short) RRQ);
367 wbuf.t.th_opcode = htons((u_short) ACK);
/freebsd-10.2-release/contrib/pf/tftp-proxy/
H A Dtftp-proxy.c205 if (!(ntohs(tp->th_opcode) == RRQ || ntohs(tp->th_opcode) == WRQ)) {
269 opcode(ntohs(tp->th_opcode)),

Completed in 333 milliseconds