Page MenuHomeFreeBSD

D22311.id64165.diff
No OneTemporary

D22311.id64165.diff

Index: usr.bin/netstat/mroute.c
===================================================================
--- usr.bin/netstat/mroute.c
+++ usr.bin/netstat/mroute.c
@@ -409,14 +409,12 @@
mstaddr = nl[N_MRTSTAT].n_value;
- if (mstaddr == 0) {
- fprintf(stderr, "No IPv4 MROUTING kernel support.\n");
- return;
- }
-
if (fetch_stats("net.inet.ip.mrtstat", mstaddr, &mrtstat,
- sizeof(mrtstat), kread_counters) != 0)
+ sizeof(mrtstat), kread_counters) != 0) {
+ if (errno == ENOENT || (!live && mstaddr == 0))
+ fprintf(stderr, "No IPv4 MROUTING kernel support.\n");
return;
+ }
xo_emit("{T:IPv4 multicast forwarding}:\n");

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 31, 7:36 AM (13 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16357608
Default Alt Text
D22311.id64165.diff (644 B)

Event Timeline