summaryrefslogtreecommitdiffstats
path: root/ip/iptunnel.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-10-12 10:56:40 +0200
committerStephen Hemminger <shemminger@linux-foundation.org>2007-10-17 10:04:53 -0700
commit4282c6c52b4f1f4b5e1ef5ef377c342ca87e0b73 (patch)
tree848ad1133409c842da42a327cdcf8247520952a1 /ip/iptunnel.c
parentd21e88354b2a42b026384730a767f2108bcf8efe (diff)
Fix typo in tunnel code (o_key vs. i_key).
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>
Diffstat (limited to 'ip/iptunnel.c')
-rw-r--r--ip/iptunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ip/iptunnel.c b/ip/iptunnel.c
index 828d80a9..aee526b3 100644
--- a/ip/iptunnel.c
+++ b/ip/iptunnel.c
@@ -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");