diff options
author | Maria Matejka <mq@ucw.cz> | 2022-09-27 12:46:22 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-09-27 12:46:22 +0200 |
commit | 9be7aa9b450f22cec9c97143d0cb7650f4fd7cc9 (patch) | |
tree | e0e05c016695293d404e4ca99f2505094de66955 /nest/rt-dev.c | |
parent | 32a67c93ebf29309286dca5195f026eeda3f78a2 (diff) | |
parent | 4364ee9b6f3764c971ab111bf7dc87477fd7272c (diff) |
Merge commit '4364ee' into tmp-bad-learn
Diffstat (limited to 'nest/rt-dev.c')
-rw-r--r-- | nest/rt-dev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nest/rt-dev.c b/nest/rt-dev.c index fa224f9a..7f45985f 100644 --- a/nest/rt-dev.c +++ b/nest/rt-dev.c @@ -79,18 +79,18 @@ dev_ifa_notify(struct proto *P, uint flags, struct ifa *ad) /* Use iface ID as local source ID */ struct rte_src *src = rt_get_source(P, ad->iface->index); - rta a0 = {}; + ea_list *ea = NULL; struct nexthop_adata nhad = { .nh = { .iface = ad->iface, }, .ad = { .length = (void *) NEXTHOP_NEXT(&nhad.nh) - (void *) nhad.ad.data, }, }; - ea_set_attr_u32(&a0.eattrs, &ea_gen_preference, 0, c->preference); - ea_set_attr_u32(&a0.eattrs, &ea_gen_source, 0, RTS_DEVICE); - ea_set_attr_data(&a0.eattrs, &ea_gen_nexthop, 0, nhad.ad.data, nhad.ad.length); + ea_set_attr_u32(&ea, &ea_gen_preference, 0, c->preference); + ea_set_attr_u32(&ea, &ea_gen_source, 0, RTS_DEVICE); + ea_set_attr_data(&ea, &ea_gen_nexthop, 0, nhad.ad.data, nhad.ad.length); rte e0 = { - .attrs = rta_lookup(&a0), + .attrs = ea, .src = src, }; |