Main index | Section 4 | Options |
#include <netgraph/ng_sppp.h>
An sppp node has a single hook named downstream. Usually it is connected directly to a device driver hook.
The sppp nodes support the Berkeley Packet Filter, bpf(4).
downstream | |
The connection to the synchronous line. | |
NGM_SPPP_GET_IFNAME ( getifname) | |
Returns the name of the associated interface as a NUL-terminated ASCII string. Normally this is the same as the name of the node. | |
Unlike most other node types and like ng_iface(4) does, an sppp node does not go away when all hooks have been disconnected; rather, an explicit NGM_SHUTDOWN control message is required.
ngctl mkpeer cx0: sppp rawdata downstream
Now you have the sppp0 interface (if this was the first sppp node) which can be accessed via ifconfig(8) as a normal network interface, or via spppcontrol(8) as an sppp(4) interface.
For complex networking topologies you may want to look at net/mpd port.
NG_SPPP (4) | October 22, 2021 |
Main index | Section 4 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | With features like these, who needs bugs? | ” |
— Henry Spencer |