path: root/c/src/exec/libnetworking/net/if_pppvar.h
diff options
authorJoel Sherrill <>2002-03-27 14:36:07 +0000
committerJoel Sherrill <>2002-03-27 14:36:07 +0000
commitf4c118d7a32370516b0871920b36002895f14f1d (patch)
treed071b48cfc44a1f0e9c7aab43489f0507caa3eb1 /c/src/exec/libnetworking/net/if_pppvar.h
parent90f30c8c145117851c10bda31235fac1b4fdd8a7 (diff)
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.
Diffstat (limited to 'c/src/exec/libnetworking/net/if_pppvar.h')
1 files changed, 1 insertions, 0 deletions
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;