

def __get_ll_type__(ll_type):
    '\n    Given an lltype value, retrieve its definition.\n    '
    res = [llt for llt in __LL_TYPES__ if (llt[1] == ll_type)]
    assert (len(res) < 2), 'Duplicate linklayer types.'
    if res:
        return res[0]
    else:
        return None

dataset/ETHPy150Open kisom/pypcapfile/pcapfile/linklayer.py __get_ll_type__/original