Lines Matching refs:SWAP16
62 t += SWAP16(*p);
86 p_ARP->frame_type = SWAP16(PROTOCOL_ARP);
87 p_ARP->hard_type = SWAP16(1);
88 p_ARP->prot_type = SWAP16(PROTOCOL_IP);
91 p_ARP->operation = SWAP16(ARP_REQUEST);
124 macHdr->proto_mac = SWAP16(PROTOCOL_IP);
130 ipHdr->ip_len = SWAP16(28 + tftpLength);
132 ipHdr->ip_off = SWAP16(0x4000);
140 ipHdr->ip_sum = SWAP16(IP_checksum((unsigned short*)ipHdr, 20));
146 udpHdr->udp_len = SWAP16(8 + tftpLength);
159 udpHdr->udp_cksum = SWAP16(t_checksum);
217 tftpHeader.block_num = SWAP16(ackBlock);
261 case SWAP16(PROTOCOL_ARP):
263 if (p_ARP->operation == SWAP16(ARP_REPLY)) {
272 } else if (p_ARP->operation == SWAP16(ARP_REQUEST)) {
274 p_ARP->operation = SWAP16(ARP_REPLY);
299 case SWAP16(PROTOCOL_IP):
317 if (tftpHdr->block_num != SWAP16(1))
327 SWAP16(tftpHdr->block_num),
328 SWAP16(udpHdr->udp_len) - 12);
457 localPort = SWAP16(0x8002);
548 serverPort = SWAP16(69);