code: def devname(self, pcap_name):
          
          
          for devname, iface in self.items():
              if iface.pcap_name == pcap_name:
                  return iface.name
          raise ValueError("Unknown pypcap network interface %r" % pcap_name)
docs: Return Windows device name for given pcap device name.