Linux-kernel mailing list archive 1999-34,: Re: Use of setserial/setrocket to set SPD_* flags is deprecated

# Re: Use of setserial/setrocket to set SPD_* flags is deprecated

Linux Lists (lists@cyclades.com)
Fri, 27 Aug 1999 11:47:43 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Keith Owens: "Re: Oops on 2.2.11"
- Previous message: Dan Hollis: "Re: Cache incoherencies"

On Fri, 27 Aug 1999, Simon Huggins wrote:
>
> I've been having problems for a while now with setserial.
>
> My PPP script looks something like this:
>
> /bin/setserial /dev/modem spd_vhi
> exec /usr/sbin/pppd /dev/modem 38400 \
> $LOCAL_IP:$REMOTE_IP \
> connect $DIALER_SCRIPT
>
> And this generates the following kernel message:
>
> Aug 22 10:24:48 skinner kernel: Use of setserial/setrocket to set
> SPD_* flags is deprecated
> Aug 22 10:24:49 skinner pppd[2904]: pppd 2.3.5 started by root, uid 0
> Aug 22 10:24:49 skinner kernel: Use of setserial/setrocket to set
> SPD_* flags is deprecated
> Aug 22 10:25:16 skinner pppd[2904]: Serial connection established.
> Aug 22 10:25:17 skinner pppd[2904]: Using interface ppp0
> Aug 22 10:25:17 skinner pppd[2904]: Connect: ppp0 <--> /dev/modem
>
> Anyone any ideas?

Change your script to:

exec /usr/sbin/pppd /dev/modem 115200 \
$LOCAL_IP:$REMOTE_IP \
connect $DIALER_SCRIPT

The use of setserial is only necessary for applications that do not
support speeds above 38400 declared directly as parameters. As this is
not the case of your pppd version, you can safely call it with the
'115200' parameter directly.

Regards,
Ivan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Keith Owens: "Re: Oops on 2.2.11"
- Previous message: Dan Hollis: "Re: Cache incoherencies"