Re: DCD and EOF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 27, 2012 at 07:49:32PM -0300, Edgard Lima wrote:
> So where is this EOF check in the PPPD code?

The read() calls in read_packet() (pppd/sys-linux.c) will return 0
on EOF.

> How could I be sure the serial device driver answer with EOF when DCD
> line is up? Could you please point out this on serial driver code?

In the Linux kernel, ppp_asynctty_hangup() should get called when DCD
is deasserted.  That should cause a 0-length skbuff to get queued up
in the receive queue, which will cause the read() in pppd to return 0,
which is the normal EOF indication.

Are you observing that pppd is not noticing when DCD gets deasserted?
If so, what kernel version are you using (I presume it's Linux since
you're asking on the linux-ppp mailing list), and what version of pppd?

Paul.
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux