Lines Matching refs:htons
71 if (header->hardware_format != htons(ARPHRD_ETHER)
72 || header->protocol_format != htons(ETHERTYPE_IP)
79 || (header->opcode != htons(ARPOP_REQUEST)
80 && header->opcode != htons(ARPOP_REPLY))) {
85 if (header->opcode == htons(ARPOP_REQUEST)
92 if (header->opcode == htons(ARPOP_REPLY)
105 if (header->opcode == htons(ARPOP_REQUEST)) {
170 header.hardware_format = htons(ARPHRD_ETHER);
171 header.protocol_format = htons(ETHERTYPE_IP);
174 header.opcode = htons(opcode);