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