Date: Thu, 13 May 1999 12:44:28 -0400 (EDT) From: Jim.Pirzyk@disney.com To: FreeBSD-gnats-submit@freebsd.org Subject: bin/11691: Bug in command 'atm show arp' Message-ID: <199905131644.MAA68220@amigo.faf.fa.disney.com>
next in thread | raw e-mail | index | archive | help
>Number: 11691 >Category: bin >Synopsis: 'atm show arp' has ATM addresses in wrong byte order for SPANS >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 13 09:50:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Jim Pirzyk >Release: FreeBSD 3.1-RELEASE i386 >Organization: >Environment: A FreeBSD host running SPANS atm. Need to have mutiple atm hosts connected to the same atm switch and VCs already established to those hosts. >Description: When doing an 'atm show arp' while running SPANS signaling manager, the ATM address is not being displayed in the correct order. This is different than the order being displayed by the SPANS signaling modules in the kernel. The good order is by the spans_addr_print in /usr/src/sys/netatm/spans/spans_util.c The bad code is in: /usr/src/lib/libatm/atm_addr.c >How-To-Repeat: run the 'atm show arp' on the command line. Then grep for SPANS in /var/log/messages and look at the two atm addresses, they should start in the same order. >Fix: *** atm_addr.c.orig Tue Sep 15 04:22:33 1998 --- atm_addr.c Thu May 13 12:35:13 1999 *************** *** 305,311 **** u2.c[3] = atm_spans->aas_addr[7]; if (!(u1.w == 0 && u2.w == 0)) ! sprintf(str, "0x%08x.%08x", u1.w, u2.w); break; case T_ATM_PVC_ADDR: --- 305,311 ---- u2.c[3] = atm_spans->aas_addr[7]; if (!(u1.w == 0 && u2.w == 0)) ! sprintf(str, "0x%08x.%08x", ntohl(u1.w), ntohl(u2.w)); break; case T_ATM_PVC_ADDR: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905131644.MAA68220>