Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2003 18:11:26 +0400
From:      Gleb Smirnoff <glebius@cell.sick.ru>
To:        freebsd-net@freebsd.org
Subject:   ng_ppp: how to send NGM_PPP_SET_CONFIG?
Message-ID:  <20030627141126.GA13409@cell.sick.ru>

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



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