Lines Matching refs:packlen
1318 size_t packlen, lladdroptlen = 0;
1335 packlen = sizeof(struct nd_router_advert);
1344 packlen += lladdroptlen;
1347 packlen += sizeof(struct nd_opt_prefix_info) * rai->rai_pfxs;
1349 packlen += sizeof(struct nd_opt_mtu);
1352 packlen += sizeof(struct nd_opt_route_info) +
1358 packlen += sizeof(struct nd_opt_rdnss);
1360 packlen += sizeof(rdna->ra_dns);
1365 packlen += sizeof(struct nd_opt_dnssl);
1374 packlen += len;
1377 if ((buf = malloc(packlen)) == NULL) {
1383 memset(buf, 0, packlen);
1387 /* XXX: what if packlen > 576? */
1388 rai->rai_ra_datalen = packlen;