Searched refs:statsb (Results 1 – 1 of 1) sorted by relevance
1315 struct statsblob *statsb; in FreeBSD_stats_print() local1327 statsb = malloc(sockoptlen); in FreeBSD_stats_print()1328 if (statsb == NULL) in FreeBSD_stats_print()1330 error = getsockopt(s, IPPROTO_TCP, TCP_STATS, statsb, &sockoptlen); in FreeBSD_stats_print()1332 if (errno == EOVERFLOW && statsb->cursz > sockoptlen) { in FreeBSD_stats_print()1334 sockoptlen = statsb->cursz; in FreeBSD_stats_print()1335 statsb = realloc(statsb, sockoptlen); in FreeBSD_stats_print()1336 if (statsb == NULL) in FreeBSD_stats_print()1339 statsb, &sockoptlen); in FreeBSD_stats_print()1346 error = stats_blob_tostr(statsb, sb, SB_STRFMT_JSON, SB_TOSTR_META); in FreeBSD_stats_print()