pppd cbcp 2.4.0 + kernel 2.4.32

pppd cbcp 2.4.0 + kernel 2.4.32

Post by Alexey Zhili » Mon, 23 Jan 2006 03:54:11


Can anybody help me please set up pppd with callback (cbcp).
This one: http://sourceforge.net/projects/pppcbcp/

The same configuration (some old Slackware)
pppd 2.4.0 + mgetty + rocketport (4 ports) on ttyR0
with 2.2.16 kernel worked for me last years.

Now I have to upgrade kernel and it doesn't work.

The first connection is ok. User can login and enter phone
number. After that pppd doesn't want to call back.

syslog has lines:
pppd[384]: tcgetattr: No such device or address(6)
pppd[384]: tcsetattr: No such device or address

pppd[384]: pppd 2.4.0with Callback-Server extension started
  by root, uid 0
pppd[384]: device name: /dev/ttyR0
pppd[384]: Using interface ppp0
pppd[384]: Connect: ppp0 <--> /dev/ttyR0
gate /etc/hotplug/net.agent: assuming ppp0 is already up

pppd[384]: Hangup (SIGHUP)
pppd[384]: Modem hangup
pppd[384]: Connection terminated.
pppd[384]: device name: /dev/ttyR0
pppd[384]: Exit.

pppd[384]: rcvd [PAP AuthReq id=0x8 user="user" password=<hidden>]

pppd[384]: sent [PAP AuthAck id=0x8 "Login ok"]

pppd[384]: cbcp_open

pppd[384]: cbcp_sendreq cb_allowed=4

pppd[384]: cbcp_sendreq CONF_USER

pppd[384]: sent [CBCP Request id=0x1 < UserDefined delay = 5>]

pppd[384]: rcvd [CBCP Response id=0x1 < UserDefined delay = 12 number =
pppd[384]: peer will callback the client on: 999999
pppd[384]: cbcp_sendack cb_type=4

pppd[384]: cbcp_sendack CONF_USER

pppd[384]: sent [CBCP Ack id=0x1 < UserDefined delay = 12 number = 999999>]
pppd[384]: rcvd [LCP TermReq id=0x5

pppd[384]: sent [LCP TermAck id=0x5]

pppd[384]: cbcp_start_callback running

Error was written to syslog after this line.

I'm not a linux developer but looks like error happens
in sys-linux.c "set_up_tty" function.

     setdtr(tty_fd, 1);
     if (tcgetattr(tty_fd, &tios) < 0) {
        if (!ok_error(errno))
            fatal("tcgetattr: %m(%d)", errno);

And I don't really understand if tty was initialized
at start why it can't be initialized again for callback.

Any help is very appreciated, thank you,


1. 2.4.32+CONNMARK support

I'm trying to patch my kernel 2.4.32 to have support for iptables target
CONNMARK to use ipt_p2p module. I've read, that that patch is avaliable
in patch-o-matic-ng. I've downloaded patch-o-matic-ng-20060805 but when
i run:
# ./rumme CONNMARK

all others patch are added but no connmark.
When I list content of this patch directory I can not find a word about
Can anyone help with it ? Where can I get patch for my kernel to have
support for CONNMARK target.

2. How do they do that?

3. Compiling pppd with cbcp (was Re: can't compile pppd)

4. Editing PATH

5. pppd with mschap80 and cbcp support.

6. Telephone wire TWO WIRE null modem cable?

7. Slakware /W kernel 2.0.30 to RH5 W Kernel 2.0.32

8. Tape Drive for Solaris 7 install

9. 64-bit kernel vs. 32-bit kernel

10. Upgrading from 32-Bit Sparc-Kernel to 64-Bit sparcv9-Kernel??

11. Can I downgrade 64-bit kernel to 32-bit kernel

12. HELP: pppd swaps a LOT with 32 mb ram!!!

13. Jul 4 12:28:32 sisterray pppd[1669]: CCP: timeout sending Config-Requests