Re: Peeking BPF

2004-06-29 Thread Lev Walkin
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 [EMAIL PROTECTED] ___ [EMAIL

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://lists.freebsd.org

Re: PF_PACKET

2004-06-25 Thread Lev Walkin
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, send any mail to [EMAIL

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 support

Re: Pthread / Memory Problem.

2004-05-26 Thread Lev Walkin
/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] ___ [EMAIL PROTECTED

Re: SYSV message queues

2004-04-12 Thread Lev Walkin
/~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: FreeBSD and Debugging?

2004-04-09 Thread Lev Walkin
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, send any mail

Re: machine/atmoic.h

2004-02-14 Thread Lev Walkin
/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/freebsd-hackers

Re: dlopen() and -pg flag

2003-12-03 Thread Lev Walkin
(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] ___ [EMAIL

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: possible rijndael bug

2003-09-17 Thread Lev Walkin
=== 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
pointed out. 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. -- Lev Walkin [EMAIL PROTECTED] ___ [EMAIL

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 PROTECTED

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 kernel, this line

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

2003-09-16 Thread Lev Walkin
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: 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 LW interfaces emitting ARP requests

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 if (ioctl(fd, BIOCPROMISC, NULL) == -1) LW

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

2003-09-07 Thread Lev Walkin
? 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. -- Lev Walkin [EMAIL PROTECTED

Re: Shared memory question

2003-08-30 Thread Lev Walkin
, 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/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL

Re: Dumping a core from inside of process

2003-08-21 Thread Lev Walkin
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] ___ [EMAIL

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 fatal memory signals, like SIGILL

Re: libpcap

2003-08-03 Thread Lev Walkin
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: can we disable AAAA queries in the resolver ?

2003-08-02 Thread Lev Walkin
/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/listinfo/freebsd

Re: Some specific questions about 5.x

2003-03-26 Thread Lev Walkin
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

Re: Checking sockaddr_in port number for overflow

2003-01-22 Thread Lev Walkin
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: Timing with clock_gettime(2) (sysutils/clockspeed port)

2003-01-02 Thread Lev Walkin
); 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