commit | 26111ab1dba820421ccaf283ac097a79b95023a2 | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Mon Oct 02 13:46:35 2017 +0200 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Mon Oct 02 08:01:21 2017 -0700 |
tree | e1a4e5c9b635c363b5713f0b298282d704303268 | |
parent | 4c0939a29e2c1739f0141c87ecd7940825734a22 [diff] |
ip{6, }tunnel: Avoid copying user-supplied interface name around In both files' parse_args() functions as well as in iptunnel's do_prl() and do_6rd() functions, a user-supplied 'dev' parameter is uselessly copied into a temporary buffer before passing it to ll_name_to_index() or copying into a struct ifreq. Avoid this by just caching the argv pointer value until the later lookup/strcpy. Signed-off-by: Phil Sutter <phil@nwl.cc>