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 /sysdep/bsd | |
parent | 702c04fbef222e802ca4dfac645dc75ede522db6 (diff) |
Moved route source attribute (RTS_*) to eattrs
Diffstat (limited to 'sysdep/bsd')
-rw-r--r-- | sysdep/bsd/krt-sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index bc6b1839..61ac7a5c 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -520,9 +520,10 @@ krt_read_route(struct ks_msg *msg, struct krt_proto *p, int scan) rta a = { .src = p->p.main_source, - .source = RTS_INHERIT, }; + ea_set_attr_u32(&a->eattrs, &ea_gen_source, 0, RTS_INHERIT); + /* reject/blackhole routes have also set RTF_GATEWAY, we wil check them first. */ |