Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108985429
D22311.id64165.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
644 B
Referenced Files
None
Subscribers
None
D22311.id64165.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D22311: Fix netstat -gs with ip_mroute module and/or vnet
Attached
Detach File
Event Timeline
Log In to Comment