Lines Matching defs:packlen
1378 size_t packlen, lladdroptlen = 0;
1396 packlen = sizeof(struct nd_router_advert);
1405 packlen += lladdroptlen;
1408 packlen += sizeof(struct nd_opt_prefix_info) * rai->rai_pfxs;
1410 packlen += sizeof(struct nd_opt_mtu);
1412 packlen += sizeof(struct nd_opt_pref64);
1415 packlen += sizeof(struct nd_opt_route_info) +
1421 packlen += sizeof(struct nd_opt_rdnss);
1423 packlen += sizeof(rdna->ra_dns);
1428 packlen += sizeof(struct nd_opt_dnssl);
1437 packlen += len;
1440 if ((buf = malloc(packlen)) == NULL) {
1446 memset(buf, 0, packlen);
1450 /* XXX: what if packlen > 576? */
1451 rai->rai_ra_datalen = packlen;