diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2016-02-01 09:22:18 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2016-02-01 10:28:50 +0100 |
commit | ade389b326ddf2caaf08d7d3be8b3a1066ea7c97 (patch) | |
tree | dd69213c90c5dc169e5f67ea761f20d7c0484a8c | |
parent | f4a60a9bc429c28cb397402331dc01a789197450 (diff) |
BSD: compilation error fix
-rw-r--r-- | sysdep/bsd/krt-sock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 93c15e8e..5f2f1309 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -400,9 +400,9 @@ krt_read_route(struct ks_msg *msg, struct krt_proto *p, int scan) SKIP("unknown table id %d\n", table_id); } #endif - if ((!ipv6) && (p->p.table->addr_type != NET_IP4)) + if ((!ipv6) && (p->p.main_channel->table->addr_type != NET_IP4)) SKIP("reading only IPv4 routes"); - if ( ipv6 && (p->p.table->addr_type != NET_IP6)) + if ( ipv6 && (p->p.main_channel->table->addr_type != NET_IP6)) SKIP("reading only IPv6 routes"); int c = ipa_classify_net(idst); @@ -463,7 +463,7 @@ krt_read_route(struct ks_msg *msg, struct krt_proto *p, int scan) else src = KRT_SRC_KERNEL; - net = net_get(p->p.table, &ndst); + net = net_get(p->p.main_channel->table, &ndst); rta a = { .src = p->p.main_source, |