I am found that the
local option is seems to allow ignoring a pins(at least a few), so I should use it for an unix sockets.
But it seems that I misunderstanding a few the job of a pppd -- my mind was too tied to my localized problem. As I saw, it is initially was created for a dialup connections. So, if I bind a pppd to a serial, all the packets that has come there will be unwrapped from PPP/IP/..., and redirected to some port with my application. As I understand this could be only done by creating a new network interface by the pppd. But if I issue
Code:
pppd local -detach /dev/ttyS4
no new interface shown in
ifconfig output. More over, after some time the pppd just exits with an error, like this
Code:
$ pppd local -detach /dev/ttyS4
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS4
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup