From 9953adea0639e30c48d473fa6918176f34a003cf Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Wed, 10 Dec 2008 23:57:11 +0000 Subject: convert the aggregator's AS number into host byte order when displayed in "show rib detail". ok claudio@ --- usr.sbin/bgpctl/bgpctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin') 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 @@ -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)); -- cgit v1.2.3