~martijnbraam/public-inbox

lsip6: Consider CDC NCM for possible interfaces v1 APPLIED

Luca Weiss: 1
 Consider CDC NCM for possible interfaces

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~martijnbraam/public-inbox/patches/47372/mbox | git am -3
Learn more about email & git

[PATCH lsip6] Consider CDC NCM for possible interfaces Export this patch

---
 lsip6/__main__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lsip6/__main__.py b/lsip6/__main__.py
index bdafadd..24acf38 100644
--- a/lsip6/__main__.py
+++ b/lsip6/__main__.py
@@ -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
-- 
2.43.0
Applied