

def __init__(self):
    self.intf = dnet_intf_open()
    intf_list = dnet_intf_list()
    intf_list.length = 0
    dnet_intf_loop(self.intf, dnet_intf_handler(dnet_intf_name_loop), pointer(intf_list))
    self.names = []
    for i in range(INTF_NAME_COUNT):
        if (i >= intf_list.length):
            break
        self.names.append(intf_list.interfaces[i].value.decode('ascii').strip('\x00'))

dataset/ETHPy150Open phaethon/scapy/scapy/arch/cdnet.py dnet_intf.__init__/original