From owner-freebsd-hackers Sun Feb 2 01:21:14 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA09966 for hackers-outgoing; Sun, 2 Feb 1997 01:21:14 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id BAA09960 for ; Sun, 2 Feb 1997 01:21:11 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id KAA12702 for freebsd-hackers@freebsd.org; Sun, 2 Feb 1997 10:21:09 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id KAA25568; Sun, 2 Feb 1997 10:18:50 +0100 (MET) Message-ID: Date: Sun, 2 Feb 1997 10:18:50 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@freebsd.org Subject: Re: Mounting CD-ROM when data not on first track References: <199702020055.RAA07106@phaeton.artisoft.com> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199702020055.RAA07106@phaeton.artisoft.com>; from Terry Lambert on Feb 1, 1997 17:55:19 -0700 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Terry Lambert wrote: > I think I lean more towards "the first data track of any session is the > first track of the session". While this sentence is self-contradictionary, i get your point. > > Because it always starts at the beginning, and covers the entire data > > area. You could look at it as if it were a huge sparse file in this > > special situation: seek to the right location, and you'll be able to > > read the data. > > But it's not a data area... or rather, it's not a 'data' area. Doesn't matter. Disk frame numbers don't distinguish between data or audio areas. Things like the CD9660 code are meant in terms of disk frame numbers however, so you have to hole out the !data areas. They are valid frame numbers (block numbers in the SCSI sense), it's only that you cannot READ them. > Does anyone else have this CD? Do you have a MacOS or SunOS or older > Windows box with ASPI or proprietary CDROM driver you can try it in? > If the non-Joliet aware OS recognizes it, I'd think that the FreeBSD > interpretation is probably wrong. FreeBSD doesn't have any interpretation at all by now, so you don't need this contest. Its only `interpretation' by now is ``all the world's a data disk from the beginning through the end, and we assume the directory tree won't touch outside the disk area''. > The software we run on our mastering burners here knows about writing > additional sessions. We are looking forward to your submission. Please, contact ports@freebsd.org to make it a new port. Uh, it's not available in source form? Too bad. :-)] > It seems that > Microsoft (stupidly) can not force a program image to be entirely > resident in memory, and will blue-screen if the image is from a disc > that has been removed, and it wants to page from it. Why do you call this `stupid'? That's the same way every Unix does. It's only that they probably miss the mount philosophy, so they could have locked the medium until it will no longer be required for paging. > Why would you need 99 sub-devices? Because it's the most logical way. I don't wanna enforce a policy (like ISO-9660) in the device driver, since that's a matter of the filesystem code. A non-CD9660 CD for example might contain up to 99 UFS filesystems, one per each track, which are fully self-contained (i.e., with block numbers relative to the start of the track, as any UFS used to have). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-hackers Sun Feb 2 02:32:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA11908 for hackers-outgoing; Sun, 2 Feb 1997 02:32:15 -0800 (PST) Received: from math.uni-muenster.de (ESCHER.UNI-MUENSTER.DE [128.176.182.85]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id CAA11903 for ; Sun, 2 Feb 1997 02:32:11 -0800 (PST) Received: from charlie.uni-muenster.de by math.uni-muenster.de (SMI-8.6/SMI-SVR4/OBjP1.13-s) id LAA03184; Sun, 2 Feb 1997 11:32:05 +0100 Received: (from pundtt@localhost) by charlie.uni-muenster.de (8.7.5/8.6.9) id LAA01310; Sun, 2 Feb 1997 11:30:06 +0100 Message-ID: X-Mailer: XFMail 1.1-alpha [p0] on Linux MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.1-alpha.p0.Linux:970202113006:1277=_" In-Reply-To: Date: Sun, 02 Feb 1997 11:20:51 +0100 (MET) X-Face: Qbvq0<-<,#/(6w/v\n|F0m?INEfHo]x.v|I1QkVq$LI}bLdhveQBab.a? I%*PBhG5L;J}v2{]T=0AN}6=8IA~)@JexMU To: Simon Shapiro Subject: RE: Very Strange Mail Problem Cc: djb-qmail@koobera.math.uic.edu, xfmail@Burka.NetVision.net.il, hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This message is in MIME format --_=XFMail.1.1-alpha.p0.Linux:970202113006:1277=_ Content-Type: text/plain; charset=iso-8859-1 On 02-Feb-97 Simon Shapiro wrote: | Attached are two pieces of email. If I feed either one of them to xfmail | 1.0 (or later, did not try older) all is well. | | If I concatenate them, xfmail dumps core on sig 11. [...] | I have no clue why this happens, except that the Subject: line appears | long. So, if any of you can help, I will appreciate it very much. it's an XFMail bug, indeed caused by the long "Subject:" line; attached is a patch that fixes the problem. Thomas Thomas Pundt ------------------------ http://wwwmath.uni-muenster.de/~pundtt/ Westfaelische Wilhelms-Universitaet | pundtt@math.uni-muenster.de Einsteinstr. 62, D-48149 Muenster | Edith-Stein-Str. 9, D-48149 Muenster (+49) 251 - 83 33747 | privat: (+49) 251 - 273305 --_=XFMail.1.1-alpha.p0.Linux:970202113006:1277=_ Content-Disposition: attachment; filename="diff" Content-Transfer-Encoding: 7bit Content-Description: diff Content-Type: text/plain; charset=us-ascii; name=diff; SizeOnDisk=343 diff -urN xfmail/ui/xfmail.c xfmail~/ui/xfmail.c --- xfmail/ui/xfmail.c Mon Dec 30 17:40:13 1996 +++ xfmail~/ui/xfmail.c Sun Feb 2 11:18:47 1997 @@ -178,7 +178,7 @@ va_start(ap); #endif - vsprintf(buf, fmt, ap); + vsnprintf(buf, 255, fmt, ap); if ((flags == MSG_FATAL) || (flags == MSG_WARN)) { #if defined(_AIX) || defined(SunOS) --_=XFMail.1.1-alpha.p0.Linux:970202113006:1277=_-- End of MIME message From owner-freebsd-hackers Sun Feb 2 02:58:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA13578 for hackers-outgoing; Sun, 2 Feb 1997 02:58:10 -0800 (PST) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id CAA13563 for ; Sun, 2 Feb 1997 02:58:06 -0800 (PST) Received: from freebie.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0vqzcW-000Qa5C; Sun, 2 Feb 97 11:58 MET Received: (grog@localhost) by freebie.lemis.de (8.8.4/8.6.12) id LAA10731; Sun, 2 Feb 1997 11:29:48 +0100 (MET) From: grog@lemis.de Message-Id: <199702021029.LAA10731@freebie.lemis.de> Subject: Re: bisdn In-Reply-To: <199702020005.RAA06968@phaeton.artisoft.com> from Terry Lambert at "Feb 1, 97 05:05:42 pm" To: terry@lambert.org (Terry Lambert) Date: Sun, 2 Feb 1997 11:29:48 +0100 (MET) Cc: hackers@freebsd.org (FreeBSD Hackers) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Reply-to: grog@lemis.de (Greg Lehey) WWW-Home-Page: http://www.FreeBSD.org/~grog X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Terry Lambert writes: >>> At least I don't know of any ISP's that offer other ways for >>> TCP/IP connection. >> >> There aren't too many in the USA. That doesn't mean that there >> shouldn't be. I believe most ISDN routers can be set up to run >> without PPP. Certainly the ISPs over here, nearly all of who offer >> transparent HDLC, use the same routers as are used in the USA. > > The default hardware in the US doesn't do the HDLC for you. Oh really? Do you get D channels? What do you do with them? > Think about what hardware the phone company provides for an ISDN > user over there, but doesn't provide for an ISDN user over here... An NT1? It doesn't do HDLC. Greg From owner-freebsd-hackers Sun Feb 2 07:40:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA22880 for hackers-outgoing; Sun, 2 Feb 1997 07:40:56 -0800 (PST) Received: from chai.plexuscom.com (chai.plexuscom.com [207.87.46.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA22874 for ; Sun, 2 Feb 1997 07:40:52 -0800 (PST) Received: from chai.plexuscom.com (localhost [127.0.0.1]) by chai.plexuscom.com (8.8.4/8.6.12) with ESMTP id KAA21607; Sun, 2 Feb 1997 10:39:52 -0500 (EST) Message-Id: <199702021539.KAA21607@chai.plexuscom.com> To: "Eric J. Chet" Cc: Terry Lambert , hackers@FreeBSD.ORG Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta In-reply-to: Your message of "Fri, 31 Jan 1997 23:42:36 EST." Date: Sun, 02 Feb 1997 10:39:52 -0500 From: Bakul Shah Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Terry Lambert writes: > > g++ -frepo -c x.cc <========== this succeeds > > g++ -frepo -o x x.o <========== this fails ... > Clearly, the template class definition > > template > class list ... { > ... > }; > > is not in scope. The header files you have included are apparently > not sufficient. If this were the case the compile phase would fail but it does not. The file includes a file where the list template is defined. > The -frepo patches don't work on our version of the g++ and > ld. I assume ld is the problem. I haven't had the time to take a look > to see what needs to be changed. The -frepo patch from Cygnus when > applied, should create a set of *.ii one for each source file complied > from g++. The *.ii files specify all templates that need to be > instantiated before linking can take place. I believe there is a collect2 > module that performs the instantiations task. I started with the *stock* gcc-2.7.2 distribution (+ 2.7.2-2.7.2.1 diff), not the one in the FreeBSD source tree. The -frepo patch generates a .rpo file. In the test case I posted this .rpo file contains lines like A -frepo -c ... O distance_type__FRCQ2t4list1Zi8iterator O splice__t4list1ZiGQ2t4list1Zi8iteratorRt4list1ZiT1T1 O splice__t4list1ZiGQ2t4list1Zi8iteratorRt4list1ZiT1 O splice__t4list1ZiGQ2t4list1Zi8iteratorRt4list1Zi ... The ld in /usr/local/lib/gcc-lib/i386-unknown-freebsd2.2/2.7.2.1/ is apparently the collect2 module, which, I presume, looks at the .rpo files to find out what classes need to be instantiated. At I indicated earlier, g++ -v shows this is the ld called. Perhaps this ld fails? That is where I will look next. > I do know that if you build g++ with John Polstra's ELF patches > and the -frepo patches. Then template repository works as advertised. Where do I find John's ELF patches? > On the other hand, the only thing you lose by not having the > repository with our native compiler is executable size. The compiler > will instantiated every template used in a object file and include it in > that object file. Meaning, you can have duplicate template instantiations > across different object files. This appears not to be the case. Are there any flags which make this possible? Does libg++-2.7.1 have to be compiled with any special flags or defines? Thanks for your responses. -- bakul From owner-freebsd-hackers Sun Feb 2 07:41:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA22918 for hackers-outgoing; Sun, 2 Feb 1997 07:41:30 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA22913 for ; Sun, 2 Feb 1997 07:41:29 -0800 (PST) Received: from terminator.informatik.ba-stuttgart.de (terminator.informatik.ba-stuttgart.de [141.31.1.21]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id HAA10928 for ; Sun, 2 Feb 1997 07:41:26 -0800 (PST) Received: from helbig.informatik.ba-stuttgart.de (helbig.informatik.ba-stuttgart.de [141.31.166.22]) by terminator.informatik.ba-stuttgart.de (8.7.6/8.7.3) with ESMTP id PAA03685 for ; Sun, 2 Feb 1997 15:30:20 +0100 Received: (from helbig@localhost) by helbig.informatik.ba-stuttgart.de (8.8.5/8.8.4) id QAA00202 for hackers@freebsd.org; Sun, 2 Feb 1997 16:30:47 +0100 (MET) From: Wolfgang Helbig Message-Id: <199702021530.QAA00202@helbig.informatik.ba-stuttgart.de> Subject: CMD640b flaw workaround To: hackers@freebsd.org Date: Sun, 2 Feb 1997 16:30:46 +0100 (MET) X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, This is a patch for wd.c to make the broken CMD640b work with both IDE channels under FreeBSD. I tested it with ATAPI-CDROM - HD's on both channels and also with HD's an both channels. You have to put options "CMD640" in your kernel configuration file to enable the needed serialization for the CMD640. Sorry Jörg, I know I should have used the driver flags, but this is a snapshot anyway. I guess the best way to enable this code is to use the pci-probing. It does recognize the CMD640. Please test this patch and tell about the results. Wolfgang Helbig Index: wd.c =================================================================== RCS file: /usr/cvsroot/src/sys/i386/isa/wd.c,v retrieving revision 1.122 diff -r1.122 wd.c 130a131,132 > #define PRIMARY 0 > 239a242,245 > #ifdef CMD640 > static int wdcports[NWDC]; > static int atapictrlr; > #endif 362a369,372 > #ifdef CMD640 > if (dvp->id_unit == PRIMARY) > TAILQ_INIT( &wdtab[PRIMARY].controller_queue); > #else 363a374 > #endif 385a397,399 > #ifdef CMD640 > wdcports[du->dk_ctrlr] = du->dk_port; > #endif 470c484,490 < atapi_attach (dvp->id_unit, unit, dvp->id_iobase); --- > if (atapi_attach (dvp->id_unit, unit, dvp->id_iobase)) { > #ifdef CMD640 > wdcports[unit] = dvp->id_iobase; > atapictrlr = dvp->id_unit; > printf("wd: atapictrlr = %d\n", atapictrlr); > #endif > } 476a497,499 > #ifdef CMD640 > wdtab[PRIMARY].b_active = 2; > #else 477a501 > #endif 551a576,578 > #ifdef CMD640 > if (wdtab[PRIMARY].b_active == 0) > #else 552a580 > #endif 613a642,644 > #ifdef CMD640 > TAILQ_INSERT_TAIL( &wdtab[PRIMARY].controller_queue, bp, b_act); > #else 614a646 > #endif 639a672,677 > #ifdef CMD640 > if (wdtab[PRIMARY].b_active == 2) > wdtab[PRIMARY].b_active = 0; > if (wdtab[PRIMARY].b_active) > return; > #else 644d681 < #endif 645a683,687 > #endif > #endif > #ifdef CMD640 > bp = wdtab[PRIMARY].controller_queue.tqh_first; > #else 646a689 > #endif 648a692,694 > #ifdef CMD640 > if (atapi_start && atapi_start (atapictrlr)) > #else 649a696 > #endif 650a698,700 > #ifdef CMD640 > wdtab[PRIMARY].b_active = 3; > #else 652a703 > #endif 707a759,761 > #ifdef CMD640 > wdtab[PRIMARY].b_active = 1; /* mark controller active */ > #else 708a763 > #endif 719a775,777 > #ifdef CDM640 > if (wdtab[PRIMARY].b_errcnt && (bp->b_flags & B_READ) == 0) > #else 720a779 > #endif 866c925,929 < --- > #ifdef CMD640 > if (wdtab[PRIMARY].b_active == 2) > return; /* intr in wdflushirq() */ > if (!wdtab[PRIMARY].b_active) { > #else 869a933 > #endif 880a945,947 > #ifdef CMD640 > if (wdtab[PRIMARY].b_active == 3) { > #else 881a949 > #endif 886a955,957 > #ifdef CMD640 > wdtab[PRIMARY].b_active = 0; > #else 887a959 > #endif 891a964,966 > #ifdef CMD640 > bp = wdtab[PRIMARY].controller_queue.tqh_first; > #else 892a968 > #endif 902a979,981 > #ifdef CMD640 > wdtab[PRIMARY].b_active = 0; > #else 903a983 > #endif 944a1025,1028 > #ifdef CMD640 > if (++wdtab[PRIMARY].b_errcnt < RETRIES) { > wdtab[PRIMARY].b_active = 0; > #else 946a1031 > #endif 959a1045,1047 > #ifdef CMD640 > && wdtab[PRIMARY].b_active) { > #else 960a1049 > #endif 1001a1091,1093 > #ifdef CMD640 > if (wdtab[PRIMARY].b_active) { > #else 1002a1095 > #endif 1004a1098,1102 > #ifdef CMD640 > if (wdtab[PRIMARY].b_errcnt) > wderror(bp, du, "soft error"); > wdtab[PRIMARY].b_errcnt = 0; > #else 1007a1106 > #endif 1012a1112,1114 > #ifdef CMD640 > wdtab[PRIMARY].b_active = 0; > #else 1013a1116 > #endif 1023a1127,1129 > #ifdef CMD640 > wdtab[PRIMARY].b_active = 0; > #else 1024a1131 > #endif 1032a1140,1143 > #ifdef CMD640 > TAILQ_REMOVE(&wdtab[PRIMARY].controller_queue, bp, b_act); > wdtab[PRIMARY].b_errcnt = 0; > #else 1034a1146 > #endif 1046a1159,1161 > #ifdef CMD640 > wdtab[PRIMARY].b_active = 0; > #else 1047a1163 > #endif 1053a1170,1172 > #ifdef CMD640 > if (wdtab[PRIMARY].controller_queue.tqh_first) > #else 1054a1174 > #endif 1076a1197,1200 > #ifdef CMD640 > if (wdtab[PRIMARY].b_active == 2) > wdtab[PRIMARY].b_active = 0; > #else 1078a1203 > #endif 1247a1373,1375 > #ifdef CMD640 > wdtab[PRIMARY].b_active = 1; > #else 1248a1377 > #endif 1261a1391,1393 > #ifdef CMD640 > if (++wdtab[PRIMARY].b_errcnt < RETRIES) > #else 1262a1395 > #endif 1267a1401,1403 > #ifdef CMD640 > wdtab[PRIMARY].b_errcnt = 0; > #else 1268a1405 > #endif 1375a1513,1515 > #ifdef CMD640 > wdtab[PRIMARY].b_errcnt += RETRIES; > #else 1376a1517 > #endif 1753,1756d1893 < #if 0 < /* Mark controller active for if we panic during the dump. */ < wdtab[du->dk_ctrlr].b_active = 1; < #endif 1902a2040,2045 > #ifdef CMD640 > wdtab[PRIMARY].b_active = 2; > splx(old_ipl); > (void)splbio(); > wdtab[PRIMARY].b_active = 0; > #else 1906a2050 > #endif 1945a2090,2093 > #ifdef CMD640 > while (wdtab[PRIMARY].b_active) > tsleep((caddr_t)&wdtab[PRIMARY].b_active, PZERO - 1, wmesg, 1); > #else 1947a2096 > #endif 2022a2172,2201 > #ifdef CMD640 > int > cmd640_wait(int port) > { > int port2; > int timeout; > u_char status; > > return (0); > if (NWDC == 1) > return (0); > > if (wdcports[0] == port) > port2 = wdcports[1]; > else > port2 = wdcports[0]; > if (port2 == 0) > return (0); > for (timeout = TIMEOUT; timeout > 0; timeout--) { > status = inb(port2 + wd_status); > if (!(status & WDCS_BUSY)) > return (0); > DELAY (1000); > printf("called by port %x\n",port); > } > printf("wd: timeout on port %x\n", port2); > return (-1); > } > #endif > 2032a2212,2216 > > #ifdef CMD640 > if (cmd640_wait(wdc) != 0) > return (-1); > #endif From owner-freebsd-hackers Sun Feb 2 08:01:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA23461 for hackers-outgoing; Sun, 2 Feb 1997 08:01:12 -0800 (PST) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA23456 for ; Sun, 2 Feb 1997 08:01:09 -0800 (PST) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id RAA02957 for ; Sun, 2 Feb 1997 17:01:10 +0100 (MET) Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.8.4/8.6.9) id RAA00260 for freebsd-hackers@freefall.cdrom.com; Sun, 2 Feb 1997 17:04:14 +0100 (MET) Date: Sun, 2 Feb 1997 17:04:14 +0100 (MET) From: Christoph Kukulies Message-Id: <199702021604.RAA00260@gilberto.physik.rwth-aachen.de> To: freebsd-hackers@freefall.FreeBSD.org Subject: squid 1.1.4 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I'm in the urgent need of getting squid (1.1.4) running to serve some Win95 weenies hanging in a 192.168.1 network to let them do webbrowsing. My FreeBSD 3.0-current machine acts as an ISDN router, and is runnig the squid daemon as well as an apache httpd. If anyone out there experienced with this could he conatct me please. It looks like the squid daemon is running fine. Only when I try to connect via squid to the outside world I'm getting this: isdn-kuku> tail -f /usr/local/squid/logs/access.log 854896136.897 6655 192.168.1.126 ERR_CONNECT_FAIL/400 837 GET http://www.freebsd.org/ - SINGLE_PARENT/www-proxy.informatik.rwth-aachen.de - 854898046.079 269 192.168.1.126 ERR_CONNECT_FAIL/400 842 GET http://www.freebsd.org/ - SINGLE_PARENT/www-proxy.informatik.rwth-aachen.de - The webbroswer on the Win95 machine is always giving (61) Connection refused. This message is generated by squid. So the proxy mechanism to squid in the local network seems to work. --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-hackers Sun Feb 2 08:28:32 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA24177 for hackers-outgoing; Sun, 2 Feb 1997 08:28:32 -0800 (PST) Received: from csd.cs.technion.ac.il (csd.cs.technion.ac.il [132.68.32.8]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id IAA24170 for ; Sun, 2 Feb 1997 08:28:22 -0800 (PST) Received: from localhost (nadav@localhost) by csd.cs.technion.ac.il (8.6.11/8.6.10) with SMTP id SAA22968; Sun, 2 Feb 1997 18:23:55 +0200 X-Authentication-Warning: csd.cs.technion.ac.il: nadav owned process doing -bs Date: Sun, 2 Feb 1997 18:23:54 +0200 (IST) From: Nadav Eiron X-Sender: nadav@csd To: Wolfgang Helbig cc: hackers@FreeBSD.ORG Subject: Re: CMD640b flaw workaround In-Reply-To: <199702021530.QAA00202@helbig.informatik.ba-stuttgart.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by freefall.freebsd.org id IAA24173 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 2 Feb 1997, Wolfgang Helbig wrote: > Hi, > > This is a patch for wd.c to make the broken CMD640b work with both > IDE channels under FreeBSD. > I tested it with ATAPI-CDROM - HD's on both channels and also with > HD's an both channels. > > You have to put > options "CMD640" > in your kernel configuration file to enable the needed serialization > for the CMD640. Sorry Jörg, I know I should have used the driver flags, > but this is a snapshot anyway. I guess the best way to enable this code > is to use the pci-probing. It does recognize the CMD640. > > Please test this patch and tell about the results. > > Wolfgang Helbig > > [patch snipped] Cool! Will this work under 2.1.6R (yeah, I know, but it's a "production" machine, and while we are working on an upgrade to SCSI, it currently has a CMD640)? Nadav From owner-freebsd-hackers Sun Feb 2 09:03:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA25266 for hackers-outgoing; Sun, 2 Feb 1997 09:03:29 -0800 (PST) Received: from etinc.com (et-gw-fr1.etinc.com [204.141.244.98]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA25259 for ; Sun, 2 Feb 1997 09:03:25 -0800 (PST) Received: from dbws.etinc.com (dbws.etinc.com [204.141.95.130]) by etinc.com (8.8.3/8.6.9) with SMTP id MAA27368; Sun, 2 Feb 1997 12:07:02 -0500 (EST) Message-Id: <3.0.32.19970202121809.00697048@etinc.com> X-Sender: dennis@etinc.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Sun, 02 Feb 1997 12:18:10 -0500 To: Julian Elischer From: dennis Subject: Re: Device Driver: Almost home(?) Cc: hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 10:12 PM 2/1/97 -0800, you wrote: >OK, >here is a shell script that writes a pseudo device driver >and integrates it into your kernel. >I also attach a real device driver writing script that does the same >thing > >they both use the GENERIC config as a starting point.. >you run them as: I prefer the: Copy_a_similar_driver && search_and_replace_in_vi method..... Please, for the sake of sanity, make a pledge to keep the script up to date...LINUX has a "skeleton" driver that (at one point) was just enough out of date to drive anyone using it a little crazy! Dennis From owner-freebsd-hackers Sun Feb 2 09:16:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA25572 for hackers-outgoing; Sun, 2 Feb 1997 09:16:07 -0800 (PST) Received: from eldorado.net-tel.co.uk ([193.122.171.253]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA25567 for ; Sun, 2 Feb 1997 09:16:02 -0800 (PST) From: Andrew.Gordon@net-tel.co.uk Received: (from root@localhost) by eldorado.net-tel.co.uk (8.6.12/8.6.10) id RAA24004 for hackers@freebsd.org; Sun, 2 Feb 1997 17:15:27 GMT Received: from "/PRMD=NET-TEL/ADMD=GOLD 400/C=GB/" by net-tel.co.uk (Route400-RFCGate); Sun, 2 Feb 97 17:14:48 +0000 X400-Received: by mta "eldorado" in "/PRMD=net-tel/ADMD=gold 400/C=gb/"; Relayed; Sun, 2 Feb 97 17:14:48 +0000 X400-Received: by mta "net-tel cambridge" in "/PRMD=net-tel/ADMD=gold 400/C=gb/"; Relayed; Sun, 2 Feb 97 17:14:47 +0000 X400-Received: by "/PRMD=NET-TEL/ADMD=Gold 400/C=GB/"; Relayed; Sun, 2 Feb 97 17:14:47 +0000 X400-MTS-Identifier: ["/PRMD=NET-TEL/ADMD=Gold 400/C=GB/";hst:8655-970202171447-7D08] X400-Content-Type: P2-1984 (2) X400-Originator: Andrew.Gordon@net-tel.co.uk Original-Encoded-Information-Types: IA5-Text X400-Recipients: hackers@freebsd.org Date: Sun, 2 Feb 97 17:14:47 +0000 X400-Content-Identifier: Re(2): bisdn Message-Id: <"7527-970202171433-7459*/G=Andrew/S=Gordon/O=NET-TEL Computer Systems Ltd/PRMD=NET-TEL/ADMD=Gold 400/C=GB/"@MHS> To: hackers@freebsd.org In-Reply-To: <199702020005.RAA06968@phaeton.artisoft.com> Subject: Re(2): bisdn Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > At least I don't know of any ISP's that offer other ways for > > > TCP/IP connection. > > > > There aren't too many in the USA. That doesn't mean that there > > shouldn't be. I believe most ISDN routers can be set up to run > > without PPP. Certainly the ISPs over here, nearly all of who offer > > transparent HDLC, use the same routers as are used in the USA. > > The default hardware in the US doesn't do the HDLC for you. Think > about what hardware the phone company provides for an ISDN user > over there, but doesn't provide for an ISDN user over here... Nor does the hardware provided for you in Europe; the HDLC in question is done by the TA. In the case of the Teles/Creatix/AVM cards supported by BISDN, there are two chips of consequence on the card: one (PEB2085) does clock generation etc. to demultiplex the 3 channels, and also does HDLC decoding for the D channel; the other (82525) is a two-channel HDLC controller used to run the B channels (it can also be put in a byte-clocked mode for doing voice calls, which are one of the few things that aren't HDLC). If you do Sync PPP, those PPP packets are themselves encapsulated in HDLC frames. Even if you insist on treating the TAs like modems and running async PPP transparently over V.120 (or SLIP likewise), V.120 itself encapsulates your async data in HDLC frames (so you would have been better off doing sync PPP as you have now got double the framing overhead and increased latency). From owner-freebsd-hackers Sun Feb 2 09:31:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA26174 for hackers-outgoing; Sun, 2 Feb 1997 09:31:25 -0800 (PST) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.fr [193.56.58.253]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA26167 for ; Sun, 2 Feb 1997 09:31:18 -0800 (PST) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.fr [193.56.58.33]) by mexico.brainstorm.eu.org (8.8.4/8.8.4) with ESMTP id SAA14996 for ; Sun, 2 Feb 1997 18:30:58 +0100 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.8.4/8.6.12) with UUCP id SAA28183 for hackers@FreeBSD.ORG; Sun, 2 Feb 1997 18:30:45 +0100 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.5/keltia-uucp-2.9) id SAA18071; Sun, 2 Feb 1997 18:13:26 +0100 (CET) Message-ID: <19970202181325.OW45132@keltia.freenix.fr> Date: Sun, 2 Feb 1997 18:13:25 +0100 From: roberto@keltia.freenix.fr (Ollivier Robert) To: hackers@FreeBSD.ORG Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta References: <199702021539.KAA21607@chai.plexuscom.com> X-Mailer: Mutt 0.60,1-3,9 Mime-Version: 1.0 X-Operating-System: FreeBSD 3.0-CURRENT ctm#2997 In-Reply-To: <199702021539.KAA21607@chai.plexuscom.com>; from Bakul Shah on Feb 2, 1997 10:39:52 -0500 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk According to Bakul Shah: > > I do know that if you build g++ with John Polstra's ELF patches > > and the -frepo patches. Then template repository works as advertised. > > Where do I find John's ELF patches? Works fine although it would be nice to have gdb recognizing ELF binaries... 213 [18:11] roberto@keltia:/build/mutt-0.60> gdb ./mutt GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc... "/work/build/mutt-0.60/./mutt": not in executable format: File format not recognized 208 [18:10] roberto@keltia:/build/mutt-0.60> elf-objdump --private-headers mutt mutt: file format elf32-i386 Program Header: PHDR off 0x00000034 vaddr 0x08048034 paddr 0x08048034 align 2**2 filesz 0x000000a0 memsz 0x000000a0 flags r-x INTERP off 0x000000d4 vaddr 0x080480d4 paddr 0x080480d4 align 2**0 filesz 0x00000019 memsz 0x00000019 flags r-- LOAD off 0x00000000 vaddr 0x08048000 paddr 0x08048000 align 2**12 filesz 0x0002a593 memsz 0x0002a593 flags r-x LOAD off 0x0002a598 vaddr 0x08073598 paddr 0x08073598 align 2**12 filesz 0x0000230c memsz 0x00005109 flags rw- DYNAMIC off 0x0002c814 vaddr 0x08075814 paddr 0x08075814 align 2**2 filesz 0x00000090 memsz 0x00000090 flags rw- Dynamic Section: NEEDED libncurses.so NEEDED libc.so.1 INIT 0x80496d0 FINI 0x806bee4 HASH 0x80480f0 STRTAB 0x8048e58 SYMTAB 0x8048548 STRSZ 0x478 SYMENT 0x10 DEBUG 0x0 PLTGOT 0x807561c PLTRELSZ 0x3d8 PLTREL 0x11 JMPREL 0x80492f8 REL 0x80492d0 RELSZ 0x28 RELENT 0x8 -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #37: Mon Jan 27 23:21:10 CET 1997 From owner-freebsd-hackers Sun Feb 2 09:35:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA26387 for hackers-outgoing; Sun, 2 Feb 1997 09:35:18 -0800 (PST) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA26381 for ; Sun, 2 Feb 1997 09:35:15 -0800 (PST) Received: from oasis.IAEhv.nl (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 2171 on Sun, 2 Feb 1997 18:09:07 +0100; id SAA02171 efrom: volf@oasis.IAEhv.nl; eto: freebsd.org!hackers Received: from LOCAL (volf@localhost) by oasis.IAEhv.nl (8.8.5/1.63); pid 1035 on Sun, 2 Feb 1997 16:23:23 +0100 (MET); id QAA01035 efrom: volf; eto: hackers@freebsd.org From: volf@oasis.IAEhv.nl (Frank Volf) Message-Id: <199702021523.QAA01035@oasis.IAEhv.nl> Subject: FreeBSD 2.1.6 and CTM To: hackers@freebsd.org Date: Sun, 2 Feb 1997 16:23:23 +0100 (MET) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, Yesterday I finally got my 2.1.6 cdrom. To my disappointment the CDROMs did not contain a base CTM delta for cvs-cur. This is not a problem, since the CVS tree tar files are on disk 1. Unfortunately I can't find out which cvs-cur delta this tree is (i.e. what the first delta is that should be applied to the tree). Can anyone help? Regards, Frank p.s.: It would be nice for the 2.2 RELEASE cd to put the delta number in the readme file ---------------------------------------------------------------------------- Frank Volf - Internet Access Eindhoven - Digitale Stad Eindhoven ---------------------------------------------------------------------------- || volf@oasis.IAEhv.nl - use for personal mail || || volf@IAEhv.nl - use for Internet Access Eindhoven related mail || || volf@dse.dse.nl - use for Digital City of Eindhoven related mail || ---------------------------------------------------------------------------- IAE Public Access Unix System - Dial +31.40.2439436 and login as new. ---------------------------------------------------------------------------- From owner-freebsd-hackers Sun Feb 2 09:39:28 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA26492 for hackers-outgoing; Sun, 2 Feb 1997 09:39:28 -0800 (PST) Received: from skynet.ctr.columbia.edu (skynet.ctr.columbia.edu [128.59.64.70]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA26485 for ; Sun, 2 Feb 1997 09:39:21 -0800 (PST) Received: (from wpaul@localhost) by skynet.ctr.columbia.edu (8.6.12/8.6.9) id MAA02624; Sun, 2 Feb 1997 12:36:01 -0500 From: Bill Paul Message-Id: <199702021736.MAA02624@skynet.ctr.columbia.edu> Subject: Re: slow ypserv problem To: proff@suburbia.net Date: Sun, 2 Feb 1997 12:36:00 -0500 (EST) Cc: hackers@FreeBSD.ORG In-Reply-To: <19970202074803.4702.qmail@suburbia.net> from "proff@suburbia.net" at Feb 2, 97 06:48:03 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Of all the gin joints in all the towns in all the world, proff@suburbia.net had to walk into mine and say: > > Of all the gin joints in all the towns in all the world, Tom Samplonius > > had to walk into mine and say: > > > > > > > > On Sat, 1 Feb 1997, Steve wrote: > > > > > > > On Sat, 1 Feb 1997, Tom Samplonius wrote: > > > > > Bill knows. > > > > > > > > > > ypserv was completely re-written for 2.2. > > > > Darn straight. > > (etc) > > What happened to the NIS+ support someone posted to here > a few months ago? Er... I don't know what you're talking about. I'm still working on NIS+, but first I have to deal with Secure RPC. Lately I've been hampered a bit by Real Work (tm) though. (Getting my backup system working reliably with my new DLT tape drive holds a slightly higher priority. :) What I've done so far is put together a libnisdb database backend for the NIS+ server, created a few pieces of the nislib client support, and started work on rpc.nisd. Mostly I've been testing my rpc.nisd with a slowlaris machine to see what sort things slowlaris expects the server to do (it's not always obvious from the protocol definition). I reached the point where I can create, modify, lookup and destroy NIS+ directories, and create, lookup and destroy NIS+ tables. I also have rudimentary support for callbacks, although I need to do some more work to make the callback mechanism work correctly. (It was while playing with callbacks that I realized just how thread-oriented NIS+ is supposed to be. It is possible that a client may initiate a callback which will cause the server to transmit a stream or records, one at a time. This is actually done 'backwards' by having rpc.nisd do a clnt_call() to set up a new connection to the client program and transmit records with clnt_call(). But clnt_call() actually does two things: it sends a request, then it waits for an answer. It is the client's responsibility to send an answer for each request, but it doesn't always send an answer right away. For example, in the nis_list() case, the client may get a record from rpc.nisd, then turn around and use the data from that record to make _another_ NIS+ call to the server. But the server is still waiting for the client to send a reply to its callback, hence it will be unable to service the client's other request, and the server and client will become deadlocked. Sun's solution for this is to handle callbacks in a seperate thread. My solution, which is still only half implemented, is to essentially split the clnt_call() in half: the first part of the call (transmitting the record) is done right away, then it returns and the socket from the CLIENT handle is added to the descriptor list monitored by the select() loop in svc_run(). This lets the server handle the replies asynchronously and avoids blocking without the use of threads.) There's still one puzzle I haven't completely solved yet, which has to do with entry attributes. An entry in a table is supposed to posess its own attributes, like owner, creation time, modification time, and time to live (ttl) value. But the entry_obj structure in the NIS+ protocol definition does not have fields to suppor this: it only has fields for the per-column data and an en_type field for the object type. An entry can have extra attributes _if_ it is encapsulated in an nis_object structure, but entries are not stored by the database backend as nis_objects. This being the case, where does the server store this extra per-entry attribute information? My half-assed solution for this is to abuse the en_type field to hold the data in a specially encoded form (the entry type is always the same as the table type anyway, so you can always fudge it back up before returning the entry to the client). But something tells me there's a better way. Anyway. I still have to implement the transaction logging, the public key updating routines, and the replication handling. I also need to make sure the security model (access rights, etc...) actually works the way Sun says it should. Hopefully I can fill in the rest of the client library at the same time. Then I can do nis_cachemgr and all the damned command line utilities. Lastly, Sun implements 'DNS forwarding' as a seperate process (rpc.nisd_resolv). I'm not sure I want to do it this way. We'll see. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager, Master of Unix-Fu Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness" ============================================================================= From owner-freebsd-hackers Sun Feb 2 09:51:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA27013 for hackers-outgoing; Sun, 2 Feb 1997 09:51:15 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA26998 for ; Sun, 2 Feb 1997 09:51:08 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id SAA24031; Sun, 2 Feb 1997 18:50:33 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id SAA02125; Sun, 2 Feb 1997 18:33:59 +0100 (MET) Message-ID: Date: Sun, 2 Feb 1997 18:33:59 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: nadav@cs.technion.ac.il (Nadav Eiron) Cc: hackers@FreeBSD.ORG Subject: Re: CMD640b flaw workaround References: <199702021530.QAA00202@helbig.informatik.ba-stuttgart.de> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from Nadav Eiron on Feb 2, 1997 18:23:54 +0200 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Nadav Eiron wrote: > Cool! Will this work under 2.1.6R (yeah, I know, but it's a "production" > machine, and while we are working on an upgrade to SCSI, it currently has > a CMD640)? If you run a ``production machine'' with a broken disk interface chipset, you don't need to worry running GAMMA quality software on it (FreeBSD 2.2) either. :-] I think your chipset is way more broken than FreeBSD 2.2 is. ;) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-hackers Sun Feb 2 10:22:03 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA29093 for hackers-outgoing; Sun, 2 Feb 1997 10:22:03 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA29088 for ; Sun, 2 Feb 1997 10:22:01 -0800 (PST) Received: from haldjas.folklore.ee (Haldjas.folklore.ee [193.40.6.121]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id KAA11111 for ; Sun, 2 Feb 1997 10:21:57 -0800 (PST) Received: from localhost (narvi@localhost) by haldjas.folklore.ee (8.8.4/8.8.4) with SMTP id UAA13651; Sun, 2 Feb 1997 20:20:55 +0200 (EET) Date: Sun, 2 Feb 1997 20:20:55 +0200 (EET) From: Narvi To: Terry Lambert cc: gurney_j@resnet.uoregon.edu, hackers@freefall.freebsd.org Subject: Re: performance puzzler In-Reply-To: <199702012151.OAA06709@phaeton.artisoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 1 Feb 1997, Terry Lambert wrote: > > > Your bus on the 120 is 3MHz slower than the bus on the 66. What you > > > are doing is not I/O bound, it is CPU bound. > > > > umm... this usually isn't true... most of the non 33mhz bus speeds (for > > 486 based chips) are actually 40 mhz or 50mhz... the amd-486/120dx4 is > > actually a 40mhz bus multiplied by 3... it's kinda like the Intel > > 486/100dx4... the chip is actually 3x bus speed (33mhz)... > > Memory bus, or I/O bus? > > The PCI and EISA standards specify 33MHz as their top end. > Where did I read about 66Mhz revision/mode for PCI? Was it in a dream or just a "not supported by anybody yet" possibility as is the 64bit card width. Or was it all just a dream or erroneus news article? Sander > > > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. > From owner-freebsd-hackers Sun Feb 2 10:52:34 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA00838 for hackers-outgoing; Sun, 2 Feb 1997 10:52:34 -0800 (PST) Received: from amadeus.informatik.ba-stuttgart.de (amadeus.informatik.ba-stuttgart.de [141.31.11.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA00833 for ; Sun, 2 Feb 1997 10:52:31 -0800 (PST) Received: (from helbig@localhost) by amadeus.informatik.ba-stuttgart.de (8.7.3/8.7.1) id TAA03678; Sun, 2 Feb 1997 19:46:07 +0100 (MET) From: Wolfgang Helbig Message-Id: <199702021846.TAA03678@amadeus.informatik.ba-stuttgart.de> Subject: Re: CMD640b flaw workaround To: nadav@cs.technion.ac.il (Nadav Eiron) Date: Sun, 02 Feb 1997 19:46:07 MET Cc: hackers@freebsd.org In-Reply-To: ; from "Nadav Eiron" at Feb 2, 97 6:23 pm X-Mailer: Elm [revision: 112.2] Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Cool! Will this work under 2.1.6R (yeah, I know, but it's a "production" > machine, and while we are working on an upgrade to SCSI, it currently has > a CMD640)? > > Nadav > > Sorry, but the diff is against revision 1.122 of wd.c , whereas you have revision 1.81.4.2 in FreeBSD 2.1.6.1 . So the patch will not work. I tried to produce the diff from 1.122 to 1.81.4.2 and applying a patch with it to my version of wd.c but there were to many rejects. So maybe you should upgrade to FreeBSD 2.2 and test then. Much luck Wolfgang From owner-freebsd-hackers Sun Feb 2 11:54:58 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA07656 for hackers-outgoing; Sun, 2 Feb 1997 11:54:58 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA07649 for ; Sun, 2 Feb 1997 11:54:52 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id MAA08288; Sun, 2 Feb 1997 12:51:35 -0700 From: Terry Lambert Message-Id: <199702021951.MAA08288@phaeton.artisoft.com> Subject: Re: performance puzzler To: narvi@haldjas.folklore.ee (Narvi) Date: Sun, 2 Feb 1997 12:51:35 -0700 (MST) Cc: terry@lambert.org, gurney_j@resnet.uoregon.edu, hackers@freefall.freebsd.org In-Reply-To: from "Narvi" at Feb 2, 97 08:20:55 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > The PCI and EISA standards specify 33MHz as their top end. > > Where did I read about 66Mhz revision/mode for PCI? Was it in a dream or > just a "not supported by anybody yet" possibility as is the 64bit card > width. Or was it all just a dream or erroneus news article? The PCI SIG has been discussing this. Obviously, the 64bit version can't use the same edge connector because there aren't 32 free lines; all this "64bit PCI card" hype claimed by video vendors is on-card data path, not bus data path. The 66MHz has also been discussed, but requires a way to key the bus as to which type of card is present so it can introduce a wait state per cycle for older cards. One problem with the design is that the bus chaining used in current Intel chip designs won't work: you can't send 66MHz signals down a bus if you have 33MHz cards potentially listening or attempting to master the bus. This basically means that the Intel PCI bus chips can't tie all the slots to the same chip lines, if you are going to try to use the same card connector. This is a win, in that it means that we will finally get over the 4 slot limit imposed by the line drivers (which doesn't exist in the Motorola and Apple PCI chipsets because they were not lazy in their design). It's bad, because it means new motherboard designs, and PCI has just settled down from the last minor revision to the spec.. 8-(. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Sun Feb 2 12:04:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA08222 for hackers-outgoing; Sun, 2 Feb 1997 12:04:25 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA08216 for ; Sun, 2 Feb 1997 12:04:19 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by who.cdrom.com (8.7.5/8.6.11) with SMTP id MAA11232 for ; Sun, 2 Feb 1997 12:04:18 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA08336; Sun, 2 Feb 1997 13:02:42 -0700 From: Terry Lambert Message-Id: <199702022002.NAA08336@phaeton.artisoft.com> Subject: Re: Mounting CD-ROM when data not on first track To: joerg_wunsch@uriah.heep.sax.de Date: Sun, 2 Feb 1997 13:02:42 -0700 (MST) Cc: freebsd-hackers@freebsd.org In-Reply-To: from "J Wunsch" at Feb 2, 97 10:18:50 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > But it's not a data area... or rather, it's not a 'data' area. > > Doesn't matter. Disk frame numbers don't distinguish between data or > audio areas. Things like the CD9660 code are meant in terms of disk > frame numbers however, so you have to hole out the !data areas. They > are valid frame numbers (block numbers in the SCSI sense), it's only > that you cannot READ them. It matters, in that this disc is not mountable by FreeBSD. We need to blame FreeBSD, not the disc... "be generous in what you accept, conservative in what you generate". > > Does anyone else have this CD? Do you have a MacOS or SunOS or older > > Windows box with ASPI or proprietary CDROM driver you can try it in? > > If the non-Joliet aware OS recognizes it, I'd think that the FreeBSD > > interpretation is probably wrong. > > FreeBSD doesn't have any interpretation at all by now, so you don't > need this contest. Its only `interpretation' by now is ``all the > world's a data disk from the beginning through the end, and we assume > the directory tree won't touch outside the disk area''. FreeBSD is interpreting audio data as 'data'. Perhaps it should not be doing this. Yes, this causes problems for the CD player and audio data reading code, which is why I suggested the c/d "slices". > > The software we run on our mastering burners here knows about writing > > additional sessions. > > We are looking forward to your submission. Please, contact > ports@freebsd.org to make it a new port. > > Uh, it's not available in source form? Too bad. :-)] Uh, it's commercial software we didn't write which runs only on Windows95. > > It seems that > > Microsoft (stupidly) can not force a program image to be entirely > > resident in memory, and will blue-screen if the image is from a disc > > that has been removed, and it wants to page from it. > > Why do you call this `stupid'? That's the same way every Unix does. > It's only that they probably miss the mount philosophy, so they could > have locked the medium until it will no longer be required for paging. Uh, "sticky bit"... I can solve the problem in UNIX. The DDK says I can resolve this problem in Windows95 as well, but the procedure described (marking the segments "preload") doesn't work. > > Why would you need 99 sub-devices? > > Because it's the most logical way. I don't wanna enforce a policy > (like ISO-9660) in the device driver, since that's a matter of the > filesystem code. A non-CD9660 CD for example might contain up to 99 > UFS filesystems, one per each track, which are fully self-contained > (i.e., with block numbers relative to the start of the track, as any > UFS used to have). Heh. Then you probably want to impose a "partitioning schema" outside the scope of the physical device driver. You'd do this using devfs and a logical-to-physical translation layer that knew to break it up into one device per track. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Sun Feb 2 12:09:23 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA08423 for hackers-outgoing; Sun, 2 Feb 1997 12:09:23 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA08417 for ; Sun, 2 Feb 1997 12:09:14 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA08382; Sun, 2 Feb 1997 13:07:39 -0700 From: Terry Lambert Message-Id: <199702022007.NAA08382@phaeton.artisoft.com> Subject: Re: bisdn To: grog@lemis.de Date: Sun, 2 Feb 1997 13:07:39 -0700 (MST) Cc: terry@lambert.org, hackers@freebsd.org In-Reply-To: <199702021029.LAA10731@freebie.lemis.de> from "grog@lemis.de" at Feb 2, 97 11:29:48 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Oh really? Do you get D channels? What do you do with them? Basic rate: 2B+D US West: 2D+B > > Think about what hardware the phone company provides for an ISDN > > user over there, but doesn't provide for an ISDN user over here... > > An NT1? It doesn't do HDLC. No, but it much more standardized for transport encapsulation than what we have over here. We have places using "ISDN" without NT1 at all. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Sun Feb 2 12:13:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA08658 for hackers-outgoing; Sun, 2 Feb 1997 12:13:47 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA08650 for ; Sun, 2 Feb 1997 12:13:38 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA08403; Sun, 2 Feb 1997 13:10:51 -0700 From: Terry Lambert Message-Id: <199702022010.NAA08403@phaeton.artisoft.com> Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta To: bakul@torrentnet.com (Bakul Shah) Date: Sun, 2 Feb 1997 13:10:50 -0700 (MST) Cc: ejc@gargoyle.bazzle.com, terry@lambert.org, hackers@FreeBSD.ORG In-Reply-To: <199702021539.KAA21607@chai.plexuscom.com> from "Bakul Shah" at Feb 2, 97 10:39:52 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > I do know that if you build g++ with John Polstra's ELF patches > > and the -frepo patches. Then template repository works as advertised. > > Where do I find John's ELF patches? I don't know how current they are, etc. You combined two peoples messages; the material that is validly attributable to me is only the first quoted region; sorry. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Sun Feb 2 12:50:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA12410 for hackers-outgoing; Sun, 2 Feb 1997 12:50:44 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA12402 for ; Sun, 2 Feb 1997 12:50:41 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id VAA02138 for freebsd-hackers@freebsd.org; Sun, 2 Feb 1997 21:50:39 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id VAA08569; Sun, 2 Feb 1997 21:44:55 +0100 (MET) Message-ID: Date: Sun, 2 Feb 1997 21:44:54 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@freebsd.org Subject: Re: Mounting CD-ROM when data not on first track References: <199702022002.NAA08336@phaeton.artisoft.com> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199702022002.NAA08336@phaeton.artisoft.com>; from Terry Lambert on Feb 2, 1997 13:02:42 -0700 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Terry Lambert wrote: > > > But it's not a data area... or rather, it's not a 'data' area. > > > > Doesn't matter. > It matters, in that this disc is not mountable by FreeBSD. But that's not due to the fact that FreeBSD doesn't start to remap the block/frame numbers, but due to the fact that FreeBSD's cd9660 filesystem stuff doesn't care for the TOC at all. Don't try to `fix' something by uglifying it. > blame FreeBSD, not the disc... Nobody has ever claimed that FreeBSD would DTRT. > FreeBSD is interpreting audio data as 'data'. No, it isn't interpreting it at all. It doesn't care for the d*mn TOC yet. > > Why do you call this `stupid'? That's the same way every Unix does. > > It's only that they probably miss the mount philosophy, so they could > > have locked the medium until it will no longer be required for paging. > > Uh, "sticky bit"... I can solve the problem in UNIX. Sticky bit? Terry, you're riding your time-machine again, you're currently some ten years back. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-hackers Sun Feb 2 12:59:59 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA13172 for hackers-outgoing; Sun, 2 Feb 1997 12:59:59 -0800 (PST) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA13164 for ; Sun, 2 Feb 1997 12:59:57 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.5/8.7.3) with ESMTP id MAA02138; Sun, 2 Feb 1997 12:57:58 -0800 (PST) Message-Id: <199702022057.MAA02138@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: Narvi cc: Terry Lambert , gurney_j@resnet.uoregon.edu, hackers@freefall.freebsd.org Subject: Re: performance puzzler In-reply-to: Your message of "Sun, 02 Feb 1997 20:20:55 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 02 Feb 1997 12:57:58 -0800 From: Amancio Hasty Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >From The Desk Of Narvi : > Where did I read about 66Mhz revision/mode for PCI? Was it in a dream or > just a "not supported by anybody yet" possibility as is the 64bit card > width. Or was it all just a dream or erroneus news article? PCI 2.0 specifies a new 66MHz mode which has been implemented I believe by SUN. I would look into DEC's Alpha also. Amancio From owner-freebsd-hackers Sun Feb 2 13:28:46 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA15391 for hackers-outgoing; Sun, 2 Feb 1997 13:28:46 -0800 (PST) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA15385 for ; Sun, 2 Feb 1997 13:28:39 -0800 (PST) Received: (from danny@localhost) by panda.hilink.com.au (8.7.6/8.7.3) id IAA25120; Mon, 3 Feb 1997 08:31:24 +1100 (EST) Date: Mon, 3 Feb 1997 08:31:23 +1100 (EST) From: "Daniel O'Callaghan" To: Christoph Kukulies cc: freebsd-hackers@freefall.freebsd.org Subject: Re: squid 1.1.4 In-Reply-To: <199702021604.RAA00260@gilberto.physik.rwth-aachen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 2 Feb 1997, Christoph Kukulies wrote: > It looks like the squid daemon is running fine. Only when I try to > connect via squid to the outside world I'm getting this: > > isdn-kuku> tail -f /usr/local/squid/logs/access.log > 854896136.897 6655 192.168.1.126 ERR_CONNECT_FAIL/400 837 GET http://www.freebsd.org/ - SINGLE_PARENT/www-proxy.informatik.rwth-aachen.de - > 854898046.079 269 192.168.1.126 ERR_CONNECT_FAIL/400 842 GET http://www.freebsd.org/ - SINGLE_PARENT/www-proxy.informatik.rwth-aachen.de - Have you tried running with no neighbours/parents to start with? It looks like you are not connecting with your parent. Danny From owner-freebsd-hackers Sun Feb 2 13:48:27 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA16974 for hackers-outgoing; Sun, 2 Feb 1997 13:48:27 -0800 (PST) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA16962; Sun, 2 Feb 1997 13:48:17 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.5/8.7.3) with ESMTP id NAA02400; Sun, 2 Feb 1997 13:48:13 -0800 (PST) Message-Id: <199702022148.NAA02400@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: "Kenneth P. Stox" cc: multimedia@freebsd.org, hackers@freebsd.org Subject: Hardware for video Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 02 Feb 1997 13:48:13 -0800 From: Amancio Hasty Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk It is kind of tricky to get a fast PC nowdays. The issues are memory bandwith and PCI bus implementation. The Triton seems to be well implemented where as the Natoma, found in PPRO, I have my doubts about. For instance, I have a P100 / Triton chipset over here and a PPRO 200MHz / Natoma chipset. On the PPRO 200MHz , I get a few dma errors while capturing where as in the P100 I get less dma errors . The condition of both implementations with respect to video is that I get a better image capture/display at 640x480 32bits 30fps on the P100 than on the PPRO 200MHz. The PPROs 200MHz are nice for number crunching for instance, metgrab ( http://www.ishiboo.com/~nirva/Projects/metgrab/ ) is a cool video capture application which does real time video effects however you need a PPRO for this baby. For applications such as metgrab, the more memory bandwith available to the system the better it is. Unfortunalty, the Natoma chipset does not offer support for SDRAM and the best that we can do is get 50ns EDO ram. So for Pentium systems the fastest memory for video operations is SDRAM. For Pentium PRos with Natoma chipset is 50 ns EDO. For video capture to disk, is a little bit more tricky because I am not up to date with the fastest scsi disks. It is almost a safe bet that you will need ccd (concatenated disk driver) and more than one disk. You always can do "man ccd" to find out more about it. On the video display side you want something like an S3 968 PCI based card with VRAM -- a fast video controller coupled with fast memory. Playing with video applications you can eat up your color palette pretty quickly so must of the time I run at 32bits with a resolution of 1024x768 with my Diamond Stealth 64 video (s3 968) with 4MB of memory of VRAM. Corrections of comments are welcomed. Enjoy, Amancio From owner-freebsd-hackers Sun Feb 2 13:50:45 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA17137 for hackers-outgoing; Sun, 2 Feb 1997 13:50:45 -0800 (PST) Received: from relay.nuxi.com (nuxi.ucdavis.edu [128.120.37.176]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA17118; Sun, 2 Feb 1997 13:50:41 -0800 (PST) Received: from dragon.nuxi.com (reqd-042.ucdavis.edu [128.120.251.162]) by relay.nuxi.com (8.8.4/8.6.12) with ESMTP id NAA06290; Sun, 2 Feb 1997 13:50:47 -0800 (PST) Received: (from obrien@localhost) by dragon.nuxi.com (8.8.4/8.7.3) id NAA20378; Sun, 2 Feb 1997 13:50:50 -0800 (PST) Message-ID: <19970202135048.PN07710@dragon.nuxi.com> Date: Sun, 2 Feb 1997 13:50:48 -0800 From: obrien@NUXI.com (David O'Brien) To: freebsd-ports@freebsd.org (FreeBSD ports list) Cc: hackers@freebsd.org Subject: conditionally including References: <199701280143.RAA06503@freefall.freebsd.org> X-Mailer: Mutt 0.59-PL19 Mime-Version: 1.0 Organization: The NUXI *BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 In-Reply-To: ; from Chuck Robey on Jan 27, 1997 21:08:40 -0500 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Sorry to have to bring this back to light... I was under the impression that we had agreed that "#if (defined(__unix__) || defined(unix))" was the best way to conditionally include . However, this email from Chuck, implies that this is a Bad Thing. So to re-hash this, what does the list think is the best way to have an easy way to include ? Even thought I don't have all the *BSD folks in my grips like I did at USENIX, I'm still not above trying to get a new cpp symbol added (like __44bsd__ or something). Chuck Robey writes: > > obrien 97/01/27 17:43:23 > > Modified: share/doc/handbook porting.sgml > > Document the "#if (defined(__unix__) || defined(unix))" way of including > > sys/param.h. Change _HAVE_PARAM_H to "HAVE_SYS_PARAM_H" for those who > > still like this method -- leading underscores are in the compiler/library > > name space and the Ollivier says to follow GNU Autoconf anyway. > > That test is completely bogus, cause it passes for all sysv systems, > which _don't_ have sys/param.h. It's a completely useless test, and > someone justified it by saying that "most systems have a sys/param.h > anyhow". > > What (in my own opinion) should have been done is to detect: > > #ifdef FreeBSD || NetBSD || OpenBSD > > that would have worked for those variants. Would be able to find out the > one for BSDi systems, then we'd have a great deal of the important ones. > That's how X11R6 does it. -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) From owner-freebsd-hackers Sun Feb 2 14:25:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA18408 for hackers-outgoing; Sun, 2 Feb 1997 14:25:10 -0800 (PST) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA18403 for ; Sun, 2 Feb 1997 14:25:05 -0800 (PST) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by mail.cdsnet.net (8.8.4/8.7.3) with SMTP id OAA14601; Sun, 2 Feb 1997 14:24:59 -0800 (PST) Date: Sun, 2 Feb 1997 14:24:57 -0800 (PST) From: Jaye Mathisen To: Michael Beckmann cc: hackers@freebsd.org Subject: Re: 2.2-BETA: options MAXMEM not working (fwd) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hmmm, the same box that I was referring to uses ccd as well. The 3940 driver has problems, but they haven't been memory related. On Sat, 1 Feb 1997, Michael Beckmann wrote: > >Hmmm, I have a 2.2 box with 256MB RAM, and it sees it all just fine using > >the kernel option. > > My kernel has the ccd enabled. I think there was another problem report > about an interference with ccd... > > Cheers, > > Michael > > From owner-freebsd-hackers Sun Feb 2 16:31:19 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA24583 for hackers-outgoing; Sun, 2 Feb 1997 16:31:19 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id QAA24569 for ; Sun, 2 Feb 1997 16:31:16 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id RAA09896; Sun, 2 Feb 1997 17:29:32 -0700 From: Terry Lambert Message-Id: <199702030029.RAA09896@phaeton.artisoft.com> Subject: Re: Mounting CD-ROM when data not on first track To: joerg_wunsch@uriah.heep.sax.de Date: Sun, 2 Feb 1997 17:29:32 -0700 (MST) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: from "J Wunsch" at Feb 2, 97 09:44:54 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > > But it's not a data area... or rather, it's not a 'data' area. > > > > > > Doesn't matter. > > > It matters, in that this disc is not mountable by FreeBSD. > > But that's not due to the fact that FreeBSD doesn't start to remap the > block/frame numbers, but due to the fact that FreeBSD's cd9660 > filesystem stuff doesn't care for the TOC at all. > > Don't try to `fix' something by uglifying it. You mean, like putting in partition recognition code in the kernel instead of putting it in the FS instead (like you are suggesting here)? I have to disagree with you. They are all members of the same class of logical device creation... > > > Why do you call this `stupid'? That's the same way every Unix does. > > > It's only that they probably miss the mount philosophy, so they could > > > have locked the medium until it will no longer be required for paging. > > > > Uh, "sticky bit"... I can solve the problem in UNIX. > > Sticky bit? Terry, you're riding your time-machine again, you're > currently some ten years back. If you will recall, I've requested the ability to force images totally into local cache on a per FS basis by attributing the FS as "nonlocal". The default behaviour would not do this, but in the case of a large number of diskless machines waiting for a server reboot, it would be a generally "Good Thing". In the case of the sticky bit on an single executable, if the ability to force into local cache existed, then the force should be done. The force should be done in any case for FS objects being used as backing store which have been removed, so that the reference does not go out of scope... otherwise, it will be impossible to implement "savestate" type "shutdowns". So you recall the discussion on how to make an install occur in about 30 seconds by restoring a running installation session and making a tiny number of tweaks? In any case, it is a generally useful enabling technology. Having the machine not barf when running from CD is just an extra bonus. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Sun Feb 2 17:50:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA00413 for hackers-outgoing; Sun, 2 Feb 1997 17:50:39 -0800 (PST) Received: from dg-rtp.dg.com ([128.222.1.2]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id RAA00406 for ; Sun, 2 Feb 1997 17:50:37 -0800 (PST) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA22124; Sun, 2 Feb 1997 20:50:04 -0500 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Sun, 2 Feb 1997 20:50 EST Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.3/8.7.3) with ESMTP id UAA02990; Sun, 2 Feb 1997 20:17:54 -0500 (EST) Received: (from rivers@localhost) by lakes.water.net (8.8.3/8.6.9) id UAA18377; Sun, 2 Feb 1997 20:22:10 -0500 (EST) Date: Sun, 2 Feb 1997 20:22:10 -0500 (EST) From: Thomas David Rivers Message-Id: <199702030122.UAA18377@lakes.water.net> To: ponds!FreeBSD.ORG!hackers, ponds!NUXI.com!obrien Subject: Re: conditionally including Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Sorry to have to bring this back to light... > I was under the impression that we had agreed that > "#if (defined(__unix__) || defined(unix))" was the best way to > conditionally include . However, this email from Chuck, > implies that this is a Bad Thing. Unfortunately the symbols: unix FreeBSD NetBSD OpenBSD violate the user's name space. For example, I have programs that define some of these on the command line. If these were defined elsewhere things would break. [Of course, such things do break on other hosts; e.g. SunOS 4.x defines "unix".] I would suggest using: __unix__ __FreeBSD__ __NetBSD__ __OpenBSD__ as identifiers beginning with "_" are reserved (per ANSI) for the implementation. - Dave Rivers - > > So to re-hash this, what does the list think is the best way to have an > easy way to include ? Even thought I don't have all the > *BSD folks in my grips like I did at USENIX, I'm still not above trying > to get a new cpp symbol added (like __44bsd__ or something). > > Chuck Robey writes: > > > obrien 97/01/27 17:43:23 > > > Modified: share/doc/handbook porting.sgml > > > Document the "#if (defined(__unix__) || defined(unix))" way of including > > > sys/param.h. Change _HAVE_PARAM_H to "HAVE_SYS_PARAM_H" for those who > > > still like this method -- leading underscores are in the compiler/library > > > name space and the Ollivier says to follow GNU Autoconf anyway. > > > > That test is completely bogus, cause it passes for all sysv systems, > > which _don't_ have sys/param.h. It's a completely useless test, and > > someone justified it by saying that "most systems have a sys/param.h > > anyhow". > > > > What (in my own opinion) should have been done is to detect: > > > > #ifdef FreeBSD || NetBSD || OpenBSD > > > > that would have worked for those variants. Would be able to find out the > > one for BSDi systems, then we'd have a great deal of the important ones. > > That's how X11R6 does it. > > -- > -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) > From owner-freebsd-hackers Sun Feb 2 18:35:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA02164 for hackers-outgoing; Sun, 2 Feb 1997 18:35:12 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA02156 for ; Sun, 2 Feb 1997 18:35:07 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id NAA01680; Mon, 3 Feb 1997 13:04:15 +1030 (CST) From: Michael Smith Message-Id: <199702030234.NAA01680@genesis.atrad.adelaide.edu.au> Subject: Re: Jukka Ukkonen: POSIX.4 - scheduler once more (as you requested) In-Reply-To: <199701311230.HAA12655@hda.hda.com> from Peter Dufault at "Jan 31, 97 07:30:49 am" To: dufault@hda.com (Peter Dufault) Date: Mon, 3 Feb 1997 13:04:14 +1030 (CST) Cc: jkh@time.cdrom.com, hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Peter Dufault stands accused of saying: > One quick observation: > > > X * 5. The source code must be available for anyone who wishes to have it. > > What do people think of packaging this up as a user library against > an LKM'd pseudo /dev/realtime driver? I have the skeleton to do How does this help the posix.4 scheduling model though? Does having it as an LKM still allow this to work "as expected"? > that. My reasoning is I'd like to be able to have different realtime > facilities, for example, process migration to an attached embedded > processor that would "fault" back as soon as you tried to do > something in that environment. It also gives you a way to have > realtime user or group protection. Sounds reasonable (and interesting). Do you have more words on this somewhere? > Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[ From owner-freebsd-hackers Sun Feb 2 19:27:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA04683 for hackers-outgoing; Sun, 2 Feb 1997 19:27:37 -0800 (PST) Received: from labs.usn.blaze.net.au (labs.usn.blaze.net.au [203.17.53.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA04665; Sun, 2 Feb 1997 19:27:29 -0800 (PST) Received: (from davidn@localhost) by labs.usn.blaze.net.au (8.8.5/8.8.5) id OAA15793; Mon, 3 Feb 1997 14:27:17 +1100 (EST) Message-ID: <19970203142717.VR58445@usn.blaze.net.au> Date: Mon, 3 Feb 1997 14:27:17 +1100 From: davidn@unique.usn.blaze.net.au (David Nugent) To: obrien@NUXI.com (David O'Brien) Cc: freebsd-ports@FreeBSD.ORG (FreeBSD ports list), hackers@FreeBSD.ORG Subject: Re: conditionally including References: <199701280143.RAA06503@freefall.freebsd.org> <19970202135048.PN07710@dragon.nuxi.com> X-Mailer: Mutt 0.59.1 Mime-Version: 1.0 In-Reply-To: <19970202135048.PN07710@dragon.nuxi.com>; from David O'Brien on Feb 2, 1997 13:50:48 -0800 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk David O'Brien writes: > Sorry to have to bring this back to light... > I was under the impression that we had agreed that > "#if (defined(__unix__) || defined(unix))" was the best way to > conditionally include . However, this email from Chuck, > implies that this is a Bad Thing. ~ > > That test is completely bogus, cause it passes for all sysv systems, > > which _don't_ have sys/param.h. It's a completely useless test, and > > someone justified it by saying that "most systems have a sys/param.h > > anyhow". I said exactly this some weeks back and was told I was wrong, contrary to my own experience of many years working with sysv r3's. Oh well. :-) svr4 apparently does have it, but not sysv before that. Most if not all of those do predefine unix or __unix__. Regards, David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/ From owner-freebsd-hackers Sun Feb 2 19:49:38 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA05591 for hackers-outgoing; Sun, 2 Feb 1997 19:49:38 -0800 (PST) Received: from Clifford.LiveNet.Net (root@Clifford.LiveNet.Net [206.156.5.13]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA05586 for ; Sun, 2 Feb 1997 19:49:36 -0800 (PST) Received: from samantha (Manimal@Silver.Colours.LiveNet.Net [206.156.5.120]) by Clifford.LiveNet.Net (8.7.6/8.6.9) with ESMTP id WAA27251; Sun, 2 Feb 1997 22:54:45 -0500 (EST) Message-Id: <199702030354.WAA27251@Clifford.LiveNet.Net> From: "Joseph I. Arias" To: Cc: Subject: I can't install from dos partition Date: Sun, 2 Feb 1997 22:50:02 -0800 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi I have a Pentium 133 32 megs ram 1.1 gig c:\ 2.7 gig cut down the middle making: 1.35 D:\ 1.35 E:\ and I have a 2.1 GIG FREE for Unix I have given this drive to Unix completely and have ran the boot install I selected to give the whole drive to unix I partitioned it this way 50M / 100M SWAP 200M /var 16??M /usr ?? meaning the rest of the disk space I start the install and it dies and give me this error: Error mounting /dev/wd1s2 on /dos: invalid argument (22) /dev/wd1s2 I believe would be drive E:\ and that is the drive I have FreeBSD in. In the E:\FREEBSD directory I was told it wouldn't work in a windows inviroment so I formated C:\ and installed Dos version 6.22 and got the same message. I rawrite boot4.flp to disk and boot off it I did all the installation option Novice , Quick, and Expert with I found to be the easy of the all because of the fact that you can go back and recheck your setting before comiting to anything I also tryed to tell it to do exsisting file and pointed to them and it didn't work... Now I have dont the operation without telling it to copy any files and it does the partition corectly and all but it says I can't boot off this drive because no files were installed.. I hope this will help you with my problem I'm lost. Thanks Joe From owner-freebsd-hackers Sun Feb 2 21:35:01 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA09669 for hackers-outgoing; Sun, 2 Feb 1997 21:35:01 -0800 (PST) Received: from k8lt.ampr.org (balrog.mv.com [199.125.64.248]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id VAA09656 for ; Sun, 2 Feb 1997 21:34:57 -0800 (PST) Received: by k8lt.ampr.org (Smail3.1.27.1 #9) id m0vrH2J-000OGMC; Mon, 3 Feb 97 00:33 EST Message-Id: X-Mailer: exmh version 1.6.2 7/18/95 To: Narvi cc: hackers@freefall.freebsd.org Subject: Re: performance puzzler In-reply-to: Your message of "Sun, 02 Feb 1997 20:20:55 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 03 Feb 1997 00:33:47 -0500 From: "Gary L. Grebus" Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Where did I read about 66Mhz revision/mode for PCI? Was it in a dream or > just a "not supported by anybody yet" possibility as is the 64bit card > width. Or was it all just a dream or erroneus news article? > Revision 2.0 of the PCI Specification added both 64 bit wide and 66 MHz versions of the bus. I'm not aware of any shipping 66 MHz PCI, but most of the current Digital Alpha systems (and I think some 3rd party Alpha motherboards) include 64 bit slots. FWIW, the spec requires that 64 bit cards work when plugged into 32 bit slots, and 32 bit cards work when plugged into 64 bit slots. Regards, /gary Gary L. Grebus Home: glg@k8lt.ampr.org Brookline, NH Work: grebus@zk3.dec.com From owner-freebsd-hackers Mon Feb 3 00:12:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA14572 for hackers-outgoing; Mon, 3 Feb 1997 00:12:18 -0800 (PST) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id AAA14567 for ; Mon, 3 Feb 1997 00:12:13 -0800 (PST) Received: from freebie.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0vrJVZ-000Qa8C; Mon, 3 Feb 97 09:12 MET Received: (grog@localhost) by freebie.lemis.de (8.8.4/8.6.12) id HAA22553; Mon, 3 Feb 1997 07:52:41 +0100 (MET) From: grog@lemis.de Message-Id: <199702030652.HAA22553@freebie.lemis.de> Subject: Re: bisdn In-Reply-To: <199702022007.NAA08382@phaeton.artisoft.com> from Terry Lambert at "Feb 2, 97 01:07:39 pm" To: terry@lambert.org (Terry Lambert) Date: Mon, 3 Feb 1997 07:52:40 +0100 (MET) Cc: hackers@freebsd.org (FreeBSD Hackers) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Reply-to: grog@lemis.de (Greg Lehey) WWW-Home-Page: http://www.FreeBSD.org/~grog X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Terry Lambert writes: >> Oh really? Do you get D channels? What do you do with them? > > Basic rate: 2B+D OK. Note the second question: what do you do with them? > US West: 2D+B Really? I find that hard to believe. I suppose the question is doubly relevant here: What do you do with them? >>> Think about what hardware the phone company provides for an ISDN >>> user over there, but doesn't provide for an ISDN user over here... >> >> An NT1? It doesn't do HDLC. > > No, but it much more standardized for transport encapsulation than > what we have over here. > > We have places using "ISDN" without NT1 at all. You still haven't realized the real error of your statement. D channels are signalling channels, and they use LAP-D, which bases on HDLC. Greg From owner-freebsd-hackers Mon Feb 3 00:50:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA15935 for hackers-outgoing; Mon, 3 Feb 1997 00:50:37 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id AAA15930 for ; Mon, 3 Feb 1997 00:50:33 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA24138 for freebsd-hackers@FreeBSD.ORG; Mon, 3 Feb 1997 09:50:30 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id JAA12593; Mon, 3 Feb 1997 09:30:55 +0100 (MET) Message-ID: Date: Mon, 3 Feb 1997 09:30:55 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.ORG Subject: Re: Mounting CD-ROM when data not on first track References: <199702030029.RAA09896@phaeton.artisoft.com> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199702030029.RAA09896@phaeton.artisoft.com>; from Terry Lambert on Feb 2, 1997 17:29:32 -0700 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Terry Lambert wrote: > > Don't try to `fix' something by uglifying it. > > You mean, like putting in partition recognition code in the kernel > instead of putting it in the FS instead (like you are suggesting here)? No. These dreaded CD-ROM tracks have one thing different from normal partitions: the filesystem code in it still references the disk by absolute frame (block) numbers. Filesystems that live in partitions do not do this, they describe the filesystem relative to the start of the partition. The CD code needs both. The one-partition-per-track is needed for things like putting up to 99 UFS filesystems on a disk. As i wrote, i've once got a sample implementation for this, but later realized that this is not very useful because it's not what ISO-9660 is using. The one large partition covering everything (and leaving holes for the audio tracks) is what we've already got by now. It is the model that underlies ISO-9660. So the only thing that is needed is to find out about the position of the root directory is to see what's the track to read this from. You can learn this from the CD-ROM TOC. Reading the TOC (CD-ROM metadata) as part of the normal CD-ROM data stream doesn't fit into the model. Mapping the TOC at the beginning of the data stream (and offset all data blocks) would be terrible, and defeats the idea of being able to test an ISO-9660 image e.g. on a vn device, even if it's not multi-session. Mapping the TOC into negative device offsets isn't more elegant either. So in the end, i found that this _is_ a cd9660 matter infact (and not true device partitioning), so it doesn't violate the layering idea too much to have the cd9660 filesystem code doing the investigation of its own -- by calling the CD-ROM ioctl. Sure, you lose for an ISO-9660 ``multi-session'' image on a vn device, but i don't have an idea how to solve this, other than by allowing an explicit block number to be passed to the mount_cd9660 command to tell it where to look for the directory. > > > Uh, "sticky bit"... I can solve the problem in UNIX. > > > > Sticky bit? Terry, you're riding your time-machine again, you're > > currently some ten years back. > > If you will recall, I've requested the ability to force images totally > into local cache on a per FS basis by attributing the FS as "nonlocal". Sorry, i misread your comment and thought you were referring to something that does already exist. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-hackers Mon Feb 3 01:10:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA16647 for hackers-outgoing; Mon, 3 Feb 1997 01:10:05 -0800 (PST) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA16613 for ; Mon, 3 Feb 1997 01:09:57 -0800 (PST) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.8.5/CET-v2.1) with SMTP id JAA08741; Mon, 3 Feb 1997 09:09:46 GMT Date: Mon, 3 Feb 1997 18:09:46 +0900 (JST) From: Michael Hancock To: grog@lemis.de cc: Terry Lambert , FreeBSD Hackers Subject: Re: bisdn In-Reply-To: <199702030652.HAA22553@freebie.lemis.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997 grog@lemis.de wrote: > Terry Lambert writes: > > > > Basic rate: 2B+D > > OK. Note the second question: what do you do with them? > > > US West: 2D+B > > Really? I find that hard to believe. I suppose the question is > doubly relevant here: What do you do with them? I find this hard to believe too, 2D channels is wierd. The D-channel is for out-of-band signaling. It's why you get 64K instead of 56K. Regards, Mike Hancock From owner-freebsd-hackers Mon Feb 3 01:47:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA18094 for hackers-outgoing; Mon, 3 Feb 1997 01:47:56 -0800 (PST) Received: from weblin (root@www.ExtraNet.RU [194.84.75.4]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA18085 for ; Mon, 3 Feb 1997 01:47:46 -0800 (PST) Received: by weblin via sendmail with stdio id for hackers@freebsd.org; Mon, 3 Feb 1997 12:42:45 +0300 (MSK) (Smail-3.2 1996-Jul-4 #2 built 1996-Sep-25) Message-Id: Date: Mon, 3 Feb 97 12:38:50 +0700 From: Dmitry Romanov To: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk LIST HELP Sincerely, Dmitry. (DRomanov@extranet.ru) From owner-freebsd-hackers Mon Feb 3 01:50:58 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA18255 for hackers-outgoing; Mon, 3 Feb 1997 01:50:58 -0800 (PST) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA18244 for ; Mon, 3 Feb 1997 01:50:50 -0800 (PST) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id KAA14935; Mon, 3 Feb 1997 10:50:46 +0100 (MET) Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.8.4/8.6.9) id KAA06952; Mon, 3 Feb 1997 10:52:29 +0100 (MET) Message-ID: Date: Mon, 3 Feb 1997 10:52:28 +0100 From: kuku@gilberto.physik.rwth-aachen.de (Christoph Kukulies) To: danny@panda.hilink.com.au (Daniel O'Callaghan) Cc: kuku@gilberto.physik.rwth-aachen.de (Christoph Kukulies), freebsd-hackers@freefall.freebsd.org Subject: Re: squid 1.1.4 References: <199702021604.RAA00260@gilberto.physik.rwth-aachen.de> X-Mailer: Mutt 0.58e Mime-Version: 1.0 In-Reply-To: ; from Daniel O'Callaghan on Feb 3, 1997 08:31:23 +1100 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Daniel O'Callaghan writes: > > > On Sun, 2 Feb 1997, Christoph Kukulies wrote: > > > It looks like the squid daemon is running fine. Only when I try to > > connect via squid to the outside world I'm getting this: > > > > isdn-kuku> tail -f /usr/local/squid/logs/access.log > > 854896136.897 6655 192.168.1.126 ERR_CONNECT_FAIL/400 837 GET http://www.freebsd.org/ - SINGLE_PARENT/www-proxy.informatik.rwth-aachen.de - > > 854898046.079 269 192.168.1.126 ERR_CONNECT_FAIL/400 842 GET http://www.freebsd.org/ - SINGLE_PARENT/www-proxy.informatik.rwth-aachen.de - > > Have you tried running with no neighbours/parents to start with? It > looks like you are not connecting with your parent. Yes, that had been the problem. It works now (see prev posting). > > Danny -- --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de From owner-freebsd-hackers Mon Feb 3 02:21:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA20965 for hackers-outgoing; Mon, 3 Feb 1997 02:21:39 -0800 (PST) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA20947 for ; Mon, 3 Feb 1997 02:21:26 -0800 (PST) Received: (from danny@localhost) by panda.hilink.com.au (8.7.6/8.7.3) id VAA28876; Mon, 3 Feb 1997 21:24:46 +1100 (EST) Date: Mon, 3 Feb 1997 21:24:45 +1100 (EST) From: "Daniel O'Callaghan" To: Michael Hancock cc: grog@lemis.de, Terry Lambert , FreeBSD Hackers Subject: Re: bisdn In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997, Michael Hancock wrote: > I find this hard to believe too, 2D channels is wierd. The D-channel is > for out-of-band signaling. It's why you get 64K instead of 56K. Oh? According to the ISDN specs I've read basic rate ISDN is 2B+D, as 2 * 64 + 1 * 16. Do the Japanese use American ISDN? Danny From owner-freebsd-hackers Mon Feb 3 02:26:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA21422 for hackers-outgoing; Mon, 3 Feb 1997 02:26:44 -0800 (PST) Received: from haldjas.folklore.ee (Haldjas.folklore.ee [193.40.6.121]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA20986 for ; Mon, 3 Feb 1997 02:21:52 -0800 (PST) Received: from localhost (narvi@localhost) by haldjas.folklore.ee (8.8.4/8.8.4) with SMTP id MAA17655; Mon, 3 Feb 1997 12:19:16 +0200 (EET) Date: Mon, 3 Feb 1997 12:19:16 +0200 (EET) From: Narvi Reply-To: Narvi To: Terry Lambert cc: gurney_j@resnet.uoregon.edu, hackers@freefall.freebsd.org Subject: Re: performance puzzler In-Reply-To: <199702021951.MAA08288@phaeton.artisoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 2 Feb 1997, Terry Lambert wrote: > > > The PCI and EISA standards specify 33MHz as their top end. > > > > Where did I read about 66Mhz revision/mode for PCI? Was it in a dream or > > just a "not supported by anybody yet" possibility as is the 64bit card > > width. Or was it all just a dream or erroneus news article? > > The PCI SIG has been discussing this. Obviously, the 64bit version > can't use the same edge connector because there aren't 32 free lines; > all this "64bit PCI card" hype claimed by video vendors is on-card > data path, not bus data path. I know. The graphics chip (and it's data path) can be of arbitary width. There are at least also 128 bit ones. This is at least one thing I am never confusing :-) Well, at the time (or about the time) PCI came out, there definately was talk about 64 bit PCI slots. > > The 66MHz has also been discussed, but requires a way to key the bus > as to which type of card is present so it can introduce a wait state > per cycle for older cards. Well - the "obvious way" would be making different color connectors and saying - You wanted it you got it. No slower than 66Mhz cards in the slots. But it seems that (fortunately) PCI is no longer a PC thing. > > One problem with the design is that the bus chaining used in current > Intel chip designs won't work: you can't send 66MHz signals down a bus > if you have 33MHz cards potentially listening or attempting to master > the bus. This basically means that the Intel PCI bus chips can't > tie all the slots to the same chip lines, if you are going to try > to use the same card connector. This is a win, in that it means that > we will finally get over the 4 slot limit imposed by the line drivers > (which doesn't exist in the Motorola and Apple PCI chipsets because > they were not lazy in their design). It's bad, because it means > new motherboard designs, and PCI has just settled down from the last > minor revision to the spec.. 8-(. Well, the obvious way of doing things would have the main CPU to PCI controller (provided we are going to have such a beast instead of say two independent ones on the motherboard) to be 66Mhz/64 bit one wich would: a) export some (if any) 64 bit/66Mhz PCI slots b) act as a backbone for PCI bridges being 64 bit/66Mhz on one side and having some number of "odinary" slots on the other. b) is of help in the cases of any kind of concurent activity on the PCI bus - both high speed/bandwidth cards and cards making large transfers to each other over the PCI bus. Say I wanted to have in my computer a PCI frame grabber, a PCI graphics board, PCI fast etrhernet adapter, a DSP board, an Adaptec 3940 (well, this is already 5 cards on one PCI bus). It may most efficent if the frame grabber sent its data directlt to the DSP board or the graphics borad (making there be a constant flow of ~27 MB/sec in the case of 640x480x30fps@24bits). Yes, it all is "high end" stuff. But I don't want to get stuck in the next ISA bus witch will just become obsolete and remain still in use for long time. Sander > > > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. > From owner-freebsd-hackers Mon Feb 3 02:30:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA21898 for hackers-outgoing; Mon, 3 Feb 1997 02:30:33 -0800 (PST) Received: from calvino.alaska.net (ice@calvino.alaska.net [206.149.65.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA21892 for ; Mon, 3 Feb 1997 02:30:29 -0800 (PST) Received: (from ice@localhost) by calvino.alaska.net (8.8.0/8.7.3) id BAA01579 for Freebsd-Hackers@Freebsd.Org; Mon, 3 Feb 1997 01:30:26 -0900 (AKST) X-Authentication-Warning: calvino.alaska.net: ice set sender to ice-bbs!steve.howe using -f >Received: by ice-bbs.net (0.99.950303) id AA04021; 03 Feb 97 01:27:32 -0900 From: Steve.Howe@ice-bbs.net (Steve Howe) Date: 03 Feb 97 01:26:43 -0900 Subject: un-ethical isp Message-ID: <293_9702030127@ice-bbs.net> Organization: ICE BBS Network Internet Gateway To: Freebsd-Hackers@Freebsd.Org Content-Type: text Sender: owner-hackers@Freebsd.Org X-Loop: FreeBSD.org Precedence: bulk Dear FreeBSDers, because of your excellent OS and superb knowledge, i/we decided to use FreeBSD in projects for the government subcontracting starting about 2 years ago. an associate and boss became upset due to their fear of UNIX and a sort of conspiracy developed ... anyway - unbeknownst to me, the owners of my isp (alaska.net) were former associates this vengeful/ignorant co-worker and boss, and together (as i came close to finishing a project way ahead of their NT project) they (isp) engaged in ping flooding all my machines on my networks, grinding all my work to a complete halt for a week, and additionally, after tracing the source of the pinging and sending some nasty email, my isp transferred all my email i had ever written on my personal/private account to my boss and co-worker for review, ie, they were looking for some goodies to get rid of me. they hired private investigators, etc. but i was squeaky clean, although things have become miserable enough to quit. :) ANYWAY - my question is, although my lawyer says my isp may be liable for slander, is there any other recourse i can take for them giving 2 1/2 years of my email from my personal/private account to my boss and co-workers? i wouldn't want laws, but i despise un-ethical behaviour such as this! it included health information related to my family, love letters :), thoughts, etc. all kinds of stuff you'd never want anyone to see! (pgp? - well not everyone i wrote to can use it!) thanks ... please mail to hmmm@ice-bbs.net. a friend/co-worker is allowing me use of this account as i have no isp currently ... -- | Standard disclaimer: The views of the users are strictly their own. | ICE BBS Network +1-907-346-2371 (ANSI, 28.8k, FREE E-MAIL!). From owner-freebsd-hackers Mon Feb 3 02:43:13 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA22312 for hackers-outgoing; Mon, 3 Feb 1997 02:43:13 -0800 (PST) Received: from svr1.spark.net.hk (svr1.spark.net.hk [202.76.13.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA22305 for ; Mon, 3 Feb 1997 02:43:09 -0800 (PST) Received: from svr1.spark.net.hk (william@svr1.spark.net.hk [202.76.13.1]) by svr1.spark.net.hk (8.8.5/8.8.4) with SMTP id SAA23519 for ; Mon, 3 Feb 1997 18:42:31 +0800 (HKT) Date: Mon, 3 Feb 1997 18:42:30 +0800 (HKT) From: william To: hackers@freebsd.org Subject: 2.2-BETA_A and popen Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I write a small cgi program which runs fine on 2.16 but it fails to work on my 2.2-BETA_A. In the web server log - "malformed header from script". If I comment out popen()..pclose(), then it works. I am wondering if it's something wrong with the popen in 2.2-BETA or I'm doing it in a wrong way. I'm using apache web server. The poppassd also fails to work on my 2.2-BETA too. ----cgi program-- #include #include #include main (void ) { FILE *f; printf("Content-type: text/html%c%c",10,10); printf("
\n");
    f = popen("/bin/ed test", "w");
    fprintf(f, "/%s\nd\nwq\n", "william");
    pclose(f);
    printf("

End"); } ---end-- Best Regards, william -------------------------------------------------------- From owner-freebsd-hackers Mon Feb 3 02:53:26 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA22737 for hackers-outgoing; Mon, 3 Feb 1997 02:53:26 -0800 (PST) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA22727 for ; Mon, 3 Feb 1997 02:53:23 -0800 (PST) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.8.5/CET-v2.1) with SMTP id KAA09376; Mon, 3 Feb 1997 10:51:51 GMT Date: Mon, 3 Feb 1997 19:51:51 +0900 (JST) From: Michael Hancock To: "Daniel O'Callaghan" cc: grog@lemis.de, Terry Lambert , FreeBSD Hackers Subject: Re: bisdn In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997, Daniel O'Callaghan wrote: > On Mon, 3 Feb 1997, Michael Hancock wrote: > > > I find this hard to believe too, 2D channels is wierd. The D-channel is > > for out-of-band signaling. It's why you get 64K instead of 56K. > > Oh? According to the ISDN specs I've read basic rate ISDN is 2B+D, as > 2 * 64 + 1 * 16. Do the Japanese use American ISDN? > > Danny I'm talking about a single B channel. Japan has the standard 2B+D. In the states there exists ISDN service with in-band signaling and you get 56K per channel. Mike Hancock From owner-freebsd-hackers Mon Feb 3 03:23:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA23706 for hackers-outgoing; Mon, 3 Feb 1997 03:23:29 -0800 (PST) Received: from narcissus.ml.org (root@brosenga.Pitzer.edu [134.173.120.201]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA23700 for ; Mon, 3 Feb 1997 03:23:25 -0800 (PST) Received: (from ben@localhost) by narcissus.ml.org (8.7.5/8.7.3) id DAA05150; Mon, 3 Feb 1997 03:23:16 -0800 (PST) Date: Mon, 3 Feb 1997 03:23:16 -0800 (PST) From: Stranger Bone To: Steve Howe cc: Freebsd-Hackers@FreeBSD.ORG Subject: Re: un-ethical isp In-Reply-To: <293_9702030127@ice-bbs.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On 3 Feb 1997, Steve Howe wrote: > > Dear FreeBSDers, > > because of your excellent OS and superb knowledge, i/we decided to use > FreeBSD in projects for the government subcontracting starting about 2 > years ago. an associate and boss became upset due to their fear of > UNIX and a sort of conspiracy developed ... Ack! > anyway - unbeknownst to me, the owners of my isp (alaska.net) were former > associates this vengeful/ignorant co-worker and boss, and together > (as i came close to finishing a project way ahead of their NT > project) they (isp) engaged in ping flooding all my machines > on my networks, grinding all my work to a complete halt for > a week, and additionally, after tracing the source of the > pinging and sending some nasty email, my isp transferred > all my email i had ever written on my personal/private > account to my boss and co-worker for review, ie, they > were looking for some goodies to get rid of me. > they hired private investigators, etc. but i > was squeaky clean, although things have > become miserable enough to quit. :) I'll bet. > ANYWAY - my question is, although my lawyer says my isp may be > liable for slander, is there any other recourse i can take for > them giving 2 1/2 years of my email from my personal/private > account to my boss and co-workers? i wouldn't want laws, > but i despise un-ethical behaviour such as this! Laws are good sometimes. Look up privacy laws, but I think the whole 'net thing is too new for any laws to have been passed on it. Check state laws. I would suggest you write some mail to alternet, which is alaska.net's provider (if I read my traceroute output correctly). Mention how much grief alaska.net has caused you and casually let drop the fact that you've retained a lawyer. I wouldn't be surprised if alaska.net shortly finds itself without an IP feed. You can probably get alaska.net for the ping attacks under some computer vandalism law, I think there's a federal law that'll help you. Also, hire a better lawyer. He or she should know this stuff, I'm just a college student and I could probably find you several grounds for suit. > it included health information related to my family, > love letters :), thoughts, etc. all kinds of stuff > you'd never want anyone to see! My sympathy goes out to you. > (pgp? - well not everyone i wrote to can use it!) > > thanks ... please mail to hmmm@ice-bbs.net. (Use a reply-to header!) > a friend/co-worker is allowing me use of this > account as i have no isp currently ... Mail me privately about setting you up a telnet-accessible account on my machine, at least you'll have a mail drop of your own. Doesn't cost. > -- > | Standard disclaimer: The views of the users are strictly their own. > | ICE BBS Network +1-907-346-2371 (ANSI, 28.8k, FREE E-MAIL!). > > Ben The views expressed above are not those of the Worker's Compensation Board of Queensland, Australia. From owner-freebsd-hackers Mon Feb 3 03:37:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA24261 for hackers-outgoing; Mon, 3 Feb 1997 03:37:18 -0800 (PST) Received: from methan.chemie.fu-berlin.de (methan.chemie.fu-berlin.de [160.45.22.81]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id DAA24256 for ; Mon, 3 Feb 1997 03:37:14 -0800 (PST) Received: by methan.chemie.fu-berlin.de (Smail3.1.29.1) id ; Mon, 3 Feb 97 12:37 MET Received: (from dirk@localhost) by hal.IN-Berlin.DE (8.8.4/8.8.4) id MAA02421; Mon, 3 Feb 1997 12:35:26 +0100 (MET) Message-ID: Date: Mon, 3 Feb 1997 12:35:25 +0100 From: dirk@hal.IN-Berlin.DE (Dirk Froemberg) To: hackers@freebsd.org Subject: Booting FreeBSD from solid-state-disk X-Mailer: Mutt 0.55-PL15 Mime-Version: 1.0 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Dear hackers! I'm trying to boot FreeBSD from a solid-state-disk. The first 4K of the card is a bios extension mapping access to drive 80 (C:) via the bios to the memory on the card. My first approach cat bios-extension rawboot kernel-with-mfs-in-it > "/dev/card" . was successfull on the first shot... 8) Unfortunally the mfs within the kernel lacks of the kernel itself, unless one doesn't want to duplicate it. So ps, netstat, ... are useless. Another idea was to put a real filesystem with boot1, boot2, partition-table, disklabel, ... on the disk and mount the memory of the card similar to a mfs (card is jumpered to D000:0000, 1020 * 1024 is the size of the filesystem): *** /sys/ufs/mfs/mfs_vfsops.c.dist Fri Dec 27 20:44:10 1996 --- /sys/ufs/mfs/mfs_vfsops.c Sun Feb 2 17:32:29 1997 *************** *** 107,114 **** --- 107,119 ---- #ifdef MFS_ROOT + u_char *mfs_root = 0xd0000 + 0x1000; + u_char *end_mfs_root = 0xd0000 + 0x1000 + 1020 * 1024; + + #if 0 static u_char mfs_root[MFS_ROOT*1024] = "MFS Filesystem goes here"; static u_char end_mfs_root[] = "MFS Filesystem had better STOP here"; + #endif #ifdef MFS_AUTOLOAD /* The kernel-config-file has "options MFS; options MFS_ROOT=0" in it. The kernel boots up still fine but when mounting the root-filesystem a panic occurs: Fatal trap 12: page fault while in kernel mode fault virtual address = 0xd355c fault code = supervisor read, page not present instruction pointer = 0x8:0xf01469b3 stack pointer = 0x10:0xefbffecc frame pointer = 0x10:0xefbfff50 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) interrupt mask = panic: page fault Any ideas? Best regards Dirk -- e-mail: dirk@hal.in-berlin.de PGP-Public-Key available "Arbeiten ist nicht vergasen - erschiessen - haengen - irgendwie toeten!" -- Klaus Scheurenberg, "Ich will leben" From owner-freebsd-hackers Mon Feb 3 05:32:55 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA28362 for hackers-outgoing; Mon, 3 Feb 1997 05:32:55 -0800 (PST) Received: from po2.glue.umd.edu (root@po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA28357 for ; Mon, 3 Feb 1997 05:32:52 -0800 (PST) Received: from gilligan.eng.umd.edu (gilligan.eng.umd.edu [129.2.103.21]) by po2.glue.umd.edu (8.8.5/8.7.3) with ESMTP id IAA09871 for ; Mon, 3 Feb 1997 08:32:49 -0500 (EST) Received: from localhost (chuckr@localhost) by gilligan.eng.umd.edu (8.8.5/8.7.3) with SMTP id IAA03459 for ; Mon, 3 Feb 1997 08:32:48 -0500 (EST) X-Authentication-Warning: gilligan.eng.umd.edu: chuckr owned process doing -bs Date: Mon, 3 Feb 1997 08:32:48 -0500 (EST) From: Chuck Robey X-Sender: chuckr@gilligan.eng.umd.edu To: FreeBSD-Hackers Subject: Re: conditionally including Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk [reposted -- my mailer couldn't handle Thomas David Rivers ucbvax address] On Sun, 2 Feb 1997, Thomas David Rivers wrote: > > > > Sorry to have to bring this back to light... > > I was under the impression that we had agreed that > > "#if (defined(__unix__) || defined(unix))" was the best way to > > conditionally include . However, this email from Chuck, > > implies that this is a Bad Thing. > > Unfortunately the symbols: > unix > FreeBSD > NetBSD > OpenBSD > > violate the user's name space. For example, I have programs > that define some of these on the command line. If these were defined > elsewhere things would break. [Of course, such things do break > on other hosts; e.g. SunOS 4.x defines "unix".] > > I would suggest using: > __unix__ > __FreeBSD__ > __NetBSD__ > __OpenBSD__ > > as identifiers beginning with "_" are reserved (per ANSI) for the > implementation. __unix__ seems unneeded, but __FreeBSD__, __NetBSD__, and __OpenBSD__ are already used successfully by X11 (see /usr/X11R6/lib/X11/Imake.cf) and I think they'll work fine for us. We can add specific additional names, one by one, as we get specific requests from other systems. I'd like this. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+----------------------------------------------- From owner-freebsd-hackers Mon Feb 3 06:08:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA29715 for hackers-outgoing; Mon, 3 Feb 1997 06:08:10 -0800 (PST) Received: from terra.Sarnoff.COM (terra.sarnoff.com [130.33.11.203]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id GAA29708 for ; Mon, 3 Feb 1997 06:08:06 -0800 (PST) Received: (from rminnich@localhost) by terra.Sarnoff.COM (8.6.12/8.6.12) id JAA03379; Mon, 3 Feb 1997 09:06:08 -0500 Date: Mon, 3 Feb 1997 09:06:07 -0500 (EST) From: "Ron G. Minnich" X-Sender: rminnich@terra To: Narvi cc: Terry Lambert , gurney_j@resnet.uoregon.edu, hackers@freefall.freebsd.org Subject: Re: performance puzzler In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 2 Feb 1997, Narvi wrote: > On Sat, 1 Feb 1997, Terry Lambert wrote: > > The PCI and EISA standards specify 33MHz as their top end. > Where did I read about 66Mhz revision/mode for PCI? Was it in a dream or > just a "not supported by anybody yet" possibility as is the 64bit card > width. Or was it all just a dream or erroneus news article? chapter 7 of the pci rev 2.1 spec discusses the 66 mhz. spec. Also 64 bits has been in forever. ron From owner-freebsd-hackers Mon Feb 3 06:27:02 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA00505 for hackers-outgoing; Mon, 3 Feb 1997 06:27:02 -0800 (PST) Received: from terra.Sarnoff.COM (terra.sarnoff.com [130.33.11.203]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id GAA00500 for ; Mon, 3 Feb 1997 06:27:00 -0800 (PST) Received: (from rminnich@localhost) by terra.Sarnoff.COM (8.6.12/8.6.12) id JAA03581; Mon, 3 Feb 1997 09:26:23 -0500 Date: Mon, 3 Feb 1997 09:26:22 -0500 (EST) From: "Ron G. Minnich" X-Sender: rminnich@terra To: freebsd-hackers@FreeBSD.ORG Subject: Re: Re(2): Using rfork() / threads In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 1 Feb 1997, Michael Hancock wrote: > The Vahalia book mentions shared memory locks for 4.4BSD that worked > essentially the same way. They were named mset, mwait, or something like > that. yeah, but recall that I did this stuff 9/94. mset etc. were not around then, and appear to still not be. > Fastlock sounds cool, but shared memory locks are supposed to be fast. It's a bit more complex than shared memory locks. The problem is making shared memory locks between heavyweight processes that are efficient and in particular never do a system call unless needed. > I prefer the mxxx conventions to categorize it with the > mmap calls. works for me. this lock question keeps coming up. I have some old messages that describe the operation of fastlock that I will forward to this list. The experience of the last 2.5 years leads me to believe fastlock will be in openbsd much sooner than freebsd (chuck cranor pointed out to me yesterday that minherit() is in openbsd now ...) assuming it ever gets into freebsd ... ron From owner-freebsd-hackers Mon Feb 3 06:30:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA00655 for hackers-outgoing; Mon, 3 Feb 1997 06:30:44 -0800 (PST) Received: from terra.Sarnoff.COM (terra.sarnoff.com [130.33.11.203]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id GAA00639 for ; Mon, 3 Feb 1997 06:30:41 -0800 (PST) Received: (from rminnich@localhost) by terra.Sarnoff.COM (8.6.12/8.6.12) id JAA03664; Mon, 3 Feb 1997 09:30:10 -0500 Date: Mon, 3 Feb 1997 09:30:09 -0500 (EST) From: "Ron G. Minnich" X-Sender: rminnich@terra To: freebsd-hackers@freebsd.org Subject: OK, here goes fastlock: (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ron Minnich |"Failure is not an option" -- Gene Kranz rminnich@sarnoff.com | -- except, of course, on Microsoft products (609)-734-3120 | ftp://ftp.sarnoff.com/pub/mnfs/www/docs/cluster.html ---------- Forwarded message ---------- Date: Tue, 2 Jul 1996 09:50:01 -0400 (EDT) From: Ron G. Minnich To: hackers@freebsd.org Subject: OK, here goes fastlock: Here's a simple test-and-set function for the 386 (tested and works): int tset(int *i, int lockval, int unlockval) { int j = 0; asm("movl 16(%ebp), %eax"); asm("movl 8(%ebp),%ecx"); asm("movl 12(%ebp),%edx"); asm("cmpxchg %edx, (%ecx)"); asm("jne failed"); asm("movl %eax, -4(%ebp)"); asm("jmp done"); asm("failed: movl %eax, -4(%ebp)"); asm("done:"); return j; } This will run a bit faster than a file lock system call :-). But what about contention? notice that this function, if it fails, fails. so we need a retry strategy. IF you fail, should you spin forever? NO! Do that, and you eat the processor doing nothing. You ought to have a reasonable way to, say, spin one or two more times, then go to a more heavyweight sleep. SO: here's the fastlock library call (#ifdef USEMOD is for LKM ) void fastlock(int *address, int lockval, int unlockval) { int testval; #ifdef USEMOD static int syscallnum = -1; if (syscallnum < 0) syscallnum = syscallfind("fastlock"); if (syscallnum < 0) { perror("fastlock syscallfind"); return; } #endif testval = tset(address, lockval, unlockval); if (testval == unlockval) { #ifdef FASTLOCKDEBUG printf("(%d)fastlock quickout\n", getpid()); #endif return; } /* attempt to lock failed. test then wait in kernel sleep() */ while (1) { /* set the high-order bit. This tells the unlocker to do the system * call and free up the lock. */ (void) tset(address, testval|0x80000000,testval); #ifdef FASTLOCKDEBUG printf("(%d)hang in there\n", getpid()); #endif /* we should be checking here to make sure that high-order bit is * set. But this second tset fails only * in the event of contention, in which case * someone else has set the high-order * bit too ... seems pointless, esp. given that fastlock has a timeout */ syscall(syscallnum, 1, address, unlockval); testval = tset(address, lockval, unlockval); if (testval == unlockval) return; } } So what are we doing? We're doing the tset. If it fails, then we do one more tset, to set the high order bit, then drop into the fastlock system call. Once we return from that, we try to tset the variable again. If that fails, we drop once again into the system call. Here's fastunlock: void fastunlock(int *address, int unlockval) { int dosyscall = 0; static int syscallnum = -1; /* this is really in the file */ #ifdef USEMOD if (syscallnum < 0) syscallnum = syscallfind("fastlock"); if (syscallnum < 0) { perror("fastunlock syscallfind"); return; } #endif if (*address & 0x80000000) dosyscall = 1; *address = unlockval; #ifdef FASTLOCKDEBUG printf("(%d)fastunlock dosyscall is %d\n", getpid(), dosyscall); if (dosyscall) printf("conflict %d\n", getpid()); fflush(stdout); #endif if (dosyscall) syscall(syscallnum, 0, address, unlockval); } Ok, this one tests to see if it needs to wake any sleepers, clears the memory variable, then drops into the kernel if needed (if (dosyscall) ...) Here's the system call. Note several things: 1) the definition of 'unlocked' is passed in to the system call for the final test, not assumed to be zero. 2) The 'address' argument does NOT NEED TO BE AN ADDRESS. it's a number that all the procs have to agree on, that is all. 3) if you accidently awake more than one sleeper, the loop in fastlock handles that properly 4) This system call handles both waking up and sleeping 5) For my measurements, this thing is a whole lot faster than anything else available on (e.g.) freebsd. Questions to me. int fastlock(p, uap, retval) struct proc *p; struct flu *uap; int retval[]; { extern int hz; retval[0] = 0; /* printf("fastlockunlock: com %d address 0x%x unlocked %d\n", uap->com, uap->address, uap->unlocked); */ if (uap->com == 0) /* unlock */ wakeup((void *) uap->address); else { /* last chance */ /* try one last time to see if it is unlocked */ int curval = fuword((void *) uap->address); if (curval == uap->unlocked) return; tsleep((void *) uap->address, PUSER, NULL, 10*hz); } return 0; } Ron Minnich |"Inferno runs on MIPS ..., Intel ..., and AMD's rminnich@sarnoff.com |29-kilobit-per-second chip-based architectures ..." (609)-734-3120 | Comm. week, may 13, pg. 4. ftp://ftp.sarnoff.com/pub/mnfs/www/docs/cluster.html From owner-freebsd-hackers Mon Feb 3 07:15:03 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA02558 for hackers-outgoing; Mon, 3 Feb 1997 07:15:03 -0800 (PST) Received: from hda.hda.com (ip95-max1-fitch.ziplink.net [199.232.245.95]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id HAA02546 for ; Mon, 3 Feb 1997 07:14:57 -0800 (PST) Received: (from dufault@localhost) by hda.hda.com (8.6.12/8.6.12) id JAA19438; Mon, 3 Feb 1997 09:48:58 -0500 From: Peter Dufault Message-Id: <199702031448.JAA19438@hda.hda.com> Subject: Re: Jukka Ukkonen: POSIX.4 - scheduler once more (as you requested) In-Reply-To: <199702030234.NAA01680@genesis.atrad.adelaide.edu.au> from Michael Smith at "Feb 3, 97 01:04:14 pm" To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Mon, 3 Feb 1997 09:48:58 -0500 (EST) Cc: dufault@hda.com, jkh@time.cdrom.com, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Peter Dufault stands accused of saying: > > One quick observation: > > > > > X * 5. The source code must be available for anyone who wishes to have it. > > > > What do people think of packaging this up as a user library against > > an LKM'd pseudo /dev/realtime driver? I have the skeleton to do > > How does this help the posix.4 scheduling model though? Does having it as > an LKM still allow this to work "as expected"? I have an LKM skeleton that includes scheduling. I have to decide if I like it or not. Everything funnels through an ioctl, though it is set up to be installed as system calls if that is preferred. I've been thinking about a dispatch through system calls that is redirected from the default if you have the device open since I think that works as the best of both worlds. > > that. My reasoning is I'd like to be able to have different realtime > > facilities, for example, process migration to an attached embedded > > processor that would "fault" back as soon as you tried to do > > something in that environment. It also gives you a way to have > > realtime user or group protection. > > Sounds reasonable (and interesting). Do you have more words on this > somewhere? I have too many words on it. Maybe at the end of the week I'll proofread it and put it someplace public. -- Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 From owner-freebsd-hackers Mon Feb 3 07:56:58 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA04446 for hackers-outgoing; Mon, 3 Feb 1997 07:56:58 -0800 (PST) Received: from eldorado.net-tel.co.uk ([193.122.171.253]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id HAA04435 for ; Mon, 3 Feb 1997 07:56:52 -0800 (PST) From: Andrew.Gordon@net-tel.co.uk Received: (from root@localhost) by eldorado.net-tel.co.uk (8.6.12/8.6.10) id PAA25467; Mon, 3 Feb 1997 15:55:34 GMT Received: from "/PRMD=NET-TEL/ADMD=GOLD 400/C=GB/" by net-tel.co.uk (Route400-RFCGate); Mon, 3 Feb 97 15:53:27 +0000 X400-Received: by mta "eldorado" in "/PRMD=net-tel/ADMD=gold 400/C=gb/"; Relayed; Mon, 3 Feb 97 15:53:27 +0000 X400-Received: by mta "net-tel cambridge" in "/PRMD=net-tel/ADMD=gold 400/C=gb/"; Relayed; Mon, 3 Feb 97 15:53:25 +0000 X400-Received: by "/PRMD=NET-TEL/ADMD=Gold 400/C=GB/"; Relayed; Mon, 3 Feb 97 15:53:25 +0000 X400-MTS-Identifier: ["/PRMD=NET-TEL/ADMD=Gold 400/C=GB/";hst:8655-970203155325-43F7] X400-Content-Type: P2-1984 (2) X400-Originator: Andrew.Gordon@net-tel.co.uk Original-Encoded-Information-Types: IA5-Text X400-Recipients: non-disclosure:; Date: Mon, 3 Feb 97 15:53:25 +0000 X400-Content-Identifier: Re: OK, here goe Message-Id: <"3a14-970203154823-6178*/G=Andrew/S=Gordon/O=NET-TEL Computer Systems Ltd/PRMD=NET-TEL/ADMD=Gold 400/C=GB/"@MHS> To: rminnich@Sarnoff.COM Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: Subject: Re: OK, here goes fastlock: (fwd) Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk [debug ifdefs removed from quoted section for brevity] > fastunlock(int *address, int unlockval) > { > int dosyscall = 0; > static int syscallnum = -1; /* this is really in the file */ > if (*address & 0x80000000) /***/ > dosyscall = 1; > *address = unlockval; > if (dosyscall) > syscall(syscallnum, 0, address, unlockval); > } Isn't there a race here? If the process holding the lock happens to get descheduled at the point marked /***/ and another process blocks waiting for the lock, the syscall doesn't get called and the second process continues to block until the 10 second timeout in the syscall. This can no doubt be fixed with another tset of some sort when releasing the lock. > 2) The 'address' argument does NOT NEED TO BE AN ADDRESS. it's a number > that all the procs have to agree on, that is all. You seem to be assuming that it _is_ an address in this implementation however: > int curval = fuword((void *) uap->address); > if (curval == uap->unlocked) > return; From owner-freebsd-hackers Mon Feb 3 08:36:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA06721 for hackers-outgoing; Mon, 3 Feb 1997 08:36:51 -0800 (PST) Received: from terra.Sarnoff.COM (terra.sarnoff.com [130.33.11.203]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id IAA06716 for ; Mon, 3 Feb 1997 08:36:48 -0800 (PST) Received: (from rminnich@localhost) by terra.Sarnoff.COM (8.6.12/8.6.12) id LAA04463; Mon, 3 Feb 1997 11:35:21 -0500 Date: Mon, 3 Feb 1997 11:35:20 -0500 (EST) From: "Ron G. Minnich" X-Sender: rminnich@terra To: Andrew.Gordon@net-tel.co.uk cc: freebsd-hackers@FreeBSD.ORG Subject: Re: OK, here goes fastlock: (fwd) In-Reply-To: <"3a14-970203154823-6178*/G=Andrew/S=Gordon/O=NET-TEL Computer Systems Ltd/PRMD=NET-TEL/ADMD=Gold 400/C=GB/"@MHS> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > fastunlock(int *address, int unlockval) > > { > > int dosyscall = 0; > > static int syscallnum = -1; /* this is really in the file */ > > if (*address & 0x80000000) /***/ > > dosyscall = 1; > > *address = unlockval; > > if (dosyscall) > > syscall(syscallnum, 0, address, unlockval); > > } > > Isn't there a race here? If the process holding the lock happens to > get descheduled at the point marked /***/ and another process blocks > waiting for the lock, the syscall doesn't get called and the second > process continues to block until the 10 second timeout in the syscall. You're right there is a race. It's not wide, and I have never hit it, but it's certainly there. What I should have done, but mistakenly did not do, was use an indivisible sequence of instructions for unlock as well. Mea culpa. What it seems to me I should have done: let's assume for example I successfully fastlocked()'ed and we set the lockword to 0x1. We come to the unlock code: If there is contention, the value will be 0x80000001 For the first unlock attempt, assume no contention: test and set with the test value of 1 (our lock value) and the set value of 0. IF the tset succeeds, the we have indivisibly unlocked it; done. If the tset fails, then there is contention. So test and set with the value 0x80000001. At this point this should have succeeded. Then call the system call. Both tset sequences on the unlock are indivisible, eliminating the race. Does this look right now? > > 2) The 'address' argument does NOT NEED TO BE AN ADDRESS. it's a number > > that all the procs have to agree on, that is all. > You seem to be assuming that it _is_ an address in this implementation > however: > > int curval = fuword((void *) uap->address); Ouch, foolish me. Obviously I've never used it as 'not an address'. Sorry about that! Thanks for the comments! But now i've got something to fix! ron From owner-freebsd-hackers Mon Feb 3 09:22:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA09173 for hackers-outgoing; Mon, 3 Feb 1997 09:22:54 -0800 (PST) Received: from post-ofc04.srv.cis.pitt.edu (post-ofc04.srv.cis.pitt.edu [136.142.185.11]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA09167 for ; Mon, 3 Feb 1997 09:22:50 -0800 (PST) Received: from ehdup-o-3.rmt.net.pitt.edu (ehdup-o-3.rmt.net.pitt.edu [136.142.22.53]) by post-ofc04.srv.cis.pitt.edu with SMTP (8.8.5/cispo-2.0.1.7) ID ; Mon, 3 Feb 1997 12:11:15 -0500 (EST) Message-ID: <32F5D5C1.41C67EA6@pitt.edu> Date: Mon, 03 Feb 1997 07:10:41 -0500 From: John David Duncan Organization: hopeless X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2-BETA_A i386) MIME-Version: 1.0 To: Steve Howe CC: Freebsd-Hackers@FreeBSD.ORG Subject: Re: un-ethical isp References: <293_9702030127@ice-bbs.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Which version of FreeBSD were you running, just out of curiosity. Supposedly, because of an interesting set of bugs in the pingd, vers 2.1.5 and above are assumed stable vs. the ping-o-death. Anyhow, you have to look at the license that your isp gave you (they gave you a license, right?) when you started using them. If they said anything about the privacy or assumed privacy of your communications, as far as the control of such issues is in the hands of the isp itself, that is, not the insecurity of the isp from outside invasion, but rather the security of your messages vs. the maturity of the provider, then you will certainly have to take that license to a lawyer and find out if there are laws in your state that prohibit the denial of certain express or implied rights that such a license would remove. If there is no material on this subject, then one could say that the isp does not own the messages, they only own the medium, and that they had no right to copy and divert your intellectual property to anyone else but its intended recipient. But this sort of thing has not necessarily been worked out. The US mail, for example, has the right to open and inspect a package for reasons of customs, taxes, dangerous items, or bad addressing, but they don't have the right to, say, divert the package to the govern- ment, then to your boss, then to the freemasonry, then to its recipient. And I think that law, at least, interstate commerce law, prohibits, say, UPS from doing similar things. I am not, also, allowed to tap your wire, or sniff your packets, or whatever. Furthermore, no phone company is allowed to listen in on your conver- sations without the express warrant by a court--despite the fact that, if you live in Pennsylvania like I do (I know you don't), then Bell Atlantic will have your information in one of their exchanges and on the wires that they own. It would not be fair if they were to have that ability. The government is not even allowed to sit on potentially unstable sites, like ftp.freebsd.org, to find out whether the secure and eBones sources are being distributed either purposefully or accidentally into another country, but they do have the right to get a court's warrant to sieze the logs at walnut creek and demonstrate that a copy of DES made it to france. I figure that the same goes for the internet carrier. I don't think that they can imply that by using their smtp server to bounce your messages to others that they suddenly own your messages. They would, by that respect, be able to publish one of your poems, etc. To really screw with them, attach "Copyright 1997 Steve Howe. All Rights Reserved." to all of your messages that you expect to be bounced, and you can hit them with federal copyright infringement allegations (although, in two years, without the copyright being registered, you would lose that right.) If they deleted those lines, they would also pay penalties for perjury.... Oh, so much fun. Just remember, with law, and a good lawyer, you can have just about as much fun as going postal, so don't bother buying the shotgun. -John -- Such opinions are not the intellectual property of NBC. For proof, watch "Dateline/NBC" Steve Howe wrote: > > Dear FreeBSDers, > > because of your excellent OS and superb knowledge, i/we decided to use > FreeBSD in projects for the government subcontracting starting about 2 > years ago. an associate and boss became upset due to their fear of > UNIX and a sort of conspiracy developed ... > > anyway - unbeknownst to me, the owners of my isp (alaska.net) were former > associates this vengeful/ignorant co-worker and boss, and together > (as i came close to finishing a project way ahead of their NT > project) they (isp) engaged in ping flooding all my machines > on my networks, grinding all my work to a complete halt for > a week, and additionally, after tracing the source of the > pinging and sending some nasty email, my isp transferred > all my email i had ever written on my personal/private > account to my boss and co-worker for review, ie, they > were looking for some goodies to get rid of me. > they hired private investigators, etc. but i > was squeaky clean, although things have > become miserable enough to quit. :) > > ANYWAY - my question is, although my lawyer says my isp may be > liable for slander, is there any other recourse i can take for > them giving 2 1/2 years of my email from my personal/private > account to my boss and co-workers? i wouldn't want laws, > but i despise un-ethical behaviour such as this! > > it included health information related to my family, > love letters :), thoughts, etc. all kinds of stuff > you'd never want anyone to see! > > (pgp? - well not everyone i wrote to can use it!) > > thanks ... please mail to hmmm@ice-bbs.net. > a friend/co-worker is allowing me use of this > account as i have no isp currently ... > -- > | Standard disclaimer: The views of the users are strictly their own. > | ICE BBS Network +1-907-346-2371 (ANSI, 28.8k, FREE E-MAIL!). From owner-freebsd-hackers Mon Feb 3 10:06:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA11574 for hackers-outgoing; Mon, 3 Feb 1997 10:06:44 -0800 (PST) Received: from fog.xinside.com (fog.xinside.com [199.164.187.39]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA11567 for ; Mon, 3 Feb 1997 10:06:38 -0800 (PST) Received: (from smap@localhost) by fog.xinside.com (8.8.3/8.7.3) id LAA16449; Mon, 3 Feb 1997 11:06:36 -0700 (MST) X-Authentication-Warning: fog.xinside.com: smap set sender to using -f Received: from chon.xinside.com(199.164.187.134) by fog.xinside.com via smap (V1.3) id sma016447; Mon Feb 3 11:06:34 1997 Received: (from patrick@localhost) by chon.xinside.com (8.7.5/8.6.12) id LAA06948; Mon, 3 Feb 1997 11:06:29 -0700 (MST) Date: Mon, 3 Feb 1997 11:06:29 -0700 (MST) Message-Id: <199702031806.LAA06948@chon.xinside.com> From: Patrick Giagnocavo To: hackers@freebsd.org, hmmm@ice-bbs.net Subject: Re: un-ethical isp In-Reply-To: <32F5D5C1.41C67EA6@pitt.edu> References: <293_9702030127@ice-bbs.net> <32F5D5C1.41C67EA6@pitt.edu> Reply-To: patrick@xinside.com Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk -snipped-- > > a week, and additionally, after tracing the source of the > > pinging and sending some nasty email, my isp transferred > > all my email i had ever written on my personal/private > > account to my boss and co-worker for review, ie, they > > were looking for some goodies to get rid of me. > > ANYWAY - my question is, although my lawyer says my isp may be > > liable for slander, is there any other recourse i can take for > > them giving 2 1/2 years of my email from my personal/private > > account to my boss and co-workers? i wouldn't want laws, > > but i despise un-ethical behaviour such as this! > > > > it included health information related to my family, > > love letters :), thoughts, etc. all kinds of stuff > > you'd never want anyone to see! > > > > (pgp? - well not everyone i wrote to can use it!) > > > > thanks ... please mail to hmmm@ice-bbs.net. > > a friend/co-worker is allowing me use of this > > account as i have no isp currently ... There is a federal statute that covers this sort of thing. Basically it is illegal to interfere with the delivery of electronic mail, and there are criminal consequences to those who do so. Two ways you can get these folks is that a) they interfered with the operation of the email system itself by ping flooding, b) they transferred email to someone else when it was not addressed to them. In the case of Steve Jackson Games vs. the Gov't (I believe it was the Secret Service) the judge found for Steve Jackson Games once they pointed this out. This was a couple years ago, so there is case law and precedent that you can depend on. They are (based on the info you have given) in violation of the Electronic Communications and Privacy Act. (ECPA) Even BBS's which are not connected to the Net full time receive protection under this act. My first suggestion is that you get in contact with the Electronic Freedom Foundation (http://www.eff.org/). They are sort of like the ACLU for Net users. If they can't help you directly they can probably point you in the right direction. Cordially, Patrick Giagnocavo From owner-freebsd-hackers Mon Feb 3 11:09:38 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA14081 for hackers-outgoing; Mon, 3 Feb 1997 11:09:38 -0800 (PST) Received: from sendero.i-connect.net ([206.190.144.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA14056 for ; Mon, 3 Feb 1997 11:09:01 -0800 (PST) Received: (from shimon@localhost) by sendero.i-connect.net (8.8.5/8.8.4) id MAA01622; Mon, 3 Feb 1997 12:07:37 -0800 (PST) Message-ID: X-Mailer: XFMail 1.1-alpha [p0] on FreeBSD Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <14120.854650859@time.cdrom.com> Date: Mon, 03 Feb 1997 10:58:55 -0800 (PST) Organization: iConnect Corp. From: Simon Shapiro To: "Jordan K. Hubbard" Subject: RE: Jukka Ukkonen: POSIX.4 - scheduler once more (as you request Cc: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi Jordan K. Hubbard; On 30-Jan-97 you wrote: > Any interest in this? I'd like a few more reviewers, if possible. Sure. I'll try. Apply it to 2.2-BETA /usr/src/sys and compile new kernel? Simon > > ------- Forwarded Message > > From: jau@iki.fi (Jukka Ukkonen) > Latin-Date: Miercuri XXIX Ianuarie a.d. MCMXCVII > Organization: Private person > Phone: +358-9-6215280 (home) > Reply-To: jau@iki.fi (Jukka Ukkonen) > Content-Conversion: prohibited > X-Mailer: ELM [version 2.4 PL25+pgp] > MIME-Version: 1.0 > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > > > Greetings from Helsinki, > > You said earlier that you did not dare to publish my POSIX > sched-package before I send you the correct version once more, > because previously I had sent you an old version. From owner-freebsd-hackers Mon Feb 3 11:43:59 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA16125 for hackers-outgoing; Mon, 3 Feb 1997 11:43:59 -0800 (PST) Received: from browncow.com (ch_asc1_p33.taconic.net [205.231.28.35]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA16117 for ; Mon, 3 Feb 1997 11:43:52 -0800 (PST) Received: by browncow.com (951211.SGI.8.6.12.PATCH1042/940406.SGI) id OAA18041; Mon, 3 Feb 1997 14:42:02 -0500 Date: Mon, 3 Feb 1997 14:42:02 -0500 From: kish@browncow.com (Bill Kish) Message-Id: <199702031942.OAA18041@browncow.com> To: hackers@freefall.freebsd.org Subject: kernel malloc options Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, I'm working on a a Network related module which performs a function similar to Network Address Translation. This module needs to dynamically allocate small (~40 byte) structures to keep track of currently established TCP connections between machines on the "inside" and "outside" networks. Currently, I'm malloc()ing these structures as needed using the following parameters: malloc((u_long)sizeof(*conxn), M_TEMP, M_NOWAIT) This appears to work fine in my initial lightly loaded tests, however, I'm concerned about what will happen when the system is under heavy load. I have the following questions and would appreciate any advice offered! 1) Is malloc() a reasonable allocator for small highly dynamic objects? 2) Is M_TEMP a good choice? Does it make a difference? 3) Are there any config options that affect the amount of pinned kernel memory available for malloc? The system will be doing little else besides dealing with these packets... Thanks In Advance, -BK -- From owner-freebsd-hackers Mon Feb 3 11:50:14 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA16454 for hackers-outgoing; Mon, 3 Feb 1997 11:50:14 -0800 (PST) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA16444 for ; Mon, 3 Feb 1997 11:50:08 -0800 (PST) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by mail.cdsnet.net (8.8.4/8.7.3) with SMTP id LAA02738 for ; Mon, 3 Feb 1997 11:50:07 -0800 (PST) Date: Mon, 3 Feb 1997 11:50:06 -0800 (PST) From: Jaye Mathisen To: hackers@freebsd.org Subject: How to build the whole tree -static? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have space to burn on 1 box. Is there an easy way to tweak the build process to make it compile the whole darn thing non-shared? From owner-freebsd-hackers Mon Feb 3 12:42:14 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA18664 for hackers-outgoing; Mon, 3 Feb 1997 12:42:14 -0800 (PST) Received: from narcissus.ml.org (root@brosenga.Pitzer.edu [134.173.120.201]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA18659 for ; Mon, 3 Feb 1997 12:42:13 -0800 (PST) Received: (from ben@localhost) by narcissus.ml.org (8.7.5/8.7.3) id MAA06801; Mon, 3 Feb 1997 12:41:35 -0800 (PST) Date: Mon, 3 Feb 1997 12:41:34 -0800 (PST) From: Stranger Bone To: Jaye Mathisen cc: hackers@freebsd.org Subject: Re: How to build the whole tree -static? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997, Jaye Mathisen wrote: > > > I have space to burn on 1 box. Is there an easy way to tweak the build > process to make it compile the whole darn thing non-shared? > Ha! I only found the answer to this last night. You need to edit /usr/share/mk/sys.mk. There's a line that reads CFLAGS ?= -O Change it to CFLAGS ?= -O -static Ben The views expressed above are not those of the Worker's Compensation Board of Queensland, Australia. From owner-freebsd-hackers Mon Feb 3 12:58:57 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA19677 for hackers-outgoing; Mon, 3 Feb 1997 12:58:57 -0800 (PST) Received: from iidpwr.com ([204.33.177.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA19658 for ; Mon, 3 Feb 1997 12:58:52 -0800 (PST) Received: from tam.ee.iidpwr.com ([204.33.177.99]) by mail.iidpwr.com with SMTP id <15360>; Mon, 3 Feb 1997 12:59:46 -0800 Message-ID: <32F651D0.167EB0E7@iidpwr.com> Date: Mon, 3 Feb 1997 13:00:00 -0800 From: Tony Tam Organization: Imperial Irrigation District X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.1.6-RELEASE i386) MIME-Version: 1.0 To: hackers@freebsd.org Subject: unsubscribe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk unsubscribe -- Yours truly, ------------------------------------------------------------------------- | Tony Tam | Tel: 619-339-9454 | | Imperial Irrigation District | FAX: 619-339-9189 | | Imperial, CA 92251, USA | E-Mail: ttam@iidpwr.com | ------------------------------------------------------------------------- From owner-freebsd-hackers Mon Feb 3 13:14:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA20600 for hackers-outgoing; Mon, 3 Feb 1997 13:14:07 -0800 (PST) Received: from gargoyle.bazzle.com (gargoyle.bazzle.com [206.103.246.190]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA20593 for ; Mon, 3 Feb 1997 13:13:57 -0800 (PST) Received: from gargoyle.bazzle.com (net2.bazzle.com [206.103.246.189]) by gargoyle.bazzle.com (8.8.4/8.6.12) with SMTP id QAA05056; Mon, 3 Feb 1997 16:13:35 -0500 (EST) Date: Mon, 3 Feb 1997 16:13:35 -0500 (EST) From: "Eric J. Chet" To: Bakul Shah cc: hackers@FreeBSD.ORG Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta In-Reply-To: <199702021539.KAA21607@chai.plexuscom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > The -frepo patches don't work on our version of the g++ and > > ld. I assume ld is the problem. I haven't had the time to take a look > > to see what needs to be changed. The -frepo patch from Cygnus when > > applied, should create a set of *.ii one for each source file complied > > from g++. The *.ii files specify all templates that need to be > > instantiated before linking can take place. I believe there is a collect2 > > module that performs the instantiations task. > > I started with the *stock* gcc-2.7.2 distribution (+ 2.7.2-2.7.2.1 > diff), not the one in the FreeBSD source tree. > > The -frepo patch generates a .rpo file. In the test case I posted > this .rpo file contains lines like Oops, *.rpo files I use the EDG complier at work it generates *.ii files, same idea. > > On the other hand, the only thing you lose by not having the > > repository with our native compiler is executable size. The compiler > > will instantiated every template used in a object file and include it in > > that object file. Meaning, you can have duplicate template instantiations > > across different object files. > > This appears not to be the case. Are there any flags which make > this possible? Does libg++-2.7.1 have to be compiled with any > special flags or defines? > Works for me, -current g++ compiler. -- ejc@gargoyle: cat list1.cpp #include #include int array1 [] = { 9, 16, 36 }; int array2 [] = { 1, 4 }; int main () { list l1 (array1, array1 + 3); list l2 (array2, array2 + 2); list::iterator i1 = l1.begin (); l1.splice (i1, l2); list::iterator i2 = l1.begin (); while (i2 != l1.end ()) cout << *i2++ << endl; return 0; } ejc@gargoyle: g++ -o list1 list1.cpp ejc@gargoyle: ./list1 1 4 9 16 36 ejc@gargoyle: -- I have been using stl under our current compiler for a while without any problems, other than the known bugs. Just waiting for g++ 2.8.0 template member functions, static template member data, default template member parameters and sgi_stl. Life is good. Eric J. Chet - ejc@naserver1.cb.lucent.com - ejc@bazzle.com From owner-freebsd-hackers Mon Feb 3 13:41:41 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA22419 for hackers-outgoing; Mon, 3 Feb 1997 13:41:41 -0800 (PST) Received: from main.gbdata.com (tel_ppp0005.livingston.net [207.22.211.14]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA22396 for ; Mon, 3 Feb 1997 13:41:24 -0800 (PST) Received: (from gclarkii@localhost) by main.gbdata.com (8.7.5/8.6.9) id PAA06850; Mon, 3 Feb 1997 15:41:07 -0600 (CST) From: Gary Clark II Message-Id: <199702032141.PAA06850@main.gbdata.com> Subject: Re: How to build the whole tree -static? To: ben@narcissus.ml.org (Stranger Bone) Date: Mon, 3 Feb 1997 15:41:03 -0600 (CST) Cc: mrcpu@cdsnet.net, hackers@freebsd.org In-Reply-To: from Stranger Bone at "Feb 3, 97 12:41:34 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Stranger Bone wrote: > On Mon, 3 Feb 1997, Jaye Mathisen wrote: > > > > > > > I have space to burn on 1 box. Is there an easy way to tweak the build > > process to make it compile the whole darn thing non-shared? > > > > Change it to > > CFLAGS ?= -O -static I don't belive that this would work right. I should be a linker flag... > > > Ben > You should also be able to set the env variable NOSHARED and get the same effect. Thats why I added this. Gary -- Gary Clark II (N5VMF) | I speak only for myself and "maybe" my company gclarkii@GBData.COM | Member of the FreeBSD Doc Team Providing Internet and ISP startups mail info@GBData.COM for information FreeBSD FAQ at ftp://ftp.FreeBSD.ORG/pub/FreeBSD/docs/freebsd-faq.ascii From owner-freebsd-hackers Mon Feb 3 13:42:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA22484 for hackers-outgoing; Mon, 3 Feb 1997 13:42:35 -0800 (PST) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA22478 for ; Mon, 3 Feb 1997 13:42:31 -0800 (PST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id OAA23359; Mon, 3 Feb 1997 14:42:12 -0700 (MST) Date: Mon, 3 Feb 1997 14:42:12 -0700 (MST) Message-Id: <199702032142.OAA23359@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Jaye Mathisen Cc: hackers@freebsd.org Subject: Re: How to build the whole tree -static? In-Reply-To: References: Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I have space to burn on 1 box. Is there an easy way to tweak the build > process to make it compile the whole darn thing non-shared? # setenv NOSHARED # cd /usr/src # make world Nate From owner-freebsd-hackers Mon Feb 3 14:04:53 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA23601 for hackers-outgoing; Mon, 3 Feb 1997 14:04:53 -0800 (PST) Received: from narcissus.ml.org (root@brosenga.Pitzer.edu [134.173.120.201]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA23595 for ; Mon, 3 Feb 1997 14:04:48 -0800 (PST) Received: (from ben@localhost) by narcissus.ml.org (8.7.5/8.7.3) id OAA12080; Mon, 3 Feb 1997 14:04:39 -0800 (PST) Date: Mon, 3 Feb 1997 14:04:38 -0800 (PST) From: Stranger Bone To: Nate Williams cc: Jaye Mathisen , hackers@freebsd.org Subject: Re: How to build the whole tree -static? In-Reply-To: <199702032142.OAA23359@rocky.mt.sri.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997, Nate Williams wrote: > > I have space to burn on 1 box. Is there an easy way to tweak the build > > process to make it compile the whole darn thing non-shared? > > # setenv NOSHARED > # cd /usr/src > # make world > Perhaps this only works within the tree, not within ports? narcissus:{/usr/ports/misc/fd}% setenv NOSHARED narcissus:{/usr/ports/misc/fd}% make cc -O -DFD -DFREEBSD -DDEFRUNCOM=\"/usr/local/etc/fdrc\" -O -c term.c cc -O -DFD -DFREEBSD -DDEFRUNCOM=\"/usr/local/etc/fdrc\" -O -c pathname.c cc -O -DFD -DFREEBSD -DDEFRUNCOM=\"/usr/local/etc/fdrc\" -O -c libc.c narcissus:{/usr/ports/misc/fd}% cd work/FD-1.01/ narcissus:{/usr/ports/misc/fd/work/FD-1.01}% file fd fd: FreeBSD/i386 demand paged dynamically linked executable not stripped ^^^^^^^^^^^^^^^^^^ > > Nate > Ben The views expressed above are not those of the Worker's Compensation Board of Queensland, Australia. From owner-freebsd-hackers Mon Feb 3 14:06:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA23702 for hackers-outgoing; Mon, 3 Feb 1997 14:06:10 -0800 (PST) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA23689 for ; Mon, 3 Feb 1997 14:06:05 -0800 (PST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id PAA23462; Mon, 3 Feb 1997 15:06:00 -0700 (MST) Date: Mon, 3 Feb 1997 15:06:00 -0700 (MST) Message-Id: <199702032206.PAA23462@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Stranger Bone Cc: hackers@freebsd.org Subject: Re: How to build the whole tree -static? In-Reply-To: References: <199702032142.OAA23359@rocky.mt.sri.com> Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > process to make it compile the whole darn thing non-shared? > > > > # setenv NOSHARED > > # cd /usr/src > > # make world > > > > Perhaps this only works within the tree, not within ports? I know *nothing* about ports. You'd need to take to Satoshi, Chuck, or others about that. Nate From owner-freebsd-hackers Mon Feb 3 14:22:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA24500 for hackers-outgoing; Mon, 3 Feb 1997 14:22:07 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA24480 for ; Mon, 3 Feb 1997 14:21:08 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA11871; Mon, 3 Feb 1997 23:20:43 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id XAA14281; Mon, 3 Feb 1997 23:17:12 +0100 (MET) Message-ID: Date: Mon, 3 Feb 1997 23:17:12 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: ben@narcissus.ml.org (Stranger Bone) Cc: mrcpu@cdsnet.net (Jaye Mathisen), hackers@freebsd.org Subject: Re: How to build the whole tree -static? References: X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from Stranger Bone on Feb 3, 1997 12:41:34 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Stranger Bone wrote: > > I have space to burn on 1 box. Is there an easy way to tweak the build > > process to make it compile the whole darn thing non-shared? > > > > Ha! I only found the answer to this last night. > > You need to edit /usr/share/mk/sys.mk. But of course, editing /etc/make.conf would have sufficed as well. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-hackers Mon Feb 3 14:40:17 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA25370 for hackers-outgoing; Mon, 3 Feb 1997 14:40:17 -0800 (PST) Received: from po2.glue.umd.edu (root@po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA25364 for ; Mon, 3 Feb 1997 14:40:11 -0800 (PST) Received: from uplink.eng.umd.edu (uplink.eng.umd.edu [129.2.98.181]) by po2.glue.umd.edu (8.8.5/8.7.3) with ESMTP id RAA29696; Mon, 3 Feb 1997 17:40:05 -0500 (EST) Received: from localhost (chuckr@localhost) by uplink.eng.umd.edu (8.8.5/8.7.3) with SMTP id RAA13738; Mon, 3 Feb 1997 17:40:05 -0500 (EST) X-Authentication-Warning: uplink.eng.umd.edu: chuckr owned process doing -bs Date: Mon, 3 Feb 1997 17:40:05 -0500 (EST) From: Chuck Robey X-Sender: chuckr@uplink.eng.umd.edu To: Nate Williams cc: Stranger Bone , hackers@freebsd.org Subject: Re: How to build the whole tree -static? In-Reply-To: <199702032206.PAA23462@rocky.mt.sri.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997, Nate Williams wrote: > > > > process to make it compile the whole darn thing non-shared? > > > > > > # setenv NOSHARED > > > # cd /usr/src > > > # make world > > > > > > > Perhaps this only works within the tree, not within ports? > > I know *nothing* about ports. You'd need to take to Satoshi, Chuck, or > others about that. I'd be kinda interested in just how BIG building the tree non-shared is, but I hate to say that there isn't any reliable way to build all the ports non-shared. Just adding -static to your CFLAGS would get some of it, but not all by a long shot. > > > Nate > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+----------------------------------------------- From owner-freebsd-hackers Mon Feb 3 14:50:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA25769 for hackers-outgoing; Mon, 3 Feb 1997 14:50:33 -0800 (PST) Received: from merix.merix.com (merix.merix.com [198.145.172.40]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA25727 for ; Mon, 3 Feb 1997 14:50:29 -0800 (PST) Received: from sandy.merix.com by merix.merix.com with SMTP (1.38.110.45/16.2) id AA074970666; Mon, 3 Feb 1997 14:57:46 -0800 Received: by sandy.merix.com (4.1/8.0) id AA02205; Mon, 3 Feb 97 14:46:56 PST Date: Mon, 3 Feb 97 14:46:56 PST Subject: Two-way pipe possible without C/perl? To: freebsd-hackers@freebsd.org From: Troy Curtiss Message-Id: Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I am looking for a very quick and dirty way to have my FreeBSD box page me when certain systems go down at work. The easiest way I can think of is to create a 2-way pipe between a chat command and the cu command. Something like: chat " '' ATZ OK ATDT1800PAGER# CONNECT 'PIN12345' Sent ATH" <-> cu -l /dev/cuaa0 -s 300 in a shell script or etc... Is there a shell (sh, csh, tcsh, bash) mechanism to wire process A's stdin to process B's stdout, and vice- versa, or am I going to have to use perl/expect/C (more time-consuming)? No big deal, but if anybody has a good idea, I'd appreciate it. Cheers, Troy -- /-----------------------------------------------------------\ | Troy Curtiss, HW/SW Engineer | Email: troyc@merix.com | | Merix Corporation, CL-302 | Phone: (970) 203-6643 | | Loveland, CO 80537 | Fax : (970) 203-6610 | \-----------------------------------------------------------/ From owner-freebsd-hackers Mon Feb 3 15:10:45 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA26690 for hackers-outgoing; Mon, 3 Feb 1997 15:10:45 -0800 (PST) Received: from mail.bb.cc.wa.us ([208.8.136.10]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA26680 for ; Mon, 3 Feb 1997 15:10:38 -0800 (PST) Received: (from chris@localhost) by mail.bb.cc.wa.us (8.8.3/8.8.3) id XAA05341; Mon, 3 Feb 1997 23:11:02 GMT Date: Mon, 3 Feb 1997 23:11:02 +0000 () From: Chris Coleman To: Mark Tinguely cc: avalon@coombs.anu.edu.au, brian@awfulhak.demon.co.uk, hackers@FreeBSD.org Subject: Re: IPFILTER In-Reply-To: <199701132218.QAA13145@plains.nodak.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Darren, All is well, Everything is still running just Great. Now, I need to set up the FTP proxy agent. I am assuming this is what I need to do becuase FTP will not work. So where do I get general Instructions for Setting one of these up. Just point me in the right Direction, Is there a FAQ or DOC somewhere? Thanks From owner-freebsd-hackers Mon Feb 3 15:15:59 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA26953 for hackers-outgoing; Mon, 3 Feb 1997 15:15:59 -0800 (PST) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA26911 for ; Mon, 3 Feb 1997 15:15:42 -0800 (PST) Received: (from danny@localhost) by panda.hilink.com.au (8.7.6/8.7.3) id KAA02113; Tue, 4 Feb 1997 10:19:29 +1100 (EST) Date: Tue, 4 Feb 1997 10:19:29 +1100 (EST) From: "Daniel O'Callaghan" To: Troy Curtiss cc: freebsd-hackers@freebsd.org Subject: Re: Two-way pipe possible without C/perl? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997, Troy Curtiss wrote: > Hi, > I am looking for a very quick and dirty way to have my FreeBSD > box page me when certain systems go down at work. The easiest way > I can think of is to create a 2-way pipe between a chat command and > the cu command. Something like: > > chat " '' ATZ OK ATDT1800PAGER# CONNECT 'PIN12345' Sent ATH" <-> > cu -l /dev/cuaa0 -s 300 stty -f /dev/cuaa0 300 chat " '' ATZ OK ATDT1800PAGER# CONNECT 'PIN12345' Sent ATH" \ < /dev/cuaa0 > /dev/cuaa0 cheers, Danny From owner-freebsd-hackers Mon Feb 3 15:17:41 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA27132 for hackers-outgoing; Mon, 3 Feb 1997 15:17:41 -0800 (PST) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA27105 for ; Mon, 3 Feb 1997 15:16:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hydrogen.nike.efn.org (8.8.4/8.8.4) with SMTP id PAA19187; Mon, 3 Feb 1997 15:16:36 -0800 (PST) Date: Mon, 3 Feb 1997 15:16:33 -0800 (PST) From: John-Mark Gurney Reply-To: John-Mark Gurney To: Troy Curtiss cc: freebsd-hackers@freebsd.org Subject: Re: Two-way pipe possible without C/perl? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997, Troy Curtiss wrote: > Hi, > I am looking for a very quick and dirty way to have my FreeBSD > box page me when certain systems go down at work. The easiest way > I can think of is to create a 2-way pipe between a chat command and > the cu command. Something like: > > chat " '' ATZ OK ATDT1800PAGER# CONNECT 'PIN12345' Sent ATH" <-> > cu -l /dev/cuaa0 -s 300 > > in a shell script or etc... Is there a shell (sh, csh, tcsh, bash) > mechanism to wire process A's stdin to process B's stdout, and vice- > versa, or am I going to have to use perl/expect/C (more time-consuming)? > No big deal, but if anybody has a good idea, I'd appreciate it. why not just do something like this: chat -f file < /dev/cuaa0 > /dev/cuaa0 and if you need uucp locking do something like this: if shlock -p $$ -f /var/log/LCK.ttyd0; then chat -f file < /dev/cuaa0 > /dev/cuaa0 else echo someone else has the modem fi hope this helps... John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix) From owner-freebsd-hackers Mon Feb 3 15:55:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA28770 for hackers-outgoing; Mon, 3 Feb 1997 15:55:37 -0800 (PST) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA28763 for ; Mon, 3 Feb 1997 15:55:29 -0800 (PST) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.8.5/CET-v2.1) with SMTP id XAA13730 for ; Mon, 3 Feb 1997 23:55:23 GMT Date: Tue, 4 Feb 1997 08:55:23 +0900 (JST) From: Michael Hancock To: freebsd-hackers@FreeBSD.ORG Subject: mset, mclear, msleep, mwakeup (was Re: Using rfork() / threads) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997, Ron G. Minnich wrote: > On Sat, 1 Feb 1997, Michael Hancock wrote: > > The Vahalia book mentions shared memory locks for 4.4BSD that worked > > essentially the same way. They were named mset, mwait, or something like > > that. > > yeah, but recall that I did this stuff 9/94. mset etc. were not around > then, and appear to still not be. > > > Fastlock sounds cool, but shared memory locks are supposed to be fast. > It's a bit more complex than shared memory locks. The problem is making > shared memory locks between heavyweight processes that are efficient and > in particular never do a system call unless needed. > > > I prefer the mxxx conventions to categorize it with the > > mmap calls. > > works for me. > This is how Vahalia describes it. On the newsgroups John Dyson said he remembers seeing a document in 4.4Lite somewhere describing it. Can you work with these interfaces? Maybe you can submit them to John for review or colloborate with him on rewriting it. mset() and mclear() must be user level functions on architectures that have atomic test-and-set. You don't do a system call unless necessary. value = mset(sem, wait); sem is a pointer to a semaphore value wait is a boolean that is set to true if you want to block value is zero if the semaphore has been acquired mclear(sem); If you want to block and unblock use the following: msleep(sem); mwakeup(sem); Wakes up at least one process blocked on this semaphore or does nothing if there are no blocked semaphores. Regards, Mike Hancock From owner-freebsd-hackers Mon Feb 3 15:56:55 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA28848 for hackers-outgoing; Mon, 3 Feb 1997 15:56:55 -0800 (PST) Received: from jason.garman.net (pm106-18.dialip.mich.net [192.195.231.220]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA28837 for ; Mon, 3 Feb 1997 15:56:47 -0800 (PST) Resent-From: garman@jason.garman.net Received: (qmail 1380 invoked by uid 1000); 3 Feb 1997 23:57:08 -0000 Resent-Message-ID: <19970203235708.1379.qmail@jason.garman.net> Message-ID: Date: Sun, 2 Feb 1997 23:14:53 -0500 From: garman@jason.garman.net (Jason Garman) To: helbig@BA-Stuttgart.De (Wolfgang Helbig) Subject: Re: CMD640b flaw workaround References: <199702021846.TAA03678@amadeus.informatik.ba-stuttgart.de> X-Mailer: Mutt 0.58 Mime-Version: 1.0 Reply-To: garman@phs.k12.ar.us X-Phase-Of-Moon: The Moon is Waning Crescent (26% of Full) X-Operating-System: FreeBSD/i386 2.1.5-RELEASE In-Reply-To: <199702021846.TAA03678@amadeus.informatik.ba-stuttgart.de>; from Wolfgang Helbig on Feb 2, 1997 19:04:49 +0100 Resent-Date: Mon, 3 Feb 1997 18:57:07 -0500 Resent-To: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk First, thanks for the patch! Wolfgang Helbig writes: > So maybe you should upgrade to FreeBSD 2.2 and test then. > Well, (unrelated) I tried to do that through my ppp connection, but the 2.2-BETA kernel on the install floppy (just downloaded tonight from ftp.freebsd.org) refuses to recognize my modem (sio1) I turned on verbose probe using flags 0x80 and it tells me: sio1: probe test 5 failed sio1: probe test 6 failed sio1 not found at 0x2f8 My working 2.1.5-RELEASE kernel reports: sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16450 (yes, it is a cheap 14.4 internal card w/a 16540 :-/) I was sure to disable all possibly conflicting devices in the 2.2 visual configuration, btw. I'm guessing that it's just not allowing the card enough time to reply; is there a way to increase the delay from the configuration interface? So close, yet so far... (trying to backport the patch to 2.1.5 was a futile exercise :-)) Thanks, -- Jason Garman http://www.nesc.k12.ar.us/~garman/ Student, Eleanor Roosevelt High School garman@phs.k12.ar.us From owner-freebsd-hackers Mon Feb 3 17:01:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA03804 for hackers-outgoing; Mon, 3 Feb 1997 17:01:07 -0800 (PST) Received: from aries.bb.cc.wa.us (root@[208.8.136.11]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA03796 for ; Mon, 3 Feb 1997 17:01:03 -0800 (PST) Received: from localhost (chris@localhost) by aries.bb.cc.wa.us (8.8.3/8.6.9) with SMTP id RAA01280; Mon, 3 Feb 1997 17:01:18 -0800 (PST) Date: Mon, 3 Feb 1997 17:01:18 -0800 (PST) From: Chris Coleman To: "Daniel O'Callaghan" cc: Troy Curtiss , freebsd-hackers@FreeBSD.ORG Subject: Re: Two-way pipe possible without C/perl? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I like this, alot. But how are you monitoring these system so FreeBSD knows when to send you a message? I have a pager and am very interested in this. Thanks. Christopher J. Coleman (chris@aries.bb.cc.wa.us) Computer Support Technician I (509)-766-8873 Big Bend Community College Internet Instructor FreeBSD Book Project: http://www.bb.cc.wa.us/~chris/book.html Death is life's way of telling you you're fired. From owner-freebsd-hackers Mon Feb 3 17:09:49 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA04534 for hackers-outgoing; Mon, 3 Feb 1997 17:09:49 -0800 (PST) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA04484 for ; Mon, 3 Feb 1997 17:09:21 -0800 (PST) Received: from awfulhak.demon.co.uk (localhost.coverform.lan [127.0.0.1]) by awfulhak.demon.co.uk (8.8.4/8.7.3) with ESMTP id AAA24492; Tue, 4 Feb 1997 00:41:55 GMT Message-Id: <199702040041.AAA24492@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: Ari Suutari cc: "'cmott@srv.net'" , hackers@freebsd.org, Eivind Eklund , brian@utell.co.uk Subject: Re: Single socket version of natd In-reply-to: Your message of "Mon, 03 Feb 1997 11:18:56 +0200." <01BC11C5.638A78A0@sodium.ps.carel.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Feb 1997 00:41:54 +0000 From: Brian Somers Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hi, > > I fixed the core dump - it was a silly-almost-typing mistake. > About using /etc/services for the port numbers: I was already > putting it when I started to think should it be natd/tcp or > natd/udp or something else (since the sockets are not > tcp or udp sockets). Any opinions on that ? > > Ari S. > > -----Original Message----- > From: Brian Somers [SMTP:brian@awfulhak.demon.co.uk] > Sent: 1. helmikuuta 1997 5:35 > To: Ari Suutari > Cc: 'cmott@srv.net' > Subject: Re: Single socket version of natd > > The -l and -a options always core-dump. I havn't looked into what's causing > this. I've passed the -a option "10.0.1.254" and "raffles.coverform.lan", > both without the quotes and both resolvable on my machine. > > The -a option could do with checking for a name from /etc/services rather than > defaulting to 32000. > I received your fix for the coredumps - I'll test them tomorrow evening. Thanks. I've had a look at the getservbyname stuff.... it's possible to call getservbyname( ..., "raw" ) and have an entry in /etc/services saying masqd 6668/raw # This is a raw socket I think this is the best option - is there any reason why this shouldn't be so (cc to hackers@freebsd.org) ? It seems more appropriate than putting "untrue" stuff in here. Maybe "divert" would be more appropriate ? BTW, Charles/Elvind - what's the score with the code that attempts to "keep" the source port ? This idea is growing on me ;) I've tested 1.9 (http ref from www.srv.net/~cmott to Elvind's page) and it seems good. It's gettin' *real* close to 2.2-GAMMA now - it would be *really* nice to have this code make it to 2.2 :-O -- Brian , Don't _EVER_ lose your sense of humour.... From owner-freebsd-hackers Mon Feb 3 17:14:45 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA04893 for hackers-outgoing; Mon, 3 Feb 1997 17:14:45 -0800 (PST) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA04880 for ; Mon, 3 Feb 1997 17:14:38 -0800 (PST) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.8.5/8.8.4) with SMTP id RAA22981; Mon, 3 Feb 1997 17:11:19 -0800 (PST) Message-ID: <32F68C4F.3F54BC7E@whistle.com> Date: Mon, 03 Feb 1997 17:09:35 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Bill Kish CC: hackers@freefall.freebsd.org Subject: Re: kernel malloc options References: <199702031942.OAA18041@browncow.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Bill Kish wrote: > I'm working on a a Network related module which performs a function > similar to Network Address Translation. This module needs to > dynamically allocate small (~40 byte) structures to keep track of > currently established TCP connections between machines on the "inside" > and "outside" networks. Wow, a couple of months ago we had no address translation, now we have *4* different ones.. :) > > Currently, I'm malloc()ing these structures as needed using the > following parameters: > > malloc((u_long)sizeof(*conxn), M_TEMP, M_NOWAIT) > > This appears to work fine in my initial lightly loaded tests, > however, I'm concerned about what will happen when the system is under > heavy load. I have the following questions and would appreciate any > advice offered! What I do is cache a certain number of these.. I keep a free_thing list which will hold a maximum of N items If I ever free more than N then I start actually doing "free(x, M_TEMP)", but until then I just keep them locally, this usually means that if the number of items is gradually increasing I'm doing malloc's, but with small scale fluctuations, they are satisfied from the cache. of course malloc/free are not all that expensive in general.. > > 1) Is malloc() a reasonable allocator for small highly dynamic > objects? > > 2) Is M_TEMP a good choice? Does it make a difference? it's fine. to use any other, you'd have to edit malloc.h and for LKM stuff that's not an option. > > 3) Are there any config options that affect the amount of pinned > kernel memory available for malloc? The system will be doing > little else besides dealing with these packets... > > > > Thanks In Advance, > > -BK > -- From owner-freebsd-hackers Mon Feb 3 18:09:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA08338 for hackers-outgoing; Mon, 3 Feb 1997 18:09:56 -0800 (PST) Received: from sovcom.kiae.su (sovcom.kiae.su [193.125.152.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id SAA08325 for ; Mon, 3 Feb 1997 18:09:51 -0800 (PST) Received: by sovcom.kiae.su id AA22754 (5.65.kiae-1 for hackers@freebsd.org); Tue, 4 Feb 1997 04:48:40 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Tue, 4 Feb 97 04:48:40 +0300 Received: from gate.phantom.ru by router.phantom.ru (UUPC/extended 1.12o) with UUCP for hackers@freebsd.org; Tue, 04 Feb 1997 03:52:34 +0300 Received: by gate.phantom.ru (FIDO2UU 2.11c [OS/2,C++ Set]) with FTN; Tue, 4 Feb 1997 03:52:34 +0300 To: hackers@freebsd.org Message-Id: <32F6F8D2@gate.phantom.ru> Date: Mon, 3 Feb 1997 21:36:12 +0300 From: Ilmar Habibulin Reply-To: Ilmar Habibulin Subject: Need some help or advice Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Dear Sirs. I have a hobby. Simply it is the computer security and related topics. 2 months ago i've got a Walnut Creek FreeBSD 2.1.0 CDROM distribution willing to design and implement MAC(mandatory access control) according to Bell-LaPadula model or something like that. I choose FreeBSD because of free avaliable source. But the problem is, that breaking through megabytes of kernel routines i've got a terriblre headache. :( I don't know where to look at. What kernel structures can i modify and what i should recompile next to get it work. ( After my "modifications" the kernel stops with bus error ;-)) Where can i find information of kernel internals such as processes and user credits, IPC, VOP_ stuff, v-nodes and its relations with i-nodes, the most complete info on how does this thing works inside. I'll want to buy a book "4.4BSD design and implementation". Is it enough? I read manuals and faqs. It said that You may be interested in such stuff. I have no much time, but i want to try. thanks for advice. Certainly Yours, Ilmar. Moscow, Russia. PS. Sorry for bad English if any mistakes have been made. I have no English-speaking practice for a long time, only English-reading. ;-) AKA ~The~Blue~Glasses~ ö8-) --- ... If I only had a brain ... * Origin: Genuine INTEL - ligent Gentelman (2:5020/691.777) From owner-freebsd-hackers Mon Feb 3 18:37:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA10443 for hackers-outgoing; Mon, 3 Feb 1997 18:37:35 -0800 (PST) Received: from darkstar (ras511.srv.net [205.180.127.11]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id SAA10436 for ; Mon, 3 Feb 1997 18:37:31 -0800 (PST) Received: (from cmott@localhost) by darkstar (8.6.12/8.6.12) id TAA07768; Mon, 3 Feb 1997 19:36:38 -0700 Date: Mon, 3 Feb 1997 19:36:36 -0700 (MST) From: Charles Mott X-Sender: cmott@darkstar To: Brian Somers cc: Ari Suutari , hackers@freebsd.org, Eivind Eklund , brian@utell.co.uk Subject: Re: Single socket version of natd In-Reply-To: <199702040041.AAA24492@awfulhak.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > The -l and -a options always core-dump. I havn't looked into what's causing > > this. I've passed the -a option "10.0.1.254" and "raffles.coverform.lan", > > both without the quotes and both resolvable on my machine. The -l option may core dump, or give a segmentation error, because of an error that crept into alias_db.c after version 1.6. It has been fixed in ppp+pktAlias1.9-gamma.tar.gz at http://www.srv.net/~cmott/alias.html. Eivind has these updates and has integrated them into his codebase, which he is continuing to work on. He writes that he has changed some of the compile options (ALIAS_ALLOW_INCOMING, ALIAS_SAME_PORTS, etc.) to ppp commands. > BTW, Charles/Elvind - what's the score with the code that attempts to "keep" > the source port ? This idea is growing on me ;) I've tested 1.9 (http ref > from www.srv.net/~cmott to Elvind's page) and it seems good. It's gettin' > *real* close to 2.2-GAMMA now - it would be *really* nice to have this code > make it to 2.2 :-O It has been working for a week or two now. Charles Mott From owner-freebsd-hackers Mon Feb 3 20:44:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA17589 for hackers-outgoing; Mon, 3 Feb 1997 20:44:08 -0800 (PST) Received: from elysium.uwa.edu.au (elysium.uwa.edu.au [130.95.128.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA17583 for ; Mon, 3 Feb 1997 20:44:03 -0800 (PST) Received: from fenrus.rattus.uwa.edu.au (trojanrat.civil.uwa.edu.au [130.95.140.60]) by elysium.uwa.edu.au (8.8.2/8.8.0) with ESMTP id MAA22441 for ; Tue, 4 Feb 1997 12:43:55 +0800 (WST) Received: (from smap@localhost) by fenrus.rattus.uwa.edu.au (8.7.5/8.7.3) id MAA05328 for ; Tue, 4 Feb 1997 12:22:26 +0800 (WST) Received: from ratbox.rattus.uwa.edu.au(192.168.1.2) by fenrus.rattus.uwa.edu.au via smap (V1.3) id sma005326; Tue Feb 4 12:22:01 1997 Received: from ratbox.rattus.uwa.edu.au (packrat@localhost [127.0.0.1]) by ratbox.rattus.uwa.edu.au (8.7.5/8.6.11) with ESMTP id MAA03517 for ; Tue, 4 Feb 1997 12:43:01 +0800 Message-Id: <199702040443.MAA03517@ratbox.rattus.uwa.edu.au> To: hackers@freebsd.org Subject: ping(8) Reply-To: packrat@iinet.net.au Date: Tue, 04 Feb 1997 12:42:59 +0800 From: Bruce Murphy Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Having just had to edit the ping binary by hand (for the nth time but I never keep them around) so that I could use it to diagnose a remote problem. (well actually some idiot walking into the room and pulling the terminator off my test run of thinnet and staring at it) I thought ask the list whether anyone had any religious objections to me adding an option to ping(8) so that it emitted a bell character on every packet reciept. Something like '-a': audible tone for pings. I haven't been keeping current the last few months so I apologize if anyone has already made the change. If there aren't any major objections, if someone could tell me where to mail a patch (And the format they'd prefer), I'll make one up against -current this weekend. Cheers, Bruce. -- Packrat (BSc/BE;COSO;Wombat II Designer) Nihil illegitemi carborvndvm. From owner-freebsd-hackers Mon Feb 3 21:02:14 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA18314 for hackers-outgoing; Mon, 3 Feb 1997 21:02:14 -0800 (PST) Received: from jason.garman.net (pm106-15.dialip.mich.net [192.195.231.217]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id VAA18290 for ; Mon, 3 Feb 1997 21:01:26 -0800 (PST) Received: (qmail 279 invoked by uid 1000); 4 Feb 1997 05:01:19 -0000 Message-ID: Date: Tue, 4 Feb 1997 00:01:18 -0500 From: garman@jason.garman.net (Jason Garman) To: helbig@BA-Stuttgart.De (Wolfgang Helbig) Cc: nadav@cs.technion.ac.il (Nadav Eiron), hackers@freebsd.org Subject: Re: CMD640b flaw workaround References: <199702021846.TAA03678@amadeus.informatik.ba-stuttgart.de> X-Mailer: Mutt 0.58 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="tb47fdMN=vveGnh=" Reply-To: garman@phs.k12.ar.us X-Phase-Of-Moon: The Moon is Waning Crescent (17% of Full) X-Operating-System: FreeBSD/i386 2.1.5-RELEASE In-Reply-To: <199702021846.TAA03678@amadeus.informatik.ba-stuttgart.de>; from Wolfgang Helbig on Feb 2, 1997 19:04:49 +0100 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk --tb47fdMN=vveGnh= Wolfgang Helbig writes: > Sorry, but the diff is against revision 1.122 of wd.c , whereas > you have revision 1.81.4.2 in FreeBSD 2.1.6.1 . So the patch will not > work. I tried to produce the diff from 1.122 to 1.81.4.2 and applying > a patch with it to my version of wd.c but there were to many rejects. > After some hacking, I've produced a patch that seems to work for me (FreeBSD 2.1.5-RELEASE). Attached are the patches (it looked like i had to patch atapi.c so atapi_attach could return a value) I don't know if this is the Right Way[tm] of doing this, or if my modifications introduce bugs in the code, but it works for me (after a whopping 5 minutes of testing) Hopefully this helps those stuck with these cmd chips on 2.1.x machines... Enjoy, -- Jason Garman http://www.nesc.k12.ar.us/~garman/ Student, Eleanor Roosevelt High School garman@phs.k12.ar.us --tb47fdMN=vveGnh= Content-Disposition: attachment; filename="wd.c.diffs" --- wd.old.c Mon Dec 2 23:32:06 1996 +++ wd.c Mon Feb 3 23:49:46 1997 @@ -190,6 +190,8 @@ #define RECAL 2 /* doing restore */ #define OPEN 3 /* done with open */ +#define PRIMARY 0 + /* * Disk geometry. A small part of struct disklabel. * XXX disklabel.5 contains an old clone of disklabel.h. @@ -277,6 +279,11 @@ wdprobe, wdattach, "wdc", }; +#ifdef CMD640 +static int wdcports[NWDC]; +static int atapictrlr; +#endif + /* * Probe for controller. */ @@ -296,6 +303,10 @@ du->dk_ctrlr = dvp->id_unit; du->dk_port = dvp->id_iobase; +#ifdef CMD640 + wdcports[du->dk_ctrlr] = du->dk_port; +#endif + wdc_registerdev(dvp); /* check if we have registers that work */ @@ -415,6 +426,10 @@ du->dk_lunit = lunit; du->dk_port = dvp->id_iobase; +#ifdef CMD640 + wdcports[du->dk_ctrlr] = du->dk_port; +#endif + /* * Use the individual device flags or the controller * flags. @@ -491,16 +506,26 @@ if (wddrives[lunit]->dk_ctrlr == dvp->id_unit && wddrives[lunit]->dk_unit == unit) goto next; - atapi_attach (dvp->id_unit, unit, dvp->id_iobase, - &kdc_wdc[dvp->id_unit]); + if (atapi_attach (dvp->id_unit, unit, dvp->id_iobase, + &kdc_wdc[dvp->id_unit]) == 1) { + /* 2.1.5's atapi_attach does not return a value */ +#ifdef CMD640 + wdcports[unit] = dvp->id_iobase; + atapictrlr = dvp->id_unit; + printf ("wd: atapictrlr = %d\n", atapictrlr); +#endif + } next: } #endif /* * Discard any interrupts generated by wdgetctlr(). wdflushirq() * doesn't work now because the ambient ipl is too high. */ +#ifdef CMD640 + wdtab[PRIMARY].b_active = 2; +#else wdtab[dvp->id_unit].b_active = 2; - +#endif return (1); } @@ -576,7 +601,11 @@ du->dk_state = WANTOPEN; } +#ifdef CMD640 + if (wdtab[PRIMARY].b_active == 0) +#else if (wdtab[du->dk_ctrlr].b_active == 0) +#endif wdstart(du->dk_ctrlr); /* start controller */ if (du->dk_dkunit >= 0) { @@ -638,13 +667,21 @@ dp->b_actf = bp->b_actf; bp->b_actf = NULL; /* link onto controller queue */ +#ifdef CMD640 + if (wdtab[PRIMARY].b_actf == NULL) { + wdtab[PRIMARY].b_actf = bp; + } else { + *wdtab[PRIMARY].b_actb = bp; + } + wdtab[PRIMARY].b_actb = &bp->b_actf; +#else if (wdtab[ctrlr].b_actf == NULL) { wdtab[ctrlr].b_actf = bp; } else { *wdtab[ctrlr].b_actb = bp; } wdtab[ctrlr].b_actb = &bp->b_actf; - +#endif /* mark the drive unit as busy */ dp->b_active = 1; } @@ -670,20 +707,40 @@ int count; #ifdef ATAPI +#ifdef CMD640 + if (wdtab[PRIMARY].b_active == 2) + wdtab[PRIMARY].b_active = 0; + if (wdtab[PRIMARY].b_active) + return; +#else if (wdtab[ctrlr].b_active == 2) wdtab[ctrlr].b_active = 0; if (wdtab[ctrlr].b_active) return; #endif +#endif + loop: /* is there a drive for the controller to do a transfer with? */ +#ifdef CMD640 + bp = wdtab[PRIMARY].b_actf; +#else bp = wdtab[ctrlr].b_actf; +#endif if (bp == NULL) { #ifdef ATAPI +#ifdef CMD640 + if (atapi_start (atapictrlr)) +#else if (atapi_start (ctrlr)) +#endif /* mark controller active in ATAPI mode */ +#ifdef CMD640 + wdtab[PRIMARY].b_active = 3; +#else wdtab[ctrlr].b_active = 3; #endif +#endif return; } @@ -739,7 +796,11 @@ blknum - ds_offset) + ds_offset; } +#ifdef CMD640 + wdtab[PRIMARY].b_active = 1; +#else wdtab[ctrlr].b_active = 1; /* mark controller active */ +#endif /* if starting a multisector transfer, or doing single transfers */ if (du->dk_skip == 0 || (du->dk_flags & DKFL_SINGLE)) { @@ -751,7 +812,11 @@ head = (blknum % secpercyl) / secpertrk; sector = blknum % secpertrk; +#ifdef CMD640 + if (wdtab[PRIMARY].b_errcnt && (bp->b_flags & B_READ) == 0) +#else if (wdtab[ctrlr].b_errcnt && (bp->b_flags & B_READ) == 0) +#endif du->dk_bc += DEV_BSIZE; count = howmany( du->dk_bc, DEV_BSIZE); @@ -898,9 +963,15 @@ register struct disk *du; register struct buf *bp, *dp; +#ifdef CMD640 + if (wdtab[PRIMARY].b_active == 2) + return; + if (!wdtab[PRIMARY].b_active) { +#else if (wdtab[unit].b_active == 2) return; /* intr in wdflushirq() */ if (!wdtab[unit].b_active) { +#endif #ifdef WDDEBUG /* * These happen mostly because the power-mgt part of the @@ -911,19 +982,29 @@ #endif return; } -#ifdef ATAPI +#ifdef CMD640 + if (wdtab[PRIMARY].b_active == 3) { +#else if (wdtab[unit].b_active == 3) { +#endif /* process an ATAPI interrupt */ if (atapi_intr (unit)) /* ATAPI op continues */ return; /* controller is free, start new op */ +#ifdef CMD640 + wdtab[PRIMARY].b_active = 0; +#else wdtab[unit].b_active = 0; +#endif wdstart (unit); return; } -#endif +#ifdef CMD640 + bp = wdtab[PRIMARY].b_actf; +#else bp = wdtab[unit].b_actf; +#endif du = wddrives[dkunit(bp->b_dev)]; dp = &wdutab[du->dk_lunit]; du->dk_timeout = 0; @@ -935,7 +1016,11 @@ /* is it not a transfer, but a control operation? */ if (du->dk_state < OPEN) { +#ifdef CMD640 + wdtab[PRIMARY].b_active = 0; +#else wdtab[unit].b_active = 0; +#endif switch (wdcontrol(bp)) { case 0: return; @@ -977,8 +1062,13 @@ bp->b_error = EIO; bp->b_flags |= B_ERROR; } else if (du->dk_status & WDCS_ERR) { +#ifdef CMD640 + if (++wdtab[PRIMARY].b_errcnt < RETRIES) { + wdtab[PRIMARY].b_active = 0; +#else if (++wdtab[unit].b_errcnt < RETRIES) { wdtab[unit].b_active = 0; +#endif } else { wderror(bp, du, "hard error"); bp->b_error = EIO; @@ -992,7 +1082,11 @@ * If this was a successful read operation, fetch the data. */ if (((bp->b_flags & (B_READ | B_ERROR)) == B_READ) +#ifdef CMD640 + && wdtab[PRIMARY].b_active) { +#else && wdtab[unit].b_active) { +#endif int chk, dummy, multisize; multisize = chk = du->dk_currentiosize * DEV_BSIZE; if( du->dk_bc < chk) { @@ -1034,18 +1128,32 @@ } outt: +#ifdef CMD640 + if (wdtab[PRIMARY].b_active) { +#else if (wdtab[unit].b_active) { +#endif if ((bp->b_flags & B_ERROR) == 0) { du->dk_skip += du->dk_currentiosize;/* add to successful sectors */ +#ifdef CMD640 + if (wdtab[PRIMARY].b_errcnt) + wderror(bp, du, "soft error"); + wdtab[PRIMARY].b_errcnt = 0; +#else if (wdtab[unit].b_errcnt) wderror(bp, du, "soft error"); wdtab[unit].b_errcnt = 0; +#endif /* see if more to transfer */ if (du->dk_bc > 0 && (du->dk_flags & DKFL_ERROR) == 0) { if( (du->dk_flags & DKFL_SINGLE) || ((bp->b_flags & B_READ) == 0)) { +#ifdef CMD640 + wdtab[PRIMARY].b_active = 0; +#else wdtab[unit].b_active = 0; +#endif wdstart(unit); } else { du->dk_timeout = 1 + 3; @@ -1056,7 +1164,11 @@ du->dk_skip = 0; du->dk_flags &= ~DKFL_ERROR; du->dk_flags |= DKFL_SINGLE; +#ifdef CMD640 + wdtab[PRIMARY].b_active = 0; +#else wdtab[unit].b_active = 0; +#endif wdstart(unit); return; /* redo xfer sector by sector */ } @@ -1065,8 +1177,13 @@ done: ; /* done with this transfer, with or without error */ du->dk_flags &= ~DKFL_SINGLE; +#ifdef CMD640 + wdtab[PRIMARY].b_actf = bp->b_actf; + wdtab[PRIMARY].b_errcnt = 0; +#else wdtab[unit].b_actf = bp->b_actf; wdtab[unit].b_errcnt = 0; +#endif bp->b_resid = bp->b_bcount - du->dk_skip * DEV_BSIZE; dp->b_active = 0; dp->b_errcnt = 0; @@ -1079,15 +1196,23 @@ } /* controller idle */ +#ifdef CMD640 + wdtab[PRIMARY].b_active = 0; +#else wdtab[unit].b_active = 0; +#endif /* anything more on drive queue? */ wdustart(du); /* anything more for controller to do? */ #ifndef ATAPI /* This is not valid in ATAPI mode. */ +#ifdef CMD640 + if (wdtab[PRIMARY].b_actf) +#else if (wdtab[unit].b_actf) #endif +#endif wdstart(unit); } @@ -1112,8 +1237,13 @@ return (ENXIO); /* Finish flushing IRQs left over from wdattach(). */ +#ifdef CMD640 + if (wdtab[PRIMARY].b_active == 2) + wdtab[PRIMARY].b_active = 0; +#else if (wdtab[du->dk_ctrlr].b_active == 2) wdtab[du->dk_ctrlr].b_active = 0; +#endif du->dk_flags &= ~DKFL_BADSCAN; @@ -1285,7 +1415,11 @@ switch (du->dk_state) { case WANTOPEN: tryagainrecal: +#ifdef CMD640 + wdtab[PRIMARY].b_active = 1; +#else wdtab[ctrlr].b_active = 1; +#endif if (wdcommand(du, 0, 0, 0, 0, WDCC_RESTORE | WD_STEP) != 0) { wderror(bp, du, "wdcontrol: wdcommand failed"); goto maybe_retry; @@ -1299,13 +1433,21 @@ if (du->dk_status & WDCS_ERR) wdunwedge(du); du->dk_state = WANTOPEN; +#ifdef CMD640 + if (++wdtab[PRIMARY].b_errcnt < RETRIES) +#else if (++wdtab[ctrlr].b_errcnt < RETRIES) +#endif goto tryagainrecal; bp->b_error = ENXIO; /* XXX needs translation */ bp->b_flags |= B_ERROR; return (2); } +#ifdef CMD640 + wdtab[PRIMARY].b_errcnt = 0; +#else wdtab[ctrlr].b_errcnt = 0; +#endif du->dk_state = OPEN; /* * The rest of the initialization can be done by normal @@ -1389,7 +1531,11 @@ error = 1; } if (error) { +#ifdef CMD640 + wdtab[PRIMARY].b_errcnt += RETRIES; +#else wdtab[du->dk_ctrlr].b_errcnt += RETRIES; +#endif return (1); } if (wdcommand(du, du->dk_dd.d_ncylinders, du->dk_dd.d_ntracks - 1, 0, @@ -1766,6 +1912,8 @@ #if 0 /* Mark controller active for if we panic during the dump. */ + /* does it really matter if we delete this chunk to fix the CMD + bug? The dump should be the only thing happening anyhow... */ wdtab[du->dk_ctrlr].b_active = 1; #endif wddoingadump = 1; @@ -1914,10 +2062,17 @@ static void wdflushirq(struct disk *du, int old_ipl) { +#ifdef CMD640 + wdtab[PRIMARY].b_active = 2; + splx (old_ipl); + (void) splbio(); + wdtab[PRIMARY].b_active = 0; +#else wdtab[du->dk_ctrlr].b_active = 2; splx(old_ipl); (void)splbio(); wdtab[du->dk_ctrlr].b_active = 0; +#endif } /* @@ -1956,8 +2111,14 @@ static void wdsleep(int ctrlr, char *wmesg) { +/* is the splbio/splx pair needed from the 2.2 sources? */ +#ifdef CMD640 + while (wdtab[PRIMARY].b_active) + tsleep((caddr_t)&wdtab[PRIMARY].b_active, PZERO - 1, wmesg, 1); +#else while (wdtab[ctrlr].b_active) tsleep((caddr_t)&wdtab[ctrlr].b_active, PZERO - 1, wmesg, 1); +#endif } static void @@ -2032,6 +2193,36 @@ static int min_retries[NWDC]; #endif +#ifdef CMD640 +int +cmd640_wait(int port) +{ + int port2; + int timeout; + u_char status; + + return (0); + if (NWDC == 1) + return (0); + + if (wdcports[0] == port) + port2 = wdcports[1]; + else + port2 = wdcports[0]; + if (port2 == 0) + return (0); + for (timeout = TIMEOUT; timeout > 0; timeout--) { + status = inb(port2 + wd_status); + if (!(status & WDCS_BUSY)) + return (0); + DELAY (1000); + printf("called by port %x\n",port); + } + printf("wd: timeout on port %x\n", port2); + return (-1); +} +#endif + static int wdwait(struct disk *du, u_char bits_wanted, int timeout) { @@ -2042,6 +2233,11 @@ wdc = du->dk_port; timeout += POLLING; + +#ifdef CMD640 + if (cmd640_wait (wdc) != 0) + return (-1); +#endif /* * This delay is really too long, but does not impact the performance --tb47fdMN=vveGnh= Content-Disposition: attachment; filename="atapi.h.diffs" --- atapi.old.h Fri Sep 29 20:11:16 1995 +++ atapi.h Mon Feb 3 23:50:29 1997 @@ -193,7 +193,7 @@ #ifdef KERNEL struct atapi; struct kern_devconf; -void atapi_attach (int ctlr, int unit, int port, struct kern_devconf*); +int atapi_attach (int ctlr, int unit, int port, struct kern_devconf*); int atapi_start (int ctrlr); int atapi_intr (int ctrlr); void atapi_debug (struct atapi *ata, int on); --tb47fdMN=vveGnh= Content-Disposition: attachment; filename="atapi.c.diffs" --- atapi.old.c Mon Feb 3 23:48:29 1997 +++ atapi.c Mon Feb 3 23:51:30 1997 @@ -168,7 +168,7 @@ extern int wdstart (int ctrlr); -void atapi_attach (int ctlr, int unit, int port, struct kern_devconf *parent) +int atapi_attach (int ctlr, int unit, int port, struct kern_devconf *parent) { struct atapi *ata = atapitab + ctlr; struct atapi_params *ap; @@ -179,7 +179,7 @@ print (("atapi%d.%d at 0x%x: attach called\n", ctlr, unit, port)); ap = atapi_probe (port, unit); if (! ap) - return; + return 0; bcopy (ap->model, buf, sizeof(buf)-1); buf[sizeof(buf)-1] = 0; @@ -245,7 +245,7 @@ printf ("wdc%d: unit %d: unknown ATAPI protocol=%d\n", ctlr, unit, ap->proto); free (ap, M_TEMP); - return; + return 0; } switch (ap->devtype) { default: @@ -265,7 +265,7 @@ break; } /* Device attached successfully. */ - return; + return 1; #else printf ("wdc%d: ATAPI CD-ROMs not configured\n", ctlr); break; @@ -289,6 +289,7 @@ } /* Attach failed. */ free (ap, M_TEMP); + return 0; } static void bswap (char *buf, int len) --tb47fdMN=vveGnh=-- From owner-freebsd-hackers Mon Feb 3 21:59:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA20459 for hackers-outgoing; Mon, 3 Feb 1997 21:59:47 -0800 (PST) Received: from paris.CS.Berkeley.EDU (paris.CS.Berkeley.EDU [128.32.34.47]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA20451 for ; Mon, 3 Feb 1997 21:59:43 -0800 (PST) Received: from paris.CS.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by paris.CS.Berkeley.EDU (8.8.3/8.8.2) with ESMTP id VAA08584 for ; Mon, 3 Feb 1997 21:59:40 -0800 (PST) From: Josh MacDonald Message-Id: <199702040559.VAA08584@paris.CS.Berkeley.EDU> To: hackers@freebsd.org Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta In-reply-to: Your message of "Fri, 31 Jan 1997 18:14:33." <199702010114.SAA03677@phaeton.artisoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8577.855035973.1@paris.CS.Berkeley.EDU> Date: Mon, 03 Feb 1997 21:59:35 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [code deleted] On Fri, 31 Jan 1997, Terry Lambert wrote: > It can't call the constructor, used implicitly in the list1 auto > declarator. It can't call the destructor, called implicily when the > list1 auto storage goes out of scope of main(). It can't call the > push_back member function, which is explicitly called. > > > Clearly, the template class definition > > template > class list ... { > ... > }; > > is not in scope. The header files you have included are apparently > not sufficient. > > Perhaps you meant "List" instead of "list"??? Clearly, you have no idea what you're talking about. You should be a bit more careful with your use of "clearly", it makes me wonder how much of the rest of your mail to this list (which I rarely understand) is correct. -josh From owner-freebsd-hackers Tue Feb 4 00:25:34 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA29860 for hackers-outgoing; Tue, 4 Feb 1997 00:25:34 -0800 (PST) Received: from korin.warman.org.pl (korin.warman.org.pl [148.81.160.10]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA29843 for ; Tue, 4 Feb 1997 00:25:23 -0800 (PST) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.8.3/8.7.3) with SMTP id JAA11265; Tue, 4 Feb 1997 09:23:42 +0100 (MET) Date: Tue, 4 Feb 1997 09:23:41 +0100 (MET) From: Andrzej Bialecki To: Chris Coleman cc: "Daniel O'Callaghan" , Troy Curtiss , freebsd-hackers@freebsd.org Subject: Re: Two-way pipe possible without C/perl? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997, Chris Coleman wrote: > I like this, alot. But how are you monitoring these system so FreeBSD > knows when to send you a message? > > I have a pager and am very interested in this. > Hello! I currently use the following setup - maybe it's a little simplistic, but it works. (Assuming that your paging company allows you to send messages via modem.) * I wrote several scripts on the machines I want to monitor. They check all the parameters I'm interested in, and come out with a one-line summary. They give the total status there as well (i.e "ok" || "FIRE!!!"). I run it in crontab as often as needed. * Then there is the main script on my managing machine, which collects output from the scripts (I use `ssh -l name machine 'do_the_job.sh'`, just to be sure that sensitive data go to me only). It is also run in crontab, let's say every half an hour (some people say here: your mileage may vary :-). If it detects something unusual, it sends me a message. * How? I'm using "expect". It took me one day to grasp the basics, and another one to cut&paste one of the example scripts to do what I want. Basically, I telnet to my Xylogics Annex and use one of its modems to dial out & connect to the paging company. Then I send a message and voila! It's Sunday 3:00am and your whole family is listening to wonderfully excruciating "beep, beep, beep"... Hope this helps a bit. Andy +-------------------------------------------------------------------------+ Andrzej Bialecki _) _) _)_) _)_)_) _) _) --------------------------------------- _)_) _) _) _) _)_) _)_) Research and Academic Network in Poland _) _)_) _)_)_)_) _) _) _) Bartycka 18, 00-716 Warsaw, Poland _) _) _) _) _)_)_) _) _) +-------------------------------------------------------------------------+ From owner-freebsd-hackers Tue Feb 4 01:39:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA05655 for hackers-outgoing; Tue, 4 Feb 1997 01:39:24 -0800 (PST) Received: from nic.follonett.no (nic.follonett.no [194.198.43.10]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA05649 for ; Tue, 4 Feb 1997 01:39:20 -0800 (PST) Received: (from uucp@localhost) by nic.follonett.no (8.8.5/8.8.3) with UUCP id KAA10138; Tue, 4 Feb 1997 10:36:20 +0100 (MET) Received: from oo7 (oo7.dimaga.com [192.0.0.65]) by dimaga.com (8.7.5/8.7.2) with SMTP id KAA10537; Tue, 4 Feb 1997 10:37:31 +0100 (MET) Message-Id: <3.0.32.19970204103732.00ac3a30@dimaga.com> X-Sender: eivind@dimaga.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Tue, 04 Feb 1997 10:37:33 +0100 To: Charles Mott From: Eivind Eklund Subject: Re: Single socket version of natd Cc: Brian Somers , Ari Suutari , hackers@freebsd.org, brian@utell.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 07:36 PM 2/3/97 -0700, Charles Mott wrote: >Eivind has these updates and has integrated them into his codebase, >which he is continuing to work on. He writes that he has changed some of >the compile options (ALIAS_ALLOW_INCOMING, ALIAS_SAME_PORTS, etc.) to ppp >commands. Not some - all. User level programs really shouldn't require recompile, IMHO. At least, no editing of the Makefiles. >> BTW, Charles/Elvind - what's the score with the code that attempts to "keep" >> the source port ? This idea is growing on me ;) I've tested 1.9 (http ref >> from www.srv.net/~cmott to Elvind's page) and it seems good. It's gettin' >> *real* close to 2.2-GAMMA now - it would be *really* nice to have this code >> make it to 2.2 :-O > >It has been working for a week or two now. And all the other really nescessary code-changes are done - everything is changed to ANSI style, and integrated with PPP from -current patched with #ifdef's to make it compile and work on all versions from 2.1.0 to -current, with an extra command 'alias' that set alias options. The only thing left before it could be integrated into 2.2 is documentation (the two different README.alias files should be integrated, and the new PPP commands should be documented) and testing. If anybody want a source snapshot or want to do the documentation, just yell. If not, I'll try to have everything ready sometime on thursday. I really would like to lower the complexity of alias_db.c (it seems to have a lot of duplicated code because it doesn't defer decisions long enough) - but that can wait. Eivind Eklund / perhaps@yes.no / http://maybe.yes.no/perhaps/ From owner-freebsd-hackers Tue Feb 4 02:04:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA06626 for hackers-outgoing; Tue, 4 Feb 1997 02:04:12 -0800 (PST) Received: from logues.rhn.orst.edu (logues.RHN.ORST.EDU [128.193.139.116]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA06576; Tue, 4 Feb 1997 02:03:52 -0800 (PST) Received: from logues.rhn.orst.edu (localhost [127.0.0.1]) by logues.rhn.orst.edu (8.8.4/8.8.4) with SMTP id CAA04584; Tue, 4 Feb 1997 02:03:44 -0800 (PST) Message-ID: <32F7097D.41C67EA6@engr.orst.edu> Date: Tue, 04 Feb 1997 02:03:41 -0800 From: Steve Logue X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2-970201-GAMMA0 i386) MIME-Version: 1.0 Newsgroups: comp.protocols.time.ntp,comp.unix.bsd.freebsd.misc To: Harlan Stenn CC: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, freebsd-stable@freebsd.org Subject: xntp3-5.89.2 & FreeBSD 2.2-GAMMA won't compile References: Content-Type: multipart/mixed; boundary="------------446B9B3D2781E494167EB0E7" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This is a multi-part message in MIME format. --------------446B9B3D2781E494167EB0E7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit There has been a long stream of problems with XNTPD, and FreeBSD. This may have been going on longer than I am aware however, I have checked from 3-5.88.0 - 3-5.89.2, and they all give me the same problem. It appears that on my system, there are two symbols that are undefined in the file ntp_loopfilter.c, lines 330 and 335: STA_FLL and STA_FREQHOLD. Near as I can tell, these things are supposed to be defined in my system's timex.h file? From my understanding, XNTPD needs a framework in the kernel to work correct? How do I go about updating my kernel sources with the latest XNTPD kernel stuff. Or better yet, get it fixed with the FreeBSD project? There is a timex.h file that comes with the XNTP distribution, and if I edit ntp_loopfilter.c to include that instead, everything builds fine, and xntpd runs fine, but when I try to use ntpq with the pe command I get nothing. My "make" output is attached. Thank You, Steve Logue --------------446B9B3D2781E494167EB0E7 Content-Type: text/plain; charset=us-ascii; name="make.out" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="make.out" make all-recursive for subdir in include libntp libparse authstuff ntpdate ntpq ntptrace parseutil xntpd xntpdc adjtimed clockstuff kernel util; do target=`echo all-recursive | sed s/-recursive//`; echo making $target in $subdir; (cd $subdir && make $target) || case " " in *k*) fail=yes;; *) exit 1;; esac; done && test -z "$fail" making all in include making all in libntp gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe adjtime.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe atoint.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe atolfp.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe atouint.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe auth12crypt.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe authdecrypt.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe authdes.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe authencrypt.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe authkeys.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe authparity.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe authreadkeys.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe authusekey.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe buftvtots.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe caljulian.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe calleapwhen.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe caltontp.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe calyearstart.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe clocktime.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe dofptoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe dolfptoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe emalloc.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe fptoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe fptoms.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe getopt.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe hextoint.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe hextolfp.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe humandate.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe inttoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe lib_strbuf.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe memmove.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe mfptoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe mfptoms.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe modetoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe mstolfp.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe msutotsf.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe numtoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe refnumtoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe numtohost.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe octtoint.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe prettydate.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe ranny.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe tsftomsu.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe tstotv.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe tvtoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe tvtots.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe uglydate.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe uinttoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe utvtoa.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe machines.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe clocktypes.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe md5.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe a_md5encrypt.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe a_md5decrypt.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe a_md512crypt.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe decodenetnum.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe systime.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe msyslog.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe syssignal.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe findconfig.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe netof.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe statestr.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe mexit.c rm -f libntp.a ar cru libntp.a adjtime.o atoint.o atolfp.o atouint.o auth12crypt.o authdecrypt.o authdes.o authencrypt.o authkeys.o authparity.o authreadkeys.o authusekey.o buftvtots.o caljulian.o calleapwhen.o caltontp.o calyearstart.o clocktime.o dofptoa.o dolfptoa.o emalloc.o fptoa.o fptoms.o getopt.o hextoint.o hextolfp.o humandate.o inttoa.o lib_strbuf.o memmove.o mfptoa.o mfptoms.o modetoa.o mstolfp.o msutotsf.o numtoa.o refnumtoa.o numtohost.o octtoint.o prettydate.o ranny.o tsftomsu.o tstotv.o tvtoa.o tvtots.o uglydate.o uinttoa.o utvtoa.o machines.o clocktypes.o md5.o a_md5encrypt.o a_md5decrypt.o a_md512crypt.o decodenetnum.o systime.o msyslog.o syssignal.o findconfig.o netof.o statestr.o mexit.o ranlib libntp.a making all in libparse gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe parse_conf.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe clk_meinberg.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe clk_schmid.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe parse.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe clk_rawdcf.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe clk_trimtsip.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe clk_dcf7000.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe clk_trimtaip.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe clk_rcc8000.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe clk_hopf6021.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe clk_computime.c rm -f libparse.a ar cru libparse.a parse_conf.o clk_meinberg.o clk_schmid.o parse.o clk_rawdcf.o clk_trimtsip.o clk_dcf7000.o clk_trimtaip.o clk_rcc8000.o clk_hopf6021.o clk_computime.o ranlib libparse.a gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe kparse_conf.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe kparse.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe kclk_rawdcf.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../kernel -g -O2 -Wall -pipe kclk_trimtsip.c rm -f libparse_kernel.a ar cru libparse_kernel.a kparse_conf.o clk_meinberg.o clk_schmid.o kparse.o kclk_rawdcf.o kclk_trimtsip.o clk_dcf7000.o clk_trimtaip.o clk_rcc8000.o clk_hopf6021.o clk_computime.o ranlib libparse_kernel.a making all in authstuff making all in ntpdate gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe ntpdate.c ../scripts/mkversion ntpdate 5.89.2 Version ntpdate 5.89.2 Tue Feb 4 01:00:11 PST 1997 (1) gcc -g -O2 -Wall -pipe -c version.c gcc -o ntpdate ntpdate.o version.o ../libntp/libntp.a -lkvm making all in ntpq gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe ntpq.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe ntpq_ops.c ../scripts/mkversion ntpq 5.89.2 Version ntpq 5.89.2 Tue Feb 4 01:00:22 PST 1997 (1) gcc -g -O2 -Wall -pipe -c version.c gcc -o ntpq ntpq.o ntpq_ops.o version.o ../libntp/libntp.a -lkvm making all in ntptrace gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe ntptrace.c ../scripts/mkversion ntptrace 5.89.2 Version ntptrace 5.89.2 Tue Feb 4 01:00:26 PST 1997 (1) gcc -g -O2 -Wall -pipe -c version.c gcc -o ntptrace ntptrace.o version.o ../libntp/libntp.a -lkvm making all in parseutil making all in xntpd gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe map_vme.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe ntp_config.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe ntp_control.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe ntp_io.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe ntp_leap.c gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -Wall -pipe ntp_loopfilter.c ntp_loopfilter.c: In function `local_clock': ntp_loopfilter.c:330: `STA_FLL' undeclared (first use this function) ntp_loopfilter.c:330: (Each undeclared identifier is reported only once ntp_loopfilter.c:330: for each function it appears in.) ntp_loopfilter.c:330: `STA_FREQHOLD' undeclared (first use this function) *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. --------------446B9B3D2781E494167EB0E7-- From owner-freebsd-hackers Tue Feb 4 02:10:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA06879 for hackers-outgoing; Tue, 4 Feb 1997 02:10:39 -0800 (PST) Received: from mail13.digital.com (mail13.digital.com [192.208.46.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA06874 for ; Tue, 4 Feb 1997 02:10:32 -0800 (PST) From: garyj@frt.dec.com Received: from cssmuc.frt.dec.com by mail13.digital.com (8.7.5/UNX 1.5/1.0/WV) id FAA15501; Tue, 4 Feb 1997 05:04:21 -0500 (EST) Received: from localhost by cssmuc.frt.dec.com; (5.65v3.2/1.1.8.2/14Nov95-0232PM) id AA23035; Tue, 4 Feb 1997 11:04:16 +0100 Message-Id: <9702041004.AA23035@cssmuc.frt.dec.com> X-Mailer: exmh version 1.6.4 10/10/95 To: packrat@iinet.net.au Cc: hackers@freebsd.org In-Reply-To: Message from Bruce Murphy of Tue, 04 Feb 97 12:42:59 +0800. Reply-To: gjennejohn@frt.dec.com Subject: Re: ping(8) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Feb 97 11:04:16 +0100 X-Mts: smtp Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk packrat@iinet.net.au writes: > Having just had to edit the ping binary by hand (for the nth time but > I never keep them around) so that I could use it to diagnose a remote > problem. (well actually some idiot walking into the room and pulling > the terminator off my test run of thinnet and staring at it) I thought > ask the list whether anyone had any religious objections to me adding > an option to ping(8) so that it emitted a bell character on every > packet reciept. > > Something like '-a': audible tone for pings. > seems resaonable to me. Why not '-b' for "bell" ? Seems more intuitive somwhow. --- Gary Jennejohn (work) gjennejohn@frt.dec.com (home) Gary.Jennejohn@munich.netsurf.de (play) gj@freebsd.org From owner-freebsd-hackers Tue Feb 4 02:10:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA06897 for hackers-outgoing; Tue, 4 Feb 1997 02:10:51 -0800 (PST) Received: from pdx1.world.net (pdx1.world.net [192.243.32.18]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA06892 for ; Tue, 4 Feb 1997 02:10:47 -0800 (PST) From: proff@suburbia.net Received: from suburbia.net (suburbia.net [203.4.184.1]) by pdx1.world.net (8.7.5/8.7.3) with SMTP id CAA23690 for ; Tue, 4 Feb 1997 02:12:10 -0800 (PST) Received: (qmail 12483 invoked by uid 110); 4 Feb 1997 10:10:20 -0000 Message-ID: <19970204101020.12479.qmail@suburbia.net> Subject: linux net killer or no idea? (fwd) To: hackers@freebsd.org Date: Tue, 4 Feb 1997 21:10:20 +1100 (EST) X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >From richard@a42.deep-thought.org Mon Feb 03 23:36:52 1997 Return-Path: Delivered-To: proff@suburbia.net Received: (qmail 24578 invoked from network); 3 Feb 1997 23:36:51 -0000 Received: from a42.deep-thought.org (203.4.184.227) by suburbia.net with SMTP; 3 Feb 1997 23:36:51 -0000 Received: from a42.deep-thought.org ([127.0.0.1]) by a42.deep-thought.org with esmtp id m0vrXwh-0024w0C (Debian Smail-3.2 1996-Jul-4 #2); Tue, 4 Feb 1997 10:37:07 +1100 (EST) Message-Id: X-Mailer: exmh version 1.6.9 8/22/96 To: proff@suburbia.net Subject: linux net killer or no idea? Date: Tue, 04 Feb 1997 10:37:07 +1100 From: Richard Jones ------- Forwarded Message Return-Path: owner-linux-net-outgoing@vger.rutgers.edu Return-Path: Received: from suburbia.net ([203.4.184.1]) by a42.deep-thought.org with smtp id m0vrXBE-0024w0a (Debian Smail-3.2 1996-Jul-4 #2); Tue, 4 Feb 1997 09:48:04 +1100 (EST) Received: (qmail 3224 invoked from network); 3 Feb 1997 21:47:35 -0000 Received: from nic.funet.fi (128.214.248.6) by suburbia.net with SMTP; 3 Feb 1997 21:47:35 -0000 Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <55330-6926>; Mon, 3 Feb 1997 18:50:20 +0200 Received: by vger.rutgers.edu id <214100-245>; Mon, 3 Feb 1997 11:35:54 -0500 To: linux-net@vger.rutgers.edu Cc: dash@linpro.no Subject: The file that kills linux tcp From: Arnt Gulbrandsen Date: 03 Feb 1997 17:37:24 +0100 Message-ID: Lines: 43 X-Mailer: Gnus v5.2.25/XEmacs 19.14 Sender: owner-linux-net@vger.rutgers.edu Precedence: bulk This is the weirdest problem I've ever, ever seen. Or so it feels like. I've just seen machines running linux/2.0.27, linux/2.1.24 and freebsd/3.0-current freeze after downloading 144540 bytes of this file: ftp://ftp.troll.no/contrib/xppp1B-x86-ELF.tar.gz Many clients can download this file just fine, many others can not. Those who can't all freeze after exactly 144540 bytes. A file of the same size but with different contents works. The same file with a different name does not work. The same file recompressed (zcat | gzip - -9) to be 600 bytes smaller can be downloaded by everyone as far as I can test. The same file recompressed (-5) to be 2100 bytes larger too. The FTP daemon is troll-ftpd 1.20 running on linux 2.0.26 and then on 2.0.28. The same file _can_ be downloaded from the same version of troll-ftpd running on a different linux box, which runs 2.0.27. There are no tcp-related changes between .27 and .28, as far as I can see. A huge tcpdump packet trace showing first a successful transfer of a 384604-byte file, then the one which freezes is available at ftp://ftp.troll.no/tmp/thud The two transfers look much the same to me, except that there appears to be a single packet loss while the window is wide-open, and the connection never recovers if this crucial file is being transferred. I don't know which of several netstat lines -t correspond to the packet trace. The most likely one shows a send queue of 43880 bytes, the others are similar. I don't know whether the file, the ftpd or the packet trace helps. Should anyone feel like tracing something so weird and need other data, or access to the box, do write. (Please cc any replies to me - I don't read linux-net right now, and probably won't for another two weeks or so.) - --Arnt ------- End of Forwarded Message From owner-freebsd-hackers Tue Feb 4 02:11:38 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA06934 for hackers-outgoing; Tue, 4 Feb 1997 02:11:38 -0800 (PST) Received: from gw-nl1.philips.com (gw-nl1.philips.com [192.68.44.33]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA06925 for ; Tue, 4 Feb 1997 02:11:31 -0800 (PST) Received: (from nobody@localhost) by gw-nl1.philips.com (8.6.10/8.6.10-0.994n-08Nov95) id LAA23539 for ; Tue, 4 Feb 1997 11:11:23 +0100 Received: from unknown(130.139.36.3) by gw-nl1.philips.com via smap (V1.3+ESMTP) with ESMTP id sma023349; Tue Feb 4 11:10:42 1997 Received: from giga.lss.cp.philips.com (giga.lss.cp.philips.com [130.144.199.31]) by smtprelay.nl.cis.philips.com (8.6.10/8.6.10-1.2.1m-970131) with SMTP id LAA25598 for ; Tue, 4 Feb 1997 11:10:35 +0100 Received: by giga.lss.cp.philips.com (8.8.5/1.63) id LAA27440; Tue, 4 Feb 1997 11:10:35 +0100 (MET) From: W.Belgers@nl.cis.philips.com (Walter Belgers) Message-Id: <199702041010.LAA27440@giga.lss.cp.philips.com> Subject: NIS/uids To: freebsd-hackers@freebsd.org Date: Tue, 4 Feb 1997 11:10:35 +0100 (MET) Organisation: Origin IT Systems Management /Nederland B.V. X-URL: http://giga.lss.cp.philips.com/cgi-bin/walter.cgi X-Mailer: ELM [version 2.4ME+ PL19 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I hope this is the right place to tell my story. I run FreeBSD 2.1.5. On my system are a bunch of local users but I also have users from the NIS database on another system (an HP). In my password file the users are defined as follows: +user::::::::/home/john:/usr/local/bin/tcsh So I override the homedir and shell. The problem now is that the security on my system has become dependant on that of the NIS server. If I am root on the NIS server I can change the uid of "user" into any user including root and make use of it on my system. Even if you can only become root using su you can easily first become a user in wheel and then root. The obvious solution is to override the uid in the password file: +user::1234:1234:::::/home/john:/usr/local/bin/tcsh But now I have another problem... the userid is not mapped to the username any more. 1) [~] root@giga> grep user /etc/master.passwd +user::::::::/home/john:/usr/local/bin/tcsh [~] root@giga> ypmatch user passwd user:$1xOC/SMM4ss.:1234:1234:John Doe:/home/john:/usr/local/bin/tcsh [~] root@giga> su - user [~] user@giga> id uid=1234(user) gid=1234 groups=1234 2) [~] root@giga> grep user /etc/master.passwd +user::1234:1234:::::/home/walter:/usr/local/bin/tcsh [~] root@giga> ypmatch user passwd user:$1xOC/SMM4ss.:1234:1234:John Doe:/home/john:/usr/local/bin/tcsh [~] root@giga> su - user [~] user@giga> id uid=1234 gid=1234 groups=1234 The fact that "user" now is only known as uid 1234 and not as user "user" gives rise to a lot of problems. Is this a bug or am I overlooking something? Walter. -- Ir. W.H.B. Belgers, Internet Security Specialist phone: +31 40 2782753 Origin IT Syst.Man. /Nederland bv, Bldg VN-513 email: fax: +31 40 2784697 P.O. Box 218, 5600 MD Eindhoven, Netherlands W.Belgers@nl.cis.philips.com non-business-email: walter@giga.nl -web: http://www.IAEhv.nl/users/gigawalt From owner-freebsd-hackers Tue Feb 4 02:35:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA08087 for hackers-outgoing; Tue, 4 Feb 1997 02:35:44 -0800 (PST) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA08043; Tue, 4 Feb 1997 02:35:27 -0800 (PST) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.8.5/8.8.5) id MAA13094; Tue, 4 Feb 1997 12:34:18 +0200 (SAT) From: John Hay Message-Id: <199702041034.MAA13094@zibbi.mikom.csir.co.za> Subject: Re: xntp3-5.89.2 & FreeBSD 2.2-GAMMA won't compile In-Reply-To: <32F7097D.41C67EA6@engr.orst.edu> from Steve Logue at "Feb 4, 97 02:03:41 am" To: logue@engr.orst.edu (Steve Logue) Date: Tue, 4 Feb 1997 12:34:18 +0200 (SAT) Cc: stenn@whimsy.udel.edu, freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, freebsd-stable@freebsd.org X-Mailer: ELM [version 2.4ME+ PL24 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > There has been a long stream of problems with XNTPD, and FreeBSD. This > may have been going on longer than I am aware however, I have checked > from 3-5.88.0 - 3-5.89.2, and they all give me the same problem. It > appears that on my system, there are two symbols that are undefined in > the file ntp_loopfilter.c, lines 330 and 335: STA_FLL and STA_FREQHOLD. > Near as I can tell, these things are supposed to be defined in my > system's timex.h file? From my understanding, XNTPD needs a framework > in the kernel to work correct? How do I go about updating my kernel > sources with the latest XNTPD kernel stuff. Or better yet, get it fixed > with the FreeBSD project? > > There is a timex.h file that comes with the XNTP distribution, and if I > edit ntp_loopfilter.c to include that instead, everything builds fine, > and xntpd runs fine, but when I try to use ntpq with the pe command I > get nothing. My "make" output is attached. > I have fixed it in FreeBSD-current, but weren't sure if it should go into 2.2. Any opinions anyone? It has been in -current from December 31 and nobody has complained yet. Three files are effected sys/sys/timex.h, sys/kern/kern_ntptime.c and sys/kern/kern_clock.c. If somebody from the 2.2 release team give the go-ahead I would be happy to put it in 2.2. John -- John Hay -- John.Hay@mikom.csir.co.za From owner-freebsd-hackers Tue Feb 4 02:58:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA09423 for hackers-outgoing; Tue, 4 Feb 1997 02:58:08 -0800 (PST) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA09418 for ; Tue, 4 Feb 1997 02:58:05 -0800 (PST) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.8.5/8.8.4) with SMTP id CAA00349; Tue, 4 Feb 1997 02:51:49 -0800 (PST) Message-ID: <32F7144B.2781E494@whistle.com> Date: Tue, 04 Feb 1997 02:49:47 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Eivind Eklund CC: Charles Mott , Brian Somers , Ari Suutari , hackers@freebsd.org, brian@utell.co.uk Subject: Re: Single socket version of natd References: <3.0.32.19970204103732.00ac3a30@dimaga.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Eivind Eklund wrote: > > At 07:36 PM 2/3/97 -0700, Charles Mott wrote: > >Eivind has these updates and has integrated them into his codebase, > >which he is continuing to work on. He writes that he has changed some of > >the compile options (ALIAS_ALLOW_INCOMING, ALIAS_SAME_PORTS, etc.) to ppp > >commands. > So are we talking about ppp, or natd here? teh subject line says natd.. but sounds like that's not the case... (or has someone abstracted out the alias code to a separate module that can be used for both? julian From owner-freebsd-hackers Tue Feb 4 03:06:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA09877 for hackers-outgoing; Tue, 4 Feb 1997 03:06:11 -0800 (PST) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id DAA09866 for ; Tue, 4 Feb 1997 03:06:05 -0800 (PST) Received: from truk.brandinnovators.com (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 18127 on Tue, 4 Feb 1997 12:02:16 +0100; id MAA18127 efrom: hans@truk.brandinnovators.com; eto: UNKNOWN Received: by truk.brandinnovators.com (8.7.5/BI96070101) for <> id LAA15551; Tue, 4 Feb 1997 11:28:16 +0100 (MET) Message-Id: <199702041028.LAA15551@truk.brandinnovators.com> From: hans@brandinnovators.com (Hans Zuidam) Subject: Re: Two-way pipe possible without C/perl? To: troyc@sandy.merix.com (Troy Curtiss) Date: Tue, 4 Feb 1997 11:28:16 +0100 (MET) Cc: freebsd-hackers@freebsd.org In-Reply-To: from Troy Curtiss at "Feb 3, 97 02:46:56 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Troy Curtiss wrote: > I am looking for a very quick and dirty way to have my FreeBSD > box page me when certain systems go down at work. You may also care to take a look at "The Internet Message: Closing the book with electronic mail", by Marshall Rose. He shows some scripts that filter e-mail and create a pager message from the subject and the body of the message. Regards, Hans -- H. Zuidam E-Mail: hans@brandinnovators.com Brand Innovators B.V. P-Mail: P.O. Box 1377 de Pinckart 54 5602 BJ Eindhoven, The Netherlands 5674 CC Nuenen Tel. +31 40 2631134, Fax. +31 40 2831138 From owner-freebsd-hackers Tue Feb 4 03:14:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA10435 for hackers-outgoing; Tue, 4 Feb 1997 03:14:37 -0800 (PST) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA10429 for ; Tue, 4 Feb 1997 03:14:33 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.5/8.7.3) with ESMTP id DAA27970; Tue, 4 Feb 1997 03:13:58 -0800 (PST) Message-Id: <199702041113.DAA27970@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: proff@suburbia.net cc: hackers@freebsd.org Subject: Re: linux net killer or no idea? (fwd) In-reply-to: Your message of "Tue, 04 Feb 1997 21:10:20 +1100." <19970204101020.12479.qmail@suburbia.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Feb 1997 03:13:57 -0800 From: Amancio Hasty Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Sorry no freeze over here, with ftp or ncftp. Amancio From owner-freebsd-hackers Tue Feb 4 03:15:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA10508 for hackers-outgoing; Tue, 4 Feb 1997 03:15:35 -0800 (PST) Received: from ravenock.cybercity.dk (ravenock.cybercity.dk [194.16.57.32]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA10503 for ; Tue, 4 Feb 1997 03:15:23 -0800 (PST) Received: (from sos@localhost) by ravenock.cybercity.dk (8.8.5/8.7.3) id MAA23479; Tue, 4 Feb 1997 12:16:20 +0100 (MET) From: Søren Schmidt Message-Id: <199702041116.MAA23479@ravenock.cybercity.dk> Subject: Re: linux net killer or no idea? (fwd) In-Reply-To: <19970204101020.12479.qmail@suburbia.net> from "proff@suburbia.net" at "Feb 4, 97 09:10:20 pm" To: proff@suburbia.net Date: Tue, 4 Feb 1997 12:16:19 +0100 (MET) Cc: hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In reply to proff@suburbia.net who wrote: I've tried this and it works just fine: ftp> get xppp1B-x86-ELF.tar.gz local: xppp1B-x86-ELF.tar.gz remote: xppp1B-x86-ELF.tar.gz 200 Connected to 194.16.57.32 port 40033 150 Opening data connection 226-File written successfully 226 67.196 seconds (measured here), 4.85 Kbytes per second 384604 bytes received in 71.53 seconds (5.25 Kbytes/s) ftp> Seems Linux has a problem :) :) > > This is the weirdest problem I've ever, ever seen. Or so it feels > like. > > I've just seen machines running linux/2.0.27, linux/2.1.24 and > freebsd/3.0-current freeze after downloading 144540 bytes of this > file: > > ftp://ftp.troll.no/contrib/xppp1B-x86-ELF.tar.gz > > Many clients can download this file just fine, many others can not. > Those who can't all freeze after exactly 144540 bytes. A file of the > same size but with different contents works. The same file with a > different name does not work. The same file recompressed (zcat | gzip > - -9) to be 600 bytes smaller can be downloaded by everyone as far as I > can test. The same file recompressed (-5) to be 2100 bytes larger > too. > > The FTP daemon is troll-ftpd 1.20 running on linux 2.0.26 and then on > 2.0.28. The same file _can_ be downloaded from the same version of > troll-ftpd running on a different linux box, which runs 2.0.27. There > are no tcp-related changes between .27 and .28, as far as I can see. > > A huge tcpdump packet trace showing first a successful transfer of a > 384604-byte file, then the one which freezes is available at > > ftp://ftp.troll.no/tmp/thud > > The two transfers look much the same to me, except that there appears > to be a single packet loss while the window is wide-open, and the > connection never recovers if this crucial file is being transferred. > > I don't know which of several netstat lines -t correspond to the > packet trace. The most likely one shows a send queue of 43880 bytes, > the others are similar. > > I don't know whether the file, the ftpd or the packet trace helps. > Should anyone feel like tracing something so weird and need other > data, or access to the box, do write. > > (Please cc any replies to me - I don't read linux-net right now, > and probably won't for another two weeks or so.) > > - --Arnt > > ------- End of Forwarded Message > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end .. From owner-freebsd-hackers Tue Feb 4 03:17:59 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA10604 for hackers-outgoing; Tue, 4 Feb 1997 03:17:59 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA10599 for ; Tue, 4 Feb 1997 03:17:56 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id DAA00348; Tue, 4 Feb 1997 03:17:20 -0800 (PST) Message-Id: <199702041117.DAA00348@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: proff@suburbia.net cc: hackers@freebsd.org, Richard Jones Subject: Re: linux net killer or no idea? (fwd) In-reply-to: Your message of "Tue, 04 Feb 1997 21:10:20 +1100." <19970204101020.12479.qmail@suburbia.net> From: David Greenman Reply-To: dg@root.com Date: Tue, 04 Feb 1997 03:17:20 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I've just seen machines running linux/2.0.27, linux/2.1.24 and >freebsd/3.0-current freeze after downloading 144540 bytes of this >file: > > ftp://ftp.troll.no/contrib/xppp1B-x86-ELF.tar.gz This is a not-too-uncommon problem in the Internet that is caused by a faulty CSU/DSU or by a problem with the wire it is attached to. You'll find that there is a specific bit pattern that one of the hops involved can't deal with, and that bit pattern just happens to be present near offset 144540 in the above file. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project From owner-freebsd-hackers Tue Feb 4 03:19:45 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA10653 for hackers-outgoing; Tue, 4 Feb 1997 03:19:45 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA10648 for ; Tue, 4 Feb 1997 03:19:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id DAA00348; Tue, 4 Feb 1997 03:17:20 -0800 (PST) Message-Id: <199702041117.DAA00348@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: proff@suburbia.net cc: hackers@freebsd.org, Richard Jones Subject: Re: linux net killer or no idea? (fwd) In-reply-to: Your message of "Tue, 04 Feb 1997 21:10:20 +1100." <19970204101020.12479.qmail@suburbia.net> From: David Greenman Reply-To: dg@root.com Date: Tue, 04 Feb 1997 03:17:20 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I've just seen machines running linux/2.0.27, linux/2.1.24 and >freebsd/3.0-current freeze after downloading 144540 bytes of this >file: > > ftp://ftp.troll.no/contrib/xppp1B-x86-ELF.tar.gz This is a not-too-uncommon problem in the Internet that is caused by a faulty CSU/DSU or by a problem with the wire it is attached to. You'll find that there is a specific bit pattern that one of the hops involved can't deal with, and that bit pattern just happens to be present near offset 144540 in the above file. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project From owner-freebsd-hackers Tue Feb 4 03:34:03 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA11308 for hackers-outgoing; Tue, 4 Feb 1997 03:34:03 -0800 (PST) Received: from agora.rdrop.com (root@agora.rdrop.com [199.2.210.241]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id DAA11303 for ; Tue, 4 Feb 1997 03:34:01 -0800 (PST) Received: from amadeus.informatik.ba-stuttgart.de by agora.rdrop.com with smtp (Smail3.1.29.1 #17) id m0vrj5U-0008xhC; Tue, 4 Feb 97 03:30 PST Received: (from helbig@localhost) by amadeus.informatik.ba-stuttgart.de (8.7.3/8.7.1) id JAA26420; Tue, 4 Feb 1997 09:35:45 +0100 (MET) From: Wolfgang Helbig Message-Id: <199702040835.JAA26420@amadeus.informatik.ba-stuttgart.de> Subject: Re: CMD640b flaw workaround To: garman@phs.k12.ar.us Date: Tue, 04 Feb 1997 9:35:45 MET Cc: hackers@freebsd.org In-Reply-To: ; from "Jason Garman" at Feb 3, 97 7:09 pm X-Mailer: Elm [revision: 112.2] Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi Jason, Very good! I think your patch for 2.1.5 should also be working for 2.1.6.1 so Nadav might give it a try. It is working for me for 2 days (and nights) now, with a hd and cd on the primary channel and a hd on the secondary. The wd0-disk is my root disk containing /etc, /var and swap and the wd2-disk contains /usr. Building kernels and "make world" did not crash the system. X-Window and Netscape did not crash the system, so I believe it is pretty save. Maybe disklabeling does not work, but I cannot test that one, since both disks are essential to me. During testing I experienced, either it works at once and for ever or not at all, and luckily it never corrupted any data! Is there any one else (besides Jason, Nadav and me) with a CMD640b? Wolfgang From owner-freebsd-hackers Tue Feb 4 03:34:52 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA11410 for hackers-outgoing; Tue, 4 Feb 1997 03:34:52 -0800 (PST) Received: from ui-gate.utell.co.uk (ui-gate.utell.co.uk [194.200.4.253]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA11404 for ; Tue, 4 Feb 1997 03:34:49 -0800 (PST) Received: from dibble.utell.net (dibble.utell.net [97.3.0.10]) by ui-gate.utell.co.uk (8.7.6/8.7.3) with ESMTP id LAA23749; Tue, 4 Feb 1997 11:33:36 GMT Message-Id: <199702041133.LAA23749@ui-gate.utell.co.uk> From: "Brian Somers" To: "Julian Elischer" , "Eivind Eklund" Cc: "Charles Mott" , "Brian Somers" , "Ari Suutari" , Subject: Re: Single socket version of natd Date: Tue, 4 Feb 1997 11:28:53 -0000 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk You guessed it - Charles originally wrote the code so. Eventually, I'd like to remove the -alias switch from ppp and have the only implementation being in the natd code. Brian Don't _EVER_ lose your sense of humour ---------- > From: Julian Elischer > To: Eivind Eklund > Cc: Charles Mott ; Brian Somers ; Ari Suutari ; hackers@freebsd.org; brian@utell.co.uk > Subject: Re: Single socket version of natd > Date: 04 February 1997 10:49 > > Eivind Eklund wrote: > > > > At 07:36 PM 2/3/97 -0700, Charles Mott wrote: > > >Eivind has these updates and has integrated them into his codebase, > > >which he is continuing to work on. He writes that he has changed some of > > >the compile options (ALIAS_ALLOW_INCOMING, ALIAS_SAME_PORTS, etc.) to ppp > > >commands. > > > So are we talking about ppp, or natd here? > teh subject line says natd.. > but sounds like that's not the case... > (or has someone abstracted out the alias code to > a separate module that can be used for both? > > julian From owner-freebsd-hackers Tue Feb 4 04:42:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA14255 for hackers-outgoing; Tue, 4 Feb 1997 04:42:22 -0800 (PST) Received: from nic.follonett.no (nic.follonett.no [194.198.43.10]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA14250 for ; Tue, 4 Feb 1997 04:42:18 -0800 (PST) Received: (from uucp@localhost) by nic.follonett.no (8.8.5/8.8.3) with UUCP id NAA12248; Tue, 4 Feb 1997 13:38:57 +0100 (MET) Received: from oo7 (oo7.dimaga.com [192.0.0.65]) by dimaga.com (8.7.5/8.7.2) with SMTP id MAA11837; Tue, 4 Feb 1997 12:48:53 +0100 (MET) Message-Id: <3.0.32.19970204124852.00959660@dimaga.com> X-Sender: eivind@dimaga.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Tue, 04 Feb 1997 12:48:53 +0100 To: Julian Elischer From: Eivind Eklund Subject: Re: Single socket version of natd Cc: Charles Mott , Brian Somers , Ari Suutari , hackers@freebsd.org, brian@utell.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 02:49 AM 2/4/97 -0800, Julian Elischer wrote: >Eivind Eklund wrote: >> >> At 07:36 PM 2/3/97 -0700, Charles Mott wrote: >> >Eivind has these updates and has integrated them into his codebase, >> >which he is continuing to work on. He writes that he has changed some of >> >the compile options (ALIAS_ALLOW_INCOMING, ALIAS_SAME_PORTS, etc.) to ppp >> >commands. >> >So are we talking about ppp, or natd here? >teh subject line says natd.. >but sounds like that's not the case... >(or has someone abstracted out the alias code to >a separate module that can be used for both? The code is abstracted to a single set of files. We're talking both PPP and natd when talking of the aliasing code. (When talking about what to include in 2.2, I believe it is the latest version of PPP+pktAlias that is in question - it is finished, but I don't believe I'll have time to update the docs before thursday. I'll if I can get it done tonight, though.) Eivind Eklund / perhaps@yes.no / http://maybe.yes.no/perhaps/ From owner-freebsd-hackers Tue Feb 4 06:43:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA18631 for hackers-outgoing; Tue, 4 Feb 1997 06:43:22 -0800 (PST) Received: from toth.ferginc.com (toth.ferginc.com [205.139.23.69]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA18626 for ; Tue, 4 Feb 1997 06:43:19 -0800 (PST) Received: from toth.hq.ferg.com by toth.ferginc.com (You/Wish) with SMTP id JAA28534; Tue, 4 Feb 1997 09:42:59 -0500 (EST) Posted-Date: Tue, 4 Feb 1997 09:42:59 -0500 (EST) Date: Tue, 4 Feb 1997 09:42:54 -0500 (EST) From: Branson Matheson X-Sender: branson@toth.hq.ferg.com Reply-To: branson.matheson@ferginc.com To: Walter Belgers cc: freebsd-hackers@FreeBSD.org Subject: Re: NIS/uids In-Reply-To: <199702041010.LAA27440@giga.lss.cp.philips.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 4 Feb 1997, Walter Belgers wrote: > Hi, > > I hope this is the right place to tell my story. > > I run FreeBSD 2.1.5. On my system are a bunch of local users but I also > have users from the NIS database on another system (an HP). In my > password file the users are defined as follows: > > +user::::::::/home/john:/usr/local/bin/tcsh > > So I override the homedir and shell. > > The problem now is that the security on my system has become dependant > on that of the NIS server. If I am root on the NIS server I can change > the uid of "user" into any user including root and make use of it on my > system. Even if you can only become root using su you can easily first > become a user in wheel and then root. That is a fact. because you are using that information from an NIS server, you will _always_ have a security risk from that server. Anyone that has root on that server can modify a yp'd entry on that server, change the uid to 0 and become root on your system very easily. So by definition, you _have_ to trust your yp servers. > > The obvious solution is to override the uid in the password file: > +user::1234:1234:::::/home/john:/usr/local/bin/tcsh You can do that .. but at this point the only win you have over seperate entries in the PW file is a single global password. > But now I have another problem... the userid is not mapped to the > username any more. > > The fact that "user" now is only known as uid 1234 and not as user > "user" gives rise to a lot of problems. > > Is this a bug or am I overlooking something? I was able to reproduce this.. it is probably a bug in the login sequence. I looked at login it self.. but could not find anything obvious... can somone more experienced look at this? -branson ============================================================================= Branson Matheson | Ferguson Enterprises | If you're falling off a System Administrator | W: (804) 874-7795 | mountian, you might as well Unix, Perl, WWW | branson@ferginc.com | attempt to fly. -Delenn From owner-freebsd-hackers Tue Feb 4 06:47:55 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA18779 for hackers-outgoing; Tue, 4 Feb 1997 06:47:55 -0800 (PST) Received: from gw-nl1.philips.com (gw-nl1.philips.com [192.68.44.33]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA18772 for ; Tue, 4 Feb 1997 06:47:47 -0800 (PST) Received: (from nobody@localhost) by gw-nl1.philips.com (8.6.10/8.6.10-0.994n-08Nov95) id PAA23972; Tue, 4 Feb 1997 15:47:31 +0100 Received: from unknown(130.139.36.3) by gw-nl1.philips.com via smap (V1.3+ESMTP) with ESMTP id sma023781; Tue Feb 4 15:46:43 1997 Received: from giga.lss.cp.philips.com (giga.lss.cp.philips.com [130.144.199.31]) by smtprelay.nl.cis.philips.com (8.6.10/8.6.10-1.2.1m-970131) with SMTP id PAA16217; Tue, 4 Feb 1997 15:46:42 +0100 Received: by giga.lss.cp.philips.com (8.8.5/1.63) id PAA04101; Tue, 4 Feb 1997 15:46:41 +0100 (MET) From: W.Belgers@nl.cis.philips.com (Walter Belgers) Message-Id: <199702041446.PAA04101@giga.lss.cp.philips.com> Subject: Re: NIS/uids To: branson.matheson@ferginc.com Date: Tue, 4 Feb 1997 15:46:41 +0100 (MET) Cc: freebsd-hackers@FreeBSD.org In-Reply-To: from Branson Matheson at "Feb 4, 97 09:42:54 am" Organisation: Origin IT Systems Management /Nederland B.V. X-URL: http://giga.lss.cp.philips.com/cgi-bin/walter.cgi X-Mailer: ELM [version 2.4ME+ PL19 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Branson Matheson writes: > > > +user::::::::/home/john:/usr/local/bin/tcsh > > > > The problem now is that the security on my system has become dependant > > on that of the NIS server. > > That is a fact. because you are using that information from an NIS > server, you will _always_ have a security risk from that server. I know. Normally, one would have the same system administrator for the server and all clients, so it would be no problem at all. In this particular case, I only use NIS to keep the passwords synchronised, the NIS server is not controlled by me. > > The obvious solution is to override the uid in the password file: > > +user::1234:1234:::::/home/john:/usr/local/bin/tcsh > > You can do that .. but at this point the only win you have over > seperate entries in the PW file is a single global password. That's just what I want. > -branson Cheers, Walter. -- Ir. W.H.B. Belgers, Internet Security Specialist phone: +31 40 2782753 Origin IT Syst.Man. /Nederland bv, Bldg VN-513 email: fax: +31 40 2784697 P.O. Box 218, 5600 MD Eindhoven, Netherlands W.Belgers@nl.cis.philips.com non-business-email: walter@giga.nl -web: http://www.IAEhv.nl/users/gigawalt From owner-freebsd-hackers Tue Feb 4 07:02:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA19569 for hackers-outgoing; Tue, 4 Feb 1997 07:02:54 -0800 (PST) Received: from plains.nodak.edu (tinguely@plains.NoDak.edu [134.129.111.64]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA19564 for ; Tue, 4 Feb 1997 07:02:49 -0800 (PST) Received: (from tinguely@localhost) by plains.nodak.edu (8.8.4/8.8.3) id JAA12296; Tue, 4 Feb 1997 09:02:32 -0600 (CST) Date: Tue, 4 Feb 1997 09:02:32 -0600 (CST) From: Mark Tinguely Message-Id: <199702041502.JAA12296@plains.nodak.edu> To: chris@mail.bb.cc.wa.us Subject: Re: IPFILTER Cc: hackers@FreeBSD.org Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk I used the ftp proxy that comes with the FireWall Tool Kit (FWTK). The FWTK's ftp proxy does not allow for local ftp connections, so I placed the proxy at port 1026 and left the standard ftpd at port 21. I added to /etc/services: ftp-gw 1026/tcp #File Transfer [Control] ftp-gw 1026/udp #File Transfer [Control] I changed the NAT rules to: # file known as /etc/nat_rule # map ppp0 10.1.0.0/24 -> XXXXXXXX/32 portmap tcpudp 1027:20000 # # Redirection is triggered for input packets. # For example, to redirect FTP connections through this box, to the local ftp # port, forcing them to connect through a proxy, you would use: # rdr ed0 0.0.0.0/0 port ftp -> 127.0.0.1 port 1026 in this way, I can ftp to the NAT machine from the internet all the time and from the hidden net whenever NAT is not active. to get the FWTK: echo "send" | mail fwtk-request@tis.com this will respond with a time sensitive ftp directory from which you can download the software. --mark. From owner-freebsd-hackers Tue Feb 4 07:16:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA20576 for hackers-outgoing; Tue, 4 Feb 1997 07:16:35 -0800 (PST) Received: from chai.plexuscom.com (chai.plexuscom.com [207.87.46.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA20570 for ; Tue, 4 Feb 1997 07:16:31 -0800 (PST) Received: from chai.plexuscom.com (localhost [127.0.0.1]) by chai.plexuscom.com (8.8.4/8.6.12) with ESMTP id KAA08583; Tue, 4 Feb 1997 10:16:26 -0500 (EST) Message-Id: <199702041516.KAA08583@chai.plexuscom.com> To: Josh MacDonald Cc: hackers@freebsd.org Reply-to: chat@freebsd.org Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta In-reply-to: Your message of "Mon, 03 Feb 1997 21:59:35 PST." <199702040559.VAA08584@paris.CS.Berkeley.EDU> Date: Tue, 04 Feb 1997 10:16:25 -0500 From: Bakul Shah Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Clearly, you have no idea what you're talking about. You should be a > bit more careful with your use of "clearly", it makes me wonder how > much of the rest of your mail to this list (which I rarely understand) > is correct. Since Terry responded to something I had posted, I feel obliged to respond. His use of `clearly' made his erroneous response a bit amusing so I didn't mind it at all! Terry made a mistake. Big deal. We all do (like my mixing up his response with someone else's). Most of us want to make the most efficient use of whatever free time we have and at times we respond without reading other people's messages carefully enough. When someone else does so and makes a mistake, it is best to a) keep silent, b) correct them gently (because you can be in their place in future!), or c) take the discussion beyond just a simple correction. Generalizations like `you have no idea what you are talking about' *clearly* do not belong on a technical group. Now it would be nice if all of Terry's posts were crystal clear -- I confess I understand may be 80% of what he writes (even when I think I agree with what he says I am not 100% sure :-) -- but his contributions do enrich various discussions and I often learn new things from his posts. On the g++, STL, -frepo front, the good news is that once I stopped doing things the hardway (that is, once I started using the FreeBSD g++ without any fancy flags), the program actually compiled and linked. The bad news is that it segfaults on even simple Verilog module definitions. So for now this mini project has been ^Z'ed (put on hold). Thanks to all the people who responded with helpful hints (even if wrong:-). -- bakul From owner-freebsd-hackers Tue Feb 4 07:41:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA21968 for hackers-outgoing; Tue, 4 Feb 1997 07:41:06 -0800 (PST) Received: from gargoyle.bazzle.com (gargoyle.bazzle.com [206.103.246.190]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA21962 for ; Tue, 4 Feb 1997 07:41:03 -0800 (PST) Received: from gargoyle.bazzle.com (net2.bazzle.com [206.103.246.189]) by gargoyle.bazzle.com (8.8.4/8.6.12) with SMTP id KAA10606; Tue, 4 Feb 1997 10:40:45 -0500 (EST) Date: Tue, 4 Feb 1997 10:40:45 -0500 (EST) From: "Eric J. Chet" To: proff@suburbia.net cc: hackers@freebsd.org Subject: Re: linux net killer or no idea? (fwd) In-Reply-To: <19970204101020.12479.qmail@suburbia.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 4 Feb 1997 proff@suburbia.net wrote: > ftp://ftp.troll.no/contrib/xppp1B-x86-ELF.tar.gz > > Many clients can download this file just fine, many others can not. > Those who can't all freeze after exactly 144540 bytes. A file of the > same size but with different contents works. The same file with a > different name does not work. The same file recompressed (zcat | gzip > - -9) to be 600 bytes smaller can be downloaded by everyone as far as I > can test. The same file recompressed (-5) to be 2100 bytes larger > too. -current as of a week ago. fetch ftp://ftp.troll.no/contrib/xppp1B-x86-ELF.tar.gz Receiving xppp1B-x86-ELF.tar.gz (384604 bytes): 100% 384604 bytes transfered in 126.8 seconds (2.96 K/s) Eric J. Chet - ejc@naserver1.cb.lucent.com - ejc@bazzle.com From owner-freebsd-hackers Tue Feb 4 08:28:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA25182 for hackers-outgoing; Tue, 4 Feb 1997 08:28:33 -0800 (PST) Received: from darkstar (dialin2.anlw.anl.gov [141.221.252.102]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id IAA25163 for ; Tue, 4 Feb 1997 08:28:28 -0800 (PST) Received: (from cmott@localhost) by darkstar (8.6.12/8.6.12) id JAA08728; Tue, 4 Feb 1997 09:28:09 -0700 Date: Tue, 4 Feb 1997 09:28:08 -0700 (MST) From: Charles Mott X-Sender: cmott@darkstar To: Brian Somers cc: Julian Elischer , Eivind Eklund , Brian Somers , Ari Suutari , hackers@freebsd.org Subject: Re: Single socket version of natd In-Reply-To: <199702041133.LAA23749@ui-gate.utell.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The one situation I think is difficult for natd to handle is is when ppp is running in -auto mode, and it reconnects on each dial-in with a different dynamcially assigned address. At the moment, natd can do device address lookup at startup, but to handle the above mentioned case, it would have to do a device address lookup for every packet. Is it possible to do this? I personally like having both ppp -alias as well as natd. Having the software embedded in ppp and enabled with the -alias switch makes life very easy for a great number of less sophisticated users. Charles Mott On Tue, 4 Feb 1997, Brian Somers wrote: > You guessed it - Charles originally wrote the code so. Eventually, I'd > like to > remove the -alias switch from ppp and have the only implementation being > in the natd code. > > Brian > > Don't _EVER_ lose your sense of humour > > ---------- > > From: Julian Elischer > > To: Eivind Eklund > > Cc: Charles Mott ; Brian Somers > ; Ari Suutari ; > hackers@freebsd.org; brian@utell.co.uk > > Subject: Re: Single socket version of natd > > Date: 04 February 1997 10:49 > > > > Eivind Eklund wrote: > > > > > > At 07:36 PM 2/3/97 -0700, Charles Mott wrote: > > > >Eivind has these updates and has integrated them into his codebase, > > > >which he is continuing to work on. He writes that he has changed some > of > > > >the compile options (ALIAS_ALLOW_INCOMING, ALIAS_SAME_PORTS, etc.) to > ppp > > > >commands. > > > > > So are we talking about ppp, or natd here? > > teh subject line says natd.. > > but sounds like that's not the case... > > (or has someone abstracted out the alias code to > > a separate module that can be used for both? > > > > julian > From owner-freebsd-hackers Tue Feb 4 09:00:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA28001 for hackers-outgoing; Tue, 4 Feb 1997 09:00:29 -0800 (PST) Received: from ui-gate.utell.co.uk (ui-gate.utell.co.uk [194.200.4.253]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA27977 for ; Tue, 4 Feb 1997 09:00:24 -0800 (PST) Received: from dibble.utell.net (dibble.utell.net [97.3.0.10]) by ui-gate.utell.co.uk (8.7.6/8.7.3) with ESMTP id QAA00486; Tue, 4 Feb 1997 16:59:00 GMT Message-Id: <199702041659.QAA00486@ui-gate.utell.co.uk> From: "Brian Somers" To: "Charles Mott" Cc: "Julian Elischer" , "Eivind Eklund" , "Brian Somers" , "Ari Suutari" , Subject: Re: Single socket version of natd Date: Tue, 4 Feb 1997 16:58:58 -0000 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk That's a good point. If we leave it in both ppp & natd, can we add a (third) arg to PacketAlias{In,Out}() that tells it not to do anything with the ip_sum ? If it's reading raw packets from a wire (with ppp), the sum may be wrong (this has been discussed before) and we want to leave incorrect the sum alone, but with natd, it's a terrible waste to have the kernel code zero the sum, have natd re-calculate it, have PacketAliasIn() check it, and then probably re-calculate it again (if anything's changed). With a "leave the sum alone option", natd could pass the packet with the zero'd ip_sum to PacketAliasIn() and know that it has to calculate it itself afterwards.... Cheers. Brian Don't _EVER_ lose your sense of humour ---------- > From: Charles Mott > To: Brian Somers > Cc: Julian Elischer ; Eivind Eklund ; Brian Somers ; Ari Suutari ; hackers@freebsd.org > Subject: Re: Single socket version of natd > Date: 04 February 1997 16:28 > > The one situation I think is difficult for natd to handle is is when ppp > is running in -auto mode, and it reconnects on each dial-in with a > different dynamcially assigned address. > > At the moment, natd can do device address lookup at startup, but to > handle the above mentioned case, it would have to do a device address > lookup for every packet. Is it possible to do this? > > I personally like having both ppp -alias as well as natd. Having the > software embedded in ppp and enabled with the -alias switch makes life > very easy for a great number of less sophisticated users. > > Charles Mott > > > On Tue, 4 Feb 1997, Brian Somers wrote: > > > You guessed it - Charles originally wrote the code so. Eventually, I'd > > like to > > remove the -alias switch from ppp and have the only implementation being > > in the natd code. > > > > Brian > > > > Don't _EVER_ lose your sense of humour > > > > ---------- > > > From: Julian Elischer > > > To: Eivind Eklund > > > Cc: Charles Mott ; Brian Somers > > ; Ari Suutari ; > > hackers@freebsd.org; brian@utell.co.uk > > > Subject: Re: Single socket version of natd > > > Date: 04 February 1997 10:49 > > > > > > Eivind Eklund wrote: > > > > > > > > At 07:36 PM 2/3/97 -0700, Charles Mott wrote: > > > > >Eivind has these updates and has integrated them into his codebase, > > > > >which he is continuing to work on. He writes that he has changed some > > of > > > > >the compile options (ALIAS_ALLOW_INCOMING, ALIAS_SAME_PORTS, etc.) to > > ppp > > > > >commands. > > > > > > > So are we talking about ppp, or natd here? > > > teh subject line says natd.. > > > but sounds like that's not the case... > > > (or has someone abstracted out the alias code to > > > a separate module that can be used for both? > > > > > > julian > > From owner-freebsd-hackers Tue Feb 4 09:11:17 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA28815 for hackers-outgoing; Tue, 4 Feb 1997 09:11:17 -0800 (PST) Received: from logues.rhn.orst.edu (logues.RHN.ORST.EDU [128.193.139.116]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA28762; Tue, 4 Feb 1997 09:10:56 -0800 (PST) Received: from localhost (stevel@localhost) by logues.rhn.orst.edu (8.8.4/8.8.4) with SMTP id JAA05171; Tue, 4 Feb 1997 09:10:29 -0800 (PST) Date: Tue, 4 Feb 1997 09:10:29 -0800 (PST) From: stevel To: John Hay cc: Steve Logue , stenn@whimsy.udel.edu, freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, freebsd-stable@freebsd.org Subject: Re: xntp3-5.89.2 & FreeBSD 2.2-GAMMA won't compile In-Reply-To: <199702041034.MAA13094@zibbi.mikom.csir.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 4 Feb 1997, John Hay wrote: > I have fixed it in FreeBSD-current, but weren't sure if it should go into > 2.2. Any opinions anyone? It has been in -current from December 31 and > nobody has complained yet. Three files are effected sys/sys/timex.h, > sys/kern/kern_ntptime.c and sys/kern/kern_clock.c. > > If somebody from the 2.2 release team give the go-ahead I would be > happy to put it in 2.2. What if they don't? I still need it. Can you describe the changes that you applied. I'm sure it isn't as simple as copying these files into the kernel src tree, and recompiling, or is it? Thanks -STEVEl From owner-freebsd-hackers Tue Feb 4 09:18:40 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA29278 for hackers-outgoing; Tue, 4 Feb 1997 09:18:40 -0800 (PST) Received: from darkstar (dialin2.anlw.anl.gov [141.221.252.102]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA29269 for ; Tue, 4 Feb 1997 09:18:37 -0800 (PST) Received: (from cmott@localhost) by darkstar (8.6.12/8.6.12) id KAA08767; Tue, 4 Feb 1997 10:17:46 -0700 Date: Tue, 4 Feb 1997 10:17:41 -0700 (MST) From: Charles Mott X-Sender: cmott@darkstar To: Brian Somers cc: Julian Elischer , Eivind Eklund , Brian Somers , Ari Suutari , hackers@freebsd.org Subject: Re: Single socket version of natd In-Reply-To: <199702041659.QAA00486@ui-gate.utell.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > If we leave it in both ppp & natd, can we add a (third) arg to > PacketAlias{In,Out}() that tells it not to do anything with the > ip_sum ? If it's reading raw packets from a wire (with ppp), > the sum may be wrong (this has been discussed before) and > we want to leave incorrect the sum alone, but with natd, it's a > terrible waste to have the kernel code zero the sum, have natd > re-calculate it, have PacketAliasIn() check it, and then probably > re-calculate it again (if anything's changed). > > With a "leave the sum alone option", natd could pass the packet > with the zero'd ip_sum to PacketAliasIn() and know that it has > to calculate it itself afterwards.... Why does the kernel zero the checksum? IP checksum has never been much of a problem, because it is only 20 bytes or so. It is the TCP, UDP and ICMP layers where efficiency pays off. In any event, all IP checksums modifications in alias*.c are now differential, so calculations are only made for packet data which has been altered. Unlike older versions, there is no checking and recomputation of the complete IP header. Charles Mott From owner-freebsd-hackers Tue Feb 4 09:54:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA01334 for hackers-outgoing; Tue, 4 Feb 1997 09:54:30 -0800 (PST) Received: from darkstar (dialin2.anlw.anl.gov [141.221.252.102]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA01329 for ; Tue, 4 Feb 1997 09:54:24 -0800 (PST) Received: (from cmott@localhost) by darkstar (8.6.12/8.6.12) id KAA08796; Tue, 4 Feb 1997 10:53:53 -0700 Date: Tue, 4 Feb 1997 10:53:52 -0700 (MST) From: Charles Mott X-Sender: cmott@darkstar To: Eivind Eklund cc: Brian Somers , Ari Suutari , hackers@freebsd.org, brian@utell.co.uk Subject: Re: Single socket version of natd In-Reply-To: <3.0.32.19970204103732.00ac3a30@dimaga.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 4 Feb 1997, Eivind Eklund wrote: > And all the other really nescessary code-changes are done - everything is > changed to ANSI style, and integrated with PPP from -current patched with > #ifdef's to make it compile and work on all versions from 2.1.0 to > -current, with an extra command 'alias' that set alias options. Do the alias options default the way they have in the past, or does the user have to explicitly set them? Can packet aliasing be enabled a ppp command as well as the -alias command line option? If so, is this a good idea? My concern here is that users be able to use the same ppp.conf file with and without packet aliasing. Charles Mott From owner-freebsd-hackers Tue Feb 4 10:15:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA02268 for hackers-outgoing; Tue, 4 Feb 1997 10:15:33 -0800 (PST) Received: from florence.pavilion.net (florence.pavilion.net [194.242.128.25]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA02260 for ; Tue, 4 Feb 1997 10:15:27 -0800 (PST) Received: from deputy.pavilion.co.uk (deputy.pavilion.co.uk [194.242.128.24]) by florence.pavilion.net (8.8.5/8.8.5) with ESMTP id SAA26193; Tue, 4 Feb 1997 18:14:48 GMT From: Josef Karthauser Received: (from jlk@localhost) by deputy.pavilion.co.uk (8.8.3/8.8.4) id SAA00858; Tue, 4 Feb 1997 18:14:48 GMT Message-Id: <199702041814.SAA00858@deputy.pavilion.co.uk> Subject: Re: probing scsi bus after boot? To: dufault@hda.com (Peter Dufault) Date: Tue, 4 Feb 1997 18:14:48 +0000 (GMT) Cc: jkh@time.cdrom.com, joerg_wunsch@uriah.heep.sax.de, freebsd-hackers@FreeBSD.org, jlk@pavilion.co.uk In-Reply-To: <199611011028.FAA07666@hda.hda.com> from "Peter Dufault" at Nov 1, 96 05:28:54 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Sorry to bring up an old thread, but I've got a scsi tape drive that I need to use across many machines to back their file systems up. I can think of two ways to do it. Either I use rmt, but I've not found a way of rmt'ing as root on the remote site (please someone let me out of my misery.) The other way is to plug the tape drive into the machine that I'm backing up. I've compiled the super scsi driver into my 2.1.6 kernel (controller ssc), but I still get: # scsi -f /dev/rst0 -p scsi: unable to open device /dev/rst0: Device not configured I guess that I might have to do this on the /dev/scsi/super device, but /dev/MAKEDEV doesn't build it! Any hints would be greatly appreciated. Cheers, Joe. > > > Huh? I just do this on /dev/sd0 or some other - it works great! > > I use it to detect my scanner after power-up all the time. > > The super SCSI device is needed when nothing is on the bus at boot > - you then need a way into the system for that case. Try putting > your scanner on its own bus with no SCSI devices (I forgot - you > NEVER have a system with no SCSI devices). The super SCSI device > should support bus configuration (such as reprobe) and "device > target" types of calls ("become this SCSI NEXUS"). It is essentially > a SCSI bus device. > > I added it when I was doing some work with a prototype device on > a dedicated bus that was frequently not powered up. > > IMHO super SCSI should be left working this way, maybe renamed to > be a bus device. The SCSI user code should be ripped out with > extreme prejudice - it is superceded by the newer configuration > code. > > The code suffers from no use and no test. > > Peter > > -- > Peter Dufault Real-Time Machine Control and Simulation > HD Associates, Inc. Voice: 508 433 6936 > dufault@hda.com Fax: 508 433 5267 > -- Josef Karthauser (joe@pavilion.net) Technical Manager [Tel: +44 1273 607072 Fax: +44 1273 607073] Pavilion Internet plc. ._ .. _. _ ._.. .. .._. . __. ._. ._ _. _.. From owner-freebsd-hackers Tue Feb 4 10:39:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA03606 for hackers-outgoing; Tue, 4 Feb 1997 10:39:08 -0800 (PST) Received: from ui-gate.utell.co.uk (ui-gate.utell.co.uk [194.200.4.253]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA03592 for ; Tue, 4 Feb 1997 10:39:02 -0800 (PST) Received: from dibble.utell.net (dibble.utell.net [97.3.0.10]) by ui-gate.utell.co.uk (8.7.6/8.7.3) with ESMTP id SAA02367; Tue, 4 Feb 1997 18:37:30 GMT Message-Id: <199702041837.SAA02367@ui-gate.utell.co.uk> From: "Brian Somers" To: "Charles Mott" Cc: "Julian Elischer" , "Eivind Eklund" , "Brian Somers" , "Ari Suutari" , Subject: Re: Single socket version of natd Date: Tue, 4 Feb 1997 18:37:30 -0000 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I don't know specifically without checking the code, but I recall seeing a comment in the -current sources (I've just checked SNAP-961014, nothing about it there) about using the ip_sum to differentiate between incoming and outgoing packets..... It *WAS* commented as being a HACK :( I'll check the code out this evening when I get home (-current machine) and tell you. Brian Don't _EVER_ lose your sense of humour ---------- > From: Charles Mott > To: Brian Somers > Cc: Julian Elischer ; Eivind Eklund ; Brian Somers ; Ari Suutari ; hackers@freebsd.org > Subject: Re: Single socket version of natd > Date: 04 February 1997 17:17 > > > If we leave it in both ppp & natd, can we add a (third) arg to > > PacketAlias{In,Out}() that tells it not to do anything with the > > ip_sum ? If it's reading raw packets from a wire (with ppp), > > the sum may be wrong (this has been discussed before) and > > we want to leave incorrect the sum alone, but with natd, it's a > > terrible waste to have the kernel code zero the sum, have natd > > re-calculate it, have PacketAliasIn() check it, and then probably > > re-calculate it again (if anything's changed). > > > > With a "leave the sum alone option", natd could pass the packet > > with the zero'd ip_sum to PacketAliasIn() and know that it has > > to calculate it itself afterwards.... > > Why does the kernel zero the checksum? > > IP checksum has never been much of a problem, because it is only 20 bytes > or so. It is the TCP, UDP and ICMP layers where efficiency pays off. > > In any event, all IP checksums modifications in alias*.c are now > differential, so calculations are only made for packet data which has been > altered. Unlike older versions, there is no checking and recomputation of > the complete IP header. > > Charles Mott From owner-freebsd-hackers Tue Feb 4 10:46:40 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA04191 for hackers-outgoing; Tue, 4 Feb 1997 10:46:40 -0800 (PST) Received: from nic.follonett.no (nic.follonett.no [194.198.43.10]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA04166 for ; Tue, 4 Feb 1997 10:46:34 -0800 (PST) Received: (from uucp@localhost) by nic.follonett.no (8.8.5/8.8.3) with UUCP id TAA16901; Tue, 4 Feb 1997 19:42:15 +0100 (MET) Received: from oo7 (oo7.dimaga.com [192.0.0.65]) by dimaga.com (8.7.5/8.7.2) with SMTP id TAA16632; Tue, 4 Feb 1997 19:44:55 +0100 (MET) Message-Id: <3.0.32.19970204194456.00bbae30@dimaga.com> X-Sender: eivind@dimaga.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Tue, 04 Feb 1997 19:44:57 +0100 To: Charles Mott From: Eivind Eklund Subject: Re: Single socket version of natd Cc: Brian Somers , Ari Suutari , hackers@freebsd.org, brian@utell.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 10:53 AM 2/4/97 -0700, Charles Mott wrote: >On Tue, 4 Feb 1997, Eivind Eklund wrote: > >> And all the other really nescessary code-changes are done - everything is >> changed to ANSI style, and integrated with PPP from -current patched with >> #ifdef's to make it compile and work on all versions from 2.1.0 to >> -current, with an extra command 'alias' that set alias options. > >Do the alias options default the way they have in the past, or does the >user have to explicitly set them? They default the same way, yeah. I'll drop the source at you later tonight. >Can packet aliasing be enabled a ppp command as well as the -alias >command line option? Yep. >If so, is this a good idea? My concern here is that users be able to use the >same ppp.conf file with and without packet aliasing. My concern is that I should be able to make all users on the LAN (all of them have access to setting up a PPP connection) remember to enable aliasing. If I had not wanted it in all cases, I'd just drop putting the command in the config file. Nothing lost in my case, at least. However, a way of giving the user 100% control again might be to add a -noalias keyword to completely block packet aliasing. This would take one more bit from mode in IIJ-PPP, though. Besides, as an admin I'm not certain I would want the users to have that control. Eivind Eklund / perhaps@yes.no / http://maybe.yes.no/perhaps/ From owner-freebsd-hackers Tue Feb 4 10:52:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA04643 for hackers-outgoing; Tue, 4 Feb 1997 10:52:56 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id KAA04635 for ; Tue, 4 Feb 1997 10:52:49 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA12897; Tue, 4 Feb 1997 11:50:12 -0700 From: Terry Lambert Message-Id: <199702041850.LAA12897@phaeton.artisoft.com> Subject: Re: Mounting CD-ROM when data not on first track To: joerg_wunsch@uriah.heep.sax.de Date: Tue, 4 Feb 1997 11:50:12 -0700 (MST) Cc: freebsd-hackers@freebsd.org In-Reply-To: from "J Wunsch" at Feb 3, 97 09:30:55 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > You mean, like putting in partition recognition code in the kernel > > instead of putting it in the FS instead (like you are suggesting here)? > > No. These dreaded CD-ROM tracks have one thing different from normal > partitions: the filesystem code in it still references the disk by > absolute frame (block) numbers. Filesystems that live in partitions > do not do this, they describe the filesystem relative to the start of > the partition. This puts a nasty spin on things. On the other hand, supporting a logical-to-physical mapping layer that implemented bad144 would have similar issues. I think the device specific code could export the block relativity interface, while still enforcing range checking. We'd have to be able to access this to veto install on a partition which was below C 1024 but which contained a replacement block above C 1024. Ah, the vagries of PC manufacturer implementation of "standards" applies to ISO9660 as well, it seems. 8-(. > > > Sticky bit? Terry, you're riding your time-machine again, you're > > > currently some ten years back. > > > > If you will recall, I've requested the ability to force images totally > > into local cache on a per FS basis by attributing the FS as "nonlocal". > > Sorry, i misread your comment and thought you were referring to > something that does already exist. Heh... through no fault of my own, you might add... Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 10:55:38 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA04773 for hackers-outgoing; Tue, 4 Feb 1997 10:55:38 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id KAA04759 for ; Tue, 4 Feb 1997 10:55:34 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA12911; Tue, 4 Feb 1997 11:53:13 -0700 From: Terry Lambert Message-Id: <199702041853.LAA12911@phaeton.artisoft.com> Subject: Re: bisdn To: grog@lemis.de Date: Tue, 4 Feb 1997 11:53:13 -0700 (MST) Cc: terry@lambert.org, hackers@freebsd.org In-Reply-To: <199702030652.HAA22553@freebie.lemis.de> from "Greg Lehey" at Feb 3, 97 07:52:40 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >> Oh really? Do you get D channels? What do you do with them? > > > > Basic rate: 2B+D > > OK. Note the second question: what do you do with them? > > > US West: 2D+B > > Really? I find that hard to believe. I suppose the question is > doubly relevant here: What do you do with them? Heh. Nothing. We avoid buying them and complain bitterly about the lack of ISP Frame Relay support in the area, mostly. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 10:57:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA04891 for hackers-outgoing; Tue, 4 Feb 1997 10:57:05 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id KAA04878 for ; Tue, 4 Feb 1997 10:56:59 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA12924; Tue, 4 Feb 1997 11:53:48 -0700 From: Terry Lambert Message-Id: <199702041853.LAA12924@phaeton.artisoft.com> Subject: Re: bisdn To: michaelh@cet.co.jp (Michael Hancock) Date: Tue, 4 Feb 1997 11:53:48 -0700 (MST) Cc: grog@lemis.de, terry@lambert.org, hackers@freebsd.org In-Reply-To: from "Michael Hancock" at Feb 3, 97 06:09:46 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > Basic rate: 2B+D > > > > OK. Note the second question: what do you do with them? > > > > > US West: 2D+B > > > > Really? I find that hard to believe. I suppose the question is > > doubly relevant here: What do you do with them? > > I find this hard to believe too, 2D channels is wierd. The D-channel is > for out-of-band signaling. It's why you get 64K instead of 56K. See www.uswest.com. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 10:58:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA04982 for hackers-outgoing; Tue, 4 Feb 1997 10:58:09 -0800 (PST) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id KAA04972 for ; Tue, 4 Feb 1997 10:58:06 -0800 (PST) Received: from freebie.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0vrq3z-000QZlC; Tue, 4 Feb 97 19:57 MET Received: (grog@localhost) by freebie.lemis.de (8.8.4/8.6.12) id TAA15699; Tue, 4 Feb 1997 19:57:33 +0100 (MET) From: grog@lemis.de Message-Id: <199702041857.TAA15699@freebie.lemis.de> Subject: Re: bisdn In-Reply-To: <199702041853.LAA12911@phaeton.artisoft.com> from Terry Lambert at "Feb 4, 97 11:53:13 am" To: terry@lambert.org (Terry Lambert) Date: Tue, 4 Feb 1997 19:57:33 +0100 (MET) Cc: hackers@freebsd.org (FreeBSD Hackers) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Reply-to: grog@lemis.de (Greg Lehey) WWW-Home-Page: http://www.FreeBSD.org/~grog X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Terry Lambert writes: >>>> Oh really? Do you get D channels? What do you do with them? >>> >>> Basic rate: 2B+D >> >> OK. Note the second question: what do you do with them? >> >>> US West: 2D+B >> >> Really? I find that hard to believe. I suppose the question is >> doubly relevant here: What do you do with them? > > Heh. Nothing. We avoid buying them and complain bitterly about > the lack of ISP Frame Relay support in the area, mostly. Speak for yourself. Plenty of people in the USA use ISDN. And while you're at it, how about admitting (like other people do from time to time) that you screwed up? Greg From owner-freebsd-hackers Tue Feb 4 11:14:16 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA06143 for hackers-outgoing; Tue, 4 Feb 1997 11:14:16 -0800 (PST) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA06138 for ; Tue, 4 Feb 1997 11:14:13 -0800 (PST) Received: from freebie.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0vrqJm-000QZvC; Tue, 4 Feb 97 20:14 MET Received: (grog@localhost) by freebie.lemis.de (8.8.4/8.6.12) id TAA15750 for hackers@freebsd.org; Tue, 4 Feb 1997 19:59:44 +0100 (MET) From: grog@lemis.de Message-Id: <199702041859.TAA15750@freebie.lemis.de> Subject: Re: bisdn In-Reply-To: <199702041853.LAA12924@phaeton.artisoft.com> from Terry Lambert at "Feb 4, 97 11:53:48 am" To: terry@lambert.org (Terry Lambert) Date: Tue, 4 Feb 1997 19:59:18 +0100 (MET) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Reply-to: grog@lemis.de (Greg Lehey) WWW-Home-Page: http://www.FreeBSD.org/~grog X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Terry Lambert writes: >>>> Basic rate: 2B+D >>> >>> OK. Note the second question: what do you do with them? >>> >>>> US West: 2D+B >>> >>> Really? I find that hard to believe. I suppose the question is >>> doubly relevant here: What do you do with them? >> >> I find this hard to believe too, 2D channels is wierd. The D-channel is >> for out-of-band signaling. It's why you get 64K instead of 56K. > > See www.uswest.com. The whole page doesn't mention ISDN. Can you give a more specific URL? If they claim 2D+1B, you can be sure that it's a typo. Greg From owner-freebsd-hackers Tue Feb 4 11:21:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA06429 for hackers-outgoing; Tue, 4 Feb 1997 11:21:10 -0800 (PST) Received: from csd.cs.technion.ac.il (csd.cs.technion.ac.il [132.68.32.8]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA06421 for ; Tue, 4 Feb 1997 11:20:58 -0800 (PST) Received: from localhost (nadav@localhost) by csd.cs.technion.ac.il (8.6.11/8.6.10) with SMTP id VAA29914; Tue, 4 Feb 1997 21:09:42 +0200 X-Authentication-Warning: csd.cs.technion.ac.il: nadav owned process doing -bs Date: Tue, 4 Feb 1997 21:09:42 +0200 (IST) From: Nadav Eiron X-Sender: nadav@csd To: Wolfgang Helbig cc: garman@phs.k12.ar.us, hackers@freebsd.org Subject: Re: CMD640b flaw workaround In-Reply-To: <199702040835.JAA26420@amadeus.informatik.ba-stuttgart.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 4 Feb 1997, Wolfgang Helbig wrote: > Hi Jason, > > Very good! I think your patch for 2.1.5 should also be working for > 2.1.6.1 so Nadav might give it a try. > It is working for me for 2 days (and nights) now, with a hd and cd on > the primary channel and a hd on the secondary. The wd0-disk is my > root disk containing /etc, /var and swap and the wd2-disk contains > /usr. Building kernels and "make world" did not crash the system. > X-Window and Netscape did not crash the system, so I believe it is > pretty save. Maybe disklabeling does not work, but I cannot test > that one, since both disks are essential to me. > > During testing I experienced, either it works at once and for ever > or not at all, and luckily it never corrupted any data! > > Is there any one else (besides Jason, Nadav and me) with a CMD640b? > > Wolfgang > I tried installing the patches on my troubled 2.1.5R system, and it doesn't cure my problem. I think I should describe my problem once again, as it's not the classical CMD640 bug. I have a machine with a hard disk (Quantum FireBall) and a CD (Creative x4), both on the primary channel. The problem is that CD access is unreliable. It's most commonly seen when I try to serve a CD directly via apache. Under heavy load, some of the Apace processes will hang while accessing the CD like so: gatekeeper: {102} ps auxw | grep http | grep D apache 253 0.0 2.3 660 512 ?? D 8:49PM 0:00.08 /usr/local/apache/ssl.1.3_apache.1.1.1/httpsd -f /usr/local/apache apache 279 0.0 2.3 672 512 ?? D 8:50PM 0:00.06 /usr/local/apache/ssl.1.3_apache.1.1.1/httpsd -f /usr/local/apache apache 281 0.0 2.3 672 512 ?? D 8:51PM 0:00.06 /usr/local/apache/ssl.1.3_apache.1.1.1/httpsd -f /usr/local/apache until after some time the whole machine will hang. I don't have this problem when running with an ATAPI CD (also from Creative, but a newer model) on a machine that does not have the CMD640, but it may still be unrelated. There is nothing to indicate a problem on the console (or dmesg output). The machine will simply hang, and those Apache processes will never recover. As I said before, the patch didn't solve this problem. I asked once on -questions if anybody had similar experience, and got no replies. Anyone here knows what's going on? Thanks for the patch anyhow. I'm sure it will turn out to be useful someday. When I first installed FreeBSD I spent a month (!) trying to figure out why it always hangs, until I've heard of the CMD640 problem. It's comforting to know no new users will have to go through that again. Nadav From owner-freebsd-hackers Tue Feb 4 11:33:48 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA07043 for hackers-outgoing; Tue, 4 Feb 1997 11:33:48 -0800 (PST) Received: from darkstar (dialin2.anlw.anl.gov [141.221.252.102]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA07038 for ; Tue, 4 Feb 1997 11:33:42 -0800 (PST) Received: (from cmott@localhost) by darkstar (8.6.12/8.6.12) id MAA09041; Tue, 4 Feb 1997 12:33:17 -0700 Date: Tue, 4 Feb 1997 12:33:16 -0700 (MST) From: Charles Mott X-Sender: cmott@darkstar To: Eivind Eklund cc: Brian Somers , Ari Suutari , hackers@freebsd.org, brian@utell.co.uk Subject: Re: Single socket version of natd In-Reply-To: <3.0.32.19970204194456.00bbae30@dimaga.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > My concern is that I should be able to make all users on the LAN (all of > them have access to setting up a PPP connection) remember to enable > aliasing. If I had not wanted it in all cases, I'd just drop putting the > command in the config file. Nothing lost in my case, at least. > > However, a way of giving the user 100% control again might be to add a > -noalias keyword to completely block packet aliasing. This would take one > more bit from mode in IIJ-PPP, though. Besides, as an admin I'm not > certain I would want the users to have that control. > I agree that a -noalias keyword is a not a good idea. The way Eivind is doing things sounds good to me. The "out-of-the-box" software for home users will be simple to set up and have standard defaults that do not typically have to be changed, but there will also be a level of control that an admin wants. Charles Mott From owner-freebsd-hackers Tue Feb 4 11:53:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA08260 for hackers-outgoing; Tue, 4 Feb 1997 11:53:37 -0800 (PST) Received: from mole.mole.org (marmot.mole.org [204.216.57.191]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA08254 for ; Tue, 4 Feb 1997 11:53:33 -0800 (PST) Received: (from mail@localhost) by mole.mole.org (8.6.12/8.6.12) id TAA06309; Tue, 4 Feb 1997 19:53:20 GMT Received: from meerkat.mole.org(206.197.192.110) by mole.mole.org via smap (V1.3) id sma006305; Tue Feb 4 19:53:02 1997 Received: (from mrm@localhost) by meerkat.mole.org (8.6.11/8.6.9) id LAA29465; Tue, 4 Feb 1997 11:52:03 -0800 Date: Tue, 4 Feb 1997 11:52:03 -0800 From: "M.R.Murphy" Message-Id: <199702041952.LAA29465@meerkat.mole.org> To: terry@lambert.org Subject: Re: bisdn Cc: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > From owner-freebsd-hackers@freefall.freebsd.org Tue Feb 4 11:46:59 1997 > From: Terry Lambert > Subject: Re: bisdn > To: michaelh@cet.co.jp (Michael Hancock) > Date: Tue, 4 Feb 1997 11:53:48 -0700 (MST) > Cc: grog@lemis.de, terry@lambert.org, hackers@freebsd.org > > > > > Basic rate: 2B+D > > > > > > OK. Note the second question: what do you do with them? > > > > > > > US West: 2D+B > > > > > > Really? I find that hard to believe. I suppose the question is > > > doubly relevant here: What do you do with them? > > > > I find this hard to believe too, 2D channels is wierd. The D-channel is > > for out-of-band signaling. It's why you get 64K instead of 56K. > > See www.uswest.com. > >From http://www.uswest.com/atwork/interprise/isdn/isdn_htm/isdn_s2.html The architecture of Single Line Service can be expressed as 2B+D -- in other words, two B (or Bearer) channels plus one D (or Delta) channel. Where'd you get the reference to 2D+B? -- Mike Murphy mrm@Mole.ORG +1 619 598 5874 Better is the enemy of Good From owner-freebsd-hackers Tue Feb 4 11:57:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA08486 for hackers-outgoing; Tue, 4 Feb 1997 11:57:07 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA08476 for ; Tue, 4 Feb 1997 11:56:53 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id UAA12799; Tue, 4 Feb 1997 20:56:33 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id UAA28710; Tue, 4 Feb 1997 20:45:27 +0100 (MET) Message-ID: Date: Tue, 4 Feb 1997 20:45:27 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: Ilmar_Habibulin@p777.f691.n5020.z2.fidonet.org (Ilmar Habibulin) Cc: hackers@freebsd.org Subject: Re: Need some help or advice References: <32F6F8D2@gate.phantom.ru> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <32F6F8D2@gate.phantom.ru>; from Ilmar Habibulin on Feb 3, 1997 21:36:12 +0300 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Ilmar Habibulin wrote: > Where can i find information of kernel internals such as processes and > user credits, IPC, VOP_ stuff, v-nodes and its relations with i-nodes, the > most complete info on how does this thing works inside. > > I'll want to buy a book "4.4BSD design and implementation". Is it enough? I think that's at the very least a good start. We've also started to document kernel internal APIs, in section 9 of the manual. But it's still only sparsely populated. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-hackers Tue Feb 4 12:04:53 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA08849 for hackers-outgoing; Tue, 4 Feb 1997 12:04:53 -0800 (PST) Received: from mailhost2.BayNetworks.COM (ns1.BayNetworks.COM [134.177.3.20]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA08837 for ; Tue, 4 Feb 1997 12:04:47 -0800 (PST) Received: from ns1.BayNetworks.COM ([134.177.1.107]) by mailhost2.BayNetworks.COM (8.8.5/BNET-96/12/06-E) with ESMTP id MAA07673; Tue, 4 Feb 1997 12:01:57 -0800 (PST) for Received: from pobox.engeast.BayNetworks.COM (pobox.corpeast.baynetworks.com [192.32.151.199]) by ns1.BayNetworks.COM (8.8.3/BNET-97/01/07-I) with ESMTP id MAA07252; Tue, 4 Feb 1997 12:04:12 -0800 (PST) for Posted-Date: Tue, 4 Feb 1997 12:04:12 -0800 (PST) Received: from tuva.engeast.baynetworks.com (tuva [192.32.180.119]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-SVR4-S) with ESMTP id PAA25822; Tue, 4 Feb 1997 15:04:14 -0500 for Received: from tuva.engeast.baynetworks.com (localhost [127.0.0.1]) by tuva.engeast.baynetworks.com (8.7.5/8.7.3) with ESMTP id PAA05554 for ; Tue, 4 Feb 1997 15:04:13 -0500 (EST) Message-Id: <199702042004.PAA05554@tuva.engeast.baynetworks.com> X-Mailer: exmh version 1.6.9 8/22/96 To: freebsd-hackers@freebsd.org Subject: 2.1.6 -- AMD still broken? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Feb 1997 15:04:13 -0500 From: Robert Withrow Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk It seems like AMD/NFS is still broken in 2.1.6 in the same way in 2.1.5 and 2.1. There were patches available for 2.1 that I thought would make it into 2.1.5, and patches for 2.1.5 that I was sure would make it into 2.1.6. Alas, no. Does anyone have patches for NFS in 2.1.6 that make AMD direct mounts work? Thanks. -- Robert Withrow -- (+1 508 436 8256) BWithrow@BayNetworks.com From owner-freebsd-hackers Tue Feb 4 12:25:34 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA09946 for hackers-outgoing; Tue, 4 Feb 1997 12:25:34 -0800 (PST) Received: from jason.garman.net (pm106-00.dialip.mich.net [192.195.231.202]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA09935 for ; Tue, 4 Feb 1997 12:25:29 -0800 (PST) Received: (qmail 2801 invoked by uid 1000); 4 Feb 1997 20:25:25 -0000 Message-ID: Date: Tue, 4 Feb 1997 15:25:24 -0500 From: garman@jason.garman.net (Jason Garman) To: nadav@cs.technion.ac.il (Nadav Eiron) Cc: helbig@BA-Stuttgart.De (Wolfgang Helbig), hackers@freebsd.org Subject: Re: CMD640b flaw workaround References: <199702040835.JAA26420@amadeus.informatik.ba-stuttgart.de> X-Mailer: Mutt 0.58 Mime-Version: 1.0 Reply-To: garman@phs.k12.ar.us X-Phase-Of-Moon: The Moon is Waning Crescent (12% of Full) X-Operating-System: FreeBSD/i386 2.1.5-RELEASE In-Reply-To: ; from Nadav Eiron on Feb 4, 1997 21:09:42 +0200 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Nadav Eiron writes: > I tried installing the patches on my troubled 2.1.5R system, and it > doesn't cure my problem. I think I should describe my problem once again, > as it's not the classical CMD640 bug. I have a machine with a hard disk > (Quantum FireBall) and a CD (Creative x4), both on the primary channel. > The problem is that CD access is unreliable. It's most commonly seen when > I try to serve a CD directly via apache. Under heavy load, some of the > Apace processes will hang while accessing the CD like so: > That's weird. You're right, the patch won't fix this. I have a CD and hd on my first channel, and it works fine here... I know this isn't a really good `solution,' but how about switching the cd onto the second channel? Enjoy, -- Jason Garman http://www.nesc.k12.ar.us/~garman/ Student, Eleanor Roosevelt High School garman@phs.k12.ar.us From owner-freebsd-hackers Tue Feb 4 14:32:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA18794 for hackers-outgoing; Tue, 4 Feb 1997 14:32:54 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA18779 for ; Tue, 4 Feb 1997 14:32:47 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA21548; Tue, 4 Feb 1997 23:32:27 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id VAA29001; Tue, 4 Feb 1997 21:36:51 +0100 (MET) Message-ID: Date: Tue, 4 Feb 1997 21:36:51 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: jhay@zibbi.mikom.csir.co.za (John Hay) Cc: logue@engr.orst.edu (Steve Logue), stenn@whimsy.udel.edu, freebsd-hackers@freebsd.org Subject: Re: xntp3-5.89.2 & FreeBSD 2.2-GAMMA won't compile References: <32F7097D.41C67EA6@engr.orst.edu> <199702041034.MAA13094@zibbi.mikom.csir.co.za> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199702041034.MAA13094@zibbi.mikom.csir.co.za>; from John Hay on Feb 4, 1997 12:34:18 +0200 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As John Hay wrote: (xtnp problems) > I have fixed it in FreeBSD-current, but weren't sure if it should go into > 2.2. Any opinions anyone? > If somebody from the 2.2 release team give the go-ahead I would be > happy to put it in 2.2. Barring any objections from other partys in say, the next couple of days, go ahead. (Do you know how to do branch commits?) Please, see also PR # bin/2469. I think the designated solution to the problem was to introduce a LOG_NTP facility. Somebody needs to track this, or it will be forgotten. (I really need it, right now, i've hacked xntpd locally to log the annoying messages at LOG_DEBUG level.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-hackers Tue Feb 4 14:35:21 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA18968 for hackers-outgoing; Tue, 4 Feb 1997 14:35:21 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA18962 for ; Tue, 4 Feb 1997 14:35:18 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA21630; Tue, 4 Feb 1997 23:35:10 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id WAA29207; Tue, 4 Feb 1997 22:58:53 +0100 (MET) Message-ID: Date: Tue, 4 Feb 1997 22:58:53 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.org Cc: jlk@pavilion.co.uk (Josef Karthauser) Subject: Re: probing scsi bus after boot? References: <199611011028.FAA07666@hda.hda.com> <199702041814.SAA00858@deputy.pavilion.co.uk> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199702041814.SAA00858@deputy.pavilion.co.uk>; from Josef Karthauser on Feb 4, 1997 18:14:48 +0000 Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Josef Karthauser wrote: > Either I use rmt, but I've not found a way of rmt'ing as root on the > remote site (please someone let me out of my misery.) ~root/.rhost It would be neat to see ssh support for this, though. > # scsi -f /dev/rst0 -p > scsi: unable to open device /dev/rst0: Device not configured Chicken-and-egg problem. Don't use -p btw., use -r. But still, you need at least one device that has been successfully probed on your SCSI bus before, in order to hook the `rescan' ioctl into the kernel (any device fits, so you could pick /dev/rsd0.ctl). NB: this used to hang your machine with various SCSI adapters in the past, but recent 2.2 (and -current) systems seem to work well with it. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-hackers Tue Feb 4 14:44:34 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA19380 for hackers-outgoing; Tue, 4 Feb 1997 14:44:34 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA19375 for ; Tue, 4 Feb 1997 14:44:31 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id PAA13265; Tue, 4 Feb 1997 15:41:33 -0700 From: Terry Lambert Message-Id: <199702042241.PAA13265@phaeton.artisoft.com> Subject: Re: kernel malloc options To: kish@browncow.com (Bill Kish) Date: Tue, 4 Feb 1997 15:41:33 -0700 (MST) Cc: hackers@freefall.freebsd.org In-Reply-To: <199702031942.OAA18041@browncow.com> from "Bill Kish" at Feb 3, 97 02:42:02 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Currently, I'm malloc()ing these structures as needed using the > following parameters: > > malloc((u_long)sizeof(*conxn), M_TEMP, M_NOWAIT) > > This appears to work fine in my initial lightly loaded tests, > however, I'm concerned about what will happen when the system is under > heavy load. I have the following questions and would appreciate any > advice offered! > > 1) Is malloc() a reasonable allocator for small highly dynamic > objects? No. Establish a freelist. > 2) Is M_TEMP a good choice? Does it make a difference? Not if there is a high turnover, or sporadic growth/decline in usage over a short time. You should establish a new pool ID; probably, we should establish a mechanism for allocating pools, and preallocate the ones with mainifest constants to match the constants, and then let users deal with them from there (ie: you would not be guaranteed initialization order, so you would have to code your stuff to use an integer instead of a constant, and eat whatever overhead that caused). > 3) Are there any config options that affect the amount of pinned > kernel memory available for malloc? The system will be doing > little else besides dealing with these packets... John or David would have to answer this... I believe, though, that the kernel address space is fixed. The amount of pinned memory would depend on the physical backing stor, and how much fragmentation exists at the time you ask (I think). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 14:55:03 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA19793 for hackers-outgoing; Tue, 4 Feb 1997 14:55:03 -0800 (PST) Received: from spoon.beta.com (root@[199.165.180.33]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA19785; Tue, 4 Feb 1997 14:54:59 -0800 (PST) Received: from spoon.beta.com (mcgovern@localhost [127.0.0.1]) by spoon.beta.com (8.8.4/8.6.9) with ESMTP id RAA02641; Tue, 4 Feb 1997 17:54:56 -0500 (EST) Message-Id: <199702042254.RAA02641@spoon.beta.com> To: questions@freebsd.org, hackers@freebsd.org Subject: Cyclades driver causes kernel panic Date: Tue, 04 Feb 1997 17:54:56 -0500 From: "Brian J. McGovern" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Well, its back, and I'm pulling my hair out of my head. It appears that on HPs, Dells, Eclipse machines, and a handful of others, the Cyclades driver causes a RAM parity error, causing the kernel to panic, and the system to reboot. I've sen this on at least a half dozen systems. And I've found about two that work. Has anyone seen this? Worked around it? I'm kind of at a crunch to get some multi-port serial cards working, and I could use all the help I can get. The machines are HP 586/133s and 166s. The dells are Dell 586/100s. The only machine I've see it work in for any length of time was a AMD clone 586/100. I don't think its a RAM parity error, simply because a half-dozen machines with EDO Ram can't all be wrong (or i'd see it elsewhere), and the DOS drivers tend to get the card up and working on multiple ports with no problems. Any suggestions? -Brian From owner-freebsd-hackers Tue Feb 4 15:04:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA20383 for hackers-outgoing; Tue, 4 Feb 1997 15:04:05 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA20349 for ; Tue, 4 Feb 1997 15:04:00 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id QAA13316; Tue, 4 Feb 1997 16:01:22 -0700 From: Terry Lambert Message-Id: <199702042301.QAA13316@phaeton.artisoft.com> Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta To: jmacd@CS.Berkeley.EDU (Josh MacDonald) Date: Tue, 4 Feb 1997 16:01:22 -0700 (MST) Cc: hackers@FreeBSD.ORG In-Reply-To: <199702040559.VAA08584@paris.CS.Berkeley.EDU> from "Josh MacDonald" at Feb 3, 97 09:59:35 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Clearly, the template class definition > > > > template > > class list ... { > > ... > > }; > > > > is not in scope. The header files you have included are apparently > > not sufficient. > > > > Perhaps you meant "List" instead of "list"??? > > Clearly, you have no idea what you're talking about. You should be a > bit more careful with your use of "clearly", it makes me wonder how > much of the rest of your mail to this list (which I rarely understand) > is correct. If the linker can not resolve the symbol, the symbol: A) Is not in scope B) Is not there, period C) Was not created in scope because you want the linker to "magically" share template implementation between class specific template instantiations. If you want the linker to "magically" share template implementations by providing cast stub headers and passing around void pointers so you don't have to actually reimplemnt the code... Well, it's won't do it. This is a new thing, and the a.out linker is not being actively maintained. As people pointed out in other responses, you can download John Polstra's "ELFKit" and use it instead of the FreeBSD default a.out g++ compiler and linker, and it will then work. If you want it to work with the current code, you need to define the template class in scope before you use it so that the functions are actually statically instantiated in the module where they are declaratively referenced. This is because historically, the template implementations have not been shared betwen class types. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 15:11:02 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA21318 for hackers-outgoing; Tue, 4 Feb 1997 15:11:02 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA21296 for ; Tue, 4 Feb 1997 15:10:54 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id QAA13339; Tue, 4 Feb 1997 16:06:53 -0700 From: Terry Lambert Message-Id: <199702042306.QAA13339@phaeton.artisoft.com> Subject: Re: NIS/uids To: branson.matheson@ferginc.com Date: Tue, 4 Feb 1997 16:06:53 -0700 (MST) Cc: W.Belgers@nl.cis.philips.com, freebsd-hackers@FreeBSD.org In-Reply-To: from "Branson Matheson" at Feb 4, 97 09:42:54 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > The problem now is that the security on my system has become dependant > > on that of the NIS server. If I am root on the NIS server I can change > > the uid of "user" into any user including root and make use of it on my > > system. Even if you can only become root using su you can easily first > > become a user in wheel and then root. > > That is a fact. because you are using that information from an NIS > server, you will _always_ have a security risk from that server. > Anyone that has root on that server can modify a yp'd entry on that > server, change the uid to 0 and become root on your system very > easily. So by definition, you _have_ to trust your yp servers. Yes. You have established a trust relationship within a "secure zone", and you have *defined* the NIS client and server to both be inside this zone. However... It makes sense to me that "sensitive" user and group ID's perhaps should not be honored when they come in via NFS... ie: user root or bin, etc., or group bin or kmem. The problem is that there is no tag you can specify to indicate to NFS which user or group ID's are "sensitive", and which are not. This would provide NIS honoring protection similar to NFS not honoring "root" from a "semi-trusted" host. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 15:30:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA23884 for hackers-outgoing; Tue, 4 Feb 1997 15:30:39 -0800 (PST) Received: from po2.glue.umd.edu (root@po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA23879 for ; Tue, 4 Feb 1997 15:30:34 -0800 (PST) Received: from baud.eng.umd.edu (baud.eng.umd.edu [129.2.98.183]) by po2.glue.umd.edu (8.8.5/8.7.3) with ESMTP id SAA05531; Tue, 4 Feb 1997 18:30:22 -0500 (EST) Received: from localhost (chuckr@localhost) by baud.eng.umd.edu (8.8.5/8.7.3) with SMTP id SAA01181; Tue, 4 Feb 1997 18:30:21 -0500 (EST) X-Authentication-Warning: baud.eng.umd.edu: chuckr owned process doing -bs Date: Tue, 4 Feb 1997 18:30:21 -0500 (EST) From: Chuck Robey X-Sender: chuckr@baud.eng.umd.edu To: Terry Lambert cc: Josh MacDonald , hackers@FreeBSD.ORG Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta In-Reply-To: <199702042301.QAA13316@phaeton.artisoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 4 Feb 1997, Terry Lambert wrote: > > > Clearly, the template class definition > > > > > > template > > > class list ... { > > > ... > > > }; > > > > > > is not in scope. The header files you have included are apparently > > > not sufficient. > > > > > > Perhaps you meant "List" instead of "list"??? > > > > Clearly, you have no idea what you're talking about. You should be a > > bit more careful with your use of "clearly", it makes me wonder how > > much of the rest of your mail to this list (which I rarely understand) > > is correct. > > If the linker can not resolve the symbol, the symbol: > > A) Is not in scope > B) Is not there, period > C) Was not created in scope because you want the linker to > "magically" share template implementation between class > specific template instantiations. I'm not sure this is apropos, but maybe... while I was porting octave-2.0.1, I had a lot of trouble with template functions that were compiled -fno-external-templates. Seems like the virtual tables were being created as local symbols only, so no other functions compiled in other files could see the tables. I ended up having to remove the -fno-external-templates from every file that used the tables, so they'd instantiate their own virtual tables. Made the code size larger, but I couldn't find a way to fix it. Neither could JW Eaton, Octave's author, who worked with me for a while. The problem has been papered over, but not fixed. Is this possibly something like you're discussing above? ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+----------------------------------------------- From owner-freebsd-hackers Tue Feb 4 15:30:49 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA23910 for hackers-outgoing; Tue, 4 Feb 1997 15:30:49 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA23902 for ; Tue, 4 Feb 1997 15:30:47 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id QAA13402; Tue, 4 Feb 1997 16:28:23 -0700 From: Terry Lambert Message-Id: <199702042328.QAA13402@phaeton.artisoft.com> Subject: Re: bisdn To: grog@lemis.de Date: Tue, 4 Feb 1997 16:28:23 -0700 (MST) Cc: terry@lambert.org, hackers@freebsd.org In-Reply-To: <199702041857.TAA15699@freebie.lemis.de> from "Greg Lehey" at Feb 4, 97 07:57:33 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >>>> Oh really? Do you get D channels? What do you do with them? > >>> > >>> Basic rate: 2B+D > >> > >> OK. Note the second question: what do you do with them? > >> > >>> US West: 2D+B > >> > >> Really? I find that hard to believe. I suppose the question is > >> doubly relevant here: What do you do with them? > > > > Heh. Nothing. We avoid buying them and complain bitterly about > > the lack of ISP Frame Relay support in the area, mostly. > > Speak for yourself. Plenty of people in the USA use ISDN. And while > you're at it, how about admitting (like other people do from time to > time) that you screwed up? Please see the list archives. I've probably admitted to screwing up, when I do it, more than any other poster to these lists. I simply don't have an emotional investment in always being right. You'll also notice that I don't take attacks on instances of my code as attacks on me personally (though style issues, which I believe are irrelevant, and the values of the ideas which the code embodies, are different matters -- I don't care how an idea is implemented, as long as it's The Right Idea being implemented). Now please read my followup refuting the ability to actually *get* ISDN, as opposed to getting a *description* of ISDN from a company that doesn't actually *provide* ISDN. Feel free to contact US West; I live in the 795 prefix, which is not attached to the single 5ESS in Tucson. If you can get me real ISDN, I will be happy to buy it from them. But you can't, because I can't, because they can't. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 15:35:48 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA24192 for hackers-outgoing; Tue, 4 Feb 1997 15:35:48 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA24185 for ; Tue, 4 Feb 1997 15:35:45 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id QAA13439; Tue, 4 Feb 1997 16:32:03 -0700 From: Terry Lambert Message-Id: <199702042332.QAA13439@phaeton.artisoft.com> Subject: Re: bisdn To: mrm@Mole.ORG (M.R.Murphy) Date: Tue, 4 Feb 1997 16:32:03 -0700 (MST) Cc: terry@lambert.org, hackers@freebsd.org In-Reply-To: <199702041952.LAA29465@meerkat.mole.org> from "M.R.Murphy" at Feb 4, 97 11:52:03 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > See www.uswest.com. > > From http://www.uswest.com/atwork/interprise/isdn/isdn_htm/isdn_s2.html > > The architecture of Single Line Service can be expressed as 2B+D > -- in other words, two B (or Bearer) channels plus one D > (or Delta) channel. > > Where'd you get the reference to 2D+B? >From the US West sales representative in Tucson, Arizona, who stated I could not get 2B+D. Look, this is not a discussion I want to have on this list. US West Interact Service, where they are available, implement their Internet connections using FreeBSD systems. Suffice it to say that they sell real 2B+D in a few places, but they don't sell it in any exchange I've ever had a phone. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 15:56:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA25233 for hackers-outgoing; Tue, 4 Feb 1997 15:56:51 -0800 (PST) Received: from spoon.beta.com (root@[199.165.180.33]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA25224 for ; Tue, 4 Feb 1997 15:56:47 -0800 (PST) Received: from spoon.beta.com (mcgovern@localhost [127.0.0.1]) by spoon.beta.com (8.8.4/8.6.9) with ESMTP id SAA02856; Tue, 4 Feb 1997 18:56:08 -0500 (EST) Message-Id: <199702042356.SAA02856@spoon.beta.com> To: "John S. Dyson" cc: hackers@freebsd.org, questions@freebsd.orgb Subject: Re: Cyclades driver causes kernel panic (more info) In-reply-to: Your message of "Tue, 04 Feb 1997 18:50:37 EST." <199702042350.SAA06377@dyson.iquest.net> Date: Tue, 04 Feb 1997 18:56:08 -0500 From: "Brian J. McGovern" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Just a couple of FYI's I think I may have left out. Firstly, these are the PCI version cards. Secondly, it appears (having thought more on the drive home) that the delimitation between 'works' and 'doesnt work' seems to be around the 16MB barrier (for instance, my home pentium, were it does work, is a P100 that reports (between base and XMS) just _UNDER 16MB_. I'm assuming its due to the fact that its remapping part of it for other uses. All the machines that don't seem to work have more (usually 32+MB), or report 16MB on startup (doesn't seem to remap memory). Then again, this could be hogwash. -Brian From owner-freebsd-hackers Tue Feb 4 16:07:59 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA25901 for hackers-outgoing; Tue, 4 Feb 1997 16:07:59 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id QAA25882; Tue, 4 Feb 1997 16:07:55 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id RAA13528; Tue, 4 Feb 1997 17:05:28 -0700 From: Terry Lambert Message-Id: <199702050005.RAA13528@phaeton.artisoft.com> Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta To: chat@freebsd.org Date: Tue, 4 Feb 1997 17:05:28 -0700 (MST) Cc: jmacd@CS.Berkeley.EDU, hackers@freebsd.org In-Reply-To: <199702041516.KAA08583@chai.plexuscom.com> from "Bakul Shah" at Feb 4, 97 10:16:25 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Since Terry responded to something I had posted, I feel obliged to > respond. > > His use of `clearly' made his erroneous response a bit amusing so I > didn't mind it at all! Terry made a mistake. Big deal. We all do > (like my mixing up his response with someone else's). Urg. As always, if it can be proven to my satisfaction that I have actually made a mistake, I will post a retraction; now you have me wondering, since you are generally reliable as a sanity-check... 8-(. Are you saying that there is a condition in which the linker will not be able to find a symbol that is really there? I was under the impression that if the template declaration was in scope, the function implementation would be instanced in scope: "C++ Primer Plus, Second Edition" Stephan Prata _Waite Group Press_ ISBN 1-878739-74-3 Pg. 580 Templates provide _parameterized types_, that is, the capability of passing a type name as an argument to an algorithm for building a class or a function. By feeding the type name _int_ into a queue template, for example, you can get the compiler to construct a queue class for queueing _int_s. Note: ..."get _the compiler_ to construct a queue class"... Pg. 581 When a template is invoked, _Type_ will be replaced with a specific type value, such as _int_ or _String_. I was under the impression that "invocation" was not possible at runtime. If it were possible (it is, in theory, if you pass around void instances of the object and explicity invoke the copy constructors, etc., of the base type), it would require a working RTTI implementation, IMO, as well as the cooperation of the linker, aw well as compiler cooperation in treating a template definition as a two pass declaration, since RTTI only works for classes with pure virtual functions. The compiler would have to implictly provide it's own abstract interface type. Pg. 582 Because the templates aren't functions, they can't be compiled seperately. Templates have to be used in conjunction with requets for particular instantiations of templates. The simplest way to make this work is to place all of the template information in a header file and to include the header file in the file that will use the templates. Which would, of course, cause the template definition to be in scope at the time the instantiation occurs, causing (in the base case) an _actualization_ (also Pg. 582) of the template to be created in scope at compile time. Now unless the compiler is performing some form of "Type" magic, where it converts references to pointers and provides a stub class for you, and casts to void for a singe instantiation of a given template class, I don't think I've made a mistake. If it is, tell me, and I will admit the mistake. Then I will point out that this probably requires the cooperation of the linker, and that the FreeBSD a.out linker is not being (very) actively maintained... and, as was pointed out, it works with John Polstra's "ELFKit"... consider upgrading. Otherwise, it's unreasonable to expect the "magic" to work elsewhere, so it's poor style, no matter how you cut it. > The bad news is that it segfaults on even simple Verilog > module definitions. So for now this mini project has been ^Z'ed > (put on hold). Thanks to all the people who responded with helpful > hints (even if wrong:-). I have been implementing COM and DCOM objects using pure abstract virtual base classes for interface definitions, using the FreeBSD g++ compiler in -current. If you could give a code fragment which triggers the error, I might be able to help out. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 16:22:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA26997 for hackers-outgoing; Tue, 4 Feb 1997 16:22:09 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id QAA26989 for ; Tue, 4 Feb 1997 16:22:05 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id RAA13562; Tue, 4 Feb 1997 17:19:10 -0700 From: Terry Lambert Message-Id: <199702050019.RAA13562@phaeton.artisoft.com> Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta To: chuckr@glue.umd.edu (Chuck Robey) Date: Tue, 4 Feb 1997 17:19:09 -0700 (MST) Cc: terry@lambert.org, jmacd@CS.Berkeley.EDU, hackers@freebsd.org In-Reply-To: from "Chuck Robey" at Feb 4, 97 06:30:21 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I'm not sure this is apropos, but maybe... while I was porting > octave-2.0.1, I had a lot of trouble with template functions that were > compiled -fno-external-templates. Seems like the virtual tables were > being created as local symbols only, so no other functions compiled in > other files could see the tables. I ended up having to remove the > -fno-external-templates from every file that used the tables, so they'd > instantiate their own virtual tables. Made the code size larger, but I > couldn't find a way to fix it. Neither could JW Eaton, Octave's author, > who worked with me for a while. > > The problem has been papered over, but not fixed. Is this possibly > something like you're discussing above? I thought so; however, Bakul's recent post has me doubting my own sanity. I have replied to him, siting references, in case the g++ implementation does things differently. If it does, I'll be happy to admit my error. If it doesn't, I'll still believe it's "Pilot Error" causing the problem. I'm pretty sure that external templates *can't* work as anything other than code/class reinstantiations (to avoid static redeclaration, like you describe). I'm also pretty sure the a.out linker can't handle agregating multiple instnatiations into a single interface. ELF could, though, because it could establish an identity tag for the ELF segment based on the class derivation, and link only the first segment with the tag into the resulting executable, throwing all the others away. Whether ELF actually *does* this is another matter, since it would mean you effecitevly compile one source file into several object files which you place in a single ELF file... then link it. The problem being discussed *seems* to me to be a case of where they want only a single code instance for all template member functions, regardless of the derived type. In theory you can do this using an RTTI implementation, but I'll be damned if anyone has built such a thing yet (they'ed need the RTTI first, for starters). Also, for certain, this would require some method of identifier definition agregation, which I'm not sure it's even possible to do without segment attribution. Maybe you could discard duplicate symbols, but I'm pretty sure the a.out linker is too stupid to be able to discard *pieces* of object modules, since the addresses are relative, and I don't believe the .o files build a proper internal symbol dependency graph. The short version is "you can't get there from here". 8-(. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 16:25:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA27277 for hackers-outgoing; Tue, 4 Feb 1997 16:25:04 -0800 (PST) Received: from louie.udel.edu (louie.udel.edu [128.175.1.3]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id QAA27260 for ; Tue, 4 Feb 1997 16:24:55 -0800 (PST) Received: from snow-white.ee.udel.edu by louie.udel.edu id aa00375; 4 Feb 97 19:05 EST Received: from louie.udel.edu by snow-white.ee.udel.edu id aa23407; 4 Feb 97 19:05 EST To: Joerg Wunsch cc: John Hay , Steve Logue , freebsd-hackers@freebsd.org Subject: Re: xntp3-5.89.2 & FreeBSD 2.2-GAMMA won't compile In-reply-to: Your message of "Tue, 04 Feb 1997 21:36:51 +0100." Date: Tue, 04 Feb 1997 19:01:59 -0500 From: stenn@whimsy.udel.edu Message-ID: <9702041901.aa26048@whimsy.udel.edu> Source-Info: From (or Sender) name not authenticated. Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk It looks like I'll need to add this patch to the sys/timex.h file in the xntpd distribution: --- timex.h- Sat Jul 15 04:06:10 1995 +++ timex.h Sun Feb 2 02:56:21 1997 @@ -284,6 +284,17 @@ }; #ifdef __FreeBSD__ +/* + * sysctl identifiers underneath kern.ntp_pll + */ +#define NTP_PLL_GETTIME 1 /* used by ntp_gettime() */ +#define NTP_PLL_MAXID 2 /* number of valid ids */ + +#define NTP_PLL_NAMES { \ + { 0, 0 }, \ + { "gettime", CTLTYPE_STRUCT }, \ + } + #ifndef KERNEL #include Is there anything else I should add to the xntpd distribution to make life easier for us? Harlan From owner-freebsd-hackers Tue Feb 4 16:41:32 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA29381 for hackers-outgoing; Tue, 4 Feb 1997 16:41:32 -0800 (PST) Received: from po2.glue.umd.edu (root@po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA29370 for ; Tue, 4 Feb 1997 16:41:27 -0800 (PST) Received: from baud.eng.umd.edu (baud.eng.umd.edu [129.2.98.183]) by po2.glue.umd.edu (8.8.5/8.7.3) with ESMTP id TAA07225; Tue, 4 Feb 1997 19:40:52 -0500 (EST) Received: from localhost (chuckr@localhost) by baud.eng.umd.edu (8.8.5/8.7.3) with SMTP id TAA00927; Tue, 4 Feb 1997 19:40:51 -0500 (EST) X-Authentication-Warning: baud.eng.umd.edu: chuckr owned process doing -bs Date: Tue, 4 Feb 1997 19:40:51 -0500 (EST) From: Chuck Robey X-Sender: chuckr@baud.eng.umd.edu To: Terry Lambert cc: jmacd@CS.Berkeley.EDU, hackers@freebsd.org Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta In-Reply-To: <199702050019.RAA13562@phaeton.artisoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 4 Feb 1997, Terry Lambert wrote: > > I'm not sure this is apropos, but maybe... while I was porting > > octave-2.0.1, I had a lot of trouble with template functions that were > > compiled -fno-external-templates. Seems like the virtual tables were > > being created as local symbols only, so no other functions compiled in > > other files could see the tables. I ended up having to remove the > > -fno-external-templates from every file that used the tables, so they'd > > instantiate their own virtual tables. Made the code size larger, but I > > couldn't find a way to fix it. Neither could JW Eaton, Octave's author, > > who worked with me for a while. > > > > The problem has been papered over, but not fixed. Is this possibly > > something like you're discussing above? > > I thought so; however, Bakul's recent post has me doubting my own > sanity. I have replied to him, siting references, in case the g++ > implementation does things differently. If it does, I'll be happy > to admit my error. If it doesn't, I'll still believe it's "Pilot > Error" causing the problem. Terry, I'm not sure you're right. The virtual tables show up (using nm on the obj files) as "t" objects, not "T", meaning local text objects. The way I understand from JW Eaton, under Linux (where he wrote it natively) the symbols in the obj files for these virtual tables instatiated for templates are global, not local. There is one of these tables made for each template type, correctly, but they're coming up local. This seems to be to point to an error source in the compiler, not the linking process. FWIW, the symbols make it into the library, but as local symbols, not global. Am I confused about this? > I'm pretty sure that external templates *can't* work as anything > other than code/class reinstantiations (to avoid static redeclaration, > like you describe). I'm also pretty sure the a.out linker can't handle > agregating multiple instnatiations into a single interface. ELF > could, though, because it could establish an identity tag for the > ELF segment based on the class derivation, and link only the first > segment with the tag into the resulting executable, throwing all > the others away. Whether ELF actually *does* this is another matter, > since it would mean you effecitevly compile one source file into > several object files which you place in a single ELF file... then > link it. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+----------------------------------------------- From owner-freebsd-hackers Tue Feb 4 16:43:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA29571 for hackers-outgoing; Tue, 4 Feb 1997 16:43:37 -0800 (PST) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA29509 for ; Tue, 4 Feb 1997 16:43:14 -0800 (PST) Received: from awfulhak.demon.co.uk (localhost.coverform.lan [127.0.0.1]) by awfulhak.demon.co.uk (8.8.4/8.7.3) with ESMTP id XAA27675; Tue, 4 Feb 1997 23:42:21 GMT Message-Id: <199702042342.XAA27675@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 cc: Terry Lambert , dk+@ua.net, shocking@mailbox.uq.edu.au, freebsd-hackers@freebsd.org Subject: Re: Setting MTU from userland ppp In-reply-to: Your message of "Thu, 30 Jan 1997 23:42:32 GMT." <199701302342.XAA20718@awfulhak.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Feb 1997 23:42:21 +0000 From: Brian Somers Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > set mtu 576 > > > > > > in /etc/ppp/ppp.conf > > > > > > works for me. > > > > > > This would specify your _tranimission_ size. To change it on the other > > > side, change the other end's setup. > > > > > > Don't use 256 as your MTU. (violates the RFC) > > > > Any chance of having the software *enforce* the RFC, then? > > I'll have a look at the RFC. It currently checks that 100 <= M[TR]U <= 2000. > As Warner said, nothing about the MTU in the rfc.... I don't think there's anything wrong with the way it is. -- Brian , Don't _EVER_ lose your sense of humour.... From owner-freebsd-hackers Tue Feb 4 17:02:50 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA03458 for hackers-outgoing; Tue, 4 Feb 1997 17:02:50 -0800 (PST) Received: from vdp01.vailsystems.com (root@vdp01.vailsystems.com [207.152.98.18]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA03439 for ; Tue, 4 Feb 1997 17:02:46 -0800 (PST) Received: from crocodile.vale.com (crocodile [204.117.217.147]) by vdp01.vailsystems.com (8.8.3/8.7.3) with ESMTP id TAA27004 for ; Tue, 4 Feb 1997 19:02:45 -0600 (CST) Received: from jaguar (jaguar.vale.com [204.117.217.146]) by crocodile.vale.com (8.8.3/8.7.3) with SMTP id TAA14910 for ; Tue, 4 Feb 1997 19:02:44 -0600 (CST) Message-ID: <32F7DC34.73D5@vailsys.com> Date: Tue, 04 Feb 1997 19:02:44 -0600 From: Hal Snyder Reply-To: hal@vailsys.com Organization: Vail Systems, Inc. X-Mailer: Mozilla 3.0 (WinNT; I) MIME-Version: 1.0 To: hackers@freebsd.org Subject: ibcs2: Alarm clock? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Running the COFF binary of Sybase System 10.x isql on a FreeBSD 2.1.5-R system with ibcs2 enabled causes the program to exit immediately (less than 1/4 second) with Alarm clock Any ideas? Is ibcs2 networking binary compatibility a pipedream? I can tell the program looks for a valid entry in $SYBASE/interfaces because it will report an invalid server if one is specified that's not in the interface file. I'd *really* like to run Sybase client apps from FreeBSD instead of toy OS's like NT and SCO. :( From owner-freebsd-hackers Tue Feb 4 17:12:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA05282 for hackers-outgoing; Tue, 4 Feb 1997 17:12:22 -0800 (PST) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA05259 for ; Tue, 4 Feb 1997 17:12:16 -0800 (PST) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by mail.cdsnet.net (8.8.4/8.7.3) with SMTP id RAA12153 for ; Tue, 4 Feb 1997 17:12:09 -0800 (PST) Date: Tue, 4 Feb 1997 17:12:08 -0800 (PST) From: Jaye Mathisen To: hackers@freebsd.org Subject: Something broke, and no idea where... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I use feedinfo to keep track of some log files. The box it was running on was a p120, using perl5.003, and 2.2 supped sometime in August. feedinfo ran fine. Taking the same script to my -current box, and with the same input, same version of perl, results in Illegal division by zero. For grins, I copied the old binaries and stuff to my box and ran them, and it doesn't work either. Copying my binaries from -current to the other box has no effect, it works fine. I realize this is not a very complete bug report, but if anybody has any suspicions, I'd be interested. There's no coredump, plenty of RAM, limits have been checked. The only difference between my box and the other besides OS version is that mine is a P6 vs a P5-120. From owner-freebsd-hackers Tue Feb 4 17:19:58 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA06615 for hackers-outgoing; Tue, 4 Feb 1997 17:19:58 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id RAA06558; Tue, 4 Feb 1997 17:19:45 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0vrw19-0000Ho-00; Tue, 4 Feb 1997 18:19:19 -0700 To: davidn@unique.usn.blaze.net.au (David Nugent) Subject: Re: conditionally including Cc: obrien@NUXI.com (David O'Brien), freebsd-ports@freebsd.org (FreeBSD ports list), hackers@freebsd.org In-reply-to: Your message of "Mon, 03 Feb 1997 14:27:17 +1100." <19970203142717.VR58445@usn.blaze.net.au> References: <19970203142717.VR58445@usn.blaze.net.au> <199701280143.RAA06503@freefall.freebsd.org> <19970202135048.PN07710@dragon.nuxi.com> Date: Tue, 04 Feb 1997 18:19:19 -0700 From: Warner Losh Message-Id: Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <19970203142717.VR58445@usn.blaze.net.au> David Nugent writes: : > "#if (defined(__unix__) || defined(unix))" was the best way to #if (defined(unix) || defined(__unix__)) && !defined(USG) #include #endif was how the discussion ended (at least in private mail), since USG was defined on SYS V and SYS III systems *AND* usually you want to tell if you are on a modern BSD system, so it doesn't hurt to exclude some SYS V systems. : I said exactly this some weeks back and was told I was wrong, : contrary to my own experience of many years working with : sysv r3's. Oh well. :-) That's true. I think I (mistakenly) told you that. : svr4 apparently does have it, but not sysv before that. Most : if not all of those do predefine unix or __unix__. sysvr4 does have it, but nothing earlier. Most V7 and later systems define unix or __unix__. Just my two cents (a little late) to the discussion. Warner From owner-freebsd-hackers Tue Feb 4 17:20:50 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA06843 for hackers-outgoing; Tue, 4 Feb 1997 17:20:50 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id RAA06771; Tue, 4 Feb 1997 17:20:34 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0vrw2G-0000I7-00; Tue, 4 Feb 1997 18:20:28 -0700 To: obrien@NUXI.com (David O'Brien) Subject: Re: conditionally including Cc: freebsd-ports@freebsd.org (FreeBSD ports list), hackers@freebsd.org In-reply-to: Your message of "Sun, 02 Feb 1997 13:50:48 PST." <19970202135048.PN07710@dragon.nuxi.com> References: <19970202135048.PN07710@dragon.nuxi.com> <199701280143.RAA06503@freefall.freebsd.org> Date: Tue, 04 Feb 1997 18:20:28 -0700 From: Warner Losh Message-Id: Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <19970202135048.PN07710@dragon.nuxi.com> David O'Brien writes: : to get a new cpp symbol added (like __44bsd__ or something). This is a bad idea, since it has lost a lot of its potential meaning with so many 44bsd derived systems that pick and chose between 4.4 and 4.4 Lite 2. Warner From owner-freebsd-hackers Tue Feb 4 17:23:49 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA07224 for hackers-outgoing; Tue, 4 Feb 1997 17:23:49 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA07214 for ; Tue, 4 Feb 1997 17:23:45 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id LAA18295; Wed, 5 Feb 1997 11:48:39 +1030 (CST) From: Michael Smith Message-Id: <199702050118.LAA18295@genesis.atrad.adelaide.edu.au> Subject: Re: Cyclades driver causes kernel panic (more info) In-Reply-To: <199702042356.SAA02856@spoon.beta.com> from "Brian J. McGovern" at "Feb 4, 97 06:56:08 pm" To: mcgovern@spoon.beta.com (Brian J. McGovern) Date: Wed, 5 Feb 1997 11:48:39 +1030 (CST) Cc: toor@dyson.iquest.net, hackers@freebsd.org, questions@freebsd.orgb X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Brian J. McGovern stands accused of saying: > Just a couple of FYI's I think I may have left out. Firstly, these are the PCI > version cards. Secondly, it appears (having thought more on the drive > home) that the delimitation between 'works' and 'doesnt work' seems to be > around the 16MB barrier (for instance, my home pentium, were it does work, > is a P100 that reports (between base and XMS) just _UNDER 16MB_. I'm assuming > its due to the fact that its remapping part of it for other uses. All > the machines that don't seem to work have more (usually 32+MB), or report > 16MB on startup (doesn't seem to remap memory). Then again, this could be > hogwash. There was some chatter about this a while back. Where do you have the memory aperture for the cards mapped? Also make sure you have all the 'shadow' and 'cacheable' stuff turned off for the memory region(s) where you have the cards mapped. I also seem to recall a commit recently to do with the PCI Cyclades, but I can't find it in the logs, so perhaps my brain is failing 8( > -Brian -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[ From owner-freebsd-hackers Tue Feb 4 17:30:38 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA08114 for hackers-outgoing; Tue, 4 Feb 1997 17:30:38 -0800 (PST) Received: from logues.rhn.orst.edu (logues.RHN.ORST.EDU [128.193.139.116]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA08105 for ; Tue, 4 Feb 1997 17:30:35 -0800 (PST) Received: from logues.rhn.orst.edu (localhost [127.0.0.1]) by logues.rhn.orst.edu (8.8.4/8.8.4) with SMTP id RAA06078; Tue, 4 Feb 1997 17:30:18 -0800 (PST) Message-ID: <32F7E2AA.59E2B600@engr.orst.edu> Date: Tue, 04 Feb 1997 17:30:18 -0800 From: Steve Logue X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2-970201-GAMMA0 i386) MIME-Version: 1.0 To: Joerg Wunsch CC: John Hay , stenn@whimsy.udel.edu, freebsd-hackers@freebsd.org Subject: Re: xntp3-5.89.2 & FreeBSD 2.2-GAMMA won't compile References: <32F7097D.41C67EA6@engr.orst.edu> <199702041034.MAA13094@zibbi.mikom.csir.co.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk J Wunsch wrote: > > As John Hay wrote: > > (xtnp problems) > > > I have fixed it in FreeBSD-current, but weren't sure if it should go into > > 2.2. Any opinions anyone? > > > If somebody from the 2.2 release team give the go-ahead I would be > > happy to put it in 2.2. > > Barring any objections from other partys in say, the next couple of > days, go ahead. (Do you know how to do branch commits?) > > Please, see also PR # bin/2469. I think the designated solution to > the problem was to introduce a LOG_NTP facility. Somebody needs to > track this, or it will be forgotten. (I really need it, right now, > i've hacked xntpd locally to log the annoying messages at LOG_DEBUG > level.) > What about all the xntpd 3.4e code in the src of FreeBSD - that needs to be replace while we're at it? Thanks -STEVEl > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) From owner-freebsd-hackers Tue Feb 4 17:30:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA08161 for hackers-outgoing; Tue, 4 Feb 1997 17:30:51 -0800 (PST) Received: from spooky.rwwa.com (rwwa.com [198.115.177.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA08141 for ; Tue, 4 Feb 1997 17:30:44 -0800 (PST) Received: from spooky.rwwa.com (localhost.rwwa.com [127.0.0.1]) by spooky.rwwa.com (8.7.5/8.7.3) with ESMTP id UAA11415 for ; Tue, 4 Feb 1997 20:30:14 -0500 (EST) Message-Id: <199702050130.UAA11415@spooky.rwwa.com> X-Mailer: exmh version 1.6.9 8/22/96 To: freebsd-hackers@FreeBSD.org Subject: Re: 2.1.6 -- AMD still broken? In-reply-to: Your message of "Tue, 04 Feb 1997 15:04:13 EST." <199702042004.PAA05554@tuva.engeast.baynetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Feb 1997 20:30:14 -0500 From: Robert Withrow Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk bwithrow@BayNetworks.COM said: > Does anyone have patches for NFS in 2.1.6 that make AMD direct mounts > work? Actually, I checked the CVS repository and discovered that the 2.1.6 sources are identical to the 2.1.5 sources (for the ones that get patched) so the 2.1.5 patches work on 2.1.6. Will 2.2 be fixed in this regard? If it isn't and it is still possible to get it fixed, could we please? This is very annoying here because we have to make everone patch and re-build for every upgrade/install. ----------------------------------------------------------------------------- Robert Withrow, Tel: +1 617 592 8935, Net: witr@rwwa.COM From owner-freebsd-hackers Tue Feb 4 17:37:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA08856 for hackers-outgoing; Tue, 4 Feb 1997 17:37:51 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id RAA08850 for ; Tue, 4 Feb 1997 17:37:48 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id SAA13752; Tue, 4 Feb 1997 18:34:51 -0700 From: Terry Lambert Message-Id: <199702050134.SAA13752@phaeton.artisoft.com> Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta To: chuckr@glue.umd.edu (Chuck Robey) Date: Tue, 4 Feb 1997 18:34:51 -0700 (MST) Cc: terry@lambert.org, jmacd@CS.Berkeley.EDU, hackers@freebsd.org In-Reply-To: from "Chuck Robey" at Feb 4, 97 07:40:51 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Terry, I'm not sure you're right. The virtual tables show up (using nm on > the obj files) as "t" objects, not "T", meaning local text objects. The > way I understand from JW Eaton, under Linux (where he wrote it natively) > the symbols in the obj files for these virtual tables instatiated for > templates are global, not local. There is one of these tables made for > each template type, correctly, but they're coming up local. This seems to > be to point to an error source in the compiler, not the linking process. > > FWIW, the symbols make it into the library, but as local symbols, not > global. Am I confused about this? Well... you are, or I am. 8-). Riddle me this: if the compiler makes a 't' reference to a real 'T' somewhere... how can it generate the real 'T'? It can't just pick one of the files at random an put it there. I might be compiling incrementally. EXAMPLE: Say I have TFifoQ.h: template struct FifoQueueElement { friend class FifoQueue; private: const Type *m_pItem; FifoQueueElement *m_pNext; }; template class FifoQueue { private: FifoQueueElement *m_head; FifoQueueElement *m_tail; public: void Insert( const Type *pItem); Queue() { head = tail = NULL; } }; template void FifoQueue::Insert( const Type *pItem) { FifoQueueElement *pQE = new FifoQueueElement; pQE->m_pItem = pItem; pQE->m_pNext = NULL; if( m_tail == NULL) m_head = pQE; else m_tail->pNext = pQE; m_tail = pQE; } and I have foo.cc: #include "TFifoQ.h" // instantiate global int queue using template... Queue foointqueue; ... stuff ... and I have fee.cc: #include "TFifoQ.h" // instantiate global int queue using template... Queue feeintqueue; ... stuff ... ...do you expect the code to implement the Insert method for a FifoQueue of int to go into foo.o or fee.o? Here's what I expect: a.out: --------- Personally, I expect it to be generated static in *both* of them, with no global reference, in the a.out case. Anything else is an error. If you run a new g++ with the a.out ld for FreeBSD, it's pilot error. Alternately, you could have a compiler flag that was applied to fee.. that said "don't generate code for templates" so it only made a reference, and you would *not* use that flag when compiling foo.cc so it would generate the real thing. Then, when you linked, there would be one instance and multiple references. If you used the flag on everone who actualized the template class by instantiating it, you wouldn't get a real instance of the code. Again, you'd be guilty of pilot error. ELF: --------- In the ELF case, I expect it will either do waht a.out does, OR if they were clever and used ELF for what it is good for, it will generate the template instance for an queue of integers in *both* fee.o and foo.o, *BUT* in different ELF segments than the rest of the code in foo.o and fee.o, and then when it links, it will bring in only once (probably from whichever is first in the linker argument list). Alternately, you *could* have the same compiler flag for ELF, too, and have the same possibility for pilot error, while creating only a single instantiation at compile time. Godlike compiler writer magic: --------- If, on the other hand, they were truly *godlike*, they would provide a method of implementing a precompiled template instantiation, and generate one of those an an object file. Inside, it would use RTTI (run time type identification) to decide what kind of object it was referring to, and the compiled template code would not enforce the object type. The compiler would compile fee.cc and foo.cc, and *not* generate the code for the template. But it would rigidly enforce *at compile time* type checking *as if it had*. Then, when it generated any references for the "FifoQueue of int's" public member functions or data, it would generate them *without* the linker glue for link time type checking, and rely solely on the RTTI to enable the class to "do the right thing". I find this last one extremely unlikely. But if they are doing it, then the symbols are right, I am wrong. And it's still pilot error, since if ther pilot did the right thing, there would be: (1) an object module with the type-stripped class instance, (2) multiple object modules with refernces to the type stripped references, and (3) an RTTI interface, which I don't believe currently exists in a form suitable for use in doing this sort of thing by hacking up the compiler for the special case where it is compiling a template file to generate an object with type-non-specific 'this' and private member data references. --------- If I'm wrong (the declaration didn't need to be in scope), then it's probably that they are incorrectly applying the "don't generate template" flag when they shouldn't be, not creating a template instance object seperate from the rest of their objects, like they should be, or relying on linker tricks which require multiple instantiations to be coalesced to a single instance, which the a.out linker is too stupid to do, and the ELF linker is probably currently too stupid to do, even though ELF could support it. Feel free to correct me, though... I'd rather know the right answer than just think I knew the right answer. If there's another way for me to be wrong, let me know. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 18:19:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA14041 for hackers-outgoing; Tue, 4 Feb 1997 18:19:44 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA14017; Tue, 4 Feb 1997 18:19:37 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id SAA03221; Tue, 4 Feb 1997 18:19:39 -0800 (PST) Message-Id: <199702050219.SAA03221@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: "Brian J. McGovern" cc: questions@freebsd.org, hackers@freebsd.org Subject: Re: Cyclades driver causes kernel panic In-reply-to: Your message of "Tue, 04 Feb 1997 17:54:56 EST." <199702042254.RAA02641@spoon.beta.com> From: David Greenman Reply-To: dg@root.com Date: Tue, 04 Feb 1997 18:19:39 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Well, its back, and I'm pulling my hair out of my head. It appears >that on HPs, Dells, Eclipse machines, and a handful of others, >the Cyclades driver causes a RAM parity error, causing the kernel >to panic, and the system to reboot. I've sen this on at least >a half dozen systems. And I've found about two that work. > >Has anyone seen this? Worked around it? I'm kind of at a crunch >to get some multi-port serial cards working, and I could use all >the help I can get. > >The machines are HP 586/133s and 166s. The dells are Dell 586/100s. The >only machine I've see it work in for any length of time was a AMD clone 586/100. > >I don't think its a RAM parity error, simply because a half-dozen >machines with EDO Ram can't all be wrong (or i'd see it elsewhere), >and the DOS drivers tend to get the card up and working on multiple >ports with no problems. Install the attached patch...it has fixed the problem for other people. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project Index: locore.s =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/locore.s,v retrieving revision 1.52.4.5 diff -c -r1.52.4.5 locore.s *** locore.s 1996/11/14 15:55:40 1.52.4.5 --- locore.s 1997/01/30 20:17:10 *************** *** 613,619 **** movl _KPTphys-KERNBASE,%ebx /* base of kernel page tables */ lea (0xa0 * PTESIZE)(%ebx),%ebx /* hardwire ISA hole at KERNBASE + 0xa0000 */ movl $0x100-0xa0,%ecx /* for this many pte s, */ ! movl $(0xa0000|PG_V|PG_KW|PG_N),%eax /* valid, kernel read/write, non-cacheable */ movl %ebx,_atdevphys-KERNBASE /* save phys addr of ptes */ fillkpt --- 613,619 ---- movl _KPTphys-KERNBASE,%ebx /* base of kernel page tables */ lea (0xa0 * PTESIZE)(%ebx),%ebx /* hardwire ISA hole at KERNBASE + 0xa0000 */ movl $0x100-0xa0,%ecx /* for this many pte s, */ ! movl $(0xa0000|PG_V|PG_KW),%eax /* valid, kernel read/write, non-cacheable */ movl %ebx,_atdevphys-KERNBASE /* save phys addr of ptes */ fillkpt Index: pmap.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/pmap.c,v retrieving revision 1.58.4.6 diff -c -r1.58.4.6 pmap.c *** pmap.c 1996/06/26 06:18:10 1.58.4.6 --- pmap.c 1997/01/23 22:14:19 *************** *** 2043,2049 **** for (tmpva = va; size > 0;) { pte = vtopte(tmpva); ! *pte = (pt_entry_t) ((int) (pa | PG_RW | PG_V | PG_N)); size -= PAGE_SIZE; tmpva += PAGE_SIZE; pa += PAGE_SIZE; --- 2043,2049 ---- for (tmpva = va; size > 0;) { pte = vtopte(tmpva); ! *pte = (pt_entry_t) ((int) (pa | PG_RW | PG_V)); size -= PAGE_SIZE; tmpva += PAGE_SIZE; pa += PAGE_SIZE; From owner-freebsd-hackers Tue Feb 4 18:20:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA14287 for hackers-outgoing; Tue, 4 Feb 1997 18:20:36 -0800 (PST) Received: from logues.rhn.orst.edu (logues.RHN.ORST.EDU [128.193.139.116]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA14273 for ; Tue, 4 Feb 1997 18:20:32 -0800 (PST) Received: from logues.rhn.orst.edu (localhost [127.0.0.1]) by logues.rhn.orst.edu (8.8.4/8.8.4) with SMTP id SAA06250; Tue, 4 Feb 1997 18:20:20 -0800 (PST) Message-ID: <32F7EE64.1CFBAE39@engr.orst.edu> Date: Tue, 04 Feb 1997 18:20:20 -0800 From: Steve Logue X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2-970201-GAMMA0 i386) MIME-Version: 1.0 To: stenn@whimsy.udel.edu CC: Joerg Wunsch , John Hay , freebsd-hackers@freebsd.org Subject: Re: xntp3-5.89.2 & FreeBSD 2.2-GAMMA won't compile References: <9702041901.aa26048@whimsy.udel.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk stenn@whimsy.udel.edu wrote: > > It looks like I'll need to add this patch to the sys/timex.h file in the > xntpd distribution: > > --- timex.h- Sat Jul 15 04:06:10 1995 > +++ timex.h Sun Feb 2 02:56:21 1997 > @@ -284,6 +284,17 @@ > }; > #ifdef __FreeBSD__ > > +/* > + * sysctl identifiers underneath kern.ntp_pll > + */ > +#define NTP_PLL_GETTIME 1 /* used by ntp_gettime() */ > +#define NTP_PLL_MAXID 2 /* number of valid ids */ > + > +#define NTP_PLL_NAMES { \ > + { 0, 0 }, \ > + { "gettime", CTLTYPE_STRUCT }, \ > + } > + > #ifndef KERNEL > #include > > Is there anything else I should add to the xntpd distribution to make > life easier for us? > > Harlan We must have gotten off on the wrong foot here. XNTPD's timex.h isn't the problem, FreeBSD's timex.h is. The currently shipping timex.h with xntp will compile when included in ntp_loopfilter.c instead of FreeBSD's timex.h, unaltered. Problems still lye somewhere else with regards to ntpq not working. I recompiled with this patch, and #include "../kernel/sys/timex.h" in ntp_loopfilter.c, but it still isn't talking to ntpq. Is this business of just magically changing to xntp's timex.h instead of FBSD's even prudent? From owner-freebsd-hackers Tue Feb 4 18:23:53 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA15111 for hackers-outgoing; Tue, 4 Feb 1997 18:23:53 -0800 (PST) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA15066 for ; Tue, 4 Feb 1997 18:23:48 -0800 (PST) Received: from awfulhak.demon.co.uk (localhost.coverform.lan [127.0.0.1]) by awfulhak.demon.co.uk (8.8.4/8.7.3) with ESMTP id BAA29931 for ; Wed, 5 Feb 1997 01:59:56 GMT Message-Id: <199702050159.BAA29931@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: hackers@freebsd.org Subject: pppd Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 05 Feb 1997 01:59:56 +0000 From: Brian Somers Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Is anyone responsible for pppd at the moment ? I have a patch (submitted by Lars Fredriksen ) that logs connection times - seems like a good idea to me. -- Brian , Don't _EVER_ lose your sense of humour.... From owner-freebsd-hackers Tue Feb 4 18:24:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA15205 for hackers-outgoing; Tue, 4 Feb 1997 18:24:11 -0800 (PST) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA15182 for ; Tue, 4 Feb 1997 18:24:04 -0800 (PST) Received: from awfulhak.demon.co.uk (localhost.coverform.lan [127.0.0.1]) by awfulhak.demon.co.uk (8.8.4/8.7.3) with ESMTP id BAA29896; Wed, 5 Feb 1997 01:51:56 GMT Message-Id: <199702050151.BAA29896@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: Julian Elischer cc: Bill Kish , hackers@freefall.freebsd.org Subject: Re: kernel malloc options In-reply-to: Your message of "Mon, 03 Feb 1997 17:09:35 PST." <32F68C4F.3F54BC7E@whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 05 Feb 1997 01:51:56 +0000 From: Brian Somers Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Wow, a couple of months ago we had no address translation, now we > have *4* different ones.. :) A mere flux ! It'll stabilise ! -- Brian , Don't _EVER_ lose your sense of humour.... From owner-freebsd-hackers Tue Feb 4 18:28:57 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA16282 for hackers-outgoing; Tue, 4 Feb 1997 18:28:57 -0800 (PST) Received: from po1.glue.umd.edu (root@po1.glue.umd.edu [129.2.128.44]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA16271 for ; Tue, 4 Feb 1997 18:28:54 -0800 (PST) Received: from baud.eng.umd.edu (baud.eng.umd.edu [129.2.98.183]) by po1.glue.umd.edu (8.8.5/8.7.3) with ESMTP id VAA19927; Tue, 4 Feb 1997 21:28:51 -0500 (EST) Received: from localhost (chuckr@localhost) by baud.eng.umd.edu (8.8.5/8.7.3) with SMTP id VAA00998; Tue, 4 Feb 1997 21:28:49 -0500 (EST) X-Authentication-Warning: baud.eng.umd.edu: chuckr owned process doing -bs Date: Tue, 4 Feb 1997 21:28:48 -0500 (EST) From: Chuck Robey X-Sender: chuckr@baud.eng.umd.edu To: Terry Lambert cc: jmacd@CS.Berkeley.EDU, hackers@freebsd.org Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta In-Reply-To: <199702050134.SAA13752@phaeton.artisoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 4 Feb 1997, Terry Lambert wrote: > > Terry, I'm not sure you're right. The virtual tables show up (using nm on > > the obj files) as "t" objects, not "T", meaning local text objects. The > > way I understand from JW Eaton, under Linux (where he wrote it natively) > > the symbols in the obj files for these virtual tables instatiated for > > templates are global, not local. There is one of these tables made for > > each template type, correctly, but they're coming up local. This seems to > > be to point to an error source in the compiler, not the linking process. > > > > FWIW, the symbols make it into the library, but as local symbols, not > > global. Am I confused about this? > > Well... you are, or I am. 8-). > > Riddle me this: if the compiler makes a 't' reference to a real 'T' > somewhere... how can it generate the real 'T'? It can't just pick > one of the files at random an put it there. I might be compiling > incrementally. [large code example elided] > > ...do you expect the code to implement the Insert method for a FifoQueue > of int to go into foo.o or fee.o? In the interests of keeping this to some reasonable legnth, I took a lot out, but the comments are valid. One point, tho -- this seems to work correctly under Linux/ELF. This is the first time I really wish I had access to a Linux machine to check the visibility of the virtual tables. The code pieces do seem to be made global under FreeBSD, it's just the virtual tables that are local, and so invisible to other modules. You said you don't think ELF DTRT, altho it could. Maybe it is? My workaround is to have the virtual tables instantiated everywhere, and it works, but I wish it worked the way it's supposed to, with just one copy of the code (and virtual tables, which are the real bogie here, I think). The object modules corresponding to your fee.C example are there, but the virtual tables in fee.o are local. > > Here's what I expect: > > a.out: > --------- [a.out explanation elided] > > ELF: > --------- [ELF explanation elided] > > If I'm wrong (the declaration didn't need to be in scope), then > it's probably that they are incorrectly applying the "don't generate > template" flag when they shouldn't be, not creating a template > instance object seperate from the rest of their objects, like they > should be, or relying on linker tricks which require multiple > instantiations to be coalesced to a single instance, which the a.out > linker is too stupid to do, and the ELF linker is probably currently > too stupid to do, even though ELF could support it. > > Feel free to correct me, though... I'd rather know the right answer > than just think I knew the right answer. If there's another way for > me to be wrong, let me know. > > > Regards, > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+----------------------------------------------- From owner-freebsd-hackers Tue Feb 4 18:34:28 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA17564 for hackers-outgoing; Tue, 4 Feb 1997 18:34:28 -0800 (PST) Received: from awfulhak.demon.co.uk (raffles.demon.co.uk [158.152.17.201]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA17538 for ; Tue, 4 Feb 1997 18:34:22 -0800 (PST) Received: from awfulhak.demon.co.uk (localhost.coverform.lan [127.0.0.1]) by awfulhak.demon.co.uk (8.8.4/8.7.3) with ESMTP id BAA29882; Wed, 5 Feb 1997 01:49:01 GMT Message-Id: <199702050149.BAA29882@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: "Brian Somers" cc: "Charles Mott" , "Julian Elischer" , "Eivind Eklund" , "Ari Suutari" , hackers@freebsd.org Subject: Re: Single socket version of natd In-reply-to: Your message of "Tue, 04 Feb 1997 18:37:30 GMT." <199702041837.SAA02367@ui-gate.utell.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 05 Feb 1997 01:49:00 +0000 From: Brian Somers Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I don't know specifically without checking the code, but I recall seeing a > comment in the -current sources (I've just checked SNAP-961014, nothing > about it there) about using the ip_sum to differentiate between incoming > and outgoing packets..... It *WAS* commented as being a HACK :( > > I'll check the code out this evening when I get home (-current machine) > and tell you. [.....] I was lying. There's no such comments ! Does anyone know of a reason (besides the divert(4) man page) that the sum on incoming packets is zero'd ? The code says: [.....] if (hlen == sizeof(struct ip)) { ip->ip_sum = in_cksum_hdr(ip); } else { ip->ip_sum = in_cksum(m, hlen); } if (ip->ip_sum) { ipstat.ips_badsum++; goto bad; } [.....] Is there any problems with changing this to u_short sum; ..... if (hlen == sizeof(struct ip)) { sum = in_cksum_hdr(ip); } else { sum = in_cksum(m, hlen); } if (sum) { ipstat.ips_badsum++; goto bad; } (and updating divert(4)) ? -- Brian , Don't _EVER_ lose your sense of humour.... From owner-freebsd-hackers Tue Feb 4 19:30:13 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA25113 for hackers-outgoing; Tue, 4 Feb 1997 19:30:13 -0800 (PST) Received: from nyx.pr.mcs.net (nyx.pr.mcs.net [204.95.55.81]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA25107 for ; Tue, 4 Feb 1997 19:30:08 -0800 (PST) Received: from nyx.pr.mcs.net (localhost [127.0.0.1]) by nyx.pr.mcs.net (8.8.5/8.8.4) with ESMTP id VAA03510; Tue, 4 Feb 1997 21:30:18 -0600 (CST) Message-Id: <199702050330.VAA03510@nyx.pr.mcs.net> X-Mailer: exmh version 2.0beta 12/23/96 To: Brian Somers cc: hackers@freebsd.org Subject: Re: pppd In-reply-to: Your message of Wed, 05 Feb 1997 01:59:56 +0000. <199702050159.BAA29931@awfulhak.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Feb 1997 21:30:18 -0600 From: Chris Csanady Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Is anyone responsible for pppd at the moment ? >I have a patch (submitted by Lars Fredriksen ) that logs >connection times - seems like a good idea to me. Speaking of this.. I am using ppp(userland), and need time my connections. The problem is that there is a ppp.linkup that can be executed, but no ppp.linkdown or such. Any ideas? I need some of the features in the userland version.. Chris >-- >Brian , > >Don't _EVER_ lose your sense of humour.... > > From owner-freebsd-hackers Tue Feb 4 19:53:21 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA27123 for hackers-outgoing; Tue, 4 Feb 1997 19:53:21 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id TAA27117 for ; Tue, 4 Feb 1997 19:53:19 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id UAA14160; Tue, 4 Feb 1997 20:50:19 -0700 From: Terry Lambert Message-Id: <199702050350.UAA14160@phaeton.artisoft.com> Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta To: chuckr@glue.umd.edu (Chuck Robey) Date: Tue, 4 Feb 1997 20:50:19 -0700 (MST) Cc: terry@lambert.org, jmacd@CS.Berkeley.EDU, hackers@freebsd.org In-Reply-To: from "Chuck Robey" at Feb 4, 97 09:28:48 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > You said you don't think ELF DTRT, altho it could. Maybe it is? My > workaround is to have the virtual tables instantiated everywhere, and it > works, but I wish it worked the way it's supposed to, with just one copy > of the code (and virtual tables, which are the real bogie here, I think). > The object modules corresponding to your fee.C example are there, but the > virtual tables in fee.o are local. ELF's only a neat tool. There are a lot of clever things you could do with ELF. I bet most of them aren't being done, mostly because I don't see them being done, and it is Not The Nature Of Free Software to do these things. For instance, there still isn't a way to ABI-attribute ELF binaries being generated by the linker, even when people have complained about it for nearly a year now. There is a level of architectural complexity that free software never seems to exceed... sort of a "free software glass ceiling". The ELF hack I'm talking about is an obvious link-time version of a load-time optimization, but it's only obvious because I've dealt with code on an ELF machine that deals with segment coloring. I could page in only one instance of the ELF module for all my callers, even though I had multiple real instances in the binary. This type of thing only works with segment coloring to distinguish treatment of one code segment from treatment of another in a binary. This is basically link-time segment coloring with object agregation by color. I frankly don't think the G++ people are up for this type of thing yet because of the environments in which they run... but like I said, I could be wrong. If I was wrong in my scoping argument, it was because I assumed that the pilot error was somewhere other than where it was, not because I assumed pilot error existed. Not a good consolation, but at least I'm not totally off my rocker. 8-). Another clever thing for ELF: put the libkvm code in an ELF segment in the kernel image so it can be accessed by 'ps', 'w', and the kernel debuggers, alike. Then make it operate only on published externals instead of the entire kvm, and make 'ps', 'w', and company operate on exported externals instead of kvm symbols. Reduce the set of kernel interface to make it more modular. Agregate the interface with those exported by existing loadable kernel modules so the name space is entirely transparent. How about agregation of authentication objects, so that I can have one library routine linked that can look up account information from the local password file, the NIS, radiusd, the CISCO thing, LDAP, NDS, or whatever else I wanted to agregate into the thing? There's literally hundreds of these types of things, and they almost all depend on OS support, either to implement them, or to make them obvious. In any case, I'd like to see them do this kind of clever thing, but it requires that we OS geeks cooperate, or it will never occur to them because they won't have an execution environment that could use the changes. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 19:55:32 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA27497 for hackers-outgoing; Tue, 4 Feb 1997 19:55:32 -0800 (PST) Received: from paris.CS.Berkeley.EDU (paris.CS.Berkeley.EDU [128.32.34.47]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA27478 for ; Tue, 4 Feb 1997 19:55:28 -0800 (PST) Received: (from jmacd@localhost) by paris.CS.Berkeley.EDU (8.8.3/8.8.2) id TAA11238; Tue, 4 Feb 1997 19:55:18 -0800 (PST) Date: Tue, 4 Feb 1997 19:55:18 -0800 (PST) From: Josh MacDonald Message-Id: <199702050355.TAA11238@paris.CS.Berkeley.EDU> To: hackers@freebsd.org, terry@lamber.org, terry@lambert.org Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As far as I know, the following is true: a) No one implements any of the fancy methods of template instanciation you suggest. I know little about ELF, but I've been fighting with g++ templates for over a year now on many different platforms and I've never run into any mention of the optimization you suggest. As to the god-like optimization you suggest, I think its impractical even if they could implement it. It would be a pretty big performance hit, for the most part. You don't want every function and/or operator call inside each function to have to switch on the object type, which it potentially would come down to, plus the fact that the size of the type in question would not be known until run time leaves many compiler optimizations invalid. Since you'd still be duplicating code, I don't see its being very useful anyway. b) The way you suggest of telling the compiler not to generate templates automatically works as follows (in g++): Specify -fno-implicit-templates for all source files you compile. In the source module containing the template methods (or perhaps multiple source files if the template methods are spread out, though I haven't tested this) you add a line _after_ all the template methods have been defined. So, in file foo.h: #include template class Foo { public: Foo(T i) { printf ("%d\n", i); } virtual void foo(); }; in file foo.cc: #include "foo.h" template void Foo::foo() { } template class Foo; template class Foo; in file bar.cc: #include "foo.h" void main() { Foo a(9); Foo b('f'); } Compiles with -fno-implicit-templates (or without) and links correctly. c) Many compilers take the following course of action (The only two I actually have experience with are Sun CC 4.2 and g++). Generate a file containing enough data to generate the template at link-time. This is what the repo patches are for. To my knowledge, it works by modifying the collect2 phase of linking. As we all know, it doesn't work without ELFkit. d) RTTI is not working very well in g++. I'm fairly interested in seeing that FreeBSD stays a viable C++ development platform. I wonder if Chuck could better describe the problem with Octave? Now concerning the virtual tables, I'm not sure I understand, when I compile the two source files above with -fno-implicit-templates, I get: axis-~ $ nm bar.o | c++filt 00000000 t ___gnu_compiled_cplusplus U ___main U Foo::Foo(int) 00000000 T _main 00000000 t gcc2_compiled. That seems to be missing a symbol, is something broken? Where'd Foo::Foo(char) go? It gets called when I run it. axis-~ $ nm foo.o | c++filt 00000078 T Foo::operator=(Foo const &) 000000b8 T Foo::operator=(Foo const &) 00000000 t ___gnu_compiled_cplusplus 0000009c T Foo::Foo(Foo const &) 00000030 T Foo::Foo(char) 000000dc T Foo::Foo(Foo const &) 00000004 T Foo::Foo(int) 000000f8 T Foo virtual table 00000108 T Foo virtual table 00000068 T Foo::foo(void) 00000070 T Foo::foo(void) U _printf 00000000 t gcc2_compiled. As you can see, the virtual tables have extenral linkage and the template methods for int and char were only generated once. > Riddle me this: if the compiler makes a 't' reference to a real 'T' > somewhere... how can it generate the real 'T'? It can't just pick > one of the files at random an put it there. I might be compiling > incrementally. Often you choose the complication unit containing the first virtual function, for example, to place the virtual table in, you can use the ordering of the class methods/decls for this purpose. If everything is in the header file, you lose. People have been pointing out for years that the UNIX compile/link proceedure is inadequate for C++ and templates, ever since cfront invented the template repository. You can use a pragma as well, these are all documented in the GCC info pages (as well as the fact that Boreland solved the problem with the ELF trick you suggest). [Lots of code deleted] > a.out: > --------- > Personally, I expect it to be generated static in *both* of them, with > no global reference, in the a.out case. Anything else is an error. If > you run a new g++ with the a.out ld for FreeBSD, it's pilot error. > > Alternately, you could have a compiler flag that was applied to > fee.. that said "don't generate code for templates" so it only > made a reference, and you would *not* use that flag when compiling > foo.cc so it would generate the real thing. Then, when you linked, > there would be one instance and multiple references. If you used > the flag on everone who actualized the template class by instantiating > it, you wouldn't get a real instance of the code. Again, you'd be > guilty of pilot error. The syntax I show above has made it into the C++ standard. See section 14.7.2 in a recent draft. > Godlike compiler writer magic: > --------- > If, on the other hand, they were truly *godlike*, they would provide > a method of implementing a precompiled template instantiation, and > generate one of those an an object file. Inside, it would use RTTI > (run time type identification) to decide what kind of object it was > referring to, and the compiled template code would not enforce the > object type. The compiler would compile fee.cc and foo.cc, and > *not* generate the code for the template. But it would rigidly > enforce *at compile time* type checking *as if it had*. Then, when > it generated any references for the "FifoQueue of int's" public > member functions or data, it would generate them *without* the > linker glue for link time type checking, and rely solely on the RTTI > to enable the class to "do the right thing". "do the right thing slowly". There's still lots of problems you've ignored like where to put the static template members (something that's pretty difficult to accomplish in eveyr c++ compiler I've used). The chances of actually saving space this way are small, the overhead of making one general purpose code section would be large, I think. I wouldn't call it godlike, maybe impressive software engineering. > I find this last one extremely unlikely. But if they are doing it, > then the symbols are right, I am wrong. And it's still pilot error, > since if ther pilot did the right thing, there would be: (1) an object > module with the type-stripped class instance, (2) multiple object > modules with refernces to the type stripped references, and (3) an > RTTI interface, which I don't believe currently exists in a form > suitable for use in doing this sort of thing by hacking up the compiler > for the special case where it is compiling a template file to generate > an object with type-non-specific 'this' and private member data > references. > If I'm wrong (the declaration didn't need to be in scope), then > it's probably that they are incorrectly applying the "don't generate > template" flag when they shouldn't be, not creating a template > instance object seperate from the rest of their objects, like they > should be, or relying on linker tricks which require multiple > instantiations to be coalesced to a single instance, which the a.out > linker is too stupid to do, and the ELF linker is probably currently > too stupid to do, even though ELF could support it. The original problem had to do with the repo patches, nothing to do with scopes. The repo patches don't work, that's the problem. They *should* generate all the required template code and isnert them into a REPOsitory at link-time, but they don't so symbols were missing, not pilot error. > Feel free to correct me, though... I'd rather know the right answer > than just think I knew the right answer. If there's another way for > me to be wrong, let me know. > > > Regards, > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. -josh From owner-freebsd-hackers Tue Feb 4 19:58:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA28022 for hackers-outgoing; Tue, 4 Feb 1997 19:58:30 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id TAA28017 for ; Tue, 4 Feb 1997 19:58:28 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id UAA14199; Tue, 4 Feb 1997 20:55:30 -0700 From: Terry Lambert Message-Id: <199702050355.UAA14199@phaeton.artisoft.com> Subject: Re: g++, STL and -frepo on FreeBSD-2.2-Beta To: terry@phaeton.artisoft.com (Terry Lambert) Date: Tue, 4 Feb 1997 20:55:29 -0700 (MST) Cc: chuckr@glue.umd.edu, terry@lambert.org, jmacd@CS.Berkeley.EDU, hackers@freebsd.org In-Reply-To: <199702050350.UAA14160@phaeton.artisoft.com> from "Terry Lambert" at Feb 4, 97 08:50:19 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > ELF's only a neat tool. [ ... ] Sorry for the "SPAM". I thought I was replaying to a mail that was off the list... Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. From owner-freebsd-hackers Tue Feb 4 21:17:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA02475 for hackers-outgoing; Tue, 4 Feb 1997 21:17:47 -0800 (PST) Received: from logues.rhn.orst.edu (logues.RHN.ORST.EDU [128.193.139.116]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA02469; Tue, 4 Feb 1997 21:17:45 -0800 (PST) Received: from localhost (stevel@localhost) by logues.rhn.orst.edu (8.8.4/8.8.4) with SMTP id VAA06571; Tue, 4 Feb 1997 21:17:44 -0800 (PST) Date: Tue, 4 Feb 1997 21:17:44 -0800 (PST) From: stevel To: freebsd-questions@freebsd.org cc: freebsd-hackers@freebsd.org Subject: UPS daemon Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Is there anyone working on a generic UPS daemon? I know someone is working on one specifically for APC Smart UPS's, but this isn't usefull to the majority of people. We mostly have "non-smart", TrippLite's and APC out there right? Tripplite BC series, OmniPro series / APC BackUPS series. I would like to write a UPSd in C++, but I don't have enough knowledge of serial programming yet. Also, I would like some input about how the FreeBSD startup, and shutdown events happen. I am very familiar with the SYSV style startup/shutdown as implemented in RedHat Linux, and how sysvinit supports power event signals. What is the corollary in BSD? As far as I'm concerned, I don't even want to have to mess with init. I'd like to do my own shutdowns, and cancelations? -STEVEl From owner-freebsd-hackers Tue Feb 4 21:50:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA05508 for hackers-outgoing; Tue, 4 Feb 1997 21:50:51 -0800 (PST) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id VAA05503 for ; Tue, 4 Feb 1997 21:50:48 -0800 (PST) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA07471; Wed, 5 Feb 1997 00:50:12 -0500 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Wed, 5 Feb 1997 00:50 EST Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.3/8.7.3) with ESMTP id VAA25506; Tue, 4 Feb 1997 21:43:06 -0500 (EST) Received: (from rivers@localhost) by lakes.water.net (8.8.3/8.6.9) id VAA23395; Tue, 4 Feb 1997 21:47:32 -0500 (EST) Date: Tue, 4 Feb 1997 21:47:32 -0500 (EST) From: Thomas David Rivers Message-Id: <199702050247.VAA23395@lakes.water.net> To: patrick@xinside.com, ponds!freebsd.org!freebsd-hackers Subject: Re: [Fwd: freebsd performance.] Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Patrick Giagnocavo writes: > Julian Elischer writes: > > > The posix regex library is VERY VERY slow. > > > > I have a program that uses a large regex to parse some input. > > > > I have a version in perl and a version in C++ using the freebsd posix > > regex library. > > > > The perl version is 100X faster that the C++ version. > > > > gprof on the C++ version shows 99% of the spend in: > > > > 91.53 46.17 46.17 1152366 0.04 0.04 lstep > > 6.52 49.46 3.29 98497 0.03 0.47 lslow > > I am surprised that some of our more erudite members on the list have > not jumped on this. So, a definitely non-erudite person will. > ... > > There are two different 'engines' - NFA (nondeterministic finite > automaton) and DFA (deterministic finite automaton). Perl is > 'traditional NFA' according to Mr. Friedl, while POSIX leans towards > DFA-like behavior in all cases (always returns 'leftmost-longest' that > matches - perl returns I believe the first part that matches). Ah, but you should remember that all NFAs are convertable to DFAs. > > Also, Perl does not 'do' POSIX IIRC; so the results can actually be > different when using the same regex string. Perl does however have > some very powerful features for its regex - covered in the book. This could be part of the reason for a performance difference; if they are not performing the same operation - you're comparing apples and oranges. - Dave Rivers - From owner-freebsd-hackers Tue Feb 4 22:34:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA07677 for hackers-outgoing; Tue, 4 Feb 1997 22:34:54 -0800 (PST) Received: from pdx1.world.net (pdx1.world.net [192.243.32.18]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA07666 for ; Tue, 4 Feb 1997 22:34:51 -0800 (PST) Received: from suburbia.net (suburbia.net [203.4.184.1]) by pdx1.world.net (8.7.5/8.7.3) with SMTP id WAA11020 for ; Tue, 4 Feb 1997 22:36:02 -0800 (PST) Received: (qmail 28573 invoked by uid 110); 5 Feb 1997 06:33:51 -0000 MBOX-Line: From owner-netdev@roxanne.nuclecu.unam.mx Wed Feb 05 04:34:48 1997 remote from suburbia.net Delivered-To: proff@suburbia.net Received: (qmail 4637 invoked from network); 5 Feb 1997 04:17:35 -0000 Received: from roxanne.nuclecu.unam.mx (132.248.29.2) by suburbia.net with SMTP; 5 Feb 1997 04:17:35 -0000 Received: (from root@localhost) by roxanne.nuclecu.unam.mx (8.6.12/8.6.11) id WAA23063 for netdev-outgoing; Tue, 4 Feb 1997 22:08:17 -0600 Received: from caipfs.rutgers.edu (caipfs.rutgers.edu [128.6.155.100]) by roxanne.nuclecu.unam.mx (8.6.12/8.6.11) with ESMTP id WAA23058; Tue, 4 Feb 1997 22:08:04 -0600 Received: from jenolan.caipgeneral (jenolan.rutgers.edu [128.6.111.5]) by caipfs.rutgers.edu (8.7.6/8.7.3) with SMTP id XAA11274; Tue, 4 Feb 1997 23:05:25 -0500 (EST) Received: by jenolan.caipgeneral (SMI-8.6/SMI-SVR4) id XAA03584; Tue, 4 Feb 1997 23:05:08 -0500 Date: Tue, 4 Feb 1997 23:05:08 -0500 Message-Id: <199702050405.XAA03584@jenolan.caipgeneral> From: "David S. Miller" To: netdev@roxanne.nuclecu.unam.mx CC: smpdev@roxanne.nuclecu.unam.mx Subject: paper I stumbled across Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk vger.rutgers.edu:/pub/linux/SMP/papers/netlocking.ps.gz It discusses the parallelization of the xkernel network protocol code for shared memory multiprocessors. It includes analysis of various simulations that the authors ran over their implementation using various traces of tcp and udp connection sets. They also explore strategies, payoff, and the overhead of the locking itself on the operations that need to be performed. From owner-freebsd-hackers Tue Feb 4 22:46:26 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA08004 for hackers-outgoing; Tue, 4 Feb 1997 22:46:26 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA07999 for ; Tue, 4 Feb 1997 22:46:23 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id WAA05126 for ; Tue, 4 Feb 1997 22:46:29 -0800 (PST) Message-Id: <199702050646.WAA05126@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: hackers@freebsd.org Subject: release of ipsec for freebsd (forwarded) From: David Greenman Reply-To: dg@root.com Date: Tue, 04 Feb 1997 22:46:29 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk ------- Forwarded Message Return-Path: owner-freebsd-security@freefall.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.18]) by root.com (8.7.6/8.6.5) with ESMTP id PAA02587 for ; Tue, 4 Feb 1997 15:31:37 -0800 (PST) Received: from localhost (daemon@localhost) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA20937; Tue, 4 Feb 1997 15:07:46 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA20871 for security-outgoing; Tue, 4 Feb 1997 15:07:12 -0800 (PST) Received: from cs.pdx.edu (root@cs.pdx.edu [204.203.64.22]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA20856 for ; Tue, 4 Feb 1997 15:07:08 -0800 (PST) Received: from sirius.cs.pdx.edu (root@sirius.cs.pdx.edu [204.203.64.13]) by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id PAA23337 for ; Tue, 4 Feb 1997 15:07:01 -0800 (PST) Received: from localhost (jrb@localhost [127.0.0.1]) by sirius.cs.pdx.edu (8.8.5/8.8.5) with ESMTP id PAA18695 for ; Tue, 4 Feb 1997 15:06:59 -0800 (PST) Message-Id: <199702042306.PAA18695@sirius.cs.pdx.edu> To: freebsd-security@FreeBSD.ORG Subject: release of ipsec for freebsd In-reply-to: Your message of "Tue, 13 Aug 1996 09:48:47 +0200." <199608130748.AA198942528@euro.eurocontrol.fr> Date: Tue, 04 Feb 1997 15:06:58 -0800 From: Jim Binkley Sender: owner-security@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk If anyone should be interested in the IP Security WG efforts (IPSEC wg), we have made a port of last summer's NRL/ipsec code for IPv4 (not v6) into freebsd 2.1.0, which is our current Mobile-IP kernel src base. This is NOT just mobile-ip oriented, but is aimed at more general network security. The src includes some test apps, some but not all NRL supplied utilities, some test apps of our own, and complete kernel src. In order to get the release, please see the web page: http://www.cs.pdx.edu/research/SMN/index.html, and page down to "PSU IPSEC/FreeBSD port". You have to grab two gzip'ed tar archives, one at PSU, and one at MIT. The latter is for the "export controlled" portion. a few feature (or lack thereof) points: 1. for IPv4, not IPv6 2. experimental!. you must be a kernel hacker 3. NRL's ipsec was transport (socket) oriented. We kept that and added a 1st cut routing binding too (you can view this as a virtual private network mechanism). 4. routes using route(8) or arp(8) can have a ESP/DES binding (and RSN will have an AH/ binding too). 5. our virtual tunnel driver which is part of our MIP implementation but is crucial to the IPSEC stuff too. 6. our Mobile-IP (MIP) kernel routing hacks which don't hurt anything normal and can be ignored if you don't care about Mobile-IP. 7. a couple of simple tcp/udp apps to test and demo the transport (socket) IPSEC bindings. 8. btw, the NRL key(8) utility has been renamed as ipkey(8), as key() already existed. 9. includes (obviousally) NRL's key socket in its form as of last summer. We are starting a majordomo mailing list at PSU. the list name is: freebsd-ipsec@cs.pdx.edu, majordomo@cs.pdx.edu to join. We do not guarantee to "maintain" this or fix bugs or whatever. We are however in the process of improving it and are hoping to finish some parts, and fix some bugs in another release in a few months. Jim Binkley jrb@cs.pdx.edu ------- End of Forwarded Message From owner-freebsd-hackers Tue Feb 4 23:29:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA09950 for hackers-outgoing; Tue, 4 Feb 1997 23:29:12 -0800 (PST) Received: from lassie.eunet.fi (lassie.eunet.fi [192.26.119.7]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id XAA09933 for ; Tue, 4 Feb 1997 23:29:09 -0800 (PST) Received: from tahko.lpr.carel.fi ([192.46.69.100]) by lassie.eunet.fi with SMTP id AA26859 (5.67a/IDA-1.5 for ); Wed, 5 Feb 1997 09:29:06 +0200 Received: from mercury.ps.carel.fi by tahko.lpr.carel.fi with ESMTP (8.7.5/1.1) id JAA06408; Wed, 5 Feb 1997 09:22:06 +0200 (EET) Received: from sodium.ps.carel.fi (sodium.ps.carel.fi [194.137.216.111]) by mercury.ps.carel.fi (8.8.2/8.8.2) with SMTP id KAA13173; Wed, 5 Feb 1997 10:18:00 +0200 (EET) Received: by sodium.ps.carel.fi with Microsoft Mail id <01BC1348.A65D80D0@sodium.ps.carel.fi>; Wed, 5 Feb 1997 09:40:40 +0200 Message-Id: <01BC1348.A65D80D0@sodium.ps.carel.fi> From: Ari Suutari To: "'Charles Mott'" Cc: Julian Elischer , Eivind Eklund , Brian Somers , "hackers@freebsd.org" Subject: RE: Single socket version of natd Date: Wed, 5 Feb 1997 09:36:52 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, Checking device address for each packet might be too slow. Maybe kill -HUP signal to natd could be used to force a device address lookup again. Anyway, also I think that currently it might be good to have aliasing as a built-in feature of ppp also. Ari S. -----Original Message----- From: Charles Mott [SMTP:cmott@srv.net] Sent: 4. helmikuuta 1997 18:28 To: Brian Somers Cc: Julian Elischer; Eivind Eklund; Brian Somers; Ari Suutari; hackers@freebsd.org Subject: Re: Single socket version of natd The one situation I think is difficult for natd to handle is is when ppp is running in -auto mode, and it reconnects on each dial-in with a different dynamcially assigned address. At the moment, natd can do device address lookup at startup, but to handle the above mentioned case, it would have to do a device address lookup for every packet. Is it possible to do this? I personally like having both ppp -alias as well as natd. Having the software embedded in ppp and enabled with the -alias switch makes life very easy for a great number of less sophisticated users. Charles Mott From owner-freebsd-hackers Wed Feb 5 00:06:49 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA13753 for hackers-outgoing; Wed, 5 Feb 1997 00:06:49 -0800 (PST) Received: from csd.cs.technion.ac.il (csd.cs.technion.ac.il [132.68.32.8]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id AAA13736 for ; Wed, 5 Feb 1997 00:06:39 -0800 (PST) Received: from localhost (nadav@localhost) by csd.cs.technion.ac.il (8.6.11/8.6.10) with SMTP id KAA19592; Wed, 5 Feb 1997 10:04:59 +0200 X-Authentication-Warning: csd.cs.technion.ac.il: nadav owned process doing -bs Date: Wed, 5 Feb 1997 10:04:58 +0200 (IST) From: Nadav Eiron X-Sender: nadav@csd To: garman@phs.k12.ar.us cc: Wolfgang Helbig , hackers@freebsd.org Subject: Re: CMD640b flaw workaround In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 4 Feb 1997, Jason Garman wrote: > Nadav Eiron writes: > > I tried installing the patches on my troubled 2.1.5R system, and it > > doesn't cure my problem. I think I should describe my problem once again, > > as it's not the classical CMD640 bug. I have a machine with a hard disk > > (Quantum FireBall) and a CD (Creative x4), both on the primary channel. > > The problem is that CD access is unreliable. It's most commonly seen when > > I try to serve a CD directly via apache. Under heavy load, some of the > > Apace processes will hang while accessing the CD like so: > > > That's weird. You're right, the patch won't fix this. I have a CD and hd > on my first channel, and it works fine here... > > I know this isn't a really good `solution,' but how about switching the cd > onto the second channel? I haven't tried (it wasn't an option until the patch was available). However, I suspect that 2.1.5 won't even recognize the CD there. I might try it if I have the time, but I guess we *will* upgrade this machine to SCSI and be over it once and for all. It simply doesn't have a free slot, so upgrading to SCSI means replacing the whole thing... > > Enjoy, > -- > Jason Garman http://www.nesc.k12.ar.us/~garman/ > Student, Eleanor Roosevelt High School garman@phs.k12.ar.us > Nadav From owner-freebsd-hackers Wed Feb 5 00:34:20 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA17740 for hackers-outgoing; Wed, 5 Feb 1997 00:34:20 -0800 (PST) Received: from relay.nuxi.com (nuxi.ucdavis.edu [128.120.37.176]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA17722; Wed, 5 Feb 1997 00:34:17 -0800 (PST) Received: from dragon.nuxi.com (reqa-024.ucdavis.edu [128.120.251.24]) by relay.nuxi.com (8.8.4/8.6.12) with ESMTP id AAA20376; Wed, 5 Feb 1997 00:34:31 -0800 (PST) Received: (from obrien@localhost) by dragon.nuxi.com (8.8.4/8.7.3) id AAA02002; Wed, 5 Feb 1997 00:33:46 -0800 (PST) Message-ID: <19970205003343.YB13323@dragon.nuxi.com> Date: Wed, 5 Feb 1997 00:33:43 -0800 From: obrien@NUXI.com (David O'Brien) To: imp@village.org (Warner Losh) Cc: freebsd-ports@FreeBSD.ORG (FreeBSD ports list), hackers@FreeBSD.ORG Subject: Re: conditionally including References: <19970202135048.PN07710@dragon.nuxi.com> <199701280143.RAA06503@freefall.freebsd.org> X-Mailer: Mutt 0.59-PL19 Mime-Version: 1.0 Organization: The NUXI *BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 In-Reply-To: ; from Warner Losh on Feb 4, 1997 18:20:28 -0700 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Warner Losh writes: > In message <19970202135048.PN07710@dragon.nuxi.com> David O'Brien writes: > : to get a new cpp symbol added (like __44bsd__ or something). > > This is a bad idea, since it has lost a lot of its potential meaning > with so many 44bsd derived systems that pick and chose between 4.4 and > 4.4 Lite 2. Then what would you suggest? Are they really more different than all the various sysVr4 that define __svr4__? How close is Solaris, UnixWare, and Irix? I'm just trying to find something that will cover all the 4.4BSD derived OS's. What are the big divergances from each other that __44bsd__ wouldn't cover (from an application standpoint)? Remember I'm trying to catch things like sys_errlist[], termios, /var/mail, /usr/sbin/sendmail, etc. Everyone will acknowlege that for kernel stuff __FreeBSD__, etc. should be used. But I still think __44bsd__ is fine where we would already do the #if (BSD > xyx) test or defined(__FreeBSD__) || defined(__NetBSD__) ,etc. -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) From owner-freebsd-hackers Wed Feb 5 00:59:01 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA23810 for hackers-outgoing; Wed, 5 Feb 1997 00:59:01 -0800 (PST) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA23748 for ; Wed, 5 Feb 1997 00:58:49 -0800 (PST) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.8.5/8.8.5) id KAA28087; Wed, 5 Feb 1997 10:55:28 +0200 (SAT) From: John Hay Message-Id: <199702050855.KAA28087@zibbi.mikom.csir.co.za> Subject: Re: xntp3-5.89.2 & FreeBSD 2.2-GAMMA won't compile In-Reply-To: <32F7E2AA.59E2B600@engr.orst.edu> from Steve Logue at "Feb 4, 97 05:30:18 pm" To: logue@engr.orst.edu (Steve Logue) Date: Wed, 5 Feb 1997 10:55:28 +0200 (SAT) Cc: joerg_wunsch@uriah.heep.sax.de, FreeBSD-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL24 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > What about all the xntpd 3.4e code in the src of FreeBSD - that needs to > be replace while we're at it? Thanks -STEVEl > Well xntpd 3.5.xx is still changing so frequently that I don't think it is usefull to put it in the FreeBSD tree yet. And it isn't as if v 3.4e is lacking some serious feature, or am I missing something? John -- John Hay -- John.Hay@mikom.csir.co.za From owner-freebsd-hackers Wed Feb 5 01:23:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA27381 for hackers-outgoing; Wed, 5 Feb 1997 01:23:18 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id BAA27342 for ; Wed, 5 Feb 1997 01:23:05 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id KAA01582; Wed, 5 Feb 1997 10:20:19 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id KAA09915; Wed, 5 Feb 1997 10:08:54 +0100 (MET) Message-ID: Date: Wed, 5 Feb 1997 10:08:54 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: stevel@logues.rhn.orst.edu (stevel) Cc: freebsd-hackers@freebsd.org, upsd-list@ww.net Subject: Re: UPS daemon References: X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from stevel on Feb 4, 1997 21:17:44 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As stevel wrote: > Is there anyone working on a generic UPS daemon? I know someone is > working on one specifically for APC Smart UPS's, but this isn't usefull to > the majority of people. Andrey Stesin's upsd was designed to be a generic UPSd, but i think it only ever evolved to get the APC Smart UPS module. It got very silent lately on the upsd mailing list, too bad. You should be able to find that stuff on ftp://ftp.ww.net/. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-hackers Wed Feb 5 02:01:27 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA04338 for hackers-outgoing; Wed, 5 Feb 1997 02:01:27 -0800 (PST) Received: from gw-nl1.philips.com (gw-nl1.philips.com [192.68.44.33]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA04326 for ; Wed, 5 Feb 1997 02:01:19 -0800 (PST) Received: (from nobody@localhost) by gw-nl1.philips.com (8.6.10/8.6.10-0.994n-08Nov95) id LAA08789 for ; Wed, 5 Feb 1997 11:01:12 +0100 Received: from unknown(130.139.36.3) by gw-nl1.philips.com via smap (V1.3+ESMTP) with ESMTP id sma008604; Wed Feb 5 11:00:14 1997 Received: from giga.lss.cp.philips.com (giga.lss.cp.philips.com [130.144.199.31]) by smtprelay.nl.cis.philips.com (8.6.10/8.6.10-1.2.1m-970131) with SMTP id LAA27209 for ; Wed, 5 Feb 1997 11:00:13 +0100 Received: by giga.lss.cp.philips.com (8.8.5/1.63) id LAA27316; Wed, 5 Feb 1997 11:00:12 +0100 (MET) From: W.Belgers@nl.cis.philips.com (Walter Belgers) Message-Id: <199702051000.LAA27316@giga.lss.cp.philips.com> Subject: Re: NIS/uids To: freebsd-hackers@freebsd.org Date: Wed, 5 Feb 1997 11:00:12 +0100 (MET) In-Reply-To: <199702042306.QAA13339@phaeton.artisoft.com> from Terry Lambert at "Feb 4, 97 04:06:53 pm" Organisation: Origin IT Systems Management /Nederland B.V. X-URL: http://giga.lss.cp.philips.com/cgi-bin/walter.cgi X-Mailer: ELM [version 2.4ME+ PL19 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Terry Lambert writes: > > > The problem now is that the security on my system has become dependant > > > on that of the NIS server. If I am root on the NIS server I can change > > > the uid of "user" into any user including root and make use of it on my > > > system. > > > It makes sense to me that "sensitive" user and group ID's perhaps > should not be honored when they come in via NFS... ie: user root > or bin, etc., or group bin or kmem. This has turned out to become a discussion about whether or not you should trust your NIS server, but that's not what I wanted to know. Let's assume I do not trust the uid's coming from the NIS server but I still do want to use NIS (for passwd/homedir/gecos/whatever). Why does FreeBSD give me troubles when I override the uid in the local password file? a) taking uid from NIS: [/] root@giga# grep john /etc/master.passwd +john:::::0:0:John Doe:/home/john:/usr/local/bin/tcsh [/] root@giga# ypmatch john passwd john::1234:1234:John Doe:/home/john:/bin/tcsh [/] root@giga# su - john > id uid=1234(john) gid=1234 groups=1234 > from >From walter Wed Feb 5 09:49:57 1997 > b) overriding the uid: [/] root@giga# grep john /etc/master.passwd +john::1234:1234::0:0:John Doe:/home/john:/usr/local/bin/tcsh [/] root@giga# ypmatch john passwd john::1234:1234:John Doe:/home/john:/bin/tcsh [/] root@giga# su - john > id uid=1234 gid=1234 groups=1234 > from from: no password file entry for you. > Walter. -- Ir. W.H.B. Belgers, Internet Security Specialist phone: +31 40 2782753 Origin IT Syst.Man. /Nederland bv, Bldg VN-513 email: fax: +31 40 2784697 P.O. Box 218, 5600 MD Eindhoven, Netherlands W.Belgers@nl.cis.philips.com non-business-email: walter@giga.nl -web: http://www.IAEhv.nl/users/gigawalt From owner-freebsd-hackers Wed Feb 5 02:55:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA07063 for hackers-outgoing; Wed, 5 Feb 1997 02:55:33 -0800 (PST) Received: from pcpsj.pfcs.com (eZEESXsQrsQ/RLajsDK7oNNwaLnWNrZG@harlan.fred.net [205.252.219.31]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id CAA07058 for ; Wed, 5 Feb 1997 02:55:28 -0800 (PST) Received: from mumps.pfcs.com (mumps.pfcs.com [192.52.69.11]) by pcpsj.pfcs.com (8.6.12/8.6.9) with SMTP id FAA00762; Wed, 5 Feb 1997 05:55:23 -0500 Received: from localhost by mumps.pfcs.com with SMTP id AA21688 (5.67b/IDA-1.5); Wed, 5 Feb 1997 05:55:22 -0500 To: John Hay Cc: logue@engr.orst.edu (Steve Logue), joerg_wunsch@uriah.heep.sax.de, FreeBSD-hackers@FreeBSD.ORG Subject: Re: xntp3-5.89.2 & FreeBSD 2.2-GAMMA won't compile In-Reply-To: Your message of "Sat, 05 Feb 1997 10:55:28 +0200." <199702050855.KAA28087@zibbi.mikom.csir.co.za> Date: Wed, 05 Feb 1997 05:55:21 -0500 Message-Id: <21686.855140121@mumps.pfcs.com> From: Harlan Stenn Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The problem with "older" releases of xntpd are that they have many serious bugs which affect how well they keep time between peers and how they handle reference clocks. The 3-5.x stuff does change frequently, however (although not as often as I've seen lsof change!). I'd say we're in late-beta with xntpd. We'll be at gamma as soon as we can find and fix the race condition some folks are seeing on some platforms, with a production release soon after. Even then, Dave Mills doesn't think xntp4 is all that far off. H From owner-freebsd-hackers Wed Feb 5 03:19:40 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA07836 for hackers-outgoing; Wed, 5 Feb 1997 03:19:40 -0800 (PST) Received: from whale.gu.kiev.ua (proxy.gu.kiev.ua [194.93.190.4]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA07824 for ; Wed, 5 Feb 1997 03:19:31 -0800 (PST) Received: from trifork.gu.net (trifork.gu.net [194.93.190.194]) by whale.gu.kiev.ua (8.8.5/8.7.3) with SMTP id NAA45702; Wed, 5 Feb 1997 13:16:56 +0200 Date: Wed, 5 Feb 1997 15:16:11 +0200 (EET) From: Andrew Stesin Reply-To: stesin@gu.net To: Joerg Wunsch cc: stevel , freebsd-hackers@freebsd.org, upsd-list@ww.net Subject: Re: UPS daemon In-Reply-To: Message-ID: X-NCC-Reg-ID: ua.gu MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 5 Feb 1997, J Wunsch wrote: > Andrey Stesin's upsd Sorry Jorg, that wasn't me -- it was Alex Yushin who wrote it. > You should be able to find that stuff on ftp://ftp.ww.net/. ^^^^^^^^^^^^^^^^^ Yep. Best regards, Andrew Stesin nic-hdl: ST73-RIPE From owner-freebsd-hackers Wed Feb 5 04:29:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA10647 for hackers-outgoing; Wed, 5 Feb 1997 04:29:29 -0800 (PST) Received: from narcissus.ml.org (root@brosenga.Pitzer.edu [134.173.120.201]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA10642 for ; Wed, 5 Feb 1997 04:29:27 -0800 (PST) Received: (from ben@localhost) by narcissus.ml.org (8.7.5/8.7.3) id EAA25057; Wed, 5 Feb 1997 04:29:26 -0800 (PST) Date: Wed, 5 Feb 1997 04:29:26 -0800 (PST) From: Stranger Bone To: Walter Belgers cc: freebsd-hackers@freebsd.org Subject: Re: NIS/uids In-Reply-To: <199702051000.LAA27316@giga.lss.cp.philips.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hmm, this message confused my copy of Pine mightily. It got split into two messages: >From W.Belgers@nl.cis.philips.comWed Feb 5 04:27:49 1997 Date: Wed, 5 Feb 1997 11:00:12 +0100 (MET) From: Walter Belgers To: freebsd-hackers@freebsd.org Subject: Re: NIS/uids Terry Lambert writes: > > > The problem now is that the security on my system has become dependant > > > on that of the NIS server. If I am root on the NIS server I can change > > > the uid of "user" into any user including root and make use of it on my > > > system. > > > It makes sense to me that "sensitive" user and group ID's perhaps > should not be honored when they come in via NFS... ie: user root > or bin, etc., or group bin or kmem. This has turned out to become a discussion about whether or not you should trust your NIS server, but that's not what I wanted to know. Let's assume I do not trust the uid's coming from the NIS server but I still do want to use NIS (for passwd/homedir/gecos/whatever). Why does FreeBSD give me troubles when I override the uid in the local password file? a) taking uid from NIS: [/] root@giga# grep john /etc/master.passwd +john:::::0:0:John Doe:/home/john:/usr/local/bin/tcsh [/] root@giga# ypmatch john passwd john::1234:1234:John Doe:/home/john:/bin/tcsh [/] root@giga# su - john > id uid=1234(john) gid=1234 groups=1234 > from And the next one: >From the-concourse-on-highWed Feb 5 04:27:54 1997 b) overriding the uid: [/] root@giga# grep john /etc/master.passwd +john::1234:1234::0:0:John Doe:/home/john:/usr/local/bin/tcsh [/] root@giga# ypmatch john passwd john::1234:1234:John Doe:/home/john:/bin/tcsh [/] root@giga# su - john > id uid=1234 gid=1234 groups=1234 > from from: no password file entry for you. > Walter. -- Ir. W.H.B. Belgers, Internet Security Specialist phone: +31 40 2782753 Origin IT Syst.Man. /Nederland bv, Bldg VN-513 email: fax: +31 40 2784697 P.O. Box 218, 5600 MD Eindhoven, Netherlands W.Belgers@nl.cis.philips.com non-business-email: walter@giga.nl -web: http://www.IAEhv.nl/users/gigawalt I'm guessing that that "from" did the trick. Ben "You have your mind on computers, it seems." From owner-freebsd-hackers Wed Feb 5 05:17:31 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA14124 for hackers-outgoing; Wed, 5 Feb 1997 05:17:31 -0800 (PST) Received: from po1.glue.umd.edu (root@po1.glue.umd.edu [129.2.128.44]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA14105; Wed, 5 Feb 1997 05:17:26 -0800 (PST) Received: from gilligan.eng.umd.edu (gilligan.eng.umd.edu [129.2.103.21]) by po1.glue.umd.edu (8.8.5/8.7.3) with ESMTP id IAA01610; Wed, 5 Feb 1997 08:17:19 -0500 (EST) Received: from localhost (chuckr@localhost) by gilligan.eng.umd.edu (8.8.5/8.7.3) with SMTP id IAA12559; Wed, 5 Feb 1997 08:17:18 -0500 (EST) X-Authentication-Warning: gilligan.eng.umd.edu: chuckr owned process doing -bs Date: Wed, 5 Feb 1997 08:17:18 -0500 (EST) From: Chuck Robey X-Sender: chuckr@gilligan.eng.umd.edu To: "David O'Brien" cc: Warner Losh , FreeBSD ports list , hackers@freebsd.org Subject: Re: conditionally including In-Reply-To: <19970205003343.YB13323@dragon.nuxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 5 Feb 1997, David O'Brien wrote: > Warner Losh writes: > > In message <19970202135048.PN07710@dragon.nuxi.com> David O'Brien writes: > > : to get a new cpp symbol added (like __44bsd__ or something). > > > > This is a bad idea, since it has lost a lot of its potential meaning > > with so many 44bsd derived systems that pick and chose between 4.4 and > > 4.4 Lite 2. > > Then what would you suggest? Are they really more different than all the > various sysVr4 that define __svr4__? How close is Solaris, UnixWare, and > Irix? > > I'm just trying to find something that will cover all the 4.4BSD derived > OS's. What are the big divergances from each other that __44bsd__ > wouldn't cover (from an application standpoint)? Remember I'm trying to > catch things like sys_errlist[], termios, /var/mail, /usr/sbin/sendmail, > etc. > > Everyone will acknowlege that for kernel stuff __FreeBSD__, etc. > should be used. But I still think __44bsd__ is fine where we would > already do the #if (BSD > xyx) test or defined(__FreeBSD__) || > defined(__NetBSD__) ,etc. David, I don't understand why you don't want to use __FreeBSD__, __NetBSD__, and __OpenBSD__ for non-kernel stuff. The __44bsd__ thing doesn't exist, and if you start it, 75% of FreeBSD folks and ALL of everyone else in NetBSD and OpenBSD will be out in the cold. I probably misunderstand part, but what functionality will be gained from adding __44bsd__? I want to note that the approach I'm pushing works now for Xfree86 just fine. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+----------------------------------------------- From owner-freebsd-hackers Wed Feb 5 06:04:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA16060 for hackers-outgoing; Wed, 5 Feb 1997 06:04:36 -0800 (PST) Received: from lupin.csv.warwick.ac.uk (lupin.csv.warwick.ac.uk [137.205.192.14]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA16046 for ; Wed, 5 Feb 1997 06:04:20 -0800 (PST) From: Mr M P Searle Message-Id: <25973.199702051403@lupin.csv.warwick.ac.uk> Received: by lupin.csv.warwick.ac.uk id OAA25973; Wed, 5 Feb 1997 14:03:40 GMT Subject: What happened to the splash screen? To: hackers@freebsd.org Date: Wed, 5 Feb 1997 14:03:37 +0000 (GMT) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk There was a discussion on this list a while ago about a possible 'splash screen' while booting - I remember a lot of suggestions about it, but did it ever get done? (if so, can someone send me the patches?) Thanks, Michael. From owner-freebsd-hackers Wed Feb 5 06:38:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA17911 for hackers-outgoing; Wed, 5 Feb 1997 06:38:37 -0800 (PST) Received: from spoon.beta.com (root@[199.165.180.33]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA17906 for ; Wed, 5 Feb 1997 06:38:33 -0800 (PST) Received: from spoon.beta.com (mcgovern@localhost [127.0.0.1]) by spoon.beta.com (8.8.4/8.6.9) with ESMTP id JAA08103; Wed, 5 Feb 1997 09:38:23 -0500 (EST) Message-Id: <199702051438.JAA08103@spoon.beta.com> To: dg@root.com cc: hackers@freebsd.org Subject: Re: Cyclades driver causes kernel panic In-reply-to: Your message of "Tue, 04 Feb 1997 20:00:33 PST." <199702050400.UAA03566@root.com> Date: Wed, 05 Feb 1997 09:38:23 -0500 From: "Brian J. McGovern" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk David, Could you please tell me what version those patches are based against? I tried throwing them up against 2.2-BETA,and at least 2 hunks failed (one in locore.s, and one on pmap.c). I don't mind switching versions, as long as I know which to use. Anyhow, I tried hand editing the files, and removing PG_N where it occured, and it didn't fix the problem. Just thoug htyou might like to know. Thanks for the help. I'm going to keep tinkering. -Brian From owner-freebsd-hackers Wed Feb 5 06:43:27 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA18119 for hackers-outgoing; Wed, 5 Feb 1997 06:43:27 -0800 (PST) Received: from ravenock.cybercity.dk (ravenock.cybercity.dk [194.16.57.32]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA18113 for ; Wed, 5 Feb 1997 06:43:23 -0800 (PST) Received: (from sos@localhost) by ravenock.cybercity.dk (8.8.5/8.7.3) id PAA00531; Wed, 5 Feb 1997 15:45:03 +0100 (MET) From: Søren Schmidt Message-Id: <199702051445.PAA00531@ravenock.cybercity.dk> Subject: Re: What happened to the splash screen? In-Reply-To: <25973.199702051403@lupin.csv.warwick.ac.uk> from Mr M P Searle at "Feb 5, 97 02:03:37 pm" To: csubl@csv.warwick.ac.uk (Mr M P Searle) Date: Wed, 5 Feb 1997 15:44:54 +0100 (MET) Cc: hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In reply to Mr M P Searle who wrote: > There was a discussion on this list a while ago about a possible > 'splash screen' while booting - I remember a lot of suggestions > about it, but did it ever get done? (if so, can someone send me > the patches?) Uhm, the basic support has been added to syscons, all that is needed is a function to read the actual image and put it into the videomemory depending on what mode has been chosen. If you define SC_SPLASH_SCREEN syscons will show the splashscreen (a 320x200 picture containing whatever noise was in video memory) on boot, you can then toggle between the splash and normal screen with NumLock (a hack for now is configurable via the keymap). There is work under way to get it finished.... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end .. From owner-freebsd-hackers Wed Feb 5 06:44:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA18221 for hackers-outgoing; Wed, 5 Feb 1997 06:44:54 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA18215 for ; Wed, 5 Feb 1997 06:44:51 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id GAA08599; Wed, 5 Feb 1997 06:44:53 -0800 (PST) Message-Id: <199702051444.GAA08599@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: "Brian J. McGovern" cc: hackers@freebsd.org Subject: Re: Cyclades driver causes kernel panic In-reply-to: Your message of "Wed, 05 Feb 1997 09:38:23 EST." <199702051438.JAA08103@spoon.beta.com> From: David Greenman Reply-To: dg@root.com Date: Wed, 05 Feb 1997 06:44:53 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >David, > Could you please tell me what version those patches are >based against? I tried throwing them up against 2.2-BETA,and at least >2 hunks failed (one in locore.s, and one on pmap.c). I don't mind >switching versions, as long as I know which to use. > > Anyhow, I tried hand editing the files, and removing PG_N where it >occured, and it didn't fix the problem. Just thoug htyou might like to know. Damn. Yes, just removing PG_N from pmap.c and locore.s is sufficient. I'm a little surprised by this news since it seemed to fix it for someone else. Next idea: Can you get the "CYTEST.EXE" program from Cyclades ftp site and change the memory area that it uses to the >1MB setting? (You'll need to boot DOS, sorry). It defaults to 640K-1MB area, and there is a slight chance that this might be part of the problem. Just a wild idea, but worth a try. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project From owner-freebsd-hackers Wed Feb 5 07:16:20 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA25457 for hackers-outgoing; Wed, 5 Feb 1997 07:16:20 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id HAA25341; Wed, 5 Feb 1997 07:16:10 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0vs94u-0000u5-00; Wed, 5 Feb 1997 08:16:04 -0700 To: obrien@NUXI.com (David O'Brien) Subject: Re: conditionally including Cc: freebsd-ports@freebsd.org (FreeBSD ports list), hackers@freebsd.org In-reply-to: Your message of "Wed, 05 Feb 1997 00:33:43 PST." <19970205003343.YB13323@dragon.nuxi.com> References: <19970205003343.YB13323@dragon.nuxi.com> <19970202135048.PN07710@dragon.nuxi.com> <199701280143.RAA06503@freefall.freebsd.org> Date: Wed, 05 Feb 1997 08:16:03 -0700 From: Warner Losh Message-Id: Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <19970205003343.YB13323@dragon.nuxi.com> David O'Brien writes: : Then what would you suggest? Are they really more different than all the : various sysVr4 that define __svr4__? How close is Solaris, UnixWare, and : Irix? Ummm, they don't all define svr4 in all versions. Solaris didn't define it until at least the 3.0 release of the C compilers. I'm not sure if the current gnu tools define this for all of these systems. And they all have sys/param.h :- : I'm just trying to find something that will cover all the 4.4BSD derived : OS's. What are the big divergances from each other that __44bsd__ : wouldn't cover (from an application standpoint)? Remember I'm trying to : catch things like sys_errlist[], termios, /var/mail, /usr/sbin/sendmail, : etc Better to include sys/param.h, from a portability standpoint, and check to see if BSD is defined and larger than a certain value. The hard part is knowing if sys/param.h will be there. : Everyone will acknowlege that for kernel stuff __FreeBSD__, etc. : should be used. But I still think __44bsd__ is fine where we would : already do the #if (BSD > xyx) test or defined(__FreeBSD__) || : defined(__NetBSD__) ,etc. Yes, but there are enough "dusty deck" systems out there that software authors will still need to do other checks. It would be better to find a foolproof way of knowing when sys/param.h is available (or at least when it generally isn't). Most of the examples that you sighted can be handled better by other means. Don't declare sys_errlist at all, rather use strerror() or #include (which is fairly standard). Don't use hard wired path names, but rather the standard ones defined in pathnames.h. You'll likely have to have a fallback for that strategy as well. Also, as time moves forward, some new systems will adopt parts of the 4.4 tree. Do you really want to have things like: #if defined(__bsd44__) || (defined(SOLARIS) && SOLARIS >= 207) ... in the sources? They quickly get out of hand. Many of the ports have 2-3 lines of ifdefs to include stdlib.h, when instead they should have a single #ifdef __STDC__ in its place. Had BSD 4.4 come out with this symbol, things would be a little different. However, it didn't think that it would be worth the portibility hassles at this point, since it would take time for this symbol to propigate to all flavors of BSD. 2.2 is almost out the door, OpenBSD 2.0 is on the streets (and will be for a while). Netbsd 1.2 is also on the streets and likely will be for a while too. I guess I'm just showing my years of riding heard on the OI/uib source tree which was generally portable to the point that the compile time (45 minutes to an hour) usually dominated the porting time (well, and sometimes it was the licenese manager third party code too). Warner From owner-freebsd-hackers Wed Feb 5 08:20:46 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA01578 for hackers-outgoing; Wed, 5 Feb 1997 08:20:46 -0800 (PST) Received: from Mailbox.mcs.com (Mailbox.mcs.com [192.160.127.87]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA01523 for ; Wed, 5 Feb 1997 08:20:38 -0800 (PST) Received: from Mars.mcs.net (ljo@Mars.mcs.com [192.160.127.85]) by Mailbox.mcs.com (8.8.5/8.8.2) with ESMTP id KAA28504; Wed, 5 Feb 1997 10:20:37 -0600 (CST) Received: (from ljo@localhost) by Mars.mcs.net (8.8.5/8.8.2) id KAA25043; Wed, 5 Feb 1997 10:20:36 -0600 (CST) From: Lars Jonas Olsson Message-Id: <199702051620.KAA25043@Mars.mcs.net> Subject: sigwait and threads? To: hackers@freebsd.org Date: Wed, 5 Feb 1997 10:20:35 -0600 (CST) Cc: ljo@mcs.net X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The "Threads primer" book by Lewis and Berg recommends using sigwait for signal handling in multi-threaded applications. FreeBSD doesn't have a sigwait though. Should we get one? Or is another method for signal handling recommended? I've got a multi-threaded application that currently runs on SCO UnixWare 2.1 that I also want to be able to run on FreeBSD. This application uses sigwait and no signal handlers. Jonas From owner-freebsd-hackers Wed Feb 5 09:14:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA29936 for hackers-outgoing; Wed, 5 Feb 1997 09:14:25 -0800 (PST) Received: from spoon.beta.com (root@[199.165.180.33]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA29829 for ; Wed, 5 Feb 1997 09:14:17 -0800 (PST) Received: from spoon.beta.com (mcgovern@localhost [127.0.0.1]) by spoon.beta.com (8.8.4/8.6.9) with ESMTP id MAA08778; Wed, 5 Feb 1997 12:14:11 -0500 (EST) Message-Id: <199702051714.MAA08778@spoon.beta.com> To: dg@root.com, hackers@freebsd.org, support@cyclades.com Subject: Re: Cyclades driver causes kernel panic In-reply-to: Your message of "Wed, 05 Feb 1997 07:18:17 PST." <199702051518.HAA08985@root.com> Date: Wed, 05 Feb 1997 12:14:10 -0500 From: "Brian J. McGovern" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk David, The machine I'm trying to run the Cyclades card won't run in 'deturbo', or if I disable caching. I noticed an entry for "ISA shared memory" in the PNP setup area. It had a size from 16K to 96K, starting at C8000, incrementing both size and start by 16K chunks. I've tinkered with it, and put the Cyclades card below 1MB to try to get it to map in to this range, but it didn't help. Also, in some configurations, it took out my Adaptec 2940 (when the range I defined got too high). Anyhow, just thought you'd like the stream of info. -Brian From owner-freebsd-hackers Wed Feb 5 09:20:28 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA05397 for hackers-outgoing; Wed, 5 Feb 1997 09:20:28 -0800 (PST) Received: from hda.hda.com (ip57-max1-fitch.ziplink.net [199.232.245.57]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA05327 for ; Wed, 5 Feb 1997 09:20:23 -0800 (PST) Received: (from dufault@localhost) by hda.hda.com (8.6.12/8.6.12) id MAA01169; Wed, 5 Feb 1997 12:14:35 -0500 From: Peter Dufault Message-Id: <199702051714.MAA01169@hda.hda.com> Subject: Re: probing scsi bus after boot? In-Reply-To: from J Wunsch at "Feb 4, 97 10:58:53 pm" To: joerg_wunsch@uriah.heep.sax.de Date: Wed, 5 Feb 1997 12:14:34 -0500 (EST) Cc: freebsd-hackers@freebsd.org, jlk@pavilion.co.uk X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > As Josef Karthauser wrote: > > > Either I use rmt, but I've not found a way of rmt'ing as root on the > > remote site (please someone let me out of my misery.) > > ~root/.rhost > > It would be neat to see ssh support for this, though. > > > # scsi -f /dev/rst0 -p > > scsi: unable to open device /dev/rst0: Device not configured > > Chicken-and-egg problem. Don't use -p btw., use -r. But still, you > need at least one device that has been successfully probed on your > SCSI bus before, in order to hook the `rescan' ioctl into the kernel > (any device fits, so you could pick /dev/rsd0.ctl). > > NB: this used to hang your machine with various SCSI adapters in the > past, but recent 2.2 (and -current) systems seem to work well with it. Once you've compiled with ssc: > device ssc0 at scbus? #SCSI control device Make the scsi control device (minor number 49: > mknod c 49 0 /dev/scsi.ctl And apply a "probe all" to it: > scsi -f /dev/scsi.ctl -p Once in the past it would have reprobed all devices on your SCSI bus. I'm building a kernel to find out what it does today. -- Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 From owner-freebsd-hackers Wed Feb 5 09:23:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA10186 for hackers-outgoing; Wed, 5 Feb 1997 09:23:09 -0800 (PST) Received: from Guard.Polynet.Lviv.UA ([194.44.138.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA09106 for ; Wed, 5 Feb 1997 09:22:33 -0800 (PST) Received: (from smap@localhost) by Guard.Polynet.Lviv.UA (8.8.4/8.6.12) id TAA14360; Wed, 5 Feb 1997 19:19:55 +0200 (EET) Received: from netsurfer.lp.lviv.ua(192.168.0.3) by Guard.Polynet.Lviv.UA via smap (V2.0beta) id xma014357; Wed, 5 Feb 97 19:19:49 +0200 Received: (from smap@localhost) by NetSurfer.lp.lviv.ua (8.8.5/8.6.12) id TAA18357; Wed, 5 Feb 1997 19:19:44 +0200 (EET) Message-Id: <199702051719.TAA18357@NetSurfer.lp.lviv.ua> Received: from ws37.lp.lviv.ua(192.168.0.37) by NetSurfer.lp.lviv.ua via smap (V2.0beta) id xma018353; Wed, 5 Feb 97 19:19:25 +0200 Comments: Authenticated sender is From: "Slavik Terletsky" Organization: State University "Lvivska Polytechnika" To: stevel@logues.rhn.orst.edu Date: Wed, 5 Feb 1997 19:21:54 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: UPS daemon Reply-to: ts@polynet.lviv.ua CC: FreeBSD-hackers@FreeBSD.org Priority: normal X-mailer: Pegasus Mail for Windows (v2.42a) Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hello I managed to hack upsd. As most of ppl who has APC Smart UPS I use it in a dumb mode (I had no info on the cabling UPS to my box). You may change it the way you want to get your UPS work, it is written in C. Wanna deep your knowledge in ups daemons ? Then drop a note to Harvey J. Stein , he made a "UPS HOWTO". (I don't remember the http URL for this). So, here it is: UPS daemon for FreeBSD (2.1.5 - tested). Interacts with APC Smart-UPS 1400 in a dumb mode. Connection scheme: UPS (pin, signal name) PC (pin, signal name) ---------------------- --------------------- 1 Shutdown >-----------> 4 Data Terminal Ready 2 Line Failed >-----------> 8 Clear To Send 4 Common >-----------> 5 Ground 5 Battery Low >--------+--> 1 Data Carrier Detector 8 Battery (+24V) >--|10K|-+ UPSD DESCRIPTION usage: upsd [wait [script]] device - device name upsd interacts thru (e.g. /dev/cuaa1) wait - time (secs) to wait before running script, (default value 0 sec). script - system shutdown script (default /etc/rc.shutdown). Actions: upsd logs all the changes of UPS status (power {up,down}, battery {low,ok}). When "power down" and "battery low" upsd activates UPS SHUTDOWN signal, waits for a seconds, and then runs system shutdown script -