Lines Matching refs:htons
211 ip->len = htons (len); in udp_transmit()
220 udp->src = htons (srcsock); in udp_transmit()
221 udp->dest = htons (destsock); in udp_transmit()
222 udp->len = htons (len - sizeof (struct iphdr)); in udp_transmit()
224 udp->chksum = htons (udpchksum (ip)); in udp_transmit()
260 arpreq.hwtype = htons (1); in udp_transmit()
261 arpreq.protocol = htons (IP); in udp_transmit()
264 arpreq.opcode = htons (ARP_REQUEST); in udp_transmit()
320 tp.opcode = htons (TFTP_RRQ); in tftp()
407 tp.opcode = htons (TFTP_ERROR); in tftp()
443 tp.u.ack.block = htons (block = prevblock); in tftp()
446 tp.opcode = htons (TFTP_ACK); in tftp()
493 rarpreq.hwtype = htons (1); in rarp()
494 rarpreq.protocol = htons (IP); in rarp()
497 rarpreq.opcode = htons (RARP_REQUEST); in rarp()
676 ip.bp.bp_secs = htons ((currticks () - starttime) / TICKS_PER_SEC); in bootp()
780 if (arpreply->opcode == htons (ARP_REPLY) in await_reply()
793 if (arpreply->opcode == htons (ARP_REQUEST) in await_reply()
796 arpreply->opcode = htons (ARP_REPLY); in await_reply()
829 if (arpreply->opcode == htons (RARP_REPLY) in await_reply()
864 if (ip->frags & htons(0x3FFF)) in await_reply()
890 && udp->dest == htons (BOOTP_CLIENT) in await_reply()