diff options
author | Robert Shearman <rshearma@brocade.com> | 2015-12-10 20:30:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-12 06:43:44 +0100 |
commit | f20367df1af8f6a4e85b7e586213b8508796fe79 (patch) | |
tree | b078d7f3dd5461b90a74c8cd9bc6c5a41e434cbd /net/nfc | |
parent | mpls: fix out-of-bounds access when via address not specified (diff) | |
download | linux-f20367df1af8f6a4e85b7e586213b8508796fe79.tar.xz linux-f20367df1af8f6a4e85b7e586213b8508796fe79.zip |
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>
Diffstat (limited to 'net/nfc')
0 files changed, 0 insertions, 0 deletions