Re: dlopen() and -pg flag

2003-12-03 Thread Lev Walkin
} } return (EXIT_SUCCESS); } ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Lev Walkin [EMAIL PROTECTED]

Re: machine/atmoic.h

2004-02-14 Thread Lev Walkin
chine/atomic.h help you to perform certain functions uninterrupted, possibly via a single assembly instruction, hence the "atomic" prefix. -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/fre

Re: FreeBSD and Debugging?

2004-04-09 Thread Lev Walkin
hat will detect the heap/stack corruption!? Valgrind is available for FreeBSD. http://eirikn.kerneled.com/valgrind/ -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe

Re: SYSV message queues

2004-04-11 Thread Lev Walkin
. Use sockets. Obsolescent Unix IPC Methods http://www.catb.org/~esr/writings/taoup/html/ch07s03.html#id2923376 -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Pthread / Memory Problem.

2004-05-26 Thread Lev Walkin
mory leaks. Thanks /Cole ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Lev Walkin [EMAIL PROTECTED]

Re: PF_PACKET

2004-06-25 Thread Lev Walkin
ly need to catch & send a few packets now and then, not anything complex or bandwidth demanding). man bpf -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, se

Re: PF_PACKET

2004-06-25 Thread Lev Walkin
Ivan Voras wrote: Lev Walkin wrote: Ivan Voras wrote: I'm trying to port open1x xsupplicant, and it uses PF_PACKET to get relevant packets (of appropriate ethernet type). I looked around in /usr/include and can't find the support, at least not under that and similar names. Is there s

Re: Peeking BPF

2004-06-29 Thread Lev Walkin
re is data in it. alternatively, use poll() or select() to check for readability event. char resultBuffer[65536]; ret = read(thisint->bpfInt, resultBuffer, sizeof(resultBuffer)); if(ret > 0) return TRUE; -- Lev Walkin

Re: FreeBSD and MacOS

2004-06-29 Thread Lev Walkin
cannot "hack" Aqua or Quartz sources because there ain't any in public access. Otherwise, you could just install Darwin, it will run on your PC without any hacking. -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://li

Re: FreeBSD and MacOS

2004-06-29 Thread Lev Walkin
Alasdair Lumsden wrote: On Tue, 2004-06-29 at 21:20, Lev Walkin wrote: MacOS X is based on multiple concepts, including Darwin. Darwin is based on FreeBSD. "Darwin is based on FreeBSD" - technically, no :) Darwin is a continuation of NeXT Step which is based on the Mach kernel. Whi

Re: Checking sockaddr_in port number for overflow

