diff options
| author | Phil Sutter <phil@nwl.cc> | 2015-11-13 18:08:57 +0100 |
|---|---|---|
| committer | Stephen Hemminger <shemming@brocade.com> | 2015-11-23 15:26:37 -0800 |
| commit | 4b3cb96281ebf39fa63734c7879fbf078d1bfa7b (patch) | |
| tree | 32cdcd4653a282f74ee7fd11ad7570023ee2da79 | |
| parent | 6ddb1e8c900668a22aaaf8d5f3b1586c0e88efcd (diff) | |
| download | android_external_iproute2-4b3cb96281ebf39fa63734c7879fbf078d1bfa7b.tar.gz android_external_iproute2-4b3cb96281ebf39fa63734c7879fbf078d1bfa7b.tar.bz2 android_external_iproute2-4b3cb96281ebf39fa63734c7879fbf078d1bfa7b.zip | |
iptunnel: use ll_name_to_index() for physical interface lookup
Although the cache is only initialized in do_show(), this way it is at
least consistent with ip6tunnel.
Signed-off-by: Phil Sutter <phil@nwl.cc>
| -rw-r--r-- | ip/iptunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ip/iptunnel.c b/ip/iptunnel.c index 803bb83..a547852 100644 --- a/ip/iptunnel.c +++ b/ip/iptunnel.c @@ -226,7 +226,7 @@ static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p) } if (medium[0]) { - p->link = if_nametoindex(medium); + p->link = ll_name_to_index(medium); if (p->link == 0) { fprintf(stderr, "Cannot find device \"%s\"\n", medium); return -1; |
