Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| anderspersson:cleanupofnetworkiterfaceapis [2005/07/02 09:02] – AndersPersson | anderspersson:cleanupofnetworkiterfaceapis [2022/10/05 23:09] (current) – Chase page rename KubilayKocak | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| The usage of the current network interfaces is being studied and this page will be updated as details are uncovered. | 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|CleanupOfNetworkInterfaceApisProposal]]. | + | More detailed info is available in the [[AndersPersson/ |
| ==== What will be done ==== | ==== What will be done ==== | ||
| Line 15: | Line 15: | ||
| * Created a new branch in perforce | * Created a new branch in perforce | ||
| * Combing through eariler work to find relevant parts | * Combing through eariler work to find relevant parts | ||
| + | //July 6< | ||
| + | * Have looked through how netstat retrieves information about interfaces and routes (which is rather non-uniform, | ||
| + | * Currently exploring the possibility of only relying on sysctl to obtain the required information | ||
| + | //July 7< | ||
| + | * Started removing kvm code from netstat. Using the ' | ||
| + | //July 9< | ||
| + | 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: | ||
| + | * Watchdog timer | ||
| + | * Per address statistics (as provided by struct if_data) | ||
| + | //July 11< | ||
| + | At this point all interface information is obtained using sysctl. Other parts of netstat that already use either sysctl or ioctl include: | ||
| + | * IPv4 Multicast routing informaiton | ||
| + | * Mbuf info However, IPv6 multicast routing, IPsec and Apple Talk information all rely on kvm at this point. | ||
| + | |||
| + | ---- | ||
| + | |||
| + | {{tag> | ||