]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BSD: compilation error fix
authorJan Moskyto Matejka <mq@ucw.cz>
Mon, 1 Feb 2016 08:22:18 +0000 (09:22 +0100)
committerJan Moskyto Matejka <mq@ucw.cz>
Mon, 1 Feb 2016 09:28:50 +0000 (10:28 +0100)
sysdep/bsd/krt-sock.c

index 93c15e8eb1f0a4fae380bb8f2283c5c9c05d63b6..5f2f130913fc905490d01117bafa6d82d5a8ad11 100644 (file)
@@ -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,