Home | History | Annotate | Download | only in iputils

Lines Matching refs:rap

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