summaryrefslogtreecommitdiff
path: root/sysdep/linux/netlink.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2020-02-17 11:18:32 +0100
committerMaria Matejka <mq@ucw.cz>2021-10-13 19:09:04 +0200
commit3660f19dd534224da4870a507efcef5b36794506 (patch)
tree5e9a79d4cb53d5a90259f2b56c487064e2ff9c0d /sysdep/linux/netlink.c
parentc507fb41bb2e62f336357121598debab95a7c767 (diff)
Dropping the RTS_DUMMY temporary route storage.
Kernel route sync is done by other ways now and this code is not used currently.
Diffstat (limited to 'sysdep/linux/netlink.c')
-rw-r--r--sysdep/linux/netlink.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c
index ac092871..b8619441 100644
--- a/sysdep/linux/netlink.c
+++ b/sysdep/linux/netlink.c
@@ -1305,8 +1305,6 @@ nl_send_route(struct krt_proto *p, rte *e, int op, int dest, struct nexthop *nh)
if (p->af == AF_MPLS)
priority = 0;
- else if (a->source == RTS_DUMMY)
- priority = e->u.krt.metric;
else if (KRT_CF->sys.metric)
priority = KRT_CF->sys.metric;
else if ((op != NL_OP_DELETE) && (ea = ea_find(eattrs, EA_KRT_METRIC)))