Re: Enhancing cdboot [patch for review]

2008-12-11 Thread Bruce M. Simpson
This sounds and looks cool, diff looks OK (haven't applied), Luigi's comments seem well thought out and expressed. cheers BMS ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send

Re: Anyone interested in HDLC support for pppd ?

2008-06-03 Thread Bruce M. Simpson
[EMAIL PROTECTED] wrote: Hello; I started playing a bit with net/pppd23 and I noticed there are some patches for FreeBSD-3.0 that were never committed (NetBSD certainly has them). Our pppd(8) is derived from the samba pppd port and should have them if we want to continue updating it. Ed

Re: [PATCH] Fancy rc startup style RFC

2006-04-19 Thread Bruce M Simpson
On Wed, Apr 19, 2006 at 10:46:09AM -0400, Coleman Kane wrote: My point is that we should let our purist values get in the way of others' enhanced experience using the system. My view is: We take the patch, as long as it doesn't interfere with the internal machinations of rc too much. There are

Re: User mounting take 2

2006-04-15 Thread Bruce M Simpson
On Sat, Apr 15, 2006 at 01:05:45AM -0400, Joe Marcus Clarke wrote: Finally, in testing this, I found a problem with smbfs, msdosfs, and ntfs relating to the statfs(2) f_flags field. smbfs always set this to 0, msdosfs didn't set this at all, and ntfs set this to all flags (not just those

Re: Using any network interface whatsoever

2006-04-10 Thread Bruce M Simpson
On Sun, Apr 09, 2006 at 06:48:25PM -0600, M. Warner Losh wrote: I though thtis was already supported. We export bus/slot/function information devd, which can be used to configure the device. If I've read the specs or code incorrectly please do let me know -- my reading here is based on the PCI

Re: Using any network interface whatsoever

2006-04-09 Thread Bruce M Simpson
Mike, Tell me about it, I know exactly what you mean! On Sat, Apr 08, 2006 at 06:53:11PM -0400, Mike Meyer wrote: My question about labels for ethernet devices wasn't meant to be rhetorical. Ethernet device names on Unix are pretty much worthless. They tell you basically nothing about which

Re: copy paste in freebsd

2006-03-24 Thread Bruce M Simpson
On Fri, Mar 24, 2006 at 01:52:20AM -0800, Divya B wrote: Here is the problem i am facing with freebsd. 1. copy some text from a file or any window 2. close the file or window 3. try pasting it in another place. Paste is not happening. Is freebsd lagging in this? Or have I missed

Re: newbus questions

2006-03-16 Thread Bruce M Simpson
On Thu, Mar 16, 2006 at 01:59:52PM +0300, Artem 'ZaZooBred' Ignatiev wrote: I need some help regarding newbus architecture. I'm trying to write driver for budget DVB cards. I think Sami Bahra was going to port Video4Linux, so search archives and check in with him. I had a DVB card but gave it

Re: watching a file for ownership change

2005-05-23 Thread Bruce M Simpson
On Sat, May 21, 2005 at 10:38:30PM -0400, Charles Sprickman wrote: I'd like to find a way to watch one of the user's maildirsize files that seems to flip ownerships at least once a day and try to determine what process is changing the ownership. How can I do that without dropping a bunch of

Re: Accessing BIOS memory range

2005-05-12 Thread Bruce M Simpson
On Thu, May 12, 2005 at 09:58:10PM +0200, alexander wrote: I'm writing a little app in 32 bit x86 (386 minumum) assembly, where I need to access some memory in the BIOS range. The real address is 40h:6Ch (virtual = ((0x404) | 0x6C)). Just use /dev/mem. It will do what you want. Look at

Re: PCI Programming

2005-04-28 Thread Bruce M Simpson
On Thu, Apr 28, 2005 at 07:39:33PM +0200, Cole wrote: If anyone has any sample code or anything that I could read to proceed any further, it would be greatly appreciated. Have a look at the man page in section 9 for pci. You should be able to find most of what you need there. You should

Re: Problem with: OSPF thru netgraph Gif Tunnels

2005-04-25 Thread Bruce M Simpson
On Sun, Apr 24, 2005 at 10:41:31PM -0700, Chris Bose wrote: I?m trying to setup a network between two locations over a WAN and I?m running into a wall when I try to get OSPF to talk over my WAN tunnel. I?ve realized that I?m not smart enough and need your help. I haven't looked in depth at

Re: preadv() / pwritev()

2005-04-25 Thread Bruce M Simpson
On Mon, Apr 25, 2005 at 12:10:08PM +0200, Marc Olzheim wrote: Are there plans on implementing preadv() and pwritev() ? I kind of miss the functionality and I saw NetBSD had it already... By the looks of pwrite() and writev() it could probably be implemented fairly easily; it would largely be a

Re: preadv() / pwritev()

2005-04-25 Thread Bruce M Simpson
On Mon, Apr 25, 2005 at 06:50:41PM +0200, Marc Olzheim wrote: More like this then... Yep, something like that! Thanks, though I may not have time to commit this at the moment. :-( BMS pgpzcrqJRUpsG.pgp Description: PGP signature

Re: A question about hot-pluggable PCI.

2005-04-13 Thread Bruce M Simpson
On Mon, Apr 11, 2005 at 11:21:14AM -0600, M. Warner Losh wrote: No we don't. We use what the BIOS provides, but will lazily allocate the BARs as necessary. We don't open the resource windows on the bridges, however. This 'sorta' works now. I program a hard-coded window into the PCI bridge

Re: kernel killing processes when out of swap

2005-04-12 Thread Bruce M Simpson
On Tue, Apr 12, 2005 at 05:24:15AM -0700, ALeine wrote: machine. Having a flag to tag processes as vital to prevent them from getting killed (or to give them lower next-to-be-killed priority so that all non-vital processes get killed first) when you run out of swap would be a useful feature,

A question about hot-pluggable PCI.

2005-04-11 Thread Bruce M Simpson
Hi, I have acquired a Mobility Electronics EasiDock 5000. As some of you may already know, this is a device which allows you to connect regular PCI cards to your laptop, using a device called a 'Split Bridge'. (*) Ok. Cool toy, you may be thinking. Indeed. But I want to make it work with

Re: A question about hot-pluggable PCI.

2005-04-11 Thread Bruce M Simpson
On Mon, Apr 11, 2005 at 07:25:07AM -0600, Scott Long wrote: Asking for 'hotplug support' is pretty generic and non-descriptive. Are you asking for device level hotplug support, where we carefully drain transactions out of a device, device driver, and whatever I/O or network or whatever layers

Re: name cache cont.

2005-03-28 Thread Bruce M Simpson
On Mon, Mar 28, 2005 at 05:42:52PM +0400, Igor Shmukler wrote: For my purposes the Linux/DragonFly functionality is needed. Is there a way to know that once a patch that correctly resolves corner cases for vn_fullpath() (including name cache changes) exists it will be committed to the

Re: relation between PQ_CACHESIZE and PQ_L2_SIZE

2005-03-26 Thread Bruce M Simpson
On Sat, Mar 26, 2005 at 09:44:36AM -0800, Bao Zhao wrote: some think it is 4-way set associative,but I think it is the page's size-4KB. If I'm right, How BSD deals with 8KB page size? Please search this list's archives as there's a thread on this from a few years back (I was one of the

Re: poll or select for ppi?

2005-03-14 Thread Bruce M Simpson
On Mon, Mar 14, 2005 at 10:05:34PM -0500, Matt Kory wrote: Is it possible to use poll or select to detect a change in the status bits of the parallel port? I tried something like this, and took bits 5 and 6 of the status register low and nothing seemed to happen. Is what I am trying to do

Re: Rawsock bpf mambo jambo?

2005-01-25 Thread Bruce M Simpson
On Tue, Jan 25, 2005 at 10:46:47AM +0100, DJF wrote: What's the advantage in using the rawsock bpf combination instead of bpf (or raw socket) only? Raw IP sockets for write take care of the following for you: 1) Computing IP checksums. 2) Inserting IP options. BPF does neither of those things.

Re: OpenBSD's netcat in base or ports?

2005-01-25 Thread Bruce M Simpson
On Tue, Jan 25, 2005 at 01:46:30PM -0500, Coleman Kane wrote: This is only my personal opinion. I think the WITH__OVERWITE_BASE make options help substantiate it, however. I've recently updated the tcpdump port to fix a number of issues. If people could confirm that the OVERWRITE_BASE

Re: Resuming from a crashdump

2005-01-24 Thread Bruce M Simpson
On Mon, Jan 24, 2005 at 07:37:34PM -0600, Ryan Sommers wrote: My little knowledge on this subject aside. I'd love to have full suspend/resume functionality. It'd make my life as a mobile freebsd user much much easier. However, I wouldn't want it at the expense of every kernel. It would need

Re: Wondering about a patch (DELL ERA/RAC)

2005-01-20 Thread Bruce M Simpson
On Wed, Jan 19, 2005 at 03:58:23PM -0800, dpk wrote: I just got a test server set up for this. The patch worked fine. I lifted a pppd command line from a linux mailing list: pppd /dev/cuaa4 1382400 crtscts noipdefault noauth lock persist connect 'chat -v CLIENT CLIENTSERVER \\c' and I'm

Re: Kernel mode programming

2005-01-18 Thread Bruce M Simpson
On Tue, Jan 18, 2005 at 11:45:05AM +0100, - Felix - wrote: Doing lot of syscalls interrupts in a soft seems to take quite a long time, and seriously slow performances. As far as you can't reduce the syscall amount, is there any way to run apps in kernel mode, in order to call sysfonctions

Re: Geode integrated peripherals support?

2005-01-17 Thread Bruce M Simpson
On Sun, Jan 16, 2005 at 03:01:17PM +0100, Milan Obuch wrote: ACCESS.bus support (i2c bus compatible) and LPC bus bridge (for expansion). The first one is present in OpenBSD. I am currently studying that and FreeBSD kernel sources to try port it, however, any help would be great. No idea on

Re: ASIX AX88172 OS X?

2005-01-10 Thread Bruce M Simpson
On Mon, Jan 10, 2005 at 04:26:18AM -0600, Kris Tilford wrote: I assume your FreeBSD driver could be easily ported to OS X, I could [snip] Nope. MacOS X and FreeBSD are completely different in this area. It uses a driver API known as IOKit. Your best bet is to look for driver support from the

Re: Raw sockets problem?

2005-01-09 Thread Bruce M Simpson
On Sat, Jan 08, 2005 at 11:34:57PM +0100, Ivan Voras wrote: I use it in this code: /* get interface name by index */ ... Please consider using if_nameindex() or if_nametoindex(), which will retrieve the getifaddrs() list for you and considerably simplify the code fragment you've provided.

Re: Wondering about a patch (DELL ERA/RAC)

2005-01-09 Thread Bruce M Simpson
On Sat, Jan 08, 2005 at 07:17:33PM -0800, dpk wrote: Will this patch be making its way in to the kernel? The Dells are still shipping with cards that have no drivers (this pciconf -v -l is from a 1750): Please try the attached patch. You'll need to have these drivers statically compiled into

Re: network trunkin

2005-01-09 Thread Bruce M Simpson
On Sun, Jan 09, 2005 at 02:48:18AM -0800, Matt wrote: Does anyone know if FreeBSD supports trunking? By that I mean spreading network traffic over multiple interfaces to achieve a higher aggregate throughtput. I've used this with Solaris. Thanks. Were you thinking of any particular

Re: UCARP support for FreeBSD

2004-12-08 Thread Bruce M Simpson
On Wed, Dec 08, 2004 at 01:02:09PM -0600, Scott M. Ferris wrote: ucarp will compile and run, but will silently fail to send heartbeats due to the way libpcap opens bpf on FreeBSD. You can find a patch to libpcap in PR 72814. http://www.freebsd.org/cgi/query-pr.cgi?pr=72814 This is

Re: about a usb adsl modem driver

2004-12-03 Thread Bruce M Simpson
On Fri, Dec 03, 2004 at 09:25:56PM +0100, Jose M Rodriguez wrote: But noted strong differences between atm boards and adsl modems. - atm boards are hardware assisted. usb adsl modems are bare assisted. - atm boards support better signaling, multiple channels, ... usb adsl modems just one

Re: resolving routes externally

2004-11-23 Thread Bruce M Simpson
On Tue, Nov 23, 2004 at 11:05:06AM +0200, Martin Eugen wrote: At the beginning my intention was to use the routing sockets mechanisms, and say, to issue a 'missing route' message to some userland daemon capable of resolving those complex addresses (the resolving mechanism is generally a lookup

Re: tcsh fix

2004-11-12 Thread Bruce M Simpson
On Fri, Nov 12, 2004 at 01:50:24PM -0600, Kevin Lyons wrote: Presumably pure csh is the last stable release of csh before tcsh came along. Openbsd, netbsd, sun and sgi all seem to have been able to settle on a csh. I'm extremely happy with having tcsh instead of csh in the base system. As

Re: tcsh fix

2004-11-12 Thread Bruce M Simpson
Hello, Misunderstandings such as this seem to be all too common in volunteer open source projects, sadly, and the resultant slagging match on mailing lists is counterproductive for all concerned. On Fri, Nov 12, 2004 at 04:53:58PM -0500, Charles Sprickman wrote: As an interested (and innocent)

Re: tcsh fix

2004-11-11 Thread Bruce M Simpson
On Fri, Nov 12, 2004 at 04:11:22AM +0100, Erik Trulsson wrote: Keep in mind that FreeBSD's /bin/sh is a more powerful shell than was available in, say, v7 Unix. Also keep in mind that ash is not POSIX sh (at least not as completely as one might like). This tends to bite me when using GNU

Re: Where is the source to the system calls?

2004-11-07 Thread Bruce M Simpson
On Sun, Nov 07, 2004 at 04:29:42PM -0800, Dan Strick wrote: Does anyone know where the system calls are really defined? src/sys/kern/syscalls.master ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

c++filt is broken

2004-11-05 Thread Bruce M Simpson
c++filt is broken, at least on 5.3 and -CURRENT. It no longer builds during a buildworld. This is really annoying for those of using the base system compiler to build large C++ projects. I've attached a Makefile which works for me; I haven't integrated it into my local buildworld, though. BMS #

Re: Freebsd assembly programming - IN/OUT commands.

2004-10-17 Thread Bruce M Simpson
On Sun, Oct 17, 2004 at 09:46:29PM +0200, Jan Opacki wrote: Thanks for help. i386_set_ioperm() is exactly what i need. I have to say though I've had processes dump core the first time I've tried doing I/O port accesses after calling i386_set_ioperm() on 5.x since 5.0. This behaviour is sporadic.

Re: How to access a device on LPC bus?

2004-10-17 Thread Bruce M Simpson
On Sun, Oct 17, 2004 at 01:50:11PM +0200, Thiemo Nordenholz wrote: beginner's question, maybe: How do I, from a device driver point of view, access a device attached to the Low Pincount (LPC) bus? Treat it as an ISA bus but write an ACPI attachment for it. Look at

Re: execute a user process in the kernel

2004-09-25 Thread Bruce M Simpson
On Fri, Sep 24, 2004 at 06:21:25PM +0200, Dag-Erling Smørgrav wrote: You could, of course, write a kernel API for creating processes from scratch. They'd still need a parent, but you can use init(8) (pid 1) for that. If we were to implement POSIX spawn(), we'd need something like this. So

Re: execute a user process in the kernel

2004-09-25 Thread Bruce M Simpson
On Sat, Sep 25, 2004 at 01:35:07PM +0200, Dag-Erling Smørgrav wrote: If we were to implement POSIX spawn(), we'd need something like this. Uh, no. posix_spawn(3) can be implemented entirely in userland and does not require any special kernel support. Discussions with peter@ and others on

Re: Global (non _KERNEL) place for sockaddr_union?

2004-09-23 Thread Bruce M Simpson
Greetings earthmen, On Thu, Sep 23, 2004 at 02:14:00AM +0200, Max Laier wrote: As no real solution has come up and we couldn't agree what to do with it either, I'll resort to an easy hack: http://people.freebsd.org/~mlaier/sockaddr_union.fix.diff ... Any objections? [ I know it's ugly

Re: execute a user process in the kernel

2004-09-23 Thread Bruce M Simpson
On Thu, Sep 23, 2004 at 08:18:14AM +, Gordon David wrote: Kqueue is a good method to notify the user. But I want the code in the kernel directly calls a user program. This is Very, Very Hard indeed, because it's not something supported by the system, but it should be possible. Look at

Re: Error 1802: IBM T41 doesn't like other network cards

2004-09-23 Thread Bruce M Simpson
Hi, On Thu, Sep 23, 2004 at 09:57:25PM +1000, Phillip Crumpler wittered thus: Anyone else has similar problems? BMS@ reported ditching the Centrino card in his T40 but didn't mention if he replaced it with something else. I used an official IBM Atheros part, so I didn't run into this problem.

Re: Global (non _KERNEL) place for sockaddr_union?

2004-09-21 Thread Bruce M Simpson
On Mon, Sep 20, 2004 at 02:50:40AM +0200, Max Laier wrote: My question now is, what would be a good place to define this? Are there any fromal standarts that might define it already? (Couldn't find anything) Is there anything else that I must consider? I think Brooks' recommendation is sound

Re: ZFS

2004-09-16 Thread Bruce M Simpson
On Thu, Sep 16, 2004 at 11:00:44AM -0500, Sam wrote: Yes, it's a single filesystem. But the storage most likely won't be all in one place. Making it look like it's accessible from one place is a good thing. ... are you hinting at multiple globally remote block accessible storage sets?

Re: ZFS

2004-09-16 Thread Bruce M Simpson
On Thu, Sep 16, 2004 at 11:12:16AM -0400, Kevin A. Pieckiel wrote: Where on earth would you find a disk system that can store 2^64 bytes of data or larger, anyway? Don't physical and technological limitations limit the total capacity of even the largest hard drives now available? It would

Re: Booting encrypted

2004-09-07 Thread Bruce M Simpson
On Tue, Sep 07, 2004 at 01:54:43PM -0700, [EMAIL PROTECTED] wrote: If the authorization mechanism is limited to plain text, then yes. I know that strings can be used to attempt to find the passphrase in the load, but there may be ways to prevent the passphrase from being retrieved in this

Re: Driver for Thinkpad Hotkeys.

2004-08-08 Thread Bruce M Simpson
On Mon, Aug 09, 2004 at 04:03:18AM +0200, Arne Schwabe wrote: IIrc correct the WLAN indicator is wired to the minipci for Thinkpads, at least the linux madwifi (which is basically our ath driver but our ath has not been updated for some very long time) has support for the IBM thinkpad wlan

Re: regarding timeout/untimeout kernel functions

2004-07-22 Thread Bruce M Simpson
On Thu, Jul 22, 2004 at 09:56:00PM -0500, Dan Nelson wrote: You could also use the kqueue/kevent functions to queue up an arbitrary number of timer events in a single process. I wrote a small routing daemon which uses kqueue/kevent to fire a period timer on a quantum which in turn calls into a

Article on Sun's DTrace

2004-06-29 Thread Bruce M Simpson
This recently caught my eye: http://www.samag.com/documents/s=9171/sam0406h/0406h.htm There are a number of good sounding suggestions in there. BMS ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

Re: SPDIF capture device?

2004-06-20 Thread Bruce M Simpson
Hello, On Fri, Jun 18, 2004 at 01:56:25PM +0200, Ing.Richard Andrysek wrote: I've read your question about SPDIF capture device on freebsd. I am currently looking for similar device.Have you found such one? Can you access subcode etc.? The Soyo Dragon Plus! K7V has a SPDIF input/output;

Re: memory mapped packet capturing - bpf replacement ?

2004-06-14 Thread Bruce M Simpson
On Mon, Jun 14, 2004 at 10:15:14AM -0700, Julian Elischer wrote: don't forget that bpf is not copying the entire packet, just the header.. If you look at Sergey's benchmark.c, you will see that the snaplen was set to 32KB. BMS ___ [EMAIL PROTECTED]

Re: memory mapped packet capturing - bpf replacement ?

2004-06-14 Thread Bruce M Simpson
On Mon, Jun 14, 2004 at 08:38:57AM -0400, Ed Maste wrote: Hello Sergey. I haven't looked at your code, but I'll provide some comments, having implemented a mmaped ringbuffer BPF replacement myself. We've had some prior interest in this. Do you have patches? If so, I'd be more than happy to

Re: api for sharing memory from kernel to userspace?

2004-05-20 Thread Bruce M Simpson
On Wed, May 19, 2004 at 03:29:09PM -0700, Steve Watt wrote: On Wed, May 19, 2004 at 05:29:07AM -0700, Alfred Perlstein wrote: + I need to share about 100megs of memory between kernel and userspace. + + The memory can not be paged and should appear contig in the process's + address space. Any

Re: passing messages to routing sockets

2004-04-10 Thread Bruce M Simpson
cleaned up and tested more thoroughly * before being used as the basis for a user-space BSD AODV implementation. */ /* * Copyright (c) 2003 Bruce M. Simpson [EMAIL PROTECTED] * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification

Re: wireless usb atmel driver

2004-04-02 Thread Bruce M Simpson
On Fri, Apr 02, 2004 at 04:25:08PM +0300, Anton Alin-Adrian wrote: I am killing myself trying to compile http://www.vitsch.net/bsd/atuwi/ driver on 5.2.1-RELEASE. Try the atuwi from my perforce tree. BMS ___ [EMAIL PROTECTED] mailing list

Re: Determining a program's shared libraries at runtime

2004-03-31 Thread Bruce M Simpson
On Wed, Mar 31, 2004 at 02:55:47PM -0500, Mike Heffner wrote: Is there a method in FreeBSD for a program to retrieve the current list of dynamic shared libraries it is linked against or has dlopen()'d? /proc/pid/map should give you what you need, but it needs to be read atomically, i.e. you

Re: events when (de)associating or when cable is (un)plugged

2004-03-27 Thread Bruce M Simpson
On Sat, Mar 27, 2004 at 03:37:44AM +0100, Dirk-Willem van Gulik wrote: Suleiman, Thanks for all the help - I just hacked up the patch below and took http://green.homeunix.org/~green/linkwatcher.c for testing. I also had to add the LINKUP/DOWN in some non-mii using ethernet cards (as only

Re: Intel i8xx watchdog driver

2004-03-25 Thread Bruce M Simpson
as exercise for the reader. */ /* * Copyright (c) 2003 Bruce M. Simpson [EMAIL PROTECTED] * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source

Re: Intel i8xx watchdog driver

2004-03-25 Thread Bruce M Simpson
Correction... On Thu, Mar 25, 2004 at 11:26:59PM +, Bruce M Simpson wrote: I wrote code to unlock the SMM within FreeBSD last summer on an IBM T22 ^^ discover and map. with the 440BX chipset. Here it is. Half asleep here. Doh! BMS

Re: Intel i8xx watchdog driver

2004-03-12 Thread Bruce M Simpson
On Thu, Mar 11, 2004 at 07:07:36PM -0600, Wm. Daryl Hawkins wrote: I would love to incorporate it in both source trees if possible. Before it goes into current, I need to make some changes so that it will work with Poul-Henning Kamp's new watchdog driver model. Hopefully, I'll get to work on

Re: Kernel SysV IPC defaults.

2004-03-04 Thread Bruce M Simpson
On Wed, Mar 03, 2004 at 05:42:43PM +, Chris Smith wrote: Consider MSGMAX (max bytes in a message) and MSGMNB (max bytes in a queue) The defaults are MSGMAX MSGMNB, which is clearly backwards. I see this. How about the attached patch? I can understand people still using the SYSV IPC

Re: Accessing sysctls from kernel

2004-02-26 Thread Bruce M Simpson
On Thu, Feb 26, 2004 at 02:10:40PM +0100, Ivan Voras wrote: In sys/sys/sysctl.h I see function kernel_sysctlbyname() that looks (to me) to be intended for accessing sysctl values from kernel, but for it's first parameter it requires a struct thread *td. What should I pass to it? (I'm

Re: Local APIC on FreeBSD/i386

2004-02-23 Thread Bruce M Simpson
On Mon, Feb 23, 2004 at 10:20:57AM -0500, John Baldwin wrote: As of 5.2, the 5.x branch will use the local APIC on UP systems. Yay! Hopefully my pseudo-NMI-on-ThinkPad-button hack to the ACPI DSDT will work.. BMS ___ [EMAIL PROTECTED] mailing list

Re: FreeBSD 5.2 v/s FreeBSD 4.9 MFLOPS performance (gcc3.3.3 v/s gcc2.9.5)

2004-02-16 Thread Bruce M Simpson
On Mon, Feb 16, 2004 at 07:11:16PM +0100, Dag-Erling Smørgrav wrote: It can't possibly hurt. If the stack is already aligned on a better boundary (64 or 128 bytes), it is also aligned on a 32-byte boundary since 64 and 128 are multiples of 32, and the patch is a no-op. If only a 16-byte

Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-15 Thread Bruce M Simpson
On Sun, Feb 15, 2004 at 02:42:07AM -0500, Garance A Drosihn wrote: It occurs to me that the simple, reliable solution to this is to add a 'realclean' target to /usr/src/Makefile, such as: I don't have a problem with this. However, on a related but somewhat separate note: It would be helpful

Re: BDM under current

2004-02-14 Thread Bruce M Simpson
On Fri, Feb 13, 2004 at 10:02:47PM -0500, James Housley wrote: does anyone know whether i can use gdb + bdm under freebsd ? Probably not, I had it working well under 3.x, never really got it working in 4.x I wouldn't mind following this up, alas, I don't have any BDM gear here. It is

Re: FreeBSD 5.2-current problem in Dell Poweredge 1600SC

2004-02-13 Thread Bruce M Simpson
On Fri, Feb 13, 2004 at 05:42:01PM +0800, Ganbold wrote: I installed FreeBSD 5.2 on Dell Poweredge 1600SC. However FreeBSD doesn't recognize network card. It has onboard Intel Pro 1000 card. You probably want to try loading the if_em.ko module. I recently installed 4.9 on a newer Optiplex

Re: XL driver checksum producing corrupted but checksum-correct packets

2004-01-27 Thread Bruce M Simpson
On Sun, Jan 25, 2004 at 01:13:28PM -0600, Mike Silbersack wrote: I suppose that one thing we could do in the long run to help detect this sort of corruption would be to import OpenBSD's TCP MD5 support and ensure that packets which fail the md5 or fail the checksum are logged so that they can

Re: TCP MD5 (was Re: XL driver checksum producing corrupted but checksum-correct packets)

2004-01-27 Thread Bruce M Simpson
On Sun, Jan 25, 2004 at 07:59:32PM +, Aled Morris wrote: If you're talking about RFC2385 style MD5 as used for BGP authentication, I'd pay someone to make that work on FreeBSD (with Zebra/Quagga.) Someone already is, and I have patches for Quagga/Zebra ongoing... (how do you think I'm

Re: XL driver checksum producing corrupted but checksum-correct packets

2004-01-26 Thread Bruce M Simpson
On Sun, Jan 25, 2004 at 01:13:28PM -0600, Mike Silbersack wrote: I suppose that one thing we could do in the long run to help detect this sort of corruption would be to import OpenBSD's TCP MD5 support and ensure that packets which fail the md5 or fail the checksum are logged so that they can

Re: TCP MD5 (was Re: XL driver checksum producing corrupted but checksum-correct packets)

2004-01-26 Thread Bruce M Simpson
On Sun, Jan 25, 2004 at 07:59:32PM +, Aled Morris wrote: If you're talking about RFC2385 style MD5 as used for BGP authentication, I'd pay someone to make that work on FreeBSD (with Zebra/Quagga.) Someone already is, and I have patches for Quagga/Zebra ongoing... (how do you think I'm

Re: freebsd-hackers Digest, Vol 42, Issue 6

2004-01-11 Thread Bruce M Simpson
On Fri, Jan 09, 2004 at 03:57:07PM +, YACINE GHANJAOUI wrote: when trying to intercept UDP packet after changing the protocol number from 17 to a user one (99) in the ip_input.c file. when trying to regenrate the packet after inserting some bit errors an error message appears in the

Re: switching between groups

2004-01-06 Thread Bruce M Simpson
On Tue, Jan 06, 2004 at 11:14:06AM -0500, Adil Katchi wrote: I was just wondering if anyone has any ideas how it's possible for a user that belongs to multiple groups to somehow limit his or her own capabilities by using only one of the n groups that they belong to and be able to switch

SGI ARC x86 boxen diffs

2004-01-02 Thread Bruce M Simpson
I've burned up too much time over the holidays on trying to get our loader pointed to ARC x86 on the SGI Visual Workstation, and didn't really get anywhere. If anyone has such a box and wants a starting point, go here:- http://people.freebsd.org/~bms/dump/loader-arc-x86-sgi.diff You'll

Re: natd + ipfw question

2003-12-23 Thread Bruce M Simpson
On Tue, Dec 23, 2003 at 11:54:39AM -0500, Leo Bicknell wrote: doesn't? Yes, I want to do something fancier treating inbound and outbound traffic differently, but this basic case doesn't seem to work, and it seems to me like it should. What am I missing? Have you configured IPFW2 (if running

Re: adding more ram

2003-12-10 Thread Bruce M Simpson
On Wed, Dec 10, 2003 at 09:41:11AM -0500, Bill Vermillion wrote: Systems such as the Irix I used before moving the servers to FBSD around 1996 - reserverd swap space for applications when the application started up so those needed large swap space. Often it was never used, but the design

ifconfig(8) refactoring -- YACC grammar now online

2003-11-30 Thread Bruce M Simpson
Hi all, As per Sam's suggestion, I've been working on refactoring ifconfig(8), which has grown increasingly large and unwieldy. Part of the effort has been to get a handle on all of the options we currently support; so I've written a YACC grammar for it. This is my first serious bit of work with

Re: ifconfig(8) refactoring -- YACC grammar now online

2003-11-30 Thread Bruce M Simpson
On Sun, Nov 30, 2003 at 01:12:42PM +0100, Andre Oppermann wrote: What I've thinking about a lot is to make the networking system and ifconfig sort of class-based like newbus and geom. Look at: http://people.freebsd.org/~bms/dump/nifconfig/nifconfig-design.txt There is a pending change to

Re: ifconfig(8) refactoring -- YACC grammar now online

2003-11-30 Thread Bruce M Simpson
On Sun, Nov 30, 2003 at 02:20:50PM -0500, Robert Watson wrote: if_type seems like it will work for high level classes of interfaces, but something more fine-grained will be required for interfaces that implement multiple classes or subclasses (i.e., 802 generally, and also 802.11b). The idea

Re: Making a FreeBSD DVD

2003-11-23 Thread Bruce M Simpson
On Sun, Nov 23, 2003 at 09:28:37PM -0500, Leo Bicknell wrote: I'd like to make my own distribution DVD's. I know how to make [snip] I'm intrigued by this. Is it possible to build DVDs which will boot on i386 and/or a variety of architectures? FAQ pointers welcome... BMS

Re: Conflict between sys/sysproto.h stdio.h ... ?

2003-11-18 Thread Bruce M Simpson
On Tue, Nov 18, 2003 at 12:39:37AM -0800, lucy loo wrote: I am writing a kernel loadable module to reimplement some system calls. I have included sys/sysproto.h, sys/systm.h, etc. -- very standard header files for kld implmentation. I also want to do file i/o in this module, therefore I need

Re: secure file flag?

2003-11-18 Thread Bruce M Simpson
On Tue, Nov 18, 2003 at 04:31:32PM -0800, Rayson Ho wrote: I am wondering if it is useful to have a secure file flag?? ... e.g. when deleting a secure file, the OS will overwrite the file with random data. I've got patches somewhere for zeroing out memory mappings in this way, but they are

Re: Driver question

2003-11-10 Thread Bruce M Simpson
Craig, On Sat, Nov 08, 2003 at 10:11:22PM -0500, Craig StJean wrote: I have a prism2 USB wireless device. I've never written drivers before but I have been developing for the past 8 years. Could someone guide me to a website or something that would help me write a USB wrapper for the wi

Re: kernel malloc usage

2003-11-03 Thread Bruce M Simpson
On Mon, Nov 03, 2003 at 10:51:58AM +0100, Gerald Heinig wrote: Is this true? I seem to remember that FreeBSD has a slab allocator, which IIRC is particularly good at allocating small chunks. You don't specify which version of the kernel you're programming to; so I'll assume 5.x. If your

User asks: can we decouple device vendor IDs from drivers?

2003-10-31 Thread Bruce M Simpson
Hi, This sounds like one for the NEWBUS people. BMS ---BeginMessage--- In message [EMAIL PROTECTED], Bruce M Simpson wrote: Hiya To follow up what I said down the pub... The file in solaris i was referring to is called /etc/driver_aliases do a search to find out about it. Looking

Re: Some mmap observations compared to Linux 2.6/OpenBSD

2003-10-22 Thread Bruce M Simpson
On Wed, Oct 22, 2003 at 09:40:44AM -0500, Dan Nelson wrote: The actual commit quote reads: use a red-black tree to find entries in the vm_map. augment the red-black tree to find free space between entries. speeds up memory allocation, etc... I am wondering if there is a compelling

Re: sshd source code

2003-10-18 Thread Bruce M Simpson
On Fri, Oct 17, 2003 at 03:58:33PM -0700, Tim Kientzle wrote: Assuming, of course, that they don't ever turn their machine off. If they do, then 'locate' is just a waste of disk space. Or install the anacron port. BMS ___ [EMAIL PROTECTED] mailing

Re: Why is PCE not set in CR4?

2003-10-18 Thread Bruce M Simpson
On Wed, Oct 01, 2003 at 11:39:36AM +0200, Grumble wrote: I have read the perfmon documentation and source code. For several reasons, I do not think it is totally adequate in my situation. It was designed in 1996 with the Pentium Pro in mind, which, apparently, only has two performance

Re: boot0 screen output with dual-boot of FreeBSD / WinXP

2003-10-17 Thread Bruce M Simpson
On Fri, Oct 17, 2003 at 01:25:04PM +0930, Daniel O'Connor wrote: Basically, no. There is no room left in boot0 :( I think you could do it by squeezing down some text strings, and removing other [less common] entries though. That's what I had to do when I special-cased it for serial console

Re: to write a device driver or not to write (i/o, opl3, stupidity)

2003-10-16 Thread Bruce M Simpson
I mean, what services do drivers offer? What services they _need_ to offer? Do they just create appropriate device nodes and let the applications to worry about using them or do they do some data manipulation or do they offer routines and interfaces for applications or what? What should

Re: afaapps port committed to FreeBSD

2003-10-13 Thread Bruce M Simpson
On Mon, Oct 13, 2003 at 05:20:31PM +0200, Helge Oldach wrote: I may sound ignorant, but what is wrong with the FreeBSD-native aaccli utility that can be downloaded from Adaptec (5400s_fbsd_cli_v10.zip)? I have been using this for some time now with success. May I suggest to make a port out

Re: Determining CPU features / cache organization from userland

2003-10-13 Thread Bruce M Simpson
All, Here are detailed design documents for determining cache and TLB geometry across our currently supported processor architectures, with recommendations outlined for implementation. What I haven't addressed yet is how indirect consumers of the API might use it, e.g. mutex consumers vs. UMA,

Re: Determining CPU features / cache organization from userland

2003-10-12 Thread Bruce M Simpson
All, I came up with the attached text file today to summarize some of my findings, after looking at various open source trees to see how they handle run-time cache geometry detection. Many will find it ironic that i386 is the easiest platform to deal with. [ Andrew: Perhaps you can shed some

Re: Dynamic reads without locking.

2003-10-11 Thread Bruce M Simpson
On Fri, Oct 10, 2003 at 10:31:21PM -0700, Tim Kientzle wrote: On further inspection, I'm pretty sure that sys/kern/subr_devstat.c is not correct. OK. What about the shared page interface? Specifically the comment above devstat_end_transaction(). The generation count is used by the old sysctl

Re: Determining CPU features / cache organization from userland

2003-10-11 Thread Bruce M Simpson
On Sat, Oct 11, 2003 at 01:58:27PM +1000, Peter Jeremy wrote: If you do this, it may make sense to use the same names as MacOSX. What if your hardware has different linesizes for different caches? I noticed whilst peering in Apple Developer Notes that G5 has 128 byte cache line size, and

Re: smallest piece of hardware that runs *BSD?

2003-10-11 Thread Bruce M Simpson
On Fri, Oct 10, 2003 at 07:37:23PM -0700, Wes Peters wrote: Grab a copy of Embedded Systems Programming, there are ads for things like this all over near the back of the magazine. In particular, the chip in whatever USB stick you're looking at probably has an 8-bit CPU of some sort in it.

  1   2   >