]> git.ozlabs.org Git - ppp.git/commit
pppd: Add support for arbitrary baud rates via BOTHER on Linux (#278)
authorpali <7141871+pali@users.noreply.github.com>
Sat, 5 Jun 2021 01:43:24 +0000 (03:43 +0200)
committerGitHub <noreply@github.com>
Sat, 5 Jun 2021 01:43:24 +0000 (11:43 +1000)
commitd65f6713c8514b016629b87d44d5154d70776f7b
treef02ef3434a009522523feb63c8450aed4d057194
parent5749374dc2accc607b1aa2b3a4c6c71c0fb9f5cf
pppd: Add support for arbitrary baud rates via BOTHER on Linux (#278)

Most Linux architectures and drivers support arbitrary baud rate BOTHER
values via TCGETS2 and TCSETS2 ioctls in struct termios2.

This patch implements support for BOTHER and struct termios2 which allows
pppd to use any baud rate on Linux systems where architecture and drivers
have support for it.

By default standard values are used.

Support for BOTHER is enabled during compilation when header files have
appropriate definitions of TCGETS2 and TCSETS2 ioctls.

Because there is no glibc support for BOTHER and struct termios2 yet, pppd
defines own BOTHER macro and struct termios2.

Signed-off-by: Pali Rohár <pali@kernel.org>
pppd/pppd.8
pppd/sys-linux.c