[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1192179407-22461-5-git-send-email-andreas@fatal.se>
Date: Fri, 12 Oct 2007 10:56:40 +0200
From: Andreas Henriksson <andreas@...al.se>
To: shemminger@...ux-foundation.org
Cc: netdev@...r.kernel.org, Herbert Xu <herbert@...dor.apana.org.au>,
Andreas Henriksson <andreas@...al.se>
Subject: [PATCH 05/12] Fix typo in tunnel code (o_key vs. i_key).
From: Herbert Xu <herbert@...dor.apana.org.au>
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@...al.se>
---
ip/iptunnel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ip/iptunnel.c b/ip/iptunnel.c
index 828d80a..aee526b 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");
--
1.5.3.4
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists