From owner-freebsd-atm Tue Aug 3 9:46:41 1999 Delivered-To: freebsd-atm@freebsd.org Received: from marcos.networkcs.com (marcos.networkcs.com [137.66.16.1]) by hub.freebsd.org (Postfix) with ESMTP id 896AF14DD3 for ; Tue, 3 Aug 1999 09:46:34 -0700 (PDT) (envelope-from jpt@us.networkcs.com) Received: from us.networkcs.com (us.networkcs.com [137.66.11.15]) by marcos.networkcs.com (8.9.0.Beta5/8.9.0.Beta5) with ESMTP id LAA06136; Tue, 3 Aug 1999 11:45:00 -0500 (CDT) Received: (from jpt@localhost) by us.networkcs.com (8.9.2/8.8.7) id LAA96255; Tue, 3 Aug 1999 11:45:00 -0500 (CDT) From: Joseph Thomas Message-Id: <199908031645.LAA96255@us.networkcs.com> Subject: Re: Set prefix ? In-Reply-To: <37A70CDD.43515382@alcatel.fr> from Thierry Herbelot at "Aug 3, 99 05:38:05 pm" To: thierry.herbelot@alcatel.fr Date: Tue, 3 Aug 1999 11:44:59 -0500 (CDT) Cc: atm@freebsd.org, harp@magic.net X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-atm@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hello, > > Having made some progress toward the actual use of an ATM board with > FreeBSD 3.2-R (I have now loaded the Fore microcode). > > I'm now playing with the atm(8) command and it seems there are some > points missing : > I don't see how the "set prefix" command works, as the corresponding > ioctl does not exist in dev/hfa/fore_if.c > (the same ioctl is used in ilmid - so it must work ?) > > TfH > > PS : config = Compaq P-III pc with a PCA200e Fore adapter (and a switch > from Xylan/Alcatel) > The "set prefix" is an ATM signalling property, not a physical interface property per se. Thus, the quick answer is that the "set prefix" is handled by the UNI signalling manager and that the code can be found in: /usr/src/sys/netatm/uni/unisig_if.c A more complete answer would be that ilmid opens a socket of type AF_ATM which is a new protocol family implemented by the HARP ATM code. Ioctl()'s issued on sockets of this type are handed off to the protocol family's 'control' routine (atm_dgram_control()) in: /usr/src/sys/netatm/atm_usrreq.c Ilmid issues an AIOCSET ioctl() with a subcode of AIOCS_SET_PRF and the name of the physical interface in a control block. Atm_usrreq.c looks up the signalling manager attached to the named interface and calls the signalling managers ioctl() routine. Looking through atm_usrreq.c you will notice that some calls are never handed off (AIOCSET:AIOCS_SET_MAC), some are handed off to the inferface (AIOCSET:AIOCS_SET_NIF - dev/hfa/fore_if.c for example), and some are handed off to signalling managers (AIOCS:AIOCS_SET_PRF). Hope this gives a quick overview of the IOCTL calls for HARP ATM. Btw: I'd be interested in hearing about problems/successes you have working with the Xylan/Alcatel switch. We use FORE and have heard for uses using Cisco LightStream. -- Joseph Thomas E/Mail: jpt@networkcs.com Network Computing Services, Inc. jpt@magic.net 1200 Washington Ave So. Tel: +1 612 337 3558 Minneapolis, MN 55415-1227 FAX: +1 612 337 3400 An elephant is a mouse with an operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-atm" in the body of the message