Date: Sun, 07 Sep 1997 19:23:46 -0400 (EDT) From: Christian Fortin <cfortin@ec.camitel.com> To: FREEBSD-HACKERS@freebsd.org Subject: Big Bug with: Cyclade serial board + TUN. Message-ID: <XFMail.970907193405.cfortin@ec.camitel.com> Resent-Message-ID: <199709072334.TAA18734@ ec.camitel.com>
next in thread | raw e-mail | index | archive | help
Somebody on this news group have an idea about where is the problem ? ........................................................ >>We have problem with the Cylcom 16Ye ISA serial board with DB25 boxe and TUN. >>It work fine in the FreeBSD 2.2-GAMMA version. > >I don't know what was in 2.2-GAMMA - it wasn't tagged :-(. With CVSUP we localised when the source have stop to work. it's: 1997.06.16.13.26.26 1997 june 16, 13h26 26s. > >>But with 2.2.2 and 2.2-970618-RELENG it not work. >>When I use the Cyclade in terminal mode, everything work fine. >>When I use with pppd it work fine also. >> >>But when I use it with TUN, we have a proble,: >>The first time, we can connect in TUN. >>When I hangup, the modem also hangup but the ppp process stay active in >memory. >>When I retry to connect on the modem, the modem answer but never give the >login >>prompt. Because the process has not been killed by the hangup. > >The cy driver in early versions of 2.2 had buggy carrier detect handling, >mainly involving CLOCAL mode. Apparently ppp depended on these bugs. >CLOCAL mode prevents normal hangup processing (of killing the process group >and returning end of file for subsequent reads). In terminal mode, CLOCAL >is usually not set and processes get killed by hangups. Similarly for >pppd in its default "modem" mode. OTOH, ppp sets CLOCAL and depends on >polling the carrier status using TIOCMGET. This polling used to be broken. > Maybe what you say is true. But we have an other cue. In the main() func. of the name.c., if we remove the two close(), it work fine. *************** *** 481,488 **** --- 491,501 ---- if_filename, strerror(errno)); VarTerm = 0; /* We know it's currently stdout */ + + #ifndef USE_CYCLOM_16YE_ISA close(0); close(2); + #endif #ifdef DOTTYINIT if (mode & (MODE_DIRECT | MODE_DEDICATED)) We cannot try somthing because our two clycloms 16 are in a big production serve r . And we have not enough $ for buy an other just for make some tests... If I am able to put a hand on an other Cyclom 16, I will be OK to debug it. But I dont know where I will find it in Quebec City, Canada. ( I program better in C then I talk english... ;-) ) Give me some news if you can find a trace of the problem with more precision. If I do this modification, it work... But I dont know why ! >>I have aplied the latest CVS sup, the problem is still there. >> >>I think the problem is in the Cyclom driver. >>... >>If I want to run in TUN, I must replace the standard TUN by the >> old 2.2-GAMMA TUN on my FreeBSD 2.2-970618-RELENG. > >I think the problem is in ppp :-). > ---------------------------------- E-Mail: Christian Fortin <cfortin@ec.camitel.com> Date: 07-Sep-97 Heure: 19:23:46 ##############################################--------+ Electro-Conception tel:(418) 872-6641 | 3665 Croisset fax:(418) 872-9198 | Quebec,P.Q. www.ec.camitel.com/ec | G1P-1L4 | /--|<|--WM--|(--J Canada -----------------L---WM-----< \----1 --- -
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.970907193405.cfortin>