Print this page
11547 Want connstat(1M) command to display per-connection TCP statistics
Portions contributed by: Cody Peter Mello <cody.mello@joyent.com>
Portions contributed by: Ahmed G <ahmedg@delphix.com>
Reviewed by: Jason King <jason.king@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Dan McDonald <danmcd@joyent.com>
@@ -9633,17 +9633,23 @@
if (level != MIB2_TCP) {
if ((mpctl = udp_snmp_get(q, mpctl, legacy_req)) == NULL) {
return (1);
}
+ if (level == MIB2_UDP) {
+ goto done;
}
+ }
if (level != MIB2_UDP) {
if ((mpctl = tcp_snmp_get(q, mpctl, legacy_req)) == NULL) {
return (1);
}
+ if (level == MIB2_TCP) {
+ goto done;
}
+ }
if ((mpctl = ip_snmp_get_mib2_ip_traffic_stats(q, mpctl,
ipst, legacy_req)) == NULL) {
return (1);
}
@@ -9715,10 +9721,11 @@
return (1);
}
if ((mpctl = ip_snmp_get_mib2_ip_dce(q, mpctl, ipst)) == NULL) {
return (1);
}
+done:
freemsg(mpctl);
return (1);
}
/* Get global (legacy) IPv4 statistics */