Lines Matching refs:ad
78 struct icmp_ad ad; member
130 ntohs(p->ad.icmp_ad_life)); in trace_rdisc()
134 wp = &p->ad.icmp_ad_info[0].icmp_ad_addr; in trace_rdisc()
135 lim = &wp[(len - sizeof (p->ad)) / sizeof (*wp)]; in trace_rdisc()
136 for (i = 0; i < p->ad.icmp_ad_num && wp <= lim; i++) { in trace_rdisc()
139 wp += p->ad.icmp_ad_asize; in trace_rdisc()
1102 (void) memset(&u, 0, sizeof (u.ad)); in send_adv()
1104 u.ad.icmp_type = ICMP_ROUTERADVERT; in send_adv()
1105 u.ad.icmp_code = ICMP_ROUTERADVERT_COMMON; in send_adv()
1106 u.ad.icmp_ad_num = 1; in send_adv()
1107 u.ad.icmp_ad_asize = sizeof (u.ad.icmp_ad_info[0])/4; in send_adv()
1109 u.ad.icmp_ad_life = (stopint || !should_supply(ifp) || in send_adv()
1114 u.ad.icmp_ad_info[0].icmp_ad_pref = htonl(ifp->int_rdisc_pref); in send_adv()
1116 u.ad.icmp_ad_info[0].icmp_ad_addr = ifp->int_addr; in send_adv()
1118 u.ad.icmp_cksum = in_cksum((uint16_t *)&u.ad, sizeof (u.ad)); in send_adv()
1120 send_rdisc(&u, sizeof (u.ad), ifp, dst, type); in send_adv()
1339 if (p->ad.icmp_ad_asize*2*sizeof (wp[0]) < in read_d()
1340 sizeof (p->ad.icmp_ad_info[0])) { in read_d()
1343 p->ad.icmp_ad_asize); in read_d()
1346 if (p->ad.icmp_ad_num == 0) { in read_d()
1350 if (cc < (sizeof (p->ad) - in read_d()
1351 sizeof (p->ad.icmp_ad_info) + in read_d()
1352 (p->ad.icmp_ad_num * in read_d()
1353 sizeof (p->ad.icmp_ad_info[0])))) { in read_d()
1356 " %d", cc, p->ad.icmp_ad_num); in read_d()
1361 wp = &p->ad.icmp_ad_info[0].icmp_ad_addr; in read_d()
1362 for (n = 0; n < p->ad.icmp_ad_num; n++) { in read_d()
1365 ntohs(p->ad.icmp_ad_life), ifp); in read_d()
1366 wp += p->ad.icmp_ad_asize; in read_d()