Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Be able to specify interface #5

Closed
robphoenix opened this issue Mar 22, 2017 · 0 comments · Fixed by #12
Closed

Be able to specify interface #5

robphoenix opened this issue Mar 22, 2017 · 0 comments · Fixed by #12
Assignees

Comments

@robphoenix
Copy link
Owner

robphoenix commented Mar 22, 2017

As interface names are not always a simple eth0, (wlp1s0 on linux, Local Area Connection on Windows) it would be good if this used a regex rather than the full interface name. I've always found myself in the past having to list the interface names to then get specific info about them.

$ trawl w*
wlp1s0      192.168.1.78     255.255.255.0    192.168.1.0/24      1500   7d:1a:b5:54:de:8c fe80::defe:3c33:4335:e669/64
% trawl w*
Wireless Network Connection          10.26.101.64     255.255.255.0    10.26.101.0/24      1500  87:77:a3:d1:7e:2c  fe80::48e8:96c3:7457:8a3d/64

I'm not sure how I'd want to deal with multiple interfaces that match the regex, I guess it would be best to list all that match, rather than just the first, or list all matches and asking for a more specific regex.
If nothing matches it would be good to provide a list of available interfaces.

$ trawl y*
Available Interfaces:
    lo
    tun0
    wlp1s0
    docker0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant