Windows上的路由信息是否有C/C++ API?
发布时间:2020-09-21 18:54:55 所属栏目:Windows 来源:互联网
导读:是否有 Windows或cygwin C/C++ API来收集Windows上的route命令提供的信息?我对路线指标特别感兴趣.这是一个路由输出的例子,IP已被改变以保护无辜者. $route PRINT -4===========================================================================Interface
是否有 Windows或cygwin C/C++ API来收集Windows上的route命令提供的信息?我对路线指标特别感兴趣.这是一个路由输出的例子,IP已被改变以保护无辜者. $route PRINT -4 =========================================================================== Interface List 11...64 31 50 3b ba 96 ......Broadcom NetXtreme Gigabit Ethernet 17...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1 18...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8 1...........................Software Loopback Interface 1 12...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter 10...00 00 00 00 00 00 00 e0 Microsoft Teredo Tunneling Adapter 13...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2 14...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter 15...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3 =========================================================================== IPv4 Route Table =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 99.10.168.1 99.10.170.11 10 99.10.168.0 255.255.248.0 On-link 99.10.170.11 266 99.10.170.11 255.255.255.255 On-link 99.10.170.11 266 99.10.175.255 255.255.255.255 On-link 99.10.170.11 266 127.0.0.0 255.0.0.0 On-link 127.0.0.1 306 127.0.0.1 255.255.255.255 On-link 127.0.0.1 306 127.255.255.255 255.255.255.255 On-link 127.0.0.1 306您应该使用 GetIpForwardTable ,因为路由表管理器API仅适用于Windows的服务器版本. (编辑:岳阳站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Windows – 如何将多个文件名传递给上下文菜单Shell命令?
- .net – Windows Azure Web角色缓存(预览)“挂起”使模拟器
- Windows Server 2016-存储新增功能
- Windows系统下latex:texlive2018和texstudio
- xaml – 如何在关闭时为SettingsFlyout设置动画
- 我在哪里报告Windows核心库问题?
- windows-phone-7 – Caliburn Micro中的墓碑
- 在Windows上使用clang编译c 11程序时出错
- Windows Phone 8.1 cordova下拉列表无法正常工作
- 使用autohotkey定制windows 10 虚拟桌面的快捷键
推荐文章
站长推荐
热点阅读