Use kernel termios struct (?!?)
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <syslog.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
#include <asm/termbits.h>
|
||||
#include <linux/sockios.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -601,7 +601,7 @@ ttynvt_ioctl(fuse_req_t req, int cmd, void *arg,
|
||||
|
||||
memcpy(&tio, in_buf, in_bufsz);
|
||||
|
||||
speed = cfgetospeed(&tio);
|
||||
speed = tio.c_cflag & (CBAUD | CBAUDEX);
|
||||
val = htonl(baudrate(speed));
|
||||
telnet_rfc2217_cfg(tty->tn, TNS_SET_BAUDRATE, &val, 4);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user