diff options
author | Martin Mares <mj@ucw.cz> | 1999-05-17 20:16:53 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-05-17 20:16:53 +0000 |
commit | 4f1a6d27b9a44f61329bc7b6779a0c645362e181 (patch) | |
tree | 4c77601930c97a225f42aaf9ce5dcc378459d1ec /sysdep/linux | |
parent | 0e02abfd5770062768eeb4c75061b7d2f656489d (diff) |
Kill remaining master_table relics in KRT code.
Make all protocols pass routing table to rte_update and rte_discard.
Diffstat (limited to 'sysdep/linux')
-rw-r--r-- | sysdep/linux/krt-scan.c | 2 | ||||
-rw-r--r-- | sysdep/linux/netlink/netlink.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/linux/krt-scan.c b/sysdep/linux/krt-scan.c index 7ee80f27..05a62330 100644 --- a/sysdep/linux/krt-scan.c +++ b/sysdep/linux/krt-scan.c @@ -86,7 +86,7 @@ krt_parse_entry(byte *ent, struct krt_proto *p) return; } - net = net_get(&master_table, dest, masklen); + net = net_get(p->p.table, dest, masklen); a.proto = &p->p; a.source = RTS_INHERIT; diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c index 10eb27a9..3daa6f8f 100644 --- a/sysdep/linux/netlink/netlink.c +++ b/sysdep/linux/netlink/netlink.c @@ -594,7 +594,7 @@ nl_parse_route(struct krt_proto *p, struct nlmsghdr *h, int scan) src = KRT_SRC_ALIEN; } - net = net_get(&master_table, dst, i->rtm_dst_len); + net = net_get(p->p.table, dst, i->rtm_dst_len); ra.proto = &p->p; ra.source = RTS_INHERIT; ra.scope = SCOPE_UNIVERSE; |