]> git.proxmox.com Git - mirror_iproute2.git/commit
iproute: Remove useless check for nexthop keyword when setting RTA_OIF
authorJakub Sitnicki <jkbs@redhat.com>
Wed, 7 Jun 2017 13:23:13 +0000 (15:23 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 14 Jun 2017 16:56:05 +0000 (09:56 -0700)
commit7b201d6019104575fcce121f776008d8c711d925
tree508aaa96dc2288ea7ac7c501f673575785c65945
parent5a3ec4ba64783a640e7716a37faae4be49489e51
iproute: Remove useless check for nexthop keyword when setting RTA_OIF

When modifying a route we set the RTA_OIF attribute only if a device was
specified with "dev" or "oif" keyword. But for some unknown reason we
earlier alternatively check also for the presence of "nexthop" keyword,
even though it has no effect. So remove the pointless check.

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
ip/iproute.c