def update(self, data):
        """Update info about network interface according to given dnet dictionary"""
        self.name = data["name"]
        self.description = data['description']
        self.win_index = data['win_index']
        # Other attributes are optional
        if conf.use_winpcapy:
            self._update_pcapdata()
        try:
            self.ip = socket.inet_ntoa(get_if_raw_addr(data['guid']))
        except (KeyError, __HOLE__, NameError):
            pass
        try:
            self.mac = data['mac']
        except KeyError:
            pass
dataset/ETHPy150Open phaethon/scapy/scapy/arch/windows/__init__.py/NetworkInterface.update