xlights(4): timeout_add(9) -> timeout_add_msec(9)

2019-12-18 Thread Scott Cheloha
250 ticks at macppc's 100hz is 2500 milliseconds. ok? Index: xlights.c === RCS file: /cvs/src/sys/arch/macppc/dev/xlights.c,v retrieving revision 1.9 diff -u -p -r1.9 xlights.c --- xlights.c 8 Oct 2019 13:21:38 - 1.9 +++

ftp(1): separate file:/ URL handling

2019-12-18 Thread Jeremie Courreges-Anglas
A bit late... Move file: URL handling into its own function. This simplifies url_get() and would have prevented problems with bogus redirections. file_get() unrolls the code previously used in url_get(), except the #ifndef SMALL bits were stripped out. file: support is mainly (only?) used in

[patch] ftp: disallow redirect and reading from file://

2019-12-18 Thread Hiltjo Posthuma
Hi, I noticed with the ftp program when downloading via HTTP or HTTPS it can be redirected to read from a local file directly. While testing using a CGI program that responds with the HTTP headers: Status: 301 Moved Permanently Location: file:///dev/urandom The patch below disa

Re: midi(4): *sleep(9) -> *sleep_nsec(9)

2019-12-18 Thread Scott Cheloha
On Wed, Dec 18, 2019 at 09:54:43AM +0100, Alexandre Ratchov wrote: > On Tue, Dec 17, 2019 at 07:09:02PM -0600, Scott Cheloha wrote: > > The only conversion I'm having trouble with is the tsleep(). > > The comment says "20ms", but then we use some arithmetic > > to derive a count of ticks. > > > >

ipmi(4) fix

2019-12-18 Thread Mark Kettenis
While playing with ipmi(4) attaching to acpi(4) I found out that using an int for storing addresses isn't a good idea. If you use it to store large addresses, the number becomes negative and will be sign extended when converted into a 64-bit adddress. The appropriate type to use here is bus_addr_

Add sizes for free() in vio(4)

2019-12-18 Thread Frederic Cambus
Hi tech@, Here is a diff to add sizes for free() in vio(4). There is an existing allocsize variable tracking size of allocations, turns out we can pass it to free() in the error path. Comments? OK? Index: sys/dev/pv/if_vio.c === RC

Re: openssl.1: note default -md value for openssl enc and how to get list of available hashes

2019-12-18 Thread Theo Buehler
On Wed, Dec 18, 2019 at 11:11:33AM +, Stuart Henderson wrote: > On 2019/12/18 06:30, Fabio Scotoni wrote: > > My reason for proposing that is a fear that people will still find years > > old or even decades old files much later on, forgetting or not realizing > > that they need to change -md. >

Re: openssl.1: note default -md value for openssl enc and how to get list of available hashes

2019-12-18 Thread Stuart Henderson
On 2019/12/18 06:30, Fabio Scotoni wrote: > My reason for proposing that is a fear that people will still find years > old or even decades old files much later on, forgetting or not realizing > that they need to change -md. > Having a note in the man page would help that specific scenario. > The fo

athn(4): use fixed 11n Tx retry rate while probing

2019-12-18 Thread Stefan Sperling
This makes athn(4) use a constant Tx retry rate while MiRA is probing. Should result in better initial Tx rate selection and thus less retries. When testing this make sure your tree is up to date; my iwm(4) Tx retry commit from today is required to compile this diff because that commit added the n

Re: midi(4): *sleep(9) -> *sleep_nsec(9)

2019-12-18 Thread Alexandre Ratchov
On Tue, Dec 17, 2019 at 07:09:02PM -0600, Scott Cheloha wrote: > The only conversion I'm having trouble with is the tsleep(). > The comment says "20ms", but then we use some arithmetic > to derive a count of ticks. > > Given > > hz * MIDI_MAXWRITE / MIDI_RATE > > You have hz ticks/second,

Re: attention please: host's IP stack behavior got changed slightly

2019-12-18 Thread Alexandr Nedvedicky
Hello, On Wed, Dec 18, 2019 at 12:24:57AM +0100, Alexander Bluhm wrote: > On Mon, Dec 16, 2019 at 03:42:27PM +0100, Alexandr Nedvedicky wrote: > > > I think this is a "do as I want" kind of thing. If I use pf(4) to redirect > > > traffic to a different address then I think our version of strict h

Re: openssl.1: note default -md value for openssl enc and how to get list of available hashes

2019-12-18 Thread Theo Buehler
On Wed, Dec 18, 2019 at 06:30:00AM +0100, Fabio Scotoni wrote: > On 12/18/19 5:46 AM, Theo Buehler wrote: > > The diff modifies the CA section, not ENC. I need to check if we can > > do something about the weak defaults there, but the diff is not > > correct. > > That's my bad. > New diff inline.