ia64/xen-unstable

changeset 4635:b6ad195cf599

bitkeeper revision 1.1327.2.5 (426921fa25ZaWjkBe-mPZImv-iXvmg)

Message unpacking fix.
Signed-off-by: Mike Wray <mike.wray@hp.com>
author mjw@wray-m-3.hpl.hp.com
date Fri Apr 22 16:10:34 2005 +0000 (2005-04-22)
parents d781b9d08e80
children b720e2fb6b00
files tools/python/xen/xend/server/netif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/netif.py	Fri Apr 22 15:30:43 2005 +0000
     1.2 +++ b/tools/python/xen/xend/server/netif.py	Fri Apr 22 16:10:34 2005 +0000
     1.3 @@ -457,13 +457,14 @@ class NetifController(DevController):
     1.4          return resp
     1.5  
     1.6      def recv_fe_interface_status(self, msg):
     1.7 +        val = unpackMsg('netif_fe_interface_status_t', msg)
     1.8          vif = val['handle']
     1.9          dev = self.findDevice(vif)
    1.10          if dev:
    1.11              dev.reportStatus(resp=True)
    1.12          else:
    1.13              log.error('Received netif_fe_interface_status for unknown vif: dom=%d vif=%d',
    1.14 -                      self.dom, vif)
    1.15 +                      self.getDomain(), vif)
    1.16              msg = packMsg('netif_fe_interface_status_t',
    1.17                            { 'handle' : -1,
    1.18                              'status' : NETIF_INTERFACE_STATUS_CLOSED,
    1.19 @@ -479,5 +480,5 @@ class NetifController(DevController):
    1.20              dev.recv_fe_interface_connect(val)
    1.21          else:
    1.22              log.error('Received netif_fe_interface_connect for unknown vif: dom=%d vif=%d',
    1.23 -                      self.dom, vif)
    1.24 +                      self.getDomain(), vif)
    1.25