diff options
author | Martin Mares <mj@ucw.cz> | 1999-04-12 20:01:07 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-04-12 20:01:07 +0200 |
commit | 08e2d6259a71c5e43ac0083ea6d81357678f99eb (patch) | |
tree | b8c1cfaf6196d54c506ed025a9d29697bda087b6 /sysdep/linux | |
parent | 170c984a9ef1bde00711f405b03d24a2e151501c (diff) | |
download | bird-08e2d6259a71c5e43ac0083ea6d81357678f99eb.tar bird-08e2d6259a71c5e43ac0083ea6d81357678f99eb.zip |
Removed TOS support. This simplifies many things a lot.
Diffstat (limited to 'sysdep/linux')
-rw-r--r-- | sysdep/linux/krt-scan.c | 4 | ||||
-rw-r--r-- | sysdep/linux/netlink/netlink.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sysdep/linux/krt-scan.c b/sysdep/linux/krt-scan.c index 85e092d..7ee80f2 100644 --- a/sysdep/linux/krt-scan.c +++ b/sysdep/linux/krt-scan.c @@ -86,13 +86,13 @@ krt_parse_entry(byte *ent, struct krt_proto *p) return; } - net = net_get(&master_table, 0, dest, masklen); + net = net_get(&master_table, dest, masklen); a.proto = &p->p; a.source = RTS_INHERIT; a.scope = SCOPE_UNIVERSE; a.cast = RTC_UNICAST; - a.tos = a.flags = a.aflags = 0; + a.flags = a.aflags = 0; a.from = IPA_NONE; a.iface = NULL; a.attrs = NULL; diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c index 326c174..31dd608 100644 --- a/sysdep/linux/netlink/netlink.c +++ b/sysdep/linux/netlink/netlink.c @@ -487,9 +487,9 @@ nl_send_route(rte *e, int new) void krt_set_notify(struct krt_proto *p, net *n, rte *new, rte *old) { - if (old && new && old->attrs->tos == new->attrs->tos) + if (old && new) { - /* FIXME: Priorities should be identical as well, but we don't use them yet. */ + /* FIXME: Priorities and TOS should be identical as well, but we don't use them yet. */ nl_send_route(new, 1); } else @@ -594,12 +594,12 @@ nl_parse_route(struct krt_proto *p, struct nlmsghdr *h, int scan) src = KRT_SRC_ALIEN; } - net = net_get(&master_table, 0, dst, i->rtm_dst_len); + net = net_get(&master_table, dst, i->rtm_dst_len); ra.proto = &p->p; ra.source = RTS_INHERIT; ra.scope = SCOPE_UNIVERSE; /* FIXME: Use kernel scope? */ ra.cast = RTC_UNICAST; - ra.tos = ra.flags = ra.aflags = 0; + ra.flags = ra.aflags = 0; ra.from = IPA_NONE; ra.gw = IPA_NONE; ra.iface = NULL; |