(self, pcap_name)
Return libdnet/Scapy device name for given pypcap device name
        
        This mapping is necessary because pypcap numbers the devices differently.
Return libdnet/Scapy device name for given pypcap device name
        
        This mapping is necessary because pypcap numbers the devices differently.
Return libdnet / Scapy device name for given pypcap device name This mapping is necessary because pypcap numbers the devices differently .
def devname(self, pcap_name):
        """Return libdnet/Scapy device name for given pypcap device name
        
        This mapping is necessary because pypcap numbers the devices differently."""
        
        for devname, iface in self.items():
            if iface.pcap_name == pcap_name:
                return iface.name
        raise ValueError("Unknown pypcap network interface %r" % pcap_name)
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 )