diff options
author | Maria Matejka <mq@ucw.cz> | 2022-10-05 15:17:51 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-10-05 15:17:51 +0200 |
commit | 1e01721525032bf3608aa457cafde58543b8a977 (patch) | |
tree | d73f8020f23615dcda6f4acbb10fdb17e338cb64 /sysdep/linux/netlink.c | |
parent | 7911148b22a9efb1fd200b23e3c71cb1df3a0620 (diff) | |
parent | dc9351d326b9d2d8bcb7e9a0e5126878c2b02762 (diff) |
Merge commit 'dc9351d3' into HEAD
Diffstat (limited to 'sysdep/linux/netlink.c')
-rw-r--r-- | sysdep/linux/netlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c index 94a37a73..3443957b 100644 --- a/sysdep/linux/netlink.c +++ b/sysdep/linux/netlink.c @@ -1874,6 +1874,9 @@ nl_parse_route(struct nl_parse_state *s, struct nlmsghdr *h) return; } + if (nhad.ad.length) + ea_set_attr(&ra, EA_LITERAL_DIRECT_ADATA(&ea_gen_nexthop, 0, &nhad.ad)); + if (i->rtm_scope != def_scope) ea_set_attr(&ra, EA_LITERAL_EMBEDDED(&ea_krt_scope, 0, i->rtm_scope)); |