Re: Loadable Code Modules?

2000-02-14 Thread Chris Costello
On Sunday, February 13, 2000, Marc Wandschneider wrote: > i was wondering if FreeBSD had a kind of like DLL capability? Yes, try ``man 3 dlopen''. -- |Chris Costello <[EMAIL PROTECTED]> |The programmer's national anthem is ''. -Weinberg, p.152 `--

Re: Loadable Code Modules?

2000-02-14 Thread Mike Nowlin
> > i was wondering if FreeBSD had a kind of like DLL capability? > > i'd like to be able to do something as follows: > > // ... construct char *fileName > moduleHandle = loadCodeModule(fileName); > (char *)(*fn char *) myfn; // ii'm pretty sure i screwed that up >

Re: Loadable Code Modules?

2000-02-14 Thread Michael Reifenberger
On Sun, 13 Feb 2000, Marc Wandschneider wrote: ... > i was wondering if FreeBSD had a kind of like DLL capability? Yes. man dlopen(3) Bye! Michael Reifenberger Plaut Software GmbH, R/3 Basis To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the bod

Re: accounting, ppp

2000-02-14 Thread Kris Kennaway
On Sat, 12 Feb 2000, Egervary Gergely wrote: > I'm running a PPP dialup server. (mgetty-autoppp) Is there any way to do > login accounting (like solaris' PAM modules, or linux pam_limits.so) A FreeBSD PAM module? ;) We use the same PAM code as linux, so grab the source of the module you use und

Re: accounting, ppp

2000-02-14 Thread Egervary Gergely
> > I'm running a PPP dialup server. (mgetty-autoppp) Is there any way to do > > login accounting (like solaris' PAM modules, or linux pam_limits.so) > > A FreeBSD PAM module? ;) > > We use the same PAM code as linux, so grab the source of the module you > use under linux and compile it on FreeB

Re: accounting, ppp

2000-02-14 Thread Max Khon
hi, there! On Mon, 14 Feb 2000, Egervary Gergely wrote: > > > I'm running a PPP dialup server. (mgetty-autoppp) Is there any way to do > > > login accounting (like solaris' PAM modules, or linux pam_limits.so) > > > > A FreeBSD PAM module? ;) > > > > We use the same PAM code as linux, so grab

SPY 1.0 released

2000-02-14 Thread Andrzej Bialecki
Hi, The new version of SPY - a kernel module for monitoring syscalls - is available for download from: http://www.freebsd.org/~abial/spy/ Please read the README.txt supplied with the package. This module has been tested only with FreeBSD 4.0 - it may require some minor changes to work w

Re: Loadable Code Modules?

2000-02-14 Thread Victor Ivanov
dlopen(3): #include void *dlopen(const char *path, int mode); void *dlsym(void *handle, const char *symbol); ... void *dll_handle; char (*my_func)(char *); // me too :) dll_handle = dlopen("/my/tests/something.so", RTLD_NOW); my_func = dlsym(dll_handle, "my_func"); ... so

Re: accounting, ppp

2000-02-14 Thread Egervary Gergely
> > :accounted:\ > > :sessionlimit=1: > > and login still let me log in more than once. > > both login and pam_unix.so do not have accounting capabilities ok, well - I've seen the sources. anyway, what has accounting capabilities, and what are the plans about it? -- mauzi To Unsubscr

Help me understand dlopen/dlsy

2000-02-14 Thread Pradesh Chanderpaul
This message was sent from Geocrawler.com by "Pradesh Chanderpaul" <[EMAIL PROTECTED]> Be sure to reply to that address. Hello All I know that this question is more suited to the general questions mailing group, but I tried, and failed to obtain a response. So could someone please provide gu

Re: accounting, ppp

2000-02-14 Thread 古谷 哲郎
Hi, From: Egervary Gergely <[EMAIL PROTECTED]> Subject: Re: accounting, ppp Date: Mon, 14 Feb 2000 10:37:31 +0100 (CET) mauzi> > > I'm running a PPP dialup server. (mgetty-autoppp) Is there any way to do mauzi> > > login accounting (like solaris' PAM modules, or linux pam_limits.so) mauzi> > ma

Re: accounting, ppp

