Lines Matching refs:htons
494 ui->ui_len = htons((u_short)pkt.len + sizeof (struct udphdr));
498 ui->ui_sport = htons(KDP_REMOTE_PORT);
508 ip->ip_len = htons(sizeof (struct udpiphdr) + pkt.len);
510 ip->ip_id = htons(ip_id++);
514 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl));
527 eh->ether_type = htons(ETHERTYPE_IP);
565 ui->ui_len = htons((u_short)pkt.len + sizeof (struct udphdr));
568 ui->ui_sport = htons(KDP_REMOTE_PORT);
578 ip->ip_len = htons(sizeof (struct udpiphdr) + pkt.len);
580 ip->ip_id = htons(ip_id++);
584 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl));
596 eh->ether_type = htons(ETHERTYPE_IP);
813 ea->arp_op = htons(ARPOP_REPLY);
814 ea->arp_pro = htons(ETHERTYPE_IP);
817 eh->ether_type = htons(ETHERTYPE_ARP);
937 eh->ether_type = htons(ETHERTYPE_ARP);
942 ea->arp_pro = htons(ETHERTYPE_IP);
945 ea->arp_hrd = htons(ARPHRD_ETHER);
946 ea->arp_op = htons(ARPOP_REQUEST);
1442 ui->ui_len = htons((u_short)pkt.len + sizeof (struct udphdr));
1446 ui->ui_sport = htons(panicd_port);
1447 ui->ui_dport = ((request == KDP_WRQ) ? htons(panicd_port) : last_panic_port);
1456 ip->ip_len = htons(sizeof (struct udpiphdr) + pkt.len);
1458 ip->ip_id = htons(ip_id++);
1462 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl));
1472 coreh->th_opcode = htons((u_short)request);
1502 eh->ether_type = htons(ETHERTYPE_IP);
1646 th->th_opcode = htons(KDP_ACK);