2003-01-22 Thread Lev Walkin
u all? Have I missed anything obvious that I should also check? tmp <= 0. -- Lev Walkin [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Some specific questions about 5.x

2003-03-26 Thread Lev Walkin
Who are insane, Solaris folks (moving towards Linux) or Free/NetBSD ones (migrating to the old Solaris' behavior)? -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Question about BPF API (PCAP not like for me)

2003-03-26 Thread Lev Walkin
BIOCSSEESENT that enables you to skip over locally generated packets on the interface in question. See ports/net/ipcad. -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

Re: can we disable AAAA queries in the resolver ?

2003-08-02 Thread Lev Walkin
b/libc/net/getaddrinfo.c. Indeed, it would be useful to have it configurable either in resolv.conf (options) or as an environment variable (RES_OPTIONS). -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listin

Re: libpcap

2003-08-03 Thread Lev Walkin
lish this? Any help will be greatly appriciated. "port 21 or ... or port 25 or port 113" -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Dumping a core from inside of process

2003-08-21 Thread Lev Walkin
e (correct) way to make a coredump of your own memory (and, it'll be nice to have all that stack frames and registers written as they were when the signal did occured, not what they were when we are already in signal handler) man 3 abort -- Lev Walkin [EMAIL PROTECTED]

Re: Dumping a core from inside of process

2003-08-21 Thread Lev Walkin
Artem 'Zazoobr' Ignatjev wrote: At Thu, 21.08.2003, 22:05, Lev Walkin wrote: Artem 'Zazoobr' Ignatjev wrote: Hello, hackers I'm writing some program, which dlopens() a lot of shared objects, and can do nasty things to it's own memory. Some day I decided to trap fat

Re: Shared memory question

2003-08-30 Thread Lev Walkin
ary (alternatively, any change will result in a copy-on-write, and only the program itsel will see the changed portion). Thank you for your patience. Zera -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/li

Re: if bpf fd's select()able?

2003-09-07 Thread Lev Walkin
"base"? References (surely, I'd already read manpages for bpf, pcap and related -- but did I still missed something serious?) would be greatly appreciated. Yes, you're missing the interactive mode. Refer to BIOCIMMEDIATE in the bpf(4) manual page. -- Le

Re: if bpf fd's select()able?

2003-09-08 Thread Lev Walkin
Dmitry Morozovsky wrote: On Sun, 7 Sep 2003, Lev Walkin wrote: LW> > [all below is for 4-STABLE] LW> > LW> > I'm trying to write effective arp scanner for multi-interface router (esp. LW> > multi-vlan); I plan to use multiple bpf devices attached to different

Re: if bpf fd's select()able?

2003-09-08 Thread Lev Walkin
Dmitry Morozovsky wrote: On Mon, 8 Sep 2003, Lev Walkin wrote: [snip] LW> > LW> Yes, you're missing the interactive mode. LW> > LW> Refer to BIOCIMMEDIATE in the bpf(4) manual page. LW> > LW> > Unfortunately not ;-) LW> LW> Fortunately, yes. LW> LW&g

Re: Any workarounds for Verisign .com/.net highjacking?

2003-09-16 Thread Lev Walkin
hen be able to make this router to filter out the better half of Internet after a while. -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: possible rijndael bug

2003-09-17 Thread Lev Walkin
n, padLen); + rijndaelEncrypt(key->rk, key->Nr, block, outBuffer); break; === cut cvs diff === And then somebody changed assert() into a direct if()! -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: possible rijndael bug

2003-09-17 Thread Lev Walkin
Since if expression is true, the assert() macro does nothing, the expression seems wrong, and it should be: if (padLen <= 0 || padLen > 16) return BAD_CIPHER_STATE; as you pointed out. Absolutely NOT. According to RFC1423 and FIPS81, the padding length m

Re: possible rijndael bug

2003-09-17 Thread Lev Walkin
Lev Walkin wrote: Absolutely NOT. According to RFC1423 and FIPS81, the padding length may be somewhere in between 1 to 16 bytes, which translated into if(padLen < 0 || padLen >= 16) for this particular code. Sorry, ignore this comment. -- Lev Walkin [EMAIL PRO

Re: possible rijndael bug

2003-09-17 Thread Lev Walkin
Hajimu UMEMOTO wrote: Hi, On Wed, 17 Sep 2003 01:09:24 -0700 [EMAIL PROTECTED] (Lev Walkin) said: I saw it during working on next KAME merge into 5-CURRENT. KAME/NetBSD uses assert() here like: assert(padLen > 0 && padLen <= 16); Since FreeBSD doesn't have assert() in ke

Re: Benchmarking kqueue() performance?

2003-10-17 Thread Lev Walkin
which handles a large number of events. I am interested in seeing the scalability of kqueue() as the number of events increases. One of the most comprehensive sites about that problem is: http://www.kegel.com/c10k.html -- Lev Walkin [EMAIL PROTECTED

Re: Timing with clock_gettime(2) (sysutils/clockspeed port)

2003-01-02 Thread Lev Walkin
ming_diffi(&end,&start)/iters); Please, please read `man 3 printf`. Consider using %f instead of %lld. -- Lev Walkin [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message