Commit 2786372c authored by Jondy Zhao's avatar Jondy Zhao

ipwin: return local ipv6 route

parent 7beac5ad
...@@ -1384,9 +1384,12 @@ HRESULT SlaposIPv6ShowRoute(int mode) ...@@ -1384,9 +1384,12 @@ HRESULT SlaposIPv6ShowRoute(int mode)
NumEntries = pIpForwardTable2->NumEntries; NumEntries = pIpForwardTable2->NumEntries;
pRow2 = pIpForwardTable2 -> Table; pRow2 = pIpForwardTable2 -> Table;
for (i = 0; i < NumEntries; i++, pRow2 ++) { for (i = 0; i < NumEntries; i++, pRow2 ++) {
// Ignore invalid route // Ignore loopback route
if (pRow2 -> Loopback || IN6_IS_ADDR_UNSPECIFIED(&((pRow2 -> NextHop).Ipv6.sin6_addr))) if (pRow2 -> Loopback)
continue; continue;
// Ignore local route
// if (IN6_IS_ADDR_UNSPECIFIED(&((pRow2 -> NextHop).Ipv6.sin6_addr)))
// continue;
inet_ntop(AF_INET6, inet_ntop(AF_INET6,
(PVOID)(&((pRow2 -> DestinationPrefix).Prefix.Ipv6.sin6_addr)), (PVOID)(&((pRow2 -> DestinationPrefix).Prefix.Ipv6.sin6_addr)),
prefix, prefix,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment