benoitc / benoitc/inet_ext

Failure on PPP interfaces

Open
#5 3 comments 0 reactions 1 assignee Claimed by @benoitc View on GitHub
Dominant language
Erlang
Stars
13
Forks
5
PR merge metrics
No merged PRs in 30d

Description

When we're dialing via a PPP interface:
```
$ ip r
default dev ppp0 scope link
10.59.4.14 dev ppp0 scope link
169.254.0.0/16 dev ppp0 scope link src 169.254.172.203
```

So `ip r | grep ppp0 | grep default | sed 's/^none //' | cut -d ' ' -f 3` returns, instead of an IP, `ppp0`, which is not a parsable IP and it triggers an `{error, einval}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.