summaryrefslogtreecommitdiff
path: root/sysdep/bsd/krt-sock.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-05-04 14:41:51 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-04 15:39:53 +0200
commit1c30b689ddd032ef8000fb7836348a48ba3184ff (patch)
treec2fdb9a74c235af77e3587eb7c5c762dcdc62dd4 /sysdep/bsd/krt-sock.c
parent702c04fbef222e802ca4dfac645dc75ede522db6 (diff)
Moved route source attribute (RTS_*) to eattrs
Diffstat (limited to 'sysdep/bsd/krt-sock.c')
-rw-r--r--sysdep/bsd/krt-sock.c3
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. */