Lines Matching refs:ntohs
368 if (tr->opcode == ntohs (TFTP_ERROR)) in tftp()
371 ntohs (tr->u.err.errcode), in tftp()
376 if (tr->opcode == ntohs (TFTP_OACK)) in tftp()
385 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 2; in tftp()
415 iport, ntohs (tr->udp.src), in tftp()
427 else if (tr->opcode == ntohs (TFTP_DATA)) in tftp()
429 len = ntohs (tr->udp.len) - sizeof (struct udphdr) - 4; in tftp()
435 block = ntohs (tp.u.ack.block = tr->u.data.block); in tftp()
447 oport = ntohs (tr->udp.src); in tftp()
716 int len = ntohs (packet->len); in udpchksum()
932 if (type == AWAIT_TFTP && ntohs (udp->dest) == ival) in await_reply()