~martijnbraam/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH lsip6] Consider CDC NCM for possible interfaces

Details
Message ID
<20231204185215.58668-1-luca@z3ntu.xyz>
DKIM signature
missing
Download raw message
Patch: +1 -1
---
 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
Details
Message ID
<1eb79054-45e1-4555-ada1-f5fa02d53a6f@brixit.nl>
In-Reply-To
<20231204185215.58668-1-luca@z3ntu.xyz> (view parent)
DKIM signature
missing
Download raw message
Applied

On 12/4/23 19:52, Luca Weiss wrote:
> ---
>   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
Reply to thread Export thread (mbox)