Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

give interface a nice name from the netname #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mathieujobin
Copy link
Contributor

if tapcfg does not support the name for length or special chars
it will fallback to tap0, tap1, etc.

I thought of reusing vlink->netname but I needed const char*

Solves #34

22: ipv6test0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    inet 198.18.0.4/24 brd 198.18.0.255 scope global ipv6test0
       valid_lft forever preferred_lft forever
23: 2ndnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    inet 198.18.0.3/24 brd 198.18.0.255 scope global 2ndnet0
       valid_lft forever preferred_lft forever

if tapcfg does not support the name for length or special chars
it will fallback to tap0, tap1, etc.

I thought of reusing vlink->netname but I needed const char*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant