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

/freebsd-current/include/arpa/
H A Dtftp.h53 unsigned short th_opcode; /* packet type */ member in struct:tftphdr
/freebsd-current/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);
190 tp->th_opcode = htons((u_short)WRQ);
238 tp->th_opcode = htons((u_short)RRQ);
291 tp->th_opcode = htons((u_short)OACK);
331 tp->th_opcode = htons((u_short)ACK);
362 pkt->th_opcode = htons((u_short)DATA);
418 pkt->th_opcode = ntohs((u_short)pkt->th_opcode);
[all...]
H A Dtftp-transfer.c143 if (rp->th_opcode == ACK) {
335 if (rp->th_opcode == DATA) {
380 packettype(rp->th_opcode));
440 rp->th_opcode == DATA && /* and got a data block */
H A Dtftpd.c397 tp->th_opcode = ntohs(tp->th_opcode);
398 if (tp->th_opcode == RRQ) {
406 } else if (tp->th_opcode == WRQ) {
578 if (rp->th_opcode != ACK) {
582 packettype(rp->th_opcode));
/freebsd-current/usr.bin/tftp/
H A Dtftp.c128 if (rp->th_opcode == ERROR) {
137 if (rp->th_opcode == OACK) {
228 if (rp->th_opcode == ERROR) {
242 if (rp->th_opcode == OACK) {
/freebsd-current/stand/libsa/
H A Dtftp.c155 wbuf.t.th_opcode = htons((u_short)ERROR);
175 wbuf.t.th_opcode = htons((u_short)ACK);
205 extra->rtype = ntohs(t->th_opcode);
206 switch (ntohs(t->th_opcode)) {
275 tftp_oack_len = len - sizeof(t->th_opcode);
288 printf("tftp type %d not handled\n", ntohs(t->th_opcode));
321 wbuf.t.th_opcode = htons((u_short)RRQ);
406 wbuf.t.th_opcode = htons((u_short)ACK);
/freebsd-current/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 206 milliseconds