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

[Xen-changelog] Message unpacking fix.



ChangeSet 1.1327.2.5, 2005/04/22 17:10:34+01:00, mjw@xxxxxxxxxxxxxxxxxxx

        Message unpacking fix.
        Signed-off-by: Mike Wray <mike.wray@xxxxxx>



 netif.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


diff -Nru a/tools/python/xen/xend/server/netif.py 
b/tools/python/xen/xend/server/netif.py
--- a/tools/python/xen/xend/server/netif.py     2005-05-13 16:03:57 -04:00
+++ b/tools/python/xen/xend/server/netif.py     2005-05-13 16:03:57 -04:00
@@ -457,13 +457,14 @@
         return resp
 
     def recv_fe_interface_status(self, msg):
+        val = unpackMsg('netif_fe_interface_status_t', msg)
         vif = val['handle']
         dev = self.findDevice(vif)
         if dev:
             dev.reportStatus(resp=True)
         else:
             log.error('Received netif_fe_interface_status for unknown vif: 
dom=%d vif=%d',
-                      self.dom, vif)
+                      self.getDomain(), vif)
             msg = packMsg('netif_fe_interface_status_t',
                           { 'handle' : -1,
                             'status' : NETIF_INTERFACE_STATUS_CLOSED,
@@ -479,5 +480,5 @@
             dev.recv_fe_interface_connect(val)
         else:
             log.error('Received netif_fe_interface_connect for unknown vif: 
dom=%d vif=%d',
-                      self.dom, vif)
+                      self.getDomain(), vif)
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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