Lines Matching refs:ntohs
76 if (ntohs(udp->dest) != ival) in await_tftp()
142 if (tr->opcode == ntohs(TFTP_ERROR)) in tftp_file_read()
145 ntohs(tr->u.err.errcode), in tftp_file_read()
150 if (tr->opcode == ntohs(TFTP_OACK)) { in tftp_file_read()
155 len = ntohs(tr->udp.len) - sizeof(struct udphdr) - 2; in tftp_file_read()
187 iport, ntohs(tr->udp.src), in tftp_file_read()
199 len = ntohs(tr->udp.len) - sizeof(struct udphdr) - 4; in tftp_file_read()
202 block = ntohs(tp.u.ack.block = tr->u.data.block); } in tftp_file_read()
212 oport = ntohs(tr->udp.src); in tftp_file_read()
291 if (tr->opcode == ntohs (TFTP_ERROR)) in buf_fill()
294 ntohs (tr->u.err.errcode), in buf_fill()
299 if (tr->opcode == ntohs (TFTP_OACK)) in buf_fill()
315 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 2; in buf_fill()
357 iport, ntohs (tr->udp.src), in buf_fill()
376 else if (tr->opcode == ntohs (TFTP_DATA)) in buf_fill()
381 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 4; in buf_fill()
392 block = ntohs (tp.u.ack.block = tr->u.data.block); in buf_fill()
404 oport = ntohs (tr->udp.src); in buf_fill()