From: Sascha Hlusiak Date: Fri, 27 Mar 2009 18:14:00 +0000 (-0700) Subject: iptunnel: allow ISATAP with stateless autoconf X-Git-Tag: v2.6.31~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeef12c514269092ce679bf618a219fd8ad2aa68;p=thirdparty%2Fiproute2.git iptunnel: allow ISATAP with stateless autoconf please commit my patch below to the iproutes package. It just an incorrect check so that adding an isatap tunnel with remote works, since it's needed if one wants to use stateless autoconf. The current check makes tunnel mode isatap unusable for all client users. --- diff --git a/ip/iptunnel.c b/ip/iptunnel.c index 0d9a17f0e..7bee16234 100644 --- a/ip/iptunnel.c +++ b/ip/iptunnel.c @@ -252,13 +252,8 @@ static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p) fprintf(stderr, "Broadcast tunnel requires a source address.\n"); return -1; } - if (isatap) { - if (p->iph.daddr) { - fprintf(stderr, "no remote with isatap.\n"); - return -1; - } + if (isatap) p->i_flags |= SIT_ISATAP; - } return 0; }