summaryrefslogtreecommitdiffstats
path: root/lib/libatm
diff options
context:
space:
mode:
authormks <mks@FreeBSD.org>1999-05-20 23:52:15 +0000
committermks <mks@FreeBSD.org>1999-05-20 23:52:15 +0000
commit7b9cb360f2d03e5fdfb0518204ad36d4087932ee (patch)
tree87373117f76bc0c73ea1b61e86d1c63ecd2150f1 /lib/libatm
parent85341fee3efdd3a9412d68e45a59cd5e19fcc582 (diff)
downloadFreeBSD-src-7b9cb360f2d03e5fdfb0518204ad36d4087932ee.zip
FreeBSD-src-7b9cb360f2d03e5fdfb0518204ad36d4087932ee.tar.gz
Print SPANS addresses in the correct byte order.
PR: 11691 Submitted by: Jim Pirzyk <Jim.Pirzyk@disney.com>
Diffstat (limited to 'lib/libatm')
-rw-r--r--lib/libatm/atm_addr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libatm/atm_addr.c b/lib/libatm/atm_addr.c
index 032107c..102f0b8 100644
--- a/lib/libatm/atm_addr.c
+++ b/lib/libatm/atm_addr.c
@@ -23,7 +23,7 @@
* Copies of this Software may be made, however, the above copyright
* notice must be reproduced on all copies.
*
- * @(#) $Id: atm_addr.c,v 1.1 1998/07/09 21:45:18 johnc Exp $
+ * @(#) $Id: atm_addr.c,v 1.1 1998/09/15 08:22:33 phk Exp $
*
*/
@@ -36,7 +36,7 @@
*/
#ifndef lint
-static char *RCSid = "@(#) $Id: atm_addr.c,v 1.1 1998/07/09 21:45:18 johnc Exp $";
+static char *RCSid = "@(#) $Id: atm_addr.c,v 1.1 1998/09/15 08:22:33 phk Exp $";
#endif
#include <sys/types.h>
@@ -305,7 +305,7 @@ format_atm_addr(addr)
u2.c[3] = atm_spans->aas_addr[7];
if (!(u1.w == 0 && u2.w == 0))
- sprintf(str, "0x%08x.%08x", u1.w, u2.w);
+ sprintf(str, "0x%08lx.%08lx", ntohl(u1.w), ntohl(u2.w));
break;
case T_ATM_PVC_ADDR:
OpenPOWER on IntegriCloud