]> git.baikalelectronics.ru Git - kernel.git/commit
mpls: make via address optional for multipath routes
authorRobert Shearman <rshearma@brocade.com>
Thu, 10 Dec 2015 19:30:51 +0000 (19:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Dec 2015 05:43:44 +0000 (00:43 -0500)
commitdb7f99be3c3b05114b5a13016fb6ec749d28857f
treeb078d7f3dd5461b90a74c8cd9bc6c5a41e434cbd
parent6a75705e739173f11c84616fd4c17fdf7a6c1db4
mpls: make via address optional for multipath routes

The via address is optional for a single path route, yet is mandatory
when the multipath attribute is used:

  # ip -f mpls route add 100 dev lo
  # ip -f mpls route add 101 nexthop dev lo
  RTNETLINK answers: Invalid argument

Make them consistent by making the via address optional when the
RTA_MULTIPATH attribute is being parsed so that both forms of
specifying the route work.

Signed-off-by: Robert Shearman <rshearma@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c