def __get_ll_type__(ll_type):
    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
Given an lltype value, retrieve its definition.
dataset/ETHPy150Open kisom/pypcapfile/pcapfile/linklayer.py/__get_ll_type__