Re: tcpdrop freeaddrinfo

2014-12-29 Thread Claudio Jeker
On Tue, Dec 30, 2014 at 12:00:38AM -0500, Lawrence Teo wrote: > tcpdrop makes two getaddrinfo() calls: > > if ((gaierr = getaddrinfo(laddr1, port1, &hints, &laddr)) != 0) > errx(1, "%s port %s: %s", addr1, port1, > gai_strerror(gaierr)); > > if ((gaierr

tcpdrop freeaddrinfo

2014-12-29 Thread Lawrence Teo
tcpdrop makes two getaddrinfo() calls: if ((gaierr = getaddrinfo(laddr1, port1, &hints, &laddr)) != 0) errx(1, "%s port %s: %s", addr1, port1, gai_strerror(gaierr)); if ((gaierr = getaddrinfo(faddr2, port2, &hints, &faddr)) != 0) {

convert spamd to poll(2)

2014-12-29 Thread Todd C. Miller
This converts spamd from select() to poll(). It might be a little cleaner to embed a pointer to the pfd in struct con to avoid the "pfd[PFD_FIRSTCON + i]" bits but I don't think it is a big deal. The numcon bit is just to prevent the kernel from having to copy and inspect a lot of unused entries.

Re: PATCH: azalia(4) invalid index crash

2014-12-29 Thread Dorian Büttner
Gets my machine back to boot with azalia enabled: OpenBSD 5.6-current (GENERIC.MP) #30: Mon Dec 29 02:05:46 CET 2014 r...@smartie.doris.net:/sys/arch/amd64/compile/GENERIC.MP real mem = 8489222144 (8095MB) avail mem = 8259375104 (7876MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0

add usbdevs vendor

2014-12-29 Thread frantisek holop
noname/rebranded usb composite device (kbd+mouse): Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x8086), rev 1.00 port 2 addr 3: full speed, power 100 mA, config 1, 2.4G Receiver(0x5a66), vendor 0x1d57(0x1d57), rev 1.10 Index: usbdevs