]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iptunnel: allow ISATAP with stateless autoconf
authorSascha Hlusiak <Sascha@hlusiak.de>
Fri, 27 Mar 2009 18:14:00 +0000 (11:14 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 27 Mar 2009 18:14:00 +0000 (11:14 -0700)
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.

ip/iptunnel.c

index 0d9a17f0e212748089fcc1e6c879ffb028f6dcc2..7bee16234722429a67aa01942e17e8484cccbb0f 100644 (file)
@@ -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;
 }