From owner-freebsd-net@FreeBSD.ORG Wed Sep 8 08:11:36 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 423DB16A4D1 for ; Wed, 8 Sep 2004 08:11:36 +0000 (GMT) Received: from n33.kp.t-systems-sfr.com (n33.kp.t-systems-sfr.com [129.247.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DF5043D46 for ; Wed, 8 Sep 2004 08:11:35 +0000 (GMT) (envelope-from harti@freebsd.org) Received: from n81.sp.op.dlr.de (n81g.sp.op.dlr.de [129.247.163.1]) i888BV2577652; Wed, 8 Sep 2004 10:11:31 +0200 Received: from zeus.nt.op.dlr.de (zeus.nt.op.dlr.de [129.247.173.3]) i888BUI66824; Wed, 8 Sep 2004 10:11:30 +0200 Received: from beagle.kn.op.dlr.de (opkndnwsbsd178 [129.247.173.178]) by zeus.nt.op.dlr.de (8.11.7+Sun/8.9.1) with ESMTP id i888BTe20950; Wed, 8 Sep 2004 10:11:30 +0200 (MET DST) Date: Wed, 8 Sep 2004 10:11:30 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt@beagle.kn.op.dlr.de To: donatas In-Reply-To: <03e801c49570$af734760$9f90a8c0@donatas> Message-ID: <20040908100728.P23565@beagle.kn.op.dlr.de> References: <03e801c49570$af734760$9f90a8c0@donatas> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: netgraph cpcsinit + vcc parrameters X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Harti Brandt List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 08:11:36 -0000 On Wed, 8 Sep 2004, donatas wrote: d>hello, d>I use netgraph for : d> d>hatm: <-------------> atmllc <--------->em d> d>also I use vcc chanels: d> d>ngctl msg hatm0: cpcsinit {name="sig1" aal=5 vci=55} d> d>I need to set some more vcc parameters ( ubr, pixel-rate, burst-size) d> d>it was possible to do using atmconfig d>( atmconfig natm add 1.1.1.1 hatm0 0 55 LLC/SNAP vbr 1331 1330 50) d> d>but how to realize those settings using cpcsinit ? it sets some default values That's easy. Have a look at /usr/include/netgraph/atm/ng_atm.h and locate the definition of NGM_ATM_CPCS_INIT_INFO. There you see all the applicable paremeters to cpcsinit. 'traffic' is the traffic type - see /usr/include/net/if_atm.h for the ATMIO_TRAFFIC_* values. Note however, that for UBR there is no sense in specifying PCR or burst size. Perhaps you mean VBR? If you need VBR you must use an IDT77252 based card - the others don't support VBR. harti