]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Default fib6_type to RTN_UNICAST when not set
authorDavid Ahern <dsahern@gmail.com>
Wed, 19 Jun 2019 17:50:24 +0000 (10:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2019 21:14:05 +0000 (17:14 -0400)
commit6bde461c3d2e5e5eb4f1c25de25dbe10282fd6f8
treea3ce2a1f0113e511cded41712b0060d1aa124072
parentd16fee030216e0cb04c0c0bf24599de542deeb62
ipv6: Default fib6_type to RTN_UNICAST when not set

A user reported that routes are getting installed with type 0 (RTN_UNSPEC)
where before the routes were RTN_UNICAST. One example is from accel-ppp
which apparently still uses the ioctl interface and does not set
rtmsg_type. Another is the netlink interface where ipv6 does not require
rtm_type to be set (v4 does). Prior to the commit in the Fixes tag the
ipv6 stack converted type 0 to RTN_UNICAST, so restore that behavior.

Fixes: 4d8b2522705c ("net/ipv6: Save route type in rt6_info")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c