urtw(4) frame validation

2011-03-19 Thread Loganaden Velvindron
Hi, This diffs discards frame largers than 2500 bytes. Tested on my machine: urtw0 at uhub0 port 2 "Realtek RTL8187B" rev 2.00/2.00 addr 2 urtw0: RTL8187B rev E, address 00:16:44:9f:76:cb urtw0 at uhub0 port 2 "Realtek RTL8187B" rev 2.00/2.00 addr 2 urtw0: RTL8187B rev E, address 00:16:44:9f:76:

upl(4) buffer length validation

2011-03-19 Thread Loganaden Velvindron
Hi, This discards frames that are less than 0, and those that are more than the maximum possible buffer size. Please test. As usual, any feedback welcomed. Index: src/sys/dev/usb/if_upl.c === RCS file: /cvs/src/sys/dev/usb/if_upl.c

urndis(4) Frame length validation

2011-03-19 Thread Loganaden Velvindron
Hi, this diff also discards packets larger than maximum buffer size. Please test. Index: src/sys/dev/usb/if_urndis.c === RCS file: /cvs/src/sys/dev/usb/if_urndis.c,v retrieving revision 1.29 diff -u -p -r1.29 if_urndis.c --- src/sys/

Re: [PATCH] frame length validation for USB ethernet adapters

2011-03-19 Thread Loganaden Velvindron
Miod pointed out a wrong variable used for axe(4) diff. Thanks. Index: if_axe.c === RCS file: /cvs/src/sys/dev/usb/if_axe.c,v retrieving revision 1.105 diff -u -p -r1.105 if_axe.c --- if_axe.c25 Jan 2011 20:03:35 - 1.105

Re: fenv.h support for libm

2011-03-19 Thread Martynas Venckus
Hi, I've taken a look at the amd64 part of the diff. Comments inline. I'm in the progress of implementing support for the remaining architectures, if anyone could provide me with remote access that would speed up the process. > Delivered-To: marty...@venck.us > Received: by 10.231.207.5 with SM

Re: Add MDNS lookup for libc.

2011-03-19 Thread Christiano F. Haesbaert
Whoops, I made some last time changes which broke big-endian systems, spotted by Mattew. Index: net/getaddrinfo.c === RCS file: /cvs/src/lib/libc/net/getaddrinfo.c,v retrieving revision 1.71 diff -d -u -p -w -r1.71 getaddrinfo.c --- n

Re: wprintf and friends

2011-03-19 Thread Stefan Sperling
On Sat, Mar 19, 2011 at 05:58:31PM +0100, Mark Kettenis wrote: > > Date: Sun, 13 Mar 2011 16:49:01 +0100 > > From: Stefan Sperling > > > > Marc Espie reminded me a while back that we'll also need to make sure that > > nothing in base will suddenly start using this (e.g. code in gnu/). > > Well,

Re: spamd.8 patch

2011-03-19 Thread Okan Demirmen
On Fri 2011.03.18 at 19:11 -0400, James Turner wrote: > I was just setting up spamd in blacklist mode on the latest snap and > discovered the man page is missing the "in" between "pass on". Diff > attached. thanks!

Re: PATCH: Fix boolean value for ACPI logical comparisons

2011-03-19 Thread roberth
On Fri, 18 Mar 2011 16:48:13 -0600 (MDT) Jordan Hargrave wrote: > This patch changes the values of boolean comparisons from 0:1 to 0:-1 > (from ACPI Spec) in order to fix an AML issue on some Asus machines. > Please test on other machines as well to verify that hardware > sensors/acpi/boot work p

Re: Add MDNS lookup for libc.

2011-03-19 Thread Christiano F. Haesbaert
On Tue, Mar 15, 2011 at 01:06:21AM -0300, Christiano F. Haesbaert wrote: > Hi, > > The following adds legacy MDNS lookups to libc. > > It adds the keyword 'mdns' to 'lookup' in /etc/resolv.conf, only names in the > .local (MDNS domain) are looked up. > > A legacy lookup is how MDNS calls a simpl

Re: [PATCH] frame length validation for USB ethernet adapters

2011-03-19 Thread Miod Vallat
> Index: src/sys/dev/usb/if_axe.c > === > RCS file: /cvs/src/sys/dev/usb/if_axe.c,v > retrieving revision 1.105 > diff -u -p -r1.105 if_axe.c > --- src/sys/dev/usb/if_axe.c 25 Jan 2011 20:03:35 - 1.105 > +++ src/sys/dev/usb/i

Re: PATCH: Fix boolean value for ACPI logical comparisons

2011-03-19 Thread Kenneth R Westerback
On Fri, Mar 18, 2011 at 04:48:13PM -0600, Jordan Hargrave wrote: > This patch changes the values of boolean comparisons from 0:1 to 0:-1 (from > ACPI Spec) in order to fix an AML issue on some Asus machines. > Please test on other machines as well to verify that hardware > sensors/acpi/boot work

Re: [PATCH] frame length validation for USB ethernet adapters

2011-03-19 Thread Loganaden Velvindron
Hi, I'm uploading the new diffs for this. It concerns axe(4), aue(4), cdce(4), cue(4), kue(4), mos(4) and url(4). Of these, axe(4) is the most tricky, and I'd appreciate testing on all vaariants of axe(4). Please test both small and large packets (NFS and SCP). As usual, feedback is most welcome

Re: fenv.h support for libm

2011-03-19 Thread Mark Kettenis
> Date: Sun, 13 Mar 2011 20:22:23 -0700 > From: Philip Guenther > > These headers violate POSIX namespace rules in various ways: > - pulling in , , and > defines names that aren't permitted. >(seems unnecessary too; just use unsigned short/int/long long > instead of uint16_t/uint32_t/uint64

Re: wprintf and friends

2011-03-19 Thread Mark Kettenis
> Date: Sun, 13 Mar 2011 16:49:01 +0100 > From: Stefan Sperling > > Marc Espie reminded me a while back that we'll also need to make sure that > nothing in base will suddenly start using this (e.g. code in gnu/). Well, it shouldn't be a problem if stuff in base started using this code. But we s

Re: PATCH: Fix boolean value for ACPI logical comparisons

2011-03-19 Thread Marco Peereboom
This is the right thing to do. ok On Fri, Mar 18, 2011 at 04:48:13PM -0600, Jordan Hargrave wrote: > This patch changes the values of boolean comparisons from 0:1 to 0:-1 (from > ACPI Spec) in order to fix an AML issue on some Asus machines. > Please test on other machines as well to verify that