Re: getting interface MAC addr from C

2006-08-04 Thread Michal Mertl
Mario Lobo wrote: Hi; Would anyone have a tip on how to get the MAC from a C program? I tried: struct ifreq ifreq; unsigned char *hw; strcpy(ifreq.ifr_name, rl0); ioctl(fd, SIOCGIFMAC, ifreq); hw = ifreq.ifr_ifru.ifru_data; This is probably very far from

Re: NVIDIA FreeBSD kernel feature requests

2006-07-02 Thread Michal Mertl
Miguel Mendez wrote: On Thu, 29 Jun 2006 13:12:31 +0200 Christian Zander [EMAIL PROTECTED] wrote: Hi, I just saw an article on OSNews about this, seems I missed it. NVIDIA has been looking at ways to improve its graphics driver for the FreeBSD i386 platform, as well as investigating

Re: ordering of ports on Promise PDC40718 SATA300 controller

2006-05-09 Thread Michal Mertl
Rick C. Petty wrote: What determines the probing order of the ports/channels on the PDC40718 (Promise TX4 SATA300 controller)? The SATA ports are labeled Port 1 through Port 4. I have a total of four of these cards, and all of them repeatably probe out of order: label reported in FreeBSD

Re: nagios and pthreads

2005-07-14 Thread Michal Mertl
Jeremie Le Hen wrote: Hi Christophe, a quick glance at the archives whould have helped you. I also experienced the problem and read the thread. I don't believe anybody found and shared a way to solve it. The conclusion of the thread was that the problem is more in the application then in

Re: Nagios and threads

2005-07-01 Thread Michal Mertl
On Wed, 22 Jun 2005, I wrote: Daniel Eischen wrote: On Tue, 21 Jun 2005, Michal Mertl wrote: Dag-Erling Smrgrav wrote: Charles Sprickman [EMAIL PROTECTED] writes: 1. FreeBSD and threads. On FreeBSD there's a native user-level implementation of threads called 'pthread

Re: Nagios and threads

2005-06-22 Thread Michal Mertl
Daniel Eischen wrote: On Tue, 21 Jun 2005, Michal Mertl wrote: Dag-Erling Smrgrav wrote: Charles Sprickman [EMAIL PROTECTED] writes: 1. FreeBSD and threads. On FreeBSD there's a native user-level implementation of threads called 'pthread' and there's also an optional ports

Re: Nagios and threads

2005-06-21 Thread Michal Mertl
Dag-Erling Smørgrav wrote: Charles Sprickman [EMAIL PROTECTED] writes: 1. FreeBSD and threads. On FreeBSD there's a native user-level implementation of threads called 'pthread' and there's also an optional ports collection 'linuxthreads' that uses kernel hooks. This is only the case for

max number of tcp cons on STABLE (bug?)

2002-06-04 Thread Michal Mertl
that it's not very common to have more than ~4000 sockets but I think it should be possible. It can be the reason of others' failures I guess. -- Michal Mertl [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: stack alignment issues

2002-02-04 Thread Michal Mertl
Greg Shenaut wrote: In message [EMAIL PROTECTED], Dan Nelson cleopede: In the last episode (Feb 03), Alfred Perlstein said: * Michal Mertl [EMAIL PROTECTED] [020203 08:17] wrote: Not really sure what to make of this, anyone else know how we ought to fix this? This has actually been

unbelievable benchmark output

2002-02-03 Thread Michal Mertl
; gettimeofday(st, NULL); for (k = 0; k NUMTESTS; k++) { atomic_add_64(i, j); } gettimeofday(en, NULL); difftimeval(st, en); printf(%lu.%06lu\n, en.tv_sec, en.tv_usec); return (EXIT_SUCCESS); } - 8 -- Michal Mertl [EMAIL

patch for network counter implementation (64bit/atomic)

2002-01-20 Thread Michal Mertl
from 32 to 64 bit, some of world has to be rebuild too (to notice the change in structs which contain the counters). Namely ifconfig, netstat, systat and probably others. -- Michal Mertl [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers