Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
terminali slave e pppd
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
antonio1
n00b
n00b


Joined: 06 May 2004
Posts: 17

PostPosted: Wed Jul 21, 2004 2:53 pm    Post subject: terminali slave e pppd Reply with quote

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(8) for more options.

Cosa posso fare?

Ciao e grazie da Antonio
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum