

def dnet_intf_name_loop(entry, intf_list):
    l = cast(intf_list, POINTER(dnet_intf_list))
    if (l.contents.length >= INTF_NAME_COUNT):
        return (- 1)
    for i in enumerate(entry.contents.intf_name):
        l.contents.interfaces[l.contents.length][i[0]] = i[1]
    l.contents.length += 1
    return 0

dataset/ETHPy150Open phaethon/scapy/scapy/arch/cdnet.py dnet_intf_name_loop/original