def pcap_name(devname):
 try:
  pcap_name = ifaces.pcap_name(devname)
 except ValueError:
  pcap_name = None
 return pcap_name

def pcap_name ( devname ) : try : pcap_name = ifaces . pcap_name ( devname ) except ValueError : pcap_name = None return pcap_name
return pypcap device name for given libdnet/scapy device name .