Lines Matching refs:len
133 size_t len;
137 len = 0;
139 len += strlen(ifi->ifi_ifname) + 1;
142 syslog(LOG_DEBUG, "<%s> len = %zu", __func__, len);
144 p = malloc(len);
147 memset(p, 0, len);
150 if (len > 0)
167 size_t len;
184 len = cm_str2bin(p, ifi, sizeof(*ifi));
186 syslog(LOG_DEBUG, "<%s> len = %zu", __func__, len);
188 if (len == 0)
192 cp->cp_val_len = len;
203 size_t len;
225 len = cm_str2bin(p, rai, sizeof(*rai));
227 syslog(LOG_DEBUG, "<%s> len = %zu", __func__, len);
229 if (len == 0)
233 cp->cp_val_len = len;
245 size_t len;
271 len = cm_str2bin(p, rtimer, sizeof(*rtimer));
273 syslog(LOG_DEBUG, "<%s> len = %zu", __func__, len);
275 if (len == 0)
279 cp->cp_val_len = len;
291 size_t len;
295 len = 0;
312 len += sizeof(*rti);
315 syslog(LOG_DEBUG, "<%s> len = %zu", __func__, len);
317 p = malloc(len);
320 memset(p, 0, len);
323 if (len > 0)
340 size_t len;
344 len = 0;
361 len += sizeof(*pfx);
364 syslog(LOG_DEBUG, "<%s> len = %zu", __func__, len);
366 p = malloc(len);
369 memset(p, 0, len);
372 if (len > 0)
390 size_t len;
396 len = 0;
413 len = sizeof(*rdn_cnt);
415 len += sizeof(*rdn);
416 len += sizeof(*rda_cnt);
418 len += sizeof(*rda);
422 syslog(LOG_DEBUG, "<%s> len = %zu", __func__, len);
424 p = malloc(len);
427 memset(p, 0, len);
459 size_t len;
465 len = 0;
482 len = sizeof(*dns_cnt);
484 len += sizeof(*dns);
485 len += sizeof(*dna_cnt);
487 len += sizeof(*dna);
491 syslog(LOG_DEBUG, "<%s> len = %zu", __func__, len);
493 p = malloc(len);
496 memset(p, 0, len);