2000-02-14 Thread Egervary Gergely
> Did you see, `man 1 last` ? > Here is a sample output list of last. > tf051005.tf.or.jp is my ppp dial-up client. > dhcp100.tf.or.jp is my dhcp client. of course accounting means more than just getting information ;)) eg. limiting, etc ;) -- mauzi To Unsubscribe: send mail to [EMAIL PROTECT

GateD returns 'No buffer space available' upon a routing tablebuild...

2000-02-14 Thread Lloyd Rennie
Hey all; We have several routers storing a full global routing table. Recently, this table has grown rather large (currently at ~75k routes). All are behaving in the same way; When GateD starts, I can watch it growing on a 'top', as it builds a routing table. Suddenly, it stops growing, cpu u

fsck core dumps

2000-02-14 Thread Eric Kozowski
3.4-stable fsck core dumps. filesystem is ufs, part of a 36gb ide drive. running "fsck -y /dev/rwd0s2e" produces the following: LINK COUNT FILE I=3690915 OWNER=1562247989 MODE=65764 SIZE=9880933937738515337 MTIME=Oct 19 22:53 1905 COUNT 4352 SHOULD BE 1 ADJUST? yes UNREF FILE I=3690923

Re: uthread: setsockopt while other threads blocked?

2000-02-14 Thread Scott Hess
If you're really certain that you know what you're doing, you might consider using _thread_sys_setsockopt() to go behind the pthread library's back. Non-portable, and a really bad idea if you can get away without it (in this case, I'd probably go with the second socket unless I determined that it

Re: bonnie still trustable?

2000-02-14 Thread Karsten W. Rohrbach
i personally like shimon's st.d... it exercises a disk very thoroughly, so if you want to benchmark - and, of course, have plenty of time for the box to run the benchmark - st.d is the choice since you got your free-of-charge(tm) burn in of the disk subsystem with it. what it basically does is sim

Re: bonnie still trustable?

2000-02-14 Thread Kris Kennaway
On Tue, 15 Feb 2000, Greg Lehey wrote: > > http://www.simon-shapiro.org/st_d/index.html > I don't see anything that jumps out and tells me where to get this > software, nor where I can get a printable version of the > documentation. Shimon, can you help? The above URL links to the documentatio

set mtu on le0?

2000-02-14 Thread Matt Gostick
Hi, I'm having a hard time setting the mtu on some of my cards. They are DEC 205's. They work fine... but I have to set the mtu to 1492 so adsl works. su-2.03# ifconfig le0 mtu 1492 ifconfig: ioctl (set mtu): Invalid argument su-2.03# ifconfig le0 le0: flags=8843 mtu 1500 inet 19

scsi target mode

2000-02-14 Thread Banu Ozden
we're trying to figure out how to setup a scsi adapter to function as a target device, and would appreciate some help from anyone who knows how to do it. we've looked at the code (scsi_target.c, scsi_targ_bh.c) and man pages (man scsi), but we're still not clear on the following: a. settings on

Re: GateD returns 'No buffer space available' upon a routing tablebuild...

2000-02-14 Thread Matthew Dillon
:etc... : :The first symptom seems always to be the malloc failure. This happens :within the first minute of uptime on this particular machine, a :p2-400/128Mb. All machines run FreeBSD-3.2. The others take longer to :develop the fault, but have slower processors. 'vmstat -m' before, durin

Re: Help me understand dlopen/dlsy

2000-02-14 Thread Alfred Perlstein
* Pradesh Chanderpaul <[EMAIL PROTECTED]> [000214 06:33] wrote: > This message was sent from Geocrawler.com by "Pradesh Chanderpaul" ><[EMAIL PROTECTED]> > Be sure to reply to that address. > > Hello All > > I know that this question is more suited to the general > questions mailing group, bu

Off by one error in ulimit?

2000-02-14 Thread Kevin Day
I don't have access to a -current machine to try this on, so this only applies to 3.4. I have my ulimit set to 8MB for data/etc: ulimit -a core file size (blocks) 8192 data seg size (kbytes) 8192 file size (blocks) 8192 max locked memory (kbytes) 4096 max memory size (kbytes

uthread: setsockopt while other threads blocked?

2000-02-14 Thread Robert Watson
I'm using a threaded program to manage ipfw rules, and today discovered the hardware that you cannot simultaneously have a thread blocking on a recvfrom() on the raw socket to read icmp packets, and have another thread perform a setsockopt() to manipulate the ipfw rules. While it's easy to work

Re: scsi target mode

2000-02-14 Thread Olaf Hoyer
>a. settings on the controller card (e.g. scsi id, termination) >b. freebsd configuration on the initiator and target PCs. > (e.g. do we use scsi_pt.c, scsi_target.c, etc). > >here's a diagram depicting what we want to do. we're trying to setup >a PC (PC2 below) with an adaptec controller t

Re: uthread: setsockopt while other threads blocked?

2000-02-14 Thread Daniel Eischen
> I'm using a threaded program to manage ipfw rules, and today discovered > the hardware that you cannot simultaneously have a thread blocking on a > recvfrom() on the raw socket to read icmp packets, and have another thread > perform a setsockopt() to manipulate the ipfw rules. Yea, it's because

Re: bonnie still trustable?

2000-02-14 Thread Greg Lehey
On Tuesday, 15 February 2000 at 2:37:58 +0100, Karsten W. Rohrbach wrote: > Greg Lehey([EMAIL PROTECTED])@Sun, Feb 13, 2000 at 03:16:50PM +1030: >> On Friday, 11 February 2000 at 10:49:24 +0100, Christoph Kukulies wrote: >>> PIII/500, 128 MB >>> >>> I'm wondering if this is trustable: >>> bo

raw socket, bpf, netgraph, etc

2000-02-14 Thread Yevmenkin, Maksim N, CSCIO
Hello All, Is it possible to get access to link layer (AF_LINK) via raw socket? kind of Linux SOCK_PACKET. It seems to me that it is not. (hope I wrong :) I can access raw IP via socket(AF_INET, SOCK_RAW, IPPROTO_RAW) and event get access to IP header with setsockopt. But not AF_LINK :( On the

Re: raw socket, bpf, netgraph, etc

2000-02-14 Thread David Malone
On Mon, Feb 14, 2000 at 10:33:47AM -0800, Archie Cobbs wrote: > Yevmenkin, Maksim N, CSCIO writes: > > i was thinking about netgraph. would't it be nice to have netgraph interface > > in each network driver? > > You already do. See ng_ether(8). > > Compile your kernel with options NETGRAPH and

Re: raw socket, bpf, netgraph, etc

2000-02-14 Thread Archie Cobbs
David Malone writes: > > Compile your kernel with options NETGRAPH and then each Ethernet > > interface is a netgraph node. Take control of it by connecting > > to the "divert" hook. > > I was trying to figure out if it is possible to route stuff out on > a particular interface based on source ad

Re: raw socket, bpf, netgraph, etc

2000-02-14 Thread Archie Cobbs
Yevmenkin, Maksim N, CSCIO writes: > i was thinking about netgraph. would't it be nice to have netgraph interface > in each network driver? You already do. See ng_ether(8). Compile your kernel with options NETGRAPH and then each Ethernet interface is a netgraph node. Take control of it by conne