Lines Matching refs:htons
288 if (arpreply->opcode != htons(ARP_REPLY)) in await_arp()
336 arpreq.hwtype = htons(1); in ip_transmit()
337 arpreq.protocol = htons(IP); in ip_transmit()
340 arpreq.opcode = htons(ARP_REQUEST); in ip_transmit()
369 ip->len = htons(len); in build_ip_hdr()
410 udp->src = htons(srcsock); in build_udp_hdr()
411 udp->dest = htons(destsock); in build_udp_hdr()
412 udp->len = htons(len - sizeof(struct iphdr)); in build_udp_hdr()
464 if (arpreply->opcode != htons(RARP_REPLY)) in await_rarp()
489 rarpreq.hwtype = htons(1); in rarp()
490 rarpreq.protocol = htons(IP); in rarp()
493 rarpreq.opcode = htons(RARP_REQUEST); in rarp()
541 if (udp->dest != htons(BOOTP_CLIENT)) in await_bootp()
611 ip.bp.bp_secs = htons((currticks()-starttime)/TICKS_PER_SEC); in bootp()
638 if (udp->dest != htons(BOOTP_CLIENT)) in await_dhcp()
738 ip.bp.bp_secs = htons((currticks()-starttime)/TICKS_PER_SEC); in dhcp()
933 if (ip->frags & htons(0x3FFF)) { in await_reply()
984 if ((arpreply->opcode == htons(ARP_REQUEST)) && in await_reply()
986 arpreply->opcode = htons(ARP_REPLY); in await_reply()