X-Git-Url: https://git.saurik.com/apple/network_cmds.git/blobdiff_plain/89c4ed635a5aba9241e12e796c7e5025879d0e77..f1dee6ae4f09d06db1e14c8be5091eb1b0d7347b:/netstat.tproj/systm.c diff --git a/netstat.tproj/systm.c b/netstat.tproj/systm.c index a3c170e..3e076ca 100644 --- a/netstat.tproj/systm.c +++ b/netstat.tproj/systm.c @@ -363,7 +363,11 @@ kctl_stats(uint32_t off __unused, char *name, int af __unused) p(kcs_send_list_fail, "\t%llu send list failure%s\n"); p(kcs_enqueue_fail, "\t%llu enqueue failure%s\n"); p(kcs_enqueue_fullsock, "\t%llu packet%s dropped due to full socket buffers\n"); - + p(kcs_bad_kctlref, "\t%llu failure%s with bad kern_ctl_ref\n"); + p(kcs_tbl_size_too_big, "\t%llu register failure%s because of too many kern_ctl_ref\n"); + p(kcs_enqdata_mb_alloc_fail, "\t%llu enqueuedata failure%s because could not allocate a packet\n"); + p(kcs_enqdata_sbappend_fail, "\t%llu enqueuedata failure%s due to full socket buffers\n"); + #undef STATDIFF #undef p #undef p1a @@ -377,7 +381,7 @@ kevt_stats(uint32_t off __unused, char *name, int af __unused) { static struct kevtstat pkevtstat; struct kevtstat kevtstat; - size_t len = sizeof(struct kctlstat); + size_t len = sizeof(struct kevtstat); const char *mibvar = "net.systm.kevt.stats"; if (sysctlbyname(mibvar, &kevtstat, &len, 0, 0) < 0) {