summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/bgpctl.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2008-12-10 23:57:11 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2008-12-10 23:57:11 +0000
commit9953adea0639e30c48d473fa6918176f34a003cf (patch)
tree021498e343d5a155bfec7f24f536201bebb5efa0 /usr.sbin/bgpctl/bgpctl.c
parent8a6f5a71283d2b79884bcb184a302cba8f4f4556 (diff)
convert the aggregator's AS number into host byte order when
displayed in "show rib detail". ok claudio@
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index e911bb1a4e4..f04d03a5c0f 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.135 2008/12/06 13:18:12 sobrado Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.136 2008/12/10 23:57:10 sthen Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -1186,8 +1186,8 @@ show_rib_detail_msg(struct imsg *imsg, int nodescr)
case ATTR_AGGREGATOR:
memcpy(&as, data, sizeof(as));
memcpy(&id, data + sizeof(as), sizeof(id));
- printf(" Aggregator: %s [%s]\n", log_as(as),
- inet_ntoa(id));
+ printf(" Aggregator: %s [%s]\n",
+ log_as(htonl(as)), inet_ntoa(id));
break;
case ATTR_ORIGINATOR_ID:
memcpy(&id, data, sizeof(id));