]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
Fix typo in tunnel code (o_key vs. i_key).
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Oct 2007 08:56:40 +0000 (10:56 +0200)
committerStephen Hemminger <shemminger@linux-foundation.org>
Wed, 17 Oct 2007 17:04:53 +0000 (10:04 -0700)
If a dotted quad ikey is specified for GRE tunnels, it gets set as the
okey instead.  This patch fixes it. (http://bugs.debian.org/200714)

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
ip/iptunnel.c

index 828d80a97025887efa0799b972bb2205eca66e51..aee526b33f42ffa4886a157453dbc76b0b43d3c7 100644 (file)
@@ -113,7 +113,7 @@ static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p)
                        NEXT_ARG();
                        p->i_flags |= GRE_KEY;
                        if (strchr(*argv, '.'))
-                               p->o_key = get_addr32(*argv);
+                               p->i_key = get_addr32(*argv);
                        else {
                                if (get_unsigned(&uval, *argv, 0)<0) {
                                        fprintf(stderr, "invalid value of \"ikey\"\n");