Lines Matching refs:rap
587 struct icmp_ra *rap = (struct icmp_ra *) ALLIGN(outpack); in advertise() local
597 rap->icmp_type = ICMP_ROUTER_ADVERTISEMENT; in advertise()
598 rap->icmp_code = 0; in advertise()
599 rap->icmp_cksum = 0; in advertise()
600 rap->icmp_num_addrs = 0; in advertise()
601 rap->icmp_wpa = 2; in advertise()
602 rap->icmp_lifetime = htons(lft); in advertise()
613 packetlen += rap->icmp_wpa * 4; in advertise()
614 rap->icmp_num_addrs++; in advertise()
617 rap->icmp_cksum = in_cksum( (u_short *)rap, packetlen ); in advertise()
741 struct icmp_ra *rap = (struct icmp_ra *)ALLIGN(icp); in pr_pack() local
754 pr_type((int)rap->icmp_type), in pr_pack()
758 if (rap->icmp_code != 0) { in pr_pack()
761 pr_type((int)rap->icmp_type), in pr_pack()
763 rap->icmp_code); in pr_pack()
766 if (rap->icmp_num_addrs < 1) { in pr_pack()
769 pr_type((int)rap->icmp_type), in pr_pack()
773 if (rap->icmp_wpa < 2) { in pr_pack()
776 pr_type((int)rap->icmp_type), in pr_pack()
778 rap->icmp_wpa); in pr_pack()
782 8 + rap->icmp_num_addrs * rap->icmp_wpa * 4) { in pr_pack()
785 pr_type((int)rap->icmp_type), in pr_pack()
788 8 + rap->icmp_num_addrs * rap->icmp_wpa * 4); in pr_pack()
794 pr_type((int)rap->icmp_type), in pr_pack()
796 ntohs(rap->icmp_lifetime)); in pr_pack()
801 for (i = 0; (unsigned)i < rap->icmp_num_addrs; i++) { in pr_pack()
805 i * rap->icmp_wpa * 4); in pr_pack()
814 ntohs(rap->icmp_lifetime)); in pr_pack()