Page MenuHomeFreeBSD

IPv4 multicast: fix netstat -g
ClosedPublic

Authored by karels on Mar 21 2022, 8:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 6, 9:01 PM
Unknown Object (File)
Sat, Apr 6, 2:00 AM
Unknown Object (File)
Fri, Apr 5, 8:07 AM
Unknown Object (File)
Fri, Mar 29, 3:03 PM
Unknown Object (File)
Mar 24 2024, 1:17 PM
Unknown Object (File)
Feb 10 2024, 10:09 AM
Unknown Object (File)
Feb 1 2024, 2:26 PM
Unknown Object (File)
Dec 23 2023, 5:00 AM

Details

Summary

The vif structure includes fields at the end which are #ifdef KERNEL,
causing a mismatch between the structure sizes between kernel and
user level. netstat -g failed with an ENOMEM on the sysctl to fetch
the vif table. Change the vif sysctl code in ip_mroute to copy out
only the user-level-visible portion of each table entry.

Test Plan

tested by running netstat -g

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44848
Build 41736: arc lint + arc unit