code: def dev_from_name(self, name):
          
          try:
              return next(iface for iface in six.itervalues(self)
                          if (iface.name == name or iface.description == name))
          except (StopIteration, RuntimeError):
              raise ValueError("Unknown network interface %r" % name)
docs: Return the first pcap device name for a given Windows
          device name.