Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 2004 10:11:30 +0200 (CEST)
From:      Harti Brandt <harti@freebsd.org>
To:        donatas <donatas@lrtc.net>
Cc:        freebsd-net@freebsd.org
Subject:   Re: netgraph cpcsinit + vcc parrameters
Message-ID:  <20040908100728.P23565@beagle.kn.op.dlr.de>
In-Reply-To: <03e801c49570$af734760$9f90a8c0@donatas>
References:  <03e801c49570$af734760$9f90a8c0@donatas>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040908100728.P23565>