From f4c118d7a32370516b0871920b36002895f14f1d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 27 Mar 2002 14:36:07 +0000 Subject: 2002-03-27 Ilya Alexeev * PR162 * net/if_ppp.c ppp_txdaemon(), net/if_pppvar.h pppstart(): Local variables must not be used in a device write routines. Now ppp_softc structure have own character for writing to device (sc_outchar). I think that converting local variables to static is not a right solution, because problems will occur in the case of two or more ppp instances. * net/ppp_tty.c pppstart(): Type of the ioffset variable must be u_long, otherwise in the case of the big output packet endless loop may occur. --- c/src/exec/libnetworking/net/if_pppvar.h | 1 + 1 file changed, 1 insertion(+) (limited to 'c/src/exec/libnetworking/net/if_pppvar.h') diff --git a/c/src/exec/libnetworking/net/if_pppvar.h b/c/src/exec/libnetworking/net/if_pppvar.h index 374fac3b11..2b4cd7d9de 100644 --- a/c/src/exec/libnetworking/net/if_pppvar.h +++ b/c/src/exec/libnetworking/net/if_pppvar.h @@ -105,6 +105,7 @@ struct ppp_softc { short sc_outfcslen; /* length of output fcs data */ u_char sc_outfcsbuf[8]; /* output packet fcs buffer */ u_char *sc_outbuf; /* pointer to output data */ + u_char sc_outchar; rtems_id sc_rxtask; rtems_id sc_txtask; -- cgit v1.2.3