Table of Contents

Network Interface API Cleanup

The goal of this undertaking is to provide a clean separation between the network interfaces used by kernel and userland. This was attempted before but applications still include non-public interfaces.

The usage of the current network interfaces is being studied and this page will be updated as details are uncovered.

More detailed info is available in the CleanupOfNetworkInterfaceApisProposal.

What will be done

Status

July 1st

July 6th

July 7th

July 9th Still working on removing kvm from netstat. Currently most interface information can be retrieved without any references to internal data structures. Interface information is now being obtained through sysctl with the {CTL_NET, PF_ROUTE, 0, 0, NET_RT_IFLIST} mib. However, two pieces of into that is not readily available is:

July 11th At this point all interface information is obtained using sysctl. Other parts of netstat that already use either sysctl or ioctl include: