ip tunnel parameter parsing fix by Jean Wolter <jw5@os.inf.tu-dresden.de>
This commit is contained in:
parent
724d196c75
commit
db60bcf1b7
@ -241,12 +241,12 @@ static void parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p)
|
|||||||
} else if (key == ARG_remote) {
|
} else if (key == ARG_remote) {
|
||||||
NEXT_ARG();
|
NEXT_ARG();
|
||||||
key = index_in_strings(keywords, *argv);
|
key = index_in_strings(keywords, *argv);
|
||||||
if (key == ARG_any)
|
if (key != ARG_any)
|
||||||
p->iph.daddr = get_addr32(*argv);
|
p->iph.daddr = get_addr32(*argv);
|
||||||
} else if (key == ARG_local) {
|
} else if (key == ARG_local) {
|
||||||
NEXT_ARG();
|
NEXT_ARG();
|
||||||
key = index_in_strings(keywords, *argv);
|
key = index_in_strings(keywords, *argv);
|
||||||
if (key == ARG_any)
|
if (key != ARG_any)
|
||||||
p->iph.saddr = get_addr32(*argv);
|
p->iph.saddr = get_addr32(*argv);
|
||||||
} else if (key == ARG_dev) {
|
} else if (key == ARG_dev) {
|
||||||
NEXT_ARG();
|
NEXT_ARG();
|
||||||
|
Loading…
Reference in New Issue
Block a user