diff options
author | Maria Matejka <mq@ucw.cz> | 2022-05-04 14:41:51 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-05-04 15:39:53 +0200 |
commit | 1c30b689ddd032ef8000fb7836348a48ba3184ff (patch) | |
tree | c2fdb9a74c235af77e3587eb7c5c762dcdc62dd4 /proto/rip | |
parent | 702c04fbef222e802ca4dfac645dc75ede522db6 (diff) |
Moved route source attribute (RTS_*) to eattrs
Diffstat (limited to 'proto/rip')
-rw-r--r-- | proto/rip/rip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c index f5442606..f7f34c27 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -152,17 +152,17 @@ rip_announce_rte(struct rip_proto *p, struct rip_entry *en) { /* Update */ rta a0 = { - .source = RTS_RIP, .dest = RTD_UNICAST, }; struct { ea_list l; - eattr a[2]; + eattr a[3]; } ea_block = { .l.count = ARRAY_SIZE(ea_block.a), .a = { EA_LITERAL_EMBEDDED(&ea_gen_preference, 0, p->p.main_channel->preference), + EA_LITERAL_EMBEDDED(&ea_gen_source, 0, RTS_RIP), EA_LITERAL_EMBEDDED(&ea_rip_metric, 0, rt->metric), }, }; |