netgraph cpcsinit + vcc parrameters
Harti Brandt
harti at freebsd.org
Wed Sep 8 01:11:36 PDT 2004
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
More information about the freebsd-net
mailing list