ng_ppp: how to send NGM_PPP_SET_CONFIG?
Gleb Smirnoff
glebius at cell.sick.ru
Fri Jun 27 07:11:32 PDT 2003
Hi!
I'm trying to make a WAN card (Tau-PCI) to work
via netgraph. I have:
[cp0]<rawdata> <-> <link0>[ppp0]<inet> <-> <inet>[ng0]
cp0 is node written by Cronyx (www.cronyx.ru) for their WAN
adapters. ppp0 is ng_ppp and ng0 is ng_iface.
Starting sequence is like this:
ngctl <<
mkpeer iface dummy ipx
msg ng0: point2point {};
mkpeer .:dummy ppp inet inet
name .:dummy.inet ppp0
connect ppp0: cp0: link0 rawdata
ifconfig ng0 x.x.x.x x.x.x.y up
Trying to ping x.x.x.y i get: Device not configured
Trying to ping x.x.x.x i get: No route to host
If I connect to ppp0's bypass hook, I see data coming in.
In ng_ppp(4) it is said that node needs to be configured first, but
I can't find the way to send NGM_PPP_SET_CONFIG message in ASCII form.
--
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
More information about the freebsd-net
mailing list