diff options
author | Denis Vlasenko | 2007-10-10 14:43:03 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-10-10 14:43:03 +0000 |
commit | db60bcf1b738b772d73573d9f27cae28eea10846 (patch) | |
tree | c531c6848a91ea53bce113480d7b30087d4606b6 | |
parent | 724d196c75e097535d475528002518d5322868c6 (diff) | |
download | busybox-db60bcf1b738b772d73573d9f27cae28eea10846.zip busybox-db60bcf1b738b772d73573d9f27cae28eea10846.tar.gz |
ip tunnel parameter parsing fix by Jean Wolter <jw5@os.inf.tu-dresden.de>
-rw-r--r-- | networking/libiproute/iptunnel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index a936a42..a45e64d 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c @@ -241,12 +241,12 @@ static void parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p) } else if (key == ARG_remote) { NEXT_ARG(); key = index_in_strings(keywords, *argv); - if (key == ARG_any) + if (key != ARG_any) p->iph.daddr = get_addr32(*argv); } else if (key == ARG_local) { NEXT_ARG(); key = index_in_strings(keywords, *argv); - if (key == ARG_any) + if (key != ARG_any) p->iph.saddr = get_addr32(*argv); } else if (key == ARG_dev) { NEXT_ARG(); |