From owner-freebsd-atm Mon Jul 8 13:33: 3 2002 Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8BED37B400 for ; Mon, 8 Jul 2002 13:33:02 -0700 (PDT) Received: from venus.vincentjardin.net (AVelizy-102-1-1-251.abo.wanadoo.fr [193.253.255.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3293843E4A for ; Mon, 8 Jul 2002 13:33:02 -0700 (PDT) (envelope-from jardin@venus.vincentjardin.net) Received: by venus.vincentjardin.net (Postfix, from userid 501) id 0C2F215039F; Mon, 8 Jul 2002 22:44:31 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-15" From: Vincent Jardin To: freebsd-atm@freebsd.org Subject: HARP/ B-LLI Date: Mon, 8 Jul 2002 22:44:30 +0200 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020708204431.0C2F215039F@venus.vincentjardin.net> Sender: owner-freebsd-atm@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am trying to use the HARP stack in order to open an AAL5/PVC socket with LLC/SNAP. While I am trying to fill the sockaddr_atm structure for the connect() function, I am wondering how the following fields should be filled and what are they for ? * B-LLI Layer 2 SVE * B-LLI Layer 3 SVE * B_HLI SVE Thanks, Vincent To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-atm" in the body of the message From owner-freebsd-atm Mon Jul 8 13:46: 2 2002 Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1090C37B400 for ; Mon, 8 Jul 2002 13:46:01 -0700 (PDT) Received: from mail.matriplex.com (ns1.matriplex.com [208.131.42.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A73A43E4A for ; Mon, 8 Jul 2002 13:46:00 -0700 (PDT) (envelope-from rh@matriplex.com) Received: from mail.matriplex.com (mail.matriplex.com [208.131.42.9]) by mail.matriplex.com (8.9.2/8.9.2) with ESMTP id NAA71884; Mon, 8 Jul 2002 13:45:48 -0700 (PDT) (envelope-from rh@matriplex.com) Date: Mon, 8 Jul 2002 13:45:48 -0700 (PDT) From: Richard Hodges To: Vincent Jardin Cc: freebsd-atm@FreeBSD.ORG Subject: Re: HARP/ B-LLI In-Reply-To: <20020708204431.0C2F215039F@venus.vincentjardin.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-atm@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 8 Jul 2002, Vincent Jardin wrote: > I am trying to use the HARP stack in order to open an AAL5/PVC socket with > LLC/SNAP. While I am trying to fill the sockaddr_atm structure for the > connect() function, I am wondering how the following fields should be filled > and what are they for ? > * B-LLI Layer 2 SVE > * B-LLI Layer 3 SVE > * B_HLI SVE For connecting to another CLIP host, you might use: satm->satm_addr.t_atm_sap_layer2.SVE_tag = T_ATM_PRESENT; satm->satm_addr.t_atm_sap_layer2.ID_type = T_ATM_SIMPLE_ID; satm->satm_addr.t_atm_sap_layer2.ID.simple_ID = T_ATM_BLLI2_I8802; satm->satm_addr.t_atm_sap_layer3.SVE_tag = T_ATM_ABSENT; satm->satm_addr.t_atm_sap_appl.SVE_tag = T_ATM_ABSENT; Does this help? -Richard To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-atm" in the body of the message From owner-freebsd-atm Tue Jul 9 4:33:43 2002 Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2484537B400 for ; Tue, 9 Jul 2002 04:33:42 -0700 (PDT) Received: from proton.hexanet.fr (proton.hexanet.fr [81.23.32.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 279C443E54 for ; Tue, 9 Jul 2002 04:33:41 -0700 (PDT) (envelope-from c.prevotaux@hexanet.fr) Received: from hexanet.fr (localhost [127.0.0.1]) by proton.hexanet.fr (8.12.3/8.12.3) with SMTP id g69BXdCE004426 for ; Tue, 9 Jul 2002 13:33:39 +0200 (CEST) (envelope-from c.prevotaux@hexanet.fr) Date: Tue, 9 Jul 2002 13:33:38 +0200 From: Christophe Prevotaux To: atm@freebsd.org Subject: hfa drivers and HARP fixes Message-Id: <20020709133338.2e311cb7.c.prevotaux@hexanet.fr> Organization: HEXANET Sarl X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.4) X-NCC-RegID: fr.hexanet Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-atm@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I was wondering if anyone would commit anything concerning the hfa driver or anything atm related to the 4.6.1, it would be a good occasion to fix things , if possible -- -- =============================================================== Christophe Prevotaux Email: c.prevotaux@hexanet.fr HEXANET SARL URL: http://www.hexanet.fr/ Z.A.C Les Charmilles Tel: +33 (0)3 26 79 30 05 3 Allée Thierry Sabine Direct: +33 (0)3 26 61 77 72 BP202 Fax: +33 (0)3 26 79 30 06 51686 Reims Cedex 2 FRANCE HEXANET Network Operation Center =============================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-atm" in the body of the message From owner-freebsd-atm Tue Jul 9 12: 7:44 2002 Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4973737B400 for ; Tue, 9 Jul 2002 12:07:40 -0700 (PDT) Received: from venus.vincentjardin.net (AVelizy-102-1-1-251.abo.wanadoo.fr [193.253.255.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FD6C43E09 for ; Tue, 9 Jul 2002 12:07:37 -0700 (PDT) (envelope-from jardin@venus.vincentjardin.net) Received: by venus.vincentjardin.net (Postfix, from userid 501) id 5F5BF15039F; Tue, 9 Jul 2002 21:19:03 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Vincent Jardin To: Richard Hodges Subject: Re: HARP/ B-LLI Date: Tue, 9 Jul 2002 21:19:03 +0200 X-Mailer: KMail [version 1.3.1] Cc: freebsd-atm@FreeBSD.ORG References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020709191903.5F5BF15039F@venus.vincentjardin.net> Sender: owner-freebsd-atm@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Yes, it does. However it is just an example. What do B-LLI Layer 2, layer 3 and B-HLI SVE mean ? I do not understand what they are for ;-( Moreover, when I am looking the HARP source code, it looks like any LLC/SNAP (OUI, NLPID, ...) header should be set with either setsockopt or this sockaddr_atm structure. Which one should I use ? According to the atm_cm_connect() function, it looks like the solution is setsockopt. ... /* * Logical Link Control Attributes */ if (ap->llc.tag == T_ATM_PRESENT) { if ((ap->blli.tag_l2 != T_ATM_PRESENT) || (ap->blli.v.layer_2_protocol.ID_type != T_ATM_SIMPLE_ID) || (ap->blli.v.layer_2_protocol.ID.simple_ID != T_ATM_BLLI2_I8802) || (ap->llc.v.llc_len < T_ATM_LLC_MIN_LEN) || (ap->llc.v.llc_len > T_ATM_LLC_MAX_LEN)) { err = EINVAL; goto done; } cop->co_mpx = ATM_ENC_LLC; cop->co_llc = ap->llc; } else cop->co_mpx = ATM_ENC_NULL; ... However the atm_sock_connect() function checks that the BLLI Layer 3 could be set to T_ATM_SNAP_ID. This field is filled by a sockaddr_atm structure. ... sapl2 = &satm->satm_addr.t_atm_sap_layer2; if (sapl2->SVE_tag == T_ATM_PRESENT) { if ((sapl2->ID_type != T_ATM_SIMPLE_ID) && (sapl2->ID_type != T_ATM_USER_ID)) return (EINVAL); } else if (sapl2->SVE_tag != T_ATM_ABSENT) return (EINVAL); sapl3 = &satm->satm_addr.t_atm_sap_layer3; if (sapl3->SVE_tag == T_ATM_PRESENT) { if ((sapl3->ID_type != T_ATM_SIMPLE_ID) && (sapl3->ID_type != T_ATM_IPI_ID) && (sapl3->ID_type != T_ATM_SNAP_ID) && (sapl3->ID_type != T_ATM_USER_ID)) return (EINVAL); } else if (sapl3->SVE_tag != T_ATM_ABSENT) return (EINVAL); ... But I cannot figure out where and when the SNAP header will be added to the AAL5's PDU (CPCS) !!! Thanks, Vincent Le Lundi 8 Juillet 2002 22:45, Richard Hodges a écrit : > On Mon, 8 Jul 2002, Vincent Jardin wrote: > > I am trying to use the HARP stack in order to open an AAL5/PVC socket > > with LLC/SNAP. While I am trying to fill the sockaddr_atm structure for > > the connect() function, I am wondering how the following fields should be > > filled and what are they for ? > > * B-LLI Layer 2 SVE > > * B-LLI Layer 3 SVE > > * B_HLI SVE > > For connecting to another CLIP host, you might use: > > satm->satm_addr.t_atm_sap_layer2.SVE_tag = T_ATM_PRESENT; > satm->satm_addr.t_atm_sap_layer2.ID_type = T_ATM_SIMPLE_ID; > satm->satm_addr.t_atm_sap_layer2.ID.simple_ID = T_ATM_BLLI2_I8802; > > satm->satm_addr.t_atm_sap_layer3.SVE_tag = T_ATM_ABSENT; > satm->satm_addr.t_atm_sap_appl.SVE_tag = T_ATM_ABSENT; > > Does this help? > > -Richard > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-atm" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-atm" in the body of the message