[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] Compact reported IPv[4|6] address xenstore values



Pass the index of IPv[4|6] into the FrontendDumpIPv[4|6]Address call, to
zero-index the IP address dumps to each of the specific protocols. Otherwise,
an adapter could report uncontiguous indexes across IPv4 and IPv6.
This also avoids cases where the address table contains non-IPv[4|6] addresses,
skipping indexes into the xenstore data.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 src/xenvif/frontend.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xenvif/frontend.c b/src/xenvif/frontend.c
index b772349..bece661 100644
--- a/src/xenvif/frontend.c
+++ b/src/xenvif/frontend.c
@@ -907,7 +907,7 @@ FrontendDumpAddressTable(
         case AF_INET: {
             status = FrontendDumpIPv4Address(Frontend,
                                              Transaction,
-                                             Index,
+                                             IpVersion4Count,
                                              Entry);
             if (!NT_SUCCESS(status))
                 goto fail4;
@@ -918,7 +918,7 @@ FrontendDumpAddressTable(
         case AF_INET6: {
             status = FrontendDumpIPv6Address(Frontend,
                                              Transaction,
-                                             Index,
+                                             IpVersion6Count,
                                              Entry);
             if (!NT_SUCCESS(status))
                 goto fail4;
-- 
2.51.2.windows.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.