antonio1 n00b
Joined: 06 May 2004 Posts: 17
|
Posted: Wed Jul 21, 2004 2:53 pm Post subject: terminali slave e pppd |
|
|
Ciao a tutti,
devo lanciare in pppd in esecuzione su un terminale slave, cioe un terminale che viene creato in associazione ad un terminale master con la seguente chiamata:
openpty(&fdm, &fds, device, NULL, NULL)
fdm e' il file descriptor del terminale master
fds e' il file descriptor del terminale slave
device e' il nome del terminale slave.
Il terminale slave viene creato al momento della esecuzione e quando il programma termina non esiste piu'. Ad esempio
device = /dev/pts/80
Il problema si verifica quando devo lanciare il pppd su terminale slave, secondo quanto o letto sulla rivista Linux Magazine di giugno questo dovrebbe comportarsi come se si trattasse di un modem, ma questo non avviene. Esso mi risponde cosi':
/usr/sbin/pppd: unrecognized option '/dev/pts/80'
pppd version 2.4.1
Usage: /usr/sbin/pppd [ options ], where options are:
<device> Communicate over the named device
<speed> Set the baud rate to <speed>
<loc>:<rem> Set the local and/or remote interface IP
addresses. Either one may be omitted.
asyncmap <n> Set the desired async map to hex <n>
auth Require authentication from peer
connect <p> Invoke shell command <p> to set up the serial line
crtscts Use hardware RTS/CTS flow control
defaultroute Add default route through interface
file <f> Take options from file <f>
modem Use modem control lines
mru <n> Set MRU value to <n> for negotiation
See pppd( for more options.
Cosa posso fare?
Ciao e grazie da Antonio |
|