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.
This commit is contained in:
Sascha Hlusiak 2009-03-27 11:14:00 -07:00 committed by Stephen Hemminger
parent 6cdbf37063
commit eeef12c514
1 changed files with 1 additions and 6 deletions

View 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;
}