summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-27 21:56:48 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-27 21:56:48 +0000
commitcd08368f301e288121897ac1b2491843dc30bd1c (patch)
treecd55ea4dd3a23a75d68185dc5cec5036cbc4fbf4 /usr.sbin
parentcd54240585a1b579b7bfee19d160d4c26f9d6ab2 (diff)
struct kroute changed, cope
ok claudio
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index 032857b89e6..3164320ff76 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.37 2004/01/27 21:26:52 henning Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.38 2004/01/27 21:56:47 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -442,14 +442,14 @@ show_fib_msg(struct imsg *imsg)
printf(" ");
printf(" ");
- if (asprintf(&p, "%s/%u", log_ntoa(k->prefix), k->prefixlen) ==
+ if (asprintf(&p, "%s/%u", inet_ntoa(k->prefix), k->prefixlen) ==
-1)
err(1, NULL);
printf("%-20s ", p);
free(p);
- if (k->nexthop)
- printf("%s", log_ntoa(k->nexthop));
+ if (k->nexthop.s_addr)
+ printf("%s", inet_ntoa(k->nexthop));
else if (k->flags & F_CONNECTED)
printf("link#%u", k->ifindex);
printf("\n");