~martijnbraam/lsip6

91c30ec64a40b531c12f02d5182de35ea814257f — Luca Weiss 5 months ago a206aa2
Consider CDC NCM for possible interfaces
1 files changed, 1 insertions(+), 1 deletions(-)

M lsip6/__main__.py
M lsip6/__main__.py => lsip6/__main__.py +1 -1
@@ 66,7 66,7 @@ def find_possible_interfaces():
    for path in glob.glob('/sys/class/net/*/device/interface'):
        with open(path, 'r') as handle:
            raw = handle.read()
        if 'RNDIS' in raw or 'CDC Ethernet' in raw:
        if 'RNDIS' in raw or 'CDC Ethernet' in raw or 'CDC Network Control Model' in raw:
            part = path.split('/')
            interfaces.add(part[4])
    return interfaces