]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
Detect 6rd kernel missing support / 6rd tunnel scope
authorAlexandre Cassen <acassen@freebox.fr>
Sun, 4 Apr 2010 20:40:14 +0000 (22:40 +0200)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 12 Apr 2010 18:45:51 +0000 (11:45 -0700)
commit3979ef91de9ed17d21672aaaefd6c228485135a2
tree539708f36813c49e29e9a23f1285ad237f141a54
parentab814d635529787036b3caddb590034a4e6a48e6
Detect 6rd kernel missing support / 6rd tunnel scope

This patch fix two issues:

* If kernel is not supporting 6rd then ioctl() call
  will return EINVAL, if so just skip perror call.

* 6rd scope is ipv6/ip tunnels. Dont try to fetch
  6rd tunnel parms if tunnel protocol != IPPROTO_IPV6.

Signed-off-by: Alexandre Cassen <acassen@freebox.fr>
ip/iptunnel.c
ip/tunnel.c